1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="e759e4cf-4898-09ec-df88-f6e091d1348e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,779236,422833,623670,e=>{"use strict";var t=e.i(705070);let n=t.createContext(void 0);e.s(["ComboboxChipsContext",0,n,"useComboboxChipsContext",0,function(){return t.useContext(n)}],779236);var o=e.i(758737);let i=t.createContext(void 0);e.s(["ComboboxPositionerContext",0,i,"useComboboxPositionerContext",0,function(e){let n=t.useContext(i);if(void 0===n&&!e)throw Error((0,o.default)(21));return n}],422833);var r=e.i(512042),l=e.i(239786),u=e.i(960367),a=e.i(638141),s=e.i(660774),c=e.i(706837),d=e.i(274591);let p=t.forwardRef(function(e,t){let n=(0,c.useComboboxRootContext)(),{buttonRef:o,getButtonProps:i}=(0,u.useButton)({native:!1}),p=(0,r.useMergedRefs)(t,o),f=i({onClick:function(e){n.context.setOpen(!1,(0,a.createChangeEventDetails)(s.REASONS.closePress,e.nativeEvent,e.currentTarget))}});return(0,d.jsx)("span",{ref:p,...f,"aria-label":"Dismiss",tabIndex:void 0,style:l.visuallyHiddenInput})});e.s(["ComboboxInternalDismissButton",0,p],623670)},247213,e=>{"use strict";var t=e.i(705070),n=e.i(706837),o=e.i(314580),i=e.i(960367),r=e.i(100748),l=e.i(880227),u=e.i(695121),a=e.i(945832),s=e.i(638141),c=e.i(660774),d=e.i(155535);let p={...u.transitionStatusMapping,...d.triggerOpenStateMapping},f=t.forwardRef(function(e,t){let{render:u,className:d,disabled:f=!1,nativeButton:m=!0,keepMounted:x=!1,style:v,...b}=e,{disabled:C}=(0,r.useFieldRootContext)(),g=(0,n.useComboboxRootContext)(),S=g.useState("selectionMode"),h=g.useState("disabled"),I=g.useState("readOnly"),E=g.useState("open"),R=g.useState("selectedValue"),y=g.useState("hasSelectionChips"),A=(0,n.useComboboxInputValueContext)(),O=!1;O="none"===S?""!==A:"single"===S?null!=R:y;let P=C||h||f,{buttonRef:M,getButtonProps:D}=(0,i.useButton)({native:m,disabled:P}),{mounted:w,transitionStatus:k,setMounted:V}=(0,l.useTransitionStatus)(O),T={disabled:P,visible:O,open:E,transitionStatus:k};(0,a.useOpenChangeComplete)({open:O,ref:g.context.clearRef,onComplete(){O||V(!1)}});let N=(0,o.useRenderElement)("button",e,{state:T,ref:[t,M,g.context.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(e){e.preventDefault()},onClick(e){if(P||I)return;let t=g.context.keyboardActiveRef.current?c.REASONS.keyboard:c.REASONS.pointer;g.context.setInputValue("",(0,s.createChangeEventDetails)(c.REASONS.clearPress,e.nativeEvent)),"none"!==S?(g.context.setSelectedValue(Array.isArray(R)?[]:null,(0,s.createChangeEventDetails)(c.REASONS.clearPress,e.nativeEvent)),g.context.setIndices({activeIndex:null,selectedIndex:null,type:t})):g.context.setIndices({activeIndex:null,type:t}),g.context.inputRef.current?.focus()}},b,D],stateAttributesMapping:p});return x||w?N:null});e.s(["ComboboxClear",0,f])},897088,130126,122594,203524,188081,216265,e=>{"use strict";var t=e.i(705070),n=e.i(314580),o=e.i(758737);let i=t.createContext(void 0);var r=e.i(386187),l=e.i(706837),u=e.i(274591);let a=t.forwardRef(function(e,o){let{render:a,className:s,style:c,items:d,...p}=e,f=(0,l.useComboboxRootContext)().useState("grid"),[m,x]=t.useState(),v=t.useMemo(()=>({labelId:m,setLabelId:x,items:d}),[m,x,d]),b=(0,n.useRenderElement)("div",e,{ref:o,props:[{role:f?"rowgroup":"group","aria-labelledby":m},p]}),C=(0,u.jsx)(i.Provider,{value:v,children:b});return d?(0,u.jsx)(r.GroupCollectionProvider,{items:d,children:C}):C});e.s(["ComboboxGroup",0,a],897088);var s=e.i(473444),c=e.i(647240);let d=t.forwardRef(function(e,r){let{render:l,className:u,style:a,id:d,...p}=e,{setLabelId:f}=function(){let e=t.useContext(i);if(void 0===e)throw Error((0,o.default)(18));return e}(),m=(0,c.useBaseUiId)(d);return(0,s.useIsoLayoutEffect)(()=>(f(m),()=>{f(e=>e===m?void 0:e)}),[m,f]),(0,n.useRenderElement)("div",e,{ref:r,props:[{id:m,"aria-hidden":!0},p]})});e.s(["ComboboxGroupLabel",0,d],130126);var p=e.i(842638),f=e.i(977842);let m=t.createContext(void 0);e.s(["ComboboxItemContext",0,m,"useComboboxItemContext",0,function(){let e=t.useContext(m);if(!e)throw Error((0,o.default)(19));return e}],122594);var x=e.i(960367);let v=t.createContext(!1);var b=e.i(991732);
2function C(e){let{componentProps:o,forwardedRef:i,virtualized:r,indexFromFilter:a}=e,{render:c,className:d,style:C,value:g=null,index:S,disabled:h=!1,nativeButton:I=!1,...E}=o,R=t.useRef(null),y=(0,f.useCompositeListItem)({guess:!0,index:S,textRef:R}),A=(0,l.useComboboxRootContext)(),O=t.useContext(v),P=(0,l.useComboboxHasItemsContext)(),M=A.useState("selectionMode"),D=A.useState("disabled"),w=A.useState("readOnly"),k=A.useState("isItemEqualToValue"),V=D||h,T="none"!==M,N=S??a??y.index,L=-1!==N,F=A.useState("id"),j=A.useState("isActive",N),H=A.useState("isSelected",g),q=A.useState("itemProps"),B=t.useRef(null),_=null!=F&&L?`${F}-${N}`:void 0,G=H&&T;(0,s.useIsoLayoutEffect)(()=>{if(!(L&&(r||null!=S)))return;let e=A.context.listRef.current;return e[N]=B.current,()=>{delete e[N]}},[L,r,N,S,A]),(0,s.useIsoLayoutEffect)(()=>{if(!L||P)return;let e=A.context.valuesRef.current;return e[N]=g,()=>{delete e[N]}},[L,P,N,g,A]),(0,s.useIsoLayoutEffect)(()=>{if(!L||P)return;let e=A.state.selectedValue,t=A.state.selectedIndex;"multiple"===A.state.selectionMode&&Array.isArray(e)?t=(0,b.resolveSelectedIndex)(N,g,A.context.valuesRef.current,e,k,t):(0,b.compareItemEquality)(g,e,k)&&(t=N),A.set("selectedIndex",t)},[L,P,A,N,g,k]);let{getButtonProps:K,buttonRef:U}=(0,x.useButton)({disabled:V,focusableWhenDisabled:!0,native:I,composite:!0});function W(e){function t(){A.context.handleSelection(e,g)}A.state.submitOnItemClick?(p.flushSync(t),A.context.requestSubmit()):t()}let z=(0,n.useRenderElement)("div",o,{ref:[U,i,y.ref,B],state:{disabled:V,selected:G,highlighted:j},props:[q,{id:_,role:O?"gridcell":"option","aria-selected":T?G:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(A.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){V||w||W(e.nativeEvent)},onMouseUp(e){let t=A.context.pointerDownItemRef.current===e.currentTarget;A.context.pointerDownItemRef.current=null,V||w||0!==e.button||t||!j||W(e.nativeEvent)}},E,K]}),Y=t.useMemo(()=>({selected:G,textRef:R}),[G,R]);return(0,u.jsx)(m.Provider,{value:Y,children:z})}function g(e){let{componentProps:t,forwardedRef:n}=e,o=(0,l.useComboboxRootContext)().useState("isItemEqualToValue"),{flatFilteredValues:i}=(0,l.useComboboxDerivedItemsContext)(),r=t.value??null,a=(0,b.findItemIndex)(i,r,o);return(0,u.jsx)(C,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:a})}let S=t.memo(t.forwardRef(function(e,t){let n=(0,l.useComboboxRootContext)().useState("virtualized");return n&&null==e.index?(0,u.jsx)(g,{componentProps:e,forwardedRef:t}):(0,u.jsx)(C,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})}));e.s(["ComboboxItem",0,S],203524);let h=t.forwardRef(function(e,t){let{render:o,className:i,style:r,...l}=e,a=(0,n.useRenderElement)("div",e,{ref:t,props:[{role:"row"},l]});return(0,u.jsx)(v.Provider,{value:!0,children:a})});e.s(["ComboboxRow",0,h],188081);var I=e.i(935110);let E=t.forwardRef(function(e,t){let{render:o,className:i,style:r,children:u,...a}=e,{filteredItems:s}=(0,l.useComboboxDerivedItemsContext)(),c=(0,l.useComboboxRootContext)(),d=(0,I.useInitialLiveRegionTextMutation)(),p=0===s.length?u:null;return(0,n.useRenderElement)("div",e,{ref:[t,c.context.emptyRef,d],props:[{children:p,role:"status","aria-live":"polite","aria-atomic":!0},a]})});e.s(["ComboboxEmpty",0,E],216265)},937898,e=>{"use strict";var t=e.i(705070),n=e.i(314580);let o=t.forwardRef(function(e,t){let{render:o,className:i,style:r,...l}=e;return(0,n.useRenderElement)("span",e,{ref:t,props:[{"aria-hidden":!0,children:"â¼"},l]})});e.s(["ComboboxIcon",0,o])},278294,896042,809945,e=>{"use strict";var t=e.i(705070),n=e.i(747054),o=e.i(400449),i=e.i(647240),r=e.i(314580),l=e.i(706837),u=e.i(319560),a=e.i(100748),s=e.i(872905),c=e.i(326681),d=e.i(779236),p=e.i(45359),f=e.i(422833),m=e.i(638141),x=e.i(660774),v=e.i(858283),b=e.i(623670),C=e.i(321063),g=e.i(274591);let S=t.forwardRef(function(e,S){let{render:h,className:I,disabled:E=!1,id:R,style:y,...A}=e,{state:O,disabled:P,setTouched:M,setFocused:D,validationMode:w,validation:k}=(0,a.useFieldRootContext)(),{labelId:V}=(0,c.useLabelableContext)(),T=(0,d.useComboboxChipsContext)(),N=!!(0,f.useComboboxPositionerContext)(!0),L=(0,l.useComboboxRootContext)(),F=(0,l.useComboboxInputValueContext)(),j=(0,v.useDirection)(),H=L.useState("required"),q=L.useState("disabled"),B=L.useState("readOnly"),_=L.useState("name"),G=L.useState("form"),K=L.useState("selectionMode"),U=L.useState("autoHighlight"),W=L.useState("inputProps"),z=L.useState("triggerProps"),Y=L.useState("open"),$=L.useState("mounted"),J=L.useState("selectedValue"),Q=L.useState("id"),
2X=L.useState("inline"),Z=L.useState("modal"),ee=!!U,et=(0,C.usePopupSide)(L),en=P||q||E,eo=(0,C.useListEmpty)(),ei=N||X,er=(0,i.useBaseUiId)(R??(ei?void 0:Q)),el=N?s.DEFAULT_FIELD_STATE_ATTRIBUTES:O,[eu,ea]=t.useState(null),es=t.useRef(!1),ec=t.useRef(null),ed=t.useRef(!1),ep="none"===K&&!N,ef=(0,n.useStableCallback)(e=>{let t=N||L.state.inline;t&&!L.state.hasInputValue&&L.context.setInputValue("",(0,m.createChangeEventDetails)(x.REASONS.none)),L.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ep})}),em=N?A:k.getValidationProps(en,A);function ex(){L.context.setIndices({activeIndex:null,selectedIndex:null,type:L.context.keyboardActiveRef.current?x.REASONS.keyboard:x.REASONS.pointer})}function ev(){L.context.keyboardActiveRef.current=!1}let eb={...el,open:Y,disabled:en,readOnly:B,popupSide:et,listEmpty:eo},eC=(0,r.useRenderElement)("input",e,{state:eb,ref:[S,L.context.inputRef,ef],props:[W,z,{value:eu??F,"aria-readonly":B||void 0,"aria-required":H||void 0,"aria-labelledby":V,disabled:en,readOnly:B,required:"none"===K?H:void 0,form:G,...ep&&_&&{name:_},id:er,onFocus(){if(D(!0),!X||!ed.current)return;ed.current=!1;let e=ec.current;null!=e&&Object.hasOwn(L.context.valuesRef.current,e)&&L.context.setIndices({activeIndex:e})},onBlur(){M(!0),D(!1);let e=L.state.activeIndex;if(X&&null!==e&&"always"!==U&&(ec.current=e,ed.current=!0,L.context.setIndices({activeIndex:null})),"onBlur"===w){let e="none"===K?F:J;k.commit(e)}},onCompositionStart(e){o.platform.os.android||(es.current=!0,ea(e.currentTarget.value))},onCompositionEnd(e){es.current=!1;let t=e.currentTarget.value;ea(null),L.context.setInputValue(t,(0,m.createChangeEventDetails)(x.REASONS.inputChange,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,o=es.current||!(!n||"insertReplacementText"===n);function i(e){!B&&!en&&e&&o&&(L.context.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.inputChange,t)),ee||ex())}if(es.current){let n=e.currentTarget.value;ea(n),""!==n||L.state.openOnInputClick||L.state.inputInsidePopup||L.context.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.inputClear,t));let o=n.trim(),r=ee&&""!==o;i(o),Y&&null!==L.state.activeIndex&&!r&&ex();return}let r=(0,m.createChangeEventDetails)(x.REASONS.inputChange,t);if(L.context.setInputValue(e.currentTarget.value,r),r.isCanceled)return;let l=""===e.currentTarget.value,u=(0,m.createChangeEventDetails)(x.REASONS.inputClear,t);l&&!L.state.inputInsidePopup&&("single"===K&&L.context.setSelectedValue(null,u),L.state.openOnInputClick||L.context.setOpen(!1,u)),i(e.currentTarget.value.trim()),Y&&null!==L.state.activeIndex&&!ee&&ex()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(L.context.keyboardActiveRef.current=!0,en||B){B&&"Enter"===e.key&&Y&&null!==L.state.activeIndex&&(0,p.stopEvent)(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,i="rtl"===j;if("Home"===e.key){(0,p.stopEvent)(e);let n=o.platform.engine.gecko&&i?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if("End"===e.key){(0,p.stopEvent)(e);let r=o.platform.engine.gecko&&i?0:t.value.length;t.setSelectionRange(r,r),t.scrollLeft=i?-n:n;return}if(!$&&"Escape"===e.key){let t="multiple"===K&&Array.isArray(J)?0===J.length:null===J,n=(0,m.createChangeEventDetails)(x.REASONS.escapeKey,e.nativeEvent);L.context.setInputValue("",n),L.context.setSelectedValue("multiple"===K?[]:null,n),t||L.state.inline||n.isPropagationAllowed||e.stopPropagation();return}if(T&&"Backspace"===e.key&&""===t.value&&void 0===T.highlightedChipIndex&&Array.isArray(J)&&J.length>0){let t=T.chipsRef.current.length,n=t>0?t-1:J.length-1,o=J.filter((e,t)=>t!==n);ex(),L.context.setSelectedValue(o,(0,m.createChangeEventDetails)(x.REASONS.none,e.nativeEvent));return}let r=T?.highlightedChipIndex!==void 0,l=function(e){let t;if(!T)return;let{highlightedChipIndex:n}=T,o=T.chipsRef.current.length,[i,r]=(0,C.getChipNavigationKeys)(j);return void 0!==n?e.key===i?(e.preventDefault(),t=n>0?n-1:void 0):e.key===r?(e.preventDefault(),t=n<o-1?n+1:void 0):("Backspace"===e.key||"Delete"===e.key)&&(e.preventDefault(),t=(0,C.getIndexAfterChipRemoval)(n,J.length),ex()):e.key===i&&(e.currentTarget.selectionStart??0)===0&&J.length>0&&(e.preventDefault(),t=o>0?o-1:void 0),t}(e);if(T?.setHighlightedChipIndex(l),void 0!==l?T?.chipsRef.current[l]?.focus():r&&L.context.
2inputRef.current?.focus(),229!==e.which&&"Enter"===e.key&&Y){let t=L.state.activeIndex,n=e.nativeEvent;if(null===t){if(X)return;L.context.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.none,n));return}(0,p.stopEvent)(e),(0,C.clickHighlightedItem)(L,t,n)}},onPointerMove:ev,onPointerDown:ev},em],stateAttributesMapping:u.triggerStateAttributesMapping}),eg=N?(0,g.jsx)(a.FieldRootContext.Provider,{value:a.DEFAULT_FIELD_ROOT_CONTEXT,children:eC}):eC;return(0,g.jsxs)(t.Fragment,{children:[Y&&(!ei||Z)&&(0,g.jsx)(b.ComboboxInternalDismissButton,{ref:L.context.startDismissRef}),eg]})});e.s(["ComboboxInput",0,S],278294);var h=e.i(880269),I=e.i(553796),E=e.i(399188);function R(e,t,n,o){if(e.baseUIHandlerPrevented)return;let i=(0,I.getTarget)(e.nativeEvent),r=(0,h.isElement)(i)?i:null;r!==e.currentTarget&&(o?.(r)||(0,E.isInteractiveElement)(r))||(e.preventDefault(),!n&&(t.context.inputRef.current?.focus(),t.state.openOnInputClick&&t.context.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.inputPress,e.nativeEvent))))}e.s(["handleInputPress",0,R],896042);let y=t.forwardRef(function(e,t){let{render:o,className:i,style:s,...c}=e,{state:d}=(0,a.useFieldRootContext)(),p=(0,l.useComboboxRootContext)(),f=p.useState("open"),m=p.useState("disabled"),x=p.useState("readOnly"),v=p.useState("hasSelectedValue"),b=p.useState("selectionMode"),g=(0,C.usePopupSide)(p),S=(0,C.useListEmpty)(),h={...d,open:f,disabled:m,readOnly:x,popupSide:g,listEmpty:S,placeholder:"none"!==b&&!v},E=(0,n.useStableCallback)(e=>{p.set("inputGroupElement",e)});return(0,r.useRenderElement)("div",e,{ref:[t,E],props:[{role:"group",onMouseDown(e){R(e,p,m,e=>(0,I.contains)(p.context.chipsContainerRef.current,e))}},c],state:h,stateAttributesMapping:u.triggerStateAttributesMapping})});e.s(["ComboboxInputGroup",0,y],809945)},53711,386187,457693,935110,1266,484640,48252,483061,875439,386940,e=>{"use strict";var t=e.i(705070),n=e.i(747054),o=e.i(314580),i=e.i(706837),r=e.i(422833),l=e.i(274591);let u=t.createContext(null);function a(){return t.useContext(u)}function s(e){let{children:n}=e,{filteredItems:o}=(0,i.useComboboxDerivedItemsContext)(),r=a(),u=r?r.items:o;return(0,l.jsx)(t.Fragment,{children:u.map(n)})}e.s(["GroupCollectionProvider",0,function(e){let{children:n,items:o}=e,i=t.useMemo(()=>({items:o}),[o]);return(0,l.jsx)(u.Provider,{value:i,children:n})},"useGroupCollectionContext",0,a],386187),e.s(["ComboboxCollection",0,s],457693);var c=e.i(537052),d=e.i(45359),p=e.i(321063);let f=t.forwardRef(function(e,u){var a;let{render:f,className:m,style:x,children:v,...b}=e,C=(0,i.useComboboxRootContext)(),g=(0,i.useComboboxFloatingContext)(),S=!!(0,r.useComboboxPositionerContext)(!0),{filteredItems:h,hasItems:I}=(0,i.useComboboxDerivedItemsContext)(),E=C.useState("selectionMode"),R=C.useState("grid"),y=C.useState("readOnly"),A=C.useState("listProps"),O=C.useState("virtualized"),P=C.useState("forceMounted"),M=0===h.length,D=(0,n.useStableCallback)(e=>{C.set("positionerElement",e)}),w=(0,n.useStableCallback)(e=>{C.set("listElement",e)}),k=t.useMemo(()=>"function"==typeof v?a||(a=(0,l.jsx)(s,{children:v})):v,[v]),V=g.useState("floatingId"),T=(0,o.useRenderElement)("div",e,{state:{empty:M},ref:[u,w,S?null:D],props:[A,{children:k,tabIndex:-1,id:V,role:R?"grid":"listbox","aria-multiselectable":"multiple"===E?"true":void 0,"aria-readonly":!R&&!!y||void 0,onKeyDown(e){if(!C.state.disabled&&!C.state.readOnly&&"Enter"===e.key){let t=C.state.activeIndex;null!=t&&((0,d.stopEvent)(e),(0,p.clickHighlightedItem)(C,t,e.nativeEvent))}},onKeyDownCapture(){C.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){C.context.keyboardActiveRef.current=!1}},b]});if(O)return T;let N=I&&!P?void 0:C.context.labelsRef;
2return(0,l.jsx)(c.CompositeList,{elementsRef:C.context.listRef,labelsRef:N,children:T})});e.s(["ComboboxList",0,f],53711);var m=e.i(400449),x=e.i(699397);function v(){let e=(0,x.useTimeout)(),n=t.useRef(null);return t.useEffect(()=>{if(m.platform.os.ios)return;let t=n.current;if(null==t)return;let o=function(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;""!==e.nodeValue&&(n=e)}return n}(t);if(null==o)return;let i=o.data,r=`${i}\u2060`;return o.nodeValue=r,e.start(200,()=>{o.nodeValue===r&&(o.nodeValue=i)}),()=>{e.clear(),o.nodeValue===r&&(o.nodeValue=i)}},[n,e]),n}e.s(["useInitialLiveRegionTextMutation",0,v],935110);let b=t.forwardRef(function(e,t){let{render:n,className:i,style:r,children:l,...u}=e,a=v();return(0,o.useRenderElement)("div",e,{ref:[t,a],props:[{children:l,role:"status","aria-live":"polite","aria-atomic":!0},u]})});e.s(["ComboboxStatus",0,b],1266);var C=e.i(514624),g=e.i(758737);let S=t.createContext(void 0),h=t.forwardRef(function(e,t){let{keepMounted:n=!1,...o}=e,r=(0,i.useComboboxRootContext)(),u=r.useState("mounted"),a=r.useState("forceMounted");return u||n||a?(0,l.jsx)(S.Provider,{value:n,children:(0,l.jsx)(C.FloatingPortal,{ref:t,...o})}):null});e.s(["ComboboxPortal",0,h],484640);var I=e.i(155535),E=e.i(695121);let R={...I.popupStateMapping,...E.transitionStatusMapping},y=t.forwardRef(function(e,t){let{render:n,className:r,style:l,...u}=e,a=(0,i.useComboboxRootContext)(),s=a.useState("open"),c=a.useState("mounted"),d=a.useState("transitionStatus");return(0,o.useRenderElement)("div",e,{state:{open:s,transitionStatus:d},ref:t,stateAttributesMapping:R,props:[{role:"presentation",hidden:!c,style:{userSelect:"none",WebkitUserSelect:"none"}},u]})});e.s(["ComboboxBackdrop",0,y],48252);var A=e.i(473444),O=e.i(568505),P=e.i(665171),M=e.i(205721),D=e.i(296137),w=e.i(442763),k=e.i(294990);let V=t.forwardRef(function(e,o){let{render:u,className:a,anchor:s,positionMethod:c,side:d,align:f,sideOffset:m,alignOffset:x,collisionBoundary:v="clipping-ancestors",collisionPadding:b,arrowPadding:C,sticky:h,disableAnchorTracking:I=!1,collisionAvoidance:E=M.DROPDOWN_COLLISION_AVOIDANCE,style:R,...y}=e,V=(0,i.useComboboxRootContext)(),T=(0,i.useComboboxFloatingContext)(),N=function(){let e=t.useContext(S);if(void 0===e)throw Error((0,g.default)(20));return e}(),L=V.useState("modal"),F=V.useState("open"),j=V.useState("mounted"),H=V.useState("openMethod"),q=V.useState("positionerElement"),B=V.useState("triggerElement"),_=V.useState("inputElement"),G=V.useState("inputGroupElement"),K=V.useState("inputInsidePopup"),U=V.useState("transitionStatus"),W=(0,p.useListEmpty)(),z=(0,P.useAnchorPositioning)({anchor:s??(K?B:G??_),floatingRootContext:T,positionMethod:c,mounted:j,side:d,sideOffset:m,align:f,alignOffset:x,arrowPadding:C,collisionBoundary:v,collisionPadding:b,sticky:h,disableAnchorTracking:I,keepMounted:N,collisionAvoidance:E,lazyFlip:!0});(0,k.useAnchoredPopupScrollLock)(F&&L,"touch"===H,q,B);let Y={open:F,side:z.side,align:z.align,anchorHidden:z.anchorHidden,empty:W};(0,A.useIsoLayoutEffect)(()=>{V.set("popupSide",z.side)},[V,z.side]);let $=(0,n.useStableCallback)(e=>{V.set("positionerElement",e)}),J=(0,w.usePositioner)(e,Y,{styles:z.positionerStyles,transitionStatus:U,props:y,refs:[o,$],hidden:!j,inert:!F});return(0,l.jsxs)(r.ComboboxPositionerContext.Provider,{value:z,children:[j&&L&&(0,l.jsx)(D.InternalBackdrop,{inert:(0,O.inertValue)(!F),cutout:G??_??B}),J]})});e.s(["ComboboxPositioner",0,V],483061);var T=e.i(804938),N=e.i(945832),L=e.i(553796),F=e.i(13194),j=e.i(623670),H=e.i(912083);let q={...I.popupStateMapping,...E.transitionStatusMapping},B=t.forwardRef(function(e,n){let{render:u,className:a,style:s,initialFocus:c,finalFocus:d,...f}=e,m=(0,i.useComboboxRootContext)(),x=(0,r.useComboboxPositionerContext)(),v=(0,i.useComboboxFloatingContext)(),b=m.useState("mounted"),C=m.useState("open"),g=m.useState("openMethod"),S=m.useState("popupProps"),h=m.useState("transitionStatus"),I=m.useState("inputInsidePopup"),E=m.useState("inputElement"),R=m.useState("modal"),y=m.useState("id"),O=(0,p.useListEmpty)(),P=f.id??(I?(0,H.getComboboxPopupId)(y):void 0);(0,A.useIsoLayoutEffect)(()=>
2(m.set("popupId",m.context.popupRef.current?.id||P),()=>{m.set("popupId",void 0)}),[m,P]),(0,N.useOpenChangeComplete)({open:C,ref:m.context.popupRef,onComplete(){C&&m.context.onOpenChangeComplete(!0)}});let M={open:C,side:x.side,align:x.align,anchorHidden:x.anchorHidden,transitionStatus:h,empty:O},D=(0,o.useRenderElement)("div",e,{state:M,ref:[n,m.context.popupRef],props:[S,{id:P,role:I?"dialog":"presentation",onFocus(e){let t=(0,L.getTarget)(e.nativeEvent);"touch"!==g&&((0,L.contains)(m.state.listElement,t)||t===e.currentTarget)&&m.context.inputRef.current?.focus()}},(0,F.getDisabledMountTransitionStyles)(h),f],stateAttributesMapping:q}),w=!!I&&(e=>"touch"===e?m.context.popupRef.current:E),k=!I||R;return(0,l.jsx)(T.FloatingFocusManager,{context:v,disabled:!b,modal:k,openInteractionType:g,initialFocus:void 0===c?w:c,returnFocus:null!=d?d:!!I&&void 0,getInsideElements:()=>[m.context.startDismissRef.current,m.context.endDismissRef.current],children:(0,l.jsxs)(t.Fragment,{children:[D,k&&(0,l.jsx)(j.ComboboxInternalDismissButton,{ref:m.context.endDismissRef})]})})});e.s(["ComboboxPopup",0,B],875439);let _=t.forwardRef(function(e,t){let{render:n,className:l,style:u,...a}=e,s=(0,i.useComboboxRootContext)(),{arrowRef:c,side:d,align:p,arrowUncentered:f,arrowStyles:m}=(0,r.useComboboxPositionerContext)(),x=s.useState("open");return(0,o.useRenderElement)("div",e,{ref:[c,t],stateAttributesMapping:I.popupStateMapping,state:{open:x,side:d,align:p,uncentered:f},props:{style:m,"aria-hidden":!0,...a}})});e.s(["ComboboxArrow",0,_],386940)},968374,706837,912083,913474,225839,319560,e=>{"use strict";var t=e.i(758737),n=e.i(705070),o=e.i(665308),i=e.i(473444),r=e.i(801274),l=e.i(747054),u=e.i(512042),a=e.i(871689),s=e.i(239786),c=e.i(312207),d=e.i(776988),p=e.i(251412),f=e.i(880269),m=e.i(375817),x=e.i(999010),v=e.i(401561),b=e.i(126611),C=e.i(807127);function g(e,t,n,o,i,r,l,u,a,s=2){let c=(0,C.getGridNavigatedIndex)(n.current,{event:e,orientation:o,loopFocus:i,rtl:r,cols:s,disabledIndices:l,minIndex:u,maxIndex:a,prevIndex:t>a?u:t,stopEvent:!0});return(0,C.isIndexOutOfListBounds)(n.current,c)?void 0:c}var S=e.i(553796),h=e.i(638141),I=e.i(660774);let E=n.createContext(void 0),R=n.createContext(void 0),y=n.createContext(void 0),A=n.createContext(!1),O=n.createContext("");e.s(["ComboboxDerivedItemsContext",0,y,"ComboboxFloatingContext",0,R,"ComboboxHasItemsContext",0,A,"ComboboxInputValueContext",0,O,"ComboboxRootContext",0,E,"useComboboxDerivedItemsContext",0,function(){let e=n.useContext(y);if(!e)throw Error((0,t.default)(24));return e},"useComboboxFloatingContext",0,function(){let e=n.useContext(R);if(!e)throw Error((0,t.default)(23));return e},"useComboboxHasItemsContext",0,function(){return n.useContext(A)},"useComboboxInputValueContext",0,function(){return n.useContext(O)},"useComboboxRootContext",0,function(){let e=n.useContext(E);if(!e)throw Error((0,t.default)(22));return e}],706837);var P=e.i(991732),M=e.i(886025);let D={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return null!=t&&(!("multiple"===n&&Array.isArray(t))||t.length>0)},hasNullItemLabel:(e,t)=>!!t&&(0,M.hasNullItemLabel)(e.items),open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,o=e.selectedValue;return Array.isArray(o)?o.some(e=>(0,P.compareItemEquality)(t,e,n)):(0,P.compareItemEquality)(t,o,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};var w=e.i(945832),k=e.i(100748),V=e.i(707056),T=e.i(139623),N=e.i(198449);function L(e,t){return(n,o)=>null!=n&&e.contains(n,o,t)}function F(e,t,n){return(o,i)=>{if(null==o)return!1;if(!i)return!0;let r=t?.selected??t,l=null!=n?(0,M.stringifyAsLabel)(n,r):"";return!!(l&&e.contains(l,i))&&l.length===i.length||e.contains(o,i,t)}}e.s(["createCollatorItemFilter",0,L,"createSingleSelectionCollatorFilter",0,F,"getComboboxPopupId",0,function(e){return null==e?void 0:`${e}-popup`}],912083);var j=e.i(471228);let H=new Map;function q(e={}){let t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${(0,j.stringifyLocale)(e.locale)}|${JSON.stringify(t)}`,o=H.get(n);if(o)return o;let i=new Intl.Collator(e.locale,t),r={contains(e,t,n){if(!t)return!0;let o=(0,M.stringifyAsLabel)(e,n);for(let e=0;e<=o.length-t.length;e+=1)if(0===i.compare(o.slice(e,e+t.length),t))return!0;return!1},startsWith(e,t,n){if(!t)return!0;let o=(0,M.stringifyAsLabel)(e,n);return 0===i.compare(o.slice(0,t.length),t)},endsWith(e,t,n){if(!t)return!0;let o=(0,M.stringifyAsLabel)(e,n),r=t.length;return o.length>=r&&0===i.compare(o.slice(o.length-r),t)}};return H.set(n,r),r}e.s(["useComboboxFilter",0,function(e={}){let{multiple:t=!1,value:o,...i}=e,r=q(i),l=n.useCallback((e,n,i)=>t?L(r,i)(e,n):F(r,i,o)(e,n),[r,o,t]);return n.useMemo(()=>({...r,contains:l}),[l,r])},"useCoreFilter",0,q],913474);var B=e.i(880227),_=e.i(266976),G=e.i(332881),K=e.i(111617),U=e.i(830949);let W=Symbol("none"),z={value:W,index:-1};var Y=e.i(858283);function $(e,t,n){let o=e.get(t);if(void 0!==o||n===P.defaultItemEquality)return o;for(let[o,i]of e)if((0,P.compareItemEquality)(o,t,n))return i}e.s(["findCollectionItem",0,$],225839);var J=e.i(274591);
2e.s(["AriaCombobox",0,function(e){let C,{id:F,onOpenChangeComplete:j,defaultSelectedValue:H=null,selectedValue:Q,onSelectedValueChange:X,defaultInputValue:Z,inputValue:ee,open:et,defaultOpen:en=!1,selectionMode:eo,onItemHighlighted:ei,name:er,form:el,disabled:eu=!1,readOnly:ea=!1,required:es=!1,inputRef:ec,grid:ed=!1,items:ep,filteredItems:ef,filter:em,filterQuery:ex,openOnInputClick:ev=!0,autoHighlight:eb=!1,keepHighlight:eC=!1,highlightItemOnHover:eg=!0,loopFocus:eS=!0,itemToStringLabel:eh,itemToStringValue:eI,isItemEqualToValue:eE=P.defaultItemEquality,virtualized:eR=!1,inline:ey=!1,fillInputOnItemPress:eA=!0,modal:eO=!1,limit:eP=-1,autoComplete:eM="list",formAutoComplete:eD,locale:ew,submitOnItemClick:ek=!1}=e,{clearErrors:eV}=(0,T.useFormContext)(),{setDirty:eT,validityData:eN,setFilled:eL,name:eF,disabled:ej,setTouched:eH,setFocused:eq,validationMode:eB,validation:e_}=(0,k.useFieldRootContext)(),eG=(0,Y.useDirection)(),eK=(0,N.useLabelableId)({id:F}),eU=q({locale:ew}),eW=Array.isArray(ep)?null:ep;if(eW&&"function"!=typeof eW.label)throw Error((0,t.default)(100));let ez=eW?eW.data:ep,eY=eW?.value,e$=eY?void 0:ez,eJ=n.useMemo(()=>{let e;if(!ef||!eY)return;let t=(0,M.flattenLeafItems)(ef),n=t.map(eY);return{values:n,findItem(o,i){if(!e){e=new Map;for(let o=0;o<n.length;o+=1)e.has(n[o])||e.set(n[o],t[o])}return $(e,o,i)}}},[ef,eY]),eQ=n.useMemo(()=>eW?e=>eW.label(e,eE,e=>{let t=eJ?.findItem(e,eE);return null!=t?eW.itemLabel(t):(0,M.stringifyAsLabel)(e,eh)}):eh,[eW,eh,eJ,eE]),eX=n.useMemo(()=>eW?Object.assign(e=>eW.itemLabel(e),{selected:e=>(0,M.stringifyAsLabel)(e,eQ)}):eh,[eW,eQ,eh]);function eZ(e){return(0,M.stringifyAsLabel)(e,eQ)}let[e0,e1]=n.useState(!1),[e7,e3]=n.useState(null),e8=n.useRef(e7),e2=n.useRef([]),e4=n.useRef([]),e6=n.useRef(null),e5=n.useRef(null),e9=n.useRef(null),te=n.useRef(null),tt=n.useRef(null),tn=n.useRef(!0),to=n.useRef(!1),ti=n.useRef(null),tr=n.useRef(null),tl=n.useRef(null),tu=n.useRef(z),ta=n.useRef(null),ts=n.useRef([]),tc=n.useRef(null),td=ej||eu,tp=eF??er,tf="multiple"===eo,tm="single"===eo,tx=void 0!==ee||void 0!==Z,tv=void 0!==ez,tb=void 0!==ef;C="always"===eb?"always":!!eb&&"input-change";let[tC,tg]=(0,o.useControlled)({controlled:Q,default:tf?H??p.EMPTY_ARRAY:H,name:"Combobox",state:"selectedValue"}),tS=n.useMemo(()=>null===em?()=>!0:void 0!==em?em:L(eU,eX),[em,eU,eX]),th=(0,c.useRefWithInit)(()=>tx?Z??"":tm?eZ(tC):"").current,[tI,tE]=(0,o.useControlled)({controlled:ee,default:th,name:"Combobox",state:"inputValue"}),[tR,ty]=(0,o.useControlled)({controlled:et,default:en,name:"Combobox",state:"open"}),tA=(0,M.isGroupedItems)(ez),tO=tR||null===e7?String(tI).trim():e7,tP=tm?eZ(tC):"",tM=tm&&!e0&&""!==tO&&tP.length===tO.length&&eU.contains(tP,tO),tD=tM?"":ex??tO,tw=tv&&tb&&tM&&(!eW||eW.hasValue(tC,eE)),tk=n.useMemo(()=>ez?(0,M.flattenLeafItems)(ez):p.EMPTY_ARRAY,[ez]),tV=n.useMemo(()=>{if(ef&&!tw)return ef;if(!ez)return p.EMPTY_ARRAY;if(tA){let e=[],t=0;for(let n of ez){if(eP>-1&&t>=eP)break;let o=eP>-1?eP-t:1/0,i=""===tD?n.items.slice(0,o):[];if(""!==tD)for(let e of n.items){if(i.length>=o)break;tS(e,tD,eX)&&i.push(e)}if(i.length>0){let o={...n,items:i};e.push(o),t+=i.length}}return e}if(""===tD)return eP>-1?tk.slice(0,eP):tk;let e=[];for(let t of tk){if(eP>-1&&e.length>=eP)break;tS(t,tD,eX)&&e.push(t)}return e},[ef,tw,ez,tA,tD,eP,tS,eX,tk]),tT=n.useMemo(()=>{if(eJ&&tV===ef)return eJ.values;let e=(0,M.flattenLeafItems)(tV);return eY?e.map(e=>eY(e)):e},[tV,ef,eJ,eY]),tN=(0,c.useRefWithInit)(()=>{let e=null;return ey&&tR&&tv&&"none"!==eo&&(e=(0,P.findSelectionIndex)(tT,tC,eE,tf)),new d.ReactStore({id:eK,labelId:void 0,selectedValue:tC,open:tR,items:e$,selectionMode:eo,name:tp,form:el,disabled:td,readOnly:ea,required:es,grid:ed,virtualized:eR,openOnInputClick:ev,itemToStringLabel:eQ,isItemEqualToValue:eE,modal:eO,autoHighlight:C,submitOnItemClick:ek,hasInputValue:tx,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:ey,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:p.EMPTY_OBJECT,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:"none"===eo},{onOpenChangeComplete:p.NOOP,setOpen:p.NOOP,setInputValue:p.NOOP,setSelectedValue:p.NOOP,setIndices:p.NOOP,handleSelection:p.NOOP,forceMount:p.NOOP,requestSubmit:p.NOOP,listRef:e2,labelsRef:e4,popupRef:e6,emptyRef:tt,inputRef:e5,startDismissRef:e9,endDismissRef:te,keyboardActiveRef:tn,chipsContainerRef:ti,clearRef:tr,valuesRef:ts,pointerDownItemRef:tc,selectionEventRef:tl},D)}).current,tL="none"===eo?tI:tC,tF=n.useMemo(()=>"none"===eo?tL:Array.isArray(tC)?tC.map(e=>(0,M.stringifyAsValue)(e,eI)):(0,M.stringifyAsValue)(tC,eI),[tL,eI,eo,tC]),tj=(0,l.useStableCallback)(ei),tH=(0,l.useStableCallback)(j),tq=tN.useState("activeIndex"),tB=tN.useState("selectedIndex"),t_=tN.useState("positionerElement"),tG=tN.useState("listElement"),tK=tN.use
2State("triggerElement"),tU=tN.useState("inputElement"),tW=tN.useState("inputGroupElement"),tz=tN.useState("inline"),tY=tN.useState("inputInsidePopup"),t$=tN.useState("inputOwnsFormValue"),tJ=tm&&!tY&&tI===tP,tQ=(0,a.useValueAsRef)(tK),{mounted:tX,setMounted:tZ,transitionStatus:t0}=(0,B.useTransitionStatus)(tR),{openMethod:t1,triggerProps:t7}=(0,_.useOpenInteractionType)(tR),t3=(0,l.useStableCallback)(()=>tF);(0,V.useRegisterFieldControl)(tY?tQ:e5,eK,tL,t3,!td,er);let t8=(0,l.useStableCallback)(()=>{ez?e4.current=tT.map(eZ):tN.set("forceMounted",!0)}),t2=(0,l.useStableCallback)((e,t,n)=>{if(-1===t){if(tu.current===z)return;tu.current=z}else tu.current={value:e,index:t};tj(e,(0,h.createGenericEventDetails)(n,void 0,{index:t}))}),t4=(0,l.useStableCallback)(e=>{let t={};void 0!==e.activeIndex&&(t.activeIndex=e.activeIndex),void 0!==e.selectedIndex&&(t.selectedIndex=e.selectedIndex),tN.update(t);let n=e.activeIndex;if(void 0===n)return;let o=e.type||I.REASONS.none;null===n?t2(void 0,-1,o):t2(ts.current[n],n,o)}),t6=(0,l.useStableCallback)((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(to.current=n.reason===I.REASONS.inputClear,n.reason===I.REASONS.inputChange){tR&&null!==e7&&e3(null);let e=n.event,o=e.inputType;if("compositionend"===e.type||null!=o&&""!==o&&"insertReplacementText"!==o){let e=""!==t.trim();e&&e1(!0),ta.current={hasQuery:e};let n=tN.state.listElement;if(!tN.state.virtualized&&n){let e=e6.current;for(let t of(0,f.getOverflowAncestors)(n.firstElementChild??n)){if(!(0,f.isHTMLElement)(t)||(e?!(0,S.contains)(e,t):"dialog"===t.getAttribute("role")))break;if(function(e,t=!1){let{overflowY:n}=(0,f.getComputedStyle)(e);return("auto"===n||"scroll"===n)&&(t?e.clientHeight>0:e.scrollHeight>e.clientHeight)}(t)){t.scrollTop=0;break}}}e&&C&&null==tN.state.activeIndex&&(tR||tz)&&tN.set("activeIndex",0)}}else n.reason===I.REASONS.inputClear&&""===t&&tN.state.inputInsidePopup&&(ta.current={hasQuery:!1,selection:!0}
2);tE(t)}}),t5=(0,l.useStableCallback)(e=>{let t=!e&&tY&&!tz&&""!==tI&&(String(tI).trim()===e7||tI===tP);!e&&(t||""===tI||tJ)&&e1(!1),e3(null),t&&t6("",(0,h.createChangeEventDetails)(I.REASONS.inputClear))}),t9=(0,l.useStableCallback)((t,n)=>{if(tR!==t&&(n.reason===I.REASONS.escapeKey&&tv&&0===tT.length&&!tt.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&null!==e7&&t5(n.reason===I.REASONS.inputChange),!t&&e0&&(tm?(tz||e3(tO),""===tO&&e1(!1)):tf&&(tz||e3(tO),tY&&t4({activeIndex:null}),(!tY||tz)&&t6("",(0,h.createChangeEventDetails)(I.REASONS.inputClear,n.event,void 0,{isItemPress:n.reason===I.REASONS.itemPress})))),ty(t),!t&&tY&&(n.reason===I.REASONS.focusOut||n.reason===I.REASONS.outsidePress))&&(eH(!0),eq(!1),"onBlur"===eB))){let e="none"===eo?tI:tC;e_.commit(e)}}),ne=(0,l.useStableCallback)((e,t)=>{X?.(e,t),t.isCanceled||(tg(e),("none"===eo&&e6.current&&eA||tm&&!tN.state.inputInsidePopup)&&t6(eZ(e),(0,h.createChangeEventDetails)(t.reason,t.event)))}),nt=(0,l.useStableCallback)((e,t)=>{let n=(0,S.getTarget)(e),o=tl.current??e;tl.current=null;let i=(0,h.createChangeEventDetails)(I.REASONS.itemPress,o),r=n?.closest("a")?.getAttribute("href");if(r){r.startsWith("#")&&t9(!1,i);return}if(tf){let e=Array.isArray(tC)?tC:[],n=(0,P.selectedValueIncludes)(e,t,eE);if(ne(n?(0,P.removeItem)(e,t,eE):[...e,t],i),i.isCanceled||!(e5.current&&""!==e5.current.value.trim()))return;if(tN.state.inputInsidePopup){t6("",(0,h.createChangeEventDetails)(I.REASONS.inputClear,i.event,void 0,{isItemPress:!0}));let e=ta.current;e&&!n&&(e.toggledValue=t)}else t9(!1,i)}else{if(ne(t,i),i.isCanceled)return;t9(!1,i)}}),nn=(0,l.useStableCallback)(()=>{let e=e_.inputRef.current?.form??tN.state.inputElement?.form;e&&"function"==typeof e.requestSubmit&&e.requestSubmit()}),no=(0,l.useStableCallback)(()=>{if(tZ(!1),tH?.(!1),e1(!1),e3(null),"none"===eo?t4({activeIndex:null,selectedIndex:null}):t4({activeIndex:null}),tf&&e5.current&&""!==e5.current.value&&!to.current&&t6("",(0,h.createChangeEventDetails)(I.REASONS.inputClear)),tm)if(tN.state.inputInsidePopup)e5.current&&""!==e5.current.value&&t6("",(0,h.createChangeEventDetails)(I.REASONS.inputClear));else{let e=eZ(tC);if(e5.current&&e5.current.value!==e){let t=""===e?I.REASONS.inputClear:I.REASONS.none;t6(e,(0,h.createChangeEventDetails)(t))}}}),ni=n.useMemo(()=>tz&&t_?{current:t_.closest('[role="dialog"]')}:e6,[tz,t_]);(0,w.useOpenChangeComplete)({enabled:!e.actionsRef,open:tR,ref:ni,onComplete(){tR||no()}}),n.useImperativeHandle(e.actionsRef,()=>({unmount:no}),[no]),(0,i.useIsoLayoutEffect)(function(){let e=null!==e8.current&&null===e7;if(e8.current=e7,tR&&(!e||!tv)||(tR||(tc.current=null),"none"===eo))return;let t=tv?tT:ts.current;t4({selectedIndex:(0,P.findSelectionIndex)(t,tC,eE,tf)})},[tR,e7,tC,eo,tf,tv,tT,eE,t4]),(0,i.useIsoLayoutEffect)(()=>{ez&&(ts.current=tT,e2.current.length=tT.length)},[ez,tT]),(0,i.useIsoLayoutEffect)(()=>{let e=ta.current;if(e){let t=tR||tz||tN.state.positionerElement?.hidden===!1;if(e.hasQuery)C&&t&&tN.set("activeIndex",0),ta.current=null;else if(""===String(tI).trim()&&(ta.current=null,t)){let t=e.selection;"always"!==C||t||"none"!==tN.state.selectionMode||tN.set("activeIndex",0),queueMicrotask(()=>{if(!tN.state.open&&!tN.state.inline||e5.current&&""!==e5.current.value.trim())return;let n=tN.state.selectedValue,o="multiple"===tN.state.selectionMode;if(o&&Array.isArray(n)?n.length>0:"none"!==tN.state.selectionMode&&null!=n){let t=tv||tb?tT:ts.current,i=(0,P.findItemIndex)(t,e.toggledValue,tN.state.isItemEqualToValue);tN.set("activeIndex",-1!==i?i:(0,P.findSelectionIndex)(t,n,tN.state.isItemEqualToValue,o))}else t?tN.set("activeIndex",null):"always"===C&&tN.set("activeIndex",0)})}}if(!tR&&!tz)return;let t=tv||tb?tT:ts.current,n=tN.state.activeIndex;if(null==n)return"always"===C&&t.length>0?void tN.set("activeIndex",0):void t2(void 0,-1,I.REASONS.none);if(n>=t.length){t2(void 0,-1,I.REASONS.none),tN.set("activeIndex",null);return}let o=t[n],i=tu.current.value,r=i!==W&&(0,P.compareItemEquality)(o,i,tN.state.isItemEqualToValue);tu.current.index===n&&r||t2(o,n,I.REASONS.none)},[tq,C,t2,tb,tv,tT,tz,tR,tN,tI]),(0,i.useIsoLayoutEffect)(()=>{"none"===eo?eL(""!==String(tI)):eL(tf?Array.isArray(tC)&&tC.length>0:null!=tC)},[eL,eo,tI,tC,tf]),n.useEffect(()=>{tv&&C&&0===tT.length&&t4({activeIndex:null})},[tv,C,tT.length,t4]);let nr=!1;
2function nl(){nr||tI===tP||(nr=!0,t6(tP,(0,h.createChangeEventDetails)(I.REASONS.none)))}function nu(){!tm||tx||tY||e0||nl()}(0,G.useValueChanged)(tO,function(){tR&&""!==tO&&tO!==String(th)&&!tJ&&e1(!0)}),(0,G.useValueChanged)(tR,function(){tR&&null!==e7&&t5(!1)}),(0,G.useValueChanged)(tC,function(){"none"!==eo&&(eV(tp),eT((0,P.isSelectedValueDirty)(tC,eN.initialValue,eE)),e_.change(tC),!tm||tx||tY||nl())}),(0,G.useValueChanged)(tP,nu),(0,G.useValueChanged)(ez,nu),(0,G.useValueChanged)(tI,function(){"none"===eo&&(eV(tp),eT(tI!==eN.initialValue),e_.change(tI))});let na=(0,x.useFloatingRootContext)({open:!!tz||tR,onOpenChange:t9,elements:{reference:tY?tK:tU,floating:t_}}),ns=ed?"grid":"listbox",nc=tR||tz,nd=nc?"true":"false",np=n.useMemo(()=>{let e=tU?.tagName==="INPUT",t=null==tU||e,n=t||nc,o=t?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return n&&(o.role="combobox",o["aria-expanded"]=nd,o["aria-haspopup"]=ns,o["aria-controls"]=nc?tG?.id:void 0,o["aria-autocomplete"]=ea?"none":eM),{reference:o,floating:{role:"presentation"}}},[tU,nc,nd,ns,tG?.id,eM,ea]),nf=(0,b.useClick)(na,{enabled:!td&&ev,event:"mousedown-only",toggle:!1,touchOpenDelay:100*!tY,reason:I.REASONS.inputPress}),nm=(0,m.useDismiss)(na,{enabled:!td&&!tz,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:!!tz||void 0,outsidePress(e){let t=(0,S.getTarget)(e);return!(0,S.contains)(tK,t)&&!(0,S.contains)(tr.current,t)&&!(0,S.contains)(ti.current,t)&&!(0,S.contains)(tW,t)}}),nx=(0,v.useListNavigation)(na,{enabled:!td,id:eK,listRef:e2,activeIndex:tq,selectedIndex:tB,virtual:!0,loopFocus:eS,allowEscape:eS&&!C,focusItemOnOpen:!e0&&("none"!==eo||!!C)&&"auto",focusItemOnHover:eg,resetOnPointerLeave:!eC,orientation:ed?"horizontal":void 0,rtl:"rtl"===eG,disabledIndices:p.EMPTY_ARRAY,grid:ed?g:void 0,onNavigate(e,t){(t||tR)&&"ending"!==t0&&(t?t4({activeIndex:e,type:tn.current?I.REASONS.keyboard:I.REASONS.pointer}):t4({activeIndex:e}))}}),nv=n.useMemo(()=>(0,U.mergeProps)(nx.reference,{onKeyDown(e){ed&&null==tN.state.activeIndex&&("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventBaseUIHandler()}},nm.reference,nf.reference,np.reference),[nx.reference,nm.reference,nf.reference,np.reference,ed,tN]),nb=n.useMemo(()=>(0,U.mergeProps)(K.FOCUSABLE_POPUP_PROPS,nm.floating),[nm.floating]),nC=n.useMemo(()=>(0,U.mergeProps)(nx.floating,np.floating),[nx.floating,np.floating]),ng=n.useMemo(()=>{let e=nx.item;return e?{...e,onFocus:void 0}:p.EMPTY_OBJECT},[nx.item]);tN.useContextCallback("setOpen",t9),tN.useContextCallback("setInputValue",t6),tN.useContextCallback("setSelectedValue",ne),tN.useContextCallback("setIndices",t4),tN.useContextCallback("handleSelection",nt),tN.useContextCallback("forceMount",t8),tN.useContextCallback("requestSubmit",nn),tN.useContextCallback("onOpenChangeComplete",j),(0,r.useOnFirstRender)(()=>{tN.update({inline:ey,popupProps:nb,listProps:nC,inputProps:nv,triggerProps:t7,itemProps:ng})});let nS={id:eK,selectedValue:tC,open:tR,mounted:tX,transitionStatus:t0,items:e$,inline:ey,popupProps:nb,listProps:nC,inputProps:nv,triggerProps:t7,itemProps:ng,openMethod:t1,selectionMode:eo,name:tp,form:el,disabled:td,readOnly:ea,required:es,grid:ed,virtualized:eR,openOnInputClick:ev,itemToStringLabel:eQ,modal:eO,autoHighlight:C,isItemEqualToValue:eE,submitOnItemClick:ek,hasInputValue:tx};(0,i.useIsoLayoutEffect)(()=>{tN.update({...nS,inputOwnsFormValue:"none"===eo&&(ey||!tN.state.inputInsidePopup)})},[tN,...Object.values(nS)]);let nh=(0,u.useMergedRefs)(ec,e_.inputRef),nI=n.useMemo(()=>({query:tO,hasItems:tv,filteredItems:tV,flatFilteredValues:tT}),[tO,tv,tV,tT]),nE=n.useMemo(()=>Array.isArray(tL)?"":(0,M.stringifyAsValue)(tL,eI),[tL,eI]),nR=tf&&Array.isArray(tC)&&tC.length>0,ny=tf||"none"===eo&&t$?void 0:tp,nA=n.useMemo(()=>tf&&Array.isArray(tC)&&tp?tC.map(e=>{let t=(0,M.stringifyAsValue)(e,eI);return(0,J.jsx)("input",{type:"hidden",form:el,name:tp,value:t,disabled:td},t)}):null,[tf,tC,el,tp,eI,td]),nO=(0,J.jsxs)(n.Fragment,{children:[e.children,(0,J.jsx)("input",{...e_.getValidationProps(td,{onFocus(){tY?tK?.focus():(e5.current||tK)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||td||ea)return;let t=e.currentTarget.value,n=t.toLowerCase(),o=(0,h.createChangeEventDetails)(I.REASONS.none,e.nativeEvent),i=()=>ts.current.findIndex(e=>(0,M.stringifyAsValue)(e,eI).toLowerCase()===n||eZ(e).toLowerCase()===n);tm&&(t8(),ez&&-1===i()&&tN.set("forceMounted",!0)),queueMicrotask(function(){if(tf)return;if("none"===eo)return void t6(t,o);let e=i();-1===e&&(e=ts.current.findIndex((e,t)=>{let o=e4.current[t];return null!=o&&o.toLowerCase()===n}));let r=-1===e?void 0:ts.current[e];null!=r&&ne?.(r,o)})}}),id:eK&&null==ny?`${eK}-hidden-input`:void 0,form:el,name:ny,autoComplete:eD,disabled:td,required:es&&!nR,readOnly:ea,value:nE,ref:nh,style:ny?
2s.visuallyHiddenInput:s.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),nA]});return(0,J.jsx)(E.Provider,{value:tN,children:(0,J.jsx)(R.Provider,{value:na,children:(0,J.jsx)(A.Provider,{value:tv,children:(0,J.jsx)(y.Provider,{value:nI,children:(0,J.jsx)(O.Provider,{value:tI,children:nO})})})})})}],968374);var Q=e.i(155535),X=e.i(872905),Z=e.i(872055);Z.CommonTriggerDataAttributes.popupOpen,Z.CommonTriggerDataAttributes.pressed;let ee={...Q.pressableTriggerOpenStateMapping,...X.fieldValidityMapping,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};e.s(["triggerStateAttributesMapping",0,ee],319560)},36530,e=>{"use strict";var t=e.i(706837);e.s(["useFilteredItems",0,function(){return(0,t.useComboboxDerivedItemsContext)().filteredItems}])},588202,e=>{"use strict";var t=e.i(705070),n=e.i(747054),o=e.i(699397),i=e.i(516948),r=e.i(314580),l=e.i(960367),u=e.i(706837),a=e.i(319560),s=e.i(100748),c=e.i(326681),d=e.i(45359),p=e.i(553796),f=e.i(253243),m=e.i(638141),x=e.i(660774),v=e.i(126611),b=e.i(950564),C=e.i(198449),g=e.i(619342),S=e.i(912083),h=e.i(321063);let I=t.forwardRef(function(e,I){let E,{render:R,className:y,nativeButton:A=!0,disabled:O=!1,id:P,style:M,...D}=e,{state:w,disabled:k,setTouched:V,setFocused:T,validationMode:N,validation:L}=(0,s.useFieldRootContext)(),{labelId:F}=(0,c.useLabelableContext)(),j=(0,u.useComboboxRootContext)(),H=j.useState("selectionMode"),q=j.useState("disabled"),B=j.useState("readOnly"),_=j.useState("required"),G=j.useState("positionerElement"),K=j.useState("listElement"),U=j.useState("popupId"),W=j.useState("triggerProps"),z=j.useState("inputInsidePopup"),Y=j.useState("id"),$=j.useState("labelId"),J=j.useState("open"),Q=j.useState("selectedValue"),X=j.useState("activeIndex"),Z=j.useState("selectedIndex"),ee=j.useState("hasSelectedValue"),et=(0,u.useComboboxFloatingContext)(),en=(0,u.useComboboxInputValueContext)(),eo=(0,o.useTimeout)(),ei=k||q||O,er=(0,h.useListEmpty)(),el=(0,h.usePopupSide)(j);(0,C.useLabelableId)({id:z?P:void 0});let eu=z?P??Y:P,ea=(0,g.resolveAriaLabelledBy)(F,$);J&&z?E=U??(0,S.getComboboxPopupId)(Y):J&&(E=K?.id);let es=t.useRef("");function ec(e){es.current=e.pointerType}let{reference:ed}=(0,b.useTypeahead)(et,{enabled:!J&&!B&&!q&&"single"===H,listRef:j.context.labelsRef,activeIndex:X,selectedIndex:Z,onMatch(e){let t=j.context.valuesRef.current[e];void 0!==t&&j.context.setSelectedValue(t,(0,m.createChangeEventDetails)(x.REASONS.none))}}),{reference:ep}=(0,v.useClick)(et,{enabled:!q,event:"mousedown"}),{buttonRef:ef,getButtonProps:em}=(0,l.useButton)({native:A,disabled:ei}),ex={...w,readOnly:B,open:J,disabled:ei,popupSide:el,listEmpty:er,placeholder:"none"!==H&&!ee},ev=(0,n.useStableCallback)(e=>{j.set("triggerElement",e)});return(0,r.useRenderElement)("button",e,{ref:[I,ef,ev],state:ex,props:[W,ep,ed,{id:eu,tabIndex:z?0:-1,role:z?"combobox":void 0,"aria-expanded":J,"aria-haspopup":z?"dialog":"listbox","aria-controls":E,"aria-required":z&&_||void 0,"aria-readonly":z&&B||void 0,"aria-labelledby":ea,onPointerDown:ec,onPointerEnter:ec,onFocus(){T(!0),ei||eo.start(0,j.context.forceMount)},onBlur(e){(0,p.contains)(G,e.relatedTarget)||(V(!0),T(!1),"onBlur"===N&&L.commit("none"===H?en:Q))},onMouseDown(e){if(ei||(z||et.set("domReferenceElement",e.currentTarget),j.context.forceMount(),"touch"!==es.current&&(j.context.inputRef.current?.focus(),z||e.preventDefault()),J))return;let t=(0,i.ownerDocument)(e.currentTarget);z&&t.addEventListener("mouseup",function(e){let t=j.state.triggerElement;if(!t)return;let n=(0,p.getTarget)(e),o=j.state.positionerElement,i=j.state.listElement;(0,p.contains)(t,n)||(0,p.contains)(o,n)||(0,p.contains)(i,n)||(0,f.isMouseWithinBounds)(e,t)||j.context.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.cancelOpen,e))},{once:!0})},onKeyDown(e){("ArrowDown"===e.key||"ArrowUp"===e.key)&&((0,d.stopEvent)(e),j.context.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.listNavigation,e.nativeEvent)),j.context.inputRef.current?.focus())}},L.getValidationProps(ei,D),em],stateAttributesMapping:a.triggerStateAttributesMapping})});e.s(["ComboboxTrigger",0,I])},321063,e=>{"use strict";var t=e.i(706837);e.s(["clickHighlightedItem",0,function(e,t,n){let o=e.context.listRef.current[t];o&&(e.context.selectionEventRef.current=n,o.click(),e.context.selectionEventRef.current=null)},"getChipNavigationKeys",0,function(e){return"rtl"===e?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]},"getIndexAfterChipRemoval",0,function(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0},"useListEmpty",0,function(){return 0===(0,t.useComboboxDerivedItemsContext)().filteredItems.length},"usePopupSide",0,function(e){let t=e.useState("mounted"),n=e.useState("popupSide"),o=e.useState("positionerElement");return t&&o?n:null}])}]); 3 4//# debugId=e759e4cf-4898-09ec-df88-f6e091d1348e
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.