!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09faf-5135-7e22-9a08-f6d079ec838f")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,512357,741485,58115,e=>{"use strict";var t=e.i(270401),r=e.i(120102),n=e.i(86222),l=e.i(228876),o=e.i(361409),i=e.i(192291),u=e.i(271710),s=e.i(365054),a=e.i(686738),c=e.i(302113),d=e.i(991066),f=e.i(939550),p=e.i(467219),m=e.i(846755),g=e.i(861187);function h(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function v(e,t){return h(t,e===g.ARROW_UP||e===g.ARROW_DOWN,e===g.ARROW_LEFT||e===g.ARROW_RIGHT)}function b(e,t,r){return h(t,e===g.ARROW_DOWN,r?e===g.ARROW_LEFT:e===g.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,S){let y="rootStore"in e?e.rootStore:e,E=y.useState("open"),x=y.useState("floatingElement"),R=y.useState("domReferenceElement"),C=y.context.dataRef,{listRef:w,activeIndex:I,onNavigate:A=()=>{},enabled:L=!0,selectedIndex:M=null,allowEscape:O=!1,loopFocus:T=!1,nested:P=!1,rtl:D=!1,virtual:N=!1,focusItemOnOpen:k="auto",focusItemOnHover:V=!0,openOnArrowKeyDown:_=!0,disabledIndices:F,orientation:j="vertical",parentOrientation:U,cols:B=1,id:H,resetOnPointerLeave:W=!0,externalTree:G}=S,z=(0,s.getFloatingFocusElement)(x),q=(0,n.useValueAsRef)(z),$=(0,d.useFloatingParentNodeId)(),K=(0,d.useFloatingTree)(G);(0,o.useIsoLayoutEffect)(()=>{C.current.orientation=j},[C,j]);let X=(0,s.isTypeableCombobox)(R),Y=t.useRef(k),J=t.useRef(M??-1),Z=t.useRef(null),Q=t.useRef(!0),ee=(0,l.useStableCallback)(e=>{A(-1===J.current?null:J.current,e)}),et=t.useRef(ee),er=t.useRef(!!x),en=t.useRef(E),el=t.useRef(!1),eo=t.useRef(!1),ei=t.useRef(null),eu=(0,n.useValueAsRef)(F),es=(0,n.useValueAsRef)(E),ea=(0,n.useValueAsRef)(M),ec=(0,n.useValueAsRef)(W),ed=(0,l.useStableCallback)(()=>{function e(e){N?K?.events.emit("virtualfocus",e):ei.current=(0,m.enqueueFocus)(e,{sync:el.current,preventScroll:!0})}let t=w.current[J.current],r=eo.current;t&&e(t),(el.current?e=>e():requestAnimationFrame)(()=>{let n=w.current[J.current]||t;!n||(t||e(n),em&&(r||!Q.current)&&n.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,o.useIsoLayoutEffect)(()=>{L&&(E&&x?(J.current=M??-1,Y.current&&null!=M&&(eo.current=!0,ee())):er.current&&(J.current=-1,et.current()))},[L,E,x,M,ee]),(0,o.useIsoLayoutEffect)(()=>{if(L){if(!E){el.current=!1;return}if(x)if(null==I){if(el.current=!1,null!=ea.current)return;if(er.current&&(J.current=-1,ed()),(!en.current||!er.current)&&Y.current&&(null!=Z.current||!0===Y.current&&null==Z.current)){let e=0,t=()=>{null==w.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(J.current=null==Z.current||b(Z.current,j,D)||P?(0,c.getMinListIndex)(w):(0,c.getMaxListIndex)(w),Z.current=null,ee())};t()}}else(0,c.isIndexOutOfListBounds)(w.current,I)||(J.current=I,ed(),eo.current=!1)}},[L,E,x,I,ea,P,w,j,D,ee,ed,eu]),(0,o.useIsoLayoutEffect)(()=>{if(!L||x||!K||N||!er.current)return;let e=K.nodesRef.current,t=e.find(e=>e.id===$)?.context?.elements.floating,r=(0,u.activeElement)((0,i.ownerDocument)(x)),n=e.some(e=>e.context&&(0,u.contains)(e.context.elements.floating,r));t&&!n&&Q.current&&t.focus({preventScroll:!0})},[L,x,K,$,N]),(0,o.useIsoLayoutEffect)(()=>{et.current=ee,en.current=E,er.current=!!x}),(0,o.useIsoLayoutEffect)(()=>{E||(Z.current=null,Y.current=k)},[E,k]);let ef=null!=I,ep=(0,l.useStableCallback)(e=>{if(!es.current)return;let t=w.current.indexOf(e.currentTarget);-1!==t&&(J.current!==t||I!==t)&&(J.current=t,ee(e))}),em=t.useMemo(()=>({onFocus(e){el.current=!0,ep(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){el.current=!0,eo.current=!1,V&&ep(e)},onPointerLeave(e){if(!es.current||!Q.current||"touch"===e.pointerType)return;el.current=!0;let t=e.relatedTarget;if(!(!V||w.current.includes(t))&&ec.current&&(ei.current?.(),ei.current=null,J.current=-1,ee(e),!N)){let e=q.current,t=(0,u.activeElement)((0,i.ownerDocument)(e));e&&(0,u.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[ep,es,q,V,w,ee,ec,N]),eg=t.useCallback(()=>U??K?.nodesRef.current.find(e=>e.id===$)?.context?.dataRef?.current.orientation,[$,K,U]),eh=(0,l.useStableCallback)(e=>{var t;let n,l;if(Q.current=!1,el.current=!0,229===e.which||!es.current&&e.currentTarget===q.current)return;if(P&&(t=e.key,n=D?t===g.ARROW_RIGHT:t===g.ARROW_LEFT,l=t===g.ARROW_UP,"both"===j||"horizontal"===j&&B&&B>1?"Escape"===t:h(j,n,l))){v(e.key,eg())||(0,a.stopEvent)(e),y.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.listNavigation,e.nativeEvent)),(0,r.isHTMLElement)(R)&&(N?K?.events.emit("virtualfocus",R):R.focus());return}let o=J.current,i=(0,c.getMinListIndex)(w,F),s=(0,c.getMaxListIndex)(w,F);if(X||("Home"===e.key&&((0,a.stopEvent)(e),J.current=i,ee(e)),"End"===e.key&&((0,a.stopEvent)(e),J.current=s,ee(e))),B>1){let t=Array.from({length:w.current.length},()=>({width:1,height:1})),r=(0,c.createGridCellMap)(t,B,!1),n=r.findIndex(e=>null!=e&&!(0,c.isListIndexDisabled)(w.current,e,F)),l=r.reduce((e,t,r)=>null==t||(0,c.isListIndexDisabled)(w.current,t,F)?e:r,-1),o=r[(0,c.getGridNavigatedIndex)(r.map(e=>null!=e?w.current[e]:null),{event:e,orientation:j,loopFocus:T,rtl:D,cols:B,disabledIndices:(0,c.getGridCellIndices)([...("function"!=typeof F?F:null)||w.current.map((e,t)=>(0,c.isListIndexDisabled)(w.current,t,F)?t:void 0),void 0],r),minIndex:n,maxIndex:l,prevIndex:(0,c.getGridCellIndexOfCorner)(J.current>s?i:J.current,t,r,B,e.key===g.ARROW_DOWN?"bl":e.key===(D?g.ARROW_LEFT:g.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(J.current=o,ee(e)),"both"===j)return}if(v(e.key,j)){if((0,a.stopEvent)(e),E&&!N&&(0,u.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){J.current=b(e.key,j,D)?i:s,ee(e);return}b(e.key,j,D)?T?o>=s?O&&o!==w.current.length?J.current=-1:(el.current=!1,J.current=i):J.current=(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,disabledIndices:F}):J.current=Math.min(s,(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,disabledIndices:F})):T?o<=i?O&&-1!==o?J.current=w.current.length:(el.current=!1,J.current=s):J.current=(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,decrement:!0,disabledIndices:F}):J.current=Math.max(i,(0,c.findNonDisabledListIndex)(w.current,{startingIndex:o,decrement:!0,disabledIndices:F})),(0,c.isIndexOutOfListBounds)(w.current,J.current)&&(J.current=-1),ee(e)}}),ev=t.useMemo(()=>N&&E&&ef&&{"aria-activedescendant":`${H}-${I}`},[N,E,ef,H,I]),eb=t.useMemo(()=>({"aria-orientation":"both"===j?void 0:j,...!X?ev:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&E&&!N){let t=(0,u.getTarget)(e.nativeEvent);if(t&&!(0,u.contains)(q.current,t))return;(0,a.stopEvent)(e),y.setOpen(!1,(0,f.createChangeEventDetails)(p.REASONS.focusOut,e.nativeEvent)),(0,r.isHTMLElement)(R)&&R.focus();return}eh(e)},onPointerMove(){Q.current=!0}}),[ev,eh,q,j,X,y,E,N,R]),eS=t.useMemo(()=>{function e(e){"auto"===k&&(0,a.isVirtualClick)(e.nativeEvent)&&(Y.current=!N)}function t(e){Y.current=k,"auto"===k&&(0,a.isVirtualPointerEvent)(e.nativeEvent)&&(Y.current=!0)}return{onKeyDown(e){var t,r;let n=y.select("open");Q.current=!1;let l=e.key.startsWith("Arrow"),o=(t=e.key,r=eg(),h(r,D?t===g.ARROW_LEFT:t===g.ARROW_RIGHT,t===g.ARROW_DOWN)),i=v(e.key,j),u=(P?o:i)||"Enter"===e.key||""===e.key.trim();if(N&&n)return eh(e);if(n||_||!l){if(u){let t=v(e.key,eg());Z.current=P&&t?null:e.key}if(P){o&&((0,a.stopEvent)(e),n?(J.current=(0,c.getMinListIndex)(w,eu.current),ee(e)):y.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}i&&(null!=ea.current&&(J.current=ea.current),(0,a.stopEvent)(e),!n&&_?y.setOpen(!0,(0,f.createChangeEventDetails)(p.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):eh(e),n&&ee(e))}},onFocus(e){y.select("open")&&!N&&(J.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[eh,eu,k,w,P,ee,y,_,j,eg,D,ea,N]),ey=t.useMemo(()=>({...ev,...eS}),[ev,eS]);return t.useMemo(()=>L?{reference:ey,floating:eb,item:em,trigger:eS}:{},[L,ey,eb,eS,em])}],512357);var S=e.i(671695);e.s(["useTypeahead",0,function(e,r){let n="rootStore"in e?e.rootStore:e,i=n.context.dataRef,s=n.useState("open"),{listRef:d,elementsRef:f,activeIndex:p,onMatch:m,onTypingChange:g,enabled:h=!0,resetMs:v=750,selectedIndex:b=null}=r,y=(0,S.useTimeout)(),E=t.useRef(""),x=t.useRef(b??p??-1),R=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>{(s||null===b)&&(y.clear(),R.current=null,""!==E.current&&(E.current=""))},[s,b,y]),(0,o.useIsoLayoutEffect)(()=>{s&&""===E.current&&(x.current=b??p??-1)},[s,b,p]);let C=(0,l.useStableCallback)(e=>{e?i.current.typing||(i.current.typing=e,g?.(e)):i.current.typing&&(i.current.typing=e,g?.(e))}),w=(0,l.useStableCallback)(e=>{function t(e,r,n=0){if(0===e.length)return -1;let l=(n%e.length+e.length)%e.length,o=r.toLocaleLowerCase();for(let t=0;t0&&" "===e.key&&((0,a.stopEvent)(e),C(!0)),E.current.length>0&&" "!==E.current[0]&&-1===t(r,E.current)&&" "!==e.key&&C(!1),null==r||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;s&&" "!==e.key&&((0,a.stopEvent)(e),C(!0));let n=""===E.current;n&&(x.current=b??p??-1),r.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&E.current===e.key&&(E.current="",x.current=R.current),E.current+=e.key,y.start(v,()=>{E.current="",x.current=R.current,C(!1)});let l=n?b??p??-1:x.current,o=t(r,E.current,(l??0)+1);-1!==o?(m?.(o),R.current=o):" "!==e.key&&(E.current="",C(!1))}),I=(0,l.useStableCallback)(e=>{let t=e.relatedTarget,r=n.select("domReferenceElement"),l=n.select("floatingElement"),o=(0,u.contains)(r,t),i=(0,u.contains)(l,t);o||i||(y.clear(),E.current="",x.current=R.current,C(!1))}),A=t.useMemo(()=>({onKeyDown:w,onBlur:I}),[w,I]),L=t.useMemo(()=>({onKeyDown:w,onBlur:I}),[w,I]);return t.useMemo(()=>h?{reference:A,floating:L}:{},[h,A,L])}],741485);var y=e.i(281085);e.s(["getPseudoElementBounds",0,function(e){let t=e.getBoundingClientRect(),r=(0,y.ownerWindow)(e),n=r.getComputedStyle(e,"::before"),l=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===l.content)return t;let o=parseFloat(n.width)||0,i=parseFloat(n.height)||0,u=parseFloat(l.width)||0,s=parseFloat(l.height)||0,a=Math.max(t.width,o,u),c=Math.max(t.height,i,s),d=a-t.width,f=c-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}],58115)},897464,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(761073);e.s(["useRegisterFieldControl",0,function(e,l){let{enabled:o=!0,getValue:i,id:u,value:s}=l,{registerFieldControl:a}=(0,n.useFieldRootContext)(),c=t.useRef(null);c.current||(c.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=c.current;if(t&&o)return a(t,{controlRef:e,getValue:i,id:u,value:s}),()=>{a(t,void 0)}},[e,o,i,u,a,s])}])},761073,391699,e=>{"use strict";var t,r=e.i(397744),n=e.i(270401),l=e.i(618568);let o=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),i={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},u={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...u};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,u,"DEFAULT_VALIDITY_STATE",0,i,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[o.valid]:""}:{[o.invalid]:""}}],391699);let a=n.createContext({invalid:void 0,name:void 0,validityData:{state:i,errors:[],error:"",value:"",initialValue:null},setValidityData:l.NOOP,disabled:void 0,touched:u.touched,setTouched:l.NOOP,dirty:u.dirty,setDirty:l.NOOP,filled:u.filled,setFilled:l.NOOP,focused:u.focused,setFocused:l.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:l.NOOP,validation:{getValidationProps:(e=l.EMPTY_OBJECT)=>e,getInputValidationProps:(e=l.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["useFieldRootContext",0,function(e=!0){let t=n.useContext(a);if(t.setValidityData===l.NOOP&&!e)throw Error((0,r.default)(28));return t}],761073)},965358,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},231152,e=>{"use strict";var t=e.i(270401),r=e.i(618568);let n=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["useLabelableContext",0,function(){return t.useContext(n)}])},308225,e=>{"use strict";var t=e.i(120102),r=e.i(192291),n=e.i(228876),l=e.i(271710),o=e.i(210761),i=e.i(231152);function u(e){e.focus({focusVisible:!0})}e.s(["focusElementWithVisible",0,u,"useLabel",0,function(e={}){let{id:s,fallbackControlId:a,native:c=!1,setLabelId:d,focusControl:f}=e,{controlId:p,setLabelId:m}=(0,i.useLabelableContext)(),g=(0,n.useStableCallback)(e=>{m(e),d?.(e)}),h=(0,o.useRegisteredLabelId)(s,g),v=p??a;function b(e){let n=(0,l.getTarget)(e.nativeEvent);n?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(f)return f(e,v);if(!v)return;let n=(0,r.ownerDocument)(e.currentTarget).getElementById(v);(0,t.isHTMLElement)(n)&&u(n)}(e))}return c?{id:h,htmlFor:v??void 0,onMouseDown:b}:{id:h,onClick:b,onPointerDown(e){e.preventDefault()}}}])},435848,e=>{"use strict";var t=e.i(270401),r=e.i(361409),n=e.i(228876),l=e.i(836033),o=e.i(120102),i=e.i(618568),u=e.i(593478),s=e.i(231152);e.s(["useLabelableId",0,function(e={}){let{id:a,implicit:c=!1,controlRef:d}=e,{controlId:f,registerControlId:p}=(0,s.useLabelableContext)(),m=(0,u.useBaseUiId)(a),g=c?f:void 0,h=(0,l.useRefWithInit)(()=>Symbol("labelable-control")),v=t.useRef(!1),b=t.useRef(null!=a),S=(0,n.useStableCallback)(()=>{v.current&&p!==i.NOOP&&(v.current=!1,p(h.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(p!==i.NOOP){if(c){let t=d?.current;e=(0,o.isElement)(t)&&null!=t.closest("label")?a??null:g??m}else if(null!=a)b.current=!0,e=a;else{if(!b.current)return void S();e=m}if(void 0===e)return void S();v.current=!0,p(h.current,e)}},[a,d,g,p,c,m,h,S]),t.useEffect(()=>S,[S]),f??m}])},39285,e=>{"use strict";e.s(["serializeValue",0,function(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}])},540427,e=>{"use strict";var t=e.i(270401),r=e.i(281334);let n=t.forwardRef(function(e,t){let{className:n,render:l,orientation:o="horizontal",style:i,...u}=e;return(0,r.useRenderElement)("div",e,{state:{orientation:o},ref:t,props:[{role:"separator","aria-orientation":o},u]})});e.s(["Separator",0,n])},777246,e=>{"use strict";var t=e.i(397744),r=e.i(270401);let n=r.createContext(void 0);e.s(["useToolbarRootContext",0,function(e){let l=r.useContext(n);if(void 0===l&&!e)throw Error((0,t.default)(69));return l}])},471814,e=>{"use strict";e.s(["getDefaultLabelId",0,function(e){return null==e?void 0:`${e}-label`},"resolveAriaLabelledBy",0,function(e,t){return e??t}])},922651,e=>{"use strict";var t=e.i(270401),r=e.i(192291),n=e.i(987950),l=e.i(361409);e.s(["useAnchoredPopupScrollLock",0,function(e,o,i,u){let[s,a]=t.useState(!1);(0,l.useIsoLayoutEffect)(()=>{if(!e||!o||null==i)return void a(!1);let t=(0,r.ownerDocument)(i).documentElement.clientWidth,n=i.offsetWidth;a(t>0&&n>0&&n>=t-20)},[e,o,i]),(0,n.useScrollLock)(e&&(!o||s),u)}])},210761,e=>{"use strict";var t=e.i(361409),r=e.i(593478);e.s(["useRegisteredLabelId",0,function(e,n){let l=(0,r.useBaseUiId)(e);return(0,t.useIsoLayoutEffect)(()=>(n(l),()=>{n(void 0)}),[l,n]),l}])},479937,e=>{"use strict";let t=(0,e.i(202913).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},477986,e=>{"use strict";var t=e.i(479937);e.s(["ChevronUp",()=>t.default])},738286,e=>{"use strict";var t=e.i(222666),r=e.i(505962);e.s([],430862),e.i(430862);var n=e.i(270401),l=e.i(854855),o=e.i(235901),i=e.i(836033),u=e.i(796021),s=e.i(562024),a=e.i(123651),c=e.i(361409),d=e.i(228876),f=e.i(86222),p=e.i(87909),m=e.i(898538),g=e.i(618568),h=e.i(609190),v=e.i(427702),b=e.i(829655),S=e.i(802691),y=e.i(512357),E=e.i(741485),x=e.i(397744);let R=n.createContext(null),C=n.createContext(null);function w(){let e=n.useContext(R);if(null===e)throw Error((0,x.default)(60));return e}function I(){let e=n.useContext(C);if(null===e)throw Error((0,x.default)(61));return e}var A=e.i(761073),L=e.i(897464),M=e.i(435848),O=e.i(207290),T=e.i(306694);let P=(e,t)=>Object.is(e,t);function D(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function N(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&D(e,t,r)):-1}var k=e.i(39285);function V(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function _(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return(0,k.serializeValue)(e)}function F(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,k.serializeValue)(e.value):(0,k.serializeValue)(e)}function j(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??_(e,r);if(Array.isArray(t)){let n=V(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:_(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return _(e,r)}let U={id:(0,T.createSelector)(e=>e.id),labelId:(0,T.createSelector)(e=>e.labelId),modal:(0,T.createSelector)(e=>e.modal),multiple:(0,T.createSelector)(e=>e.multiple),items:(0,T.createSelector)(e=>e.items),itemToStringLabel:(0,T.createSelector)(e=>e.itemToStringLabel),itemToStringValue:(0,T.createSelector)(e=>e.itemToStringValue),isItemEqualToValue:(0,T.createSelector)(e=>e.isItemEqualToValue),value:(0,T.createSelector)(e=>e.value),hasSelectedValue:(0,T.createSelector)(e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==F(t,n))}),hasNullItemLabel:(0,T.createSelector)((e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(V(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items)),open:(0,T.createSelector)(e=>e.open),mounted:(0,T.createSelector)(e=>e.mounted),forceMount:(0,T.createSelector)(e=>e.forceMount),transitionStatus:(0,T.createSelector)(e=>e.transitionStatus),openMethod:(0,T.createSelector)(e=>e.openMethod),activeIndex:(0,T.createSelector)(e=>e.activeIndex),selectedIndex:(0,T.createSelector)(e=>e.selectedIndex),isActive:(0,T.createSelector)((e,t)=>e.activeIndex===t),isSelected:(0,T.createSelector)((e,t,r)=>{let n=e.isItemEqualToValue,l=e.value;return e.multiple?Array.isArray(l)&&l.some(e=>D(r,e,n)):e.selectedIndex===t&&null!==e.selectedIndex||D(r,l,n)}),isSelectedByFocus:(0,T.createSelector)((e,t)=>e.selectedIndex===t),popupProps:(0,T.createSelector)(e=>e.popupProps),triggerProps:(0,T.createSelector)(e=>e.triggerProps),triggerElement:(0,T.createSelector)(e=>e.triggerElement),positionerElement:(0,T.createSelector)(e=>e.positionerElement),listElement:(0,T.createSelector)(e=>e.listElement),scrollUpArrowVisible:(0,T.createSelector)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,T.createSelector)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,T.createSelector)(e=>e.hasScrollArrows)};var B=e.i(939550),H=e.i(467219),W=e.i(688342),G=e.i(965358),z=e.i(412425),q=e.i(593900),$=e.i(172464),K=e.i(356120),X=e.i(281334),Y=e.i(391699),J=e.i(308225),Z=e.i(471814);let Q=n.forwardRef(function(e,t){let{render:r,className:n,style:l,...o}=e;delete o.id;let i=(0,A.useFieldRootContext)(),{store:u}=w(),s=(0,p.useStore)(u,U.triggerElement),a=(0,p.useStore)(u,U.id),c=(0,Z.getDefaultLabelId)(a),d=(0,J.useLabel)({id:c,fallbackControlId:s?.id??a,setLabelId(e){u.set("labelId",e)}});return(0,X.useRenderElement)("div",e,{ref:t,state:i.state,props:[d,o],stateAttributesMapping:Y.fieldValidityMapping})});var ee=e.i(192291),et=e.i(671695),er=e.i(231152),en=e.i(290530),el=e.i(58115),eo=e.i(271710),ei=e.i(365054),eu=e.i(481902);let es={...en.pressableTriggerOpenStateMapping,...Y.fieldValidityMapping,value:()=>null},ea=n.forwardRef(function(e,t){let{render:r,className:l,id:i,disabled:u=!1,nativeButton:s=!0,style:a,...c}=e,{setTouched:m,setFocused:g,validationMode:h,state:v,disabled:b}=(0,A.useFieldRootContext)(),{labelId:S}=(0,er.useLabelableContext)(),{store:y,setOpen:E,selectionRef:x,validation:R,readOnly:C,required:I,alignItemWithTriggerActiveRef:L,disabled:O,keyboardActiveRef:T}=w(),P=b||O||u,D=(0,p.useStore)(y,U.open),N=(0,p.useStore)(y,U.value),k=(0,p.useStore)(y,U.triggerProps),V=(0,p.useStore)(y,U.positionerElement),_=(0,p.useStore)(y,U.listElement),F=(0,p.useStore)(y,U.id),j=(0,p.useStore)(y,U.labelId),W=(0,p.useStore)(y,U.hasSelectedValue),G=!W&&D,z=(0,p.useStore)(y,U.hasNullItemLabel,G),q=i??F,$=(0,Z.resolveAriaLabelledBy)(S,j);(0,M.useLabelableId)({id:q});let Y=(0,f.useValueAsRef)(V),J=n.useRef(null),{getButtonProps:Q,buttonRef:en}=(0,eu.useButton)({disabled:P,native:s}),ea=(0,d.useStableCallback)(e=>{y.set("triggerElement",e)}),ec=(0,o.useMergedRefs)(t,J,en,ea),ed=(0,et.useTimeout)(),ef=(0,et.useTimeout)(),ep=(0,et.useTimeout)(),em=(0,et.useTimeout)();n.useEffect(()=>{if(D)return W||z?em.start(200,()=>{x.current.allowUnselectedMouseUp=!0,ep.start(200,()=>{x.current.allowSelectedMouseUp=!0})}):ep.start(400,()=>{x.current.allowUnselectedMouseUp=!0,x.current.allowSelectedMouseUp=!0}),()=>{ep.clear(),em.clear()};x.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ef.clear()},[D,W,z,x,ef,ep,em]);let eg=n.useMemo(()=>_?.id??(0,ei.getFloatingFocusElement)(V)?.id,[_,V]),eh=(0,K.mergeProps)(k,{id:q,role:"combobox","aria-expanded":D?"true":"false","aria-haspopup":"listbox","aria-controls":D?eg:void 0,"aria-labelledby":$,"aria-readonly":C||void 0,"aria-required":I||void 0,tabIndex:P?-1:0,ref:ec,onFocus(e){g(!0),D&&L.current&&E(!1,(0,B.createChangeEventDetails)(H.REASONS.none,e.nativeEvent)),ed.start(0,()=>{y.set("forceMount",!0)})},onBlur(e){(0,eo.contains)(V,e.relatedTarget)||(m(!0),g(!1),"onBlur"===h&&R.commit(N))},onPointerMove(){T.current=!1},onKeyDown(){T.current=!0},onMouseDown(e){if(D)return;let t=(0,ee.ownerDocument)(e.currentTarget);function r(e){if(!J.current)return;let t=e.target;if((0,eo.contains)(J.current,t)||(0,eo.contains)(Y.current,t)||t===J.current)return;let r=(0,el.getPseudoElementBounds)(J.current);e.clientX>=r.left-2&&e.clientX<=r.right+2&&e.clientY>=r.top-2&&e.clientY<=r.bottom+2||E(!1,(0,B.createChangeEventDetails)(H.REASONS.cancelOpen,e))}ef.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},R.getValidationProps,c,Q);eh.role="combobox";let ev={...v,open:D,disabled:P,value:N,readOnly:C,placeholder:!W};return(0,X.useRenderElement)("button",e,{ref:[t,J],state:ev,stateAttributesMapping:es,props:eh})}),ec={value:()=>null},ed=n.forwardRef(function(e,r){let{className:l,render:o,children:i,placeholder:u,style:s,...a}=e,{store:c,valueRef:d}=w(),f=(0,p.useStore)(c,U.value),m=(0,p.useStore)(c,U.items),g=(0,p.useStore)(c,U.itemToStringLabel),h=(0,p.useStore)(c,U.hasSelectedValue),v=(0,p.useStore)(c,U.hasNullItemLabel,!h&&null!=u&&null==i),b=null;if("function"==typeof i)b=i(f);else if(null!=i)b=i;else if(h||null==u||v)if(Array.isArray(f))b=f.reduce((e,r,l)=>(l>0&&e.push(", "),e.push((0,t.jsx)(n.Fragment,{children:j(r,m,g)},l)),e),[]);else b=j(f,m,g);else b=u;return(0,X.useRenderElement)("span",e,{state:{value:f,placeholder:!h},ref:[r,d],props:[{children:b},a],stateAttributesMapping:ec})}),ef=n.forwardRef(function(e,t){let{className:r,render:n,style:l,...o}=e,{store:i}=w(),u=(0,p.useStore)(i,U.open);return(0,X.useRenderElement)("span",e,{state:{open:u},ref:t,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:en.triggerOpenStateMapping})});var ep=e.i(55497);let em=n.createContext(void 0),eg=n.forwardRef(function(e,r){let{store:n}=w(),l=(0,p.useStore)(n,U.mounted),o=(0,p.useStore)(n,U.forceMount);return l||o?(0,t.jsx)(em.Provider,{value:!0,children:(0,t.jsx)(ep.FloatingPortal,{ref:r,...e})}):null});var eh=e.i(678968);let ev={...en.popupStateMapping,...eh.transitionStatusMapping},eb=n.forwardRef(function(e,t){let{className:r,render:n,style:l,...o}=e,{store:i}=w(),u=(0,p.useStore)(i,U.open),s=(0,p.useStore)(i,U.mounted),a=(0,p.useStore)(i,U.transitionStatus);return(0,X.useRenderElement)("div",e,{state:{open:u,transitionStatus:a},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:ev})});var eS=e.i(528510),ey=e.i(364960),eE=e.i(707999);let ex=n.createContext(void 0);function eR(){let e=n.useContext(ex);if(!e)throw Error((0,x.default)(59));return e}var eC=e.i(814348),ew=e.i(916317);function eI(e,t){e&&Object.assign(e.style,t)}let eA={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eL=e.i(556982),eM=e.i(922651);let eO={position:"fixed"},eT=n.forwardRef(function(e,r){let{anchor:l,positionMethod:o="absolute",className:i,render:u,side:s="bottom",align:a="center",sideOffset:f=0,alignOffset:m=0,collisionBoundary:g="clipping-ancestors",collisionPadding:h,arrowPadding:v=5,sticky:b=!1,disableAnchorTracking:S,alignItemWithTrigger:y=!0,collisionAvoidance:E=ew.DROPDOWN_COLLISION_AVOIDANCE,style:x,...R}=e,{store:C,listRef:A,labelsRef:L,alignItemWithTriggerActiveRef:M,selectedItemTextRef:O,valuesRef:T,initialValueRef:P,popupRef:k,setValue:V}=w(),_=I(),F=(0,p.useStore)(C,U.open),j=(0,p.useStore)(C,U.mounted),W=(0,p.useStore)(C,U.modal),G=(0,p.useStore)(C,U.value),z=(0,p.useStore)(C,U.openMethod),q=(0,p.useStore)(C,U.positionerElement),$=(0,p.useStore)(C,U.triggerElement),K=(0,p.useStore)(C,U.isItemEqualToValue),X=(0,p.useStore)(C,U.transitionStatus),Y=n.useRef(null),J=n.useRef(null),[Z,Q]=n.useState(y),ee=j&&Z&&"touch"!==z;j||Z===y||Q(y),(0,c.useIsoLayoutEffect)(()=>{!j&&(U.scrollUpArrowVisible(C.state)&&C.set("scrollUpArrowVisible",!1),U.scrollDownArrowVisible(C.state)&&C.set("scrollDownArrowVisible",!1))},[C,j]),n.useImperativeHandle(M,()=>ee),(0,eM.useAnchoredPopupScrollLock)((ee||W)&&F,"touch"===z,q,$);let et=(0,eE.useAnchorPositioning)({anchor:l,floatingRootContext:_,positionMethod:o,mounted:j,side:s,sideOffset:f,align:a,alignOffset:m,arrowPadding:v,collisionBoundary:g,collisionPadding:h,sticky:b,disableAnchorTracking:S??ee,collisionAvoidance:E,keepMounted:!0}),er=ee?"none":et.side,en=ee?eO:et.positionerStyles,el={open:F,side:er,align:et.align,anchorHidden:et.anchorHidden},eo=(0,d.useStableCallback)(e=>{C.set("positionerElement",e)}),ei=(0,eL.usePositioner)(e,el,{styles:en,transitionStatus:X,props:R,refs:[r,eo],hidden:!j,inert:!F}),eu=n.useRef(0),es=(0,d.useStableCallback)(e=>{if(0===e.size&&0===eu.current||0===T.current.length)return;let t=eu.current;if(eu.current=e.size,e.size===t)return;let r=(0,B.createChangeEventDetails)(H.REASONS.none);if(0!==t&&!C.state.multiple&&null!==G&&-1===N(T.current,G,K)){let e=P.current,t=null!=e&&-1!==N(T.current,e,K)?e:null;V(t,r),null===t&&(C.set("selectedIndex",null),O.current=null)}if(0!==t&&C.state.multiple&&Array.isArray(G)){let e=G.filter(e=>-1!==N(T.current,e,K));(e.length!==G.length||e.some(e=>!(G&&0!==G.length&&G.some(t=>void 0!==t&&D(e,t,K)))))&&(V(e,r),0===e.length&&(C.set("selectedIndex",null),O.current=null))}if(F&&ee){C.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};eI(q,e),eI(k.current,e)}}),ea=n.useMemo(()=>({...et,side:er,alignItemWithTriggerActive:ee,setControlledAlignItemWithTrigger:Q,scrollUpArrowRef:Y,scrollDownArrowRef:J}),[et,er,ee,Q]);return(0,t.jsx)(ey.CompositeList,{elementsRef:A,labelsRef:L,onMapChange:es,children:(0,t.jsxs)(ex.Provider,{value:ea,children:[j&&W&&(0,t.jsx)(eC.InternalBackdrop,{inert:(0,eS.inertValue)(!F),cutout:$}),ei]})})});var eP=e.i(304916),eD=e.i(602406),eN=e.i(863345),ek=e.i(281085),eV=e.i(763323),e_=e.i(996225),eF=e.i(389542),ej=e.i(871060),eU=e.i(777246),eB=e.i(899454),eH=e.i(837861),eW=e.i(831020),eG=e.i(914844),ez=e.i(698031);let eq={...en.popupStateMapping,...eh.transitionStatusMapping},e$=n.forwardRef(function(e,r){let{render:l,className:o,style:i,finalFocus:u,...s}=e,{store:a,popupRef:f,onOpenChangeComplete:m,setOpen:g,valueRef:h,selectedItemTextRef:v,keyboardActiveRef:b,multiple:S,handleScrollArrowVisibility:y,scrollHandlerRef:E,listRef:x,highlightItemOnHover:R}=w(),{side:C,align:A,alignItemWithTriggerActive:L,isPositioned:M,setControlledAlignItemWithTrigger:O,scrollDownArrowRef:T,scrollUpArrowRef:P}=eR(),D=null!=(0,eU.useToolbarRootContext)(!0),N=I(),k=(0,ez.useDirection)(),{nonce:V,disableStyleElements:_}=(0,eG.useCSPContext)(),F=(0,p.useStore)(a,U.id),j=(0,p.useStore)(a,U.open),G=(0,p.useStore)(a,U.mounted),z=(0,p.useStore)(a,U.popupProps),q=(0,p.useStore)(a,U.transitionStatus),K=(0,p.useStore)(a,U.triggerElement),Y=(0,p.useStore)(a,U.positionerElement),J=(0,p.useStore)(a,U.listElement),Z=n.useRef(!1),Q=n.useRef(!1),et=n.useRef({}),er=(0,eV.useAnimationFrame)(),en=(0,d.useStableCallback)(e=>{var t;if(!Y||!f.current||!Q.current)return;if(Z.current||!L)return void y();let r="0px"===Y.style.top,n="0px"===Y.style.bottom;if(!r&&!n)return void y();let l=eY(Y),o=(t=Y.getBoundingClientRect().height,t/l.y),i=(0,ee.ownerDocument)(Y),u=getComputedStyle(Y),s=parseFloat(u.marginTop),a=parseFloat(u.marginBottom),c=eK(getComputedStyle(f.current)),d=Math.min(i.documentElement.clientHeight-s-a,c),p=e.scrollTop,m=eX(e),g=0,h=null,v=!1,b=!1,S=e=>{Y.style.height=`${e}px`},E=r?m-p:p,x=Math.min(o+E,d);if(g=x,E<=$.SCROLL_EDGE_TOLERANCE_PX){let t;return void((t=(0,eW.clamp)(E,0,d-o))>0&&S(o+t),e.scrollTop=r?m:0,d-(o+t)<=$.SCROLL_EDGE_TOLERANCE_PX&&(Z.current=!0),y())}if(d-x>$.SCROLL_EDGE_TOLERANCE_PX)r?b=!0:h=0;else if(v=!0,n&&p$.SCROLL_EDGE_TOLERANCE_PX&&(e.scrollTop=r)}(v||g>=d-$.SCROLL_EDGE_TOLERANCE_PX)&&(Z.current=!0),y()});n.useImperativeHandle(E,()=>en,[en]),(0,W.useOpenChangeComplete)({open:j,ref:f,onComplete(){j&&m?.(!0)}}),(0,c.useIsoLayoutEffect)(()=>{Y&&f.current&&!Object.keys(et.current).length&&(et.current={top:Y.style.top||"0",left:Y.style.left||"0",right:Y.style.right,height:Y.style.height,bottom:Y.style.bottom,minHeight:Y.style.minHeight,maxHeight:Y.style.maxHeight,marginTop:Y.style.marginTop,marginBottom:Y.style.marginBottom})},[f,Y]),(0,c.useIsoLayoutEffect)(()=>{j||L||(Q.current=!1,Z.current=!1,eI(Y,et.current))},[j,L,Y,f]),(0,c.useIsoLayoutEffect)(()=>{let e=f.current;if(!j||!K||!Y||!e||L&&!M||"ending"===a.state.transitionStatus)return;if(!L){Q.current=!0,er.request(y),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,r={};for(let[e,n]of eZ)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of eZ){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{let t,r=v.current,n=h.current,l=getComputedStyle(Y),o=getComputedStyle(e),i=(0,ee.ownerDocument)(K),u=(0,ek.ownerWindow)(Y),s=eY(K),c=eJ(K.getBoundingClientRect(),s),d=eJ(Y.getBoundingClientRect(),s),f=c.height,p=J||e,m=p.scrollHeight,g=parseFloat(o.borderBottomWidth),b=parseFloat(l.marginTop)||10,S=parseFloat(l.marginBottom)||10,E=parseFloat(l.minHeight)||100,C=eK(o),w=i.documentElement.clientHeight-b-S,I=i.documentElement.clientWidth,A=w-c.bottom+f,L="rtl"===k?c.right-d.width:c.left,M=0;if(r&&n){let e=eJ(n.getBoundingClientRect(),s);t=eJ(r.getBoundingClientRect(),s),L=d.left+("rtl"===k?e.right-t.right:e.left-t.left);let l=e.top-c.top+e.height/2;M=t.top-d.top+t.height/2-l}let T=A+M+S+g,P=Math.min(w,T),D=w-b-S,N=T-P;Y.style.left=`${(0,eW.clamp)(L,5,I-5-d.width)}px`,Y.style.height=`${P}px`,Y.style.maxHeight="auto",Y.style.marginTop=`${b}px`,Y.style.marginBottom=`${S}px`,e.style.height="100%";let V=eX(p),_=N>=V-$.SCROLL_EDGE_TOLERANCE_PX;_&&(P=Math.min(w,d.height)-(N-V));let F=c.top<20||c.bottom>w-20||Math.ceil(P)+$.SCROLL_EDGE_TOLERANCE_PX=D?"0":`${e}px`,Y.style.height=`${P}px`,p.scrollTop=eX(p)}else Y.style.bottom="0",p.scrollTop=N;if(t){let r=d.top,n=d.height,l=t.top+t.height/2,o=(0,eW.clamp)(n>0?(l-r)/n*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${o}%`)}(U===w||P>=C)&&(Z.current=!0),y(),R&&null===a.state.selectedIndex&&null===a.state.activeIndex&&null!=x.current[0]&&a.set("activeIndex",0),Q.current=!0}finally{t()}},[a,j,Y,K,h,v,f,y,L,O,er,T,P,J,x,R,k,M]),n.useEffect(()=>{if(!L||!Y||!j)return;let e=(0,ek.ownerWindow)(Y);return(0,eD.addEventListener)(e,"resize",function(e){g(!1,(0,B.createChangeEventDetails)(H.REASONS.windowResize,e))})},[g,L,Y,j]);let el={...J?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":S||void 0,id:`${F}-list`},onKeyDown(e){b.current=!0,D&&eB.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onMouseMove(){b.current=!1},onScroll(e){J||en(e.currentTarget)},...L&&{style:J?{height:"100%"}:eA}},eo=(0,X.useRenderElement)("div",e,{ref:[r,f],state:{open:j,transitionStatus:q,side:C,align:A},stateAttributesMapping:eq,props:[z,el,(0,eH.getDisabledMountTransitionStyles)(q),{className:!J&&L?ej.styleDisableScrollbar.className:void 0},s]});return(0,t.jsxs)(n.Fragment,{children:[!_&&ej.styleDisableScrollbar.getElement(V),(0,t.jsx)(e_.FloatingFocusManager,{context:N,modal:!1,disabled:!G,returnFocus:u,restoreFocus:!0,children:eo})]})});function eK(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function eX(e){return(0,$.getMaxScrollOffset)(e.scrollHeight,e.clientHeight)}function eY(e){return eF.platform.getScale(e)}function eJ(e,t){return(0,eP.rectToClientRect)({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let eZ=[["transform","none"],["scale","1"],["translate","0 0"]],eQ=n.forwardRef(function(e,t){let{className:r,render:n,style:l,...o}=e,{store:i,scrollHandlerRef:u}=w(),{alignItemWithTriggerActive:s}=eR(),a=(0,p.useStore)(i,U.hasScrollArrows),c=(0,p.useStore)(i,U.openMethod),f=(0,p.useStore)(i,U.multiple),m=(0,p.useStore)(i,U.id),g={id:`${m}-list`,role:"listbox","aria-multiselectable":f||void 0,onScroll(e){u.current?.(e.currentTarget)},...s&&{style:eA},className:a&&"touch"!==c?ej.styleDisableScrollbar.className:void 0},h=(0,d.useStableCallback)(e=>{i.set("listElement",e)});return(0,X.useRenderElement)("div",e,{ref:[t,h],props:[g,o]})});var e0=e.i(51005);let e1=n.createContext(void 0);function e2(){let e=n.useContext(e1);if(!e)throw Error((0,x.default)(57));return e}let e5=n.memo(n.forwardRef(function(e,r){let{render:l,className:o,value:i=null,label:u,disabled:s=!1,nativeButton:a=!1,style:d,...m}=e,g=n.useRef(null),h=(0,e0.useCompositeListItem)({label:u,textRef:g,indexGuessBehavior:e0.IndexGuessBehavior.GuessFromOrder}),{store:v,getItemProps:b,setOpen:S,setValue:y,selectionRef:E,typingRef:x,valuesRef:R,multiple:C,selectedItemTextRef:I}=w(),A=(0,p.useStore)(v,U.isActive,h.index),L=(0,p.useStore)(v,U.isSelected,h.index,i),M=(0,p.useStore)(v,U.isSelectedByFocus,h.index),O=(0,p.useStore)(v,U.isItemEqualToValue),T=h.index,P=-1!==T,N=n.useRef(null),k=(0,f.useValueAsRef)(T);(0,c.useIsoLayoutEffect)(()=>{if(!P)return;let e=R.current;return e[T]=i,()=>{delete e[T]}},[P,T,i,R]),(0,c.useIsoLayoutEffect)(()=>{if(!P)return;let e=v.state.value,t=e;C&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),void 0!==t&&D(i,t,O)&&(v.set("selectedIndex",T),g.current&&(I.current=g.current))},[P,T,C,O,v,i,I]);let V=b({active:A,selected:L});V.id=void 0;let _=n.useRef(null),F=n.useRef("mouse"),j=n.useRef(!1),{getButtonProps:W,buttonRef:G}=(0,eu.useButton)({disabled:s,focusableWhenDisabled:!0,native:a,composite:!0}),z=(0,X.useRenderElement)("div",e,{ref:[G,r,h.ref,N],state:{disabled:s,selected:L,highlighted:A},props:[V,{role:"option","aria-selected":L,tabIndex:A?0:-1,onTouchStart(){E.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){_.current=e.key,v.set("activeIndex",T)," "===e.key&&x.current&&e.preventDefault()},onClick(e){j.current=!1,"keydown"===e.type&&null===_.current||s||"keydown"===e.type&&" "===_.current&&x.current||"touch"!==F.current&&!A||(_.current=null,function(e){let t=v.state.value;if(C){let r=Array.isArray(t)?t:[];y(L?r.filter(e=>!D(i,e,O)):[...r,i],(0,B.createChangeEventDetails)(H.REASONS.itemPress,e))}else y(i,(0,B.createChangeEventDetails)(H.REASONS.itemPress,e)),S(!1,(0,B.createChangeEventDetails)(H.REASONS.itemPress,e))}(e.nativeEvent))},onPointerEnter(e){F.current=e.pointerType},onPointerDown(e){F.current=e.pointerType,j.current=!0},onMouseUp(){if(s)return;if(j.current){j.current=!1;return}let e=!E.current.allowSelectedMouseUp&&L,t=!E.current.allowUnselectedMouseUp&&!L;e||t||"touch"!==F.current&&!A||N.current?.click()}},m,W]}),q=n.useMemo(()=>({selected:L,indexRef:k,textRef:g,selectedByFocus:M,hasRegistered:P}),[L,k,g,M,P]);return(0,t.jsx)(e1.Provider,{value:q,children:z})})),e6=n.forwardRef(function(e,r){let n=e.keepMounted??!1,{selected:l}=e2();return n||l?(0,t.jsx)(e4,{...e,ref:r}):null}),e4=n.memo(n.forwardRef((e,t)=>{let{render:r,className:l,style:o,keepMounted:i,...u}=e,{selected:s}=e2(),a=n.useRef(null),{transitionStatus:c,setMounted:d}=(0,O.useTransitionStatus)(s),f=(0,X.useRenderElement)("span",e,{ref:[t,a],state:{selected:s,transitionStatus:c},props:[{"aria-hidden":!0,children:"✔️"},u],stateAttributesMapping:eh.transitionStatusMapping});return(0,W.useOpenChangeComplete)({open:s,ref:a,onComplete(){s||d(!1)}}),f})),e3=n.memo(n.forwardRef(function(e,t){let{indexRef:r,textRef:l,selectedByFocus:o,hasRegistered:i}=e2(),{selectedItemTextRef:u}=w(),{className:s,render:a,style:c,...d}=e,f=n.useCallback(e=>{if(!e||!i)return;let t=null===u.current||!u.current.isConnected;(o||t&&0===r.current)&&(u.current=e)},[u,r,o,i]);return(0,X.useRenderElement)("div",e,{ref:[f,t,l],props:d})})),e8={...en.popupStateMapping,...eh.transitionStatusMapping},e7=n.forwardRef(function(e,t){let{className:r,render:n,style:l,...o}=e,{store:i}=w(),{side:u,align:s,arrowRef:a,arrowStyles:c,arrowUncentered:d,alignItemWithTriggerActive:f}=eR(),m=(0,p.useStore)(i,U.open,!0),g=(0,X.useRenderElement)("div",e,{state:{open:m,side:u,align:s,uncentered:d},ref:[a,t],props:[{style:c,"aria-hidden":!0},o],stateAttributesMapping:e8});return f?null:g}),e9=n.forwardRef(function(e,t){let{render:r,className:n,style:l,direction:o,keepMounted:i=!1,...u}=e,s="up"===o,{store:a,popupRef:d,listRef:f,handleScrollArrowVisibility:m,scrollArrowsMountedCountRef:g}=w(),{side:h,scrollDownArrowRef:v,scrollUpArrowRef:b}=eR(),S=s?U.scrollUpArrowVisible:U.scrollDownArrowVisible,y=(0,p.useStore)(a,S),E=(0,p.useStore)(a,U.openMethod),x=y&&"touch"!==E,R=(0,et.useTimeout)(),C=s?b:v,{transitionStatus:I,setMounted:A}=(0,O.useTransitionStatus)(x);(0,c.useIsoLayoutEffect)(()=>(g.current+=1,a.state.hasScrollArrows||a.set("hasScrollArrows",!0),()=>{g.current=Math.max(0,g.current-1),0===g.current&&a.state.hasScrollArrows&&a.set("hasScrollArrows",!1)}),[a,g]),(0,W.useOpenChangeComplete)({open:x,ref:C,onComplete(){x||A(!1)}});let L=(0,X.useRenderElement)("div",e,{ref:[t,C],state:{direction:o,visible:x,side:h,transitionStatus:I},props:[{"aria-hidden":!0,children:s?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||R.isStarted()||(a.set("activeIndex",null),R.start(40,function e(){let t=a.state.listElement??d.current;if(!t)return;a.set("activeIndex",null),m();let r=(0,$.getMaxScrollOffset)(t.scrollHeight,t.clientHeight),n=(0,$.normalizeScrollOffset)(t.scrollTop,r),l=n===(s?0:r),o=f.current;if(n!==t.scrollTop&&(t.scrollTop=n),0===o.length&&a.set(s?"scrollUpArrowVisible":"scrollDownArrowVisible",!l),l)return void R.clear();if(o.length>0){let e=C.current?.offsetHeight||0;t.scrollTop=function(e,t,r,n,l,o){if(t){let t=0,n=r+l-$.SCROLL_EDGE_TOLERANCE_PX;for(let r=0;r=n){t=r;break}}let i=Math.max(0,t-1),u=e[i];return iu){i=Math.max(0,t-1);break}}let s=Math.min(e.length-1,i+1),a=e[s];return s>i&&a?(0,$.normalizeScrollOffset)(a.offsetTop+a.offsetHeight-n+l,o):o}(o,s,n,t.clientHeight,e,r)}R.start(40,e)}))},onMouseLeave(){R.clear()}},u]});return x||i?L:null}),te=n.forwardRef(function(e,r){return(0,t.jsx)(e9,{...e,ref:r,direction:"down"})}),tt=n.forwardRef(function(e,r){return(0,t.jsx)(e9,{...e,ref:r,direction:"up"})}),tr=n.createContext(void 0),tn=n.forwardRef(function(e,r){let{className:l,render:o,style:i,...u}=e,[s,a]=n.useState(),c=n.useMemo(()=>({labelId:s,setLabelId:a}),[s,a]),d=(0,X.useRenderElement)("div",e,{ref:r,props:[{role:"group","aria-labelledby":s},u]});return(0,t.jsx)(tr.Provider,{value:c,children:d})});var tl=e.i(593478);let to=n.forwardRef(function(e,t){let{className:r,render:l,id:o,style:i,...u}=e,{setLabelId:s}=function(){let e=n.useContext(tr);if(void 0===e)throw Error((0,x.default)(56));return e}(),a=(0,tl.useBaseUiId)(o);return(0,c.useIsoLayoutEffect)(()=>{s(a)},[a,s]),(0,X.useRenderElement)("div",e,{ref:t,props:[{id:a},u]})});var ti=e.i(540427);e.s(["Arrow",0,e7,"Backdrop",0,eb,"Group",0,tn,"GroupLabel",0,to,"Icon",0,ef,"Item",0,e5,"ItemIndicator",0,e6,"ItemText",0,e3,"Label",0,Q,"List",0,eQ,"Popup",0,e$,"Portal",0,eg,"Positioner",0,eT,"Root",0,function(e){let{id:r,value:x,defaultValue:w=null,onValueChange:I,open:T,defaultOpen:D=!1,onOpenChange:k,name:V,form:j,autoComplete:X,disabled:Y=!1,readOnly:J=!1,required:Z=!1,modal:Q=!0,actionsRef:ee,inputRef:et,onOpenChangeComplete:er,items:en,multiple:el=!1,itemToStringLabel:eo,itemToStringValue:ei,isItemEqualToValue:eu=P,highlightItemOnHover:es=!0,children:ea}=e,{clearErrors:ec}=(0,G.useFormContext)(),{setDirty:ed,setTouched:ef,setFocused:ep,shouldValidateOnChange:em,validityData:eg,setFilled:eh,name:ev,disabled:eb,validation:eS,validationMode:ey}=(0,A.useFieldRootContext)(),eE=(0,M.useLabelableId)({id:r}),ex=eb||Y,eR=ev??V,[eC,ew]=(0,a.useControlled)({controlled:x,default:el?w??g.EMPTY_ARRAY:w,name:"Select",state:"value"}),[eI,eA]=(0,a.useControlled)({controlled:T,default:D,name:"Select",state:"open"}),eL=n.useRef([]),eM=n.useRef([]),eO=n.useRef(null),eT=n.useRef(null),eP=n.useRef(0),eD=n.useRef(null),eN=n.useRef([]),ek=n.useRef(!1),eV=n.useRef(!1),e_=n.useRef(null),eF=n.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),ej=n.useRef(!1),{mounted:eU,setMounted:eB,transitionStatus:eH}=(0,O.useTransitionStatus)(eI),{openMethod:eW,triggerProps:eG}=(0,q.useOpenInteractionType)(eI),ez=(0,i.useRefWithInit)(()=>new m.Store({id:eE,labelId:void 0,modal:Q,multiple:el,itemToStringLabel:eo,itemToStringValue:ei,isItemEqualToValue:eu,value:eC,open:eI,mounted:eU,transitionStatus:eH,items:en,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eq=(0,p.useStore)(ez,U.activeIndex),e$=(0,p.useStore)(ez,U.selectedIndex),eK=(0,p.useStore)(ez,U.triggerElement),eX=(0,p.useStore)(ez,U.positionerElement),eY=(0,s.usePreviousValue)(eW),eJ=eW??eY,eZ=n.useMemo(()=>el&&Array.isArray(eC)&&0===eC.length?"":F(eC,ei),[el,eC,ei]),eQ=n.useMemo(()=>el&&Array.isArray(eC)?eC.map(e=>F(e,ei)):F(eC,ei),[el,eC,ei]),e0=(0,f.useValueAsRef)(ez.state.triggerElement),e1=(0,d.useStableCallback)(()=>eQ);(0,L.useRegisterFieldControl)(e0,{id:eE,value:eC,getValue:e1});let e2=n.useRef(eC);(0,c.useIsoLayoutEffect)(()=>{eC!==e2.current&&ez.set("forceMount",!0)},[ez,eC]),(0,c.useIsoLayoutEffect)(()=>{eh(el?Array.isArray(eC)&&eC.length>0:null!=eC)},[el,eC,eh]),(0,c.useIsoLayoutEffect)(function(){if(eI)return;let e=eN.current;if(el){let t=Array.isArray(eC)?eC:[];if(0===t.length)return void ez.set("selectedIndex",null);let r=N(e,t[t.length-1],eu);return void ez.set("selectedIndex",-1===r?null:r)}let t=N(e,eC,eu);ez.set("selectedIndex",-1===t?null:t)},[el,eI,eC,eN,eu,ez]),(0,z.useValueChanged)(eC,()=>{ec(eR),ed(eC!==eg.initialValue),em()?eS.commit(eC):eS.commit(eC,!0)});let e5=(0,d.useStableCallback)((e,t)=>{if(k?.(e,t),!t.isCanceled&&(eA(e),e||t.reason!==H.REASONS.focusOut&&t.reason!==H.REASONS.outsidePress||(ef(!0),ep(!1),"onBlur"===ey&&eS.commit(eC)),!e&&null!==ez.state.activeIndex)){let e=eL.current[ez.state.activeIndex];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}}),e6=(0,d.useStableCallback)(()=>{eB(!1),ez.update({activeIndex:null,openMethod:null}),er?.(!1)});(0,W.useOpenChangeComplete)({enabled:!ee,open:eI,ref:eO,onComplete(){eI||e6()}}),n.useImperativeHandle(ee,()=>({unmount:e6}),[e6]);let e4=(0,d.useStableCallback)((e,t)=>{I?.(e,t),t.isCanceled||ew(e)}),e3=(0,d.useStableCallback)(()=>{let e=ez.state.listElement||eO.current;if(!e)return;let t=(0,$.getMaxScrollOffset)(e.scrollHeight,e.clientHeight),r=(0,$.normalizeScrollOffset)(e.scrollTop,t),n=r>0,l=r(0,K.mergeProps)(tr(),eG,eE?{id:eE}:g.EMPTY_OBJECT),[tr,eG,eE]);(0,u.useOnFirstRender)(()=>{ez.update({popupProps:tn(),triggerProps:to})}),(0,c.useIsoLayoutEffect)(()=>{ez.update({id:eE,modal:Q,multiple:el,value:eC,open:eI,mounted:eU,transitionStatus:eH,popupProps:tn(),triggerProps:to,items:en,itemToStringLabel:eo,itemToStringValue:ei,isItemEqualToValue:eu,openMethod:eJ})},[ez,eE,Q,el,eC,eI,eU,eH,tn,to,en,eo,ei,eu,eJ]);let ti=n.useMemo(()=>({store:ez,name:eR,required:Z,disabled:ex,readOnly:J,multiple:el,highlightItemOnHover:es,setValue:e4,setOpen:e5,listRef:eL,popupRef:eO,scrollHandlerRef:eT,handleScrollArrowVisibility:e3,scrollArrowsMountedCountRef:eP,getItemProps:tl,events:e8.context.events,valueRef:eD,valuesRef:eN,labelsRef:eM,typingRef:ek,selectionRef:eF,selectedItemTextRef:e_,validation:eS,onOpenChangeComplete:er,keyboardActiveRef:eV,alignItemWithTriggerActiveRef:ej,initialValueRef:e2}),[ez,eR,Z,ex,J,el,es,e4,e5,tl,e8.context.events,eS,er,e3]),tu=(0,o.useMergedRefs)(et,eS.inputRef),ts=el&&Array.isArray(eC)&&eC.length>0,ta=el?void 0:eR,tc=n.useMemo(()=>el&&Array.isArray(eC)&&eR?eC.map(e=>{let r=F(e,ei);return(0,t.jsx)("input",{type:"hidden",form:j,name:eR,value:r},r)}):null,[el,eC,j,eR,ei]);return(0,t.jsx)(R.Provider,{value:ti,children:(0,t.jsxs)(C.Provider,{value:e8,children:[ea,(0,t.jsx)("input",{...eS.getInputValidationProps({onFocus(){ez.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,r=(0,B.createChangeEventDetails)(H.REASONS.none,e.nativeEvent);ez.set("forceMount",!0),queueMicrotask(function(){if(el)return;let e=eN.current.find(e=>F(e,ei).toLowerCase()===t.toLowerCase()||_(e,eo).toLowerCase()===t.toLowerCase());null!=e&&(ed(e!==eg.initialValue),e4(e,r),em()&&eS.commit(e))})}}),id:eE&&null==ta?`${eE}-hidden-input`:void 0,form:j,name:ta,autoComplete:X,value:eZ,disabled:ex,required:Z&&!ts,readOnly:J,ref:tu,style:eR?l.visuallyHiddenInput:l.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tc]})})},"ScrollDownArrow",0,te,"ScrollUpArrow",0,tt,"Separator",()=>ti.Separator,"Trigger",0,ea,"Value",0,ed],901351);var tu=e.i(901351),tu=tu,ts=e.i(452473),ta=e.i(586404),tc=e.i(699937),td=e.i(99074),tf=e.i(477986),tp=e.i(320187),tm=e.i(147680);let tg=(0,n.createContext)({variant:"square",size:"default"});function th(e){if(!(0,n.isValidElement)(e))return[];let t=tv(e.props.children)??[];if(e.type!==tE)return t;let r=function(e){if(!("value"in e))return;let t=e.label??e.textValue??e.children;if(void 0!==t)return{label:t,value:e.value??null}}(e.props);return r?[r,...t]:t}function tv(e){let t=n.Children.toArray(e).flatMap(th);if(0!==t.length)return t}let tb=tu.Group;function tS(e){let n,l,o,i,u,s,a=(0,r.c)(11);return a[0]!==e?({className:n,ref:o,...l}=e,a[0]=e,a[1]=n,a[2]=l,a[3]=o):(n=a[1],l=a[2],o=a[3]),a[4]!==n?(i=(0,ts.cn)("flex cursor-default items-center justify-center py-1",n),a[4]=n,a[5]=i):i=a[5],a[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(tf.ChevronUp,{className:"h-4 w-4"}),a[6]=u):u=a[6],a[7]!==l||a[8]!==o||a[9]!==i?(s=(0,t.jsx)(tu.ScrollUpArrow,{ref:o,className:i,...l,children:u}),a[7]=l,a[8]=o,a[9]=i,a[10]=s):s=a[10],s}function ty(e){let n,l,o,i,u,s,a=(0,r.c)(11);return a[0]!==e?({className:n,ref:o,...l}=e,a[0]=e,a[1]=n,a[2]=l,a[3]=o):(n=a[1],l=a[2],o=a[3]),a[4]!==n?(i=(0,ts.cn)("flex cursor-default items-center justify-center py-1",n),a[4]=n,a[5]=i):i=a[5],a[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(td.ChevronDown,{className:"h-4 w-4"}),a[6]=u):u=a[6],a[7]!==l||a[8]!==o||a[9]!==i?(s=(0,t.jsx)(tu.ScrollDownArrow,{ref:o,className:i,...l,children:u}),a[7]=l,a[8]=o,a[9]=i,a[10]=s):s=a[10],s}function tE(e){let l,o,i,u,s,a,c,d,f,p,m=(0,r.c)(19);m[0]!==e?({className:o,children:l,label:i,textValue:a,ref:s,...u}=e,m[0]=e,m[1]=l,m[2]=o,m[3]=i,m[4]=u,m[5]=s,m[6]=a):(l=m[1],o=m[2],i=m[3],u=m[4],s=m[5],a=m[6]);let g=(0,n.use)(tg),h=i??a;if(m[7]!==o||m[8]!==g){let e;c=(0,ts.cn)("relative flex w-full cursor-pointer select-none items-center py-1.5 pl-8 pr-2","text-body font-medium outline-none","focus:bg-card-hover focus:text-accent-foreground","data-[selected]:bg-accent data-[selected]:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",(e="compact"===g.size?"truncate text-muted-foreground md:text-overline":"truncate text-muted-foreground text-body",(0,ts.cn)(e,"rounded-sm")),o),m[7]=o,m[8]=g,m[9]=c}else c=m[9];return m[10]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(tu.ItemIndicator,{children:(0,t.jsx)(tc.Check,{className:"h-4 w-4"})})}),m[10]=d):d=m[10],m[11]!==l?(f=(0,t.jsx)(tu.ItemText,{children:l}),m[11]=l,m[12]=f):f=m[12],m[13]!==u||m[14]!==s||m[15]!==h||m[16]!==c||m[17]!==f?(p=(0,t.jsxs)(tu.Item,{ref:s,label:h,className:c,...u,children:[d,f]}),m[13]=u,m[14]=s,m[15]=h,m[16]=c,m[17]=f,m[18]=p):p=m[18],p}e.s(["Select",0,function(e){let n,l,o,i,u,s,a,c,d,f,p,m,g,h=(0,r.c)(27);h[0]!==e?({variant:s,size:a,children:n,onValueChange:i,onOpenChange:o,items:l,...u}=e,h[0]=e,h[1]=n,h[2]=l,h[3]=o,h[4]=i,h[5]=u,h[6]=s,h[7]=a):(n=h[1],l=h[2],o=h[3],i=h[4],u=h[5],s=h[6],a=h[7]);let v=void 0===s?"square":s,b=void 0===a?"default":a;h[8]!==n||h[9]!==l?(c=l??tv(n),h[8]=n,h[9]=l,h[10]=c):c=h[10];let S=c;h[11]!==b||h[12]!==v?(d={variant:v,size:b},h[11]=b,h[12]=v,h[13]=d):d=h[13];let y=d;return h[14]!==i?(f=i?e=>{null!==e&&i(e)}:void 0,h[14]=i,h[15]=f):f=h[15],h[16]!==o?(p=o?e=>o(e):void 0,h[16]=o,h[17]=p):p=h[17],h[18]!==n||h[19]!==u||h[20]!==S||h[21]!==f||h[22]!==p?(m=(0,t.jsx)(tu.Root,{items:S,onValueChange:f,onOpenChange:p,...u,children:n}),h[18]=n,h[19]=u,h[20]=S,h[21]=f,h[22]=p,h[23]=m):m=h[23],h[24]!==y||h[25]!==m?(g=(0,t.jsx)(tg,{value:y,children:m}),h[24]=y,h[25]=m,h[26]=g):g=h[26],g},"SelectContent",0,function(e){let l,o,i,u,s,a,c,d,f,p,m,g,h,v,b,S,y=(0,r.c)(33);y[0]!==e?({className:i,children:o,position:d,align:l,side:a,sideOffset:c,showScrollButtons:f,ref:s,...u}=e,y[0]=e,y[1]=l,y[2]=o,y[3]=i,y[4]=u,y[5]=s,y[6]=a,y[7]=c,y[8]=d,y[9]=f):(l=y[1],o=y[2],i=y[3],u=y[4],s=y[5],a=y[6],c=y[7],d=y[8],f=y[9]);let E=void 0===f||f,x=(0,n.use)(tg),R=(0,tp.useFloatingLayerZClass)(),C=a??"bottom",w=c??5;return y[10]!==i||y[11]!==x?(p=(0,ts.cn)("relative z-50 max-h-[var(--available-height)] min-w-[8rem]","overflow-y-auto overflow-x-hidden","border border-border bg-popover text-popover-foreground shadow-md outline-none","data-[side=none]:opacity-0",tm.popupMotion,"origin-[--transform-origin]","rounded"===x.variant?"rounded-xl":"rounded-md","data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",i),y[10]=i,y[11]=x,y[12]=p):p=y[12],y[13]!==E?(m=E&&(0,t.jsx)(tS,{}),y[13]=E,y[14]=m):m=y[14],y[15]===Symbol.for("react.memo_cache_sentinel")?(g=(0,ts.cn)("p-1","w-full min-w-[var(--anchor-width)]"),y[15]=g):g=y[15],y[16]!==o?(h=(0,t.jsx)("div",{className:g,children:o}),y[16]=o,y[17]=h):h=y[17],y[18]!==E?(v=E&&(0,t.jsx)(ty,{}),y[18]=E,y[19]=v):v=y[19],y[20]!==u||y[21]!==s||y[22]!==p||y[23]!==m||y[24]!==h||y[25]!==v?(b=(0,t.jsxs)(tu.Popup,{ref:s,className:p,...u,children:[m,h,v]}),y[20]=u,y[21]=s,y[22]=p,y[23]=m,y[24]=h,y[25]=v,y[26]=b):b=y[26],y[27]!==l||y[28]!==b||y[29]!==C||y[30]!==w||y[31]!==R?(S=(0,t.jsx)(tu.Portal,{children:(0,t.jsx)(tu.Positioner,{align:l,side:C,sideOffset:w,alignItemWithTrigger:!1,className:R,children:b})}),y[27]=l,y[28]=b,y[29]=C,y[30]=w,y[31]=R,y[32]=S):S=y[32],S},"SelectGroup",0,tb,"SelectItem",0,tE,"SelectLabel",0,function(e){let n,l,o,i,u,s=(0,r.c)(10);return s[0]!==e?({className:n,ref:o,...l}=e,s[0]=e,s[1]=n,s[2]=l,s[3]=o):(n=s[1],l=s[2],o=s[3]),s[4]!==n?(i=(0,ts.cn)("py-1.5 pl-8 pr-2 text-body font-medium",n),s[4]=n,s[5]=i):i=s[5],s[6]!==l||s[7]!==o||s[8]!==i?(u=(0,t.jsx)(tu.GroupLabel,{ref:o,className:i,...l}),s[6]=l,s[7]=o,s[8]=i,s[9]=u):u=s[9],u},"SelectTrigger",0,function(e){let l,o,i,u,s,a,c,d,f=(0,r.c)(18);f[0]!==e?({className:o,children:l,hideChevron:s,ref:u,...i}=e,f[0]=e,f[1]=l,f[2]=o,f[3]=i,f[4]=u,f[5]=s):(l=f[1],o=f[2],i=f[3],u=f[4],s=f[5]);let p=void 0!==s&&s,m=(0,n.use)(tg),g=p?"[&>span]:line-clamp-1 [&>span]:text-left [&>span]:flex-1":"[&>span:not(:last-child)]:line-clamp-1 [&>span:not(:last-child)]:text-left [&>span:not(:last-child)]:flex-1";if(f[6]!==o||f[7]!==m||f[8]!==g){let e,t;a=(0,ts.cn)("flex w-full items-center justify-between px-3 py-2","border border-input bg-input-bg text-body cursor-pointer","data-[placeholder]:text-muted-foreground","focus-visible:outline-none focus-visible:border-focus-border focus-visible:shadow-focus","disabled:cursor-not-allowed disabled:opacity-50",g,(e="compact"===m.size?"h-9 text-muted-foreground shadow-none md:h-8 md:text-overline":"h-10 text-muted-foreground",t="rounded"===m.variant?"rounded-full":"rounded-md",(0,ts.cn)(e,t,"hover:bg-muted/30")),o),f[6]=o,f[7]=m,f[8]=g,f[9]=a}else a=f[9];return f[10]!==p?(c=!p&&(0,t.jsx)(tu.Icon,{className:"shrink-0 ml-2",children:(0,t.jsx)(td.ChevronDown,{className:"h-4 w-4 opacity-50"})}),f[10]=p,f[11]=c):c=f[11],f[12]!==l||f[13]!==i||f[14]!==u||f[15]!==a||f[16]!==c?(d=(0,t.jsxs)(tu.Trigger,{ref:u,className:a,...i,children:[l,c]}),f[12]=l,f[13]=i,f[14]=u,f[15]=a,f[16]=c,f[17]=d):d=f[17],d},"SelectValue",0,function(e){let n,l,o,i,u,s=(0,r.c)(11);return s[0]!==e?({children:n,placeholder:l,...o}=e,s[0]=e,s[1]=n,s[2]=l,s[3]=o):(n=s[1],l=s[2],o=s[3]),s[4]!==n||s[5]!==l?(i="function"==typeof n?e=>(0,ta.isDefinedAndNotNull)(e)?n(e):l??null:n,s[4]=n,s[5]=l,s[6]=i):i=s[6],s[7]!==l||s[8]!==o||s[9]!==i?(u=(0,t.jsx)(tu.Value,{placeholder:l,...o,children:i}),s[7]=l,s[8]=o,s[9]=i,s[10]=u):u=s[10],u}],738286)}]); //# sourceMappingURL=16mmw8uefsm9p.js.map //# chunkId=01a09faf-5135-7e22-9a08-f6d079ec838f