1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,317056,808906,e=>{"use strict";var t,n,r,o,a,i,u,l,c=e.i(176350),s=/[\\\/_+.#"@\[\(\{&]/,d=/[\\\/_+.#"@\[\(\{&]/g,f=/[\s-]/,m=/[\s-]/g;function p(e){return e.toLowerCase().replace(m," ")}var v=e.i(273576),h=Object.defineProperty,g=(e,t)=>h(e,"name",{value:t,configurable:!0}),b=!!("u">typeof window&&window.document&&window.document.createElement);function y(e,t,{checkForDefaultPrevented:n=!0}={}){return g(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function E(e){if(!b)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function w(e){return"IFRAME"===e.tagName}g(y,"composeEventHandlers"),g(function(e){if(!b)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),g(E,"getOwnerDocument"),g(function e(t,n=!1){let{activeElement:r}=E(t);if(!r?.nodeName)return null;if(w(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=E(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),g(w,"isFrame");var C=Object.defineProperty,S=(e,t)=>C(e,"name",{value:t,configurable:!0});function x(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function R(...e){return t=>{let n=!1,r=e.map(e=>{let r=x(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():x(e[t],null)}}}}function k(...e){return v.useCallback(R(...e),e)}S(x,"setRef"),S(R,"composeRefs"),S(k,"useComposedRefs");var O=Object.defineProperty,P=(e,t)=>O(e,"name",{value:t,configurable:!0});function D(e,t=[]){let n=[];function r(t,r){let o=v.createContext(r);o.displayName=t+"Context";let a=n.length;n=[...n,r];let i=P(t=>{let{scope:n,children:r,...i}=t,u=n?.[e]?.[a]||o,l=v.useMemo(()=>i,Object.values(i));return(0,c.jsx)(u.Provider,{value:l,children:r})},"Provider");function u(n,i,l={}){let{optional:c=!1}=l,s=i?.[e]?.[a]||o,d=v.useContext(s);if(d)return d;if(void 0!==r)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return i.displayName=t+"Provider",P(u,"useContext"),[i,u]}P(r,"createContext");let o=P(()=>{let t=n.map(e=>v.createContext(e));return P(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,N(o,...t)]}function N(...e){let t=e[0];if(1===e.length)return t;let n=P(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return P(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}P(function(e,t){let n=v.createContext(t);n.displayName=e+"Context";let r=P(e=>{let{children:t,...r}=e,o=v.useMemo(()=>r,Object.values(r));return(0,c.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,a={}){let{optional:i=!1}=a,u=v.useContext(n);if(u)return u;if(void 0!==t)return t;if(!i)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",P(o,"useContext"),[r,o]},"createContext"),P(D,"createContextScope"),P(N,"composeContextScopes");var A=globalThis?.document?v.useLayoutEffect:()=>{},I=Object.defineProperty,M=v[" useId ".trim().toString()]||(()=>void 0),j=0;function L(e){let[t,n]=v.useState(M());return A(()=>{e||n(e=>e??String(j++))},[e]),e||(t?`radix-${t}`:"")}I(L,"name",{value:"useId",configurable:!0});var T=Object.defineProperty,F=v[" useEffectEvent ".trim().toString()],_=v[" useInsertionEffect ".trim().toString()];function W(e){if("function"==typeof F)return F(e);let t=v.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof _?_(()=>{t.current=e}):A(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}T(W,"name",{value:"useEffectEvent",configurable:!0});var $=Object.defineProperty,B=(e,t)=>$(e,"name",{value:t,configurable:!0}),U=v[" useInsertionEffect ".trim().toString()]||A;function K({prop:e,defaultProp:t,onChange:n=B(()=>{},"onChange"),caller:r}){let[o,a,i]=V({defaultProp:t,onChange:n}),u=void 0!==e,l=u?e:o;return[l,v.useCallback(t=>{if(u){let n=z(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[u,e,a,i])]}function V({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),o=v.useRef(n),a=v.useRef(t);return U(()=>{a.current=t},[t]),v.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function z(e){return"function"==typeof e}B(K,"useControllableState"),B(V,"useUncontrolledState"),B(z,"isFunction");var H=Symbol("RADIX:SYNC_STATE");B(function(e,t,n,r){let{prop:o,defaultProp:a,onChange:i,caller:u}=t,l=void 0!==o,c=W(i),s=[{...n,state:a}];r&&s.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===H)return{...t,state:n.state};let r=e(t,n);
1return l&&!Object.is(r.state,t.state)&&c(r.state),r},...s),m=d.state,p=v.useRef(m);v.useEffect(()=>{p.current!==m&&(p.current=m,l||c(m))},[m,p,l]);let h=v.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return v.useEffect(()=>{l&&!Object.is(o,d.state)&&f({type:H,state:o})},[o,d.state,l]),[h,f]},"useControllableStateReducer");var G=e.i(555284),X=Object.defineProperty,Y=(e,t)=>X(e,"name",{value:t,configurable:!0});function q(e){let t=v.forwardRef((t,n)=>{let{children:r,...o}=t,a=null,i=!1,u=[];er(r)&&"function"==typeof eu&&(r=eu(r._payload)),v.Children.forEach(r,e=>{if(et(e)){i=!0;let t="child"in e.props?e.props.child:e.props.children;er(t)&&"function"==typeof eu&&(t=eu(t._payload)),a=J(e,t),u.push(a?.props?.children)}else u.push(e)}),a?a=v.cloneElement(a,void 0,u):!i&&1===v.Children.count(r)&&v.isValidElement(r)&&(a=r);let l=a?ee(a):void 0,c=k(n,l);if(!a){if(r||0===r)throw Error(i?ei(e):ea(e));return r}let s=Q(o,a.props??{});return a.type!==v.Fragment&&(s.ref=n?c:l),v.cloneElement(a,s)});return t.displayName=`${e}.Slot`,t}Y(q,"createSlot");var Z=Symbol.for("radix.slottable");Y(function(e){let t=Y(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Z,t},"createSlottable");var J=Y((e,t)=>
1{if("child"in e.props){let t=e.props.child;return v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Q(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function ee(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}function et(e){return v.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Z}Y(Q,"mergeProps"),Y(ee,"getElementRef"),Y(et,"isSlottable");var en=Symbol.for("react.lazy");function er(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===en&&"_payload"in e&&eo(e._payload)}function eo(e){return"object"==typeof e&&null!==e&&"then"in e}Y(er,"isLazyComponent"),Y(eo,"isPromiseLike");var ea=Y(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ei=Y(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),eu=v[" use ".trim().toString()],el=Object.defineProperty,ec=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=q(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function es(e,t){e&&G.flushSync(()=>e.dispatchEvent(t))}function ed(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...e)=>t.current?.(...e),[])}el(es,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(ed,"name",{value:"useCallbackRef",configurable:!0});var ef=Object.defineProperty,em=(e,t)=>ef(e,"name",{value:t,configurable:!0}),ep="dismissableLayer.update",ev=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eh=v.forwardRef(em(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:s,...d}=e,f=v.useContext(ev),[m,p]=v.useState(null),h=m?.ownerDocument??globalThis?.document,[,g]=v.useState({}),b=k(t,p),E=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=w?E.indexOf(w):-1,S=m?E.indexOf(m):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,R=S>=C,O=v.useRef(!1),P=ey(e=>{a?.(e),l?.(e),e.defaultPrevented||s?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:O,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return R&&!t},[f.branches,R])}),D=eE(e=>{if(r&&O.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(i?.(e),l?.(e),e.defaultPrevented||s?.())},h),N=!!m&&S===E.length-1,A=ed(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))});return v.useEffect(()=>{if(N)return h.addEventListener("keydown",A,{capture:!0}),()=>h.removeEventListener("keydown",A,{capture:!0})},[h,N,A]),v.useEffect(()=>{if(m)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(u=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),ew(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(m),0===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=u))}},[m,h,n,f]),v.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),ew())},[m,f]),v.useEffect(()=>{let e=em(()=>g({}),"handleUpdate");return document.addEventListener(ep,e),()=>document.removeEventListener(ep,e)},[]),(0,c.jsx)(ec.div,{...d,ref:b,style:{pointerEvents:x?R?"auto":"none":void 0,...e.style},onFocusCapture:y(e.onFocusCapture,D.onFocusCapture),onBlurCapture:y(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:y(e.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function eg(){let e=v.useContext(ev),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}em(eg,"useDismissableLayerSurface");var eb=em(()=>!0,"IS_TRUE");function ey(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:i=eb}=t,u=ed(e),l=v.useRef(!1),c=v.useRef(!1),s=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){c.current=!1,o.current=!1,s.current.clear()}function t(){return Array.from(s.current.values()).some(Boolean)}function f(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||s.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&d.current()},0)}function m(e){c.current&&s.current.set(e.type,!1)}em(e,"resetOutsideInteraction"),em(t,"isOutsideInteractionIntercepted"),em(f,"handleInteractionCapture"),em(m,"handleInteractionBubble");let p=em(a=>{if(a.target&&!l.current){let f=function(){n.removeEventListener("click",d.current);let r=t();
1e(),r||eC("dismissableLayer.pointerDownOutside",u,m,{discrete:!0})};if(em(f,"handleAndDispatchPointerDownOutsideEvent"),!i(a.target)){n.removeEventListener("click",d.current),e(),l.current=!1;return}let m={originalEvent:a};c.current=!0,o.current=r&&0===a.button,s.current.clear(),r&&0===a.button?(n.removeEventListener("click",d.current),d.current=f,n.addEventListener("click",d.current,{once:!0})):f()}else n.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)n.addEventListener(e,f,!0),n.addEventListener(e,m);let h=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(h),n.removeEventListener("pointerdown",p),n.removeEventListener("click",d.current),v))n.removeEventListener(e,f,!0),n.removeEventListener(e,m)}},[n,u,r,o,a,i]),{onPointerDownCapture:em(()=>l.current=!0,"onPointerDownCapture")}}function eE(e,t=globalThis?.document){let n=ed(e),r=v.useRef(!1);return v.useEffect(()=>{let e=em(e=>{e.target&&!r.current&&eC("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:em(()=>r.current=!0,"onFocusCapture"),onBlurCapture:em(()=>r.current=!1,"onBlurCapture")}}function ew(){let e=new CustomEvent(ep);document.dispatchEvent(e)}function eC(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?es(o,a):o.dispatchEvent(a)}em(ey,"usePointerDownOutside"),em(eE,"useFocusOutside"),em(ew,"dispatchUpdate"),em(eC,"handleAndDispatchCustomEvent");var eS=Object.defineProperty,ex=(e,t)=>eS(e,"name",{value:t,configurable:!0}),eR="focusScope.autoFocusOnMount",ek="focusScope.autoFocusOnUnmount",eO={bubbles:!1,cancelable:!0},eP=v.forwardRef(ex(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,l]=v.useState(null),s=ed(o),d=ed(a),f=v.useRef(null),m=k(t,l),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(p.paused||!u)return;let t=e.target;u.contains(t)?f.current=t:eL(f.current,{select:!0})},t=function(e){if(p.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||eL(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eL(u)};ex(e,"handleFocusIn"),ex(t,"handleFocusOut"),ex(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,u,p.paused]),v.useEffect(()=>{if(u){eT.add(p);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(eR,eO);u.addEventListener(eR,s),u.dispatchEvent(t),t.defaultPrevented||(eD(eW(eA(u)),{select:!0}),document.activeElement===e&&eL(u))}return()=>{u.removeEventListener(eR,s),setTimeout(()=>{let t=new CustomEvent(ek,eO);u.addEventListener(ek,d),u.dispatchEvent(t),t.defaultPrevented||eL(e??document.body,{select:!0}),u.removeEventListener(ek,d),eT.remove(p)},0)}}},[u,s,d,p]);let h=v.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=eN(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&eL(a,{select:!0})):(e.preventDefault(),n&&eL(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,p.paused]);return(0,c.jsx)(ec.div,{tabIndex:-1,...i,ref:m,onKeyDown:h})},"FocusScope"));function eD(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eL(r,{select:t}),document.activeElement!==n)return}function eN(e){let t=eA(e);return[eI(t,e),eI(t.reverse(),e)]}function eA(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ex(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 eI(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eM(r,{upTo:t})))return r}function eM(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 ej(e){return e instanceof HTMLInputElement&&"select"in e}function eL(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ej(e)&&t&&e.select()}}ex(eD,"focusFirst"),ex(eN,"getTabbableEdges"),ex(eA,"getTabbableCandidates"),ex(eI,"findVisible"),ex(eM,"isHidden"),ex(ej,"isSelectableInput"),ex(eL,"focus");var eT=eF();function eF(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=e_(e,t)).unshift(t)},remove(t){e=e_(e,t),e[0]?.resume()}}}function e_(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eW(e){return e.filter(e=>"A"!==e.tagName)}ex(eF,"createFocusScopesStack"),ex(e_,"arrayRemove"),ex(eW,"removeLinks");var e$=Object.defineProperty,eB=v.forwardRef(e$(function(e,t){let{c
1ontainer:n,...r}=e,[o,a]=v.useState(!1);A(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?G.createPortal((0,c.jsx)(ec.div,{...r,ref:t}),i):null},"name",{value:"Portal",configurable:!0})),eU=Object.defineProperty,eK=(e,t)=>eU(e,"name",{value:t,configurable:!0});function eV(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}eK(eV,"useStateMachine");var ez=eK(e=>{let{present:t,children:n}=e,r=eH(t),o="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),a=eX(r.ref,eq(o));return"function"==typeof n||r.isPresent?v.cloneElement(o,{ref:a}):null},"Presence");function eH(e){let[t,n]=v.useState(),r=v.useRef(null),o=v.useRef(e),a=v.useRef("none"),i=v.useRef(void 0),[u,l]=eV(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{"mounted"===u?(a.current=i.current??eY(r.current),i.current=void 0):a.current="none"},[u]),A(()=>{let t=r.current,n=o.current;if(n!==e){let r=a.current,u=eY(t);e?(i.current=u,l("MOUNT")):"none"===u||t?.display==="none"?l("UNMOUNT"):n&&r!==u?l("ANIMATION_OUT"):l("UNMOUNT"),o.current=e}},[e,l]),A(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=eK(a=>{let i=eY(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),u=eK(e=>{e.target===t&&(a.current=eY(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,i.current=eY(t)}else r.current=null;n(e)},[])}}function eG(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eX(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=eG(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():eG(n[e],null)}}},[])}function eY(e){return e?.animationName||"none"}function eq(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(eH,"usePresence"),eK(eG,"setRef"),eK(eX,"useStableComposedRefs"),eK(eY,"getAnimationName"),eK(eq,"getElementRef");var eZ=Object.defineProperty,eJ=(e,t)=>eZ(e,"name",{value:t,configurable:!0}),eQ=0,e0=null;function e1(){v.useEffect(()=>{e0||(e0={start:e9(),end:e9()});let{start:e,end:t}=e0;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),eQ++,()=>{1===eQ&&(e0?.start.remove(),e0?.end.remove(),e0=null),eQ=Math.max(0,eQ-1)}},[])}function e9(){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}eJ(function(e){return e1(),e.children},"FocusGuards"),eJ(e1,"useFocusGuards"),eJ(e9,"createFocusGuard");var e2=function(){return(e2=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 e5(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}var e3=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),e6="width-before-scroll-bar";function e7(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var e8="u">typeof window?v.useLayoutEffect:v.useEffect,e4=new WeakMap,te=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;
1r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=e2({async:!0,ssr:!1},t),a),tt=function(){},tn=v.forwardRef(function(e,t){var n,r,o,a,i=v.useRef(null),u=v.useState({onScrollCapture:tt,onWheelCapture:tt,onTouchMoveCapture:tt}),l=u[0],c=u[1],s=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,p=e.enabled,h=e.shards,g=e.sideCar,b=e.noRelative,y=e.noIsolation,E=e.inert,w=e.allowPinchZoom,C=e.as,S=e.gapMode,x=e5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[i,t],r=function(e){return n.forEach(function(t){return e7(t,e)})},(o=(0,v.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,a=o.facade,e8(function(){var e=e4.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||e7(e,null)}),r.forEach(function(e){t.has(e)||e7(e,o)})}e4.set(a,n)},[n]),a),k=e2(e2({},x),l);return v.createElement(v.Fragment,null,p&&v.createElement(g,{sideCar:te,removeScrollBar:m,shards:h,noRelative:b,noIsolation:y,inert:E,setCallbacks:c,allowPinchZoom:!!w,lockRef:i,gapMode:S}),s?v.cloneElement(v.Children.only(d),e2(e2({},k),{ref:R})):v.createElement(void 0===C?"div":C,e2({},k,{className:f,ref:R}),d))});tn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tn.classNames={fullWidth:e6,zeroRight:e3};var tr=function(e){var t=e.sideCar,n=e5(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 v.createElement(r,e2({},n))};tr.isSideCarExport=!0;var to=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ta=function(){var e=to();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ti=function(){var e=ta();return function(t){return e(t.styles,t.dynamic),null}},tu={left:0,top:0,right:0,gap:0},tl=function(e){return parseInt(e||"",10)||0},tc=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[tl(n),tl(r),tl(o)]},ts=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return tu;var t=tc(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])}},td=ti(),tf="data-scroll-locked",tm=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(tf,"] {\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(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(e3," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(e6," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(e3," .").concat(e3," {\n right: 0 ").concat(r,";\n }\n \n .").concat(e6," .").concat(e6," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(tf,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},tp=function(){var e=parseInt(document.body.getAttribute(tf)||"0",10);return isFinite(e)?e:0},tv=function(){v.useEffect(function(){return document.body.setAttribute(tf,(tp()+1).toString()),function(){var e=tp()-1;e<=0?document.body.removeAttribute(tf):document.body.setAttribute(tf,e.toString())}},[])},th=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tv();var a=v.useMemo(function(){return ts(o)},[o]);
1return v.createElement(td,{styles:tm(a,!t,o,n?"":"!important")})},tg=!1;if("u">typeof window)try{var tb=Object.defineProperty({},"passive",{get:function(){return tg=!0,!0}});window.addEventListener("test",tb,tb),window.removeEventListener("test",tb,tb)}catch(e){tg=!1}var ty=!!tg&&{passive:!1},tE=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])},tw=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),tC(e,r)){var o=tS(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},tC=function(e,t){return"v"===e?tE(t,"overflowY"):tE(t,"overflowX")},tS=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tx=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,l=n.target,c=t.contains(l),s=!1,d=u>0,f=0,m=0;do{if(!l)break;var p=tS(e,l),v=p[0],h=p[1]-p[2]-i*v;(v||h)&&tC(e,l)&&(f+=h,m+=v);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&l!==document.body||c&&(t.contains(l)||t===l))return d&&(o&&1>Math.abs(f)||!o&&u>f)?s=!0:!d&&(o&&1>Math.abs(m)||!o&&-u>m)&&(s=!0),s},tR=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tk=function(e){return[e.deltaX,e.deltaY]},tO=function(e){return e&&"current"in e?e.current:e},tP=0,tD=[];let tN=(i=function(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(tP++)[0],a=v.useState(ti)[0],i=v.useRef(e);v.useEffect(function(){i.current=e},[e]),v.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,a=t.length;o<a;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(tO),!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 u=v.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=tR(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-a[0],c="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),m=f&&f.anchorNode;if(m&&(m===s||m.contains(s)))return!1;var p=tw(d,s);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=tw(d,s)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var v=r.current||o;return tx(v,t,e,"h"===v?l:c,!0)},[]),l=v.useCallback(function(e){if(tD.length&&tD[tD.length-1]===a){var n="deltaY"in e?tk(e):tR(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,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(tO).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=v.useCallback(function(e,n,r,o){var a={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(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=v.useCallback(function(e){n.current=tR(e),r.current=void 0},[]),d=v.useCallback(function(t){c(t.type,tk(t),t.target,u(t,e.lockRef.current))},[]),f=v.useCallback(function(t){c(t.type,tR(t),t.target,u(t,e.lockRef.current))},[]);v.useEffect(function(){return tD.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ty),document.addEventListener("touchmove",l,ty),document.addEventListener("touchstart",s,ty),function(){tD=tD.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,ty),document.removeEventListener("touchmove",l,ty),document.removeEventListener("touchstart",s,ty)}},[]);var m=e.removeScrollBar,p=e.inert;return v.createElement(v.Fragment,null,p?v.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?v.createElement(th,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},te.useMedium(i),tr);var tA=v.forwardRef(function(e,t){return v.createElement(tn,e2({},e,{ref:t,sideCar:tN}))});tA.classNames=tn.classNames;var tI=new WeakMap,tM=new WeakMap,tj={},tL=0,tT=function(e){return e&&(e.host||tT(e.parentNode))},tF=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tT(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});tj[n]||(tj[n]=new WeakMap);var a=tj[n],i=[],u=new Set,l=new Set(o),c=function(e){!e||u.has(e)||(u.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(tI.get(e)||0)+1,c=(a.get(e)||0)+1;tI.set(e,l),a.set(e,c),i.push(e),1===l&&o&&tM.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)}})};
1return s(t),u.clear(),tL++,function(){i.forEach(function(e){var t=tI.get(e)-1,o=a.get(e)-1;tI.set(e,t),a.set(e,o),t||(tM.has(e)||e.removeAttribute(r),tM.delete(e)),o||e.removeAttribute(n)}),--tL||(tI=new WeakMap,tI=new WeakMap,tM=new WeakMap,tj={})}},t_=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tF(r,o,n,"aria-hidden")):function(){return null}},tW=Object.defineProperty,t$=(e,t)=>tW(e,"name",{value:t,configurable:!0}),tB="Dialog",[tU,tK]=D(tB),[tV,tz]=tU(tB),tH=t$(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,u=v.useRef(null),l=v.useRef(null),[s,d]=K({prop:r,defaultProp:o??!1,onChange:a,caller:tB}),[f,m]=v.useState(0),[p,h]=v.useState(0);return(0,c.jsx)(tV,{scope:t,triggerRef:u,contentRef:l,contentId:L(),titleId:L(),descriptionId:L(),titlePresent:f>0,descriptionPresent:p>0,setTitleCount:m,setDescriptionCount:h,open:s,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(e=>!e),[d]),modal:i,children:n})},"Dialog"),tG="DialogPortal",[tX,tY]=tU(tG,{forceMount:void 0}),tq=t$(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=tz(tG,t);return(0,c.jsx)(tX,{scope:t,forceMount:n,children:v.Children.map(r,e=>(0,c.jsx)(ez,{present:n||a.open,children:(0,c.jsx)(eB,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),tZ="DialogOverlay",tJ=v.forwardRef(t$(function(e,t){let n=tY(tZ,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=tz(tZ,e.__scopeDialog);return a.modal?(0,c.jsx)(ez,{present:r||a.open,children:(0,c.jsx)(t0,{...o,ref:t})}):null},"DialogOverlay")),tQ=q("DialogOverlay.RemoveScroll"),t0=v.forwardRef(t$(function(e,t){let{__scopeDialog:n,...r}=e,o=tz(tZ,n),a=k(t,eg());return(0,c.jsx)(tA,{as:tQ,allowPinchZoom:!0,shards:[o.contentRef],children:(0,c.jsx)(ec.div,{"data-state":t6(o.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),t1="DialogContent",t9=v.forwardRef(t$(function(e,t){let n=tY(t1,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=tz(t1,e.__scopeDialog);return(0,c.jsx)(ez,{present:r||a.open,children:a.modal?(0,c.jsx)(t2,{...o,ref:t}):(0,c.jsx)(t5,{...o,ref:t})})},"DialogContent")),t2=v.forwardRef(t$(function(e,t){let n=tz(t1,e.__scopeDialog),r=v.useRef(null),o=k(t,n.contentRef,r);return v.useEffect(()=>{let e=r.current;if(e)return t_(e)},[]),(0,c.jsx)(t3,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:y(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:y(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:y(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),t5=v.forwardRef(t$(function(e,t){let n=tz(t1,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return(0,c.jsx)(t3,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"DialogContentNonModal")),t3=v.forwardRef(t$(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,u=tz(t1,n);return e1(),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(eP,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,c.jsx)(eh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":t6(u.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl"));function t6(e){return e?"open":"closed"}
1t$(t6,"getState");var t7='[cmdk-group=""]',t8='[cmdk-group-items=""]',t4='[cmdk-item=""]',ne=`${t4}:not([aria-disabled="true"])`,nt="cmdk-item-select",nn="data-value",nr=(e,t,n)=>{var r;return r=e,function e(t,n,r,o,a,i,u){if(i===n.length)return a===t.length?1:.99;var l=`${a},${i}`;if(void 0!==u[l])return u[l];for(var c,p,v,h,g=o.charAt(i),b=r.indexOf(g,a),y=0;b>=0;)(c=e(t,n,r,o,b+1,i+1,u))>y&&(b===a?c*=1:s.test(t.charAt(b-1))?(c*=.8,(v=t.slice(a,b-1).match(d))&&a>0&&(c*=Math.pow(.999,v.length))):f.test(t.charAt(b-1))?(c*=.9,(h=t.slice(a,b-1).match(m))&&a>0&&(c*=Math.pow(.999,h.length))):(c*=.17,a>0&&(c*=Math.pow(.999,b-a))),t.charAt(b)!==n.charAt(i)&&(c*=.9999)),(c<.1&&r.charAt(b-1)===o.charAt(i+1)||o.charAt(i+1)===o.charAt(i)&&r.charAt(b-1)!==o.charAt(i))&&.1*(p=e(t,n,r,o,b+1,i+2,u))>c&&(c=.1*p),c>y&&(y=c),b=r.indexOf(g,b+1);return u[l]=y,y}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,p(r),p(t),0,0,{})},no=v.createContext(void 0),na=v.createContext(void 0),ni=v.createContext(void 0),nu=v.forwardRef((e,t)=>{let n=ng(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ng(()=>new Set),o=ng(()=>new Map),a=ng(()=>new Map),i=ng(()=>new Set),u=nv(e),{label:l,children:c,value:s,onValueChange:d,filter:f,shouldFilter:m,loop:p,disablePointerSelection:h=!1,vimBindings:g=!0,...b}=e,y=L(),E=L(),w=L(),C=v.useRef(null),S=nE();nh(()=>{if(void 0!==s){let e=s.trim();n.current.value=e,x.emit()}},[s]),nh(()=>{S(6,N)},[]);let x=v.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,l;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)D(),O(),S(1,P);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(y))||o.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=A())?void 0:e.id,x.emit()}),r||S(5,N),(null==(a=u.current)?void 0:a.value)!==void 0){null==(l=(i=u.current).onValueChange)||l.call(i,null!=t?t:"");return}}x.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),R=v.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,k(t,r)),S(2,()=>{O(),x.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),S(3,()=>{D(),O(),n.current.value||P(),x.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=A();S(4,()=>{D(),(null==t?void 0:t.getAttribute("id"))===e&&P(),x.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>u.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:y,inputId:w,labelId:E,listInnerRef:C}),[]);function k(e,t){var r,o;let a=null!=(o=null==(r=u.current)?void 0:r.filter)?o:nr;return e?a(e,n.current.search,t):0}function O(){if(!n.current.search||!1===u.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=C.current;I().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(t8);t?t.appendChild(e.parentElement===t?e:e.closest(`${t8} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${t8} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=C.current)?void 0:t.querySelector(`${t7}[${nn}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function P(){let e=I().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(nn);x.setState("value",t||void 0)}function D(){var e,t,i,l;if(!n.current.search||!1===u.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=k(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(i=a.current.get(o))?void 0:i.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function N(){var e,t,n;let r=A();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(t7))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function A(){var e;return null==(e=C.current)?void 0:e.querySelector(`${t4}[aria-selected="true"]`)}function I(){var e;return Array.from((null==(e=C.current)?void 0:e.querySelectorAll(ne))||[])}function M(e){let t=I()[e];t&&x.setState("value",t.getAttribute(nn))}function j(e){var t;let n=A(),r=I(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=u.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&x.setState("value",a.getAttribute(nn))}function T(e){let t=A(),n=null==t?void 0:t.closest(t7),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,t7):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,t7))?void 0:n.querySelector(ne);r?x.setState("value",r.getAttribute(nn)):j(e)}let F=()=>M(I().length-1),_=e=>{e.preventDefault(),e.metaKey?F():e.altKey?T(1):j(1)},W=e=>{e.preventDefault(),e.metaKey?M(0):e.altKey?T(-1):j(-1)};return v.createElement(ec.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=b.onKeyDown)||t.call(b,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":g&&e.ctrlKey&&_(e);break;case"ArrowDown":_(e);break;case"p":case"k":g&&e.ctrlKey&&W(e);break;case"ArrowUp":W(e);break;case"Home":e.preventDefault(),M(0);break;case"End":e.preventDefault(),F();break;case"Enter":{e.preventDefault();let t=A();if(t){let e=new Event(nt);t.dispatchEvent(e)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:R.inputId,id:R.labelId,style:nC},l),nw(e,e=>v.createElement(na.Provider,{value:x},v.createElement(no.Provider,{value:R},e))))}),nl=v.forwardRef((e,t)=>
1{var n,r;let o=L(),a=v.useRef(null),i=v.useContext(ni),u=v.useContext(no),l=nv(e),c=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;nh(()=>{if(!c)return u.item(o,null==i?void 0:i.id)},[c]);let s=ny(o,a,[e.value,e.children,a],e.keywords),d=v.useContext(na),f=nb(e=>e.value&&e.value===s.current),m=nb(e=>!!c||!1===u.filter()||!e.search||e.filtered.items.get(o)>0);function p(){var e,t;h(),null==(t=(e=l.current).onSelect)||t.call(e,s.current)}function h(){d.setState("value",s.current,!0)}if(v.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(nt,p),()=>t.removeEventListener(nt,p)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:g,value:b,onSelect:y,forceMount:E,keywords:w,...C}=e;return v.createElement(ec.div,{ref:R(a,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||u.getDisablePointerSelection()?void 0:h,onClick:g?void 0:p},e.children)}),nc=v.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=L(),u=v.useRef(null),l=v.useRef(null),c=L(),s=v.useContext(no),d=nb(e=>!!o||!1===s.filter()||!e.search||e.filtered.groups.has(i));nh(()=>s.group(i),[]),ny(i,u,[e.value,e.heading,l]);let f=v.useMemo(()=>({id:i,forceMount:o}),[o]);return v.createElement(ec.div,{ref:R(u,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&v.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),nw(e,e=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},v.createElement(ni.Provider,{value:f},e))))}),ns=v.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=v.useRef(null),a=nb(e=>!e.search);return n||a?v.createElement(ec.div,{ref:R(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),nd=v.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v.useContext(na),i=nb(e=>e.search),u=nb(e=>e.selectedItemId),l=v.useContext(no);return v.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),v.createElement(ec.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":u,id:l.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),nf=v.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=v.useRef(null),i=v.useRef(null),u=nb(e=>e.selectedItemId),l=v.useContext(no);return v.useEffect(()=>{if(i.current&&a.current){let e=i.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),v.createElement(ec.div,{ref:R(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:l.listId},nw(e,e=>v.createElement("div",{ref:R(i,l.listInnerRef),"cmdk-list-sizer":""},e)))}),nm=v.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...u}=e;return v.createElement(tH,{open:n,onOpenChange:r},v.createElement(tq,{container:i},v.createElement(tJ,{"cmdk-overlay":"",className:o}),v.createElement(t9,{"aria-label":e.label,"cmdk-dialog":"",className:a},v.createElement(nu,{ref:t,...u}))))}),np=Object.assign(nu,{List:nf,Item:nl,Input:nd,Group:nc,Separator:ns,Dialog:nm,Empty:v.forwardRef((e,t)=>nb(e=>0===e.filtered.count)?v.createElement(ec.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:v.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return v.createElement(ec.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},nw(e,e=>v.createElement("div",{"aria-hidden":!0},e)))})});function nv(e){let t=v.useRef(e);return nh(()=>{t.current=e}),t}var nh="u"<typeof window?v.useEffect:v.useLayoutEffect;function ng(e){let t=v.useRef();return void 0===t.current&&(t.current=e()),t}function nb(e){let t=v.useContext(na),n=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,n,n)}function ny(e,t,n,r=[]){let o=v.useRef(),a=v.useContext(no);return nh(()=>{var i;let u=(()=>{var e;
1for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map(e=>e.trim());a.value(e,u,l),null==(i=t.current)||i.setAttribute(nn,u),o.current=u}),o}var nE=()=>{let[e,t]=v.useState(),n=ng(()=>new Map);return nh(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function nw({asChild:e,children:t},n){let r;return e&&v.isValidElement(t)?v.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var nC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};e.s(["Command",0,np,"useCommandState",0,nb],808906);var nS=e.i(869931),nx=e.i(975157),nR=e.i(396489),nk=e.i(950594);e.s(["Command",0,function({className:e,...t}){return(0,c.jsx)(np,{"data-slot":"command",className:(0,nx.cn)("bg-popover text-popover-foreground flex size-full flex-col overflow-hidden rounded-none",e),...t})},"CommandDialog",0,function({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:r,showCloseButton:o=!1,...a}){return(0,c.jsxs)(nR.Dialog,{...a,children:[(0,c.jsxs)(nR.DialogHeader,{className:"sr-only",children:[(0,c.jsx)(nR.DialogTitle,{children:e}),(0,c.jsx)(nR.DialogDescription,{children:t})]}),(0,c.jsx)(nR.DialogContent,{className:(0,nx.cn)("top-1/3 translate-y-0 overflow-hidden rounded-none p-0",r),showCloseButton:o,children:n})]})},"CommandEmpty",0,function({className:e,...t}){return(0,c.jsx)(np.Empty,{"data-slot":"command-empty",className:(0,nx.cn)("py-6 text-center text-xs",e),...t})},"CommandGroup",0,function({className:e,...t}){return(0,c.jsx)(np.Group,{"data-slot":"command-group",className:(0,nx.cn)("text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs",e),...t})},"CommandInput",0,function({className:e,...t}){return(0,c.jsx)("div",{"data-slot":"command-input-wrapper",className:"border-b pb-0",children:(0,c.jsxs)(nk.InputGroup,{className:"border-input/30 bg-input/30 h-8 border-none shadow-none! *:data-[slot=input-group-addon]:pl-2!",children:[(0,c.jsx)(np.Input,{"data-slot":"command-input",className:(0,nx.cn)("w-full text-xs outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t}),(0,c.jsx)(nk.InputGroupAddon,{children:(0,c.jsx)(nS.RiSearchLine,{className:"size-4 shrink-0 opacity-50"})})]})})},"CommandItem",0,function({className:e,children:t,...n}){return(0,c.jsxs)(np.Item,{"data-slot":"command-item",className:(0,nx.cn)("group/command-item data-selected:bg-muted data-selected:text-foreground data-selected:*:[svg]:text-foreground relative flex cursor-default items-center gap-2 rounded-none px-2 py-2 text-xs outline-hidden select-none in-data-[slot=dialog-content]:rounded-none! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[t,(0,c.jsx)(nS.RiCheckLine,{className:"ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"})]})},"CommandList",0,function({className:e,...t}){return(0,c.jsx)(np.List,{"data-slot":"command-list",className:(0,nx.cn)("no-scrollbar max-h-72 scroll-py-0 overflow-x-hidden overflow-y-auto outline-none",e),...t})},"CommandSeparator",0,function({className:e,...t}){return(0,c.jsx)(np.Separator,{"data-slot":"command-separator",className:(0,nx.cn)("bg-border -mx-1 h-px",e),...t})},"CommandShortcut",0,function({className:e,...t}){return(0,c.jsx)("span",{"data-slot":"command-shortcut",className:(0,nx.cn)("text-muted-foreground group-data-selected/command-item:text-foreground ml-auto text-xs tracking-widest",e),...t})}],317056)}]);
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.