-
Notifications
You must be signed in to change notification settings - Fork 1
/
8897.0977e4c3.iframe.bundle.js
1 lines (1 loc) · 42.4 KB
/
8897.0977e4c3.iframe.bundle.js
1
"use strict";(globalThis.webpackChunk_yoast_ui_library=globalThis.webpackChunk_yoast_ui_library||[]).push([[8897],{"../../node_modules/@headlessui/react/dist/components/combobox/combobox.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{G:()=>ko});var react=__webpack_require__("../../node_modules/react/index.js"),use_computed=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-computed.js"),use_disposables=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-disposables.js"),use_event=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-event.js"),use_id=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-id.js"),use_iso_morphic_effect=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js"),use_latest_value=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-latest-value.js"),use_outside_click=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-outside-click.js"),use_resolve_button_type=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js"),use_sync_refs=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-sync-refs.js"),owner=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/owner.js");var i,n,calculate_active_index=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/calculate-active-index.js"),disposables=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/disposables.js"),render=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/render.js"),bugs=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/bugs.js"),match=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/match.js"),utils_form=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/form.js"),focus_management=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/focus-management.js"),internal_hidden=__webpack_require__("../../node_modules/@headlessui/react/dist/internal/hidden.js"),open_closed=__webpack_require__("../../node_modules/@headlessui/react/dist/internal/open-closed.js"),keyboard=__webpack_require__("../../node_modules/@headlessui/react/dist/components/keyboard.js"),use_controllable=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-controllable.js"),use_watch=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-watch.js"),use_tracked_pointer=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js"),Fe=((n=Fe||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),_e=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(_e||{}),ke=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(ke||{}),we=((i=we||{})[i.OpenCombobox=0]="OpenCombobox",i[i.CloseCombobox=1]="CloseCombobox",i[i.GoToOption=2]="GoToOption",i[i.RegisterOption=3]="RegisterOption",i[i.UnregisterOption=4]="UnregisterOption",i[i.RegisterLabel=5]="RegisterLabel",i);function ne(t,r=(n=>n)){let n=null!==t.activeOptionIndex?t.options[t.activeOptionIndex]:null,o=(0,focus_management.wl)(r(t.options.slice()),(u=>u.dataRef.current.domRef.current)),a=n?o.indexOf(n):null;return-1===a&&(a=null),{options:o,activeOptionIndex:a}}let Be={1:t=>t.dataRef.current.disabled||1===t.comboboxState?t:{...t,activeOptionIndex:null,comboboxState:1},0(t){if(t.dataRef.current.disabled||0===t.comboboxState)return t;let r=t.activeOptionIndex,{isSelected:n}=t.dataRef.current,o=t.options.findIndex((a=>n(a.dataRef.current.value)));return-1!==o&&(r=o),{...t,comboboxState:0,activeOptionIndex:r}},2(t,r){var a;if(t.dataRef.current.disabled||t.dataRef.current.optionsRef.current&&!t.dataRef.current.optionsPropsRef.current.static&&1===t.comboboxState)return t;let n=ne(t);if(null===n.activeOptionIndex){let u=n.options.findIndex((i=>!i.dataRef.current.disabled));-1!==u&&(n.activeOptionIndex=u)}let o=(0,calculate_active_index.X)(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...t,...n,activeOptionIndex:o,activationTrigger:null!=(a=r.trigger)?a:1}},3:(t,r)=>{let n={id:r.id,dataRef:r.dataRef},o=ne(t,(u=>[...u,n]));null===t.activeOptionIndex&&t.dataRef.current.isSelected(r.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(n));let a={...t,...o,activationTrigger:1};return t.dataRef.current.__demoMode&&void 0===t.dataRef.current.value&&(a.activeOptionIndex=0),a},4:(t,r)=>{let n=ne(t,(o=>{let a=o.findIndex((u=>u.id===r.id));return-1!==a&&o.splice(a,1),o}));return{...t,...n,activationTrigger:1}},5:(t,r)=>({...t,labelId:r.id})},re=(0,react.createContext)(null);function Q(t){let r=(0,react.useContext)(re);if(null===r){let n=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Q),n}return r}re.displayName="ComboboxActionsContext";let ae=(0,react.createContext)(null);function j(t){let r=(0,react.useContext)(ae);if(null===r){let n=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,j),n}return r}function Ue(t,r){return(0,match.Y)(r.type,Be,t,r)}ae.displayName="ComboboxDataContext";let Ge=react.Fragment;let He=(0,render.FX)((function Ne(t,r){let{value:n,defaultValue:o,onChange:a,name:u,by:i=((b,m)=>b===m),disabled:d=!1,__demoMode:c=!1,nullable:e=!1,multiple:p=!1,...P}=t,[s=(p?[]:void 0),y]=(0,use_controllable.P)(n,a,o),[T,C]=(0,react.useReducer)(Ue,{dataRef:(0,react.createRef)(),comboboxState:c?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,react.useRef)(!1),R=(0,react.useRef)({static:!1,hold:!1}),K=(0,react.useRef)(null),h=(0,react.useRef)(null),w=(0,react.useRef)(null),B=(0,react.useRef)(null),D=(0,use_event._)("string"==typeof i?(b,m)=>{let A=i;return(null==b?void 0:b[A])===(null==m?void 0:m[A])}:i),W=(0,react.useCallback)((b=>(0,match.Y)(f.mode,{1:()=>s.some((m=>D(m,b))),0:()=>D(s,b)})),[s]),f=(0,react.useMemo)((()=>({...T,optionsPropsRef:R,labelRef:K,inputRef:h,buttonRef:w,optionsRef:B,value:s,defaultValue:o,disabled:d,mode:p?1:0,get activeOptionIndex(){if(g.current&&null===T.activeOptionIndex&&T.options.length>0){let b=T.options.findIndex((m=>!m.dataRef.current.disabled));if(-1!==b)return b}return T.activeOptionIndex},compare:D,isSelected:W,nullable:e,__demoMode:c})),[s,o,d,p,e,c,T]);(0,use_iso_morphic_effect.s)((()=>{T.dataRef.current=f}),[f]),(0,use_outside_click.j)([f.buttonRef,f.inputRef,f.optionsRef],(()=>U.closeCombobox()),0===f.comboboxState);let F=(0,react.useMemo)((()=>({open:0===f.comboboxState,disabled:d,activeIndex:f.activeOptionIndex,activeOption:null===f.activeOptionIndex?null:f.options[f.activeOptionIndex].dataRef.current.value,value:s})),[f,d,s]),_=(0,use_event._)((b=>{let m=f.options.find((A=>A.id===b));!m||V(m.dataRef.current.value)})),O=(0,use_event._)((()=>{if(null!==f.activeOptionIndex){let{dataRef:b,id:m}=f.options[f.activeOptionIndex];V(b.current.value),U.goToOption(calculate_active_index.B.Specific,m)}})),l=(0,use_event._)((()=>{C({type:0}),g.current=!0})),L=(0,use_event._)((()=>{C({type:1}),g.current=!1})),E=(0,use_event._)(((b,m,A)=>(g.current=!1,b===calculate_active_index.B.Specific?C({type:2,focus:calculate_active_index.B.Specific,id:m,trigger:A}):C({type:2,focus:b,trigger:A})))),X=(0,use_event._)(((b,m)=>(C({type:3,id:b,dataRef:m}),()=>C({type:4,id:b})))),Y=(0,use_event._)((b=>(C({type:5,id:b}),()=>C({type:5,id:null})))),V=(0,use_event._)((b=>(0,match.Y)(f.mode,{0:()=>null==y?void 0:y(b),1(){let m=f.value.slice(),A=m.findIndex(($=>D($,b)));return-1===A?m.push(b):m.splice(A,1),null==y?void 0:y(m)}}))),U=(0,react.useMemo)((()=>({onChange:V,registerOption:X,registerLabel:Y,goToOption:E,closeCombobox:L,openCombobox:l,selectActiveOption:O,selectOption:_})),[]),de=null===r?{}:{ref:r},Z=(0,react.useRef)(null),ce=(0,use_disposables.L)();return(0,react.useEffect)((()=>{!Z.current||void 0!==o&&ce.addEventListener(Z.current,"reset",(()=>{V(o)}))}),[Z,V]),react.createElement(re.Provider,{value:U},react.createElement(ae.Provider,{value:f},react.createElement(open_closed.El,{value:(0,match.Y)(f.comboboxState,{0:open_closed.Uw.Open,1:open_closed.Uw.Closed})},null!=u&&null!=s&&(0,utils_form.h)({[u]:s}).map((([b,m],A)=>react.createElement(internal_hidden.j,{features:internal_hidden.O.Hidden,ref:0===A?$=>{var le;Z.current=null!=(le=null==$?void 0:$.closest("form"))?le:null}:void 0,...(0,render.oE)({key:b,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:b,value:m})}))),(0,render.XX)({ourProps:de,theirProps:P,slot:F,defaultTag:Ge,name:"Combobox"}))))})),Ke=(0,render.FX)((function(r,n){var f,F,_,O;let o=(0,use_id.B)(),{id:a=`headlessui-combobox-input-${o}`,onChange:u,displayValue:i,type:d="text",...c}=r,e=j("Combobox.Input"),p=Q("Combobox.Input"),P=(0,use_sync_refs.P)(e.inputRef,n),s=(0,react.useRef)(!1),y=(0,use_disposables.L)(),T="function"==typeof i&&void 0!==e.value?null!=(l=i(e.value))?l:"":"string"==typeof e.value?e.value:"";var l;(0,use_watch.F)((([l,L],[E,X])=>{s.current||!e.inputRef.current||(0===X&&1===L||l!==E)&&(e.inputRef.current.value=l)}),[T,e.comboboxState]),(0,use_watch.F)((([l],[L])=>{if(0===l&&1===L){let E=e.inputRef.current;if(!E)return;let X=E.value,{selectionStart:Y,selectionEnd:V,selectionDirection:U}=E;E.value="",E.value=X,null!==U?E.setSelectionRange(Y,V,U):E.setSelectionRange(Y,V)}}),[e.comboboxState]);let C=(0,react.useRef)(!1),g=(0,use_event._)((()=>{C.current=!0})),R=(0,use_event._)((()=>{setTimeout((()=>{C.current=!1}))})),K=(0,use_event._)((l=>{switch(s.current=!0,l.key){case keyboard.D.Backspace:case keyboard.D.Delete:if(0!==e.mode||!e.nullable)return;let L=l.currentTarget;y.requestAnimationFrame((()=>{""===L.value&&(p.onChange(null),e.optionsRef.current&&(e.optionsRef.current.scrollTop=0),p.goToOption(calculate_active_index.B.Nothing))}));break;case keyboard.D.Enter:if(s.current=!1,0!==e.comboboxState||C.current)return;if(l.preventDefault(),l.stopPropagation(),null===e.activeOptionIndex)return void p.closeCombobox();p.selectActiveOption(),0===e.mode&&p.closeCombobox();break;case keyboard.D.ArrowDown:return s.current=!1,l.preventDefault(),l.stopPropagation(),(0,match.Y)(e.comboboxState,{0:()=>{p.goToOption(calculate_active_index.B.Next)},1:()=>{p.openCombobox()}});case keyboard.D.ArrowUp:return s.current=!1,l.preventDefault(),l.stopPropagation(),(0,match.Y)(e.comboboxState,{0:()=>{p.goToOption(calculate_active_index.B.Previous)},1:()=>{p.openCombobox(),y.nextFrame((()=>{e.value||p.goToOption(calculate_active_index.B.Last)}))}});case keyboard.D.Home:if(l.shiftKey)break;return s.current=!1,l.preventDefault(),l.stopPropagation(),p.goToOption(calculate_active_index.B.First);case keyboard.D.PageUp:return s.current=!1,l.preventDefault(),l.stopPropagation(),p.goToOption(calculate_active_index.B.First);case keyboard.D.End:if(l.shiftKey)break;return s.current=!1,l.preventDefault(),l.stopPropagation(),p.goToOption(calculate_active_index.B.Last);case keyboard.D.PageDown:return s.current=!1,l.preventDefault(),l.stopPropagation(),p.goToOption(calculate_active_index.B.Last);case keyboard.D.Escape:return s.current=!1,0!==e.comboboxState?void 0:(l.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&l.stopPropagation(),p.closeCombobox());case keyboard.D.Tab:if(s.current=!1,0!==e.comboboxState)return;0===e.mode&&p.selectActiveOption(),p.closeCombobox()}})),h=(0,use_event._)((l=>{p.openCombobox(),null==u||u(l)})),w=(0,use_event._)((()=>{s.current=!1})),B=(0,use_computed.H)((()=>{if(e.labelId)return[e.labelId].join(" ")}),[e.labelId]),D=(0,react.useMemo)((()=>({open:0===e.comboboxState,disabled:e.disabled})),[e]),W={ref:P,id:a,role:"combobox",type:d,"aria-controls":null==(f=e.optionsRef.current)?void 0:f.id,"aria-expanded":e.disabled?void 0:0===e.comboboxState,"aria-activedescendant":null===e.activeOptionIndex||null==(F=e.options[e.activeOptionIndex])?void 0:F.id,"aria-multiselectable":1===e.mode||void 0,"aria-labelledby":B,"aria-autocomplete":"list",defaultValue:null!=(O=null!=(_=r.defaultValue)?_:void 0!==e.defaultValue?null==i?void 0:i(e.defaultValue):null)?O:e.defaultValue,disabled:e.disabled,onCompositionStart:g,onCompositionEnd:R,onKeyDown:K,onChange:h,onBlur:w};return(0,render.XX)({ourProps:W,theirProps:c,slot:D,defaultTag:"input",name:"Combobox.Input"})})),Xe=(0,render.FX)((function(r,n){var C;let o=j("Combobox.Button"),a=Q("Combobox.Button"),u=(0,use_sync_refs.P)(o.buttonRef,n),i=(0,use_id.B)(),{id:d=`headlessui-combobox-button-${i}`,...c}=r,e=(0,use_disposables.L)(),p=(0,use_event._)((g=>{switch(g.key){case keyboard.D.ArrowDown:return g.preventDefault(),g.stopPropagation(),1===o.comboboxState&&a.openCombobox(),e.nextFrame((()=>{var R;return null==(R=o.inputRef.current)?void 0:R.focus({preventScroll:!0})}));case keyboard.D.ArrowUp:return g.preventDefault(),g.stopPropagation(),1===o.comboboxState&&(a.openCombobox(),e.nextFrame((()=>{o.value||a.goToOption(calculate_active_index.B.Last)}))),e.nextFrame((()=>{var R;return null==(R=o.inputRef.current)?void 0:R.focus({preventScroll:!0})}));case keyboard.D.Escape:return 0!==o.comboboxState?void 0:(g.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&g.stopPropagation(),a.closeCombobox(),e.nextFrame((()=>{var R;return null==(R=o.inputRef.current)?void 0:R.focus({preventScroll:!0})})));default:return}})),P=(0,use_event._)((g=>{if((0,bugs.l)(g.currentTarget))return g.preventDefault();0===o.comboboxState?a.closeCombobox():(g.preventDefault(),a.openCombobox()),e.nextFrame((()=>{var R;return null==(R=o.inputRef.current)?void 0:R.focus({preventScroll:!0})}))})),s=(0,use_computed.H)((()=>{if(o.labelId)return[o.labelId,d].join(" ")}),[o.labelId,d]),y=(0,react.useMemo)((()=>({open:0===o.comboboxState,disabled:o.disabled,value:o.value})),[o]),T={ref:u,id:d,type:(0,use_resolve_button_type.c)(r,o.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(C=o.optionsRef.current)?void 0:C.id,"aria-expanded":o.disabled?void 0:0===o.comboboxState,"aria-labelledby":s,disabled:o.disabled,onClick:P,onKeyDown:p};return(0,render.XX)({ourProps:T,theirProps:c,slot:y,defaultTag:"button",name:"Combobox.Button"})})),Je=(0,render.FX)((function(r,n){let o=(0,use_id.B)(),{id:a=`headlessui-combobox-label-${o}`,...u}=r,i=j("Combobox.Label"),d=Q("Combobox.Label"),c=(0,use_sync_refs.P)(i.labelRef,n);(0,use_iso_morphic_effect.s)((()=>d.registerLabel(a)),[a]);let e=(0,use_event._)((()=>{var s;return null==(s=i.inputRef.current)?void 0:s.focus({preventScroll:!0})})),p=(0,react.useMemo)((()=>({open:0===i.comboboxState,disabled:i.disabled})),[i]);return(0,render.XX)({ourProps:{ref:c,id:a,onClick:e},theirProps:u,slot:p,defaultTag:"label",name:"Combobox.Label"})})),Qe=render.O5.RenderStrategy|render.O5.Static,Ye=(0,render.FX)((function(r,n){let o=(0,use_id.B)(),{id:a=`headlessui-combobox-options-${o}`,hold:u=!1,...i}=r,d=j("Combobox.Options"),c=(0,use_sync_refs.P)(d.optionsRef,n),e=(0,open_closed.O_)(),p=null!==e?e===open_closed.Uw.Open:0===d.comboboxState;(0,use_iso_morphic_effect.s)((()=>{var T;d.optionsPropsRef.current.static=null!=(T=r.static)&&T}),[d.optionsPropsRef,r.static]),(0,use_iso_morphic_effect.s)((()=>{d.optionsPropsRef.current.hold=u}),[d.optionsPropsRef,u]),function F({container:e,accept:t,walk:r,enabled:c=!0}){let o=(0,react.useRef)(t),l=(0,react.useRef)(r);(0,react.useEffect)((()=>{o.current=t,l.current=r}),[t,r]),(0,use_iso_morphic_effect.s)((()=>{if(!e||!c)return;let n=(0,owner.T)(e);if(!n)return;let f=o.current,p=l.current,d=Object.assign((i=>f(i)),{acceptNode:f}),u=n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;u.nextNode();)p(u.currentNode)}),[e,c,o,l])}({container:d.optionsRef.current,enabled:0===d.comboboxState,accept:T=>"option"===T.getAttribute("role")?NodeFilter.FILTER_REJECT:T.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(T){T.setAttribute("role","none")}});let P=(0,use_computed.H)((()=>{var T,C;return null!=(C=d.labelId)?C:null==(T=d.buttonRef.current)?void 0:T.id}),[d.labelId,d.buttonRef.current]),s=(0,react.useMemo)((()=>({open:0===d.comboboxState})),[d]);return(0,render.XX)({ourProps:{"aria-labelledby":P,role:"listbox",id:a,ref:c},theirProps:i,slot:s,defaultTag:"ul",features:Qe,visible:p,name:"Combobox.Options"})})),ze=(0,render.FX)((function(r,n){var F,_;let o=(0,use_id.B)(),{id:a=`headlessui-combobox-option-${o}`,disabled:u=!1,value:i,...d}=r,c=j("Combobox.Option"),e=Q("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,P=c.isSelected(i),s=(0,react.useRef)(null),y=(0,use_latest_value.Y)({disabled:u,value:i,domRef:s,textValue:null==(_=null==(F=s.current)?void 0:F.textContent)?void 0:_.toLowerCase()}),T=(0,use_sync_refs.P)(n,s),C=(0,use_event._)((()=>e.selectOption(a)));(0,use_iso_morphic_effect.s)((()=>e.registerOption(a,y)),[y,a]);let g=(0,react.useRef)(!c.__demoMode);(0,use_iso_morphic_effect.s)((()=>{if(!c.__demoMode)return;let O=(0,disposables.e)();return O.requestAnimationFrame((()=>{g.current=!0})),O.dispose}),[]),(0,use_iso_morphic_effect.s)((()=>{if(0!==c.comboboxState||!p||!g.current||0===c.activationTrigger)return;let O=(0,disposables.e)();return O.requestAnimationFrame((()=>{var l,L;null==(L=null==(l=s.current)?void 0:l.scrollIntoView)||L.call(l,{block:"nearest"})})),O.dispose}),[s,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let R=(0,use_event._)((O=>{if(u)return O.preventDefault();C(),0===c.mode&&e.closeCombobox()})),K=(0,use_event._)((()=>{if(u)return e.goToOption(calculate_active_index.B.Nothing);e.goToOption(calculate_active_index.B.Specific,a)})),h=(0,use_tracked_pointer.J)(),w=(0,use_event._)((O=>h.update(O))),B=(0,use_event._)((O=>{!h.wasMoved(O)||u||p||e.goToOption(calculate_active_index.B.Specific,a,0)})),D=(0,use_event._)((O=>{!h.wasMoved(O)||u||!p||c.optionsPropsRef.current.hold||e.goToOption(calculate_active_index.B.Nothing)})),W=(0,react.useMemo)((()=>({active:p,selected:P,disabled:u})),[p,P,u]);return(0,render.XX)({ourProps:{id:a,ref:T,role:"option",tabIndex:!0===u?void 0:-1,"aria-disabled":!0===u||void 0,"aria-selected":P,disabled:void 0,onClick:R,onFocus:K,onPointerEnter:w,onMouseEnter:w,onPointerMove:B,onMouseMove:B,onPointerLeave:D,onMouseLeave:D},theirProps:d,slot:W,defaultTag:"li",name:"Combobox.Option"})})),ko=Object.assign(He,{Input:Ke,Button:Xe,Label:Je,Options:Ye,Option:ze})},"../../node_modules/@headlessui/react/dist/components/listbox/listbox.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{W:()=>Mt});var n,o,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),_hooks_use_disposables_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-disposables.js"),_hooks_use_id_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-id.js"),_hooks_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js"),_hooks_use_computed_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-computed.js"),_hooks_use_sync_refs_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-sync-refs.js"),_utils_render_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/render.js"),_utils_match_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/match.js"),_utils_disposables_js__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/disposables.js"),_keyboard_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../node_modules/@headlessui/react/dist/components/keyboard.js"),_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/calculate-active-index.js"),_utils_bugs_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/bugs.js"),_utils_focus_management_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/focus-management.js"),_internal_open_closed_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../node_modules/@headlessui/react/dist/internal/open-closed.js"),_hooks_use_resolve_button_type_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js"),_hooks_use_outside_click_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-outside-click.js"),_internal_hidden_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../node_modules/@headlessui/react/dist/internal/hidden.js"),_utils_form_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/form.js"),_utils_owner_js__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("../../node_modules/@headlessui/react/dist/utils/owner.js"),_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-event.js"),_hooks_use_controllable_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-controllable.js"),_hooks_use_latest_value_js__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-latest-value.js"),_hooks_use_tracked_pointer_js__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js"),Ue=((o=Ue||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),Be=(o=>(o[o.Single=0]="Single",o[o.Multi=1]="Multi",o))(Be||{}),He=(o=>(o[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o))(He||{}),Ge=((n=Ge||{})[n.OpenListbox=0]="OpenListbox",n[n.CloseListbox=1]="CloseListbox",n[n.GoToOption=2]="GoToOption",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterOption=5]="RegisterOption",n[n.UnregisterOption=6]="UnregisterOption",n[n.RegisterLabel=7]="RegisterLabel",n);function q(e,r=(o=>o)){let o=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,p=(0,_utils_focus_management_js__WEBPACK_IMPORTED_MODULE_1__.wl)(r(e.options.slice()),(c=>c.dataRef.current.domRef.current)),i=o?p.indexOf(o):null;return-1===i&&(i=null),{options:p,activeOptionIndex:i}}let je={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let r=e.activeOptionIndex,{isSelected:o}=e.dataRef.current,p=e.options.findIndex((i=>o(i.dataRef.current.value)));return-1!==p&&(r=p),{...e,listboxState:0,activeOptionIndex:r}},2(e,r){var i;if(e.dataRef.current.disabled||1===e.listboxState)return e;let o=q(e),p=(0,_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.X)(r,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...e,...o,searchQuery:"",activeOptionIndex:p,activationTrigger:null!=(i=r.trigger)?i:1}},3:(e,r)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let p=""!==e.searchQuery?0:1,i=e.searchQuery+r.value.toLowerCase(),t=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+p).concat(e.options.slice(0,e.activeOptionIndex+p)):e.options).find((n=>{var T;return!n.dataRef.current.disabled&&(null==(T=n.dataRef.current.textValue)?void 0:T.startsWith(i))})),u=t?e.options.indexOf(t):-1;return-1===u||u===e.activeOptionIndex?{...e,searchQuery:i}:{...e,searchQuery:i,activeOptionIndex:u,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,r)=>{let o={id:r.id,dataRef:r.dataRef},p=q(e,(i=>[...i,o]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(r.dataRef.current.value)&&(p.activeOptionIndex=p.options.indexOf(o)),{...e,...p}},6:(e,r)=>{let o=q(e,(p=>{let i=p.findIndex((c=>c.id===r.id));return-1!==i&&p.splice(i,1),p}));return{...e,...o,activationTrigger:1}},7:(e,r)=>({...e,labelId:r.id})},X=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);function B(e){let r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(X);if(null===r){let o=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,B),o}return r}X.displayName="ListboxActionsContext";let J=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);function H(e){let r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(J);if(null===r){let o=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,H),o}return r}function Ke(e,r){return(0,_utils_match_js__WEBPACK_IMPORTED_MODULE_3__.Y)(r.type,je,e,r)}J.displayName="ListboxDataContext";let Ve=react__WEBPACK_IMPORTED_MODULE_0__.Fragment,Ne=(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.FX)((function(r,o){let{value:p,defaultValue:i,name:c,onChange:t,by:u=((l,f)=>l===f),disabled:n=!1,horizontal:T=!1,multiple:g=!1,...A}=r;const m=T?"horizontal":"vertical";let P=(0,_hooks_use_sync_refs_js__WEBPACK_IMPORTED_MODULE_5__.P)(o),[y=(g?[]:void 0),S]=(0,_hooks_use_controllable_js__WEBPACK_IMPORTED_MODULE_6__.P)(p,t,i),[h,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(Ke,{dataRef:(0,react__WEBPACK_IMPORTED_MODULE_0__.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),a=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({static:!1,hold:!1}),x=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),D=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),Q=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),M=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)("string"==typeof u?(l,f)=>{let v=u;return(null==l?void 0:l[v])===(null==f?void 0:f[v])}:u),L=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((l=>(0,_utils_match_js__WEBPACK_IMPORTED_MODULE_3__.Y)(d.mode,{1:()=>y.some((f=>M(f,l))),0:()=>M(y,l)})),[y]),d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({...h,value:y,disabled:n,mode:g?1:0,orientation:m,compare:M,isSelected:L,optionsPropsRef:a,labelRef:x,buttonRef:D,optionsRef:Q})),[y,n,g,h]);(0,_hooks_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_8__.s)((()=>{h.dataRef.current=d}),[d]),(0,_hooks_use_outside_click_js__WEBPACK_IMPORTED_MODULE_9__.j)([d.buttonRef,d.optionsRef],((l,f)=>{var v;s({type:1}),(0,_utils_focus_management_js__WEBPACK_IMPORTED_MODULE_1__.Bm)(f,_utils_focus_management_js__WEBPACK_IMPORTED_MODULE_1__.MZ.Loose)||(l.preventDefault(),null==(v=d.buttonRef.current)||v.focus())}),0===d.listboxState);let G=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({open:0===d.listboxState,disabled:n,value:y})),[d,n,y]),ie=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((l=>{let f=d.options.find((v=>v.id===l));!f||k(f.dataRef.current.value)})),re=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((()=>{if(null!==d.activeOptionIndex){let{dataRef:l,id:f}=d.options[d.activeOptionIndex];k(l.current.value),s({type:2,focus:_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Specific,id:f})}})),ae=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((()=>s({type:0}))),le=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((()=>s({type:1}))),se=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)(((l,f,v)=>l===_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Specific?s({type:2,focus:_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Specific,id:f,trigger:v}):s({type:2,focus:l,trigger:v}))),ue=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)(((l,f)=>(s({type:5,id:l,dataRef:f}),()=>s({type:6,id:l})))),pe=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((l=>(s({type:7,id:l}),()=>s({type:7,id:null})))),k=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((l=>(0,_utils_match_js__WEBPACK_IMPORTED_MODULE_3__.Y)(d.mode,{0:()=>null==S?void 0:S(l),1(){let f=d.value.slice(),v=f.findIndex((w=>M(w,l)));return-1===v?f.push(l):f.splice(v,1),null==S?void 0:S(f)}}))),de=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((l=>s({type:3,value:l}))),ce=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((()=>s({type:4}))),fe=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({onChange:k,registerOption:ue,registerLabel:pe,goToOption:se,closeListbox:le,openListbox:ae,selectActiveOption:re,selectOption:ie,search:de,clearSearch:ce})),[]),be={ref:P},j=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),Te=(0,_hooks_use_disposables_js__WEBPACK_IMPORTED_MODULE_10__.L)();return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{!j.current||void 0!==i&&Te.addEventListener(j.current,"reset",(()=>{k(i)}))}),[j,k]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(X.Provider,{value:fe},react__WEBPACK_IMPORTED_MODULE_0__.createElement(J.Provider,{value:d},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_internal_open_closed_js__WEBPACK_IMPORTED_MODULE_11__.El,{value:(0,_utils_match_js__WEBPACK_IMPORTED_MODULE_3__.Y)(d.listboxState,{0:_internal_open_closed_js__WEBPACK_IMPORTED_MODULE_11__.Uw.Open,1:_internal_open_closed_js__WEBPACK_IMPORTED_MODULE_11__.Uw.Closed})},null!=c&&null!=y&&(0,_utils_form_js__WEBPACK_IMPORTED_MODULE_12__.h)({[c]:y}).map((([l,f],v)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(_internal_hidden_js__WEBPACK_IMPORTED_MODULE_13__.j,{features:_internal_hidden_js__WEBPACK_IMPORTED_MODULE_13__.O.Hidden,ref:0===v?w=>{var Y;j.current=null!=(Y=null==w?void 0:w.closest("form"))?Y:null}:void 0,...(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.oE)({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:l,value:f})}))),(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.XX)({ourProps:be,theirProps:A,slot:G,defaultTag:Ve,name:"Listbox"}))))})),Qe=(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.FX)((function(r,o){var h;let p=(0,_hooks_use_id_js__WEBPACK_IMPORTED_MODULE_14__.B)(),{id:i=`headlessui-listbox-button-${p}`,...c}=r,t=H("Listbox.Button"),u=B("Listbox.Button"),n=(0,_hooks_use_sync_refs_js__WEBPACK_IMPORTED_MODULE_5__.P)(t.buttonRef,o),T=(0,_hooks_use_disposables_js__WEBPACK_IMPORTED_MODULE_10__.L)(),g=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((s=>{switch(s.key){case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Space:case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Enter:case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.ArrowDown:s.preventDefault(),u.openListbox(),T.nextFrame((()=>{t.value||u.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.First)}));break;case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.ArrowUp:s.preventDefault(),u.openListbox(),T.nextFrame((()=>{t.value||u.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Last)}))}})),A=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((s=>{if(s.key===_keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Space)s.preventDefault()})),m=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((s=>{if((0,_utils_bugs_js__WEBPACK_IMPORTED_MODULE_16__.l)(s.currentTarget))return s.preventDefault();0===t.listboxState?(u.closeListbox(),T.nextFrame((()=>{var a;return null==(a=t.buttonRef.current)?void 0:a.focus({preventScroll:!0})}))):(s.preventDefault(),u.openListbox())})),P=(0,_hooks_use_computed_js__WEBPACK_IMPORTED_MODULE_17__.H)((()=>{if(t.labelId)return[t.labelId,i].join(" ")}),[t.labelId,i]),y=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({open:0===t.listboxState,disabled:t.disabled,value:t.value})),[t]),S={ref:n,id:i,type:(0,_hooks_use_resolve_button_type_js__WEBPACK_IMPORTED_MODULE_18__.c)(r,t.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(h=t.optionsRef.current)?void 0:h.id,"aria-expanded":t.disabled?void 0:0===t.listboxState,"aria-labelledby":P,disabled:t.disabled,onKeyDown:g,onKeyUp:A,onClick:m};return(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.XX)({ourProps:S,theirProps:c,slot:y,defaultTag:"button",name:"Listbox.Button"})})),ze=(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.FX)((function(r,o){let p=(0,_hooks_use_id_js__WEBPACK_IMPORTED_MODULE_14__.B)(),{id:i=`headlessui-listbox-label-${p}`,...c}=r,t=H("Listbox.Label"),u=B("Listbox.Label"),n=(0,_hooks_use_sync_refs_js__WEBPACK_IMPORTED_MODULE_5__.P)(t.labelRef,o);(0,_hooks_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_8__.s)((()=>u.registerLabel(i)),[i]);let T=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((()=>{var m;return null==(m=t.buttonRef.current)?void 0:m.focus({preventScroll:!0})})),g=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({open:0===t.listboxState,disabled:t.disabled})),[t]);return(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.XX)({ourProps:{ref:n,id:i,onClick:T},theirProps:c,slot:g,defaultTag:"label",name:"Listbox.Label"})})),Xe=_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.O5.RenderStrategy|_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.O5.Static,Je=(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.FX)((function(r,o){var s;let p=(0,_hooks_use_id_js__WEBPACK_IMPORTED_MODULE_14__.B)(),{id:i=`headlessui-listbox-options-${p}`,...c}=r,t=H("Listbox.Options"),u=B("Listbox.Options"),n=(0,_hooks_use_sync_refs_js__WEBPACK_IMPORTED_MODULE_5__.P)(t.optionsRef,o),T=(0,_hooks_use_disposables_js__WEBPACK_IMPORTED_MODULE_10__.L)(),g=(0,_hooks_use_disposables_js__WEBPACK_IMPORTED_MODULE_10__.L)(),A=(0,_internal_open_closed_js__WEBPACK_IMPORTED_MODULE_11__.O_)(),m=null!==A?A===_internal_open_closed_js__WEBPACK_IMPORTED_MODULE_11__.Uw.Open:0===t.listboxState;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{var x;let a=t.optionsRef.current;!a||0===t.listboxState&&a!==(null==(x=(0,_utils_owner_js__WEBPACK_IMPORTED_MODULE_19__.T)(a))?void 0:x.activeElement)&&a.focus({preventScroll:!0})}),[t.listboxState,t.optionsRef]);let P=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((a=>{switch(g.dispose(),a.key){case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Space:if(""!==t.searchQuery)return a.preventDefault(),a.stopPropagation(),u.search(a.key);case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Enter:if(a.preventDefault(),a.stopPropagation(),null!==t.activeOptionIndex){let{dataRef:x}=t.options[t.activeOptionIndex];u.onChange(x.current.value)}0===t.mode&&(u.closeListbox(),(0,_utils_disposables_js__WEBPACK_IMPORTED_MODULE_20__.e)().nextFrame((()=>{var x;return null==(x=t.buttonRef.current)?void 0:x.focus({preventScroll:!0})})));break;case(0,_utils_match_js__WEBPACK_IMPORTED_MODULE_3__.Y)(t.orientation,{vertical:_keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.ArrowDown,horizontal:_keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.ArrowRight}):return a.preventDefault(),a.stopPropagation(),u.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Next);case(0,_utils_match_js__WEBPACK_IMPORTED_MODULE_3__.Y)(t.orientation,{vertical:_keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.ArrowUp,horizontal:_keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.ArrowLeft}):return a.preventDefault(),a.stopPropagation(),u.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Previous);case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Home:case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.PageUp:return a.preventDefault(),a.stopPropagation(),u.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.First);case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.End:case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.PageDown:return a.preventDefault(),a.stopPropagation(),u.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Last);case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Escape:return a.preventDefault(),a.stopPropagation(),u.closeListbox(),T.nextFrame((()=>{var x;return null==(x=t.buttonRef.current)?void 0:x.focus({preventScroll:!0})}));case _keyboard_js__WEBPACK_IMPORTED_MODULE_15__.D.Tab:a.preventDefault(),a.stopPropagation();break;default:1===a.key.length&&(u.search(a.key),g.setTimeout((()=>u.clearSearch()),350))}})),y=(0,_hooks_use_computed_js__WEBPACK_IMPORTED_MODULE_17__.H)((()=>{var a,x,D;return null!=(D=null==(a=t.labelRef.current)?void 0:a.id)?D:null==(x=t.buttonRef.current)?void 0:x.id}),[t.labelRef.current,t.buttonRef.current]),S=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({open:0===t.listboxState})),[t]),h={"aria-activedescendant":null===t.activeOptionIndex||null==(s=t.options[t.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===t.mode||void 0,"aria-labelledby":y,"aria-orientation":t.orientation,id:i,onKeyDown:P,role:"listbox",tabIndex:0,ref:n};return(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.XX)({ourProps:h,theirProps:c,slot:S,defaultTag:"ul",features:Xe,visible:m,name:"Listbox.Options"})})),Ze=(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.FX)((function(r,o){let p=(0,_hooks_use_id_js__WEBPACK_IMPORTED_MODULE_14__.B)(),{id:i=`headlessui-listbox-option-${p}`,disabled:c=!1,value:t,...u}=r,n=H("Listbox.Option"),T=B("Listbox.Option"),g=null!==n.activeOptionIndex&&n.options[n.activeOptionIndex].id===i,A=n.isSelected(t),m=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),P=(0,_hooks_use_latest_value_js__WEBPACK_IMPORTED_MODULE_21__.Y)({disabled:c,value:t,domRef:m,get textValue(){var L,d;return null==(d=null==(L=m.current)?void 0:L.textContent)?void 0:d.toLowerCase()}}),y=(0,_hooks_use_sync_refs_js__WEBPACK_IMPORTED_MODULE_5__.P)(o,m);(0,_hooks_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_8__.s)((()=>{if(0!==n.listboxState||!g||0===n.activationTrigger)return;let L=(0,_utils_disposables_js__WEBPACK_IMPORTED_MODULE_20__.e)();return L.requestAnimationFrame((()=>{var d,G;null==(G=null==(d=m.current)?void 0:d.scrollIntoView)||G.call(d,{block:"nearest"})})),L.dispose}),[m,g,n.listboxState,n.activationTrigger,n.activeOptionIndex]),(0,_hooks_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_8__.s)((()=>T.registerOption(i,P)),[P,i]);let S=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((L=>{if(c)return L.preventDefault();T.onChange(t),0===n.mode&&(T.closeListbox(),(0,_utils_disposables_js__WEBPACK_IMPORTED_MODULE_20__.e)().nextFrame((()=>{var d;return null==(d=n.buttonRef.current)?void 0:d.focus({preventScroll:!0})})))})),h=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((()=>{if(c)return T.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Nothing);T.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Specific,i)})),s=(0,_hooks_use_tracked_pointer_js__WEBPACK_IMPORTED_MODULE_22__.J)(),a=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((L=>s.update(L))),x=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((L=>{!s.wasMoved(L)||c||g||T.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Specific,i,0)})),D=(0,_hooks_use_event_js__WEBPACK_IMPORTED_MODULE_7__._)((L=>{!s.wasMoved(L)||c||!g||T.goToOption(_utils_calculate_active_index_js__WEBPACK_IMPORTED_MODULE_2__.B.Nothing)})),Q=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>({active:g,selected:A,disabled:c})),[g,A,c]);return(0,_utils_render_js__WEBPACK_IMPORTED_MODULE_4__.XX)({ourProps:{id:i,ref:y,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":A,disabled:void 0,onClick:S,onFocus:h,onPointerEnter:a,onMouseEnter:a,onPointerMove:x,onMouseMove:x,onPointerLeave:D,onMouseLeave:D},theirProps:u,slot:Q,defaultTag:"li",name:"Listbox.Option"})})),Mt=Object.assign(Ne,{Button:Qe,Label:ze,Options:Je,Option:Ze})},"../../node_modules/@headlessui/react/dist/hooks/use-watch.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{F:()=>m});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),_use_event_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@headlessui/react/dist/hooks/use-event.js");function m(u,t){let e=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)([]),r=(0,_use_event_js__WEBPACK_IMPORTED_MODULE_1__._)(u);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let o=[...e.current];for(let[n,a]of t.entries())if(e.current[n]!==a){let l=r(t,o);return e.current=t,l}}),[r,...t])}},"../../node_modules/@heroicons/react/outline/esm/XIcon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function XIcon(props,svgRef){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:svgRef},props),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}))},"../../node_modules/@heroicons/react/solid/esm/XIcon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function XIcon(props,svgRef){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:svgRef},props),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}))},"../../node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{BN:()=>MDXContext,RP:()=>useMDXComponents,gz:()=>withMDXComponents,xA:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js");const MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext({});function withMDXComponents(Component){return function boundMDXComponent(props){const allComponents=useMDXComponents(props.components);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component,{...props,allComponents})}}function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>"function"==typeof components?components(contextComponents):{...contextComponents,...components}),[contextComponents,components])}const emptyObject={};function MDXProvider({components,children,disableParentContext}){let allComponents=useMDXComponents(components);return disableParentContext&&(allComponents=components||emptyObject),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},children)}}}]);