1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8328],{1043:(e,t,n)=>{n.d(t,{q:()=>a});var o=n(12115),r=n(95886);let i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function l(e){var t,n;let o=null!=(t=e.innerText)?t:"",l=e.cloneNode(!0);if(!r.sb(l))return o;let s=!1;for(let e of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),s=!0;let a=s?null!=(n=l.innerText)?n:"":o;return i.test(a)&&(a=a.replace(i,"")),a}var s=n(30797);function a(e){let t=(0,o.useRef)(""),n=(0,o.useRef)("");return(0,s._)(()=>{let o=e.current;if(!o)return"";let r=o.innerText;if(t.current===r)return n.current;let i=(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():l(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return l(e).trim()})(o).trim().toLowerCase();return t.current=r,n.current=i,i})}},7230:(e,t,n)=>{n.d(t,{B:()=>o,X:()=>r});var o=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(o||{});function r(e,t){let n=t.resolveItems();if(n.length<=0)return null;let o=t.resolveActiveIndex(),r=null!=o?o:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 1:-1===r&&(r=n.length);for(let e=r-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 2:for(let e=r+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return o;case 4:for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return o;case 5:return null;default:throw Error("Unexpected object: "+e)}}},8328:(e,t,n)=>{n.d(t,{WF:()=>eb});var o=n(26188),r=n(9906),i=n(12115),l=n(47650),s=n(56119);function a(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}var u=n(30797),c=n(47037),d=n(48014),p=n(90973),f=n(70543),v=n(21231),m=n(6232),h=n(4814),g=n(29583),b=n(48346),x=n(20846),O=n(52503),S=n(34901),y=n(47769),E=n(1043),I=n(97515),C=n(88048),D=n(67258),R=n(95700);function P(e,t){return e?e+"["+t+"]":t}var w=n(84554),L=n(23742);let T=(0,i.createContext)(null);function k(e){let{children:t}=e,n=(0,i.useContext)(T);if(!n)return i.createElement(i.Fragment,null,t);let{target:o}=n;return o?(0,l.createPortal)(i.createElement(i.Fragment,null,t),o):null}function F(e){let{data:t,form:n,disabled:o,onReset:r,overrides:l}=e,[s,a]=(0,i.useState)(null),u=(0,d.L)();return(0,i.useEffect)(()=>{if(r&&s)return u.addEventListener(s,"reset",r)},[s,n,r]),i.createElement(k,null,i.createElement(M,{setForm:a,formId:n}),(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[r,i]of Object.entries(t))!function t(n,o,r){if(Array.isArray(r))for(let[e,i]of r.entries())t(n,P(o,e.toString()),i);else r instanceof Date?n.push([o,r.toISOString()]):"boolean"==typeof r?n.push([o,r?"1":"0"]):"string"==typeof r?n.push([o,r]):"number"==typeof r?n.push([o,"".concat(r)]):null==r?n.push([o,""]):e(r,o,n)}(o,P(n,r),i);return o})(t).map(e=>{let[t,r]=e;return i.createElement(L.j,{features:L.u.Hidden,...(0,w.oE)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:o,name:t,value:r,...l})})}))}function M(e){let{setForm:t,formId:n}=e;return(0,i.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:i.createElement(L.j,{features:L.u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}var _=n(40075),B=n(91525),A=n(16209),N=n(70099),U=n(27677),j=n(7230),X=n(45261),Y=n(95886),Q=n(37254),q=n(27279),z=n(21449),V=n(82691),K=n(84352),H=n(29016),J=n(12692),G=n(58272),Z=n(35933),W=Object.defineProperty,$=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}
1):e[t]=n,ee=(e,t,n)=>($(e,"symbol"!=typeof t?t+"":t,n),n),et=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(et||{}),en=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(en||{}),eo=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(eo||{}),er=(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.RegisterOptions=5]="RegisterOptions",e[e.UnregisterOptions=6]="UnregisterOptions",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e[e.SortOptions=9]="SortOptions",e))(er||{});function ei(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,Q.wl)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),r=n?o.indexOf(n):null;return -1===r&&(r=null),{options:o,activeOptionIndex:r}}let el={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:j.B.Nothing},listboxState:1,__demoMode:!1},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:o}=e.dataRef.current,r=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==r&&(n=r),{...e,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1}},2(e,t){var n,o,r,i,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===j.B.Nothing)return{...s,activeOptionIndex:null};if(t.focus===j.B.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===j.B.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=(0,j.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=i.current)?void 0:o.previousElementSibling)===t.current||(null==(r=t.current)?void 0:r.previousElementSibling)===null)return{...s,activeOptionIndex:l}}}}else if(t.focus===j.B.Next){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,r=(0,j.X)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==r){let t=e.options[r].dataRef.current.domRef;if((null==(i=o.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:r}}}}let a=ei(e),u=(0,j.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)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),o=e.searchQuery+t.value.toLowerCase(),r=(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))}),i=r?e.options.indexOf(r):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n=e.options.concat(t.options),o=e.activeOptionIndex;if(e.pendingFocus.focus!==j.B.Nothing&&(o=(0,j.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:j.B.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.options,o=[],r=new Set(t.options);for(let[e,t]of n.entries())if(r.has(t.id)&&(o.push(e),r.delete(t.id),0===r.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}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>
1e.optionsElement===t.element?e:{...e,optionsElement:t.element},9:e=>e.pendingShouldSort?{...e,...ei(e),pendingShouldSort:!1}:e};class es extends Z.u5{static new(e){let{id:t,__demoMode:n=!1}=e;return new es({id:t,dataRef:{current:{}},listboxState:+!n,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:j.B.Nothing},__demoMode:n})}reduce(e,t){return(0,q.Y)(t.type,el,e,t)}constructor(e){super(e),ee(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:o,value:r}=this.state.dataRef.current;return(0,q.Y)(o,{0:()=>null==t?void 0:t(e),1:()=>{let o=r.slice(),i=o.findIndex(t=>n(t,e));return -1===i?o.push(e):o.splice(i,1),null==t?void 0:t(o)}})},registerOption:(0,Z.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:5,options:e.splice(0)}))]}),unregisterOption:(0,Z.vA)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]}),goToOption:(0,Z.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:()=>{if(null!==this.state.activeOptionIndex){let{dataRef:e,id:t}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(e.current.value),this.send({type:2,focus:j.B.Specific,id:t})}},selectOption:e=>{let t=this.state.options.find(t=>t.id===e);t&&this.actions.onChange(t.dataRef.current.value)},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:7,element:e})},setOptionsElement:e=>{this.send({type:8,element:e})}}),ee(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,r=e.options;return null!==o&&(null==(n=r[o])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,()=>{requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=A.D.get(null);this.disposables.add(t.on(A.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))}}}var ea=n(29479);let eu=(0,i.createContext)(null);function ec(e){let t=(0,i.useContext)(eu);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ed),t}return t}function ed(e){let{id:t,__demoMode:n=!1}=e,o=(0,i.useMemo)(()=>es.new({id:t,__demoMode:n}),[]);return(0,ea.X)(()=>o.dispose()),o}let ep=(0,i.createContext)(null);function ef(e){let t=(0,i.useContext)(ep);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ef),t}return t}ep.displayName="ListboxDataContext";let ev=i.Fragment,em=(0,i.createContext)(!1),eh=w.Ac.RenderStrategy|w.Ac.Static,eg=i.Fragment,eb=Object.assign((0,w.FX)(function(e,t){let n=(0,i.useId)(),o=(0,D._)(),{value:r,defaultValue:l,form:s,name:c,onChange:d,by:p,invalid:f=!1,disabled:m=o||!1,horizontal:h=!1,multiple:b=!1,__demoMode:x=!1,...O}=e,S=h?"horizontal":"vertical",E=(0,y.P)(t),I=function(e){let[t]=(0,i.useState)(e);return t}(l),[C=b?[]:void 0,P]=function(e,t,n){let[o,r]=(0,i.useState)(n),l=void 0!==e,s=(0,i.useRef)(l),a=(0,i.useRef)(!1),c=(0,i.useRef)(!1);return!l||s.current||a.current?l||!s.current||c.current||(c.current=!0,s.current=l,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.")):(a.current=!0,s.current=l,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.")),[l?e:o,(0,u._)(e=>(l||r(e),null==t?void 0:t(e)))]}(r,d,I),L=ed({id:n,__demoMode:x}),T=(0,i.useRef)({static:!1,hold:!1}),k=(0,i.useRef)(new Map),M=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,i.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(p),_=(0,i.useCallback)(e=>(0,q.Y)(U.mode,{[en.Multi]:()=>C.some(t=>M(t,e)),[en.Single]:()=>M(C,e)}),[C]),U=(0,i.useMemo)(()=>({value:C,disabled:m,invalid:f,mode:b?en.Multi:en.Single,orientation:S,onChange:P,compare:M,isSelected:_,optionsPropsRef:T,listRef:k}),[C,m,f,b,S,P,M,_,T,k]);(0,v.s)(()=>{L.state.dataRef.current=U},[U]);let j=(0,N.y)(L,e=>e.listboxState),X=A.D.get(null),Y=(0,N.y)(X,(0,i.useCallback)(e=>X.selectors.isTop(e,n),[X,n])),[z,V]=(0,N.y)(L,e=>[e.buttonElement,e.optionsElement]);(0,g.j)(Y,[z,V],(e,t)=>{L.send({type:er.CloseListbox}
1),(0,Q.Bm)(t,Q.MZ.Loose)||(e.preventDefault(),null==z||z.focus())});let K=(0,i.useMemo)(()=>({open:j===et.Open,disabled:m,invalid:f,value:C}),[j,m,f,C]),[J,G]=(0,H.b0)({inherit:!0}),Z=(0,i.useCallback)(()=>{if(void 0!==I)return null==P?void 0:P(I)},[P,I]),W=(0,w.Ci)();return i.createElement(G,{value:J,props:{htmlFor:null==z?void 0:z.id},slot:{open:j===et.Open,disabled:m}},i.createElement(R.St,null,i.createElement(eu.Provider,{value:L},i.createElement(ep.Provider,{value:U},i.createElement(B.El,{value:(0,q.Y)(j,{[et.Open]:B.Uw.Open,[et.Closed]:B.Uw.Closed})},null!=c&&null!=C&&i.createElement(F,{disabled:m,data:{[c]:C},form:s,onReset:Z}),W({ourProps:{ref:E},theirProps:O,slot:K,defaultTag:ev,name:"Listbox"}))))))}),{Button:(0,w.FX)(function(e,t){let n=(0,i.useId)(),a=(0,_.q)(),c=ef("Listbox.Button"),d=ec("Listbox.Button"),{id:p=a||"headlessui-listbox-button-".concat(n),disabled:f=c.disabled||!1,autoFocus:v=!1,...m}=e,h=(0,y.P)(t,(0,R.Xc)(),d.actions.setButtonElement),g=(0,R.TI)(),[b,S,E]=(0,N.y)(d,e=>[e.listboxState,e.buttonElement,e.optionsElement]),I=b===et.Open;(0,x.s)(I,{trigger:S,action:(0,i.useCallback)(e=>{if(null!=S&&S.contains(e.target))return x.r.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Y.sb(t)?x.r.Select(t):null!=E&&E.contains(e.target)?x.r.Ignore:x.r.Close},[S,E]),close:d.actions.closeListbox,select:d.actions.selectActiveOption});let C=(0,u._)(e=>{switch(e.key){case K.D.Enter:!function(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)){t.click();return}null==(n=o.requestSubmit)||n.call(o)}}(e.currentTarget);break;case K.D.Space:case K.D.ArrowDown:e.preventDefault(),d.actions.openListbox({focus:c.value?j.B.Nothing:j.B.First});break;case K.D.ArrowUp:e.preventDefault(),d.actions.openListbox({focus:c.value?j.B.Nothing:j.B.Last})}}),D=(0,u._)(e=>{e.key===K.D.Space&&e.preventDefault()}),P=(0,u._)(e=>{var t;if(e.button===J.w.Left){if((0,U.l)(e.currentTarget))return e.preventDefault();d.state.listboxState===et.Open?((0,l.flushSync)(()=>d.actions.closeListbox()),null==(t=d.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),d.actions.openListbox({focus:j.B.Nothing}))}}),L=(0,i.useRef)(null),T=(0,u._)(e=>{L.current=e.pointerType,"mouse"===e.pointerType&&P(e)}),k=(0,u._)(e=>{"mouse"!==L.current&&P(e)}),F=(0,u._)(e=>e.preventDefault()),M=(0,H.o2)([p]),B=(0,V.MM)(),{isFocusVisible:A,focusProps:X}=(0,o.o)({autoFocus:v}),{isHovered:Q,hoverProps:q}=(0,r.M)({isDisabled:f}),{pressed:z,pressProps:G}=(0,s.Z)({disabled:f}),Z=(0,i.useMemo)(()=>({open:b===et.Open,active:z||b===et.Open,disabled:f,invalid:c.invalid,value:c.value,hover:Q,focus:A,autofocus:v}),[b,c.value,f,Q,A,z,c.invalid,v]),W=(0,N.y)(d,e=>e.listboxState===et.Open),$=(0,w.v6)(g(),{ref:h,id:p,type:(0,O.c)(e,S),"aria-haspopup":"listbox","aria-controls":null==E?void 0:E.id,"aria-expanded":W,"aria-labelledby":M,"aria-describedby":B,disabled:f||void 0,autoFocus:v,onKeyDown:C,onKeyUp:D,onKeyPress:F,onPointerDown:T,onClick:k},X,q,G);return(0,w.Ci)()({ourProps:$,theirProps:m,slot:Z,defaultTag:"button",name:"Listbox.Button"})}),Label:H.JU,Options:(0,w.FX)(function(e,t){let n=(0,i.useId)(),{id:o="headlessui-listbox-options-".concat(n),anchor:r,portal:s=!1,modal:a=!0,transition:v=!1,...m}=e,g=(0,R.zn)(r),[x,O]=(0,i.useState)(null);g&&(s=!0);let E=ef("Listbox.Options"),I=ec("Listbox.Options"),[D,P,L,T]=(0,N.y)(I,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),k=(0,b.g)(P),F=(0,b.g)(L),M=(0,B.O_)(),[_,A]=(0,C.p)(v,x,null!==M?(M&B.Uw.Open)===B.Uw.Open:D===et.Open);(0,h.O)(_,P,I.actions.closeListbox);let U=!T&&a&&D===et.Open;(0,S.K)(U,F);let X=!T&&a&&D===et.Open;(0,f.v)(X,{allowed:(0,i.useCallback)(()=>[P,L],[P,L])});let Y=D!==et.Open,V=!(0,c.Y)(Y,P)&&_,H=function(e,t){let[n,o]=(0,i.useState)(t);return e||n===t||o(t),e?n:t}(_&&D===et.Closed,E.value),J=(0,u._)(e=>E.compare(H,e)),Z=(0,N.y)(I,e=>{var t;if(null==g||!(null!=(t=null==g?void 0:g.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>J(e.dataRef.current.value));return -1===n&&(n=0),n}),W=(()=>
1{if(null==g)return;if(null===Z)return{...g,inner:void 0};let e=Array.from(E.listRef.current.values());return{...g,inner:{listRef:{current:e},index:Z}}})(),[$,ee]=(0,R.UF)(W),eo=(0,R.G3)(),er=(0,y.P)(t,g?$:null,I.actions.setOptionsElement,O),ei=(0,d.L)();(0,i.useEffect)(()=>{var e;L&&D===et.Open&&L!==(null==(e=(0,z.T)(L))?void 0:e.activeElement)&&(null==L||L.focus({preventScroll:!0}))},[D,L]);let el=(0,u._)(e=>{var t,n;switch(ei.dispose(),e.key){case K.D.Space:if(""!==I.state.searchQuery)return e.preventDefault(),e.stopPropagation(),I.actions.search(e.key);case K.D.Enter:if(e.preventDefault(),e.stopPropagation(),null!==I.state.activeOptionIndex){let{dataRef:e}=I.state.options[I.state.activeOptionIndex];I.actions.onChange(e.current.value)}E.mode===en.Single&&((0,l.flushSync)(()=>I.actions.closeListbox()),null==(t=I.state.buttonElement)||t.focus({preventScroll:!0}));break;case(0,q.Y)(E.orientation,{vertical:K.D.ArrowDown,horizontal:K.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),I.actions.goToOption({focus:j.B.Next});case(0,q.Y)(E.orientation,{vertical:K.D.ArrowUp,horizontal:K.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),I.actions.goToOption({focus:j.B.Previous});case K.D.Home:case K.D.PageUp:return e.preventDefault(),e.stopPropagation(),I.actions.goToOption({focus:j.B.First});case K.D.End:case K.D.PageDown:return e.preventDefault(),e.stopPropagation(),I.actions.goToOption({focus:j.B.Last});case K.D.Escape:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>I.actions.closeListbox()),null==(n=I.state.buttonElement)||n.focus({preventScroll:!0});return;case K.D.Tab:e.preventDefault(),e.stopPropagation(),(0,l.flushSync)(()=>I.actions.closeListbox()),(0,Q.p9)(I.state.buttonElement,e.shiftKey?Q.BD.Previous:Q.BD.Next);break;default:1===e.key.length&&(I.actions.search(e.key),ei.setTimeout(()=>I.actions.clearSearch(),350))}}),es=(0,N.y)(I,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ea=(0,i.useMemo)(()=>({open:D===et.Open}),[D]),eu=(0,w.v6)(g?eo():{},{id:o,ref:er,"aria-activedescendant":(0,N.y)(I,I.selectors.activeDescendantId),"aria-multiselectable":E.mode===en.Multi||void 0,"aria-labelledby":es,"aria-orientation":E.orientation,onKeyDown:el,role:"listbox",tabIndex:D===et.Open?0:void 0,style:{...m.style,...ee,"--button-width":(0,p.L)(P,!0).width},...(0,C.B)(A)}),ed=(0,w.Ci)(),ev=(0,i.useMemo)(()=>E.mode===en.Multi?E:{...E,isSelected:J},[E,J]);return i.createElement(G.ZL,{enabled:!!s&&(e.static||_),ownerDocument:k},i.createElement(ep.Provider,{value:ev},ed({ourProps:eu,theirProps:m,slot:ea,defaultTag:"div",features:eh,visible:V,name:"Listbox.Options"}
1)))}),Option:(0,w.FX)(function(e,t){let n=(0,i.useId)(),{id:o="headlessui-listbox-option-".concat(n),disabled:r=!1,value:s,...a}=e,c=!0===(0,i.useContext)(em),d=ef("Listbox.Option"),p=ec("Listbox.Option"),f=(0,N.y)(p,e=>p.selectors.isActive(e,o)),h=d.isSelected(s),g=(0,i.useRef)(null),b=(0,E.q)(g),x=(0,m.Y)({disabled:r,value:s,domRef:g,get textValue(){return b()}}),O=(0,y.P)(t,g,e=>{e?d.listRef.current.set(o,e):d.listRef.current.delete(o)}),S=(0,N.y)(p,e=>p.selectors.shouldScrollIntoView(e,o));(0,v.s)(()=>{if(S)return(0,X.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[S,g]),(0,v.s)(()=>{if(!c)return p.actions.registerOption(o,x),()=>p.actions.unregisterOption(o)},[x,o,c]);let C=(0,u._)(e=>{var t;if(r)return e.preventDefault();p.actions.onChange(s),d.mode===en.Single&&((0,l.flushSync)(()=>p.actions.closeListbox()),null==(t=p.state.buttonElement)||t.focus({preventScroll:!0}))}),D=(0,u._)(()=>{if(r)return p.actions.goToOption({focus:j.B.Nothing});p.actions.goToOption({focus:j.B.Specific,id:o})}),R=(0,I.J)(),P=(0,u._)(e=>R.update(e)),L=(0,u._)(e=>{R.wasMoved(e)&&(r||f&&p.state.activationTrigger===eo.Pointer||p.actions.goToOption({focus:j.B.Specific,id:o},eo.Pointer))}),T=(0,u._)(e=>{R.wasMoved(e)&&(r||f&&p.state.activationTrigger===eo.Pointer&&p.actions.goToOption({focus:j.B.Nothing}))}),k=(0,i.useMemo)(()=>({active:f,focus:f,selected:h,disabled:r,selectedOption:h&&c}),[f,h,r,c]),F=c?{}:{id:o,ref:O,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":h,disabled:void 0,onClick:C,onFocus:D,onPointerEnter:P,onMouseEnter:P,onPointerMove:L,onMouseMove:L,onPointerLeave:T,onMouseLeave:T},M=(0,w.Ci)();return!h&&c?null:M({ourProps:F,theirProps:a,slot:k,defaultTag:"div",name:"Listbox.Option"})}),SelectedOption:(0,w.FX)(function(e,t){let{options:n,placeholder:o,...r}=e,l={ref:(0,y.P)(t)},s=ef("ListboxSelectedOption"),a=(0,i.useMemo)(()=>({}),[]),u=void 0===s.value||null===s.value||s.mode===en.Multi&&Array.isArray(s.value)&&0===s.value.length,c=(0,w.Ci)();return i.createElement(em.Provider,{value:!0},c({ourProps:l,theirProps:{...r,children:i.createElement(i.Fragment,null,o&&u?o:n)},slot:a,defaultTag:eg,name:"ListboxSelectedOption"}))})})},12692:(e,t,n)=>{n.d(t,{w:()=>o});var o=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(o||{})},20846:(e,t,n)=>{n.d(t,{r:()=>s,s:()=>a});var o=n(12115),r=n(95886),i=n(21875),l=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(l||{});let s={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function a(e,t){let{trigger:n,action:l,close:s,select:a}=t,u=(0,o.useRef)(null),c=(0,o.useRef)(null),d=(0,o.useRef)(null);(0,i.z)(e&&null!==n,"pointerdown",e=>{r.Ll(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(c.current=e.x,d.current=e.y,u.current=e.timeStamp)}),(0,i.z)(e&&null!==n,"pointerup",e=>{var t,n;let o=u.current;if(null===o||(u.current=null,!r.Lk(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>Math.abs(e.y-(null!=(n=d.current)?n:e.y)))return;let i=l(e);switch(i.kind){case 0:return;case 1:e.timeStamp-o>200&&(a(i.target),s());break;case 2:s()}},{capture:!0})}},29016:(e,t,n)=>{n.d(t,{JU:()=>m,b0:()=>v,o2:()=>f,vd:()=>p});var o=n(12115),r=n(30797),i=n(21231),l=n(47769),s=n(67258),a=n(40075),u=n(95886),c=n(84554);let d=(0,o.createContext)(null);function p(){let e=(0,o.useContext)(d);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,p),e}return e}function f(e){var t,n,r;let i=null!=(n=null==(t=(0,o.useContext)(d))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function v(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=f(),[n,i]=(0,o.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,o.useMemo)(()=>function(e){let t=(0,r._)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),o=n.indexOf(e);return -1!==o&&n.splice(o,1),n}))),n=(0,o.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return o.createElement(d.Provider,{value:n},e.children)},[i])]}d.displayName="LabelContext";let m=Object.assign((0,c.FX)(function(e,t){var n;let d=(0,o.useId)(),f=p(),v=(0,a.q)(),m=(0,s._)(),{id:h="headlessui-label-".concat(d),htmlFor:g=null!=v?v:null==(n=f.props)?void 0:n.htmlFor,passive:b=!1,...x}=e,O=(0,l.P)(t);(0,i.s)(()=>f.register(h),[h,f.register]);let S=(0,r._)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&u.H5(e.target))&&(u.kS(t)&&e.preventDefault(),f.props&&"onClick"in f.props&&"function"==typeof f.props.onClick&&f.props.onClick(e),u.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(u.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),y=m||!1,E=(0,o.useMemo)(()=>({...f.slot,disabled:y}),[f.slot,y]),I={ref:O,...f.props,id:h,htmlFor:g,onClick:S};return b&&("onClick"in I&&(delete I.htmlFor,delete I.onClick),"onClick"in x&&delete x.onClick),(0,c.Ci)()({ourProps:I,theirProps:x,slot:E,defaultTag:g?"label":"div",name:f.name||"Label"})}),{})},40075:(e,t,n)=>{n.d(t,{q:()=>i});var o=n(12115);let r=(0,o.createContext)(void 0);function i(){return(0,o.useContext)(r)}},47037:(e,t,n)=>{n.d(t,{Y:()=>i});var o=n(12115),r=n(21231);function i(e,t){let n=(0,o.useRef)({left:0,top:0});if((0,r.s)(()=>
1{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)},[e,t]),null==t||!e||t===document.activeElement)return!1;let i=t.getBoundingClientRect();return i.top!==n.current.top||i.left!==n.current.left}},67258:(e,t,n)=>{n.d(t,{_:()=>i});var o=n(12115);let r=(0,o.createContext)(void 0);function i(){return(0,o.useContext)(r)}},70543:(e,t,n)=>{n.d(t,{v:()=>c});var o=n(45261),r=n(21449),i=n(16213),l=n(21231);let s=new Map,a=new Map;function u(e){var t;let n=null!=(t=a.get(e))?t:0;return a.set(e,n+1),0!==n||(s.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=a.get(e))?t:1;if(1===n?a.delete(e):a.set(e,n-1),1!==n)return;let o=s.get(e);o&&(null===o["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",o["aria-hidden"]),e.inert=o.inert,s.delete(e))})(e)}function c(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=(0,i.S)(e,"inert-others");(0,l.s)(()=>{var e,i;if(!s)return;let l=(0,o.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&l.add(u(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let e of a){if(!e)continue;let t=(0,r.T)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some(t=>e.contains(t))||l.add(u(e));n=n.parentElement}}return l.dispose},[s,t,n])}},82691:(e,t,n)=>{n.d(t,{MM:()=>c,rU:()=>d});var o=n(12115),r=n(30797),i=n(21231),l=n(47769),s=n(67258),a=n(84554);let u=(0,o.createContext)(null);function c(){var e,t;return null!=(t=null==(e=(0,o.useContext)(u))?void 0:e.value)?t:void 0}function d(){let[e,t]=(0,o.useState)([]);return[e.length>0?e.join(" "):void 0,(0,o.useMemo)(()=>function(e){let n=(0,r._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),o=n.indexOf(e);return -1!==o&&n.splice(o,1),n}))),i=(0,o.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return o.createElement(u.Provider,{value:i},e.children)},[t])]}u.displayName="DescriptionContext",Object.assign((0,a.FX)(function(e,t){let n=(0,o.useId)(),r=(0,s._)(),{id:c="headlessui-description-".concat(n),...d}=e,p=function e(){let t=(0,o.useContext)(u);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),f=(0,l.P)(t);(0,i.s)(()=>p.register(c),[c,p.register]);let v=r||!1,m=(0,o.useMemo)(()=>({...p.slot,disabled:v}),[p.slot,v]),h={ref:f,...p.props,id:c};return(0,a.Ci)()({ourProps:h,theirProps:d,slot:m,defaultTag:"p",name:p.name||"Description"})}),{})},97515:(e,t,n)=>{n.d(t,{J:()=>i});var o=n(12115);function r(e){return[e.screenX,e.screenY]}function i(){let e=(0,o.useRef)([-1,-1]);return{wasMoved(t){let n=r(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=r(t)}}}}}]); 2//# sourceMappingURL=8328.314fce87af196af9.js.map
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.