!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-515d-7411-9573-c881efaae838")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,308225,e=>{"use strict";var t=e.i(120102),r=e.i(192291),l=e.i(228876),n=e.i(271710),o=e.i(210761),i=e.i(231152);function s(e){e.focus({focusVisible:!0})}e.s(["focusElementWithVisible",0,s,"useLabel",0,function(e={}){let{id:u,fallbackControlId:a,native:c=!1,setLabelId:d,focusControl:f}=e,{controlId:p,setLabelId:m}=(0,i.useLabelableContext)(),h=(0,l.useStableCallback)(e=>{m(e),d?.(e)}),g=(0,o.useRegisteredLabelId)(u,h),S=p??a;function b(e){let l=(0,n.getTarget)(e.nativeEvent);l?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(f)return f(e,S);if(!S)return;let l=(0,r.ownerDocument)(e.currentTarget).getElementById(S);(0,t.isHTMLElement)(l)&&s(l)}(e))}return c?{id:g,htmlFor:S??void 0,onMouseDown:b}:{id:g,onClick:b,onPointerDown(e){e.preventDefault()}}}])},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}])},738286,e=>{"use strict";var t=e.i(222666),r=e.i(505962);e.s([],430862),e.i(430862);var l=e.i(270401),n=e.i(854855),o=e.i(235901),i=e.i(836033),s=e.i(796021),u=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),h=e.i(618568),g=e.i(609190),S=e.i(427702),b=e.i(829655),v=e.i(802691),x=e.i(512357),y=e.i(741485),E=e.i(397744);let w=l.createContext(null),C=l.createContext(null);function R(){let e=l.useContext(w);if(null===e)throw Error((0,E.default)(60));return e}function A(){let e=l.useContext(C);if(null===e)throw Error((0,E.default)(61));return e}var I=e.i(761073),M=e.i(897464),T=e.i(435848),L=e.i(207290),P=e.i(306694);let O=(e,t)=>Object.is(e,t);function D(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function V(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&D(e,t,r)):-1}var j=e.i(39285);function N(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,j.serializeValue)(e)}function k(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?(0,j.serializeValue)(e.value):(0,j.serializeValue)(e)}function U(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 l=N(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=l.find(t=>t.value===e);return t&&null!=t.label?t.label:_(e,r)}if("value"in e){let t=l.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return _(e,r)}let B={id:(0,P.createSelector)(e=>e.id),labelId:(0,P.createSelector)(e=>e.labelId),modal:(0,P.createSelector)(e=>e.modal),multiple:(0,P.createSelector)(e=>e.multiple),items:(0,P.createSelector)(e=>e.items),itemToStringLabel:(0,P.createSelector)(e=>e.itemToStringLabel),itemToStringValue:(0,P.createSelector)(e=>e.itemToStringValue),isItemEqualToValue:(0,P.createSelector)(e=>e.isItemEqualToValue),value:(0,P.createSelector)(e=>e.value),hasSelectedValue:(0,P.createSelector)(e=>{let{value:t,multiple:r,itemToStringValue:l}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==k(t,l))}),hasNullItemLabel:(0,P.createSelector)((e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(N(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,P.createSelector)(e=>e.open),mounted:(0,P.createSelector)(e=>e.mounted),forceMount:(0,P.createSelector)(e=>e.forceMount),transitionStatus:(0,P.createSelector)(e=>e.transitionStatus),openMethod:(0,P.createSelector)(e=>e.openMethod),activeIndex:(0,P.createSelector)(e=>e.activeIndex),selectedIndex:(0,P.createSelector)(e=>e.selectedIndex),isActive:(0,P.createSelector)((e,t)=>e.activeIndex===t),isSelected:(0,P.createSelector)((e,t,r)=>{let l=e.isItemEqualToValue,n=e.value;return e.multiple?Array.isArray(n)&&n.some(e=>D(r,e,l)):e.selectedIndex===t&&null!==e.selectedIndex||D(r,n,l)}),isSelectedByFocus:(0,P.createSelector)((e,t)=>e.selectedIndex===t),popupProps:(0,P.createSelector)(e=>e.popupProps),triggerProps:(0,P.createSelector)(e=>e.triggerProps),triggerElement:(0,P.createSelector)(e=>e.triggerElement),positionerElement:(0,P.createSelector)(e=>e.positionerElement),listElement:(0,P.createSelector)(e=>e.listElement),scrollUpArrowVisible:(0,P.createSelector)(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:(0,P.createSelector)(e=>e.scrollDownArrowVisible),hasScrollArrows:(0,P.createSelector)(e=>e.hasScrollArrows)};var F=e.i(939550),H=e.i(467219),z=e.i(688342),G=e.i(965358),W=e.i(412425),X=e.i(593900),q=e.i(172464),$=e.i(356120),Y=e.i(281334),K=e.i(391699),J=e.i(308225),Z=e.i(471814);let Q=l.forwardRef(function(e,t){let{render:r,className:l,style:n,...o}=e;delete o.id;let i=(0,I.useFieldRootContext)(),{store:s}=R(),u=(0,p.useStore)(s,B.triggerElement),a=(0,p.useStore)(s,B.id),c=(0,Z.getDefaultLabelId)(a),d=(0,J.useLabel)({id:c,fallbackControlId:u?.id??a,setLabelId(e){s.set("labelId",e)}});return(0,Y.useRenderElement)("div",e,{ref:t,state:i.state,props:[d,o],stateAttributesMapping:K.fieldValidityMapping})});var ee=e.i(192291),et=e.i(671695),er=e.i(231152),el=e.i(290530),en=e.i(58115),eo=e.i(271710),ei=e.i(365054),es=e.i(481902);let eu={...el.pressableTriggerOpenStateMapping,...K.fieldValidityMapping,value:()=>null},ea=l.forwardRef(function(e,t){let{render:r,className:n,id:i,disabled:s=!1,nativeButton:u=!0,style:a,...c}=e,{setTouched:m,setFocused:h,validationMode:g,state:S,disabled:b}=(0,I.useFieldRootContext)(),{labelId:v}=(0,er.useLabelableContext)(),{store:x,setOpen:y,selectionRef:E,validation:w,readOnly:C,required:A,alignItemWithTriggerActiveRef:M,disabled:L,keyboardActiveRef:P}=R(),O=b||L||s,D=(0,p.useStore)(x,B.open),V=(0,p.useStore)(x,B.value),j=(0,p.useStore)(x,B.triggerProps),N=(0,p.useStore)(x,B.positionerElement),_=(0,p.useStore)(x,B.listElement),k=(0,p.useStore)(x,B.id),U=(0,p.useStore)(x,B.labelId),z=(0,p.useStore)(x,B.hasSelectedValue),G=!z&&D,W=(0,p.useStore)(x,B.hasNullItemLabel,G),X=i??k,q=(0,Z.resolveAriaLabelledBy)(v,U);(0,T.useLabelableId)({id:X});let K=(0,f.useValueAsRef)(N),J=l.useRef(null),{getButtonProps:Q,buttonRef:el}=(0,es.useButton)({disabled:O,native:u}),ea=(0,d.useStableCallback)(e=>{x.set("triggerElement",e)}),ec=(0,o.useMergedRefs)(t,J,el,ea),ed=(0,et.useTimeout)(),ef=(0,et.useTimeout)(),ep=(0,et.useTimeout)(),em=(0,et.useTimeout)();l.useEffect(()=>{if(D)return z||W?em.start(200,()=>{E.current.allowUnselectedMouseUp=!0,ep.start(200,()=>{E.current.allowSelectedMouseUp=!0})}):ep.start(400,()=>{E.current.allowUnselectedMouseUp=!0,E.current.allowSelectedMouseUp=!0}),()=>{ep.clear(),em.clear()};E.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1},ef.clear()},[D,z,W,E,ef,ep,em]);let eh=l.useMemo(()=>_?.id??(0,ei.getFloatingFocusElement)(N)?.id,[_,N]),eg=(0,$.mergeProps)(j,{id:X,role:"combobox","aria-expanded":D?"true":"false","aria-haspopup":"listbox","aria-controls":D?eh:void 0,"aria-labelledby":q,"aria-readonly":C||void 0,"aria-required":A||void 0,tabIndex:O?-1:0,ref:ec,onFocus(e){h(!0),D&&M.current&&y(!1,(0,F.createChangeEventDetails)(H.REASONS.none,e.nativeEvent)),ed.start(0,()=>{x.set("forceMount",!0)})},onBlur(e){(0,eo.contains)(N,e.relatedTarget)||(m(!0),h(!1),"onBlur"===g&&w.commit(V))},onPointerMove(){P.current=!1},onKeyDown(){P.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)(K.current,t)||t===J.current)return;let r=(0,en.getPseudoElementBounds)(J.current);e.clientX>=r.left-2&&e.clientX<=r.right+2&&e.clientY>=r.top-2&&e.clientY<=r.bottom+2||y(!1,(0,F.createChangeEventDetails)(H.REASONS.cancelOpen,e))}ef.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},w.getValidationProps,c,Q);eg.role="combobox";let eS={...S,open:D,disabled:O,value:V,readOnly:C,placeholder:!z};return(0,Y.useRenderElement)("button",e,{ref:[t,J],state:eS,stateAttributesMapping:eu,props:eg})}),ec={value:()=>null},ed=l.forwardRef(function(e,r){let{className:n,render:o,children:i,placeholder:s,style:u,...a}=e,{store:c,valueRef:d}=R(),f=(0,p.useStore)(c,B.value),m=(0,p.useStore)(c,B.items),h=(0,p.useStore)(c,B.itemToStringLabel),g=(0,p.useStore)(c,B.hasSelectedValue),S=(0,p.useStore)(c,B.hasNullItemLabel,!g&&null!=s&&null==i),b=null;if("function"==typeof i)b=i(f);else if(null!=i)b=i;else if(g||null==s||S)if(Array.isArray(f))b=f.reduce((e,r,n)=>(n>0&&e.push(", "),e.push((0,t.jsx)(l.Fragment,{children:U(r,m,h)},n)),e),[]);else b=U(f,m,h);else b=s;return(0,Y.useRenderElement)("span",e,{state:{value:f,placeholder:!g},ref:[r,d],props:[{children:b},a],stateAttributesMapping:ec})}),ef=l.forwardRef(function(e,t){let{className:r,render:l,style:n,...o}=e,{store:i}=R(),s=(0,p.useStore)(i,B.open);return(0,Y.useRenderElement)("span",e,{state:{open:s},ref:t,props:[{"aria-hidden":!0,children:"▼"},o],stateAttributesMapping:el.triggerOpenStateMapping})});var ep=e.i(55497);let em=l.createContext(void 0),eh=l.forwardRef(function(e,r){let{store:l}=R(),n=(0,p.useStore)(l,B.mounted),o=(0,p.useStore)(l,B.forceMount);return n||o?(0,t.jsx)(em.Provider,{value:!0,children:(0,t.jsx)(ep.FloatingPortal,{ref:r,...e})}):null});var eg=e.i(678968);let eS={...el.popupStateMapping,...eg.transitionStatusMapping},eb=l.forwardRef(function(e,t){let{className:r,render:l,style:n,...o}=e,{store:i}=R(),s=(0,p.useStore)(i,B.open),u=(0,p.useStore)(i,B.mounted),a=(0,p.useStore)(i,B.transitionStatus);return(0,Y.useRenderElement)("div",e,{state:{open:s,transitionStatus:a},ref:t,props:[{role:"presentation",hidden:!u,style:{userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:eS})});var ev=e.i(528510),ex=e.i(364960),ey=e.i(707999);let eE=l.createContext(void 0);function ew(){let e=l.useContext(eE);if(!e)throw Error((0,E.default)(59));return e}var eC=e.i(814348),eR=e.i(916317);function eA(e,t){e&&Object.assign(e.style,t)}let eI={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};var eM=e.i(556982),eT=e.i(922651);let eL={position:"fixed"},eP=l.forwardRef(function(e,r){let{anchor:n,positionMethod:o="absolute",className:i,render:s,side:u="bottom",align:a="center",sideOffset:f=0,alignOffset:m=0,collisionBoundary:h="clipping-ancestors",collisionPadding:g,arrowPadding:S=5,sticky:b=!1,disableAnchorTracking:v,alignItemWithTrigger:x=!0,collisionAvoidance:y=eR.DROPDOWN_COLLISION_AVOIDANCE,style:E,...w}=e,{store:C,listRef:I,labelsRef:M,alignItemWithTriggerActiveRef:T,selectedItemTextRef:L,valuesRef:P,initialValueRef:O,popupRef:j,setValue:N}=R(),_=A(),k=(0,p.useStore)(C,B.open),U=(0,p.useStore)(C,B.mounted),z=(0,p.useStore)(C,B.modal),G=(0,p.useStore)(C,B.value),W=(0,p.useStore)(C,B.openMethod),X=(0,p.useStore)(C,B.positionerElement),q=(0,p.useStore)(C,B.triggerElement),$=(0,p.useStore)(C,B.isItemEqualToValue),Y=(0,p.useStore)(C,B.transitionStatus),K=l.useRef(null),J=l.useRef(null),[Z,Q]=l.useState(x),ee=U&&Z&&"touch"!==W;U||Z===x||Q(x),(0,c.useIsoLayoutEffect)(()=>{!U&&(B.scrollUpArrowVisible(C.state)&&C.set("scrollUpArrowVisible",!1),B.scrollDownArrowVisible(C.state)&&C.set("scrollDownArrowVisible",!1))},[C,U]),l.useImperativeHandle(T,()=>ee),(0,eT.useAnchoredPopupScrollLock)((ee||z)&&k,"touch"===W,X,q);let et=(0,ey.useAnchorPositioning)({anchor:n,floatingRootContext:_,positionMethod:o,mounted:U,side:u,sideOffset:f,align:a,alignOffset:m,arrowPadding:S,collisionBoundary:h,collisionPadding:g,sticky:b,disableAnchorTracking:v??ee,collisionAvoidance:y,keepMounted:!0}),er=ee?"none":et.side,el=ee?eL:et.positionerStyles,en={open:k,side:er,align:et.align,anchorHidden:et.anchorHidden},eo=(0,d.useStableCallback)(e=>{C.set("positionerElement",e)}),ei=(0,eM.usePositioner)(e,en,{styles:el,transitionStatus:Y,props:w,refs:[r,eo],hidden:!U,inert:!k}),es=l.useRef(0),eu=(0,d.useStableCallback)(e=>{if(0===e.size&&0===es.current||0===P.current.length)return;let t=es.current;if(es.current=e.size,e.size===t)return;let r=(0,F.createChangeEventDetails)(H.REASONS.none);if(0!==t&&!C.state.multiple&&null!==G&&-1===V(P.current,G,$)){let e=O.current,t=null!=e&&-1!==V(P.current,e,$)?e:null;N(t,r),null===t&&(C.set("selectedIndex",null),L.current=null)}if(0!==t&&C.state.multiple&&Array.isArray(G)){let e=G.filter(e=>-1!==V(P.current,e,$));(e.length!==G.length||e.some(e=>!(G&&0!==G.length&&G.some(t=>void 0!==t&&D(e,t,$)))))&&(N(e,r),0===e.length&&(C.set("selectedIndex",null),L.current=null))}if(k&&ee){C.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};eA(X,e),eA(j.current,e)}}),ea=l.useMemo(()=>({...et,side:er,alignItemWithTriggerActive:ee,setControlledAlignItemWithTrigger:Q,scrollUpArrowRef:K,scrollDownArrowRef:J}),[et,er,ee,Q]);return(0,t.jsx)(ex.CompositeList,{elementsRef:I,labelsRef:M,onMapChange:eu,children:(0,t.jsxs)(eE.Provider,{value:ea,children:[U&&z&&(0,t.jsx)(eC.InternalBackdrop,{inert:(0,ev.inertValue)(!k),cutout:q}),ei]})})});var eO=e.i(304916),eD=e.i(602406),eV=e.i(863345),ej=e.i(281085),eN=e.i(763323),e_=e.i(996225),ek=e.i(389542),eU=e.i(871060),eB=e.i(777246),eF=e.i(899454),eH=e.i(837861),ez=e.i(831020),eG=e.i(914844),eW=e.i(698031);let eX={...el.popupStateMapping,...eg.transitionStatusMapping},eq=l.forwardRef(function(e,r){let{render:n,className:o,style:i,finalFocus:s,...u}=e,{store:a,popupRef:f,onOpenChangeComplete:m,setOpen:h,valueRef:g,selectedItemTextRef:S,keyboardActiveRef:b,multiple:v,handleScrollArrowVisibility:x,scrollHandlerRef:y,listRef:E,highlightItemOnHover:w}=R(),{side:C,align:I,alignItemWithTriggerActive:M,isPositioned:T,setControlledAlignItemWithTrigger:L,scrollDownArrowRef:P,scrollUpArrowRef:O}=ew(),D=null!=(0,eB.useToolbarRootContext)(!0),V=A(),j=(0,eW.useDirection)(),{nonce:N,disableStyleElements:_}=(0,eG.useCSPContext)(),k=(0,p.useStore)(a,B.id),U=(0,p.useStore)(a,B.open),G=(0,p.useStore)(a,B.mounted),W=(0,p.useStore)(a,B.popupProps),X=(0,p.useStore)(a,B.transitionStatus),$=(0,p.useStore)(a,B.triggerElement),K=(0,p.useStore)(a,B.positionerElement),J=(0,p.useStore)(a,B.listElement),Z=l.useRef(!1),Q=l.useRef(!1),et=l.useRef({}),er=(0,eN.useAnimationFrame)(),el=(0,d.useStableCallback)(e=>{var t;if(!K||!f.current||!Q.current)return;if(Z.current||!M)return void x();let r="0px"===K.style.top,l="0px"===K.style.bottom;if(!r&&!l)return void x();let n=eK(K),o=(t=K.getBoundingClientRect().height,t/n.y),i=(0,ee.ownerDocument)(K),s=getComputedStyle(K),u=parseFloat(s.marginTop),a=parseFloat(s.marginBottom),c=e$(getComputedStyle(f.current)),d=Math.min(i.documentElement.clientHeight-u-a,c),p=e.scrollTop,m=eY(e),h=0,g=null,S=!1,b=!1,v=e=>{K.style.height=`${e}px`},y=r?m-p:p,E=Math.min(o+y,d);if(h=E,y<=q.SCROLL_EDGE_TOLERANCE_PX){let t;return void((t=(0,ez.clamp)(y,0,d-o))>0&&v(o+t),e.scrollTop=r?m:0,d-(o+t)<=q.SCROLL_EDGE_TOLERANCE_PX&&(Z.current=!0),x())}if(d-E>q.SCROLL_EDGE_TOLERANCE_PX)r?b=!0:g=0;else if(S=!0,l&&pq.SCROLL_EDGE_TOLERANCE_PX&&(e.scrollTop=r)}(S||h>=d-q.SCROLL_EDGE_TOLERANCE_PX)&&(Z.current=!0),x()});l.useImperativeHandle(y,()=>el,[el]),(0,z.useOpenChangeComplete)({open:U,ref:f,onComplete(){U&&m?.(!0)}}),(0,c.useIsoLayoutEffect)(()=>{K&&f.current&&!Object.keys(et.current).length&&(et.current={top:K.style.top||"0",left:K.style.left||"0",right:K.style.right,height:K.style.height,bottom:K.style.bottom,minHeight:K.style.minHeight,maxHeight:K.style.maxHeight,marginTop:K.style.marginTop,marginBottom:K.style.marginBottom})},[f,K]),(0,c.useIsoLayoutEffect)(()=>{U||M||(Q.current=!1,Z.current=!1,eA(K,et.current))},[U,M,K,f]),(0,c.useIsoLayoutEffect)(()=>{let e=f.current;if(!U||!$||!K||!e||M&&!T||"ending"===a.state.transitionStatus)return;if(!M){Q.current=!0,er.request(x),e.style.removeProperty("--transform-origin");return}let t=function(e){let{style:t}=e,r={};for(let[e,l]of eZ)r[e]=t.getPropertyValue(e),t.setProperty(e,l,"important");return()=>{for(let[e]of eZ){let l=r[e];l?t.setProperty(e,l):t.removeProperty(e)}}}(e);e.style.removeProperty("--transform-origin");try{let t,r=S.current,l=g.current,n=getComputedStyle(K),o=getComputedStyle(e),i=(0,ee.ownerDocument)($),s=(0,ej.ownerWindow)(K),u=eK($),c=eJ($.getBoundingClientRect(),u),d=eJ(K.getBoundingClientRect(),u),f=c.height,p=J||e,m=p.scrollHeight,h=parseFloat(o.borderBottomWidth),b=parseFloat(n.marginTop)||10,v=parseFloat(n.marginBottom)||10,y=parseFloat(n.minHeight)||100,C=e$(o),R=i.documentElement.clientHeight-b-v,A=i.documentElement.clientWidth,I=R-c.bottom+f,M="rtl"===j?c.right-d.width:c.left,T=0;if(r&&l){let e=eJ(l.getBoundingClientRect(),u);t=eJ(r.getBoundingClientRect(),u),M=d.left+("rtl"===j?e.right-t.right:e.left-t.left);let n=e.top-c.top+e.height/2;T=t.top-d.top+t.height/2-n}let P=I+T+v+h,O=Math.min(R,P),D=R-b-v,V=P-O;K.style.left=`${(0,ez.clamp)(M,5,A-5-d.width)}px`,K.style.height=`${O}px`,K.style.maxHeight="auto",K.style.marginTop=`${b}px`,K.style.marginBottom=`${v}px`,e.style.height="100%";let N=eY(p),_=V>=N-q.SCROLL_EDGE_TOLERANCE_PX;_&&(O=Math.min(R,d.height)-(V-N));let k=c.top<20||c.bottom>R-20||Math.ceil(O)+q.SCROLL_EDGE_TOLERANCE_PX=D?"0":`${e}px`,K.style.height=`${O}px`,p.scrollTop=eY(p)}else K.style.bottom="0",p.scrollTop=V;if(t){let r=d.top,l=d.height,n=t.top+t.height/2,o=(0,ez.clamp)(l>0?(n-r)/l*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${o}%`)}(B===R||O>=C)&&(Z.current=!0),x(),w&&null===a.state.selectedIndex&&null===a.state.activeIndex&&null!=E.current[0]&&a.set("activeIndex",0),Q.current=!0}finally{t()}},[a,U,K,$,g,S,f,x,M,L,er,P,O,J,E,w,j,T]),l.useEffect(()=>{if(!M||!K||!U)return;let e=(0,ej.ownerWindow)(K);return(0,eD.addEventListener)(e,"resize",function(e){h(!1,(0,F.createChangeEventDetails)(H.REASONS.windowResize,e))})},[h,M,K,U]);let en={...J?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":v||void 0,id:`${k}-list`},onKeyDown(e){b.current=!0,D&&eF.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onMouseMove(){b.current=!1},onScroll(e){J||el(e.currentTarget)},...M&&{style:J?{height:"100%"}:eI}},eo=(0,Y.useRenderElement)("div",e,{ref:[r,f],state:{open:U,transitionStatus:X,side:C,align:I},stateAttributesMapping:eX,props:[W,en,(0,eH.getDisabledMountTransitionStyles)(X),{className:!J&&M?eU.styleDisableScrollbar.className:void 0},u]});return(0,t.jsxs)(l.Fragment,{children:[!_&&eU.styleDisableScrollbar.getElement(N),(0,t.jsx)(e_.FloatingFocusManager,{context:V,modal:!1,disabled:!G,returnFocus:s,restoreFocus:!0,children:eo})]})});function e$(e){let t=e.maxHeight||"";return t.endsWith("px")&&parseFloat(t)||1/0}function eY(e){return(0,q.getMaxScrollOffset)(e.scrollHeight,e.clientHeight)}function eK(e){return ek.platform.getScale(e)}function eJ(e,t){return(0,eO.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=l.forwardRef(function(e,t){let{className:r,render:l,style:n,...o}=e,{store:i,scrollHandlerRef:s}=R(),{alignItemWithTriggerActive:u}=ew(),a=(0,p.useStore)(i,B.hasScrollArrows),c=(0,p.useStore)(i,B.openMethod),f=(0,p.useStore)(i,B.multiple),m=(0,p.useStore)(i,B.id),h={id:`${m}-list`,role:"listbox","aria-multiselectable":f||void 0,onScroll(e){s.current?.(e.currentTarget)},...u&&{style:eI},className:a&&"touch"!==c?eU.styleDisableScrollbar.className:void 0},g=(0,d.useStableCallback)(e=>{i.set("listElement",e)});return(0,Y.useRenderElement)("div",e,{ref:[t,g],props:[h,o]})});var e0=e.i(51005);let e1=l.createContext(void 0);function e2(){let e=l.useContext(e1);if(!e)throw Error((0,E.default)(57));return e}let e5=l.memo(l.forwardRef(function(e,r){let{render:n,className:o,value:i=null,label:s,disabled:u=!1,nativeButton:a=!1,style:d,...m}=e,h=l.useRef(null),g=(0,e0.useCompositeListItem)({label:s,textRef:h,indexGuessBehavior:e0.IndexGuessBehavior.GuessFromOrder}),{store:S,getItemProps:b,setOpen:v,setValue:x,selectionRef:y,typingRef:E,valuesRef:w,multiple:C,selectedItemTextRef:A}=R(),I=(0,p.useStore)(S,B.isActive,g.index),M=(0,p.useStore)(S,B.isSelected,g.index,i),T=(0,p.useStore)(S,B.isSelectedByFocus,g.index),L=(0,p.useStore)(S,B.isItemEqualToValue),P=g.index,O=-1!==P,V=l.useRef(null),j=(0,f.useValueAsRef)(P);(0,c.useIsoLayoutEffect)(()=>{if(!O)return;let e=w.current;return e[P]=i,()=>{delete e[P]}},[O,P,i,w]),(0,c.useIsoLayoutEffect)(()=>{if(!O)return;let e=S.state.value,t=e;C&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),void 0!==t&&D(i,t,L)&&(S.set("selectedIndex",P),h.current&&(A.current=h.current))},[O,P,C,L,S,i,A]);let N=b({active:I,selected:M});N.id=void 0;let _=l.useRef(null),k=l.useRef("mouse"),U=l.useRef(!1),{getButtonProps:z,buttonRef:G}=(0,es.useButton)({disabled:u,focusableWhenDisabled:!0,native:a,composite:!0}),W=(0,Y.useRenderElement)("div",e,{ref:[G,r,g.ref,V],state:{disabled:u,selected:M,highlighted:I},props:[N,{role:"option","aria-selected":M,tabIndex:I?0:-1,onTouchStart(){y.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},onKeyDown(e){_.current=e.key,S.set("activeIndex",P)," "===e.key&&E.current&&e.preventDefault()},onClick(e){U.current=!1,"keydown"===e.type&&null===_.current||u||"keydown"===e.type&&" "===_.current&&E.current||"touch"!==k.current&&!I||(_.current=null,function(e){let t=S.state.value;if(C){let r=Array.isArray(t)?t:[];x(M?r.filter(e=>!D(i,e,L)):[...r,i],(0,F.createChangeEventDetails)(H.REASONS.itemPress,e))}else x(i,(0,F.createChangeEventDetails)(H.REASONS.itemPress,e)),v(!1,(0,F.createChangeEventDetails)(H.REASONS.itemPress,e))}(e.nativeEvent))},onPointerEnter(e){k.current=e.pointerType},onPointerDown(e){k.current=e.pointerType,U.current=!0},onMouseUp(){if(u)return;if(U.current){U.current=!1;return}let e=!y.current.allowSelectedMouseUp&&M,t=!y.current.allowUnselectedMouseUp&&!M;e||t||"touch"!==k.current&&!I||V.current?.click()}},m,z]}),X=l.useMemo(()=>({selected:M,indexRef:j,textRef:h,selectedByFocus:T,hasRegistered:O}),[M,j,h,T,O]);return(0,t.jsx)(e1.Provider,{value:X,children:W})})),e4=l.forwardRef(function(e,r){let l=e.keepMounted??!1,{selected:n}=e2();return l||n?(0,t.jsx)(e3,{...e,ref:r}):null}),e3=l.memo(l.forwardRef((e,t)=>{let{render:r,className:n,style:o,keepMounted:i,...s}=e,{selected:u}=e2(),a=l.useRef(null),{transitionStatus:c,setMounted:d}=(0,L.useTransitionStatus)(u),f=(0,Y.useRenderElement)("span",e,{ref:[t,a],state:{selected:u,transitionStatus:c},props:[{"aria-hidden":!0,children:"✔️"},s],stateAttributesMapping:eg.transitionStatusMapping});return(0,z.useOpenChangeComplete)({open:u,ref:a,onComplete(){u||d(!1)}}),f})),e6=l.memo(l.forwardRef(function(e,t){let{indexRef:r,textRef:n,selectedByFocus:o,hasRegistered:i}=e2(),{selectedItemTextRef:s}=R(),{className:u,render:a,style:c,...d}=e,f=l.useCallback(e=>{if(!e||!i)return;let t=null===s.current||!s.current.isConnected;(o||t&&0===r.current)&&(s.current=e)},[s,r,o,i]);return(0,Y.useRenderElement)("div",e,{ref:[f,t,n],props:d})})),e8={...el.popupStateMapping,...eg.transitionStatusMapping},e9=l.forwardRef(function(e,t){let{className:r,render:l,style:n,...o}=e,{store:i}=R(),{side:s,align:u,arrowRef:a,arrowStyles:c,arrowUncentered:d,alignItemWithTriggerActive:f}=ew(),m=(0,p.useStore)(i,B.open,!0),h=(0,Y.useRenderElement)("div",e,{state:{open:m,side:s,align:u,uncentered:d},ref:[a,t],props:[{style:c,"aria-hidden":!0},o],stateAttributesMapping:e8});return f?null:h}),e7=l.forwardRef(function(e,t){let{render:r,className:l,style:n,direction:o,keepMounted:i=!1,...s}=e,u="up"===o,{store:a,popupRef:d,listRef:f,handleScrollArrowVisibility:m,scrollArrowsMountedCountRef:h}=R(),{side:g,scrollDownArrowRef:S,scrollUpArrowRef:b}=ew(),v=u?B.scrollUpArrowVisible:B.scrollDownArrowVisible,x=(0,p.useStore)(a,v),y=(0,p.useStore)(a,B.openMethod),E=x&&"touch"!==y,w=(0,et.useTimeout)(),C=u?b:S,{transitionStatus:A,setMounted:I}=(0,L.useTransitionStatus)(E);(0,c.useIsoLayoutEffect)(()=>(h.current+=1,a.state.hasScrollArrows||a.set("hasScrollArrows",!0),()=>{h.current=Math.max(0,h.current-1),0===h.current&&a.state.hasScrollArrows&&a.set("hasScrollArrows",!1)}),[a,h]),(0,z.useOpenChangeComplete)({open:E,ref:C,onComplete(){E||I(!1)}});let M=(0,Y.useRenderElement)("div",e,{ref:[t,C],state:{direction:o,visible:E,side:g,transitionStatus:A},props:[{"aria-hidden":!0,children:u?"▲":"▼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||w.isStarted()||(a.set("activeIndex",null),w.start(40,function e(){let t=a.state.listElement??d.current;if(!t)return;a.set("activeIndex",null),m();let r=(0,q.getMaxScrollOffset)(t.scrollHeight,t.clientHeight),l=(0,q.normalizeScrollOffset)(t.scrollTop,r),n=l===(u?0:r),o=f.current;if(l!==t.scrollTop&&(t.scrollTop=l),0===o.length&&a.set(u?"scrollUpArrowVisible":"scrollDownArrowVisible",!n),n)return void w.clear();if(o.length>0){let e=C.current?.offsetHeight||0;t.scrollTop=function(e,t,r,l,n,o){if(t){let t=0,l=r+n-q.SCROLL_EDGE_TOLERANCE_PX;for(let r=0;r=l){t=r;break}}let i=Math.max(0,t-1),s=e[i];return is){i=Math.max(0,t-1);break}}let u=Math.min(e.length-1,i+1),a=e[u];return u>i&&a?(0,q.normalizeScrollOffset)(a.offsetTop+a.offsetHeight-l+n,o):o}(o,u,l,t.clientHeight,e,r)}w.start(40,e)}))},onMouseLeave(){w.clear()}},s]});return E||i?M:null}),te=l.forwardRef(function(e,r){return(0,t.jsx)(e7,{...e,ref:r,direction:"down"})}),tt=l.forwardRef(function(e,r){return(0,t.jsx)(e7,{...e,ref:r,direction:"up"})}),tr=l.createContext(void 0),tl=l.forwardRef(function(e,r){let{className:n,render:o,style:i,...s}=e,[u,a]=l.useState(),c=l.useMemo(()=>({labelId:u,setLabelId:a}),[u,a]),d=(0,Y.useRenderElement)("div",e,{ref:r,props:[{role:"group","aria-labelledby":u},s]});return(0,t.jsx)(tr.Provider,{value:c,children:d})});var tn=e.i(593478);let to=l.forwardRef(function(e,t){let{className:r,render:n,id:o,style:i,...s}=e,{setLabelId:u}=function(){let e=l.useContext(tr);if(void 0===e)throw Error((0,E.default)(56));return e}(),a=(0,tn.useBaseUiId)(o);return(0,c.useIsoLayoutEffect)(()=>{u(a)},[a,u]),(0,Y.useRenderElement)("div",e,{ref:t,props:[{id:a},s]})});var ti=e.i(540427);e.s(["Arrow",0,e9,"Backdrop",0,eb,"Group",0,tl,"GroupLabel",0,to,"Icon",0,ef,"Item",0,e5,"ItemIndicator",0,e4,"ItemText",0,e6,"Label",0,Q,"List",0,eQ,"Popup",0,eq,"Portal",0,eh,"Positioner",0,eP,"Root",0,function(e){let{id:r,value:E,defaultValue:R=null,onValueChange:A,open:P,defaultOpen:D=!1,onOpenChange:j,name:N,form:U,autoComplete:Y,disabled:K=!1,readOnly:J=!1,required:Z=!1,modal:Q=!0,actionsRef:ee,inputRef:et,onOpenChangeComplete:er,items:el,multiple:en=!1,itemToStringLabel:eo,itemToStringValue:ei,isItemEqualToValue:es=O,highlightItemOnHover:eu=!0,children:ea}=e,{clearErrors:ec}=(0,G.useFormContext)(),{setDirty:ed,setTouched:ef,setFocused:ep,shouldValidateOnChange:em,validityData:eh,setFilled:eg,name:eS,disabled:eb,validation:ev,validationMode:ex}=(0,I.useFieldRootContext)(),ey=(0,T.useLabelableId)({id:r}),eE=eb||K,ew=eS??N,[eC,eR]=(0,a.useControlled)({controlled:E,default:en?R??h.EMPTY_ARRAY:R,name:"Select",state:"value"}),[eA,eI]=(0,a.useControlled)({controlled:P,default:D,name:"Select",state:"open"}),eM=l.useRef([]),eT=l.useRef([]),eL=l.useRef(null),eP=l.useRef(null),eO=l.useRef(0),eD=l.useRef(null),eV=l.useRef([]),ej=l.useRef(!1),eN=l.useRef(!1),e_=l.useRef(null),ek=l.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),eU=l.useRef(!1),{mounted:eB,setMounted:eF,transitionStatus:eH}=(0,L.useTransitionStatus)(eA),{openMethod:ez,triggerProps:eG}=(0,X.useOpenInteractionType)(eA),eW=(0,i.useRefWithInit)(()=>new m.Store({id:ey,labelId:void 0,modal:Q,multiple:en,itemToStringLabel:eo,itemToStringValue:ei,isItemEqualToValue:es,value:eC,open:eA,mounted:eB,transitionStatus:eH,items:el,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,eX=(0,p.useStore)(eW,B.activeIndex),eq=(0,p.useStore)(eW,B.selectedIndex),e$=(0,p.useStore)(eW,B.triggerElement),eY=(0,p.useStore)(eW,B.positionerElement),eK=(0,u.usePreviousValue)(ez),eJ=ez??eK,eZ=l.useMemo(()=>en&&Array.isArray(eC)&&0===eC.length?"":k(eC,ei),[en,eC,ei]),eQ=l.useMemo(()=>en&&Array.isArray(eC)?eC.map(e=>k(e,ei)):k(eC,ei),[en,eC,ei]),e0=(0,f.useValueAsRef)(eW.state.triggerElement),e1=(0,d.useStableCallback)(()=>eQ);(0,M.useRegisterFieldControl)(e0,{id:ey,value:eC,getValue:e1});let e2=l.useRef(eC);(0,c.useIsoLayoutEffect)(()=>{eC!==e2.current&&eW.set("forceMount",!0)},[eW,eC]),(0,c.useIsoLayoutEffect)(()=>{eg(en?Array.isArray(eC)&&eC.length>0:null!=eC)},[en,eC,eg]),(0,c.useIsoLayoutEffect)(function(){if(eA)return;let e=eV.current;if(en){let t=Array.isArray(eC)?eC:[];if(0===t.length)return void eW.set("selectedIndex",null);let r=V(e,t[t.length-1],es);return void eW.set("selectedIndex",-1===r?null:r)}let t=V(e,eC,es);eW.set("selectedIndex",-1===t?null:t)},[en,eA,eC,eV,es,eW]),(0,W.useValueChanged)(eC,()=>{ec(ew),ed(eC!==eh.initialValue),em()?ev.commit(eC):ev.commit(eC,!0)});let e5=(0,d.useStableCallback)((e,t)=>{if(j?.(e,t),!t.isCanceled&&(eI(e),e||t.reason!==H.REASONS.focusOut&&t.reason!==H.REASONS.outsidePress||(ef(!0),ep(!1),"onBlur"===ex&&ev.commit(eC)),!e&&null!==eW.state.activeIndex)){let e=eM.current[eW.state.activeIndex];queueMicrotask(()=>{e?.setAttribute("tabindex","-1")})}}),e4=(0,d.useStableCallback)(()=>{eF(!1),eW.update({activeIndex:null,openMethod:null}),er?.(!1)});(0,z.useOpenChangeComplete)({enabled:!ee,open:eA,ref:eL,onComplete(){eA||e4()}}),l.useImperativeHandle(ee,()=>({unmount:e4}),[e4]);let e3=(0,d.useStableCallback)((e,t)=>{A?.(e,t),t.isCanceled||eR(e)}),e6=(0,d.useStableCallback)(()=>{let e=eW.state.listElement||eL.current;if(!e)return;let t=(0,q.getMaxScrollOffset)(e.scrollHeight,e.clientHeight),r=(0,q.normalizeScrollOffset)(e.scrollTop,t),l=r>0,n=r(0,$.mergeProps)(tr(),eG,ey?{id:ey}:h.EMPTY_OBJECT),[tr,eG,ey]);(0,s.useOnFirstRender)(()=>{eW.update({popupProps:tl(),triggerProps:to})}),(0,c.useIsoLayoutEffect)(()=>{eW.update({id:ey,modal:Q,multiple:en,value:eC,open:eA,mounted:eB,transitionStatus:eH,popupProps:tl(),triggerProps:to,items:el,itemToStringLabel:eo,itemToStringValue:ei,isItemEqualToValue:es,openMethod:eJ})},[eW,ey,Q,en,eC,eA,eB,eH,tl,to,el,eo,ei,es,eJ]);let ti=l.useMemo(()=>({store:eW,name:ew,required:Z,disabled:eE,readOnly:J,multiple:en,highlightItemOnHover:eu,setValue:e3,setOpen:e5,listRef:eM,popupRef:eL,scrollHandlerRef:eP,handleScrollArrowVisibility:e6,scrollArrowsMountedCountRef:eO,getItemProps:tn,events:e8.context.events,valueRef:eD,valuesRef:eV,labelsRef:eT,typingRef:ej,selectionRef:ek,selectedItemTextRef:e_,validation:ev,onOpenChangeComplete:er,keyboardActiveRef:eN,alignItemWithTriggerActiveRef:eU,initialValueRef:e2}),[eW,ew,Z,eE,J,en,eu,e3,e5,tn,e8.context.events,ev,er,e6]),ts=(0,o.useMergedRefs)(et,ev.inputRef),tu=en&&Array.isArray(eC)&&eC.length>0,ta=en?void 0:ew,tc=l.useMemo(()=>en&&Array.isArray(eC)&&ew?eC.map(e=>{let r=k(e,ei);return(0,t.jsx)("input",{type:"hidden",form:U,name:ew,value:r},r)}):null,[en,eC,U,ew,ei]);return(0,t.jsx)(w.Provider,{value:ti,children:(0,t.jsxs)(C.Provider,{value:e8,children:[ea,(0,t.jsx)("input",{...ev.getInputValidationProps({onFocus(){eW.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented)return;let t=e.currentTarget.value,r=(0,F.createChangeEventDetails)(H.REASONS.none,e.nativeEvent);eW.set("forceMount",!0),queueMicrotask(function(){if(en)return;let e=eV.current.find(e=>k(e,ei).toLowerCase()===t.toLowerCase()||_(e,eo).toLowerCase()===t.toLowerCase());null!=e&&(ed(e!==eh.initialValue),e3(e,r),em()&&ev.commit(e))})}}),id:ey&&null==ta?`${ey}-hidden-input`:void 0,form:U,name:ta,autoComplete:Y,value:eZ,disabled:eE,required:Z&&!tu,readOnly:J,ref:ts,style:ew?n.visuallyHiddenInput:n.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 ts=e.i(901351),ts=ts,tu=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 th=(0,l.createContext)({variant:"square",size:"default"});function tg(e){if(!(0,l.isValidElement)(e))return[];let t=tS(e.props.children)??[];if(e.type!==ty)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 tS(e){let t=l.Children.toArray(e).flatMap(tg);if(0!==t.length)return t}let tb=ts.Group;function tv(e){let l,n,o,i,s,u,a=(0,r.c)(11);return a[0]!==e?({className:l,ref:o,...n}=e,a[0]=e,a[1]=l,a[2]=n,a[3]=o):(l=a[1],n=a[2],o=a[3]),a[4]!==l?(i=(0,tu.cn)("flex cursor-default items-center justify-center py-1",l),a[4]=l,a[5]=i):i=a[5],a[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(tf.ChevronUp,{className:"h-4 w-4"}),a[6]=s):s=a[6],a[7]!==n||a[8]!==o||a[9]!==i?(u=(0,t.jsx)(ts.ScrollUpArrow,{ref:o,className:i,...n,children:s}),a[7]=n,a[8]=o,a[9]=i,a[10]=u):u=a[10],u}function tx(e){let l,n,o,i,s,u,a=(0,r.c)(11);return a[0]!==e?({className:l,ref:o,...n}=e,a[0]=e,a[1]=l,a[2]=n,a[3]=o):(l=a[1],n=a[2],o=a[3]),a[4]!==l?(i=(0,tu.cn)("flex cursor-default items-center justify-center py-1",l),a[4]=l,a[5]=i):i=a[5],a[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(td.ChevronDown,{className:"h-4 w-4"}),a[6]=s):s=a[6],a[7]!==n||a[8]!==o||a[9]!==i?(u=(0,t.jsx)(ts.ScrollDownArrow,{ref:o,className:i,...n,children:s}),a[7]=n,a[8]=o,a[9]=i,a[10]=u):u=a[10],u}function ty(e){let n,o,i,s,u,a,c,d,f,p,m=(0,r.c)(19);m[0]!==e?({className:o,children:n,label:i,textValue:a,ref:u,...s}=e,m[0]=e,m[1]=n,m[2]=o,m[3]=i,m[4]=s,m[5]=u,m[6]=a):(n=m[1],o=m[2],i=m[3],s=m[4],u=m[5],a=m[6]);let h=(0,l.use)(th),g=i??a;if(m[7]!==o||m[8]!==h){let e;c=(0,tu.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"===h.size?"truncate text-muted-foreground md:text-overline":"truncate text-muted-foreground text-body",(0,tu.cn)(e,"rounded-sm")),o),m[7]=o,m[8]=h,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)(ts.ItemIndicator,{children:(0,t.jsx)(tc.Check,{className:"h-4 w-4"})})}),m[10]=d):d=m[10],m[11]!==n?(f=(0,t.jsx)(ts.ItemText,{children:n}),m[11]=n,m[12]=f):f=m[12],m[13]!==s||m[14]!==u||m[15]!==g||m[16]!==c||m[17]!==f?(p=(0,t.jsxs)(ts.Item,{ref:u,label:g,className:c,...s,children:[d,f]}),m[13]=s,m[14]=u,m[15]=g,m[16]=c,m[17]=f,m[18]=p):p=m[18],p}e.s(["Select",0,function(e){let l,n,o,i,s,u,a,c,d,f,p,m,h,g=(0,r.c)(27);g[0]!==e?({variant:u,size:a,children:l,onValueChange:i,onOpenChange:o,items:n,...s}=e,g[0]=e,g[1]=l,g[2]=n,g[3]=o,g[4]=i,g[5]=s,g[6]=u,g[7]=a):(l=g[1],n=g[2],o=g[3],i=g[4],s=g[5],u=g[6],a=g[7]);let S=void 0===u?"square":u,b=void 0===a?"default":a;g[8]!==l||g[9]!==n?(c=n??tS(l),g[8]=l,g[9]=n,g[10]=c):c=g[10];let v=c;g[11]!==b||g[12]!==S?(d={variant:S,size:b},g[11]=b,g[12]=S,g[13]=d):d=g[13];let x=d;return g[14]!==i?(f=i?e=>{null!==e&&i(e)}:void 0,g[14]=i,g[15]=f):f=g[15],g[16]!==o?(p=o?e=>o(e):void 0,g[16]=o,g[17]=p):p=g[17],g[18]!==l||g[19]!==s||g[20]!==v||g[21]!==f||g[22]!==p?(m=(0,t.jsx)(ts.Root,{items:v,onValueChange:f,onOpenChange:p,...s,children:l}),g[18]=l,g[19]=s,g[20]=v,g[21]=f,g[22]=p,g[23]=m):m=g[23],g[24]!==x||g[25]!==m?(h=(0,t.jsx)(th,{value:x,children:m}),g[24]=x,g[25]=m,g[26]=h):h=g[26],h},"SelectContent",0,function(e){let n,o,i,s,u,a,c,d,f,p,m,h,g,S,b,v,x=(0,r.c)(33);x[0]!==e?({className:i,children:o,position:d,align:n,side:a,sideOffset:c,showScrollButtons:f,ref:u,...s}=e,x[0]=e,x[1]=n,x[2]=o,x[3]=i,x[4]=s,x[5]=u,x[6]=a,x[7]=c,x[8]=d,x[9]=f):(n=x[1],o=x[2],i=x[3],s=x[4],u=x[5],a=x[6],c=x[7],d=x[8],f=x[9]);let y=void 0===f||f,E=(0,l.use)(th),w=(0,tp.useFloatingLayerZClass)(),C=a??"bottom",R=c??5;return x[10]!==i||x[11]!==E?(p=(0,tu.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"===E.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),x[10]=i,x[11]=E,x[12]=p):p=x[12],x[13]!==y?(m=y&&(0,t.jsx)(tv,{}),x[13]=y,x[14]=m):m=x[14],x[15]===Symbol.for("react.memo_cache_sentinel")?(h=(0,tu.cn)("p-1","w-full min-w-[var(--anchor-width)]"),x[15]=h):h=x[15],x[16]!==o?(g=(0,t.jsx)("div",{className:h,children:o}),x[16]=o,x[17]=g):g=x[17],x[18]!==y?(S=y&&(0,t.jsx)(tx,{}),x[18]=y,x[19]=S):S=x[19],x[20]!==s||x[21]!==u||x[22]!==p||x[23]!==m||x[24]!==g||x[25]!==S?(b=(0,t.jsxs)(ts.Popup,{ref:u,className:p,...s,children:[m,g,S]}),x[20]=s,x[21]=u,x[22]=p,x[23]=m,x[24]=g,x[25]=S,x[26]=b):b=x[26],x[27]!==n||x[28]!==b||x[29]!==C||x[30]!==R||x[31]!==w?(v=(0,t.jsx)(ts.Portal,{children:(0,t.jsx)(ts.Positioner,{align:n,side:C,sideOffset:R,alignItemWithTrigger:!1,className:w,children:b})}),x[27]=n,x[28]=b,x[29]=C,x[30]=R,x[31]=w,x[32]=v):v=x[32],v},"SelectGroup",0,tb,"SelectItem",0,ty,"SelectLabel",0,function(e){let l,n,o,i,s,u=(0,r.c)(10);return u[0]!==e?({className:l,ref:o,...n}=e,u[0]=e,u[1]=l,u[2]=n,u[3]=o):(l=u[1],n=u[2],o=u[3]),u[4]!==l?(i=(0,tu.cn)("py-1.5 pl-8 pr-2 text-body font-medium",l),u[4]=l,u[5]=i):i=u[5],u[6]!==n||u[7]!==o||u[8]!==i?(s=(0,t.jsx)(ts.GroupLabel,{ref:o,className:i,...n}),u[6]=n,u[7]=o,u[8]=i,u[9]=s):s=u[9],s},"SelectTrigger",0,function(e){let n,o,i,s,u,a,c,d,f=(0,r.c)(18);f[0]!==e?({className:o,children:n,hideChevron:u,ref:s,...i}=e,f[0]=e,f[1]=n,f[2]=o,f[3]=i,f[4]=s,f[5]=u):(n=f[1],o=f[2],i=f[3],s=f[4],u=f[5]);let p=void 0!==u&&u,m=(0,l.use)(th),h=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]!==h){let e,t;a=(0,tu.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",h,(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,tu.cn)(e,t,"hover:bg-muted/30")),o),f[6]=o,f[7]=m,f[8]=h,f[9]=a}else a=f[9];return f[10]!==p?(c=!p&&(0,t.jsx)(ts.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]!==n||f[13]!==i||f[14]!==s||f[15]!==a||f[16]!==c?(d=(0,t.jsxs)(ts.Trigger,{ref:s,className:a,...i,children:[n,c]}),f[12]=n,f[13]=i,f[14]=s,f[15]=a,f[16]=c,f[17]=d):d=f[17],d},"SelectValue",0,function(e){let l,n,o,i,s,u=(0,r.c)(11);return u[0]!==e?({children:l,placeholder:n,...o}=e,u[0]=e,u[1]=l,u[2]=n,u[3]=o):(l=u[1],n=u[2],o=u[3]),u[4]!==l||u[5]!==n?(i="function"==typeof l?e=>(0,ta.isDefinedAndNotNull)(e)?l(e):n??null:l,u[4]=l,u[5]=n,u[6]=i):i=u[6],u[7]!==n||u[8]!==o||u[9]!==i?(s=(0,t.jsx)(ts.Value,{placeholder:n,...o,children:i}),u[7]=n,u[8]=o,u[9]=i,u[10]=s):s=u[10],s}],738286)}]); //# sourceMappingURL=1m4auyy6d3nze.js.map //# chunkId=01a09faf-515d-7411-9573-c881efaae838