1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="75ec70c1-6282-7735-963a-9c72f7b6532e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,771120,e=>{"use strict";var t,n=e.i(843476),r=e.i(271645),o=e.i(174080);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(i,"name",{value:"clamp",configurable:!0});var l=Object.defineProperty,a=(e,t)=>l(e,"name",{value:t,configurable:!0}),s=!!("u">typeof window&&window.document&&window.document.createElement);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return a(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function c(e){if(!s)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function d(e){return"IFRAME"===e.tagName}a(u,"composeEventHandlers"),a(function(e){if(!s)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),a(c,"getOwnerDocument"),a(function e(t,n=!1){let{activeElement:r}=c(t);if(!r?.nodeName)return null;if(d(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=c(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),a(d,"isFrame");var f=Object.defineProperty,p=(e,t)=>f(e,"name",{value:t,configurable:!0});function m(e,t=[]){let o=[];function i(t,i){let l=r.createContext(i);l.displayName=t+"Context";let a=o.length;o=[...o,i];let s=p(t=>{let{scope:o,children:i,...s}=t,u=o?.[e]?.[a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,n.jsx)(u.Provider,{value:c,children:i})},"Provider");function u(n,o,s={}){let{optional:c=!1}=s,d=o?.[e]?.[a]||l,f=r.useContext(d);if(f)return f;if(void 0!==i)return i;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return s.displayName=t+"Provider",p(u,"useContext"),[s,u]}p(i,"createContext");let l=p(()=>
2{let t=o.map(e=>r.createContext(e));return p(function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])},"useScope")},"createScope");return l.scopeName=e,[i,h(l,...t)]}function h(...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 o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}p(function(e,t){let o=r.createContext(t);o.displayName=e+"Context";let i=p(e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,n.jsx)(o.Provider,{value:l,children:t})},"Provider");function l(n,i={}){let{optional:a=!1}=i,s=r.useContext(o);if(s)return s;if(void 0!==t)return t;if(!a)throw Error(`\`${n}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",p(l,"useContext"),[i,l]},"createContext"),p(m,"createContextScope"),p(h,"composeContextScopes");var v=Object.defineProperty,y=(e,t)=>v(e,"name",{value:t,configurable:!0});function g(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function b(...e){return t=>{let n=!1,r=e.map(e=>{let r=g(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():g(e[t],null)}}}}function x(...e){return r.useCallback(b(...e),e)}y(g,"setRef"),y(b,"composeRefs"),y(x,"useComposedRefs");var w=Object.defineProperty,S=(e,t)=>w(e,"name",{value:t,configurable:!0}),E=S((e,t)=>{let n={...t};for(let r in t){let o=e[r],i=t[r];if(/^on[A-Z]/.test(r))if(o&&i){let e="function"==typeof o,t="function"==typeof i;n[r]=(...n)=>{let r=t?i(...n):void 0;return e&&o(...n),r}}else o&&(n[r]=o);else"style"===r?n[r]={..."object"==typeof o?o:null,..."object"==typeof i?i:null}:"className"===r?n[r]=[o,i].filter(Boolean).join(" "):"aria-describedby"===r&&(n[r]=C(i,o))}return{...e,...n}},"mergeProps");function C(...e){let t=new Set;for(let n of e)if("string"==typeof n)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}S(C,"concatAriaDescribedby");var P=r.createContext(E);function R(e){let t=r.forwardRef((t,n)=>{let o=r.useContext(P),{children:i,mergeProps:l=o,...a}=t,s=null,u=!1,c=[];A(i)&&"function"==typeof L&&(i=L(i._payload)),r.Children.forEach(i,e=>{if(N(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;A(t)&&"function"==typeof L&&(t=L(t._payload)),s=O(e,t),c.push(s?.props?.children)}else c.push(e)}),s?s=r.cloneElement(s,void 0,c):!u&&1===r.Children.count(i)&&r.isValidElement(i)&&(s=i);let d=s?I(s):void 0,f=x(n,d);if(!s){if(i||0===i)throw Error(u?M(e):D(e));return i}let p=l(a,s.props??{});return s.type!==r.Fragment&&(p.ref=n?f:d),r.cloneElement(s,p)});return t.displayName=`${e}.Slot`,t}P.displayName="SlotContext",S(R,"createSlot");var j=Symbol.for("radix.slottable");S(function(e){let t=S(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=j,t},"createSlottable");var O=S((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function I(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 N(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===j}S(I,"getElementRef"),S(N,"isSlottable");var k=Symbol.for("react.lazy");function A(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===k&&"_payload"in e&&T(e._payload)}function T(e){return"object"==typeof e&&null!==e&&"then"in e}S(A,"isLazyComponent"),S(T,"isPromiseLike");var D=S(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),M=S(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),L=r[" use ".trim().toString()],F=Object.defineProperty,_=(e,t)=>
2F(e,"name",{value:t,configurable:!0});function z(e){let t=e+"CollectionProvider",[o,i]=m(t),[l,a]=o(t,{collectionRef:{current:null},itemMap:new Map}),s=_(e=>{let{scope:t,children:o}=e,i=r.useRef(null),a=r.useRef(new Map).current;return(0,n.jsx)(l,{scope:t,itemMap:a,collectionRef:i,children:o})},"CollectionProvider");s.displayName=t;let u=e+"CollectionSlot",c=R(u),d=r.forwardRef((e,t)=>{let{scope:r,children:o}=e,i=x(t,a(u,r).collectionRef);return(0,n.jsx)(c,{ref:i,children:o})});d.displayName=u;let f=e+"CollectionItemSlot",p="data-radix-collection-item",h=R(f),v=r.forwardRef((e,t)=>{let{scope:o,children:i,...l}=e,s=r.useRef(null),u=x(t,s),c=a(f,o);return r.useEffect(()=>(c.itemMap.set(s,{ref:s,...l}),()=>void c.itemMap.delete(s))),(0,n.jsx)(h,{...{[p]:""},ref:u,children:i})});function y(t){let n=a(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return v.displayName=f,_(y,"useCollection"),[{Provider:s,Slot:d,ItemSlot:v},y,i]}_(z,"createCollection");var W=new WeakMap,$=class e extends Map{static{_(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],W.set(this,!0)}set(e,t){return W.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,o=this.has(t),i=this.#e.length,l=U(e),a=l>=0?l:i+l,s=a<0||a>=i?-1:a;if(s===this.size||o&&s===this.size-1||-1===s)return this.set(t,n),this;let u=this.size+ +!o;l<0&&a++;let c=[...this.#e],d=!1;for(let e=a;e<u;e++)if(a===e){let i=c[e];c[e]===t&&(i=c[e+1]),o&&this.delete(t),r=this.get(i),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=B(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=B(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return B(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function B(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=H(e,t);return -1===n?void 0:e[n]}function H(e,t){let n=e.length,r=U(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function U(e){return e!=e||0===e?0:Math.trunc(e)}function V(e,t){if(e===t)return!0;
2if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function K(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function q(e,t){return e[1].element&&t[1].element?K(e[1].element,t[1].element)?-1:1:0}function G(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}_(B,"at"),_(H,"toSafeIndex"),_(U,"toSafeInteger"),_(function(e){let t=e+"CollectionProvider",[o,i]=m(t),[l,a]=o(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new $,setItemMap:_(()=>void 0,"setItemMap")}),s=_(({state:e,...t})=>e?(0,n.jsx)(c,{...t,state:e}):(0,n.jsx)(u,{...t}),"CollectionProvider");s.displayName=t;let u=_(e=>{let t=g();return(0,n.jsx)(c,{...e,state:t})},"CollectionInit");u.displayName=t+"Init";let c=_(e=>{let{scope:t,children:o,state:i}=e,a=r.useRef(null),[s,u]=r.useState(null),c=x(a,u),[d,f]=i;return r.useEffect(()=>{if(!s)return;let e=G(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,n.jsx)(l,{scope:t,itemMap:d,setItemMap:f,collectionRef:c,collectionRefObject:a,collectionElement:s,children:o})},"CollectionProviderImpl");c.displayName=t+"Impl";let d=e+"CollectionSlot",f=R(d),p=r.forwardRef((e,t)=>{let{scope:r,children:o}=e,i=x(t,a(d,r).collectionRef);return(0,n.jsx)(f,{ref:i,children:o})});p.displayName=d;let h=e+"CollectionItemSlot",v=R(h),y=r.forwardRef((e,t)=>{let{scope:o,children:i,...l}=e,s=r.useRef(null),[u,c]=r.useState(null),d=x(t,s,c),{setItemMap:f}=a(h,o),p=r.useRef(l);V(p.current,l)||(p.current=l);let m=p.current;return r.useEffect(()=>(f(e=>u?e.has(u)?e.set(u,{...m,element:u}).toSorted(q):(e.set(u,{...m,element:u}),e.toSorted(q)):e),()=>{f(e=>u&&e.has(u)?(e.delete(u),new $(e)):e)}),[u,m,f]),(0,n.jsx)(v,{"data-radix-collection-item":"",ref:d,children:i})});function g(){return r.useState(new $)}function b(t){let{itemMap:n}=a(e+"CollectionConsumer",t);return n}return y.displayName=h,_(g,"useInitCollection"),_(b,"useCollection"),[{Provider:s,Slot:p,ItemSlot:y},{createCollectionScope:i,useCollection:b,useInitCollection:g}]},"createCollection"),_(V,"shallowEqual"),_(K,"isElementPreceding"),_(q,"sortByDocumentPosition"),_(G,"getChildListObserver");var X=Object.defineProperty,Y=r.createContext(void 0);function Z(e){let t=r.useContext(Y);return e||t||"ltr"}X(Z,"name",{value:"useDirection",configurable:!0});var J=Object.defineProperty,Q=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let o=R(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(i?o:t,{...l,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function ee(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}function et(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}J(ee,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),(0,Object.defineProperty)(et,"name",{value:"useCallbackRef",configurable:!0});var en=Object.defineProperty,er=(e,t)=>en(e,"name",{value:t,configurable:!0}),eo="dismissableLayer.update",ei=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),el=r.forwardRef(er(function(e,o){let{disableOutsidePointerEvents:i=!1,deferPointerDownOutside:l=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:d,onDismiss:f,...p}=e,m=r.useContext(ei),[h,v]=r.useState(null),y=h?.ownerDocument??globalThis?.document,[,g]=r.useState({}),b=x(o,v),w=Array.from(m.layers),[S]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=S?w.indexOf(S):-1,C=h?w.indexOf(h):-1,P=m.layersWithOutsidePointerEventsDisabled.size>0,R=C>=E,j=r.useRef(!1),O=es(e=>{s?.(e),d?.(e),e.defaultPrevented||f?.()},{ownerDocument:y,deferPointerDownOutside:l,isDeferredPointerDownOutsideRef:j,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:r.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...m.branches].some(t=>t.contains(e));return R&&!t},[m.branches,R])}),I=eu(e=>{if(l&&j.current)return;let t=e.target;![...m.branches].some(e=>e.contains(t))&&(c?.(e),d?.(e),e.defaultPrevented||f?.())},y),N=!!h&&C===w.length-1,k=et(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&f&&(e.preventDefault(),f()))});return r.useEffect(()=>{if(N)return y.addEventListener("keydown",k,{capture:!0}),()=>y.removeEventListener("keydown",k,{capture:!0})},[y,N,k]),r.useEffect(()=>{if(h)return i&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(t=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),ec(),()=>{i&&(m.layersWithOutsidePointerEventsDisabled.delete(h),0===m.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=t))}},[h,y,i,m]),r.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),ec())},[h,m]),r.useEffect(()=>{let e=er(()=>g({}),"handleUpdate");return document.addEventListener(eo,e),()=>document.removeEventListener(eo,e)},[]),(0,n.jsx)(Q.div,{...p,ref:b,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:u(e.onFocusCapture,I.onFocusCapture),onBlurCapture:u(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:u(e.onPointerDownCapture,O.onPointerDownCapture)})},"DismissableLayer"));er(function(){let e=r.useContext(ei),[t,n]=r.useState(null);return r.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var ea=er(()=>!0,"IS_TRUE");function es(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:l,shouldHandlePointerDownOutside:a=ea}=t,s=et(e),u=r.useRef(!1),c=r.useRef(!1),d=r.useRef(new Map),f=r.useRef(()=>{});return r.useEffect(()=>{function e(){c.current=!1,i.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function r(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...l].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)}er(e,"resetOutsideInteraction"),er(t,"isOutsideInteractionIntercepted"),er(r,"handleInteractionCapture"),er(p,"handleInteractionBubble");let m=er(r=>{if(r.target&&!u.current){let l=function(){n.removeEventListener("click",f.current);let r=t();e(),r||ed("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if(er(l,"handleAndDispatchPointerDownOutsideEvent"),!a(r.target)){n.removeEventListener("click",f.current),e(
2),u.current=!1;return}let p={originalEvent:r};c.current=!0,i.current=o&&0===r.button,d.current.clear(),o&&0===r.button?(n.removeEventListener("click",f.current),f.current=l,n.addEventListener("click",f.current,{once:!0})):l()}else n.removeEventListener("click",f.current),e();u.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,r,!0),n.addEventListener(e,p);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",m),n.removeEventListener("click",f.current),h))n.removeEventListener(e,r,!0),n.removeEventListener(e,p)}},[n,s,o,i,l,a]),{onPointerDownCapture:er(()=>u.current=!0,"onPointerDownCapture")}}function eu(e,t=globalThis?.document){let n=et(e),o=r.useRef(!1);return r.useEffect(()=>{let e=er(e=>{e.target&&!o.current&&ed("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:er(()=>o.current=!0,"onFocusCapture"),onBlurCapture:er(()=>o.current=!1,"onBlurCapture")}}function ec(){let e=new CustomEvent(eo);document.dispatchEvent(e)}function ed(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?ee(o,i):o.dispatchEvent(i)}er(es,"usePointerDownOutside"),er(eu,"useFocusOutside"),er(ec,"dispatchUpdate"),er(ed,"handleAndDispatchCustomEvent");var ef=Object.defineProperty,ep=(e,t)=>ef(e,"name",{value:t,configurable:!0}),em=0,eh=null;function ev(){r.useEffect(()=>{eh||(eh={start:ey(),end:ey()});let{start:e,end:t}=eh;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),em++,()=>{1===em&&(eh?.start.remove(),eh?.end.remove(),eh=null),em=Math.max(0,em-1)}},[])}function ey(){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}ep(function(e){return ev(),e.children},"FocusGuards"),ep(ev,"useFocusGuards"),ep(ey,"createFocusGuard");var eg=Object.defineProperty,eb=(e,t)=>eg(e,"name",{value:t,configurable:!0}),ex="focusScope.autoFocusOnMount",ew="focusScope.autoFocusOnUnmount",eS={bubbles:!1,cancelable:!0},eE=r.forwardRef(eb(function(e,t){let{loop:o=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:a,...s}=e,[u,c]=r.useState(null),d=et(l),f=et(a),p=r.useRef(null),m=x(t,c),h=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(i){let e=function(e){if(h.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:eN(p.current,{select:!0})},t=function(e){if(h.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||eN(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&eN(u)};eb(e,"handleFocusIn"),eb(t,"handleFocusOut"),eb(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()}}},[i,u,h.paused]),r.useEffect(()=>{if(u){ek.add(h);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(ex,eS);u.addEventListener(ex,d),u.dispatchEvent(t),t.defaultPrevented||(eC(eD(eR(u)),{select:!0}),document.activeElement===e&&eN(u))}return()=>{u.removeEventListener(ex,d),setTimeout(()=>{let t=new CustomEvent(ew,eS);u.addEventListener(ew,f),u.dispatchEvent(t),t.defaultPrevented||eN(e??document.body,{select:!0}),u.removeEventListener(ew,f),ek.remove(h)},0)}}},[u,d,f,h]);let v=r.useCallback(e=>{if(!o&&!i||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[r,i]=eP(t);r&&i?e.shiftKey||n!==i?e.shiftKey&&n===r&&(e.preventDefault(),o&&eN(i,{select:!0})):(e.preventDefault(),o&&eN(r,{select:!0})):n===t&&e.preventDefault()}},[o,i,h.paused]);return(0,n.jsx)(Q.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})},"FocusScope"));function eC(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eN(r,{select:t}),document.activeElement!==n)return}function eP(e){let t=eR(e);return[ej(t,e),ej(t.reverse(),e)]}function eR(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:eb(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 ej(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):eO(r,{upTo:t})))return r}function eO(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 eI(e){return e instanceof HTMLInputElement&&"select"in e}function eN(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&eI(e)&&t&&e.select()}}eb(eC,"focusFirst"),eb(eP,"getTabbableEdges"),eb(eR,"getTabbableCandidates"),eb(ej,"findVisible"),eb(eO,"isHidden"),eb(eI,"isSelectableInput"),eb(eN,"focus");var ek=eA();function eA(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=eT(e,t)).unshift(t)},remove(t){e=eT(e,t),e[0]?.resume()}}}function eT(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eD(e){return e.filter(e=>"A"!==e.tagName)}eb(eA,"createFocusScopesStack"),eb(eT,"arrayRemove"),eb(eD,"removeLinks");var eM=globalThis?.document?r.useLayoutEffect:()=>{},eL=Object.defineProperty,eF=r[" useId ".trim().toString()]||(()=>void 0),e_=0;function ez(e){let[t,n]=r.useState(eF());return eM(()=>{e||n(e=>e??String(e_++))},[e]),e||(t?`radix-${t}`:"")}eL(ez,"name",{value:"useId",configurable:!0});var eW=e.i(258950),e$=e.i(953760),eB=Object.defineProperty;function eH(e){let[t,n]=r.useState(void 0);return eM(()=>
2{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}eB(function(e,t){let{children:r,width:o=10,height:i=5,...l}=e;return(0,n.jsx)(Q.svg,{...l,ref:t,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,n.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0}),(0,Object.defineProperty)(eH,"name",{value:"useSize",configurable:!0});var eU=Object.defineProperty,eV=(e,t)=>eU(e,"name",{value:t,configurable:!0}),eK="Popper",[eq,eG]=m(eK),[eX,eY]=eq(eK),eZ=eV(e=>{let{__scopePopper:t,children:o}=e,[i,l]=r.useState(null),[a,s]=r.useState(void 0);return(0,n.jsx)(eX,{scope:t,anchor:i,onAnchorChange:l,placementState:a,setPlacementState:s,children:o})},"Popper"),eJ=r.forwardRef(eV(function(e,t){let{__scopePopper:o,virtualRef:i,...l}=e,a=eY("PopperAnchor",o),s=r.useRef(null),u=a.onAnchorChange,c=x(t,r.useCallback(e=>{s.current=e,e&&u(e)},[u])),d=r.useRef(null);r.useEffect(()=>{if(!i)return;let e=d.current;d.current=i.current,e!==d.current&&u(d.current)});let f=a.placementState&&e3(a.placementState),p=f?.[0],m=f?.[1];return i?null:(0,n.jsx)(Q.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...l,ref:c})},"PopperAnchor")),eQ="PopperContent",[e0,e1]=eq(eQ),e2=r.forwardRef(eV(function(e,t){let{__scopePopper:o,side:i="bottom",sideOffset:l=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:h="optimized",onPlaced:v,...y}=e,g=eY(eQ,o),[b,w]=r.useState(null),S=x(t,w),[E,C]=r.useState(null),P=eH(E),R=P?.width??0,j=P?.height??0,O="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},I=Array.isArray(d)?d:[d],N=I.length>0,k={padding:O,boundary:I.filter(e5),altBoundary:N},{refs:A,floatingStyles:T,placement:D,isPositioned:M,middlewareData:L}=(0,eW.useFloating)({strategy:"fixed",placement:i+("center"!==a?"-"+a:""),whileElementsMounted:eV((...e)=>(0,e$.autoUpdate)(...e,{animationFrame:"always"===h}),"whileElementsMounted"),elements:{reference:g.anchor},middleware:[(0,eW.offset)({mainAxis:l+j,alignmentAxis:s}),c&&(0,eW.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?(0,eW.limitShift)():void 0,...k}),c&&(0,eW.flip)({...k}),(0,eW.size)({...k,apply:eV(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),E&&(0,eW.arrow)({element:E,padding:u}),e6({arrowWidth:R,arrowHeight:j}),m&&(0,eW.hide)({strategy:"referenceHidden",...k,boundary:N?k.boundary:void 0})]}),F=g.setPlacementState;eM(()=>(F(D),()=>{F(void 0)}),[D,F]);let[_,z]=e3(D),W=et(v);eM(()=>{M&&W?.()},[M,W]);let $=L.arrow?.x,B=L.arrow?.y,H=L.arrow?.centerOffset!==0,[U,V]=r.useState();return eM(()=>{b&&V(window.getComputedStyle(b).zIndex)},[b]),(0,n.jsx)("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:M?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,n.jsx)(e0,{scope:o,placedSide:_,placedAlign:z,onArrowChange:C,arrowX:$,arrowY:B,shouldHideArrow:H,children:(0,n.jsx)(Q.div,{"data-side":_,"data-align":z,...y,ref:S,style:{...y.style,animation:M?y.style?.animation:"none"}})})})},"PopperContent"));function e5(e){return null!==e}eV(e5,"isNotNull");var e6=eV(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,u]=e3(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+l/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 e3(e){let[t,n="center"]=e.split("-");return[t,n]}eV(e3,"getSideAndAlignFromPlacement");var e7=Object.defineProperty,e8=r.forwardRef(e7(function(e,t){let{c
2ontainer:i,...l}=e,[a,s]=r.useState(!1);eM(()=>s(!0),[]);let u=i||a&&globalThis?.document?.body;return u?o.createPortal((0,n.jsx)(Q.div,{...l,ref:t}),u):null},"name",{value:"Portal",configurable:!0})),e4=Object.defineProperty,e9=(e,t)=>e4(e,"name",{value:t,configurable:!0});function te(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}e9(te,"useStateMachine");var tt=e9(e=>{let{present:t,children:n}=e,o=tn(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=to(o.ref,tl(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:l}):null},"Presence");function tn(e){let[t,n]=r.useState(),o=r.useRef(null),i=r.useRef(e),l=r.useRef("none"),a=r.useRef(void 0),[s,u]=te(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{"mounted"===s?(l.current=a.current??ti(o.current),a.current=void 0):l.current="none"},[s]),eM(()=>{let t=o.current,n=i.current;if(n!==e){let r=l.current,o=ti(t);e?(a.current=o,u("MOUNT")):"none"===o||t?.display==="none"?u("UNMOUNT"):n&&r!==o?u("ANIMATION_OUT"):u("UNMOUNT"),i.current=e}},[e,u]),eM(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=e9(r=>{let l=ti(o.current).includes(CSS.escape(r.animationName));if(r.target===t&&l&&(u("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=e9(e=>{e.target===t&&(l.current=ti(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)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,a.current=ti(t)}else o.current=null;n(e)},[])}}function tr(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function to(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=tr(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():tr(n[e],null)}}},[])}function ti(e){return e?.animationName||"none"}function tl(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}e9(tn,"usePresence"),e9(tr,"setRef"),e9(to,"useStableComposedRefs"),e9(ti,"getAnimationName"),e9(tl,"getElementRef");var ta=Object.defineProperty,ts=r[" useEffectEvent ".trim().toString()],tu=r[" useInsertionEffect ".trim().toString()];function tc(e){if("function"==typeof ts)return ts(e);let t=r.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof tu?tu(()=>{t.current=e}):eM(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}ta(tc,"name",{value:"useEffectEvent",configurable:!0});var td=Object.defineProperty,tf=(e,t)=>td(e,"name",{value:t,configurable:!0}),tp=r[" useInsertionEffect ".trim().toString()]||eM;function tm({prop:e,defaultProp:t,onChange:n=tf(()=>{},"onChange"),caller:o}){let[i,l,a]=th({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:i;return[u,r.useCallback(t=>{if(s){let n=tv(t)?t(e):t;n!==e&&a.current?.(n)}else l(t)},[s,e,l,a])]}function th({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),l=r.useRef(t);return tp(()=>{l.current=t},[t]),r.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,o,l]}function tv(e){return"function"==typeof e}tf(tm,"useControllableState"),tf(th,"useUncontrolledState"),tf(tv,"isFunction");var ty=Symbol("RADIX:SYNC_STATE");function tg(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}tf(function(e,t,n,o){let{prop:i,defaultProp:l,onChange:a,caller:s}=t,u=void 0!==i,c=tc(a),d=[{...n,state:l}];o&&d.push(o);let[f,p]=r.useReducer((t,n)=>{if(n.type===ty)return{...t,state:n.state};let r=e(t,n);
2return u&&!Object.is(r.state,t.state)&&c(r.state),r},...d),m=f.state,h=r.useRef(m);r.useEffect(()=>{h.current!==m&&(h.current=m,u||c(m))},[m,h,u]);let v=r.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return r.useEffect(()=>{u&&!Object.is(i,f.state)&&p({type:ty,state:i})},[i,f.state,u]),[v,p]},"useControllableStateReducer"),(0,Object.defineProperty)(tg,"name",{value:"usePrevious",configurable:!0});var tb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),tx=e.i(186312),tw=e.i(985369),tS=Object.defineProperty,tE=(e,t)=>tS(e,"name",{value:t,configurable:!0}),tC=[" ","Enter","ArrowUp","ArrowDown"],tP=[" ","Enter"],tR="Select",[tj,tO,tI]=z(tR),[tN,tk]=m(tR,[tI,eG]),tA=eG(),[tT,tD]=tN(tR),[tM,tL]=tN(tR);function tF(e){let{__scopeSelect:t,children:o,open:i,defaultOpen:l,onOpenChange:a,value:s,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:v,internal_do_not_use_render:y}=e,g=tA(t),[b,x]=r.useState(null),[w,S]=r.useState(null),[E,C]=r.useState(!1),P=Z(d),[R,j]=tm({prop:i,defaultProp:l??!1,onChange:a,caller:tR}),[O,I]=tm({prop:s,defaultProp:u,onChange:c,caller:tR}),N=r.useRef(null),k=r.useRef(O);r.useEffect(()=>{let e=v?b?.ownerDocument.getElementById(v):b?.form;if(e instanceof HTMLFormElement){let t=tE(()=>I(k.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[v,b,I]);let A=!b||!!v||!!b.closest("form"),[T,D]=r.useState(new Set),M=ez(),L=Array.from(T).map(e=>e.props.value).join(";"),F=r.useCallback(e=>{D(t=>new Set(t).add(e))},[]),_=r.useCallback(e=>{D(t=>{let n=new Set(t);return n.delete(e),n})},[]),z={required:h,trigger:b,onTriggerChange:x,valueNode:w,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:M,value:O,onValueChange:I,open:R,onOpenChange:j,dir:P,triggerPointerDownPosRef:N,disabled:m,name:f,autoComplete:p,form:v,nativeOptions:T,nativeSelectKey:L,isFormControl:A};return(0,n.jsx)(eZ,{...g,children:(0,n.jsx)(tT,{scope:t,...z,children:(0,n.jsx)(tj.Provider,{scope:t,children:(0,n.jsx)(tM,{scope:t,onNativeOptionAdd:F,onNativeOptionRemove:_,children:no(y)?y(z):o})})})})}tE(tF,"SelectProvider");var t_=tE(e=>{let{__scopeSelect:t,children:r,...o}=e;return(0,n.jsx)(tF,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:e})=>(0,n.jsxs)(n.Fragment,{children:[r,e?(0,n.jsx)(nr,{__scopeSelect:t}):null]})})},"Select"),tz=r.forwardRef(tE(function(e,t){let{__scopeSelect:o,disabled:i=!1,...l}=e,a=tA(o),s=tD("SelectTrigger",o),c=s.disabled||i,d=x(t,s.onTriggerChange),f=tO(o),p=r.useRef("touch"),[m,h,v]=nl(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=na(t,e,n);void 0!==r&&s.onValueChange(r.value)}),y=tE(e=>{c||(s.onOpenChange(!0),v()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,n.jsx)(eJ,{asChild:!0,...a,children:(0,n.jsx)(Q.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ni(s.value)?"":void 0,...l,ref:d,onClick:u(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:u(l.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:u(l.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&tC.includes(e.key)&&(y(),e.preventDefault())})})})},"SelectTrigger")),tW=r.forwardRef(tE(function(e,t){let{__scopeSelect:o,className:i,style:l,children:a,placeholder:s="",...u}=e,c=tD("SelectValue",o),{onValueNodeHasChildrenChange:d}=c,f=void 0!==a,p=x(t,c.onValueNodeChange);eM(()=>{d(f)},[d,f]);let m=ni(c.value);return(0,n.jsx)(Q.span,{...u,asChild:!m&&u.asChild,ref:p,style:{pointerEvents:"none"},children:(0,n.jsx)(r.Fragment,{children:m?s:a},m?"placeholder":"value")})},"SelectValue")),t$=r.forwardRef(tE(function(e,t){let{__scopeSelect:r,children:o,...i}=e;return(0,n.jsx)(Q.span,{"aria-hidden":!0,...i,ref:t,children:o||"â¼"})},"SelectIcon")),[tB,tH]=tN("SelectPortal",{forceMount:void 0}),tU=tE(e=>{let{__scopeSelect:t,forceMount:r,...o}=e;return(0,n.jsx)(tB,{scope:e.__scopeSelect,forceMount:r,children:(0,n.jsx)(e8,{asChild:!0,...o})})},"SelectPortal"),tV="SelectContent",tK=r.forwardRef(tE(function(e,t){let o=tH(tV,e.__scopeSelect),{forceMount:i=o.forceMount,...l}=e,a=tD(tV,e.__scopeSelect),[s,u]=r.useState();return eM(()=>{u(new DocumentFragment)},[]),(0,n.jsx)(tt,{present:i||a.open,children:({present:e})=>e?(0,n.jsx)(tZ,{...l,ref:t}):(0,n.jsx)(tq,{...l,fragment:s})})},"SelectContent")),tq=r.forwardRef(tE(function(e,t){let{__scopeSelect:r,children:i,fragment:l}=e;return l?o.createPortal((0,n.jsx)(tG,{scope:r,children:(0,n.jsx)(tj.Slot,{scope:r,children:(0,n.jsx)("div",{ref:t,children:i})})}),l):null},"SelectContentFragment")),[tG,tX]=tN(tV),tY=R("SelectContent.RemoveScroll"),tZ=r.forwardRef(tE(function(e,t){let{__scopeSelect:o}=e,{position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:v,sticky:y,hideWhenDetached:g,avoidCollisions:b,...w}=e,S=tD(tV,o),[E,C]=r.useState(null),[P,R]=r.useState(null),j=x(t,C),[O,I]=r.useState(null),[N,k]=r.useState(null),A=tO(o),[T,D]=r.useState(!1),M=r.useRef(!1);r.useEffect(()=>{if(E)return(0,tx.hideOthers)(E)},[E]),ev();let L=r.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(n?.scrollIntoView({block:"nearest"}),n===t&&P&&(P.scrollTop=0),n===r&&P&&(P.scrollTop=P.scrollHeight),n?.focu
2s(),document.activeElement!==o))return},[A,P]),F=r.useCallback(()=>L([O,E]),[L,O,E]);r.useEffect(()=>{T&&F()},[T,F]);let{onOpenChange:_,triggerPointerDownPosRef:z}=S;r.useEffect(()=>{if(E){let e={x:0,y:0},t=tE(t=>{e={x:Math.abs(Math.round(t.pageX)-(z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(z.current?.y??0))}},"handlePointerMove"),n=tE(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(E)||_(!1),document.removeEventListener("pointermove",t),z.current=null},"handlePointerUp");return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[E,_,z]),r.useEffect(()=>{let e=tE(()=>_(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[_]);let[W,$]=nl(e=>{let t=A().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=na(t,e,n);r&&setTimeout(()=>r.ref.current?.focus())}),B=r.useCallback((e,t,n)=>{let r=!M.current&&!n;(void 0!==S.value&&S.value===t||r)&&(I(e),r&&(M.current=!0))},[S.value]),H=r.useCallback(()=>E?.focus(),[E]),U=r.useCallback((e,t,n)=>{let r=!M.current&&!n;(void 0!==S.value&&S.value===t||r)&&k(e)},[S.value]),V="popper"===i?tQ:tJ;return(0,n.jsx)(tG,{scope:o,content:E,viewport:P,onViewportChange:R,itemRefCallback:B,selectedItem:O,onItemLeave:H,itemTextRefCallback:U,focusSelectedItem:F,selectedItemText:N,position:i,isPositioned:T,searchRef:W,children:(0,n.jsx)(tw.RemoveScroll,{as:tY,allowPinchZoom:!0,children:(0,n.jsx)(eE,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:u(l,e=>{S.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,n.jsx)(el,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,n.jsx)(V,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...w,...V===tQ?{side:c,sideOffset:d,align:f,alignOffset:p,arrowPadding:m,collisionBoundary:h,collisionPadding:v,sticky:y,hideWhenDetached:g,avoidCollisions:b}:{},onPlaced:()=>D(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:u(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>L(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),tJ=r.forwardRef(tE(function(e,t){let{__scopeSelect:o,onPlaced:l,...a}=e,s=tD(tV,o),u=tX(tV,o),[c,d]=r.useState(null),[f,p]=r.useState(null),m=x(t,p),h=tO(o),v=r.useRef(!1),y=r.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:w,focusSelectedItem:S}=u,E=r.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&f&&g&&b&&w){let e=s.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=w.getBoundingClientRect();if("rtl"!==s.dir){let o=r.left-t.left,l=n.left-o,a=e.left-l,s=e.width+a,u=Math.max(s,t.width),d=i(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.left=d+"px"}else{let o=t.right-r.right,l=window.innerWidth-n.right-o,a=window.innerWidth-e.right-l,s=e.width+a,u=Math.max(s,t.width),d=i(l,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=s+"px",c.style.right=d+"px"}let o=h(),a=window.innerHeight-20,u=g.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),x=p+m+u+parseInt(d.paddingBottom,10)+y,S=Math.min(5*b.offsetHeight,x),E=window.getComputedStyle(g),C=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),R=e.top+e.height/2-10,j=b.offsetHeight/2,O=p+m+(b.offsetTop+j);if(O<=R){let e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";let t=Math.max(a-R,j+(e?P:0)+(f.clientHeight-g.offsetTop-g.offsetHeight)+y);c.style.height=O+t+"px"}else{let e=o.length>0&&b===o[0].ref.current;c.style.top="0px";let t=Math.max(R,p+g.offsetTop+(e?C:0)+j);c.style.height=t+(x-O)+"px",g.scrollTop=O-R+g.offsetTop}c.style.margin="10px 0",c.style.minHeight=S+"px",c.style.maxHeight=a+"px",l?.(),requestAnimationFrame(()=>v.current=!0)}},[h,s.trigger,s.valueNode,c,f,g,b,w,s.dir,l]);eM(()=>E(),[E]);let[C,P]=r.useState();eM(()=>{f&&P(window.getComputedStyle(f).zIndex)},[f]);let R=r.useCallback(e=>{e&&!0===y.current&&(E(),S?.(),y.current=!1)},[E,S]);return(0,n.jsx)(t0,{scope:o,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:R,children:(0,n.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,n.jsx)(Q.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})},"SelectItemAlignedPosition")),tQ=r.forwardRef(tE(function(e,t){let{__scopeSelect:r,align:o="start",collisionPadding:i=10,...l}=e,a=tA(r);return(0,n.jsx)(e2,{...a,...l,ref:t,align:o,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[t0,t1]=tN(tV,{}),t2="SelectViewport",t5=r.forwardRef(tE(function(e,t){let{__scopeSelect:o,nonce:i,...l}=e,a=tX(t2,o),s=t1(t2,o),c=x(t,a.onViewportChange),d=r.useRef(0);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,n.jsx)(tj.Slot,{scope:o,children:(0,n.jsx)(Q.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:u(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,l=Math.min(r,i),a=i-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})},"SelectViewport")),[t6,t3]=tN("SelectGroup"),t7="SelectItem",[t8,t4]=tN(t7),t9=r.forwardRef(tE(function(e,t){let{__scopeSelect:o,value:i,disabled:l=!1,textValue:a,...s}=e,c=tD(t7,o),d=tX(t7,o),f=c.value===i,[p,m]=r.useState(a??""),[h,v]=r.useState(!1),y=x(t,et(e=>d.itemRefCallback?.(e,i,l))),g=ez(),b=r.useRef("touch"),w=tE(()=>{l||(c.onValueChange(i),c.onOpenChange(!1))},"handleSelect");return(0,n.jsx)(t8,{scope:o,value:i,disabled:l,textId:g,isSelected:f,onItemTextChange:r.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,n.jsx)(tj.ItemSlot,{scope:o,value:i,disabled:l,textValue:p,children:(0,n.jsx)(Q.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:y,onFocus:u(s.onFocus,()=>v(!0)),onBlur:u(s.onBlur,()=>v(!1)),onClick:u(s.onClick,()=>{"mouse"!==b.current&&w()}),onPointerUp:u(s.onPointerUp,()=>{"mouse"===b.current&&w()}),onPointerDown:u(s.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:u(s.onPointerMove,e=>{b.current=e.pointerType,l?d.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focu
2s({preventScroll:!0})}),onPointerLeave:u(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:u(s.onKeyDown,e=>{l||e.target!==e.currentTarget||(d.searchRef?.current===""||" "!==e.key)&&(tP.includes(e.key)&&w()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),ne="SelectItemText",nt=r.forwardRef(tE(function(e,t){let{__scopeSelect:i,className:l,style:a,...s}=e,u=tD(ne,i),c=tX(ne,i),d=t4(ne,i),f=tL(ne,i),[p,m]=r.useState(null),h=et(e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),v=x(t,m,d.onItemTextChange,h),y=p?.textContent,g=r.useMemo(()=>(0,n.jsx)("option",{value:d.value,disabled:d.disabled,children:y},d.value),[d.disabled,d.value,y]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=f;return eM(()=>(b(g),()=>w(g)),[b,w,g]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q.span,{id:d.textId,...s,ref:v}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren&&!ni(u.value)?o.createPortal(s.children,u.valueNode):null]})},"SelectItemText")),nn=r.forwardRef(tE(function(e,t){let{__scopeSelect:r,...o}=e;return t4("SelectItemIndicator",r).isSelected?(0,n.jsx)(Q.span,{"aria-hidden":!0,...o,ref:t}):null},"SelectItemIndicator")),nr=r.forwardRef(tE(function({__scopeSelect:e,...t},o){let i=tD("SelectBubbleInput",e),{value:l,onValueChange:a,required:s,disabled:u,name:c,autoComplete:d,form:f}=i,{nativeOptions:p,nativeSelectKey:m}=i,h=r.useRef(null),v=x(o,h),y=l??"",g=tg(y),b=Array.from(p).some(e=>(e.props.value??"")==="");return r.useEffect(()=>{let e=h.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(g!==y&&t){let n=new Event("change",{bubbles:!0});t.call(e,y),e.dispatchEvent(n)}},[g,y]),(0,n.jsxs)(Q.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:c,autoComplete:d,disabled:u,form:f,onChange:e=>a(e.target.value),...t,style:{...tb,...t.style},ref:v,defaultValue:y,children:[ni(l)&&!b?(0,n.jsx)("option",{value:""}):null,Array.from(p)]},m)},"SelectBubbleInput"));function no(e){return"function"==typeof e}function ni(e){return""===e||void 0===e}function nl(e){let t=et(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{t(n.current+e)},[t]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function na(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,i=ns(e,Math.max(o,0));1===r.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function ns(e,t){return e.map((n,r)=>e[(t+r)%e.length])}tE(no,"isFunction"),tE(ni,"shouldShowPlaceholder"),tE(nl,"useTypeaheadSearch"),tE(na,"findNextItem"),tE(ns,"wrapArray");var nu=e.i(626197),nc=e.i(802315),nd=e.i(278612),nf=e.i(647163);let np=(0,r.forwardRef)(({className:e,children:t,...r},o)=>(0,n.jsxs)(tz,{ref:o,className:(0,nf.cn)("border-border bg-card text-md text-foreground flex h-9 w-full items-center justify-between gap-2 rounded-sm border px-3 font-sans leading-[1.6] transition-colors","focus-visible:border-ring focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[placeholder]:text-muted-foreground",e),...r,children:[(0,n.jsx)("span",{className:"truncate",children:t}),(0,n.jsx)(t$,{asChild:!0,children:(0,n.jsx)(nc.IconChevronDown,{className:"text-muted-foreground size-4 shrink-0"})})]}));np.displayName=tz.displayName;let nm=(0,r.forwardRef)(({className:e,children:t,position:r="popper",...o},i)=>(0,n.jsx)(tU,{children:(0,n.jsx)(tK,{ref:i,position:r,className:(0,nf.cn)("border-border bg-card text-foreground relative z-50 max-h-[var(--radix-select-content-available-height)] min-w-[var(--radix-select-trigger-width)] overflow-hidden rounded-sm border shadow-md","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",e),...o,children:(0,n.jsx)(t5,{className:"p-1",children:t})})}));nm.displayName=tK.displayName;let nh=(0,r.forwardRef)(({className:e,children:t,...r},o)=>(0,n.jsxs)(t9,{ref:o,className:(0,nf.cn)("text-md text-foreground relative flex w-full cursor-pointer items-center rounded-sm py-1.5 pr-8 pl-3 leading-[1.6] outline-none select-none",nd.menuOptionHover,"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,n.jsx)(nt,{children:t}),(0,n.jsx)("span",{className:"absolute right-2 flex items-center",children:(0,n.jsx)(nn,{children:(0,n.jsx)(nu.IconCheck,{className:"text-accent size-4"})})})]}));nh.displayName=t9.displayName,e.s(["Select",0,t_,"SelectContent",0,nm,"SelectItem",0,nh,"SelectTrigger",0,np,"
2SelectValue",0,tW],771120)}]); 3 4//# debugId=75ec70c1-6282-7735-963a-9c72f7b6532e
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.