(()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95470,e=>{let t,n,r,o,i,l,a;var u=e.i(83222),s=e.i(33336),c=e.i(71645),f=e.i(74080),d=e.i(94487),p=e.i(36289),m=e.i(3269),h=e.i(14520),g=e.i(46725),v=e.i(92704),b=e.i(14189),x=((t=x||{})[t.Left=0]="Left",t[t.Right=2]="Right",t),y=e.i(33538),w=e.i(84653),S=e.i(35696),O=e.i(41444),R=e.i(77891),E=e.i(52744),C=e.i(5083),T=e.i(13581),P=e.i(22357),L=((n=L||{})[n.Ignore=0]="Ignore",n[n.Select=1]="Select",n[n.Close=2]="Close",n);let M={kind:0},F={kind:2};var k=e.i(44279),I=e.i(1852),A=e.i(55743),D=e.i(94316);let N=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function H(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!T.F(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let l=i?null!=(n=o.innerText)?n:"":r;return N.test(l)&&(l=l.replace(N,"")),l}function B(e){return[e.screenX,e.screenY]}var V=e.i(83733),j=e.i(1893),_=e.i(19751),$=e.i(40721);function z(e,t){let[n,r]=(0,c.useState)(t);return e||n===t||r(t),e?n:t}c.default.forwardRef(function({children:e,freeze:t},n){let r=z(t,e);return(0,c.isValidElement)(r)?(0,c.cloneElement)(r,{ref:n}):c.default.createElement(c.default.Fragment,null,r)});var W=e.i(42803),U=e.i(33137),q=e.i(41650),Q=e.i(40407),K=((r=K||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function X(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r{let r;return(r="symbol"!=typeof t?t+"":t)in e?ec(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},ed=((o=ed||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),ep=((i=ep||{})[i.Single=0]="Single",i[i.Multi=1]="Multi",i),em=((l=em||{})[l.Pointer=0]="Pointer",l[l.Other=1]="Other",l),eh=((a=eh||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.SelectOption=5]="SelectOption",a[a.RegisterOptions=6]="RegisterOptions",a[a.UnregisterOptions=7]="UnregisterOptions",a[a.SetButtonElement=8]="SetButtonElement",a[a.SetOptionsElement=9]="SetOptionsElement",a[a.SortOptions=10]="SortOptions",a[a.MarkButtonAsMoved=11]="MarkButtonAsMoved",a);function eg(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,G.T)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let ev={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?{kind:"Tracked",position:es(e.buttonElement)}:e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:K.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:ea}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===K.Nothing)return{...a,activeOptionIndex:null};if(t.focus===K.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===K.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=X(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...a,activeOptionIndex:l}}}}else if(t.focus===K.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=X(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...a,activeOptionIndex:o}}}}let u=eg(e),s=X(t,{resolveItems:()=>u.options,resolveActiveIndex:()=>u.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...u,activeOptionIndex:s}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==K.Nothing&&(r=X(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:K.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...eg(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:eu}};class eb extends el.${constructor(e){super(e),ef(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,Z.f)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(0,el.W)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,el.W)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,el.W)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),ef(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=q.l.get(null);this.disposables.add(t.on(q.R.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,n){let r=(0,Y.f)();if("Tracked"===t.kind){let o=function(){i!==es(e)&&(r.dispose(),n())},{position:i}=t,l=new ResizeObserver(o);l.observe(e),r.add(()=>l.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new eb({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:K.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:ea})}reduce(e,t){return(0,Z.f)(t.type,ev,e,t)}}var ex=e.i(26599);let ey=(0,c.createContext)(null);function ew(e){let t=(0,c.useContext)(ey);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eS),t}return t}function eS({id:e,__demoMode:t=!1}){let n=(0,c.useMemo)(()=>eb.new({id:e,__demoMode:t}),[]);return(0,ex.f)(()=>n.dispose()),n}let eO=(0,c.createContext)(null);function eR(e){let t=(0,c.useContext)(eO);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eR),t}return t}eO.displayName="ListboxDataContext";let eE=c.Fragment,eC=(0,c.createContext)(!1),eT=et.J.RenderStrategy|et.J.Static,eP=c.Fragment,eL=(0,et.t)(function(e,t){let n=(0,c.useId)(),r=(0,j.f)(),{value:o,defaultValue:i,form:l,name:a,onChange:u,by:s,invalid:f=!1,disabled:d=r||!1,horizontal:g=!1,multiple:v=!1,__demoMode:b=!1,...x}=e,y=(0,D.V)(t),w=(0,h.f)(i),[O=v?[]:void 0,R]=(0,m.f)(o,u,w),C=eS({id:n,__demoMode:b}),T=(0,c.useRef)({static:!1,hold:!1}),P=(0,c.useRef)(new Map),L=(0,p.f)(s),M=(0,c.useCallback)(e=>(0,Z.f)(F.mode,{[ep.Multi]:()=>O.some(t=>L(t,e)),[ep.Single]:()=>L(O,e)}),[O]),F=(0,A.f)({value:O,disabled:d,invalid:f,mode:v?ep.Multi:ep.Single,orientation:g?"horizontal":"vertical",onChange:R,compare:L,isSelected:M,optionsPropsRef:T,listRef:P});(0,S.f)(()=>{C.state.dataRef.current=F},[F]);let k=(0,Q.f)(C,e=>e.listboxState),I=q.l.get(null),N=(0,Q.f)(I,(0,c.useCallback)(e=>I.selectors.isTop(e,n),[I,n])),[H,B]=(0,Q.f)(C,e=>[e.buttonElement,e.optionsElement]);(0,E.f)(N,[H,B],(e,t)=>{C.send({type:eh.CloseListbox}),(0,G.d)(t,G.m.Loose)||(e.preventDefault(),null==H||H.focus())});let V=(0,A.f)({open:k===ed.Open,disabled:d,invalid:f,value:O}),[z,W]=(0,eo.m)({inherit:!0}),K=(0,c.useCallback)(()=>{if(void 0!==w)return null==R?void 0:R(w)},[R,w]),X=(0,et.n)();return c.default.createElement(W,{value:z,props:{htmlFor:null==H?void 0:H.id},slot:{open:k===ed.Open,disabled:d}},c.default.createElement(_.j,null,c.default.createElement(ey.Provider,{value:C},c.default.createElement(eO.Provider,{value:F},c.default.createElement(U.z,{value:(0,Z.f)(k,{[ed.Open]:U.A.Open,[ed.Closed]:U.A.Closed})},null!=a&&null!=O&&c.default.createElement($.f,{disabled:d,data:{[a]:O},form:l,onReset:K}),X({ourProps:{ref:y},theirProps:x,slot:V,defaultTag:eE,name:"Listbox"}))))))}),eM=(0,et.t)(function(e,t){var n;let r,o=(0,c.useId)(),i=(0,W.f)(),l=eR("Listbox.Button"),a=ew("Listbox.Button"),{id:p=i||`headlessui-listbox-button-${o}`,disabled:m=l.disabled||!1,autoFocus:h=!1,...g}=e,v=(0,D.V)(t,(0,_.$)(),a.actions.setButtonElement),w=(0,_.f)(),[S,O,R]=(0,Q.f)(a,e=>[e.listboxState,e.buttonElement,e.optionsElement]);!function(e,{trigger:t,action:n,close:r,select:o}){let i=(0,c.useRef)(null),l=(0,c.useRef)(null),a=(0,c.useRef)(null);(0,P.f)(e&&null!==t,"pointerdown",e=>{T.t(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(l.current=e.x,a.current=e.y,i.current=e.timeStamp)}),(0,P.f)(e&&null!==t,"pointerup",e=>{var t,u;let s=i.current;if(null===s||(i.current=null,!T.N(e.target))||5>Math.abs(e.x-(null!=(t=l.current)?t:e.x))&&5>Math.abs(e.y-(null!=(u=a.current)?u:e.y)))return;let c=n(e);switch(c.kind){case 0:return;case 1:e.timeStamp-s>200&&(o(c.target),r());break;case 2:r()}},{capture:!0})}(S===ed.Open,{trigger:O,action:(0,c.useCallback)(e=>{if(null!=O&&O.contains(e.target))return M;let t=e.target.closest('[role="option"]:not([data-disabled])');return T.F(t)?{kind:1,target:t}:null!=R&&R.contains(e.target)?M:F},[O,R]),close:a.actions.closeListbox,select:a.actions.selectActiveOption});let E=(0,b.f)(e=>{switch(e.key){case er.f.Enter:(0,J.o)(e.currentTarget);break;case er.f.Space:case er.f.ArrowDown:e.preventDefault(),a.actions.openListbox({focus:l.value?K.Nothing:K.First});break;case er.f.ArrowUp:e.preventDefault(),a.actions.openListbox({focus:l.value?K.Nothing:K.Last})}}),C=(0,b.f)(e=>{e.key===er.f.Space&&e.preventDefault()}),L=(n=e=>{var t;a.state.listboxState===ed.Open?((0,f.flushSync)(()=>a.actions.closeListbox()),null==(t=a.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),a.actions.openListbox({focus:K.Nothing}))},r=(0,c.useRef)(null),{onPointerDown:(0,b.f)(e=>{r.current=e.pointerType,(0,y.f)(e.currentTarget)||"mouse"!==e.pointerType||e.button!==x.Left||(e.preventDefault(),n(e))}),onClick:(0,b.f)(e=>{"mouse"!==r.current&&((0,y.f)(e.currentTarget)||n(e))})}),I=(0,b.f)(e=>e.preventDefault()),N=(0,eo.I)([p]),H=(0,en.A)(),{isFocusVisible:B,focusProps:V}=(0,u.f)({autoFocus:h}),{isHovered:j,hoverProps:$}=(0,s.f)({isDisabled:m}),{pressed:z,pressProps:U}=(0,d.f)({disabled:m}),q=(0,A.f)({open:S===ed.Open,active:z||S===ed.Open,disabled:m,invalid:l.invalid,value:l.value,hover:j,focus:B,autofocus:h}),X=(0,Q.f)(a,e=>e.listboxState===ed.Open),Y=(0,et.w)(w(),{ref:v,id:p,type:(0,k.f)(e,O),"aria-haspopup":"listbox","aria-controls":null==R?void 0:R.id,"aria-expanded":X,"aria-labelledby":N,"aria-describedby":H,disabled:m||void 0,autoFocus:h,onKeyDown:E,onKeyUp:C,onKeyPress:I},L,V,$,U);return(0,et.n)()({ourProps:Y,theirProps:g,slot:q,defaultTag:"button",name:"Listbox.Button"})}),eF=eo.Q,ek=(0,et.t)(function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-listbox-options-${n}`,anchor:o,portal:i=!1,modal:l=!0,transition:a=!1,...u}=e,s=(0,_.L)(o),[d,p]=(0,c.useState)(null);s&&(i=!0);let m=eR("Listbox.Options"),h=ew("Listbox.Options"),[x,y,S,O]=(0,Q.f)(h,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),E=(0,C.n)(y),T=(0,C.n)(S),P=(0,U.N)(),[L,M]=(0,V.S)(a,d,null!==P?(P&U.A.Open)===U.A.Open:x===ed.Open);(0,R.f)(L,y,h.actions.closeListbox);let F=!O&&l&&x===ed.Open;(0,I.f)(F,T);let k=!O&&l&&x===ed.Open;(0,w.f)(k,{allowed:(0,c.useCallback)(()=>[y,S],[y,S])});let N=!(0,Q.f)(h,h.selectors.didButtonMove)&&L,H=z((0,Q.f)(h,h.selectors.hasFrozenValue)&&!e.static,m.value),B=(0,c.useCallback)(e=>m.compare(H,e),[m.compare,H]),j=(0,Q.f)(h,e=>{var t;if(null==s||!(null!=(t=null==s?void 0:s.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>B(e.dataRef.current.value));return -1===n&&(n=0),n}),$=(()=>{if(null==s)return;if(null===j)return{...s,inner:void 0};let e=Array.from(m.listRef.current.values());return{...s,inner:{listRef:{current:e},index:j}}})(),[W,q]=(0,_.X)($),X=(0,_.S)(),Y=(0,D.V)(t,s?W:null,h.actions.setOptionsElement,p),J=(0,g.f)();(0,c.useEffect)(()=>{S&&x===ed.Open&&((0,ee.M)(S)||null==S||S.focus({preventScroll:!0}))},[x,S]);let en=(0,b.f)(e=>{var t;switch(J.dispose(),e.key){case er.f.Space:if(""!==h.state.searchQuery)return e.preventDefault(),e.stopPropagation(),h.actions.search(e.key);case er.f.Enter:e.preventDefault(),e.stopPropagation(),h.actions.selectActiveOption();break;case(0,Z.f)(m.orientation,{vertical:er.f.ArrowDown,horizontal:er.f.ArrowRight}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:K.Next});case(0,Z.f)(m.orientation,{vertical:er.f.ArrowUp,horizontal:er.f.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:K.Previous});case er.f.Home:case er.f.PageUp:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:K.First});case er.f.End:case er.f.PageDown:return e.preventDefault(),e.stopPropagation(),h.actions.goToOption({focus:K.Last});case er.f.Escape:e.preventDefault(),e.stopPropagation(),(0,f.flushSync)(()=>h.actions.closeListbox()),null==(t=h.state.buttonElement)||t.focus({preventScroll:!0});return;case er.f.Tab:e.preventDefault(),e.stopPropagation(),(0,f.flushSync)(()=>h.actions.closeListbox()),(0,G.e)(h.state.buttonElement,e.shiftKey?G.b.Previous:G.b.Next);break;default:1===e.key.length&&(h.actions.search(e.key),J.setTimeout(()=>h.actions.clearSearch(),350))}}),eo=(0,Q.f)(h,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),el=(0,A.f)({open:x===ed.Open}),ea=(0,et.w)(s?X():{},{id:r,ref:Y,"aria-activedescendant":(0,Q.f)(h,h.selectors.activeDescendantId),"aria-multiselectable":m.mode===ep.Multi||void 0,"aria-labelledby":eo,"aria-orientation":m.orientation,onKeyDown:en,role:"listbox",tabIndex:x===ed.Open?0:void 0,style:{...u.style,...q,"--button-width":(0,v.f)(L,y,!0).width},...(0,V.p)(M)}),eu=(0,et.n)(),es=(0,c.useMemo)(()=>m.mode===ep.Multi?m:{...m,isSelected:B},[m,B]);return c.default.createElement(ei.z,{enabled:!!i&&(e.static||L),ownerDocument:E},c.default.createElement(eO.Provider,{value:es},eu({ourProps:ea,theirProps:u,slot:el,defaultTag:"div",features:eT,visible:N,name:"Listbox.Options"})))}),eI=(0,et.t)(function(e,t){let n,r,o,i=(0,c.useId)(),{id:l=`headlessui-listbox-option-${i}`,disabled:a=!1,value:u,...s}=e,f=!0===(0,c.useContext)(eC),d=eR("Listbox.Option"),p=ew("Listbox.Option"),m=(0,Q.f)(p,e=>p.selectors.isActive(e,l)),h=d.isSelected(u),g=(0,c.useRef)(null),v=(n=(0,c.useRef)(""),r=(0,c.useRef)(""),(0,b.f)(()=>{let e=g.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():H(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return H(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),x=(0,O.f)({disabled:a,value:u,domRef:g,get textValue(){return v()}}),y=(0,D.V)(t,g,e=>{e?d.listRef.current.set(l,e):d.listRef.current.delete(l)}),w=(0,Q.f)(p,e=>p.selectors.shouldScrollIntoView(e,l));(0,S.f)(()=>{if(w)return(0,Y.f)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[w,g]),(0,S.f)(()=>{if(!f)return p.actions.registerOption(l,x),()=>p.actions.unregisterOption(l)},[x,l,f]);let R=(0,b.f)(e=>{if(a)return e.preventDefault();p.actions.selectOption(u)}),E=(0,b.f)(()=>{if(a)return p.actions.goToOption({focus:K.Nothing});p.actions.goToOption({focus:K.Specific,id:l})}),C=(o=(0,c.useRef)([-1,-1]),{wasMoved(e){let t=B(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=B(e)}}),T=(0,b.f)(e=>C.update(e)),P=(0,b.f)(e=>{C.wasMoved(e)&&(a||m&&p.state.activationTrigger===em.Pointer||p.actions.goToOption({focus:K.Specific,id:l},em.Pointer))}),L=(0,b.f)(e=>{C.wasMoved(e)&&(a||m&&p.state.activationTrigger===em.Pointer&&p.actions.goToOption({focus:K.Nothing}))}),M=(0,A.f)({active:m,focus:m,selected:h,disabled:a,selectedOption:h&&f}),F=f?{}:{id:l,ref:y,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":h,disabled:void 0,onClick:R,onFocus:E,onPointerEnter:T,onMouseEnter:T,onPointerMove:P,onMouseMove:P,onPointerLeave:L,onMouseLeave:L},k=(0,et.n)();return!h&&f?null:k({ourProps:F,theirProps:s,slot:M,defaultTag:"div",name:"Listbox.Option"})}),eA=Object.assign(eL,{Button:eM,Label:eF,Options:ek,Option:eI,SelectedOption:(0,et.t)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,D.V)(t)},l=eR("ListboxSelectedOption"),a=(0,A.f)({}),u=void 0===l.value||null===l.value||l.mode===ep.Multi&&Array.isArray(l.value)&&0===l.value.length,s=(0,et.n)();return c.default.createElement(eC.Provider,{value:!0},s({ourProps:i,theirProps:{...o,children:c.default.createElement(c.default.Fragment,null,r&&u?r:n)},slot:a,defaultTag:eP,name:"ListboxSelectedOption"}))})});e.s(["z",0,eA,"H",0,eM,"o",0,eI,"$",0,ek],95470)},36289,3269,14520,94421,40721,42803,22678,e=>{var t=e.i(71645);function n(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}e.s(["f",0,function(e=n){return(0,t.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}],36289);var r=e.i(74080),o=e.i(14189);e.s(["f",0,function(e,n,i){let[l,a]=(0,t.useState)(i),u=void 0!==e,s=(0,t.useRef)(u),c=(0,t.useRef)(!1),f=(0,t.useRef)(!1);return!u||s.current||c.current?u||!s.current||f.current||(f.current=!0,s.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(c.current=!0,s.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[u?e:l,(0,o.f)(e=>(u||(0,r.flushSync)(()=>a(e)),null==n?void 0:n(e)))]}],3269),e.s(["f",0,function(e){let[n]=(0,t.useState)(e);return n}],14520);var i=e.i(46725);function l(e={},n=null,r=[]){for(let[o,i]of Object.entries(e))!function e(n,r,o){if(Array.isArray(o))for(let[t,i]of o.entries())e(n,a(r,t.toString()),i);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,`${o}`]):null==o?n.push([r,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(o)&&!(0,t.isValidElement)(o)&&l(o,r,n)}(r,a(n,o),i);return r}function a(e,t){return e?e+"["+t+"]":t}e.s(["o",0,function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}},"U",0,l],94421);var u=e.i(20),s=e.i(2788);let c=(0,t.createContext)(null);function f({children:e}){let n=(0,t.useContext)(c);if(!n)return t.default.createElement(t.default.Fragment,null,e);let{target:o}=n;return o?(0,r.createPortal)(t.default.createElement(t.default.Fragment,null,e),o):null}function d({setForm:e,formId:n}){return(0,t.useEffect)(()=>{if(n){let t=document.getElementById(n);t&&e(t)}},[e,n]),n?null:t.default.createElement(s.g,{features:s.X.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["f",0,function({data:e,form:n,disabled:r,onReset:o,overrides:a}){let[c,p]=(0,t.useState)(null),m=(0,i.f)();return(0,t.useEffect)(()=>{if(o&&c)return m.addEventListener(c,"reset",o)},[c,n,o]),t.default.createElement(f,null,t.default.createElement(d,{setForm:p,formId:n}),l(e).map(([e,o])=>t.default.createElement(s.g,{features:s.X.Hidden,...(0,u.x)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:e,value:o,...a})})))}],40721);let p=(0,t.createContext)(void 0);function m(){return(0,t.useContext)(p)}e.s(["f",0,m],42803);var h=e.i(35696),g=e.i(55743),v=e.i(94316),b=e.i(1893),x=e.i(13581);let y=(0,t.createContext)(null);function w(e){var n,r,o;let i=null!=(r=null==(n=(0,t.useContext)(y))?void 0:n.value)?r:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}y.displayName="LabelContext";let S=Object.assign((0,u.t)(function(e,n){var r;let i=(0,t.useId)(),l=function e(){let n=(0,t.useContext)(y);if(null===n){let t=Error("You used a