PageSourceSearch

https://pfirsi.ch/assets/es2015-GL5k7iHU.js

js pfirsi.ch collected 2026-10-01 14:53:32 UTC 22,237 bytes, 41 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-DiVRNtpo.js";import{n,r,t as i}from"./dist-C6g52wIB.js";import{t as a}from"./jsx-runtime-BdxMnOeJ.js";import{n as o}from"./dist-Dg-fMsg0.js";import{a as s}from"./dist-Bp4R9TBB.js";import{t as c}from"./dist-B3IwvRT8.js";import{t as l}from"./dist-Czyp4uBT.js";import{a as u,i as d,o as f}from"./client-Do1iB8NN.js";var p=e(t(),1),m=a(),h=Object.defineProperty,g=(e,t)=>h(e,`name`,{value:t,configurable:!0}),_=`dismissableLayer.update`,v=`dismissableLayer.pointerDownOutside`,y=`dismissableLayer.focusOutside`,b,x=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),S=p.forwardRef(g(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,onDismiss:f,...h}=e,v=p.useContext(x),[y,S]=p.useState(null),C=y?.ownerDocument??globalThis?.document,[,w]=p.useState({}),T=s(t,S),D=Array.from(v.layers),[O]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),ne=O?D.indexOf(O):-1,k=y?D.indexOf(y):-1,re=v.layersWithOutsidePointerEventsDisabled.size>0,A=k>=ne,ie=p.useRef(!1),j=E(e=>{c?.(e),d?.(e),e.defaultPrevented||f?.()},{ownerDocument:C,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:ie,dismissableSurfaces:v.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...v.branches].some(t=>t.contains(e));return A&&!t},[v.branches,A])}),M=ee(e=>{if(r&&ie.current)return;let t=e.target;[...v.branches].some(e=>e.contains(t))||(u?.(e),d?.(e),e.defaultPrevented||f?.())},C),N=y?k===D.length-1:!1,P=l(e=>{e.key===`Escape`&&(a?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))});return p.useEffect(()=>{if(N)return C.addEventListener(`keydown`,P,{capture:!0}),()=>C.removeEventListener(`keydown`,P,{capture:!0})},[C,N,P]),p.useEffect(()=>{if(y)return n&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(b=C.body.style.pointerEvents,C.body.style.pointerEvents=`none`),v.layersWithOutsidePointerEventsDisabled.add(y)),v.layers.add(y),te(),()=>{n&&(v.layersWithOutsidePointerEventsDisabled.delete(y),v.layersWithOutsidePointerEventsDisabled.size===0&&(C.body.style.pointerEvents=b))}},[y,C,n,v]),p.useEffect(()=>()=>{y&&(v.layers.delete(y),v.layersWithOutsidePointerEventsDisabled.delete(y),te())},[y,v]),p.useEffect(()=>{let e=g(()=>w({}),`handleUpdate`);return document.addEventListener(_,e),()=>document.removeEventListener(_,e)},[]),(0,m.jsx)(i.div,{...h,ref:T,style:{pointerEvents:re?A?`auto`:`none`:void 0,...e.style},onFocusCapture:o(e.onFocusCapture,M.onFocusCapture),onBlurCapture:o(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:o(e.onPointerDownCapture,j.onPointerDownCapture)})},`DismissableLayer`)),C=p.forwardRef(g(function(e,t){let n=p.useContext(x),r=p.useRef(null),a=s(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(i.div,{...e,ref:a})},`DismissableLayerBranch`));function w(){let e=p.useContext(x),[t,n]=p.useState(null);return p.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}g(w,`useDismissableLayerSurface`);var T=g(()=>!0,`IS_TRUE`);function E(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=T}=t,s=l(e),c=p.useRef(!1),u=p.useRef(!1),d=p.useRef(new Map),f=p.useRef(()=>{});return p.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}g(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}g(t,`isOutsideInteractionIntercepted`);function l(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}g(l,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}g(p,`handleInteractionBubble`);let m=g(a=>{if(a.target&&!c.current){let l=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||D(v,s,p,{discrete:!0})};if(g(l,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,f.current),e(
1),c.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?l():(n.removeEventListener(`click`,f.current),f.current=l,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,l,!0),n.addEventListener(e,p);let _=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(_),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,l,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:g(()=>c.current=!0,`onPointerDownCapture`)}}g(E,`usePointerDownOutside`);function ee(e,t=globalThis?.document){let n=l(e),r=p.useRef(!1);return p.useEffect(()=>{let e=g(e=>{e.target&&!r.current&&D(y,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:g(()=>r.current=!0,`onFocusCapture`),onBlurCapture:g(()=>r.current=!1,`onBlurCapture`)}}g(ee,`useFocusOutside`);function te(){let e=new CustomEvent(_);document.dispatchEvent(e)}g(te,`dispatchUpdate`);function D(e,t,r,{discrete:i}){let a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),i?n(a,o):a.dispatchEvent(o)}g(D,`handleAndDispatchCustomEvent`);var O=S,ne=C,k=e(r(),1),re=Object.defineProperty,A=p.forwardRef(((e,t)=>re(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[a,o]=p.useState(!1);c(()=>o(!0),[]);let s=n||a&&globalThis?.document?.body;return s?k.createPortal((0,m.jsx)(i.div,{...r,ref:t}),s):null},`Portal`)),ie=Object.defineProperty,j=(e,t)=>ie(e,`name`,{value:t,configurable:!0}),M=`focusScope.autoFocusOnMount`,N=`focusScope.autoFocusOnUnmount`,P={bubbles:!1,cancelable:!0},ae=p.forwardRef(j(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...c}=e,[u,d]=p.useState(null),f=l(a),h=l(o),g=p.useRef(null),_=s(t,d),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?g.current=t:I(g.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;t!==null&&(u.contains(t)||I(g.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&I(u)};j(e,`handleFocusIn`),j(t,`handleFocusOut`),j(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,u,v.paused]),p.useEffect(()=>{if(u){de.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(M,P);u.addEventListener(M,f),u.dispatchEvent(t),t.defaultPrevented||(oe(pe(ce(u)),{select:!0}),document.activeElement===e&&I(u))}return()=>{u.removeEventListener(M,f),setTimeout(()=>{let t=new CustomEvent(N,P);u.addEventListener(N,h),u.dispatchEvent(t),t.defaultPrevented||I(e??document.body,{select:!0}),u.removeEventListener(N,h),de.remove(v)},0)}}},[u,f,h,v]);let y=p.useCallback(e=>{if(!n&&!r||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=se(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&I(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&I(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,m.jsx)(i.div,{tabIndex:-1,...c,ref:_,onKeyDown:y})},`FocusScope`));function oe(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(I(r,{select:t}),document.activeElement!==n)return}j(oe,`focusFirst`);function se(e){let t=ce(e);return[F(t,e),F(t.reverse(),e)]}j(se,`getTabbableEdges`);function ce(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:j(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`)}
1);for(;n.nextNode();)t.push(n.currentNode);return t}j(ce,`getTabbableCandidates`);function F(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):le(r,{upTo:t})))return r}j(F,`findVisible`);function le(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}j(le,`isHidden`);function ue(e){return e instanceof HTMLInputElement&&`select`in e}j(ue,`isSelectableInput`);function I(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ue(e)&&t&&e.select()}}j(I,`focus`);var de=fe();function fe(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=L(e,t),e.unshift(t)},remove(t){e=L(e,t),e[0]?.resume()}}}j(fe,`createFocusScopesStack`);function L(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}j(L,`arrayRemove`);function pe(e){return e.filter(e=>e.tagName!==`A`)}j(pe,`removeLinks`);var me=Object.defineProperty,R=(e,t)=>me(e,`name`,{value:t,configurable:!0}),z=0,B=null;function he(e){return ge(),e.children}R(he,`FocusGuards`);function ge(){p.useEffect(()=>{B||={start:_e(),end:_e()};let{start:e,end:t}=B;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),z++,()=>{z===1&&(B?.start.remove(),B?.end.remove(),B=null),z=Math.max(0,z-1)}},[])}R(ge,`useFocusGuards`);function _e(){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}R(_e,`createFocusGuard`);var V=`right-scroll-bar-position`,H=`width-before-scroll-bar`,ve=`with-scroll-bars-hidden`,ye=`--removed-body-scroll-bar-size`;function be(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function xe(e,t){var n=(0,p.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 Se=typeof window<`u`?p.useLayoutEffect:p.useEffect,Ce=new WeakMap;function we(e,t){var n=xe(t||null,function(t){return e.forEach(function(e){return be(e,t)})});return Se(function(){var t=Ce.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||be(e,null)}),i.forEach(function(e){r.has(e)||be(e,a)})}Ce.set(n,e)},[e]),n}function Te(e){return e}function Ee(e,t){t===void 0&&(t=Te);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 De(e){e===void 0&&(e={});var t=Ee(null);return t.options=d({async:!0,ssr:!1},e),t}var Oe=function(e){var t=e.sideCar,n=u(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 p.createElement(r,d({},n))};Oe.isSideCarExport=!0;function ke(e,t){return e.useMedium(t),Oe}var Ae=De(),je=function(){},U=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:je,onWheelCapture:je,onTouchMoveCapture:je}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,m=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?`div`:b,S=e.gapMode,C=u(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),w=h,T=we([n,t]),E=d(d({},C),i);return p.createElement(p.Fragment,null,f&&p.createElement(w,{sideCar:Ae,removeScrollBar:l,shards:m,noRelative:g,noIsolation:_,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:S}),o?p.cloneElement(p.Children.only(s),d(d({},E),{ref:T})):p.createElement(x,d({},E,{className:c,ref:T}),s))});U.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},U.classNames={fullWidth:H,zeroRight:V};var Me,Ne=function(){if(Me)return Me;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Pe(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ne();return t&&e.setAttribute(`nonce`,t),e}function Fe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ie(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Le=function(){var e=0,t=null;
vendor: 8,438 bytes, lines 1-41
1return{add:function(n){e==0&&(t=Pe())&&(Fe(t,n),Ie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Re=function(){var e=Le();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ze=function(){var e=Re();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Be={left:0,top:0,right:0,gap:0},W=function(e){return parseInt(e||``,10)||0},Ve=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[W(n),W(r),W(i)]},He=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Be;var t=Ve(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])}},Ue=ze(),G=`data-scroll-locked`,We=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  .${ve} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${G}] {
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  .${V} {
20    right: ${s}px ${r};
21  }
22  
23  .${H} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${V} .${V} {
28    right: 0 ${r};
29  }
30  
31  .${H} .${H} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${G}] {
36    ${ye}: ${s}px;
37  }
38`},Ge=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Ke=function(){p.useEffect(function(){return document.body.setAttribute(G,(Ge()+1).toString()),function(){var e=Ge()-1;e<=0?document.body.removeAttribute(G):document.body.setAttribute(G,e.toString())}},[])},qe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Ke();var a=p.useMemo(function(){return He(i)},[i]);return p.createElement(Ue,{styles:We(a,!t,i,n?``:`!important`)})},K=!1;if(typeof window<`u`)try{var q=Object.defineProperty({},"passive",{get:function(){return K=!0,!0}});window.addEventListener(`test`,q,q),window.removeEventListener(`test`,q,q)}catch{K=!1}var J=K?{passive:!1}:!1,Je=function(e){return e.tagName===`TEXTAREA`},Ye=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Je(e)&&n[t]===`visible`)},Xe=function(e){return Ye(e,`overflowY`)},Ze=function(e){return Ye(e,`overflowX`)},Qe=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),tt(e,r)){var i=nt(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$e=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},et=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},tt=function(e,t){return e===`v`?Xe(t):Ze(t)},nt=function(e,t){return e===`v`?$e(t):et(t)},rt=function(e,t){return e===`h`&&t===`rtl`?-1:1},it=function(e,t,n,r,i){var a=rt(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=nt(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&tt(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},Y=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},at=function(e){return[e.deltaX,e.deltaY]},ot=function(e){return e&&`current`in e?e.current:e},st=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ct=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},lt=0,X=[];function ut(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(lt++)[0],a=p.useState(ze)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=f([e.lockRef.current],(e.shards||[]).map(ot),!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 s=p.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Y(e),a=n.current,s=`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(s)>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=Qe(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Qe(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return it(h,t,e,h===`h`?s:c,!0)},[]),c=p.useCallback(function(e){var n=e;if(!(!X.length||X[X.length-1]!==a)){var r=`deltaY`in n?at(n):Y(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&st(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(ot).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=p.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:dt(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=p.useCallback(function(e){n.current=Y(e),r.current=void 0},[]),d=p.useCallback(function(t){l(t.type,at(t),t.target,s(t,e.lockRef.current))},[]),m=p.useCallback(function(t){l(t.type,Y(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return X.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener(`wheel`,c,J),document.addEventListener(`touchmove`,c,J),document.addEventListener(`touchstart`,u,J),function(){X=X.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,J),document.removeEventListener(`touchmove`,c,J),document.removeEventListener(`touchstart`,u,J)}},[]);var h=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(a,{styles:ct(i)}):null,h?p.createElement(qe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function dt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var ft=ke(Ae,ut),pt=p.forwardRef(function(e,t){return p.createElement(U,d({},e,{ref:t,sideCar:ft}))});pt.classNames=U.classNames;var mt=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Z=new WeakMap,Q=new WeakMap,$={},ht=0,gt=function(e){return e&&(e.host||gt(e.parentNode))},_t=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=gt(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})},vt=function(e,t,n,r){var i=_t(t,Array.isArray(e)?e:[e]);$[n]||($[n]=new WeakMap);var a=$[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.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=(Z.get(e)||0)+1,l=(a.get(e)||0)+1;Z.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Q.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(),ht++,function(){o.forEach(function(e){var t=Z.get(e)-1,i=a.get(e)-1;Z.set(e,t),a.set(e,i),t||(Q.has(e)||e.removeAttribute(r),Q.delete(e)),i||e.removeAttribute(n)}),ht--,ht||(Z=new WeakMap,Z=new WeakMap,Q=new WeakMap,$={})}},yt=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||mt(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),vt(r,i,n,`aria-hidden`)):function(){return null}};export{A as a,O as c,ae as i,w as l,pt as n,ne as o,ge as r,S as s,yt 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.