1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[750],{70750:function(e,t,n){n.d(t,{VY:function(){return to},ZA:function(){return tw},JO:function(){return te},ck:function(){return tC},wU:function(){return tR},eT:function(){return tj},__:function(){return tb},h_:function(){return tr},fC:function(){return e6},$G:function(){return tT},u_:function(){return tO},GV:function(){return te},Z0:function(){return tL},xz:function(){return e4},B4:function(){return e3},l_:function(){return tm}});var r,l,o,i=n(2265),u=n(54887);function a(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(a,"name",{value:"clamp",configurable:!0});var s=n(6741),c=n(95691),d=n(25134),f=n(11455),p=n(73966),v=n(98575),h=n(37053),m=n(57437),y=Object.defineProperty,g=(e,t)=>y(e,"name",{value:t,configurable:!0});function w(e){let t=e+"CollectionProvider",[n,r]=(0,p.b)(t),[l,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=g(e=>{let{scope:t,children:n}=e,r=i.useRef(null),o=i.useRef(new Map).current;return(0,m.jsx)(l,{scope:t,itemMap:o,collectionRef:r,children:n})},"CollectionProvider");u.displayName=t;let a=e+"CollectionSlot",s=(0,h.Z8)(a),c=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,l=o(a,n),i=(0,v.e)(t,l.collectionRef);return(0,m.jsx)(s,{ref:i,children:r})});c.displayName=a;let d=e+"CollectionItemSlot",f="data-radix-collection-item",y=(0,h.Z8)(d),w=i.forwardRef((e,t)=>{let{scope:n,children:r,...l}=e,u=i.useRef(null),a=(0,v.e)(t,u),s=o(d,n);return i.useEffect(()=>(s.itemMap.set(u,{ref:u,...l}),()=>void s.itemMap.delete(u))),(0,m.jsx)(y,{[f]:"",ref:a,children:r})});function b(t){let n=o(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(f,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return w.displayName=d,g(b,"useCollection"),[{Provider:u,Slot:c,ItemSlot:w},b,r]}g(w,"createCollection");var b=new WeakMap,x=(r=new WeakMap,g(l=class e extends Map{set(e,t){return b.get(this)&&(this.has(e)?(0,c._)(this,r)[(0,c._)(this,r).indexOf(e)]=e:(0,c._)(this,r).push(e)),super.set(e,t),this}insert(e,t,n){let l;let o=this.has(t),i=(0,c._)(this,r).length,u=C(e),a=u>=0?u:i+u,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 d=this.size+(o?0:1);u<0&&a++;let f=[...(0,c._)(this,r)],p=!1;for(let e=a;e<d;e++)if(a===e){let r=f[e];f[e]===t&&(r=f[e+1]),o&&this.delete(t),l=this.get(r),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],r=l;l=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let l=new e(this);return l.insert(t,n,r),l}before(e){let t=(0,c._)(this,r).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let l=(0,c._)(this,r).indexOf(e);return -1===l?this:this.insert(l,t,n)}after(e){let t=(0,c._)(this,r).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let l=(0,c._)(this,r).indexOf(e);return -1===l?this:this.insert(l+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return(0,f._)(this,r,[]),super.clear()}delete(e){let t=super.delete(e);return t&&(0,c._)(this,r).splice((0,c._)(this,r).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=S((0,c._)(this,r),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=S((0,c._)(this,r),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return(0,c._)(this,r).indexOf(e)}keyAt(e){return S((0,c._)(this,r),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=[],l=0;for(let e of this)Reflect.apply(t,n,[e,l,this])&&r.push(e),l++;return new e(r)}map(t,n){let r=[],l=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,l,this])]),l++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,l]=t,o=0,i=null!=l?l:this.at(0);for(let e of this)i=0===o&&1===t.length?e:Reflect.apply(r,this,[i,e,o,this]),o++;return i}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,l]=t,o=null!=l?l:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);o=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[o,n,e,this])}return o}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(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let l=[...this.entries()];return l.splice(...n),new e(l)}slice(t,n){let r=new e,l=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(l=n-1);for(let e=t;e<=l;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}constructor(e){super(e),(0,d._)(this,r,{writable:!0,value:void 0}),(0,f._)(this,r,[...super.keys()]),b.set(this,!0)}},"OrderedDict"),l);function S(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=E(e,t);return -1===n?void 0:e[n]}function E(e,t){let n=e.length,r=C(t),l=r>=0?r:n+r;return l<0||l>=n?-1:l}function C(e){return e!=e||0===e?0:Math.trunc(e)}function P(e,t){if(e===t)return!0;
1if("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 j(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function R(e,t){return e[1].element&&t[1].element?j(e[1].element,t[1].element)?-1:1:0}function M(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type){e();return}})}g(S,"at"),g(E,"toSafeIndex"),g(C,"toSafeInteger"),g(function(e){let t=e+"CollectionProvider",[n,r]=(0,p.b)(t),[l,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new x,setItemMap:g(()=>void 0,"setItemMap")}),u=g(e=>{let{state:t,...n}=e;return t?(0,m.jsx)(s,{...n,state:t}):(0,m.jsx)(a,{...n})},"CollectionProvider");u.displayName=t;let a=g(e=>{let t=S();return(0,m.jsx)(s,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";let s=g(e=>{let{scope:t,children:n,state:r}=e,o=i.useRef(null),[u,a]=i.useState(null),s=(0,v.e)(o,a),[c,d]=r;return i.useEffect(()=>{if(!u)return;let e=M(()=>{});return e.observe(u,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[u]),(0,m.jsx)(l,{scope:t,itemMap:c,setItemMap:d,collectionRef:s,collectionRefObject:o,collectionElement:u,children:n})},"CollectionProviderImpl");s.displayName=t+"Impl";let c=e+"CollectionSlot",d=(0,h.Z8)(c),f=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,l=o(c,n),i=(0,v.e)(t,l.collectionRef);return(0,m.jsx)(d,{ref:i,children:r})});f.displayName=c;let y=e+"CollectionItemSlot",w=(0,h.Z8)(y),b=i.forwardRef((e,t)=>{let{scope:n,children:r,...l}=e,u=i.useRef(null),[a,s]=i.useState(null),c=(0,v.e)(t,u,s),{setItemMap:d}=o(y,n),f=i.useRef(l);P(f.current,l)||(f.current=l);let p=f.current;return i.useEffect(()=>(d(e=>a?e.has(a)?e.set(a,{...p,element:a}).toSorted(R):(e.set(a,{...p,element:a}),e.toSorted(R)):e),()=>{d(e=>a&&e.has(a)?(e.delete(a),new x(e)):e)}),[a,p,d]),(0,m.jsx)(w,{"data-radix-collection-item":"",ref:c,children:r})});function S(){return i.useState(new x)}function E(t){let{itemMap:n}=o(e+"CollectionConsumer",t);return n}return b.displayName=y,g(S,"useInitCollection"),g(E,"useCollection"),[{Provider:u,Slot:f,ItemSlot:b},{createCollectionScope:r,useCollection:E,useInitCollection:S}]},"createCollection"),g(P,"shallowEqual"),g(j,"isElementPreceding"),g(R,"sortByDocumentPosition"),g(M,"getChildListObserver");var O=n(29114),I=Object.defineProperty,T=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,h.Z8)(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:l,...o}=e,i=l?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(i,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function k(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}I(k,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var L=n(26606),A=Object.defineProperty,D=(e,t)=>A(e,"name",{value:t,configurable:!0}),N="dismissableLayer.update",_=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),F=i.forwardRef(D(function(e,t){var n,r;let{disableOutsidePointerEvents:l=!1,deferPointerDownOutside:u=!1,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...h}=e,y=i.useContext(_),[g,w]=i.useState(null),b=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,x]=i.useState({}),S=(0,v.e)(t,w),E=Array.from(y.layers),[C]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),P=C?E.indexOf(C):-1,j=g?E.indexOf(g):-1,R=y.layersWithOutsidePointerEventsDisabled.size>0,M=j>=P,O=i.useRef(!1),I=B(e=>{null==c||c(e),null==f||f(e),e.defaultPrevented||null==p||p()},{ownerDocument:b,deferPointerDownOutside:u,isDeferredPointerDownOutsideRef:O,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...y.branches].some(t=>t.contains(e));return M&&!t},[y.branches,M])}),k=H(e=>{if(u&&O.current)return;let t=e.target;[...y.branches].some(e=>e.contains(t))||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==p||p())},b),A=!!g&&j===E.length-1,F=(0,L.W)(e=>{"Escape"===e.key&&(null==a||a(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))});return i.useEffect(()=>{if(A)return b.addEventListener("keydown",F,{capture:!0}),()=>b.removeEventListener("keydown",F,{capture:!0})},[b,A,F]),i.useEffect(()=>{if(g)return l&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(g)),y.layers.add(g),U(),()=>{l&&(y.layersWithOutsidePointerEventsDisabled.delete(g),0===y.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o))}},[g,b,l,y]),i.useEffect(()=>()=>{g&&(y.layers.delete(g),y.layersWithOutsidePointerEventsDisabled.delete(g),U())},[g,y]),i.useEffect(()=>{let e=D(()=>x({}),"handleUpdate");return document.addEventListener(N,e),()=>document.removeEventListener(N,e)},[]),(0,m.jsx)(T.div,{...h,ref:S,style:{pointerEvents:R?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.Mj)(e.onFocusCapture,k.onFocusCapture),onBlurCapture:(0,s.Mj)(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:(0,s.Mj)(e.onPointerDownCapture,I.onPointerDownCapture)})},"DismissableLayer"));D(function(){let e=i.useContext(_),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var W=D(()=>!0,"IS_TRUE");function B(e,t){var n;let{ownerDocument:r=null===(n=globalThis)||void 0===n?void 0:n.document,deferPointerDownOutside:l=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:u,shouldHandlePointerDownOutside:a=W}=t,s=(0,L.W)(e),c=i.useRef(!1),d=i.useRef(!1),f=i.useRef(new Map),p=i.useRef(()=>{});return i.useEffect(()=>{function e(){d.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function n(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...u].some(e=>e.contains(t))||f.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&p.current()},0)}function i(e){d.current&&f.current.set(e.type,!1)}D(e,"resetOutsideInteraction"),D(t,"isOutsideInteractionIntercepted"),D(n,"handleInteractionCapture"),D(i,"handleInteractionBubble");let v=D(n=>{if(n.target&&!c.current){let i=function(){r.removeEventListener("click",p.current);let n=t();e(),n||z("dismissableLayer.pointerDownOutside",s,u,{discrete:!0})};if(D(i,"handleAndDispatchPointerDownOutsideEvent"),!a(n.target)){r.removeEventListener("click",p.current),e(
1),c.current=!1;return}let u={originalEvent:n};d.current=!0,o.current=l&&0===n.button,f.current.clear(),l&&0===n.button?(r.removeEventListener("click",p.current),p.current=i,r.addEventListener("click",p.current,{once:!0})):i()}else r.removeEventListener("click",p.current),e();c.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)r.addEventListener(e,n,!0),r.addEventListener(e,i);let m=window.setTimeout(()=>{r.addEventListener("pointerdown",v)},0);return()=>{for(let e of(window.clearTimeout(m),r.removeEventListener("pointerdown",v),r.removeEventListener("click",p.current),h))r.removeEventListener(e,n,!0),r.removeEventListener(e,i)}},[r,s,l,o,u,a]),{onPointerDownCapture:D(()=>c.current=!0,"onPointerDownCapture")}}function H(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,L.W)(e),l=i.useRef(!1);return i.useEffect(()=>{let e=D(e=>{e.target&&!l.current&&z("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:D(()=>l.current=!0,"onFocusCapture"),onBlurCapture:D(()=>l.current=!1,"onBlurCapture")}}function U(){let e=new CustomEvent(N);document.dispatchEvent(e)}function z(e,t,n,r){let{discrete:l}=r,o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),l?k(o,i):o.dispatchEvent(i)}D(B,"usePointerDownOutside"),D(H,"useFocusOutside"),D(U,"dispatchUpdate"),D(z,"handleAndDispatchCustomEvent");var V=n(86097),K=Object.defineProperty,Z=(e,t)=>K(e,"name",{value:t,configurable:!0}),q="focusScope.autoFocusOnMount",G="focusScope.autoFocusOnUnmount",Y={bubbles:!1,cancelable:!0},$=i.forwardRef(Z(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:l,onUnmountAutoFocus:o,...u}=e,[a,s]=i.useState(null),c=(0,L.W)(l),d=(0,L.W)(o),f=i.useRef(null),p=(0,v.e)(t,s),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?f.current=t:er(f.current,{select:!0})},t=function(e){if(h.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||er(f.current,{select:!0})},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&er(a)};Z(e,"handleFocusIn"),Z(t,"handleFocusOut"),Z(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,h.paused]),i.useEffect(()=>{if(a){el.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(q,Y);a.addEventListener(q,c),a.dispatchEvent(t),t.defaultPrevented||(X(eu(Q(a)),{select:!0}),document.activeElement===e&&er(a))}return()=>{a.removeEventListener(q,c),setTimeout(()=>{let t=new CustomEvent(G,Y);a.addEventListener(G,d),a.dispatchEvent(t),t.defaultPrevented||er(null!=e?e:document.body,{select:!0}),a.removeEventListener(G,d),el.remove(h)},0)}}},[a,c,d,h]);let y=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,l=document.activeElement;if(t&&l){let t=e.currentTarget,[r,o]=J(t);r&&o?e.shiftKey||l!==o?e.shiftKey&&l===r&&(e.preventDefault(),n&&er(o,{select:!0})):(e.preventDefault(),n&&er(r,{select:!0})):l===t&&e.preventDefault()}},[n,r,h.paused]);return(0,m.jsx)(T.div,{tabIndex:-1,...u,ref:p,onKeyDown:y})},"FocusScope"));function X(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(er(r,{select:t}),document.activeElement!==n)return}function J(e){let t=Q(e);return[ee(t,e),ee(t.reverse(),e)]}function Q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Z(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 ee(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):et(r,{upTo:t})))return r}function et(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function en(e){return e instanceof HTMLInputElement&&"select"in e}function er(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&en(e)&&t&&e.select()}}
1Z(X,"focusFirst"),Z(J,"getTabbableEdges"),Z(Q,"getTabbableCandidates"),Z(ee,"findVisible"),Z(et,"isHidden"),Z(en,"isSelectableInput"),Z(er,"focus");var el=eo();function eo(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=ei(e,t)).unshift(t)},remove(t){var n;null===(n=(e=ei(e,t))[0])||void 0===n||n.resume()}}}function ei(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function eu(e){return e.filter(e=>"A"!==e.tagName)}Z(eo,"createFocusScopesStack"),Z(ei,"arrayRemove"),Z(eu,"removeLinks");var ea=n(99255),es=n(97859),ec=n(51050),ed=n(61188),ef=n(90420),ep=Object.defineProperty,ev=(e,t)=>ep(e,"name",{value:t,configurable:!0}),eh="Popper",[em,ey]=(0,p.b)(eh),[eg,ew]=em(eh),eb=ev(e=>{let{__scopePopper:t,children:n}=e,[r,l]=i.useState(null),[o,u]=i.useState(void 0);return(0,m.jsx)(eg,{scope:t,anchor:r,onAnchorChange:l,placementState:o,setPlacementState:u,children:n})},"Popper"),ex=i.forwardRef(ev(function(e,t){let{__scopePopper:n,virtualRef:r,...l}=e,o=ew("PopperAnchor",n),u=i.useRef(null),a=o.onAnchorChange,s=i.useCallback(e=>{u.current=e,e&&a(e)},[a]),c=(0,v.e)(t,s),d=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&a(d.current)});let f=o.placementState&&eM(o.placementState),p=null==f?void 0:f[0],h=null==f?void 0:f[1];return r?null:(0,m.jsx)(T.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...l,ref:c})},"PopperAnchor")),eS="PopperContent",[eE,eC]=em(eS),eP=i.forwardRef(ev(function(e,t){var n,r,l,o,u,a,s,c,d;let{__scopePopper:f,side:p="bottom",sideOffset:h=0,align:y="center",alignOffset:g=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:S=0,sticky:E="partial",hideWhenDetached:C=!1,updatePositionStrategy:P="optimized",onPlaced:j,...R}=e,M=ew(eS,f),[O,I]=i.useState(null),k=(0,v.e)(t,I),[A,D]=i.useState(null),N=(0,ef.t)(A),_=null!==(c=null==N?void 0:N.width)&&void 0!==c?c:0,F=null!==(d=null==N?void 0:N.height)&&void 0!==d?d:0,W="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},B=Array.isArray(x)?x:[x],H=B.length>0,U={padding:W,boundary:B.filter(ej),altBoundary:H},{refs:z,floatingStyles:V,placement:K,isPositioned:Z,middlewareData:q}=(0,es.YF)({strategy:"fixed",placement:p+("center"!==y?"-"+y:""),whileElementsMounted:ev(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,ec.Me)(...t,{animationFrame:"always"===P})},"whileElementsMounted"),elements:{reference:M.anchor},middleware:[(0,es.cv)({mainAxis:h+F,alignmentAxis:g}),b&&(0,es.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?(0,es.dr)():void 0,...U}),b&&(0,es.RR)({...U}),(0,es.dp)({...U,apply:ev(e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:l}=e,{width:o,height:i}=n.reference,u=t.floating.style;u.setProperty("--radix-popper-available-width","".concat(r,"px")),u.setProperty("--radix-popper-available-height","".concat(l,"px")),u.setProperty("--radix-popper-anchor-width","".concat(o,"px")),u.setProperty("--radix-popper-anchor-height","".concat(i,"px"))},"apply")}),A&&(0,es.x7)({element:A,padding:w}),eR({arrowWidth:_,arrowHeight:F}),C&&(0,es.Cp)({strategy:"referenceHidden",...U,boundary:H?U.boundary:void 0})]}),G=M.setPlacementState;(0,ed.b)(()=>(G(K),()=>{G(void 0)}),[K,G]);let[Y,$]=eM(K),X=(0,L.W)(j);(0,ed.b)(()=>{Z&&(null==X||X())},[Z,X]);let J=null===(n=q.arrow)||void 0===n?void 0:n.x,Q=null===(r=q.arrow)||void 0===r?void 0:r.y,ee=(null===(l=q.arrow)||void 0===l?void 0:l.centerOffset)!==0,[et,en]=i.useState();return(0,ed.b)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]),(0,m.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:Z?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(o=q.transformOrigin)||void 0===o?void 0:o.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(a=q.hide)||void 0===a?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(eE,{scope:f,placedSide:Y,placedAlign:$,onArrowChange:D,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,m.jsx)(T.div,{"data-side":Y,"data-align":$,...R,ref:k,style:{...R.style,animation:Z?null===(s=R.style)||void 0===s?void 0:s.animation:"none"}})})})},"PopperContent"));function ej(e){return null!==e}ev(ej,"isNotNull");var eR=ev(e=>({name:"transformOrigin",options:e,fn(t){var n,r,l,o,i;let{placement:u,rects:a,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=eM(u),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(o=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,y=(null!==(i=null===(l=s.arrow)||void 0===l?void 0:l.y)&&void 0!==i?i:0)+f/2,g="",w="";return"bottom"===p?(g=c?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(g=c?h:"".concat(m,"px"),w="".concat(a.floating.height+f,"px")):"right"===p?(g="".concat(-f,"px"),w=c?h:"".concat(y,"px")):"left"===p&&(g="".concat(a.floating.width+f,"px"),w=c?h:"".concat(y,"px")),{data:{x:g,y:w}}}}),"transformOrigin");function eM(e){let[t,n="center"]=e.split("-");return[t,n]}ev(eM,"getSideAndAlignFromPlacement");var eO=Object.defineProperty,eI=i.forwardRef(eO(function(e,t){var n,r;let{container:l,...o}=e,[a,s]=i.useState(!1);(0,ed.b)(()=>s(!0),[]);let c=l||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?u.createPortal((0,m.jsx)(T.div,{...o,ref:t}),c):null},"name",{value:"Portal",configurable:!0})),eT=Object.defineProperty,ek=(e,t)=>eT(e,"name",{value:t,configurable:!0});function eL(e,t){return i.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},e)}ek(eL,"useStateMachine");var eA=ek(e=>{let{present:t,children:n}=e,r=eD(t),l="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),o=e_(r.ref,eW(l));return"function"==typeof n||r.isPresent?i.cloneElement(l,{ref:o}):null},"Presence");function eD(e){let[t,n]=i.useState(),r=i.useRef(null),l=i.useRef(e),o=i.useRef("none"),u=i.useRef(void 0),[a,s]=eL(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{if("mounted"===a){var e;o.current=null!==(e=u.current)&&void 0!==e?e:eF(r.current),u.current=void 0}else o.current="none"},[a]),(0,ed.b)(()=>{let t=r.current,n=l.current;if(n!==e){let r=o.current,i=eF(t);e?(u.current=i,s("MOUNT")):"none"===i||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==i?s("ANIMATION_OUT"):s("UNMOUNT"),l.current=e}},[e,s]),(0,ed.b)(()=>
1{if(t){var e;let n;let i=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,u=ek(e=>{let o=eF(r.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(s("ANIMATION_END"),!l.current)){let e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=i.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},"handleAnimationEnd"),a=ek(e=>{e.target===t&&(o.current=eF(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{i.clearTimeout(n),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,u.current=eF(t)}else r.current=null;n(e)},[])}}function eN(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function e_(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i.useRef(t);return r.current=t,i.useCallback(e=>{let t=r.current,n=!1,l=t.map(t=>{let r=eN(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<l.length;e++){let n=l[e];"function"==typeof n?n():eN(t[e],null)}}},[])}function eF(e){return(null==e?void 0:e.animationName)||"none"}function eW(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(l=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}ek(eD,"usePresence"),ek(eN,"setRef"),ek(e_,"useStableComposedRefs"),ek(eF,"getAnimationName"),ek(eW,"getElementRef");var eB=n(3067);function eH(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(0,Object.defineProperty)(eH,"name",{value:"usePrevious",configurable:!0});var eU=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"}),ez=n(5478),eV=n(87922),eK=Object.defineProperty,eZ=(e,t)=>eK(e,"name",{value:t,configurable:!0}),eq=[" ","Enter","ArrowUp","ArrowDown"],eG=[" ","Enter"],eY="Select",[e$,eX,eJ]=w(eY),[eQ,e0]=(0,p.b)(eY,[eJ,ey]),e1=ey(),[e5,e2]=eQ(eY),[e7,e8]=eQ(eY);function e9(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:l,onOpenChange:o,value:u,defaultValue:a,onValueChange:s,dir:c,name:d,autoComplete:f,disabled:p,required:v,form:h,internal_do_not_use_render:y}=e,g=e1(t),[w,b]=i.useState(null),[x,S]=i.useState(null),[E,C]=i.useState(!1),P=(0,O.gm)(c),[j,R]=(0,eB.T)({prop:r,defaultProp:null!=l&&l,onChange:o,caller:eY}),[M,I]=(0,eB.T)({prop:u,defaultProp:a,onChange:s,caller:eY}),T=i.useRef(null),k=i.useRef(M);i.useEffect(()=>{let e=h?null==w?void 0:w.ownerDocument.getElementById(h):null==w?void 0:w.form;if(e instanceof HTMLFormElement){let t=eZ(()=>I(k.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[h,w,I]);let L=!w||!!h||!!w.closest("form"),[A,D]=i.useState(new Set),N=(0,ea.M)(),_=Array.from(A).map(e=>e.props.value).join(";"),F=i.useCallback(e=>{D(t=>new Set(t).add(e))},[]),W=i.useCallback(e=>{D(t=>{let n=new Set(t);return n.delete(e),n})},[]),B={required:v,trigger:w,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:N,value:M,onValueChange:I,open:j,onOpenChange:R,dir:P,triggerPointerDownPosRef:T,disabled:p,name:d,autoComplete:f,form:h,nativeOptions:A,nativeSelectKey:_,isFormControl:L};return(0,m.jsx)(eb,{...g,children:(0,m.jsx)(e5,{scope:t,...B,children:(0,m.jsx)(e$.Provider,{scope:t,children:(0,m.jsx)(e7,{scope:t,onNativeOptionAdd:F,onNativeOptionRemove:W,children:tD(y)?y(B):n})})})})}eZ(e9,"SelectProvider");var e6=eZ(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,m.jsx)(e9,{__scopeSelect:t,...r,internal_do_not_use_render:e=>{let{isFormControl:r}=e;return(0,m.jsxs)(m.Fragment,{children:[n,r?(0,m.jsx)(tA,{__scopeSelect:t}):null]})}})},"Select"),e4=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,disabled:r=!1,...l}=e,o=e1(n),u=e2("SelectTrigger",n),a=u.disabled||r,c=(0,v.e)(t,u.onTriggerChange),d=eX(n),f=i.useRef("touch"),[p,h,y]=t_(e=>{let t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=tF(t,e,n);void 0!==r&&u.onValueChange(r.value)}),g=eZ(e=>{a||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},"handleOpen");return(0,m.jsx)(ex,{asChild:!0,...o,children:(0,m.jsx)(T.button,{type:"button",role:"combobox","aria-controls":u.open?u.contentId:void 0,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":tN(u.value)?"":void 0,...l,ref:c,onClick:(0,s.Mj)(l.onClick,e=>
1{e.currentTarget.focus(),"mouse"!==f.current&&g(e)}),onPointerDown:(0,s.Mj)(l.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:(0,s.Mj)(l.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&eq.includes(e.key)&&(g(),e.preventDefault())})})})},"SelectTrigger")),e3=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,className:r,style:l,children:o,placeholder:u="",...a}=e,s=e2("SelectValue",n),{onValueNodeHasChildrenChange:c}=s,d=void 0!==o,f=(0,v.e)(t,s.onValueNodeChange);(0,ed.b)(()=>{c(d)},[c,d]);let p=tN(s.value);return(0,m.jsx)(T.span,{...a,asChild:!p&&a.asChild,ref:f,style:{pointerEvents:"none"},children:(0,m.jsx)(i.Fragment,{children:p?u:o},p?"placeholder":"value")})},"SelectValue")),te=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,children:r,...l}=e;return(0,m.jsx)(T.span,{"aria-hidden":!0,...l,ref:t,children:r||"â¼"})},"SelectIcon")),[tt,tn]=eQ("SelectPortal",{forceMount:void 0}),tr=eZ(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,m.jsx)(tt,{scope:e.__scopeSelect,forceMount:n,children:(0,m.jsx)(eI,{asChild:!0,...r})})},"SelectPortal"),tl="SelectContent",to=i.forwardRef(eZ(function(e,t){let n=tn(tl,e.__scopeSelect),{forceMount:r=n.forceMount,...l}=e,o=e2(tl,e.__scopeSelect),[u,a]=i.useState();return(0,ed.b)(()=>{a(new DocumentFragment)},[]),(0,m.jsx)(eA,{present:r||o.open,children:e=>{let{present:n}=e;return n?(0,m.jsx)(tc,{...l,ref:t}):(0,m.jsx)(ti,{...l,fragment:u})}})},"SelectContent")),ti=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,children:r,fragment:l}=e;return l?u.createPortal((0,m.jsx)(tu,{scope:n,children:(0,m.jsx)(e$.Slot,{scope:n,children:(0,m.jsx)("div",{ref:t,children:r})})}),l):null},"SelectContentFragment")),[tu,ta]=eQ(tl),ts=(0,h.Z8)("SelectContent.RemoveScroll"),tc=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:o,onPointerDownOutside:u,side:a,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:y,sticky:g,hideWhenDetached:w,avoidCollisions:b,...x}=e,S=e2(tl,n),[E,C]=i.useState(null),[P,j]=i.useState(null),R=(0,v.e)(t,C),[M,O]=i.useState(null),[I,T]=i.useState(null),k=eX(n),[L,A]=i.useState(!1),D=i.useRef(!1);i.useEffect(()=>{if(E)return(0,ez.Ry)(E)},[E]),(0,V.EW)();let N=i.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),l=document.activeElement;for(let n of e)if(n===l||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&P&&(P.scrollTop=0),n===r&&P&&(P.scrollTop=P.scrollHeight),null==n||n.focus(),document.activeElement!==l))return},[k,P]),_=i.useCallback(()=>N([M,E]),[N,M,E]);i.useEffect(()=>{L&&_()},[L,_]);let{onOpenChange:W,triggerPointerDownPosRef:B}=S;i.useEffect(()=>{if(E){let e={x:0,y:0},t=eZ(t=>{var n,r,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(n=B.current)||void 0===n?void 0:n.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(r=B.current)||void 0===r?void 0:r.y)&&void 0!==o?o:0))}},"handlePointerMove"),n=eZ(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(E)||W(!1),document.removeEventListener("pointermove",t),B.current=null},"handlePointerUp");return null!==B.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[E,W,B]),i.useEffect(()=>{let e=eZ(()=>W(!1),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[H,U]=t_(e=>{let t=k().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=tF(t,e,n);r&&setTimeout(()=>{var e;return null===(e=r.ref.current)||void 0===e?void 0:e.focus()})}),z=i.useCallback((e,t,n)=>{let r=!D.current&&!n;(void 0!==S.value&&S.value===t||r)&&(O(e),r&&(D.current=!0))},[S.value]),K=i.useCallback(()=>null==E?void 0:E.focus(),[E]),Z=i.useCallback((e,t,n)=>{let r=!D.current&&!n;(void 0!==S.value&&S.value===t||r)&&T(e)},[S.value]),q="popper"===r?tf:td;return(0,m.jsx)(tu,{scope:n,content:E,viewport:P,onViewportChange:j,itemRefCallback:z,selectedItem:M,onItemLeave:K,itemTextRefCallback:Z,focusSelectedItem:_,selectedItemText:I,position:r,isPositioned:L,searchRef:H,children:(0,m.jsx)(eV.Z,{as:ts,allowPinchZoom:!0,children:(0,m.jsx)($,{asChild:!0,trapped:S.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.Mj)(l,e=>{var t;null===(t=S.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,m.jsx)(F,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:(0,m.jsx)(q,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:e=>e.preventDefault(),...x,...q===tf?{side:a,sideOffset:c,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:h,collisionPadding:y,sticky:g,hideWhenDetached:w,avoidCollisions:b}:{},onPlaced:()=>A(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,s.Mj)(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||U(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=k().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(()=>N(t)),e.preventDefault()}})})})})})})},"SelectContentImpl")),td=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,onPlaced:r,...l}=e,o=e2(tl,n),u=ta(tl,n),[s,c]=i.useState(null),[d,f]=i.useState(null),p=(0,v.e)(t,f),h=eX(n),y=i.useRef(!1),g=i.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:x,focusSelectedItem:S}=u,E=i.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&d&&w&&b&&x){let e=o.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),l=x.getBoundingClientRect();if("rtl"!==o.dir){let r=l.left-t.left,o=n.left-r,i=e.left-o,u=e.width+i,c=Math.max(u,t.width),d=a(o,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.left=d+"px"}else{let r=t.right-l.right,o=window.innerWidth-n.right-r,i=window.innerWidth-e.right-o,u=e.width+i,c=Math.max(u,t.width),d=a(o,[10,Math.max(10,window.innerWidth-10-c)]);s.style.minWidth=u+"px",s.style.right=d+"px"}let i=h(),u=window.innerHeight-20,c=w.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),v=parseInt(f.paddingTop,10),m=parseInt(f.borderBottomWidth,10),g=p+v+c+parseInt(f.paddingBottom,10)+m,S=Math.min(5*b.offsetHeight,g),E=window.getComputedStyle(w),C=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),j=e.top+e.height/2-10,R=b.offsetHeight/2,M=p+v+(b.offsetTop+R);if(M<=j){let e=i.length>0&&b===i[i.length-1].ref.current;s.style.bottom="0px";let t=d.clientHeight-w.offsetTop-w.offsetHeight;s.style.height=M+Math.max(u-j,R+(e?P:0)+t+m)+"px"}else{let e=i.length>0&&b===i[0].ref.current;s.style.top="0px";let t=Math.max(j,p+w.offsetTop+(e?C:0)+R);s.style.height=t+(g-M)+"px",w.scrollTop=M-j+w.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=S+"px",s.style.maxHeight=u+"px",null==r||r(),requestAnimationFrame(()=>y.current=!0)}},[h,o.trigger,o.valueNode,s,d,w,b,x,o.dir,r]);(0,ed.b)(()=>E(),[E]);let[C,P]=i.useState();(0,ed.b)(()=>{d&&P(window.getComputedStyle(d).zIndex)},[d]);let j=i.useCallback(e=>{e&&!0===g.current&&(E(),null==S||S(),g.current=!1)},[E,S]);return(0,m.jsx)(tp,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:y,onScrollButtonChange:j,children:(0,m.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,m.jsx)(T.div,{...l,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),tf=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,align:r="start",collisionPadding:l=10,...o}=e,i=e1(n);return(0,m.jsx)(eP,{...i,...o,ref:t,align:r,collisionPadding:l,style:{boxSizing:"border-box",...o.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")),[tp,tv]=eQ(tl,{}),th="SelectViewport",tm=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,nonce:r,...l}=e,o=ta(th,n),u=tv(th,n),a=(0,v.e)(t,o.onViewportChange),c=i.useRef(0);return(0,m.jsxs)(m.Fragment,{children:[(0,m.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:r}),(0,m.jsx)(e$.Slot,{scope:n,children:(0,m.jsx)(T.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,s.Mj)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if((null==r?void 0:r.current)&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,l=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(l<r){let o=l+e,i=Math.min(r,o),u=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=u>0?u:0,n.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})},"SelectViewport")),[ty,tg]=eQ("SelectGroup"),tw=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,...r}=e,l=(0,ea.M)();return(0,m.jsx)(ty,{scope:n,id:l,children:(0,m.jsx)(T.div,{role:"group","aria-labelledby":l,...r,ref:t})})},"SelectGroup")),tb=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,...r}=e,l=tg("SelectLabel",n);return(0,m.jsx)(T.div,{id:l.id,...r,ref:t})},"SelectLabel")),tx="SelectItem",[tS,tE]=eQ(tx),tC=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,value:r,disabled:l=!1,textValue:o,...u}=e,a=e2(tx,n),c=ta(tx,n),d=a.value===r,[f,p]=i.useState(null!=o?o:""),[h,y]=i.useState(!1),g=(0,L.W)(e=>{var t;return null===(t=c.itemRefCallback)||void 0===t?void 0:t.call(c,e,r,l)}),w=(0,v.e)(t,g),b=(0,ea.M)(),x=i.useRef("touch"),S=eZ(()=>{l||(a.onValueChange(r),a.onOpenChange(!1))},"handleSelect");return(0,m.jsx)(tS,{scope:n,value:r,disabled:l,textId:b,isSelected:d,onItemTextChange:i.useCallback(e=>{p(t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,m.jsx)(e$.ItemSlot,{scope:n,value:r,disabled:l,textValue:f,children:(0,m.jsx)(T.div,{role:"option","aria-labelledby":b,"data-highlighted":h?"":void 0,"aria-selected":d&&h,"data-state":d?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...u,ref:w,onFocus:(0,s.Mj)(u.onFocus,()=>y(!0)),onBlur:(0,s.Mj)(u.onBlur,()=>y(!1)),onClick:(0,s.Mj)(u.onClick,()=>{"mouse"!==x.current&&S()}),onPointerUp:(0,s.Mj)(u.onPointerUp,()=>{"mouse"===x.current&&S()}),onPointerDown:(0,s.Mj)(u.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,s.Mj)(u.onPointerMove,e=>{if(x.current=e.pointerType,l){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}
1else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,s.Mj)(u.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=c.onItemLeave)||void 0===t||t.call(c)}}),onKeyDown:(0,s.Mj)(u.onKeyDown,e=>{var t;l||e.target!==e.currentTarget||(null===(t=c.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(eG.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})},"SelectItem")),tP="SelectItemText",tj=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,className:r,style:l,...o}=e,a=e2(tP,n),s=ta(tP,n),c=tE(tP,n),d=e8(tP,n),[f,p]=i.useState(null),h=(0,L.W)(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,c.value,c.disabled)}),y=(0,v.e)(t,p,c.onItemTextChange,h),g=null==f?void 0:f.textContent,w=i.useMemo(()=>(0,m.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=d;return(0,ed.b)(()=>(b(w),()=>x(w)),[b,x,w]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(T.span,{id:c.textId,...o,ref:y}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren&&!tN(a.value)?u.createPortal(o.children,a.valueNode):null]})},"SelectItemText")),tR=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,...r}=e;return tE("SelectItemIndicator",n).isSelected?(0,m.jsx)(T.span,{"aria-hidden":!0,...r,ref:t}):null},"SelectItemIndicator")),tM="SelectScrollUpButton",tO=i.forwardRef(eZ(function(e,t){let n=ta(tM,e.__scopeSelect),r=tv(tM,e.__scopeSelect),[l,o]=i.useState(!1),u=(0,v.e)(t,r.onScrollButtonChange);return(0,ed.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){o(t.scrollTop>0)};eZ(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,m.jsx)(tk,{...e,ref:u,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null},"SelectScrollUpButton")),tI="SelectScrollDownButton",tT=i.forwardRef(eZ(function(e,t){let n=ta(tI,e.__scopeSelect),r=tv(tI,e.__scopeSelect),[l,o]=i.useState(!1),u=(0,v.e)(t,r.onScrollButtonChange);return(0,ed.b)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)};eZ(e,"handleScroll");let t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,m.jsx)(tk,{...e,ref:u,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null},"SelectScrollDownButton")),tk=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...l}=e,o=ta("SelectScrollButton",n),u=i.useRef(null),a=eX(n),c=i.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return i.useEffect(()=>()=>c(),[c]),(0,ed.b)(()=>{var e;let t=a().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[a]),(0,m.jsx)(T.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,s.Mj)(l.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(r,50))}),onPointerMove:(0,s.Mj)(l.onPointerMove,()=>{var e;null===(e=o.onItemLeave)||void 0===e||e.call(o),null===u.current&&(u.current=window.setInterval(r,50))}),onPointerLeave:(0,s.Mj)(l.onPointerLeave,()=>{c()})})},"SelectScrollButtonImpl")),tL=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,...r}=e;return(0,m.jsx)(T.div,{"aria-hidden":!0,...r,ref:t})},"SelectSeparator")),tA=i.forwardRef(eZ(function(e,t){let{__scopeSelect:n,...r}=e,l=e2("SelectBubbleInput",n),{value:o,onValueChange:u,required:a,disabled:s,name:c,autoComplete:d,form:f}=l,{nativeOptions:p,nativeSelectKey:h}=l,y=i.useRef(null),g=(0,v.e)(t,y),w=null!=o?o:"",b=eH(w),x=Array.from(p).some(e=>{var t;return(null!==(t=e.props.value)&&void 0!==t?t:"")===""});return i.useEffect(()=>{let e=y.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(b!==w&&t){let n=new Event("change",{bubbles:!0});t.call(e,w),e.dispatchEvent(n)}},[b,w]),(0,m.jsxs)(T.select,{"aria-hidden":!0,required:a,tabIndex:-1,name:c,autoComplete:d,disabled:s,form:f,onChange:e=>u(e.target.value),...r,style:{...eU,...r.style},ref:g,defaultValue:w,children:[tN(o)&&!x?(0,m.jsx)("option",{value:""}):null,Array.from(p)]},h)},"SelectBubbleInput"));function tD(e){return"function"==typeof e}function tN(e){return""===e||void 0===e}function t_(e){let t=(0,L.W)(e),n=i.useRef(""),r=i.useRef(0),l=i.useCallback(e=>{t(n.current+e)},[t]),o=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,l,o]}function tF(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=n?e.indexOf(n):-1,o=tW(e,Math.max(l,0));1===r.length&&(o=o.filter(e=>e!==n));let i=o.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return i!==n?i:void 0}function tW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}eZ(tD,"isFunction"),eZ(tN,"shouldShowPlaceholder"),eZ(t_,"useTypeaheadSearch"),eZ(tF,"findNextItem"),eZ(tW,"wrapArray")}}]);
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.