1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,939162,e=>{"use strict";var t,n=e.i(191788),r=e.i(671185),o=Object.defineProperty,i=(e,t)=>o(e,"name",{value:t,configurable:!0});function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(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():u(e[t],null)}}}}function s(...e){return n.useCallback(a(...e),e)}i(u,"setRef"),i(a,"composeRefs"),i(s,"useComposedRefs");var l=e.i(391398),c=Object.defineProperty,d=(e,t)=>c(e,"name",{value:t,configurable:!0});function f(e,t=[]){let r=[];function o(t,o){let i=n.createContext(o);i.displayName=t+"Context";let u=r.length;r=[...r,o];let a=d(t=>{let{scope:r,children:o,...a}=t,s=r?.[e]?.[u]||i,c=n.useMemo(()=>a,Object.values(a));return(0,l.jsx)(s.Provider,{value:c,children:o})},"Provider");function s(r,a,l={}){let{optional:c=!1}=l,d=a?.[e]?.[u]||i,f=n.useContext(d);if(f)return f;if(void 0!==o)return o;if(!c)throw Error(`\`${r}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",d(s,"useContext"),[a,s]}d(o,"createContext");let i=d(()=>{let t=r.map(e=>n.createContext(e));return d(function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])},"useScope")},"createScope");return i.scopeName=e,[o,p(i,...t)]}function p(...e){let t=e[0];if(1===e.length)return t;let r=d(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return d(function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}d(function(e,t){let r=n.createContext(t);r.displayName=e+"Context";let o=d(e=>{let{children:t,...o}=e,i=n.useMemo(()=>o,Object.values(o));return(0,l.jsx)(r.Provider,{value:i,children:t})},"Provider");function i(o,u={}){let{optional:a=!1}=u,s=n.useContext(r);if(s)return s;if(void 0!==t)return t;if(!a)throw Error(`\`${o}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",d(i,"useContext"),[o,i]},"createContext"),d(f,"createContextScope"),d(p,"composeContextScopes");var m=e.i(730943),v=e.i(817549),h=Object.defineProperty,b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,v.createSlot)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?r:t,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function g(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}function y(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}h(g,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(y,"name",{value:"useCallbackRef",configurable:!0});var E=Object.defineProperty,P=(e,t)=>E(e,"name",{value:t,configurable:!0}),w="dismissableLayer.update",x=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),C=n.forwardRef(P(function(e,o){let{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:u=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...m}=e,v=n.useContext(x),[h,g]=n.useState(null),E=h?.ownerDocument??globalThis?.document,[,C]=n.useState({}),O=s(o,g),j=Array.from(v.layers),[N]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),T=N?j.indexOf(N):-1,L=h?j.indexOf(h):-1,D=v.layersWithOutsidePointerEventsDisabled.size>0,F=L>=T,k=n.useRef(!1),I=S(e=>{c?.(e),f?.(e),e.defaultPrevented||p?.()},{ownerDocument:E,deferPointerDownOutside:u,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:v.dismissableSurfaces,shouldHandlePointerDownOutside:n.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...v.branches].some(t=>t.contains(e));return F&&!t},[v.branches,F])}),M=R(e=>{if(u&&k.current)return;let t=e.target;![...v.branches].some(e=>e.contains(t))&&(d?.(e),f?.(e),e.defaultPrevented||p?.())},E),_=!!h&&L===j.length-1,$=y(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))});return n.useEffect(()=>{if(_)return E.addEventListener("keydown",$,{capture:!0}),()=>E.removeEventListener("keydown",$,{capture:!0})},[E,_,$]),n.useEffect(()=>{if(h)return i&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(t=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(h)),v.layers.add(h),A(),()=>{i&&(v.layersWithOutsidePointerEventsDisabled.delete(h),0===v.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=t))}},[h,E,i,v]),n.useEffect(()=>()=>{h&&(v.layers.delete(h),v.layersWithOutsidePointerEventsDisabled.delete(h),A())},[h,v]),n.useEffect(()=>{let e=P(()=>C({}),"handleUpdate");return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,l.jsx)(b.div,{...m,ref:O,style:{pointerEvents:D?F?"auto":"none":void 0,...e.style},onFocusCapture:(0,r.composeEventHandlers)(e.onFocusCapture,M.onFocusCapture),onBlurCapture:(0,r.composeEventHandlers)(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:(0,r.composeEventHandlers)(e.onPointerDownCapture,I.onPointerDownCapture)})},"DismissableLayer"));P(function(){let e=n.useContext(x),[t,r]=n.useState(null);return n.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r},"useDismissableLayerSurface");var O=P(()=>!0,"IS_TRUE");function S(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:u,shouldHandlePointerDownOutside:a=O}
1=t,s=y(e),l=n.useRef(!1),c=n.useRef(!1),d=n.useRef(new Map),f=n.useRef(()=>{});return n.useEffect(()=>{function e(){c.current=!1,i.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function n(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...u].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&f.current()},0)}function p(e){c.current&&d.current.set(e.type,!1)}P(e,"resetOutsideInteraction"),P(t,"isOutsideInteractionIntercepted"),P(n,"handleInteractionCapture"),P(p,"handleInteractionBubble");let m=P(n=>{if(n.target&&!l.current){let u=function(){r.removeEventListener("click",f.current);let n=t();e(),n||j("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if(P(u,"handleAndDispatchPointerDownOutsideEvent"),!a(n.target)){r.removeEventListener("click",f.current),e(),l.current=!1;return}let p={originalEvent:n};c.current=!0,i.current=o&&0===n.button,d.current.clear(),o&&0===n.button?(r.removeEventListener("click",f.current),f.current=u,r.addEventListener("click",f.current,{once:!0})):u()}else r.removeEventListener("click",f.current),e();l.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)r.addEventListener(e,n,!0),r.addEventListener(e,p);let h=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(h),r.removeEventListener("pointerdown",m),r.removeEventListener("click",f.current),v))r.removeEventListener(e,n,!0),r.removeEventListener(e,p)}},[r,s,o,i,u,a]),{onPointerDownCapture:P(()=>l.current=!0,"onPointerDownCapture")}}function R(e,t=globalThis?.document){let r=y(e),o=n.useRef(!1);return n.useEffect(()=>{let e=P(e=>{e.target&&!o.current&&j("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:P(()=>o.current=!0,"onFocusCapture"),onBlurCapture:P(()=>o.current=!1,"onBlurCapture")}}function A(){let e=new CustomEvent(w);document.dispatchEvent(e)}function j(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?g(o,i):o.dispatchEvent(i)}P(S,"usePointerDownOutside"),P(R,"useFocusOutside"),P(A,"dispatchUpdate"),P(j,"handleAndDispatchCustomEvent");var N=Object.defineProperty,T=(e,t)=>N(e,"name",{value:t,configurable:!0}),L=0,D=null;function F(){n.useEffect(()=>{D||(D={start:k(),end:k()});let{start:e,end:t}=D;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),L++,()=>{1===L&&(D?.start.remove(),D?.end.remove(),D=null),L=Math.max(0,L-1)}},[])}function k(){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}function I(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}T(function(e){return F(),e.children},"FocusGuards"),T(F,"useFocusGuards"),T(k,"createFocusGuard"),(0,Object.defineProperty)(I,"name",{value:"useCallbackRef",configurable:!0});var M=Object.defineProperty,_=(e,t)=>
1M(e,"name",{value:t,configurable:!0}),$="focusScope.autoFocusOnMount",U="focusScope.autoFocusOnUnmount",H={bubbles:!1,cancelable:!0},W=n.forwardRef(_(function(e,t){let{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:u,...a}=e,[c,d]=n.useState(null),f=I(i),p=I(u),m=n.useRef(null),v=s(t,d),h=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(o){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?m.current=t:X(m.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;null!==t&&(c.contains(t)||X(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&X(c)};_(e,"handleFocusIn"),_(t,"handleFocusOut"),_(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,c,h.paused]),n.useEffect(()=>{if(c){Z.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent($,H);c.addEventListener($,f),c.dispatchEvent(t),t.defaultPrevented||(z(Q(K(c)),{select:!0}),document.activeElement===e&&X(c))}return()=>{c.removeEventListener($,f),setTimeout(()=>{let t=new CustomEvent(U,H);c.addEventListener(U,p),c.dispatchEvent(t),t.defaultPrevented||X(e??document.body,{select:!0}),c.removeEventListener(U,p),Z.remove(h)},0)}}},[c,f,p,h]);let g=n.useCallback(e=>{if(!r&&!o||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,i]=B(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&X(i,{select:!0})):(e.preventDefault(),r&&X(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return(0,l.jsx)(b.div,{tabIndex:-1,...a,ref:v,onKeyDown:g})},"FocusScope"));function z(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(X(r,{select:t}),document.activeElement!==n)return}function B(e){let t=K(e);return[V(t,e),V(t.reverse(),e)]}function K(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function V(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Y(r,{upTo:t})))return r}function Y(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}function G(e){return e instanceof HTMLInputElement&&"select"in e}function X(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&G(e)&&t&&e.select()}}_(z,"focusFirst"),_(B,"getTabbableEdges"),_(K,"getTabbableCandidates"),_(V,"findVisible"),_(Y,"isHidden"),_(G,"isSelectableInput"),_(X,"focus");var Z=q();function q(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=J(e,t)).unshift(t)},remove(t){e=J(e,t),e[0]?.resume()}}}function J(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function Q(e){return e.filter(e=>"A"!==e.tagName)}_(q,"createFocusScopesStack"),_(J,"arrayRemove"),_(Q,"removeLinks");var ee=globalThis?.document?n.useLayoutEffect:()=>{},et=Object.defineProperty,en=n[" useId ".trim().toString()]||(()=>void 0),er=0;function eo(e){let[t,r]=n.useState(en());return ee(()=>{e||r(e=>e??String(er++))},[e]),e||(t?`radix-${t}`:"")}et(eo,"name",{value:"useId",configurable:!0});var ei=e.i(195600),eu=e.i(95963),ea=Object.defineProperty,es=n.forwardRef(ea(function(e,t){let{children:n,width:r=10,height:o=5,...i}=e;return(0,l.jsx)(b.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0}));function el(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(el,"name",{value:"useCallbackRef",configurable:!0});var ec=globalThis?.document?n.useLayoutEffect:()=>{};function ed(e){let[t,r]=n.useState(void 0);return ec(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,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;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(0,Object.defineProperty)(ed,"name",{value:"useSize",configurable:!0});var ef=Object.defineProperty,ep=(e,t)=>ef(e,"name",{value:t,configurable:!0}),em="Popper",[ev,eh]=f(em),[eb,eg]=ev(em),ey=ep(e=>{let{__scopePopper:t,children:r}=e,[o,i]=n.useState(null),[u,a]=n.useState(void 0);return(0,l.jsx)(eb,{scope:t,anchor:o,onAnchorChange:i,placementState:u,setPlacementState:a,children:r})},"Popper"),eE=n.forwardRef(ep(function(e,t){let{__scopePopper:r,virtualRef:o,...i}=e,u=eg("PopperAnchor",r),a=n.useRef(null),c=u.onAnchorChange,d=s(t,n.useCallback(e=>{a.current=e,e&&c(e)},[c])),f=n.useRef(null);n.useEffect(()=>{if(!o)return;let e=f.current;f.current=o.current,e!==f.current&&c(f.current)});let p=u.placementState&&ej(u.placementState),m=p?.[0],v=p?.[1];return o?null:(0,l.jsx)(b.div,{"data-radix-popper-side":m,"data-radix-popper-align":v,...i,ref:d})},"PopperAnchor")),eP="PopperContent",[ew,ex]=ev(eP),eC=n.forwardRef(ep(function(e,t){let{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:u="center",alignOffset:a=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:g,...y}=e,E=eg(eP,r),[P,w]=n.useState(null),x=s(t,w),[C,O]=n.useState(null),S=ed(C),R=S?.width??0,A=S?.height??0,j="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},N=Array.isArray(f)?f:[f],T=N.length>0,L={padding:j,boundary:N.filter(eR),altBoundary:T},{refs:D,floatingStyles:F,placement:k,isPositioned:I,middlewareData:M}=(0,ei.useFloating)({strategy:"fixed",placement:o+("center"!==u?"-"+u:""),whileElementsMounted:ep((...e)=>(0,eu.autoUpdate)(...e,{animationFrame:"always"===h}),"whileElementsMounted"),elements:{reference:E.anchor},middleware:[(0,ei.offset)({mainAxis:i+A,alignmentAxis:a}),d&&(0,ei.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?(0,ei.limitShift)():void 0,...L}),d&&(0,ei.flip)({...L}),(0,ei.size)({...L,apply:ep(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,u=e.floating.style;u.setProperty("--radix-popper-available-width",`${n}px`),u.setProperty("--radix-popper-available-height",`${r}px`),u.setProperty("--radix-popper-anchor-width",`${o}px`),u.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),C&&(0,ei.arrow)({element:C,padding:c}),eA({arrowWidth:R,arrowHeight:A}),v&&(0,ei.hide)({strategy:"referenceHidden",...L,boundary:T?L.boundary:void 0})]}),_=E.setPlacementState;ec(()=>(_(k),()=>{_(void 0)}),[k,_]);let[$,U]=ej(k),H=el(g);ec(()=>{I&&H?.()},[I,H]);let W=M.arrow?.x,z=M.arrow?.y,B=M.arrow?.centerOffset!==0,[K,V]=n.useState();return ec(()=>{P&&V(window.getComputedStyle(P).zIndex)},[P]),(0,l.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:I?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,l.jsx)(ew,{scope:r,placedSide:$,placedAlign:U,onArrowChange:O,arrowX:W,arrowY:z,shouldHideArrow:B,children:(0,l.jsx)(b.div,{"data-side":$,"data-align":U,...y,ref:x,style:{...y.style,animation:I?y.style?.animation:"none"}})})})},"PopperContent")),eO={top:"bottom",right:"left",bottom:"top",left:"right"},eS=n.forwardRef(ep(function(e,t){let{__scopePopper:n,...r}=e,o=ex("PopperArrow",n),i=eO[o.placedSide];return(0,l.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,l.jsx)(es,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function eR(e){return null!==e}ep(eR,"isNotNull");var eA=ep(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,u=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,l]=ej(n),c={start:"0%",center:"50%",end:"100%"}[l],d=(o.arrow?.x??0)+u/2,f=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===s?(p=i?c:`${d}px`,m=`${-a}px`):"top"===s?(p=i?c:`${d}px`,m=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,m=i?c:`${f}px`):"left"===s&&(p=`${r.floating.width+a}px`,m=i?c:`${f}px`),{data:{x:p,y:m}}}}),"transformOrigin");function ej(e){let[t,n="center"]=e.split("-");return[t,n]}ep(ej,"getSideAndAlignFromPlacement");var eN=globalThis?.document?n.useLayoutEffect:()=>{},eT=Object.defineProperty,eL=n.forwardRef(eT(function(e,t){let{c
1ontainer:r,...o}=e,[i,u]=n.useState(!1);eN(()=>u(!0),[]);let a=r||i&&globalThis?.document?.body;return a?m.createPortal((0,l.jsx)(b.div,{...o,ref:t}),a):null},"name",{value:"Portal",configurable:!0})),eD=globalThis?.document?n.useLayoutEffect:()=>{},eF=Object.defineProperty,ek=(e,t)=>eF(e,"name",{value:t,configurable:!0});function eI(e,t){return n.useReducer((e,n)=>t[e][n]??e,e)}ek(eI,"useStateMachine");var eM=ek(e=>{let{present:t,children:r}=e,o=e_(t),i="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),u=eU(o.ref,eW(i));return"function"==typeof r||o.isPresent?n.cloneElement(i,{ref:u}):null},"Presence");function e_(e){let[t,r]=n.useState(),o=n.useRef(null),i=n.useRef(e),u=n.useRef("none"),a=n.useRef(void 0),[s,l]=eI(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect(()=>{"mounted"===s?(u.current=a.current??eH(o.current),a.current=void 0):u.current="none"},[s]),eD(()=>
1{let t=o.current,n=i.current;if(n!==e){let r=u.current,o=eH(t);e?(a.current=o,l("MOUNT")):"none"===o||t?.display==="none"?l("UNMOUNT"):n&&r!==o?l("ANIMATION_OUT"):l("UNMOUNT"),i.current=e}},[e,l]),eD(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=ek(r=>{let u=eH(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&u&&(l("ANIMATION_END"),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),a=ek(e=>{e.target===t&&(u.current=eH(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,a.current=eH(t)}else o.current=null;r(e)},[])}}function e$(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eU(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=e$(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():e$(n[e],null)}}},[])}function eH(e){return e?.animationName||"none"}function eW(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}ek(e_,"usePresence"),ek(e$,"setRef"),ek(eU,"useStableComposedRefs"),ek(eH,"getAnimationName"),ek(eW,"getElementRef");var ez=e.i(55037),eB=e.i(369131),eK=e.i(865823),eV=Object.defineProperty,eY=(e,t)=>eV(e,"name",{value:t,configurable:!0}),eG="Popover",[eX,eZ]=f(eG,[eh]),eq=eh(),[eJ,eQ]=eX(eG),e0=eY(e=>{let{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:u,modal:a=!1}=e,s=eq(t),c=n.useRef(null),[d,f]=n.useState(!1),[p,m]=(0,ez.useControllableState)({prop:o,defaultProp:i??!1,onChange:u,caller:eG});return(0,l.jsx)(ey,{...s,children:(0,l.jsx)(eJ,{scope:t,contentId:eo(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:d,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:a,children:r})})},"Popover"),e1=n.forwardRef(eY(function(e,t){let{__scopePopover:r,...o}=e,i=eQ("PopoverAnchor",r),u=eq(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=i;return n.useEffect(()=>(a(),()=>s()),[a,s]),(0,l.jsx)(eE,{...u,...o,ref:t})},"PopoverAnchor")),e9=n.forwardRef(eY(function(e,t){let{__scopePopover:n,...o}=e,i=eQ("PopoverTrigger",n),u=eq(n),a=s(t,i.triggerRef),c=(0,l.jsx)(b.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":to(i.open),...o,ref:a,onClick:(0,r.composeEventHandlers)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:(0,l.jsx)(eE,{asChild:!0,...u,children:c})},"PopoverTrigger")),e3="PopoverPortal",[e5,e2]=eX(e3,{forceMount:void 0}),e8=eY(e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=eQ(e3,t);return(0,l.jsx)(e5,{scope:t,forceMount:n,children:(0,l.jsx)(eM,{present:n||i.open,children:(0,l.jsx)(eL,{asChild:!0,container:o,children:r})})})},"PopoverPortal"),e6="PopoverContent",e7=n.forwardRef(eY(function(e,t){let n=e2(e6,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=eQ(e6,e.__scopePopover);return(0,l.jsx)(eM,{present:r||i.open,children:i.modal?(0,l.jsx)(te,{...o,ref:t}):(0,l.jsx)(tt,{...o,ref:t})})},"PopoverContent")),e4=(0,v.createSlot)("PopoverContent.RemoveScroll"),te=n.forwardRef(eY(function(e,t){let o=eQ(e6,e.__scopePopover),i=n.useRef(null),u=s(t,i),a=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,eB.hideOthers)(e)},[]),(0,l.jsx)(eK.RemoveScroll,{as:e4,allowPinchZoom:!0,children:(0,l.jsx)(tn,{...e,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||o.triggerRef.current?.focus()}),onPointerDownOutside:(0,r.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;a.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,r.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),tt=n.forwardRef(eY(function(e,t){let r=eQ(e6,e.__scopePopover),o=n.useRef(!1),i=n.useRef(!1);return(0,l.jsx)(tn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),tn=n.forwardRef(eY(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:u,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,...f}=e,p=eQ(e6,n),m=eq(n);return F(),(0,l.jsx)(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,l.jsx)(C,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,l.jsx)(eC,{"data-state":to(p.open),role:"dialog",id:p.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),tr=n.forwardRef(eY(function(e,t){let{__scopePopover:n,...r}=e,o=eq(n);return(0,l.jsx)(eS,{...o,...r,ref:t})},"PopoverArrow"));function to(e){return e?"open":"closed"}eY(to,"getState"),e.s(["Anchor",0,e1,"Arrow",0,tr,"Content",0,e7,"PopoverContent",0,e7,"PopoverTrigger",0,e9,"Portal",0,e8,"Root",0,e0,"Trigger",0,e9],939162)}]);
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.