PageSourceSearch

https://ngrok.com/assets/Combination-SmTpNg3u.js

js ngrok.com collected 2026-09-24 06:51:40 UTC 16,874 bytes, 41 lines download raw bytes

1import{K as e,Y as t,i as n}from"./icon-BT8FnkkJ-BXNRZ6YI.js";import{a as r}from"./slot-BsvE2ntj-B4hthNWr.js";import{a as i,o as a}from"./dist-BGdOy5lc.js";var o=t(e(),1),s=Object.defineProperty,c=(e,t)=>s(e,`name`,{value:t,configurable:!0}),l=0,u=null;function d(e){return f(),e.children}c(d,`FocusGuards`);function f(){o.useEffect(()=>{u||={start:p(),end:p()};let{start:e,end:t}=u;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),l++,()=>{l===1&&(u?.start.remove(),u?.end.remove(),u=null),l=Math.max(0,l-1)}},[])}c(f,`useFocusGuards`);function p(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}c(p,`createFocusGuard`);var m=n(),h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0}),_=`focusScope.autoFocusOnMount`,v=`focusScope.autoFocusOnUnmount`,y={bubbles:!1,cancelable:!0},b=o.forwardRef(g(function(e,t){let{loop:n=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:l,...u}=e,[d,f]=o.useState(null),p=i(c),h=i(l),b=o.useRef(null),w=r(t,f),T=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(s){let e=function(e){if(T.paused||!d)return;let t=e.target;d.contains(t)?b.current=t:D(b.current,{select:!0})},t=function(e){if(T.paused||!d)return;let t=e.relatedTarget;t!==null&&(d.contains(t)||D(b.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&D(d)};g(e,`handleFocusIn`),g(t,`handleFocusOut`),g(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return d&&r.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[s,d,T.paused]),o.useEffect(()=>{if(d){ee.add(T);let e=document.activeElement;if(!d.contains(e)){let t=new CustomEvent(_,y);d.addEventListener(_,p),d.dispatchEvent(t),t.defaultPrevented||(x(A(C(d)),{select:!0}),document.activeElement===e&&D(d))}return()=>{d.removeEventListener(_,p),setTimeout(()=>{let t=new CustomEvent(v,y);d.addEventListener(v,h),d.dispatchEvent(t),t.defaultPrevented||D(e??document.body,{select:!0}),d.removeEventListener(v,h),ee.remove(T)},0)}}},[d,p,h,T]);let E=o.useCallback(e=>{if(!n&&!s||T.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,a]=S(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n&&D(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n&&D(a,{select:!0})):r===t&&e.preventDefault()}},[n,s,T.paused]);return(0,m.jsx)(a.div,{tabIndex:-1,...u,ref:w,onKeyDown:E})},`FocusScope`));function x(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(D(r,{select:t}),document.activeElement!==n)return}g(x,`focusFirst`);function S(e){let t=C(e);return[w(t,e),w(t.reverse(),e)]}g(S,`getTabbableEdges`);function C(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:g(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}g(C,`getTabbableCandidates`);function w(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):T(r,{upTo:t})))return r}g(w,`findVisible`);function T(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}g(T,`isHidden`);function E(e){return e instanceof HTMLInputElement&&`select`in e}g(E,`isSelectableInput`);function D(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&E(e)&&t&&e.select()}}g(D,`focus`);var ee=O();function O(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=k(e,t),e.unshift(t)},remove(t){e=k(e,t),e[0]?.resume()}}}g(O,`createFocusScopesStack`);function k(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}g(k,`arrayRemove`);function A(e){return e.filter(e=>e.tagName!==`A`)}g(A,`removeLinks`);var te=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},j=new WeakMap,M=new WeakMap,N={},P=0,F=function(e){return e&&(e.host||F(e.parentNode))},ne=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=F(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},re=function(e,t,n,r){var i=ne(t,Array.isArray(e)?e:[e]);N[n]||(N[n]=new WeakMap);var a=N[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};
vendor: 11,821 bytes, lines 1-41
1i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(j.get(e)||0)+1,l=(a.get(e)||0)+1;j.set(e,c),a.set(e,l),o.push(e),c===1&&i&&M.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),P++,function(){o.forEach(function(e){var t=j.get(e)-1,i=a.get(e)-1;j.set(e,t),a.set(e,i),t||(M.has(e)||e.removeAttribute(r),M.delete(e)),i||e.removeAttribute(n)}),P--,P||(j=new WeakMap,j=new WeakMap,M=new WeakMap,N={})}},ie=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||te(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),re(r,i,n,`aria-hidden`)):function(){return null}},I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},I.apply(this,arguments)};function ae(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function oe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var L=`right-scroll-bar-position`,R=`width-before-scroll-bar`,se=`with-scroll-bars-hidden`,ce=`--removed-body-scroll-bar-size`;function z(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function le(e,t){var n=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ue=typeof window<`u`?o.useLayoutEffect:o.useEffect,B=new WeakMap;function de(e,t){var n=le(t||null,function(t){return e.forEach(function(e){return z(e,t)})});return ue(function(){var t=B.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||z(e,null)}),i.forEach(function(e){r.has(e)||z(e,a)})}B.set(n,e)},[e]),n}function fe(e){return e}function pe(e,t){t===void 0&&(t=fe);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function me(e){e===void 0&&(e={});var t=pe(null);return t.options=I({async:!0,ssr:!1},e),t}var V=function(e){var t=e.sideCar,n=ae(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return o.createElement(r,I({},n))};V.isSideCarExport=!0;function he(e,t){return e.useMedium(t),V}var H=me(),U=function(){},W=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:U,onWheelCapture:U,onTouchMoveCapture:U}),i=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=ae(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=de([n,t]),w=I(I({},x),i);return o.createElement(o.Fragment,null,d&&o.createElement(S,{sideCar:H,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),s?o.cloneElement(o.Children.only(c),I(I({},w),{ref:C})):o.createElement(y,I({},w,{className:l,ref:C}),c))});W.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},W.classNames={fullWidth:R,zeroRight:L};var ge=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function _e(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=ge();return t&&e.setAttribute(`nonce`,t),e}function ve(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ye(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var be=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_e())&&(ve(t,n),ye(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xe=function(){var e=be();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Se=function(){var e=xe();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ce={left:0,top:0,right:0,gap:0},G=function(e){return parseInt(e||``,10)||0},we=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[G(n),G(r),G(i)]},Te=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ce;var t=we(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ee=Se(),K=`data-scroll-locked`,De=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2  .${se} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${K}] {
7    overflow: hidden ${r};
8    overscroll-behavior: contain;
9    ${[t&&`position: relative ${r};`,n===`margin`&&`
10    padding-left: ${i}px;
11    padding-top: ${a}px;
12    padding-right: ${o}px;
13    margin-left:0;
14    margin-top:0;
15    margin-right: ${s}px ${r};
16    `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
17  }
18  
19  .${L} {
20    right: ${s}px ${r};
21  }
22  
23  .${R} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${L} .${L} {
28    right: 0 ${r};
29  }
30  
31  .${R} .${R} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${K}] {
36    ${ce}: ${s}px;
37  }
38`},q=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Oe=function(){o.useEffect(function(){return document.body.setAttribute(K,(q()+1).toString()),function(){var e=q()-1;e<=0?document.body.removeAttribute(K):document.body.setAttribute(K,e.toString())}},[])},ke=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Oe();var a=o.useMemo(function(){return Te(i)},[i]);return o.createElement(Ee,{styles:De(a,!t,i,n?``:`!important`)})},J=!1;if(typeof window<`u`)try{var Y=Object.defineProperty({},"passive",{get:function(){return J=!0,!0}});window.addEventListener(`test`,Y,Y),window.removeEventListener(`test`,Y,Y)}catch{J=!1}var X=J?{passive:!1}:!1,Ae=function(e){return e.tagName===`TEXTAREA`},Z=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ae(e)&&n[t]===`visible`)},je=function(e){return Z(e,`overflowY`)},Me=function(e){return Z(e,`overflowX`)},Ne=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ie(e,r)){var i=Le(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Pe=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Fe=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ie=function(e,t){return e===`v`?je(t):Me(t)},Le=function(e,t){return e===`v`?Pe(t):Fe(t)},Re=function(e,t){return e===`h`&&t===`rtl`?-1:1},ze=function(e,t,n,r,i){var a=Re(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Le(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ie(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Q=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Be=function(e){return[e.deltaX,e.deltaY]},Ve=function(e){return e&&`current`in e?e.current:e},He=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ue=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},We=0,$=[];function Ge(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(We++)[0],a=o.useState(Se)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=oe([e.lockRef.current],(e.shards||[]).map(Ve),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=Q(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Ne(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Ne(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return ze(h,t,e,h===`h`?o:c,!0)},[]),l=o.useCallback(function(e){var n=e;if($.length&&$[$.length-1]===a){var r=`deltaY`in n?Be(n):Q(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&He(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var o=(s.current.shards||[]).map(Ve).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?c(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ke(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=Q(e),r.current=void 0},[]),f=o.useCallback(function(t){u(t.type,Be(t),t.target,c(t,e.lockRef.current))},[]),p=o.useCallback(function(t){u(t.type,Q(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return $.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,X),document.addEventListener(`touchmove`,l,X),document.addEventListener(`touchstart`,d,X),function(){$=$.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,X),document.removeEventListener(`touchmove`,l,X),document.removeEventListener(`touchstart`,d,X)}},[]);var m=e.removeScrollBar,h=e.inert;return o.createElement(o.Fragment,null,h?o.createElement(a,{styles:Ue(i)}):null,m?o.createElement(ke,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ke(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var qe=he(H,Ge),Je=o.forwardRef(function(e,t){return o.createElement(W,I({},e,{ref:t,sideCar:qe}))});Je.classNames=W.classNames;export{f as i,ie as n,b as r,Je as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.