vendor: 4,310 bytes, line 1
1import{r as i,j as K,b8 as Le,b9 as Te}from"./index-zHIJQHEM.js";import{P as H,a as X,d as Ae,e as me}from"./index-CfYrpjHA.js";import{u as te}from"./button-CF3fTBb6.js";function M(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>t.current?.(...n),[])}function De(e,t=globalThis?.document){const n=M(e);i.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var ke="DismissableLayer",J="dismissableLayer.update",Ne="dismissableLayer.pointerDownOutside",Fe="dismissableLayer.focusOutside",re,pe=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Me=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:s,onDismiss:o,...S}=e,l=i.useContext(pe),[f,h]=i.useState(null),v=f?.ownerDocument??globalThis?.document,[,y]=i.useState({}),C=te(t,p=>h(p)),c=Array.from(l.layers),[d]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=c.indexOf(d),E=f?c.indexOf(f):-1,g=l.layersWithOutsidePointerEventsDisabled.size>0,b=E>=m,w=Be(p=>{const L=p.target,T=[...l.branches].some(F=>F.contains(L));!b||T||(a?.(p),s?.(p),p.defaultPrevented||o?.())},v),P=We(p=>{const L=p.target;[...l.branches].some(F=>F.contains(L))||(u?.(p),s?.(p),p.defaultPrevented||o?.())},v);return De(p=>{E===l.layers.size-1&&(r?.(p),!p.defaultPrevented&&o&&(p.preventDefault(),o()))},v),i.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(re=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),ae(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=re)}},[f,v,n,l]),i.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),ae())},[f,l]),i.useEffect(()=>{const p=()=>y({});return document.addEventListener(J,p),()=>document.removeEventListener(J,p)},[]),K.jsx(H.div,{...S,ref:C,style:{pointerEvents:g?b?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,P.onFocusCapture),onBlurCapture:X(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,w.onPointerDownCapture)})});Me.displayName=ke;var xe="DismissableLayerBranch",Ie=i.forwardRef((e,t)=>{const n=i.useContext(pe),r=i.useRef(null),a=te(t,r);return i.useEffect(()=>{const u=r.current;if(u)return n.branches.add(u),()=>{n.branches.delete(u)}},[n.branches]),K.jsx(H.div,{...e,ref:a})});Ie.displayName=xe;function Be(e,t=globalThis?.document){const n=M(e),r=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{const u=o=>{if(o.target&&!r.current){let S=function(){ye(Ne,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=S,t.addEventListener("click",a.current,{once:!0})):S()}else t.removeEventListener("click",a.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",u),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function We(e,t=globalThis?.document){const n=M(e),r=i.useRef(!1);return i.useEffect(()=>{const a=u=>{u.target&&!r.current&&ye(Fe,n,{originalEvent:u},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ae(){const e=new CustomEvent(J);document.dispatchEvent(e)}function ye(e,t,n,{discrete:r}){const a=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Ae(a,u):a.dispatchEvent(u)}var Y=0;function Ut(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oe()),document.body.insertAdjacentElement("beforeend",e[1]??oe()),Y++,()=>{Y===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Y--}},[])}function oe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 10,613 bytes, lines 1-16
1style.position="fixed",e.style.pointerEvents="none",e}var z="focusScope.autoFocusOnMount",G="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},_e="FocusScope",Ue=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...s}=e,[o,S]=i.useState(null),l=M(a),f=M(u),h=i.useRef(null),v=te(t,c=>S(c)),y=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let c=function(g){if(y.paused||!o)return;const b=g.target;o.contains(b)?h.current=b:O(h.current,{select:!0})},d=function(g){if(y.paused||!o)return;const b=g.relatedTarget;b!==null&&(o.contains(b)||O(h.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const w of g)w.removedNodes.length>0&&O(o)};document.addEventListener("focusin",c),document.addEventListener("focusout",d);const E=new MutationObserver(m);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",d),E.disconnect()}}},[r,o,y.paused]),i.useEffect(()=>{if(o){ue.add(y);const c=document.activeElement;if(!o.contains(c)){const m=new CustomEvent(z,ie);o.addEventListener(z,l),o.dispatchEvent(m),m.defaultPrevented||(je(Ye(Ee(o)),{select:!0}),document.activeElement===c&&O(o))}return()=>{o.removeEventListener(z,l),setTimeout(()=>{const m=new CustomEvent(G,ie);o.addEventListener(G,f),o.dispatchEvent(m),m.defaultPrevented||O(c??document.body,{select:!0}),o.removeEventListener(G,f),ue.remove(y)},0)}}},[o,l,f,y]);const C=i.useCallback(c=>{if(!n&&!r||y.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,m=document.activeElement;if(d&&m){const E=c.currentTarget,[g,b]=Ke(E);g&&b?!c.shiftKey&&m===b?(c.preventDefault(),n&&O(g,{select:!0})):c.shiftKey&&m===g&&(c.preventDefault(),n&&O(b,{select:!0})):m===E&&c.preventDefault()}},[n,r,y.paused]);return K.jsx(H.div,{tabIndex:-1,...s,ref:v,onKeyDown:C})});Ue.displayName=_e;function je(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(O(r,{select:t}),document.activeElement!==n)return}function Ke(e){const t=Ee(e),n=ce(t,e),r=ce(t.reverse(),e);return[n,r]}function Ee(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ce(e,t){for(const n of e)if(!He(n,{upTo:t}))return n}function He(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}function Ve(e){return e instanceof HTMLInputElement&&"select"in e}function O(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ve(e)&&t&&e.select()}}var ue=Xe();function Xe(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=se(e,t),e.unshift(t)},remove(t){e=se(e,t),e[0]?.resume()}}}function se(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ye(e){return e.filter(t=>t.tagName!=="A")}var ze=Le[" useId ".trim().toString()]||(()=>{}),Ge=0;function jt(e){const[t,n]=i.useState(ze());return me(()=>{n(r=>r??String(Ge++))},[e]),e||(t?`radix-${t}`:"")}var Ze="Portal",$e=i.forwardRef((e,t)=>{const{container:n,...r}=e,[a,u]=i.useState(!1);me(()=>u(!0),[]);const s=n||a&&globalThis?.document?.body;return s?Te.createPortal(K.jsx(H.div,{...r,ref:t}),s):null});$e.displayName=Ze;var qe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},A=new WeakMap,I=new WeakMap,B={},Z=0,ge=function(e){return e&&(e.host||ge(e.parentNode))},Qe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ge(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Je=function(e,t,n,r){var a=Qe(t,Array.isArray(e)?e:[e]);B[n]||(B[n]=new WeakMap);var u=B[n],s=[],o=new Set,S=new Set(a),l=function(h){!h||o.has(h)||(o.add(h),l(h.parentNode))};a.forEach(l);var f=function(h){!h||S.has(h)||Array.prototype.forEach.call(h.children,function(v){if(o.has(v))f(v);else try{var y=v.getAttribute(r),C=y!==null&&y!=="false",c=(A.get(v)||0)+1,d=(u.get(v)||0)+1;A.set(v,c),u.set(v,d),s.push(v),c===1&&C&&I.set(v,!0),d===1&&v.setAttribute(n,"true"),C||v.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",v,m)}})};return f(t),o.clear(),Z++,function(){s.forEach(function(h){var v=A.get(h)-1,y=u.get(h)-1;A.set(h,v),u.set(h,y),v||(I.has(h)||h.removeAttribute(r),I.delete(h)),y||h.removeAttribute(n)}),Z--,Z||(A=new WeakMap,A=new WeakMap,I=new WeakMap,B={})}},Kt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=qe(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),Je(r,a,n,"aria-hidden")):function(){return null}},R=function(){return R=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},R.apply(this,arguments)};function be(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function et(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,u;r<a;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var U="right-scroll-bar-position",j="width-before-scroll-bar",tt="with-scroll-bars-hidden",nt="--removed-body-scroll-bar-size";function $(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rt(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var at=typeof window<"u"?i.useLayoutEffect:i.useEffect,le=new WeakMap;function ot(e,t){var n=rt(null,function(r){return e.forEach(function(a){return $(a,r)})});return at(function(){var r=le.get(n);if(r){var a=new Set(r),u=new Set(e),s=n.current;a.forEach(function(o){u.has(o)||$(o,null)}),u.forEach(function(o){a.has(o)||$(o,s)})}le.set(n,e)},[e]),n}function it(e){return e}function ct(e,t){t===void 0&&(t=it);var n=[],r=!1,a={read:function(){if(r)throw new 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(u){var s=t(u,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(u){for(r=!0;n.length;){var s=n;n=[],s.forEach(u)}n={push:function(o){return u(o)},filter:function(){return n}}},assignMedium:function(u){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(u),s=n}var S=function(){var f=s;s=[],f.forEach(u)},l=function(){return Promise.resolve().then(S)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return a}function ut(e){e===void 0&&(e={});var t=ct(null);return t.options=R({async:!0,ssr:!1},e),t}var Se=function(e){var t=e.sideCar,n=be(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,R({},n))};Se.isSideCarExport=!0;function st(e,t){return e.useMedium(t),Se}var we=ut(),q=function(){},V=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),a=r[0],u=r[1],s=e.forwardProps,o=e.children,S=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,y=e.noRelative,C=e.noIsolation,c=e.inert,d=e.allowPinchZoom,m=e.as,E=m===void 0?"div":m,g=e.gapMode,b=be(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=v,P=ot([n,t]),p=R(R({},b),a);return i.createElement(i.Fragment,null,f&&i.createElement(w,{sideCar:we,removeScrollBar:l,shards:h,noRelative:y,noIsolation:C,inert:c,setCallbacks:u,allowPinchZoom:!!d,lockRef:n,gapMode:g}),s?i.cloneElement(i.Children.only(o),R(R({},p),{ref:P})):i.createElement(E,R({},p,{className:S,ref:P}),o))});V.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};V.classNames={fullWidth:j,zeroRight:U};var lt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=lt();return t&&e.setAttribute("nonce",t),e}function ft(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ht=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dt())&&(ft(t,n),vt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mt=function(){var e=ht();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ce=function(){var e=mt(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},pt={left:0,top:0,right:0,gap:0},Q=function(e){return parseInt(e||"",10)||0},yt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Q(n),Q(r),Q(a)]},Et=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return pt;var t=yt(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])}},gt=Ce(),N="data-scroll-locked",bt=function(e,t,n,r){var a=e.left,u=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(tt,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(o,"px ").concat(r,`; 5 } 6 body[`).concat(N,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(a,`px; 11 padding-top: `).concat(u,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(o,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(U,` { 20 right: `).concat(o,"px ").concat(r,`; 21 } 22 23 .`).concat(j,` { 24 margin-right: `).concat(o,"px ").concat(r,`; 25 } 26 27 .`).concat(U," .").concat(U,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(j," .").concat(j,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(N,`] { 36 `).concat(nt,": ").concat(o,`px; 37 } 38`)},de=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},St=function(){i.useEffect(function(){return document.body.setAttribute(N,(de()+1).toString()),function(){var e=de()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},wt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;St();var u=i.useMemo(function(){return Et(a)},[a]);return i.createElement(gt,{styles:bt(u,!t,a,n?"":"!important")})},ee=!1;if(typeof window<"u")try{var W=Object.defineProperty({},"passive",{get:function(){return ee=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch{ee=!1}var D=ee?{passive:!1}:!1,Ct=function(e){return e.tagName==="TEXTAREA"},Pe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ct(e)&&n[t]==="visible")},Pt=function(e){return Pe(e,"overflowY")},Rt=function(e){return Pe(e,"overflowX")},fe=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=Re(e,r);if(a){var u=Oe(e,r),s=u[1],o=u[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ot=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Lt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Re=function(e,t){return e==="v"?Pt(t):Rt(t)},Oe=function(e,t){return e==="v"?Ot(t):Lt(t)},Tt=function(e,t){return e==="h"&&t==="rtl"?-1:1},At=function(e,t,n,r,a){var u=Tt(e,window.getComputedStyle(t).direction),s=u*r,o=n.target,S=t.contains(o),l=!1,f=s>0,h=0,v=0;do{if(!o)break;var y=Oe(e,o),C=y[0],c=y[1],d=y[2],m=c-d-u*C;(C||m)&&Re(e,o)&&(h+=m,v+=C);var E=o.parentNode;o=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!S&&o!==document.body||S&&(t.contains(o)||t===o));return(f&&Math.abs(h)<1||!f&&Math.abs(v)<1)&&(l=!0),l},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ve=function(e){return[e.deltaX,e.deltaY]},he=function(e){return e&&"current"in e?e.current:e},Dt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kt=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Nt=0,k=[];function Ft(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),a=i.useState(Nt++)[0],u=i.useState(Ce)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var c=et([e.lockRef.current],(e.shards||[]).map(he),!0).filter(Boolean);return c.forEach(function(d){return d.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),c.forEach(function(d){return d.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=i.useCallback(function(c,d){if("touches"in c&&c.touches.length===2||c.type==="wheel"&&c.ctrlKey)return!s.current.allowPinchZoom;var m=_(c),E=n.current,g="deltaX"in c?c.deltaX:E[0]-m[0],b="deltaY"in c?c.deltaY:E[1]-m[1],w,P=c.target,p=Math.abs(g)>Math.abs(b)?"h":"v";if("touches"in c&&p==="h"&&P.type==="range")return!1;var L=window.getSelection(),T=L&&L.anchorNode,F=T?T===P||T.contains(P):!1;if(F)return!1;var x=fe(p,P);if(!x)return!0;if(x?w=p:(w=p==="v"?"h":"v",x=fe(p,P)),!x)return!1;if(!r.current&&"changedTouches"in c&&(g||b)&&(r.current=w),!w)return!0;var ne=r.current||w;return At(ne,d,c,ne==="h"?g:b)},[]),S=i.useCallback(function(c){var d=c;if(!(!k.length||k[k.length-1]!==u)){var m="deltaY"in d?ve(d):_(d),E=t.current.filter(function(w){return w.name===d.type&&(w.target===d.target||d.target===w.shadowParent)&&Dt(w.delta,m)})[0];if(E&&E.should){d.cancelable&&d.preventDefault();return}
vendor: 1,553 bytes, line 41
41if(!E){var g=(s.current.shards||[]).map(he).filter(Boolean).filter(function(w){return w.contains(d.target)}),b=g.length>0?o(d,g[0]):!s.current.noIsolation;b&&d.cancelable&&d.preventDefault()}}},[]),l=i.useCallback(function(c,d,m,E){var g={name:c,delta:d,target:m,should:E,shadowParent:Mt(m)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(b){return b!==g})},1)},[]),f=i.useCallback(function(c){n.current=_(c),r.current=void 0},[]),h=i.useCallback(function(c){l(c.type,ve(c),c.target,o(c,e.lockRef.current))},[]),v=i.useCallback(function(c){l(c.type,_(c),c.target,o(c,e.lockRef.current))},[]);i.useEffect(function(){return k.push(u),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",S,D),document.addEventListener("touchmove",S,D),document.addEventListener("touchstart",f,D),function(){k=k.filter(function(c){return c!==u}),document.removeEventListener("wheel",S,D),document.removeEventListener("touchmove",S,D),document.removeEventListener("touchstart",f,D)}},[]);var y=e.removeScrollBar,C=e.inert;return i.createElement(i.Fragment,null,C?i.createElement(u,{styles:kt(a)}):null,y?i.createElement(wt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Mt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xt=st(we,Ft);var It=i.forwardRef(function(e,t){return i.createElement(V,R({},e,{ref:t,sideCar:xt}))});It.classNames=V.classNames;export{Me as D,Ue as F,$e as P,It as R,Ut as a,jt as b,Kt as h,M as u};
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.