PageSourceSearch

https://www.connorlove.com/_next/static/chunks/644-7f6663f9efccfc60.js

js connorlove.com collected 2026-10-06 13:35:57 UTC 77,272 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[644],{9008:function(e,t,n){e.exports=n(3867)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1595:function(e,t,n){"use strict";let r,o;n.d(t,{VY:function(){return r9},wU:function(){return r8},Uv:function(){return r3},Ee:function(){return r4},Rk:function(){return r7},fC:function(){return r2},xz:function(){return r5}});var i,a,l,u,c,s,f,d,p=n(7294),m=n.t(p,2);function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function g(...e){return p.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=v(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():v(e[t],null)}}}}(...e),e)}"undefined"!=typeof window&&window.document&&window.document.createElement;var y=n(5893);function w(e,t=[]){let n=[],r=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=p.createContext(r);o.displayName=t+"Context";let i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,l=n?.[e]?.[i]||o,u=p.useMemo(()=>a,Object.values(a));return(0,y.jsx)(l.Provider,{value:u,children:r})};return a.displayName=t+"Provider",[a,function(n,a,l={}){let{optional:u=!1}=l,c=a?.[e]?.[i]||o,s=p.useContext(c);if(s)return s;if(void 0!==r)return r;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var b=globalThis?.document?p.useLayoutEffect:()=>{},x=m[" useInsertionEffect ".trim().toString()]||b;function E({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),o=p.useRef(n),i=p.useRef(t);return x(()=>{i.current=t},[t]),p.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;{let t=p.useRef(void 0!==e);p.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[u,p.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[l,e,i,a])]}Symbol("RADIX:SYNC_STATE");var R=n(3935);function C(e){let t=p.forwardRef((t,n)=>{var r;let o,i,{children:a,...l}=t,u=null,c=!1,s=[];A(a)&&"function"==typeof L&&(a=L(a._payload)),p.Children.forEach(a,e=>{if(p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===S){c=!0;let t="child"in e.props?e.props.child:e.props.children;A(t)&&"function"==typeof L&&(t=L(t._payload)),u=M(e,t),s.push(u?.props?.children)}else s.push(e)}),u?u=p.cloneElement(u,void 0,s):!c&&1===p.Children.count(a)&&p.isValidElement(a)&&(u=a);let f=u?(r=u,(o=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning?r.ref:(o=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning?r.props.ref:r.props.ref||r.ref):void 0,d=g(n,f);if(!u){if(a||0===a)throw Error(c?O(e):P(e));return a}let m=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(l,u.props??{});return u.type!==p.Fragment&&(m.ref=n?d:f),p.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}var S=Symbol.for("radix.slottable"),M=(e,t)=>{if("child"in e.props){let t=e.props.child;return p.isValidElement(t)?p.cloneElement(t,void 0,e.props.children(t.props.children)):null}return p.isValidElement(t)?t:null},T=Symbol.for("react.lazy");function A(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===T&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var P=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,O=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,L=m[" use ".trim().toString()],k=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=C(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,y.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function D(e,t){e&&R.flushSync(()=>e.dispatchEvent(t))}function N(e){let t=e+"CollectionProvider",[n,r]=w(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=p.useRef(null),i=p.useRef(new Map).current;return(0,y.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};a.displayName=t;let l=e+"CollectionSlot",u=C(l),c=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=g(t,i(l,n).collectionRef);return(0,y.jsx)(u,{ref:o,children:r})});c.displayName=l;let s=e+"CollectionItemSlot",f="data-radix-collection-item",d=C(s),m=p.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=p.useRef(null),l=g(t,a),u=i(s,n);return p.useEffect(()=>(u.itemMap.set(a,{ref:a,...o}),()=>void u.itemMap.delete(a))),(0,y.jsx)(d,{[f]:"",ref:l,children:r})});return m.displayName=s,[{Provider:a,Slot:c,ItemSlot:m},function(t){let n=i(e+"CollectionConsumer",t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var j=p.createContext(void 0);function _(e){let t=p.useContext(j);return e||t||"ltr"}function I(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}var F="dismissableLayer.update",W=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),B=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:u,...c}=e,s=p.useContext(W),[d,m]=p.useState(null),v=d?.ownerDocument??globalThis?.document,[,w]=p.useState({}),b=g(t,m),x=Array.from(s.layers),[E]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),R=E?x.indexOf(E):-1,C=d?x.indexOf(d):-1,S=s.layersWithOutsidePointerEventsDisabled.size>0,M=C>=R,T=p.useRef(!1),A=function(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:a=$}=t,l=I(e),u=p.useRef(!1),c=p.useRef(!1),s=p.useRef(new Map),f=p.useRef(()=>{});return p.useEffect(()=>{function e(){c.current=!1,o.current=!1,s.current.clear()}function t(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||s.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&f.current()},0)}function d(e){c.current&&s.current.set(e.type,!1)}let p=t=>{if(t.target&&!u.current){let i=function(){n.removeEventListener("click",f.current);let t=Array.from(s.current.values()).some(Boolean);e(),t||V("dismissableLayer.pointerDownOutside",l,d,{discrete:!0})};if(!a(t.target)){n.removeEventListener("click",f.current),e(),u.current=!1;return}let d={originalEvent:t};c.current=!0,o.current=r&&0===t.button,s.current.clear(),r&&0===t.button?(n.removeEventListener("click",f.current),f.current=i,n.addEventListener("click",f.current,{once:!0})):i()}
1else n.removeEventListener("click",f.current),e();u.current=!1},m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,t,!0),n.addEventListener(e,d);let h=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(h),n.removeEventListener("pointerdown",p),n.removeEventListener("click",f.current),m))n.removeEventListener(e,t,!0),n.removeEventListener(e,d)}},[n,l,r,o,i,a]),{onPointerDownCapture:()=>u.current=!0}}(e=>{i?.(e),l?.(e),e.defaultPrevented||u?.()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:s.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...s.branches].some(t=>t.contains(e));return M&&!t},[s.branches,M])}),P=function(e,t=globalThis?.document){let n=I(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&V("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(r&&T.current)return;let t=e.target;[...s.branches].some(e=>e.contains(t))||(a?.(e),l?.(e),e.defaultPrevented||u?.())},v),O=!!d&&C===x.length-1,L=I(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return p.useEffect(()=>{if(O)return v.addEventListener("keydown",L,{capture:!0}),()=>v.removeEventListener("keydown",L,{capture:!0})},[v,O,L]),p.useEffect(()=>{if(d)return n&&(0===s.layersWithOutsidePointerEventsDisabled.size&&(f=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(d)),s.layers.add(d),K(),()=>{n&&(s.layersWithOutsidePointerEventsDisabled.delete(d),0===s.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=f))}},[d,v,n,s]),p.useEffect(()=>()=>{d&&(s.layers.delete(d),s.layersWithOutsidePointerEventsDisabled.delete(d),K())},[d,s]),p.useEffect(()=>{let e=()=>w({});return document.addEventListener(F,e),()=>document.removeEventListener(F,e)},[]),(0,y.jsx)(k.div,{...c,ref:b,style:{pointerEvents:S?M?"auto":"none":void 0,...e.style},onFocusCapture:h(e.onFocusCapture,P.onFocusCapture),onBlurCapture:h(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,A.onPointerDownCapture)})});B.displayName="DismissableLayer",p.forwardRef((e,t)=>{let n=p.useContext(W),r=p.useRef(null),o=g(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,y.jsx)(k.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var $=()=>!0;function K(){let e=new CustomEvent(F);document.dispatchEvent(e)}function V(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?D(o,i):o.dispatchEvent(i)}var H=0,U=null;function z(){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}var X="focusScope.autoFocusOnMount",Y="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},Z=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=p.useState(null),c=I(o),s=I(i),f=p.useRef(null),d=g(t,u),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(m.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:Q(f.current,{select:!0})},t=function(e){if(m.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||Q(f.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Q(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,m.paused]),p.useEffect(()=>{if(l){ee.add(m);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(X,G);l.addEventListener(X,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Q(r,{select:t}),document.activeElement!==n)return}(q(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Q(l))}return()=>{l.removeEventListener(X,c),setTimeout(()=>{let t=new CustomEvent(Y,G);l.addEventListener(Y,s),l.dispatchEvent(t),t.defaultPrevented||Q(e??document.body,{select:!0}),l.removeEventListener(Y,s),ee.remove(m)},0)}}},[l,c,s,m]);let h=p.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=q(e);return[J(t,e),J(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Q(i,{select:!0})):(e.preventDefault(),n&&Q(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,y.jsx)(k.div,{tabIndex:-1,...a,ref:d,onKeyDown:h})});function q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t})))return r}function Q(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}Z.displayName="FocusScope";var ee=(o=[],{add(e){let t=o[0];e!==t&&t?.pause(),(o=et(o,e)).unshift(e)},remove(e){o=et(o,e),o[0]?.resume()}});function et(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var en=m[" useId ".trim().toString()]||(()=>void 0),er=0;function eo(e){let[t,n]=p.useState(en());return b(()=>{e||n(e=>e??String(er++))},[e]),e||(t?`radix-${t}`:"")}let ei=["top","right","bottom","left"],ea=Math.min,el=Math.max,eu=Math.round,ec=Math.floor,es=e=>({x:e,y:e}
1),ef={left:"right",right:"left",bottom:"top",top:"bottom"};function ed(e,t){return"function"==typeof e?e(t):e}function ep(e){return e.split("-")[0]}function em(e){return e.split("-")[1]}function eh(e){return"x"===e?"y":"x"}function ev(e){return"y"===e?"height":"width"}function eg(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function ey(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let ew=["left","right"],eb=["right","left"],ex=["top","bottom"],eE=["bottom","top"];function eR(e){let t=ep(e);return ef[t]+e.slice(t.length)}function eC(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function eS(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function eM(e,t,n){let r,{reference:o,floating:i}=e,a=eg(t),l=eh(eg(t)),u=ev(l),c=ep(t),s=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[u]/2-i[u]/2;switch(c){case"top":r={x:s,y:o.y-i.height};break;case"bottom":r={x:s,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}let p=em(t);return p&&(r[l]+=d*("end"===p?1:-1)*(n&&"y"===a?-1:1)),r}async function eT(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ed(t,e),m=eC(p),h=l[d?"floating"===f?"reference":"floating":f],v=eS(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=eS(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}let eA=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:eT},u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=eM(c,r,u),d=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:v,fn:g}=h,{x:y,y:w,data:b,reset:x}=await g({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=y?y:s,f=null!=w?w:f,m[v]={...m[v],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:f}=eM(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:m}};function eP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eO(e){return ei.some(t=>e[t]>=0)}let eL=new Set(["left","top"]);async function ek(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=ep(n),l=em(n),u="y"===eg(n),c=eL.has(a)?-1:1,s=i&&u?-1:1,f=ed(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function eD(){return"undefined"!=typeof window}function eN(e){return eI(e)?(e.nodeName||"").toLowerCase():"#document"}function ej(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function e_(e){var t;return null==(t=(eI(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eI(e){return!!eD()&&(e instanceof Node||e instanceof ej(e).Node)}function eF(e){return!!eD()&&(e instanceof Element||e instanceof ej(e).Element)}function eW(e){return!!eD()&&(e instanceof HTMLElement||e instanceof ej(e).HTMLElement)}function eB(e){return!!eD()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ej(e).ShadowRoot)}function e$(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eG(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function eK(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eV=/transform|translate|scale|rotate|perspective|filter/,eH=/paint|layout|strict|content/,eU=e=>!!e&&"none"!==e;function ez(e){let t=eF(e)?eG(e):e;return eU(t.transform)||eU(t.translate)||eU(t.scale)||eU(t.rotate)||eU(t.perspective)||!eX()&&(eU(t.backdropFilter)||eU(t.filter))||eV.test(t.willChange||"")||eH.test(t.contain||"")}function eX(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eY(e){return/^(html|body|#document)$/.test(eN(e))}function eG(e){return ej(e).getComputedStyle(e)}function eZ(e){return eF(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eq(e){if("html"===eN(e))return e;let t=e.assignedSlot||e.parentNode||eB(e)&&e.host||e_(e);return eB(t)?t.host:t}function eJ(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eq(t);return eY(n)?(t.ownerDocument||t).body:eW(n)&&e$(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=ej(o);if(!i)return t.concat(o,eJ(o,[],n));{let e=eQ(a);
1return t.concat(a,a.visualViewport||[],e$(o)?o:[],e&&n?eJ(e):[])}}function eQ(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e0(e){let t=eG(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eW(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=eu(n)!==i||eu(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function e1(e){return eF(e)?e:e.contextElement}function e2(e){let t=e1(e);if(!eW(t))return es(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=e0(t),a=(i?eu(n.width):n.width)/r,l=(i?eu(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let e5=es(0);function e3(e){let t=ej(e);return eX()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e5}function e9(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=e1(e),l=es(1);t&&(r?eF(r)&&(l=e2(r)):l=e2(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===ej(a))?e3(a):es(0),c=(i.left+u.x)/l.x,s=(i.top+u.y)/l.y,f=i.width/l.x,d=i.height/l.y;if(a&&r){let e=ej(a),t=eF(r)?ej(r):r,n=e,o=eQ(n);for(;o&&t!==n;){let e=e2(o),t=o.getBoundingClientRect(),r=eG(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,d*=e.y,c+=i,s+=a,o=eQ(n=ej(o))}}return eS({width:f,height:d,x:c,y:s})}function e4(e,t){let n=eZ(e).scrollLeft;return t?t.left+n:e9(e_(e)).left+n}function e7(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-e4(e,n),y:n.top+t.scrollTop}}function e8(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=ej(e),i=e_(e),a=o.visualViewport,l=i.clientWidth,u=i.clientHeight,c=0,s=0;if(a){let e=!eX()||"fixed"===t;r?e||(c=-a.offsetLeft,s=-a.offsetTop):(l=a.width,u=a.height,e&&(c=a.offsetLeft,s=a.offsetTop))}if(0>=e4(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),a="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;a<=25&&(l-=a)}return{width:l,height:u,x:c,y:s}}(e,n,t);else if("document"===t)r=function(e){let t=eZ(e),n=e.ownerDocument.body,r=el(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=el(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+e4(e),a=-t.scrollTop;return"rtl"===eG(n).direction&&(i+=el(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:a}}(e_(e));else if(eF(t))r=function(e,t){let n=e9(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=e2(e),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=e3(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eS(r)}function e6(e){return"static"===eG(e).position}function te(e,t){if(!eW(e)||"fixed"===eG(e).position)return null;if(t)return t(e);let n=e.offsetParent;return e_(e)===n&&(n=n.ownerDocument.body),n}function tt(e,t){var n;let r=ej(e);if(eK(e))return r;if(!eW(e)){let t=eq(e);for(;t&&!eY(t);){if(eF(t)&&!e6(t))return t;t=eq(t)}return r}let o=te(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(eN(n)))&&e6(o);)o=te(o,t);return o&&eY(o)&&e6(o)&&!ez(o)?r:o||function(e){let t=eq(e);for(;eW(t)&&!eY(t);){if(ez(t))return t;if(eK(t))break;t=eq(t)}return null}(e)||r}let tn=async function(e){let t=this.getOffsetParent||tt,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eW(t),o=e_(t),i="fixed"===n,a=e9(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=es(0);if((r||!i)&&(("body"!==eN(t)||e$(o))&&(l=eZ(t)),r)){let e=e9(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=e4(o));let c=!o||r||i?es(0):e7(o,l);return{x:a.left+l.scrollLeft-u.x-c.x,y:a.top+l.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=e_(r),l=!!t&&eK(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=es(1),s=es(0),f=eW(r);
1if((f||!i)&&(("body"!==eN(r)||e$(a))&&(u=eZ(r)),f)){let e=e9(r);c=e2(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let d=!a||f||i?es(0):e7(a,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+d.x,y:n.y*c.y-u.scrollTop*c.y+s.y+d.y}},getDocumentElement:e_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eK(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eJ(e,[],!1).filter(e=>eF(e)&&"body"!==eN(e)),o=null,i="fixed"===eG(e).position,a=i?eq(e):e;for(;eF(a)&&!eY(a);){let e=eG(a),t=ez(a),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==a),a=eq(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=e8(t,i[0],o),l=a.top,u=a.right,c=a.bottom,s=a.left;for(let e=1;e<i.length;e++){let n=e8(t,i[e],o);l=el(n.top,l),u=ea(n.right,u),c=ea(n.bottom,c),s=el(n.left,s)}return{width:u-s,height:c-l,x:s,y:l}},getOffsetParent:tt,getElementRects:tn,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=e0(e);return{width:t,height:n}},getScale:e2,isElement:eF,isRTL:function(e){return"rtl"===eG(e).direction}};function to(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ti=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:s=0}=ed(e,t)||{};if(null==c)return{};let f=eC(s),d={x:n,y:r},p=eh(eg(o)),m=ev(p),h=await a.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-d[p]-i.floating[m],w=d[p]-i.reference[p],b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),x=b?b[g]:0;x&&await (null==a.isElement?void 0:a.isElement(b))||(x=l.floating[g]||i.floating[m]);let E=x/2-h[m]/2-1,R=ea(f[v?"top":"left"],E),C=ea(f[v?"bottom":"right"],E),S=x-h[m]-C,M=x/2-h[m]/2+(y/2-w/2),T=el(R,ea(M,S)),A=!u.arrow&&null!=em(o)&&M!==T&&i.reference[m]/2-(M<R?R:C)-h[m]/2<0,P=A?M<R?M-R:M-S:0;return{[p]:d[p]+P,data:{[p]:T,centerOffset:M-T-P,...A&&{alignmentOffset:P}},reset:A}}}),ta=(e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...tr,...o.platform,_c:r};return eA(e,t,{...o,platform:i})};var tl="undefined"!=typeof document?p.useLayoutEffect:function(){};function tu(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tu(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tu(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tc(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ts(e,t){let n=tc(e);return Math.round(t*n)/n}function tf(e){let t=p.useRef(e);return tl(()=>{t.current=e}),t}let td=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ti({element:n.current,padding:r}).fn(t):{}:n?ti({element:n,padding:r}).fn(t):{}}}),tp=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:l}=e,u=await ek(e,n);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}});return{name:r.name,fn:r.fn,options:[e,t]}},tm=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ed(n,e),s={x:t,y:r},f=await i.detectOverflow(e,c),d=eg(o),p=eh(d),m=s[p],h=s[d],v=(e,t)=>el(t+f["y"===e?"top":"left"],ea(t,t-f["y"===e?"bottom":"right"]));a&&(m=v(p,m)),l&&(h=v(d,h));let g=u.fn({...e,[p]:m,[d]:h});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[p]:a,[d]:l}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},th=(e,t)=>{var n;return{fn:(void 0===(n=e)&&(n={}),{options:n,fn(e){var t,r,o,i;let{x:a,y:l,placement:u,rects:c,middlewareData:s}=e,{offset:f=0,mainAxis:d=!0,crossAxis:p=!0}=ed(n,e),m={x:a,y:l},h=eg(u),v=eh(h),g=m[v],y=m[h],w=ed(f,e),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:null!=(t=w.mainAxis)?t:0,crossAxis:null!=(r=w.crossAxis)?r:0};if(d){let e="y"===v?"height":"width",t=c.reference[v]-c.floating[e]+b.mainAxis,n=c.reference[v]+c.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(p){let e="y"===v?"width":"height",t=eL.has(ep(u)),n=c.reference[h]-c.floating[e]+(t&&(null==(o=s.offset)?void 0:o[h])||0)+(t?0:b.crossAxis),r=c.reference[h]+c.reference[e]+(t?0:(null==(i=s.offset)?void 0:i[h])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[v]:g,[h]:y}}}).fn,options:[e,t]}},tv=(e,t)=>
1{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:d}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=ed(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let b=ep(l),x=eg(s),E=ep(s)===s,R=await (null==f.isRTL?void 0:f.isRTL(d.floating)),C=h||(E||!y?[eR(s)]:function(e){let t=eR(e);return[ey(e),t,ey(t)]}(s)),S="none"!==g;!h&&S&&C.push(...function(e,t,n,r){let o=em(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?eb:ew;return t?ew:eb;case"left":case"right":return t?ex:eE;default:return[]}}(ep(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(ey)))),i}(s,y,g,R));let M=[s,...C],T=await f.detectOverflow(e,w),A=[],P=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&A.push(T[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=em(e),o=eh(eg(e)),i=ev(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=eR(a)),[a,eR(a)]}(l,c,R);A.push(T[e[0]],T[e[1]])}if(P=[...P,{placement:l,overflows:A}],!A.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=M[e];if(t&&(!("alignment"===m&&x!==eg(t))||P.every(e=>eg(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(i=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=P.filter(e=>{if(S){let t=eg(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},tg=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:a,elements:l}=e,{apply:u=()=>{},...c}=ed(n,e),s=await a.detectOverflow(e,c),f=ep(o),d=em(o),p="y"===eg(o),{width:m,height:h}=i.floating;"top"===f||"bottom"===f?(t=f,r=d===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(r=f,t="end"===d?"top":"bottom");let v=h-s.top-s.bottom,g=m-s.left-s.right,y=ea(h-s[t],v),w=ea(m-s[r],g),b=e.middlewareData.shift,x=y,E=w;null!=b&&b.enabled.x&&(E=g),null!=b&&b.enabled.y&&(x=v),b||d||(p?E=m-2*el(s.left,s.right):x=h-2*el(s.top,s.bottom)),await u({...e,availableWidth:E,availableHeight:x});let R=await a.getDimensions(l.floating);return m!==R.width||h!==R.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}},ty=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=ed(n,e);switch(o){case"referenceHidden":{let n=eP(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:eO(n)}}}case"escaped":{let n=eP(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:eO(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}},tw=(e,t)=>{let n=td(e);return{name:n.name,fn:n.fn,options:[e,t]}};var tb=p.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,y.jsx)(k.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,y.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tb.displayName="Arrow";var tx="Popper",[tE,tR]=w(tx),[tC,tS]=tE(tx),tM=e=>{let{__scopePopper:t,children:n}=e,[r,o]=p.useState(null),[i,a]=p.useState(void 0);return(0,y.jsx)(tC,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:a,children:n})};tM.displayName=tx;var tT="PopperAnchor",tA=p.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=tS(tT,n),a=p.useRef(null),l=i.onAnchorChange,u=g(t,p.useCallback(e=>{a.current=e,e&&l(e)},[l])),c=p.useRef(null);p.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&l(c.current)});let s=i.placementState&&tF(i.placementState),f=s?.[0],d=s?.[1];return r?null:(0,y.jsx)(k.div,{"data-radix-popper-side":f,"data-radix-popper-align":d,...o,ref:u})});tA.displayName=tT;
1var tP="PopperContent",[tO,tL]=tE(tP),tk=p.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:s=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:h,...v}=e,w=tS(tP,n),[x,E]=p.useState(null),C=g(t,E),[S,M]=p.useState(null),T=function(e){let[t,n]=p.useState(void 0);return b(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(S),A=T?.width??0,P=T?.height??0,O="number"==typeof s?s:{top:0,right:0,bottom:0,left:0,...s},L=Array.isArray(c)?c:[c],D=L.length>0,N={padding:O,boundary:L.filter(t_),altBoundary:D},{refs:j,floatingStyles:_,placement:F,isPositioned:W,middlewareData:B}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[s,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=p.useState(r);tu(d,r)||m(r);let[h,v]=p.useState(null),[g,y]=p.useState(null),w=p.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),b=p.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),x=i||h,E=a||g,C=p.useRef(null),S=p.useRef(null),M=p.useRef(s),T=null!=u,A=tf(u),P=tf(o),O=tf(c),L=p.useCallback(()=>{if(!C.current||!S.current)return;let e={placement:t,strategy:n,middleware:d};P.current&&(e.platform=P.current),ta(C.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};k.current&&!tu(M.current,t)&&(M.current=t,R.flushSync(()=>{f(t)}))})},[d,t,n,P,O]);tl(()=>{!1===c&&M.current.isPositioned&&(M.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let k=p.useRef(!1);tl(()=>(k.current=!0,()=>{k.current=!1}),[]),tl(()=>{if(x&&(C.current=x),E&&(S.current=E),x&&E){if(A.current)return A.current(x,E,L);L()}},[x,E,L,A,T]);let D=p.useMemo(()=>({reference:C,floating:S,setReference:w,setFloating:b}),[w,b]),N=p.useMemo(()=>({reference:x,floating:E}),[x,E]),j=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=ts(N.floating,s.x),r=ts(N.floating,s.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...tc(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,N.floating,s.x,s.y]);return p.useMemo(()=>({...s,update:L,refs:D,elements:N,floatingStyles:j}),[s,L,D,N,j])}({strategy:"fixed",placement:r+("center"!==i?"-"+i:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=e1(e),f=i||a?[...s?eJ(s):[],...t?eJ(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n),a&&e.addEventListener("resize",n)});let d=s&&u?function(e,t,n){let r,o=null,i=e_(e);function a(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function l(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),a();let c=e.getBoundingClientRect(),{left:s,top:f,width:d,height:p}=c;if(n||t(),!d||!p)return;let m=ec(f),h=ec(i.clientWidth-(s+d)),v={rootMargin:-m+"px "+-h+"px "+-ec(i.clientHeight-(f+p))+"px "+-ec(s)+"px",threshold:el(0,ea(1,u))||1},g=!0;function y(t){let n=t[0].intersectionRatio;if(!to(c,e.getBoundingClientRect()))return l();if(n!==u){if(!g)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,v)}o.observe(e)}let u=ej(e),c=()=>l(n);return u.addEventListener("resize",c),l(!0),()=>{u.removeEventListener("resize",c),a()}}(s,n,a):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),t&&m.observe(t));let h=c?e9(e):null;return c&&function t(){let r=e9(e);h&&!to(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1f.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===m}),elements:{reference:w.anchor},middleware:[tp({mainAxis:o+P,alignmentAxis:a}),u&&tm({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?th():void 0,...N}),u&&tv({...N}),tg({...N,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),S&&tw({element:S,padding:l}),tI({arrowWidth:A,arrowHeight:P}),d&&ty({strategy:"referenceHidden",...N,boundary:D?N.boundary:void 0})]}),$=w.setPlacementState;b(()=>($(F),()=>{$(void 0)}),[F,$]);let[K,V]=tF(F),H=I(h);b(()=>{W&&H?.()},[W,H]);let U=B.arrow?.x,z=B.arrow?.y,X=B.arrow?.centerOffset!==0,[Y,G]=p.useState();return b(()=>{x&&G(window.getComputedStyle(x).zIndex)},[x]),(0,y.jsx)("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:W?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,y.jsx)(tO,{scope:n,placedSide:K,placedAlign:V,onArrowChange:M,arrowX:U,arrowY:z,shouldHideArrow:X,children:(0,y.jsx)(k.div,{"data-side":K,"data-align":V,...v,ref:C,style:{...v.style,animation:W?void 0:"none"}})})})});tk.displayName=tP;var tD="PopperArrow",tN={top:"bottom",right:"left",bottom:"top",left:"right"},tj=p.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tL(tD,n),i=tN[o.placedSide];return(0,y.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,y.jsx)(tb,{...r,ref:t,style:{...r.style,display:"block"}})})});function t_(e){return null!==e}tj.displayName=tD;var tI=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=tF(n),s={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===u?(p=i?s:`${f}px`,m=`${-l}px`):"top"===u?(p=i?s:`${f}px`,m=`${r.floating.height+l}px`):"right"===u?(p=`${-l}px`,m=i?s:`${d}px`):"left"===u&&(p=`${r.floating.width+l}px`,m=i?s:`${d}px`),{data:{x:p,y:m}}}});function tF(e){let[t,n="center"]=e.split("-");return[t,n]}var tW=p.forwardRef((e,t)=>{let{container:n,...r}=e,[o,i]=p.useState(!1);b(()=>i(!0),[]);let a=n||o&&globalThis?.document?.body;return a?R.createPortal((0,y.jsx)(k.div,{...r,ref:t}),a):null});tW.displayName="Portal";var tB=e=>{let t,n;let{present:r,children:o}=e,i=function(e){var t,n;let[r,o]=p.useState(),i=p.useRef(null),a=p.useRef(e),l=p.useRef("none"),u=p.useRef(void 0),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},p.useReducer((e,t)=>n[e][t]??e,t));return p.useEffect(()=>{"mounted"===c?(l.current=u.current??tK(i.current),u.current=void 0):l.current="none"},[c]),b(()=>{let t=i.current,n=a.current;if(n!==e){let r=l.current,o=tK(t);e?(u.current=o,s("MOUNT")):"none"===o||t?.display==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),a.current=e}},[e,s]),b(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let o=tK(i.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(s("ANIMATION_END"),!a.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(l.current=tK(i.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);i.current=t,u.current=tK(t)}else i.current=null;o(e)},[])}}(r),a="function"==typeof o?o({present:i.isPresent}):p.Children.only(o),l=function(...e){let t=p.useRef(e);return t.current=e,p.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=t$(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;
1e++){let t=o[e];"function"==typeof t?t():t$(n[e],null)}}},[])}(i.ref,(t=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.ref:(t=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?a.props.ref:a.props.ref||a.ref);return"function"==typeof o||i.isPresent?p.cloneElement(a,{ref:l}):null};function t$(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tK(e){return e?.animationName||"none"}tB.displayName="Presence";var tV=!1,tH=m[" useSyncExternalStore ".trim().toString()];function tU(){return()=>{}}var tz="function"==typeof tH?function(){return tH(tU,()=>!0,()=>!1)}:function(){let[e,t]=p.useState(tV);return p.useEffect(()=>{tV||(tV=!0,t(!0))},[]),e},tX="rovingFocusGroup.onEntryFocus",tY={bubbles:!1,cancelable:!0},tG="RovingFocusGroup",[tZ,tq,tJ]=N(tG),[tQ,t0]=w(tG,[tJ]),[t1,t2]=tQ(tG),t5=p.forwardRef((e,t)=>(0,y.jsx)(tZ.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(tZ.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(t3,{...e,ref:t})})}));t5.displayName=tG;var t3=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:s=!1,...f}=e,d=p.useRef(null),m=g(t,d),v=_(i),[w,b]=E({prop:a,defaultProp:l??null,onChange:u,caller:tG}),[x,R]=p.useState(!1),C=I(c),S=tq(n),M=p.useRef(!1),[T,A]=p.useState(0);return p.useEffect(()=>{let e=d.current;if(e)return e.addEventListener(tX,C),()=>e.removeEventListener(tX,C)},[C]),(0,y.jsx)(t1,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:w,onItemFocus:p.useCallback(e=>b(e),[b]),onItemShiftTab:p.useCallback(()=>R(!0),[]),onFocusableItemAdd:p.useCallback(()=>A(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>A(e=>e-1),[]),children:(0,y.jsx)(k.div,{tabIndex:x||0===T?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:h(e.onMouseDown,()=>{M.current=!0}),onFocus:h(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(tX,tY);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);t8([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),s)}}M.current=!1}),onBlur:h(e.onBlur,()=>R(!1))})})}),t9="RovingFocusGroupItem",t4=p.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...l}=e,u=eo(),c=i||u,s=t2(t9,n),f=s.currentTabStopId===c,d=tq(n),{onFocusableItemAdd:m,onFocusableItemRemove:v,currentTabStopId:g}=s,w=tz();return b(()=>{if(w&&r)return m(),()=>v()},[w,r,m,v]),p.useEffect(()=>{if(!w&&r)return m(),()=>v()},[w,r,m,v]),(0,y.jsx)(tZ.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:(0,y.jsx)(k.span,{tabIndex:f?0:-1,"data-orientation":s.orientation,...l,ref:t,onMouseDown:h(e.onMouseDown,e=>{r?s.onItemFocus(c):e.preventDefault()}),onFocus:h(e.onFocus,()=>s.onItemFocus(c)),onKeyDown:h(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return t7[o]}(e,s.orientation,s.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=d().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>t8(o))}}),children:"function"==typeof a?a({isCurrentTabStop:f,hasTabStop:null!=g}):a})})});t4.displayName=t9;var t7={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function t8(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var t6=new WeakMap,ne=new WeakMap,nt={},nn=0,nr=function(e){return e&&(e.host||nr(e.parentNode))},no=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=nr(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});nt[n]||(nt[n]=new WeakMap);var i=nt[n],a=[],l=new Set,u=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(t6.get(e)||0)+1,c=(i.get(e)||0)+1;t6.set(e,u),i.set(e,c),a.push(e),1===u&&o&&ne.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),nn++,function(){a.forEach(function(e){var t=t6.get(e)-1,o=i.get(e)-1;t6.set(e,t),i.set(e,o),t||(ne.has(e)||e.removeAttribute(r),ne.delete(e)),o||e.removeAttribute(n)}),--nn||(t6=new WeakMap,t6=new WeakMap,ne=new WeakMap,nt={})}},ni=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),no(r,o,n,"aria-hidden")):function(){return null}},na=function(){return(na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function nl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var nu="right-scroll-bar-position",nc="width-before-scroll-bar";function ns(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nf="undefined"!=typeof window?p.useLayoutEffect:p.useEffect,nd=new WeakMap,np=(void 0===i&&(i={}),(void 0===a&&(a=function(e){return e}),l=[],u=!1,c={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=a(e,u);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){u=!0;var t=[];if(l.length){var n=l;
1l=[],n.forEach(e),t=l}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),l={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),l}}}}).options=na({async:!0,ssr:!1},i),c),nm=function(){},nh=p.forwardRef(function(e,t){var n,r,o,i,a=p.useRef(null),l=p.useState({onScrollCapture:nm,onWheelCapture:nm,onTouchMoveCapture:nm}),u=l[0],c=l[1],s=e.forwardProps,f=e.children,d=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,R=e.gapMode,C=nl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return ns(t,e)})},(o=(0,p.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,nf(function(){var e=nd.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||ns(e,null)}),r.forEach(function(e){t.has(e)||ns(e,o)})}nd.set(i,n)},[n]),i),M=na(na({},C),u);return p.createElement(p.Fragment,null,h&&p.createElement(g,{sideCar:np,removeScrollBar:m,shards:v,noRelative:y,noIsolation:w,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:a,gapMode:R}),s?p.cloneElement(p.Children.only(f),na(na({},M),{ref:S})):p.createElement(void 0===E?"div":E,na({},M,{className:d,ref:S}),f))});nh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nh.classNames={fullWidth:nc,zeroRight:nu};var nv=function(e){var t=e.sideCar,n=nl(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,na({},n))};nv.isSideCarExport=!0;var ng=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ny=function(){var e=ng();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nw=function(){var e=ny();return function(t){return e(t.styles,t.dynamic),null}},nb={left:0,top:0,right:0,gap:0},nx=function(e){return parseInt(e||"",10)||0},nE=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[nx(n),nx(r),nx(o)]},nR=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return nb;var t=nE(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])}},nC=nw(),nS="data-scroll-locked",nM=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(nS,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(nu," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(nc," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(nu," .").concat(nu," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(nc," .").concat(nc," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(nS,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},nT=function(){var e=parseInt(document.body.getAttribute(nS)||"0",10);return isFinite(e)?e:0},nA=function(){p.useEffect(function(){return document.body.setAttribute(nS,(nT()+1).toString()),function(){var e=nT()-1;e<=0?document.body.removeAttribute(nS):document.body.setAttribute(nS,e.toString())}},[])},nP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;nA();var i=p.useMemo(function(){return nR(o)},[o]);return p.createElement(nC,{styles:nM(i,!t,o,n?"":"!important")})},nO=!1;if("undefined"!=typeof window)try{var nL=Object.defineProperty({},"passive",{get:function(){return nO=!0,!0}});window.addEventListener("test",nL,nL),window.removeEventListener("test",nL,nL)}catch(e){nO=!1}var nk=!!nO&&{passive:!1},nD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},nN=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nj(e,r)){var o=n_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},nj=function(e,t){return"v"===e?nD(t,"overflowY"):nD(t,"overflowX")},n_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nI=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,c=t.contains(u),s=!1,f=l>0,d=0,p=0;
1do{if(!u)break;var m=n_(e,u),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&nj(e,u)&&(d+=v,p+=h);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(d)||!o&&l>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},nF=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nW=function(e){return[e.deltaX,e.deltaY]},nB=function(e){return e&&"current"in e?e.current:e},n$=0,nK=[],nV=(s=function(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(n$++)[0],i=p.useState(nw)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nB),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=nF(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,f=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var m=nN(f,s);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=nN(f,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var h=r.current||o;return nI(h,t,e,"h"===h?u:c,!0)},[]),u=p.useCallback(function(e){if(nK.length&&nK[nK.length-1]===i){var n="deltaY"in e?nW(e):nF(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(nB).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=p.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),s=p.useCallback(function(e){n.current=nF(e),r.current=void 0},[]),f=p.useCallback(function(t){c(t.type,nW(t),t.target,l(t,e.lockRef.current))},[]),d=p.useCallback(function(t){c(t.type,nF(t),t.target,l(t,e.lockRef.current))},[]);p.useEffect(function(){return nK.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",u,nk),document.addEventListener("touchmove",u,nk),document.addEventListener("touchstart",s,nk),function(){nK=nK.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,nk),document.removeEventListener("touchmove",u,nk),document.removeEventListener("touchstart",s,nk)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?p.createElement(nP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},np.useMedium(s),nv),nH=p.forwardRef(function(e,t){return p.createElement(nh,na({},e,{ref:t,sideCar:nV}))});nH.classNames=nh.classNames;var nU=["Enter"," "],nz=["ArrowUp","PageDown","End"],nX=["ArrowDown","PageUp","Home",...nz],nY={ltr:[...nU,"ArrowRight"],rtl:[...nU,"ArrowLeft"]},nG={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nZ="Menu",[nq,nJ,nQ]=N(nZ),[n0,n1]=w(nZ,[nQ,tR,t0]),n2=tR(),n5=t0(),[n3,n9]=n0(nZ),[n4,n7]=n0(nZ),n8=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:
1a=!0}=e,l=n2(t),[u,c]=p.useState(null),s=p.useRef(!1),f=I(i),d=_(o);return p.useEffect(()=>{let e=()=>{s.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>s.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),p.useEffect(()=>{if(!n)return;let e=()=>f(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,f]),(0,y.jsx)(tM,{...l,children:(0,y.jsx)(n3,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:c,children:(0,y.jsx)(n4,{scope:t,onClose:p.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:s,dir:d,modal:a,children:r})})})};n8.displayName=nZ;var n6=p.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=n2(n);return(0,y.jsx)(tA,{...o,...r,ref:t})});n6.displayName="MenuAnchor";var re="MenuPortal",[rt,rn]=n0(re,{forceMount:void 0}),rr=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=n9(re,t);return(0,y.jsx)(rt,{scope:t,forceMount:n,children:(0,y.jsx)(tB,{present:n||i.open,children:(0,y.jsx)(tW,{asChild:!0,container:o,children:r})})})};rr.displayName=re;var ro="MenuContent",[ri,ra]=n0(ro),rl=p.forwardRef((e,t)=>{let n=rn(ro,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=n9(ro,e.__scopeMenu),a=n7(ro,e.__scopeMenu);return(0,y.jsx)(nq.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(tB,{present:r||i.open,children:(0,y.jsx)(nq.Slot,{scope:e.__scopeMenu,children:a.modal?(0,y.jsx)(ru,{...o,ref:t}):(0,y.jsx)(rc,{...o,ref:t})})})})}),ru=p.forwardRef((e,t)=>{let n=n9(ro,e.__scopeMenu),r=p.useRef(null),o=g(t,r);return p.useEffect(()=>{let e=r.current;if(e)return ni(e)},[]),(0,y.jsx)(rf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:h(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),rc=p.forwardRef((e,t)=>{let n=n9(ro,e.__scopeMenu);return(0,y.jsx)(rf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),rs=C("MenuContent.ScrollLock"),rf=p.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:d,onDismiss:m,disableOutsideScroll:v,...w}=e,b=n9(ro,n),x=n7(ro,n),E=n2(n),R=n5(n),C=nJ(n),[S,M]=p.useState(null),T=p.useRef(null),A=g(t,T,b.onContentChange),P=p.useRef(0),O=p.useRef(""),L=p.useRef(0),k=p.useRef(null),D=p.useRef("right"),N=p.useRef(0),j=v?nH:p.Fragment,_=e=>{let t=O.current+e,n=C().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(n.map(e=>e.textValue),t,o),a=n.find(e=>e.textValue===i)?.ref.current;!function e(t){O.current=t,window.clearTimeout(P.current),""!==t&&(P.current=window.setTimeout(()=>e(""),1e3))}(t),a&&setTimeout(()=>a.focus())};p.useEffect(()=>()=>window.clearTimeout(P.current),[]),p.useEffect(()=>{U||(U={start:z(),end:z()});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),H++,()=>{1===H&&(U?.start.remove(),U?.end.remove(),U=null),H=Math.max(0,H-1)}},[]);let I=p.useCallback(e=>{var t;return D.current===k.current?.side&&!!(t=k.current?.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],l=t[i],u=a.x,c=a.y,s=l.x,f=l.y;c>r!=f>r&&n<(s-u)*(r-c)/(f-c)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)},[]);return(0,y.jsx)(ri,{scope:n,searchRef:O,onItemEnter:p.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:p.useCallback(e=>{I(e)||(T.current?.focus(),M(null))},[I]),onTriggerLeave:p.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:L,onPointerGraceIntentChange:p.useCallback(e=>{k.current=e},[]),children:(0,y.jsx)(j,{...v?{as:rs,allowPinchZoom:!0}:void 0,children:(0,y.jsx)(Z,{asChild:!0,trapped:o,onMountAutoFocus:h(i,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:(0,y.jsx)(B,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:f,onInteractOutside:d,onDismiss:m,children:(0,y.jsx)(t5,{asChild:!0,...R,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:M,onEntryFocus:h(u,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,y.jsx)(tk,{role:"menu","aria-orientation":"vertical","data-state":rI(b.open),"data-radix-menu-content":"",dir:x.dir,...E,...w,ref:A,style:{outline:"none",...w.style},onKeyDown:h(w.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.ke
1y.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&_(e.key));let o=T.current;if(e.target!==o||!nX.includes(e.key))return;e.preventDefault();let i=C().filter(e=>!e.disabled).map(e=>e.ref.current);nz.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:h(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(P.current),O.current="")}),onPointerMove:h(e.onPointerMove,rB(e=>{let t=e.target,n=N.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>N.current?"right":"left";D.current=t,N.current=e.clientX}}))})})})})})})});rl.displayName=ro;var rd=p.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,y.jsx)(k.div,{role:"group",...r,ref:t})});rd.displayName="MenuGroup";var rp=p.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,y.jsx)(k.div,{...r,ref:t})});rp.displayName="MenuLabel";var rm="MenuItem",rh="menu.itemSelect",rv=p.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,i=p.useRef(null),a=n7(rm,e.__scopeMenu),l=ra(rm,e.__scopeMenu),u=g(t,i),c=p.useRef(!1);return(0,y.jsx)(rg,{...o,ref:u,disabled:n,onClick:h(e.onClick,()=>{let e=i.current;if(!n&&e){let t=new CustomEvent(rh,{bubbles:!0,cancelable:!0});e.addEventListener(rh,e=>r?.(e),{once:!0}),D(e,t),t.defaultPrevented?c.current=!1:a.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),c.current=!0},onPointerUp:h(e.onPointerUp,e=>{c.current||e.currentTarget?.click()}),onKeyDown:h(e.onKeyDown,e=>{!n&&e.target===e.currentTarget&&(""===l.searchRef.current||" "!==e.key)&&nU.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});rv.displayName=rm;var rg=p.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=ra(rm,n),l=n5(n),u=p.useRef(null),c=g(t,u),[s,f]=p.useState(!1),[d,m]=p.useState("");return p.useEffect(()=>{let e=u.current;e&&m((e.textContent??"").trim())},[i.children]),(0,y.jsx)(nq.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:(0,y.jsx)(t4,{asChild:!0,...l,focusable:!r,children:(0,y.jsx)(k.div,{role:"menuitem","data-highlighted":s?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:h(e.onPointerMove,rB(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:h(e.onPointerLeave,rB(e=>a.onItemLeave(e))),onFocus:h(e.onFocus,()=>f(!0)),onBlur:h(e.onBlur,()=>f(!1))})})})}),ry=p.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,y.jsx)(rM,{scope:e.__scopeMenu,checked:n,children:(0,y.jsx)(rv,{role:"menuitemcheckbox","aria-checked":rF(n)?"mixed":n,...o,ref:t,"data-state":rW(n),onSelect:h(o.onSelect,()=>r?.(!!rF(n)||!n),{checkForDefaultPrevented:!1})})})});ry.displayName="MenuCheckboxItem";var rw="MenuRadioGroup",[rb,rx]=n0(rw,{value:void 0,onValueChange:()=>{}}),rE=p.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=I(r);return(0,y.jsx)(rb,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,y.jsx)(rd,{...o,ref:t})})});rE.displayName=rw;var rR="MenuRadioItem",rC=p.forwardRef((e,t)=>{let{value:n,...r}=e,o=rx(rR,e.__scopeMenu),i=n===o.value;return(0,y.jsx)(rM,{scope:e.__scopeMenu,checked:i,children:(0,y.jsx)(rv,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":rW(i),onSelect:h(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});rC.displayName=rR;var rS="MenuItemIndicator",[rM,rT]=n0(rS,{checked:!1}),rA=p.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=rT(rS,n);return(0,y.jsx)(tB,{present:r||rF(i.checked)||!0===i.checked,children:(0,y.jsx)(k.span,{...o,ref:t,"data-state":rW(i.checked)})})});rA.displayName=rS;var rP=p.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,y.jsx)(k.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});rP.displayName="MenuSeparator";var rO=p.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=n2(n);return(0,y.jsx)(tj,{...o,...r,ref:t})});rO.displayName="MenuArrow";var[rL,rk]=n0("MenuSub"),rD="MenuSubTrigger",rN=p.forwardRef((e,t)=>{let n=n9(rD,e.__scopeMenu),r=n7(rD,e.__scopeMenu),o=rk(rD,e.__scopeMenu),i=ra(rD,e.__scopeMenu),a=p.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=i,c={__scopeMenu:e.__scopeMenu},s=p.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);p.useEffect(()=>s,[s]),p.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]);let f=g(t,o.onTriggerChange);return(0,y.jsx)(n6,{asChild:!0,...c,children:(0,y.jsx)(rg,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?o.contentId:void 0,"data-state":rI(n.open),...e,ref:f,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focu
1s(),n.open||n.onOpenChange(!0))},onPointerMove:h(e.onPointerMove,rB(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),s()},100))})),onPointerLeave:h(e.onPointerLeave,rB(e=>{s();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,o="right"===r,a=t[o?"left":"right"],u=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:a,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:h(e.onKeyDown,t=>{!e.disabled&&t.target===t.currentTarget&&(""===i.searchRef.current||" "!==t.key)&&nY[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});rN.displayName=rD;var rj="MenuSubContent",r_=p.forwardRef((e,t)=>{let n=rn(ro,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...i}=e,a=n9(ro,e.__scopeMenu),l=n7(ro,e.__scopeMenu),u=rk(rj,e.__scopeMenu),c=p.useRef(null),s=g(t,c);return(0,y.jsx)(nq.Provider,{scope:e.__scopeMenu,children:(0,y.jsx)(tB,{present:r||a.open,children:(0,y.jsx)(nq.Slot,{scope:e.__scopeMenu,children:(0,y.jsx)(rf,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:s,align:o,side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&c.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:h(e.onFocusOutside,e=>{e.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:h(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:h(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=nG[l.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function rI(e){return e?"open":"closed"}function rF(e){return"indeterminate"===e}function rW(e){return rF(e)?"indeterminate":e?"checked":"unchecked"}function rB(e){return t=>"mouse"===t.pointerType?e(t):void 0}r_.displayName=rj;var r$="DropdownMenu",[rK,rV]=w(r$,[n1]),rH=n1(),[rU,rz]=rK(r$),rX=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!0}=e,u=rH(t),c=p.useRef(null),[s,f]=E({prop:o,defaultProp:i??!1,onChange:a,caller:r$});return(0,y.jsx)(rU,{scope:t,triggerId:eo(),triggerRef:c,contentId:eo(),open:s,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),modal:l,children:(0,y.jsx)(n8,{...u,open:s,onOpenChange:f,dir:r,modal:l,children:n})})};rX.displayName=r$;var rY="DropdownMenuTrigger",rG=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=rz(rY,n),a=rH(n),l=g(t,i.triggerRef);return(0,y.jsx)(n6,{asChild:!0,...a,children:(0,y.jsx)(k.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:l,onPointerDown:h(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:h(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});rG.displayName=rY;var rZ=e=>{let{__scopeDropdownMenu:t,...n}=e,r=rH(t);return(0,y.jsx)(rr,{...r,...n})};rZ.displayName="DropdownMenuPortal";var rq="DropdownMenuContent",rJ=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rz(rq,n),i=rH(n),a=p.useRef(!1);return(0,y.jsx)(rl,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:h(e.onCloseAutoFocus,e=>{a.current||o.triggerRef.current?.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:h(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rJ.displayName=rq,p.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rd,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rp,{...o,...r,ref:t})}).displayName="DropdownMenuLabel",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rv,{...o,...r,ref:t})}).displayName="DropdownMenuItem",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(ry,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem";var rQ=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rE,{...o,...r,ref:t})});rQ.displayName="DropdownMenuRadioGroup";var r0=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rC,{...o,...r,ref:t})});r0.displayName="DropdownMenuRadioItem";var r1=p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rA,{...o,...r,ref:t})});r1.displayName="DropdownMenuItemIndicator",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rP,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rO,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(rN,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",p.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=rH(n);return(0,y.jsx)(r_,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var r2=rX,r5=rG,r3=rZ,r9=rJ,r4=rQ,r7=r0,r8=r1}}]);

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.