1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="556f3924-ee37-41e2-b85e-246b12f3fb13",e._sentryDebugIdIdentifier="sentry-dbid-556f3924-ee37-41e2-b85e-246b12f3fb13")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3026],{18444:(e,t,n)=>{n.d(t,{P:()=>l});var o=n(12115),i=n(47650),r=n(30797);function l(e,t,n){let[l,s]=(0,o.useState)(n),a=void 0!==e,u=(0,o.useRef)(a),c=(0,o.useRef)(!1),d=(0,o.useRef)(!1);return!a||u.current||c.current?a||!u.current||d.current||(d.current=!0,u.current=a,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,u.current=a,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.")),[a?e:l,(0,r._)(e=>(a||(0,i.flushSync)(()=>s(e)),null==t?void 0:t(e)))]}},37122:(e,t,n)=>{n.d(t,{CL:()=>d});var o=n(12115),i=n(47650),r=n(48014),l=n(39732),s=n(84554),a=n(23742);let u=(0,o.createContext)(null);function c(e){let{children:t}=e,n=(0,o.useContext)(u);if(!n)return o.createElement(o.Fragment,null,t);let{target:r}=n;return r?(0,i.createPortal)(o.createElement(o.Fragment,null,t),r):null}function d(e){let{data:t,form:n,disabled:i,onReset:u,overrides:d}=e,[f,v]=(0,o.useState)(null),b=(0,r.L)();return(0,o.useEffect)(()=>{if(u&&f)return b.addEventListener(f,"reset",u)},[f,n,u]),o.createElement(c,null,o.createElement(p,{setForm:v,formId:n}),(0,l.h)(t).map(e=>{let[t,r]=e;return o.createElement(a.j,{features:a.u.Hidden,...(0,s.oE)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:i,name:t,value:r,...d})})}))}function p(e){let{setForm:t,formId:n}=e;return(0,o.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:o.createElement(a.j,{features:a.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},39732:(e,t,n)=>{n.d(t,{h:()=>function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[l,s]of Object.entries(t))!function t(n,r,l){if(Array.isArray(l))for(let[e,o]of l.entries())t(n,i(r,e.toString()),o);else l instanceof Date?n.push([r,l.toISOString()]):"boolean"==typeof l?n.push([r,l?"1":"0"]):"string"==typeof l?n.push([r,l]):"number"==typeof l?n.push([r,"".concat(l)]):null==l?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)}(l)&&!(0,o.isValidElement)(l)&&e(l,r,n)}(r,i(n,l),s);return r},q:()=>r});var o=n(12115);function i(e,t){return e?e+"["+t+"]":t}function r(e){var t,n;let o=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(o){for(let t of o.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=o.requestSubmit)||n.call(o)}}},72016:(e,t,n)=>{n.d(t,{K:()=>i});var o=n(12115);function i(e){let[t]=(0,o.useState)(e);return t}},73026:(e,t,n)=>{n.d(t,{WF:()=>ex,go:()=>eh,h7:()=>eO,wh:()=>eg});var o=n(26188),i=n(9906),r=n(12115),l=n(47650),s=n(56119),a=n(77353),u=n(18444),c=n(72016),d=n(48014),p=n(90973),f=n(30797),v=n(99846),b=n(70543),h=n(21231),m=n(6232),g=n(4814),O=n(29583),x=n(48346),y=n(20846),S=n(52503),I=n(34901),E=n(35867),P=n(47769),D=n(1043),R=n(97515),L=n(88048),_=n(67258),w=n(95700),T=n(37122),C=n(40075),M=n(91525),B=n(16209),k=n(70099),F=n(7230),A=n(45261),N=n(95886),U=n(37254),V=n(39732),j=n(27279),z=n(21449),X=n(84554),Q=n(82691),K=n(84352),Y=n(29016),q=n(77962),H=n(35933),G=n(20412),J=Object.defineProperty,Z=(e,t,n)=>(((e,t,n)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n),W=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(W||{}),$=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))($||{}),ee=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(ee||{}),et=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.SelectOption=5]="SelectOption",e[e.RegisterOptions=6]="RegisterOptions",e[e.UnregisterOptions=7]="UnregisterOptions",e[e.SetButtonElement=8]="SetButtonElement",e[e.SetOptionsElement=9]="SetOptionsElement",e[e.SortOptions=10]="SortOptions",e[e.MarkButtonAsMoved=11]="MarkButtonAsMoved",e))(et||{});function en(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,o=(0,U.wl)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?o.indexOf(n):null;return -1===i&&(i=null),{options:o,activeOptionIndex:i}}let eo={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?G.Fc.Tracked((0,G.JO)(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:F.B.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:o}=e.dataRef.current,i=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==i&&(n=i),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:G.Fc.Idle}},2(e,t){var n,o,i,r,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===F.B.Nothing)return{...s,activeOptionIndex:null};if(t.focus===F.B.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===F.B.Previous){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,l=(0,F.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==(o=r.current)?void 0:o.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...s,activeOptionIndex:l}}}}else if(t.focus===F.B.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,i=(0,F.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:i}}}}let a=en(e),u=(0,F.X)(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeOptionIndex:u}},3:(e,t)=>
1{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),o=e.searchQuery+t.value.toLowerCase(),i=(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(o))}),r=i?e.options.indexOf(i):-1;return -1===r||r===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:r,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),o=e.activeOptionIndex;if(e.pendingFocus.focus!==F.B.Nothing&&(o=(0,F.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&&(o=e)}}return{...e,options:n,activeOptionIndex:o,pendingFocus:{focus:F.B.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,o=[],i=new Set(t.options);for(let[e,t]of n.entries())if(i.has(t.id)&&(o.push(e),i.delete(t.id),0===i.size))break;if(o.length>0)for(let e of(n=n.slice(),o.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,...en(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:G.Fc.Moved}};class ei extends H.u5{static new(e){let{id:t,__demoMode:n=!1}=e;return new ei({id:t,dataRef:{current:{}},listboxState:+!n,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:F.B.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:G.Fc.Idle})}reduce(e,t){return(0,j.Y)(t.type,eo,e,t)}constructor(e){super(e),Z(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:i}=this.state.dataRef.current;return(0,j.Y)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=i.slice(),r=o.findIndex(t=>n(t,e));return -1===r?o.push(e):o.splice(r,1),null==t?void 0:t(o)}})},registerOption:(0,H.vA)(()=>{let e=[],t=new Set;return[(n,o)=>{t.has(o)||(t.add(o),e.push({id:n,dataRef:o}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,H.vA)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,H.vA)(()=>{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})}}),Z(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,o=e.options;return null===n||null==(t=o[n])?void 0:t.id},isActive(e,t){var n;let o=e.activeOptionIndex,i=e.options;return null!==o&&(null==(n=i[o])?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=B.D.get(null);this.disposables.add(t.on(B.Q.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=>
1{t.buttonElement&&(e.dispose(),e.add((0,G.nY)(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}))})}}var er=n(29479);let el=(0,r.createContext)(null);function es(e){let t=(0,r.useContext)(el);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ea),t}return t}function ea(e){let{id:t,__demoMode:n=!1}=e,o=(0,r.useMemo)(()=>ei.new({id:t,__demoMode:n}),[]);return(0,er.X)(()=>o.dispose()),o}let eu=(0,r.createContext)(null);function ec(e){let t=(0,r.useContext)(eu);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ec),t}return t}eu.displayName="ListboxDataContext";let ed=r.Fragment,ep=(0,r.createContext)(!1),ef=X.Ac.RenderStrategy|X.Ac.Static,ev=r.Fragment,eb=(0,X.FX)(function(e,t){let n=(0,r.useId)(),o=(0,_._)(),{value:i,defaultValue:l,form:s,name:d,onChange:p,by:f,invalid:v=!1,disabled:b=o||!1,horizontal:m=!1,multiple:g=!1,__demoMode:x=!1,...y}=e,S=(0,P.P)(t),I=(0,c.K)(l),[D=g?[]:void 0,R]=(0,u.P)(i,p,I),L=ea({id:n,__demoMode:x}),C=(0,r.useRef)({static:!1,hold:!1}),F=(0,r.useRef)(new Map),A=(0,a.t)(f),N=(0,r.useCallback)(e=>(0,j.Y)(V.mode,{[$.Multi]:()=>D.some(t=>A(t,e)),[$.Single]:()=>A(D,e)}),[D]),V=(0,E._)({value:D,disabled:b,invalid:v,mode:g?$.Multi:$.Single,orientation:m?"horizontal":"vertical",onChange:R,compare:A,isSelected:N,optionsPropsRef:C,listRef:F});(0,h.s)(()=>{L.state.dataRef.current=V},[V]);let z=(0,k.y)(L,e=>e.listboxState),Q=B.D.get(null),K=(0,k.y)(Q,(0,r.useCallback)(e=>Q.selectors.isTop(e,n),[Q,n])),[q,H]=(0,k.y)(L,e=>[e.buttonElement,e.optionsElement]);(0,O.j)(K,[q,H],(e,t)=>{L.send({type:et.CloseListbox}),(0,U.Bm)(t,U.MZ.Loose)||(e.preventDefault(),null==q||q.focus())});let G=(0,E._)({open:z===W.Open,disabled:b,invalid:v,value:D}),[J,Z]=(0,Y.b0)({inherit:!0}),ee=(0,r.useCallback)(()=>{if(void 0!==I)return null==R?void 0:R(I)},[R,I]),en=(0,X.Ci)();return r.createElement(Z,{value:J,props:{htmlFor:null==q?void 0:q.id},slot:{open:z===W.Open,disabled:b}},r.createElement(w.St,null,r.createElement(el.Provider,{value:L},r.createElement(eu.Provider,{value:V},r.createElement(M.El,{value:(0,j.Y)(z,{[W.Open]:M.Uw.Open,[W.Closed]:M.Uw.Closed})},null!=d&&null!=D&&r.createElement(T.CL,{disabled:b,data:{[d]:D},form:s,onReset:ee}),en({ourProps:{ref:S},theirProps:y,slot:G,defaultTag:ed,name:"Listbox"}))))))}),eh=(0,X.FX)(function(e,t){let n=(0,r.useId)(),a=(0,C.q)(),u=ec("Listbox.Button"),c=es("Listbox.Button"),{id:d=a||"headlessui-listbox-button-".concat(n),disabled:p=u.disabled||!1,autoFocus:b=!1,...h}=e,m=(0,P.P)(t,(0,w.Xc)(),c.actions.setButtonElement),g=(0,w.TI)(),[O,x,I]=(0,k.y)(c,e=>[e.listboxState,e.buttonElement,e.optionsElement]),D=O===W.Open;(0,y.s)(D,{trigger:x,action:(0,r.useCallback)(e=>{if(null!=x&&x.contains(e.target))return y.r.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return N.sb(t)?y.r.Select(t):null!=I&&I.contains(e.target)?y.r.Ignore:y.r.Close},[x,I]),close:c.actions.closeListbox,select:c.actions.selectActiveOption});let R=(0,f._)(e=>{switch(e.key){case K.D.Enter:(0,V.q)(e.currentTarget);break;case K.D.Space:case K.D.ArrowDown:e.preventDefault(),c.actions.openListbox({focus:u.value?F.B.Nothing:F.B.First});break;case K.D.ArrowUp:e.preventDefault(),c.actions.openListbox({focus:u.value?F.B.Nothing:F.B.Last})}}),L=(0,f._)(e=>{e.key===K.D.Space&&e.preventDefault()}),_=(0,v.O)(e=>{var t;c.state.listboxState===W.Open?((0,l.flushSync)(()=>c.actions.closeListbox()),null==(t=c.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c.actions.openListbox({focus:F.B.Nothing}))}),T=(0,f._)(e=>e.preventDefault()),M=(0,Y.o2)([d]),B=(0,Q.MM)(),{isFocusVisible:A,focusProps:U}=(0,o.o)({autoFocus:b}),{isHovered:j,hoverProps:z}=(0,i.M)({isDisabled:p}),{pressed:q,pressProps:H}=(0,s.Z)({disabled:p}),G=(0,E._)({open:O===W.Open,active:q||O===W.Open,disabled:p,invalid:u.invalid,value:u.value,hover:j,focus:A,autofocus:b}),J=(0,k.y)(c,e=>e.listboxState===W.Open),Z=(0,X.v6)(g(),{ref:m,id:d,type:(0,S.c)(e,x),"aria-haspopup":"listbox","aria-controls":null==I?void 0:I.id,"aria-expanded":J,"aria-labelledby":M,"aria-describedby":B,disabled:p||void 0,autoFocus:b,onKeyDown:R,onKeyUp:L,onKeyPress:T},_,U,z,H);return(0,X.Ci)()({ourProps:Z,theirProps:h,slot:G,defaultTag:"button",name:"Listbox.Button"})}),em=Y.JU,eg=(0,X.FX)(function(e,t){let n=(0,r.useId)(),{id:o="headlessui-listbox-options-".concat(n),anchor:i,portal:s=!1,modal:
1a=!0,transition:u=!1,...c}=e,v=(0,w.zn)(i),[h,m]=(0,r.useState)(null);v&&(s=!0);let O=ec("Listbox.Options"),y=es("Listbox.Options"),[S,D,R,_]=(0,k.y)(y,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),T=(0,x.g)(D),C=(0,x.g)(R),B=(0,M.O_)(),[A,N]=(0,L.p)(u,h,null!==B?(B&M.Uw.Open)===M.Uw.Open:S===W.Open);(0,g.O)(A,D,y.actions.closeListbox);let V=!_&&a&&S===W.Open;(0,I.K)(V,C);let Q=!_&&a&&S===W.Open;(0,b.v)(Q,{allowed:(0,r.useCallback)(()=>[D,R],[D,R])});let Y=!(0,k.y)(y,y.selectors.didButtonMove)&&A,H=function(e,t){let[n,o]=(0,r.useState)(t);return e||n===t||o(t),e?n:t}((0,k.y)(y,y.selectors.hasFrozenValue)&&!e.static,O.value),G=(0,r.useCallback)(e=>O.compare(H,e),[O.compare,H]),J=(0,k.y)(y,e=>{var t;if(null==v||!(null!=(t=null==v?void 0:v.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>G(e.dataRef.current.value));return -1===n&&(n=0),n}),Z=(()=>{if(null==v)return;if(null===J)return{...v,inner:void 0};let e=Array.from(O.listRef.current.values());return{...v,inner:{listRef:{current:e},index:J}}})(),[ee,et]=(0,w.UF)(Z),en=(0,w.G3)(),eo=(0,P.P)(t,v?ee:null,y.actions.setOptionsElement,m),ei=(0,d.L)();(0,r.useEffect)(()=>{R&&S===W.Open&&((0,z.X7)(R)||null==R||R.focus({preventScroll:!0}))},[S,R]);let er=(0,f._)(e=>{var t;switch(ei.dispose(),e.key){case K.D.Space:if(""!==y.state.searchQuery)return e.preventDefault(),e.stopPropagation(),y.actions.search(e.key);case K.D.Enter:e.preventDefault(),e.stopPropagation(),y.actions.selectActiveOption();break;case(0,j.Y)(O.orientation,{vertical:K.D.ArrowDown,horizontal:K.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:F.B.Next});case(0,j.Y)(O.orientation,{vertical:K.D.ArrowUp,horizontal:K.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:F.B.Previous});case K.D.Home:case K.D.PageUp:return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:F.B.First});case K.D.End:case K.D.PageDown:return e.preventDefault(),e.stopPropagation(),y.actions.goToOption({focus:F.B.Last});case K.D.Escape:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>y.actions.closeListbox()),null==(t=y.state.buttonElement)||t.focus({preventScroll:!0});return;case K.D.Tab:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>y.actions.closeListbox()),(0,U.p9)(y.state.buttonElement,e.shiftKey?U.BD.Previous:U.BD.Next);break;default:1===e.key.length&&(y.actions.search(e.key),ei.setTimeout(()=>y.actions.clearSearch(),350))}}),el=(0,k.y)(y,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ea=(0,E._)({open:S===W.Open}),ed=(0,X.v6)(v?en():{},{id:o,ref:eo,"aria-activedescendant":(0,k.y)(y,y.selectors.activeDescendantId),"aria-multiselectable":O.mode===$.Multi||void 0,"aria-labelledby":el,"aria-orientation":O.orientation,onKeyDown:er,role:"listbox",tabIndex:S===W.Open?0:void 0,style:{...c.style,...et,"--button-width":(0,p.L)(A,D,!0).width},...(0,L.B)(N)}),ep=(0,X.Ci)(),ev=(0,r.useMemo)(()=>O.mode===$.Multi?O:{...O,isSelected:G},[O,G]);return r.createElement(q.ZL,{enabled:!!s&&(e.static||A),ownerDocument:T},r.createElement(eu.Provider,{value:ev},ep({ourProps:ed,theirProps:c,slot:ea,defaultTag:"div",features:ef,visible:Y,name:"Listbox.Options"}
1)))}),eO=(0,X.FX)(function(e,t){let n=(0,r.useId)(),{id:o="headlessui-listbox-option-".concat(n),disabled:i=!1,value:l,...s}=e,a=!0===(0,r.useContext)(ep),u=ec("Listbox.Option"),c=es("Listbox.Option"),d=(0,k.y)(c,e=>c.selectors.isActive(e,o)),p=u.isSelected(l),v=(0,r.useRef)(null),b=(0,D.q)(v),g=(0,m.Y)({disabled:i,value:l,domRef:v,get textValue(){return b()}}),O=(0,P.P)(t,v,e=>{e?u.listRef.current.set(o,e):u.listRef.current.delete(o)}),x=(0,k.y)(c,e=>c.selectors.shouldScrollIntoView(e,o));(0,h.s)(()=>{if(x)return(0,A.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[x,v]),(0,h.s)(()=>{if(!a)return c.actions.registerOption(o,g),()=>c.actions.unregisterOption(o)},[g,o,a]);let y=(0,f._)(e=>{if(i)return e.preventDefault();c.actions.selectOption(l)}),S=(0,f._)(()=>{if(i)return c.actions.goToOption({focus:F.B.Nothing});c.actions.goToOption({focus:F.B.Specific,id:o})}),I=(0,R.J)(),L=(0,f._)(e=>I.update(e)),_=(0,f._)(e=>{I.wasMoved(e)&&(i||d&&c.state.activationTrigger===ee.Pointer||c.actions.goToOption({focus:F.B.Specific,id:o},ee.Pointer))}),w=(0,f._)(e=>{I.wasMoved(e)&&(i||d&&c.state.activationTrigger===ee.Pointer&&c.actions.goToOption({focus:F.B.Nothing}))}),T=(0,E._)({active:d,focus:d,selected:p,disabled:i,selectedOption:p&&a}),C=a?{}:{id:o,ref:O,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":p,disabled:void 0,onClick:y,onFocus:S,onPointerEnter:L,onMouseEnter:L,onPointerMove:_,onMouseMove:_,onPointerLeave:w,onMouseLeave:w},M=(0,X.Ci)();return!p&&a?null:M({ourProps:C,theirProps:s,slot:T,defaultTag:"div",name:"Listbox.Option"})}),ex=Object.assign(eb,{Button:eh,Label:em,Options:eg,Option:eO,SelectedOption:(0,X.FX)(function(e,t){let{options:n,placeholder:o,...i}=e,l={ref:(0,P.P)(t)},s=ec("ListboxSelectedOption"),a=(0,E._)({}),u=void 0===s.value||null===s.value||s.mode===$.Multi&&Array.isArray(s.value)&&0===s.value.length,c=(0,X.Ci)();return r.createElement(ep.Provider,{value:!0},c({ourProps:l,theirProps:{...i,children:r.createElement(r.Fragment,null,o&&u?o:n)},slot:a,defaultTag:ev,name:"ListboxSelectedOption"}))})})},77353:(e,t,n)=>{n.d(t,{t:()=>r});var o=n(12115);function i(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}function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,o.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}}}]);
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.