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AM,iBAIV+M,EAAWW,MAAQ,SAAenN,GAChC,IAAIoN,EAAyD,QAAlC,IAAA9N,YAAWmJ,GAClC4E,EAA2C,QAApB,UAC3B,OAAQD,GAAwBC,EAAuB,gBAAoBb,EAAYS,OAAOC,OAAO,GAAIlN,IAAU,gBAAoBoK,EAAiB6C,OAAOC,OAAO,GAAIlN,KAG5KwM,EAAWc,KAAOd,E,cG3SlB,EAxCe,SAAC,GAA0D,IAAxD9H,EAAuD,EAAvDA,SAAU6I,EAA6C,EAA7CA,YAAavP,EAAgC,EAAhCA,QAASwP,EAAuB,EAAvBA,UAAWC,EAAY,EAAZA,MAC3D,OACE,gBAACjO,EAAD,CAAS/E,MAAOiK,EAAUxE,SAAUqN,GAClC,uBACEjF,UAAS,2BAA4BmF,GAAgB,mBAErD,gBAACjO,EAAQoC,OAAT,CAAgB0G,UAAU,6DACxB,4BAAO5D,GAAsB8I,GAC7B,gBAAC,MAAD,CAAclF,UAAU,2BAE1B,gBAACkE,EAAD,CACEQ,GAAIjN,EAAAA,SACJ2K,MAAM,mCACNC,UAAU,YACVC,QAAQ,cACRC,MAAM,kCACNC,UAAU,cACVC,QAAQ,aAER,gBAACvL,EAAQyD,QAAT,CAAiBqF,UAAU,gEACxBtK,EAAQqJ,KAAI,SAAC/I,EAAQoP,GAAT,OACX,gBAAClO,EAAQ8E,OAAT,CACEnC,IAAKuL,EACLjT,MAAO6D,EACPgK,UAAW,kCAAG7D,OACU,cAAgB,IAD7B,OAAWC,SAEP,cAAgB,MAI/B,4BAAOpG","sources":["webpack://mch/./node_modules/@headlessui/react/dist/utils/calculate-active-index.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/components/listbox/listbox.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/utils/disposables.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/hooks/use-disposables.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/hooks/use-computed.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/components/transitions/utils/transition.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/utils/once.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/components/transitions/transition.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/hooks/use-is-mounted.esm.js","webpack://mch/./node_modules/@headlessui/react/dist/hooks/use-is-initial-render.esm.js","webpack://mch/./src/components/filter.js"],"sourcesContent":["function assertNever(x) {\n throw new Error('Unexpected object: ' + x);\n}\n\nvar Focus;\n\n(function (Focus) {\n /** Focus the first non-disabled item. */\n Focus[Focus[\"First\"] = 0] = \"First\";\n /** Focus the previous non-disabled item. */\n\n Focus[Focus[\"Previous\"] = 1] = \"Previous\";\n /** Focus the next non-disabled item. */\n\n Focus[Focus[\"Next\"] = 2] = \"Next\";\n /** Focus the last non-disabled item. */\n\n Focus[Focus[\"Last\"] = 3] = \"Last\";\n /** Focus a specific item based on the `id` of the item. */\n\n Focus[Focus[\"Specific\"] = 4] = \"Specific\";\n /** Focus no items at all. */\n\n Focus[Focus[\"Nothing\"] = 5] = \"Nothing\";\n})(Focus || (Focus = {}));\n\nfunction calculateActiveIndex(action, resolvers) {\n var items = resolvers.resolveItems();\n if (items.length <= 0) return null;\n var currentActiveIndex = resolvers.resolveActiveIndex();\n var activeIndex = currentActiveIndex != null ? currentActiveIndex : -1;\n\n var nextActiveIndex = function () {\n switch (action.focus) {\n case Focus.First:\n return items.findIndex(function (item) {\n return !resolvers.resolveDisabled(item);\n });\n\n case Focus.Previous:\n {\n var idx = items.slice().reverse().findIndex(function (item, idx, all) {\n if (activeIndex !== -1 && all.length - idx - 1 >= activeIndex) return false;\n return !resolvers.resolveDisabled(item);\n });\n if (idx === -1) return idx;\n return items.length - 1 - idx;\n }\n\n case Focus.Next:\n return items.findIndex(function (item, idx) {\n if (idx <= activeIndex) return false;\n return !resolvers.resolveDisabled(item);\n });\n\n case Focus.Last:\n {\n var _idx = items.slice().reverse().findIndex(function (item) {\n return !resolvers.resolveDisabled(item);\n });\n\n if (_idx === -1) return _idx;\n return items.length - 1 - _idx;\n }\n\n case Focus.Specific:\n return items.findIndex(function (item) {\n return resolvers.resolveId(item) === action.id;\n });\n\n case Focus.Nothing:\n return null;\n\n default:\n assertNever(action);\n }\n }();\n\n return nextActiveIndex === -1 ? currentActiveIndex : nextActiveIndex;\n}\n\nexport { Focus, calculateActiveIndex };","import { extends as _extends, objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { useReducer, createRef, useMemo, createContext, useCallback, useRef, useContext, Fragment } from 'react';\nimport { match } from '../../utils/match.esm.js';\nimport { render, forwardRefWithAs, Features } from '../../utils/render.esm.js';\nimport { useSyncRefs } from '../../hooks/use-sync-refs.esm.js';\nimport { Keys } from '../keyboard.esm.js';\nimport { isDisabledReactIssue7711 } from '../../utils/bugs.esm.js';\nimport { useIsoMorphicEffect } from '../../hooks/use-iso-morphic-effect.esm.js';\nimport { useId } from '../../hooks/use-id.esm.js';\nimport { isFocusableElement, FocusableMode } from '../../utils/focus-management.esm.js';\nimport { useWindowEvent } from '../../hooks/use-window-event.esm.js';\nimport { OpenClosedProvider, State, useOpenClosed } from '../../internal/open-closed.esm.js';\nimport { useResolveButtonType } from '../../hooks/use-resolve-button-type.esm.js';\nimport { disposables } from '../../utils/disposables.esm.js';\nimport { useDisposables } from '../../hooks/use-disposables.esm.js';\nimport { useComputed } from '../../hooks/use-computed.esm.js';\nimport { calculateActiveIndex, Focus } from '../../utils/calculate-active-index.esm.js';\n\nvar _reducers;\n\nvar ListboxStates;\n\n(function (ListboxStates) {\n ListboxStates[ListboxStates[\"Open\"] = 0] = \"Open\";\n ListboxStates[ListboxStates[\"Closed\"] = 1] = \"Closed\";\n})(ListboxStates || (ListboxStates = {}));\n\nvar ActionTypes;\n\n(function (ActionTypes) {\n ActionTypes[ActionTypes[\"OpenListbox\"] = 0] = \"OpenListbox\";\n ActionTypes[ActionTypes[\"CloseListbox\"] = 1] = \"CloseListbox\";\n ActionTypes[ActionTypes[\"SetDisabled\"] = 2] = \"SetDisabled\";\n ActionTypes[ActionTypes[\"SetOrientation\"] = 3] = \"SetOrientation\";\n ActionTypes[ActionTypes[\"GoToOption\"] = 4] = \"GoToOption\";\n ActionTypes[ActionTypes[\"Search\"] = 5] = \"Search\";\n ActionTypes[ActionTypes[\"ClearSearch\"] = 6] = \"ClearSearch\";\n ActionTypes[ActionTypes[\"RegisterOption\"] = 7] = \"RegisterOption\";\n ActionTypes[ActionTypes[\"UnregisterOption\"] = 8] = \"UnregisterOption\";\n})(ActionTypes || (ActionTypes = {}));\n\nvar reducers = (_reducers = {}, _reducers[ActionTypes.CloseListbox] = function (state) {\n if (state.disabled) return state;\n if (state.listboxState === ListboxStates.Closed) return state;\n return _extends({}, state, {\n activeOptionIndex: null,\n listboxState: ListboxStates.Closed\n });\n}, _reducers[ActionTypes.OpenListbox] = function (state) {\n if (state.disabled) return state;\n if (state.listboxState === ListboxStates.Open) return state;\n return _extends({}, state, {\n listboxState: ListboxStates.Open\n });\n}, _reducers[ActionTypes.SetDisabled] = function (state, action) {\n if (state.disabled === action.disabled) return state;\n return _extends({}, state, {\n disabled: action.disabled\n });\n}, _reducers[ActionTypes.SetOrientation] = function (state, action) {\n if (state.orientation === action.orientation) return state;\n return _extends({}, state, {\n orientation: action.orientation\n });\n}, _reducers[ActionTypes.GoToOption] = function (state, action) {\n if (state.disabled) return state;\n if (state.listboxState === ListboxStates.Closed) return state;\n var activeOptionIndex = calculateActiveIndex(action, {\n resolveItems: function resolveItems() {\n return state.options;\n },\n resolveActiveIndex: function resolveActiveIndex() {\n return state.activeOptionIndex;\n },\n resolveId: function resolveId(item) {\n return item.id;\n },\n resolveDisabled: function resolveDisabled(item) {\n return item.dataRef.current.disabled;\n }\n });\n if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;\n return _extends({}, state, {\n searchQuery: '',\n activeOptionIndex: activeOptionIndex\n });\n}, _reducers[ActionTypes.Search] = function (state, action) {\n if (state.disabled) return state;\n if (state.listboxState === ListboxStates.Closed) return state;\n var searchQuery = state.searchQuery + action.value.toLowerCase();\n var match = state.options.findIndex(function (option) {\n var _option$dataRef$curre;\n\n return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));\n });\n if (match === -1 || match === state.activeOptionIndex) return _extends({}, state, {\n searchQuery: searchQuery\n });\n return _extends({}, state, {\n searchQuery: searchQuery,\n activeOptionIndex: match\n });\n}, _reducers[ActionTypes.ClearSearch] = function (state) {\n if (state.disabled) return state;\n if (state.listboxState === ListboxStates.Closed) return state;\n if (state.searchQuery === '') return state;\n return _extends({}, state, {\n searchQuery: ''\n });\n}, _reducers[ActionTypes.RegisterOption] = function (state, action) {\n return _extends({}, state, {\n options: [].concat(state.options, [{\n id: action.id,\n dataRef: action.dataRef\n }])\n });\n}, _reducers[ActionTypes.UnregisterOption] = function (state, action) {\n var nextOptions = state.options.slice();\n var currentActiveOption = state.activeOptionIndex !== null ? nextOptions[state.activeOptionIndex] : null;\n var idx = nextOptions.findIndex(function (a) {\n return a.id === action.id;\n });\n if (idx !== -1) nextOptions.splice(idx, 1);\n return _extends({}, state, {\n options: nextOptions,\n activeOptionIndex: function () {\n if (idx === state.activeOptionIndex) return null;\n if (currentActiveOption === null) return null; // If we removed the option before the actual active index, then it would be out of sync. To\n // fix this, we will find the correct (new) index position.\n\n return nextOptions.indexOf(currentActiveOption);\n }()\n });\n}, _reducers);\nvar ListboxContext = /*#__PURE__*/createContext(null);\nListboxContext.displayName = 'ListboxContext';\n\nfunction useListboxContext(component) {\n var context = useContext(ListboxContext);\n\n if (context === null) {\n var err = new Error(\"<\" + component + \" /> is missing a parent <\" + Listbox.name + \" /> component.\");\n if (Error.captureStackTrace) Error.captureStackTrace(err, useListboxContext);\n throw err;\n }\n\n return context;\n}\n\nfunction stateReducer(state, action) {\n return match(action.type, reducers, state, action);\n} // ---\n\n\nvar DEFAULT_LISTBOX_TAG = Fragment;\n\nfunction Listbox(props) {\n var _match;\n\n var value = props.value,\n onChange = props.onChange,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$horizontal = props.horizontal,\n horizontal = _props$horizontal === void 0 ? false : _props$horizontal,\n passThroughProps = _objectWithoutPropertiesLoose(props, [\"value\", \"onChange\", \"disabled\", \"horizontal\"]);\n\n var orientation = horizontal ? 'horizontal' : 'vertical';\n var reducerBag = useReducer(stateReducer, {\n listboxState: ListboxStates.Closed,\n propsRef: {\n current: {\n value: value,\n onChange: onChange\n }\n },\n labelRef: createRef(),\n buttonRef: createRef(),\n optionsRef: createRef(),\n disabled: disabled,\n orientation: orientation,\n options: [],\n searchQuery: '',\n activeOptionIndex: null\n });\n var _reducerBag$ = reducerBag[0],\n listboxState = _reducerBag$.listboxState,\n propsRef = _reducerBag$.propsRef,\n optionsRef = _reducerBag$.optionsRef,\n buttonRef = _reducerBag$.buttonRef,\n dispatch = reducerBag[1];\n useIsoMorphicEffect(function () {\n propsRef.current.value = value;\n }, [value, propsRef]);\n useIsoMorphicEffect(function () {\n propsRef.current.onChange = onChange;\n }, [onChange, propsRef]);\n useIsoMorphicEffect(function () {\n return dispatch({\n type: ActionTypes.SetDisabled,\n disabled: disabled\n });\n }, [disabled]);\n useIsoMorphicEffect(function () {\n return dispatch({\n type: ActionTypes.SetOrientation,\n orientation: orientation\n });\n }, [orientation]); // Handle outside click\n\n useWindowEvent('mousedown', function (event) {\n var _buttonRef$current, _optionsRef$current;\n\n var target = event.target;\n if (listboxState !== ListboxStates.Open) return;\n if ((_buttonRef$current = buttonRef.current) == null ? void 0 : _buttonRef$current.contains(target)) return;\n if ((_optionsRef$current = optionsRef.current) == null ? void 0 : _optionsRef$current.contains(target)) return;\n dispatch({\n type: ActionTypes.CloseListbox\n });\n\n if (!isFocusableElement(target, FocusableMode.Loose)) {\n var _buttonRef$current2;\n\n event.preventDefault();\n (_buttonRef$current2 = buttonRef.current) == null ? void 0 : _buttonRef$current2.focus();\n }\n });\n var slot = useMemo(function () {\n return {\n open: listboxState === ListboxStates.Open,\n disabled: disabled\n };\n }, [listboxState, disabled]);\n return React.createElement(ListboxContext.Provider, {\n value: reducerBag\n }, React.createElement(OpenClosedProvider, {\n value: match(listboxState, (_match = {}, _match[ListboxStates.Open] = State.Open, _match[ListboxStates.Closed] = State.Closed, _match))\n }, render({\n props: passThroughProps,\n slot: slot,\n defaultTag: DEFAULT_LISTBOX_TAG,\n name: 'Listbox'\n })));\n} // ---\n\n\nvar DEFAULT_BUTTON_TAG = 'button';\nvar Button = /*#__PURE__*/forwardRefWithAs(function Button(props, ref) {\n var _state$optionsRef$cur;\n\n var _useListboxContext = useListboxContext([Listbox.name, Button.name].join('.')),\n state = _useListboxContext[0],\n dispatch = _useListboxContext[1];\n\n var buttonRef = useSyncRefs(state.buttonRef, ref);\n var id = \"headlessui-listbox-button-\" + useId();\n var d = useDisposables();\n var handleKeyDown = useCallback(function (event) {\n switch (event.key) {\n // Ref: https://www.w3.org/TR/wai-aria-practices-1.2/#keyboard-interaction-13\n case Keys.Space:\n case Keys.Enter:\n case Keys.ArrowDown:\n event.preventDefault();\n dispatch({\n type: ActionTypes.OpenListbox\n });\n d.nextFrame(function () {\n if (!state.propsRef.current.value) dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.First\n });\n });\n break;\n\n case Keys.ArrowUp:\n event.preventDefault();\n dispatch({\n type: ActionTypes.OpenListbox\n });\n d.nextFrame(function () {\n if (!state.propsRef.current.value) dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Last\n });\n });\n break;\n }\n }, [dispatch, state, d]);\n var handleKeyUp = useCallback(function (event) {\n switch (event.key) {\n case Keys.Space:\n // Required for firefox, event.preventDefault() in handleKeyDown for\n // the Space key doesn't cancel the handleKeyUp, which in turn\n // triggers a *click*.\n event.preventDefault();\n break;\n }\n }, []);\n var handleClick = useCallback(function (event) {\n if (isDisabledReactIssue7711(event.currentTarget)) return event.preventDefault();\n\n if (state.listboxState === ListboxStates.Open) {\n dispatch({\n type: ActionTypes.CloseListbox\n });\n d.nextFrame(function () {\n var _state$buttonRef$curr;\n\n return (_state$buttonRef$curr = state.buttonRef.current) == null ? void 0 : _state$buttonRef$curr.focus({\n preventScroll: true\n });\n });\n } else {\n event.preventDefault();\n dispatch({\n type: ActionTypes.OpenListbox\n });\n }\n }, [dispatch, d, state]);\n var labelledby = useComputed(function () {\n if (!state.labelRef.current) return undefined;\n return [state.labelRef.current.id, id].join(' ');\n }, [state.labelRef.current, id]);\n var slot = useMemo(function () {\n return {\n open: state.listboxState === ListboxStates.Open,\n disabled: state.disabled\n };\n }, [state]);\n var passthroughProps = props;\n var propsWeControl = {\n ref: buttonRef,\n id: id,\n type: useResolveButtonType(props, state.buttonRef),\n 'aria-haspopup': true,\n 'aria-controls': (_state$optionsRef$cur = state.optionsRef.current) == null ? void 0 : _state$optionsRef$cur.id,\n 'aria-expanded': state.disabled ? undefined : state.listboxState === ListboxStates.Open,\n 'aria-labelledby': labelledby,\n disabled: state.disabled,\n onKeyDown: handleKeyDown,\n onKeyUp: handleKeyUp,\n onClick: handleClick\n };\n return render({\n props: _extends({}, passthroughProps, propsWeControl),\n slot: slot,\n defaultTag: DEFAULT_BUTTON_TAG,\n name: 'Listbox.Button'\n });\n}); // ---\n\nvar DEFAULT_LABEL_TAG = 'label';\n\nfunction Label(props) {\n var _useListboxContext2 = useListboxContext([Listbox.name, Label.name].join('.')),\n state = _useListboxContext2[0];\n\n var id = \"headlessui-listbox-label-\" + useId();\n var handleClick = useCallback(function () {\n var _state$buttonRef$curr2;\n\n return (_state$buttonRef$curr2 = state.buttonRef.current) == null ? void 0 : _state$buttonRef$curr2.focus({\n preventScroll: true\n });\n }, [state.buttonRef]);\n var slot = useMemo(function () {\n return {\n open: state.listboxState === ListboxStates.Open,\n disabled: state.disabled\n };\n }, [state]);\n var propsWeControl = {\n ref: state.labelRef,\n id: id,\n onClick: handleClick\n };\n return render({\n props: _extends({}, props, propsWeControl),\n slot: slot,\n defaultTag: DEFAULT_LABEL_TAG,\n name: 'Listbox.Label'\n });\n} // ---\n\n\nvar DEFAULT_OPTIONS_TAG = 'ul';\nvar OptionsRenderFeatures = Features.RenderStrategy | Features.Static;\nvar Options = /*#__PURE__*/forwardRefWithAs(function Options(props, ref) {\n var _state$options$state$;\n\n var _useListboxContext3 = useListboxContext([Listbox.name, Options.name].join('.')),\n state = _useListboxContext3[0],\n dispatch = _useListboxContext3[1];\n\n var optionsRef = useSyncRefs(state.optionsRef, ref);\n var id = \"headlessui-listbox-options-\" + useId();\n var d = useDisposables();\n var searchDisposables = useDisposables();\n var usesOpenClosedState = useOpenClosed();\n\n var visible = function () {\n if (usesOpenClosedState !== null) {\n return usesOpenClosedState === State.Open;\n }\n\n return state.listboxState === ListboxStates.Open;\n }();\n\n useIsoMorphicEffect(function () {\n var container = state.optionsRef.current;\n if (!container) return;\n if (state.listboxState !== ListboxStates.Open) return;\n if (container === document.activeElement) return;\n container.focus({\n preventScroll: true\n });\n }, [state.listboxState, state.optionsRef]);\n var handleKeyDown = useCallback(function (event) {\n searchDisposables.dispose();\n\n switch (event.key) {\n // Ref: https://www.w3.org/TR/wai-aria-practices-1.2/#keyboard-interaction-12\n // @ts-expect-error Fallthrough is expected here\n case Keys.Space:\n if (state.searchQuery !== '') {\n event.preventDefault();\n event.stopPropagation();\n return dispatch({\n type: ActionTypes.Search,\n value: event.key\n });\n }\n\n // When in type ahead mode, fallthrough\n\n case Keys.Enter:\n event.preventDefault();\n event.stopPropagation();\n dispatch({\n type: ActionTypes.CloseListbox\n });\n\n if (state.activeOptionIndex !== null) {\n var dataRef = state.options[state.activeOptionIndex].dataRef;\n state.propsRef.current.onChange(dataRef.current.value);\n }\n\n disposables().nextFrame(function () {\n var _state$buttonRef$curr3;\n\n return (_state$buttonRef$curr3 = state.buttonRef.current) == null ? void 0 : _state$buttonRef$curr3.focus({\n preventScroll: true\n });\n });\n break;\n\n case match(state.orientation, {\n vertical: Keys.ArrowDown,\n horizontal: Keys.ArrowRight\n }):\n event.preventDefault();\n event.stopPropagation();\n return dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Next\n });\n\n case match(state.orientation, {\n vertical: Keys.ArrowUp,\n horizontal: Keys.ArrowLeft\n }):\n event.preventDefault();\n event.stopPropagation();\n return dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Previous\n });\n\n case Keys.Home:\n case Keys.PageUp:\n event.preventDefault();\n event.stopPropagation();\n return dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.First\n });\n\n case Keys.End:\n case Keys.PageDown:\n event.preventDefault();\n event.stopPropagation();\n return dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Last\n });\n\n case Keys.Escape:\n event.preventDefault();\n event.stopPropagation();\n dispatch({\n type: ActionTypes.CloseListbox\n });\n return d.nextFrame(function () {\n var _state$buttonRef$curr4;\n\n return (_state$buttonRef$curr4 = state.buttonRef.current) == null ? void 0 : _state$buttonRef$curr4.focus({\n preventScroll: true\n });\n });\n\n case Keys.Tab:\n event.preventDefault();\n event.stopPropagation();\n break;\n\n default:\n if (event.key.length === 1) {\n dispatch({\n type: ActionTypes.Search,\n value: event.key\n });\n searchDisposables.setTimeout(function () {\n return dispatch({\n type: ActionTypes.ClearSearch\n });\n }, 350);\n }\n\n break;\n }\n }, [d, dispatch, searchDisposables, state]);\n var labelledby = useComputed(function () {\n var _state$labelRef$curre, _state$labelRef$curre2, _state$buttonRef$curr5;\n\n return (_state$labelRef$curre = (_state$labelRef$curre2 = state.labelRef.current) == null ? void 0 : _state$labelRef$curre2.id) != null ? _state$labelRef$curre : (_state$buttonRef$curr5 = state.buttonRef.current) == null ? void 0 : _state$buttonRef$curr5.id;\n }, [state.labelRef.current, state.buttonRef.current]);\n var slot = useMemo(function () {\n return {\n open: state.listboxState === ListboxStates.Open\n };\n }, [state]);\n var propsWeControl = {\n 'aria-activedescendant': state.activeOptionIndex === null ? undefined : (_state$options$state$ = state.options[state.activeOptionIndex]) == null ? void 0 : _state$options$state$.id,\n 'aria-labelledby': labelledby,\n 'aria-orientation': state.orientation,\n id: id,\n onKeyDown: handleKeyDown,\n role: 'listbox',\n tabIndex: 0,\n ref: optionsRef\n };\n var passthroughProps = props;\n return render({\n props: _extends({}, passthroughProps, propsWeControl),\n slot: slot,\n defaultTag: DEFAULT_OPTIONS_TAG,\n features: OptionsRenderFeatures,\n visible: visible,\n name: 'Listbox.Options'\n });\n}); // ---\n\nvar DEFAULT_OPTION_TAG = 'li';\n\nfunction Option(props) {\n var _props$disabled2 = props.disabled,\n disabled = _props$disabled2 === void 0 ? false : _props$disabled2,\n value = props.value,\n passthroughProps = _objectWithoutPropertiesLoose(props, [\"disabled\", \"value\"]);\n\n var _useListboxContext4 = useListboxContext([Listbox.name, Option.name].join('.')),\n state = _useListboxContext4[0],\n dispatch = _useListboxContext4[1];\n\n var id = \"headlessui-listbox-option-\" + useId();\n var active = state.activeOptionIndex !== null ? state.options[state.activeOptionIndex].id === id : false;\n var selected = state.propsRef.current.value === value;\n var bag = useRef({\n disabled: disabled,\n value: value\n });\n useIsoMorphicEffect(function () {\n bag.current.disabled = disabled;\n }, [bag, disabled]);\n useIsoMorphicEffect(function () {\n bag.current.value = value;\n }, [bag, value]);\n useIsoMorphicEffect(function () {\n var _document$getElementB, _document$getElementB2;\n\n bag.current.textValue = (_document$getElementB = document.getElementById(id)) == null ? void 0 : (_document$getElementB2 = _document$getElementB.textContent) == null ? void 0 : _document$getElementB2.toLowerCase();\n }, [bag, id]);\n var select = useCallback(function () {\n return state.propsRef.current.onChange(value);\n }, [state.propsRef, value]);\n useIsoMorphicEffect(function () {\n dispatch({\n type: ActionTypes.RegisterOption,\n id: id,\n dataRef: bag\n });\n return function () {\n return dispatch({\n type: ActionTypes.UnregisterOption,\n id: id\n });\n };\n }, [bag, id]);\n useIsoMorphicEffect(function () {\n var _document$getElementB3;\n\n if (state.listboxState !== ListboxStates.Open) return;\n if (!selected) return;\n dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Specific,\n id: id\n });\n (_document$getElementB3 = document.getElementById(id)) == null ? void 0 : _document$getElementB3.focus == null ? void 0 : _document$getElementB3.focus();\n }, [state.listboxState]);\n useIsoMorphicEffect(function () {\n if (state.listboxState !== ListboxStates.Open) return;\n if (!active) return;\n var d = disposables();\n d.nextFrame(function () {\n var _document$getElementB4;\n\n return (_document$getElementB4 = document.getElementById(id)) == null ? void 0 : _document$getElementB4.scrollIntoView == null ? void 0 : _document$getElementB4.scrollIntoView({\n block: 'nearest'\n });\n });\n return d.dispose;\n }, [id, active, state.listboxState]);\n var handleClick = useCallback(function (event) {\n if (disabled) return event.preventDefault();\n select();\n dispatch({\n type: ActionTypes.CloseListbox\n });\n disposables().nextFrame(function () {\n var _state$buttonRef$curr6;\n\n return (_state$buttonRef$curr6 = state.buttonRef.current) == null ? void 0 : _state$buttonRef$curr6.focus({\n preventScroll: true\n });\n });\n }, [dispatch, state.buttonRef, disabled, select]);\n var handleFocus = useCallback(function () {\n if (disabled) return dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Nothing\n });\n dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Specific,\n id: id\n });\n }, [disabled, id, dispatch]);\n var handleMove = useCallback(function () {\n if (disabled) return;\n if (active) return;\n dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Specific,\n id: id\n });\n }, [disabled, active, id, dispatch]);\n var handleLeave = useCallback(function () {\n if (disabled) return;\n if (!active) return;\n dispatch({\n type: ActionTypes.GoToOption,\n focus: Focus.Nothing\n });\n }, [disabled, active, dispatch]);\n var slot = useMemo(function () {\n return {\n active: active,\n selected: selected,\n disabled: disabled\n };\n }, [active, selected, disabled]);\n var propsWeControl = {\n id: id,\n role: 'option',\n tabIndex: disabled === true ? undefined : -1,\n 'aria-disabled': disabled === true ? true : undefined,\n 'aria-selected': selected === true ? true : undefined,\n disabled: undefined,\n onClick: handleClick,\n onFocus: handleFocus,\n onPointerMove: handleMove,\n onMouseMove: handleMove,\n onPointerLeave: handleLeave,\n onMouseLeave: handleLeave\n };\n return render({\n props: _extends({}, passthroughProps, propsWeControl),\n slot: slot,\n defaultTag: DEFAULT_OPTION_TAG,\n name: 'Listbox.Option'\n });\n} // ---\n\n\nListbox.Button = Button;\nListbox.Label = Label;\nListbox.Options = Options;\nListbox.Option = Option;\nexport { Listbox };","import { createForOfIteratorHelperLoose as _createForOfIteratorHelperLoose } from '../_virtual/_rollupPluginBabelHelpers.js';\n\nfunction disposables() {\n var disposables = [];\n var api = {\n requestAnimationFrame: function (_requestAnimationFrame) {\n function requestAnimationFrame() {\n return _requestAnimationFrame.apply(this, arguments);\n }\n\n requestAnimationFrame.toString = function () {\n return _requestAnimationFrame.toString();\n };\n\n return requestAnimationFrame;\n }(function () {\n var raf = requestAnimationFrame.apply(void 0, arguments);\n api.add(function () {\n return cancelAnimationFrame(raf);\n });\n }),\n nextFrame: function nextFrame() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n api.requestAnimationFrame(function () {\n api.requestAnimationFrame.apply(api, args);\n });\n },\n setTimeout: function (_setTimeout) {\n function setTimeout() {\n return _setTimeout.apply(this, arguments);\n }\n\n setTimeout.toString = function () {\n return _setTimeout.toString();\n };\n\n return setTimeout;\n }(function () {\n var timer = setTimeout.apply(void 0, arguments);\n api.add(function () {\n return clearTimeout(timer);\n });\n }),\n add: function add(cb) {\n disposables.push(cb);\n },\n dispose: function dispose() {\n for (var _iterator = _createForOfIteratorHelperLoose(disposables.splice(0)), _step; !(_step = _iterator()).done;) {\n var dispose = _step.value;\n dispose();\n }\n }\n };\n return api;\n}\n\nexport { disposables };","import { useState, useEffect } from 'react';\nimport { disposables } from '../utils/disposables.esm.js';\n\nfunction useDisposables() {\n // Using useState instead of useRef so that we can use the initializer function.\n var _useState = useState(disposables),\n d = _useState[0];\n\n useEffect(function () {\n return function () {\n return d.dispose();\n };\n }, [d]);\n return d;\n}\n\nexport { useDisposables };","import { useState, useRef } from 'react';\nimport { useIsoMorphicEffect } from './use-iso-morphic-effect.esm.js';\n\nfunction useComputed(cb, dependencies) {\n var _useState = useState(cb),\n value = _useState[0],\n setValue = _useState[1];\n\n var cbRef = useRef(cb);\n useIsoMorphicEffect(function () {\n cbRef.current = cb;\n }, [cb]);\n useIsoMorphicEffect(function () {\n return setValue(cbRef.current);\n }, [cbRef, setValue].concat(dependencies));\n return value;\n}\n\nexport { useComputed };","import { disposables } from '../../../utils/disposables.esm.js';\nimport { once } from '../../../utils/once.esm.js';\n\nfunction addClasses(node) {\n var _node$classList;\n\n for (var _len = arguments.length, classes = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n classes[_key - 1] = arguments[_key];\n }\n\n node && classes.length > 0 && (_node$classList = node.classList).add.apply(_node$classList, classes);\n}\n\nfunction removeClasses(node) {\n var _node$classList2;\n\n for (var _len2 = arguments.length, classes = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n classes[_key2 - 1] = arguments[_key2];\n }\n\n node && classes.length > 0 && (_node$classList2 = node.classList).remove.apply(_node$classList2, classes);\n}\n\nvar Reason;\n\n(function (Reason) {\n Reason[\"Finished\"] = \"finished\";\n Reason[\"Cancelled\"] = \"cancelled\";\n})(Reason || (Reason = {}));\n\nfunction waitForTransition(node, done) {\n var d = disposables();\n if (!node) return d.dispose; // Safari returns a comma separated list of values, so let's sort them and take the highest value.\n\n var _getComputedStyle = getComputedStyle(node),\n transitionDuration = _getComputedStyle.transitionDuration,\n transitionDelay = _getComputedStyle.transitionDelay;\n\n var _map = [transitionDuration, transitionDelay].map(function (value) {\n var _value$split$filter$m = value.split(',') // Remove falsy we can't work with\n .filter(Boolean) // Values are returned as `0.3s` or `75ms`\n .map(function (v) {\n return v.includes('ms') ? parseFloat(v) : parseFloat(v) * 1000;\n }).sort(function (a, z) {\n return z - a;\n }),\n _value$split$filter$m2 = _value$split$filter$m[0],\n resolvedValue = _value$split$filter$m2 === void 0 ? 0 : _value$split$filter$m2;\n\n return resolvedValue;\n }),\n durationMs = _map[0],\n delaysMs = _map[1]; // Waiting for the transition to end. We could use the `transitionend` event, however when no\n // actual transition/duration is defined then the `transitionend` event is not fired.\n //\n // TODO: Downside is, when you slow down transitions via devtools this timeout is still using the\n // full 100% speed instead of the 25% or 10%.\n\n\n if (durationMs !== 0) {\n d.setTimeout(function () {\n done(Reason.Finished);\n }, durationMs + delaysMs);\n } else {\n // No transition is happening, so we should cleanup already. Otherwise we have to wait until we\n // get disposed.\n done(Reason.Finished);\n } // If we get disposed before the timeout runs we should cleanup anyway\n\n\n d.add(function () {\n return done(Reason.Cancelled);\n });\n return d.dispose;\n}\n\nfunction transition(node, base, from, to, entered, done) {\n var d = disposables();\n\n var _done = done !== undefined ? once(done) : function () {};\n\n removeClasses.apply(void 0, [node].concat(entered));\n addClasses.apply(void 0, [node].concat(base, from));\n d.nextFrame(function () {\n removeClasses.apply(void 0, [node].concat(from));\n addClasses.apply(void 0, [node].concat(to));\n d.add(waitForTransition(node, function (reason) {\n removeClasses.apply(void 0, [node].concat(to, base));\n addClasses.apply(void 0, [node].concat(entered));\n return _done(reason);\n }));\n }); // Once we get disposed, we should ensure that we cleanup after ourselves. In case of an unmount,\n // the node itself will be nullified and will be a no-op. In case of a full transition the classes\n // are already removed which is also a no-op. However if you go from enter -> leave mid-transition\n // then we have some leftovers that should be cleaned.\n\n d.add(function () {\n return removeClasses.apply(void 0, [node].concat(base, from, to, entered));\n }); // When we get disposed early, than we should also call the done method but switch the reason.\n\n d.add(function () {\n return _done(Reason.Cancelled);\n });\n return d.dispose;\n}\n\nexport { Reason, transition };","function once(cb) {\n var state = {\n called: false\n };\n return function () {\n if (state.called) return;\n state.called = true;\n return cb.apply(void 0, arguments);\n };\n}\n\nexport { once };","import { objectWithoutPropertiesLoose as _objectWithoutPropertiesLoose, extends as _extends, createForOfIteratorHelperLoose as _createForOfIteratorHelperLoose } from '../../_virtual/_rollupPluginBabelHelpers.js';\nimport React, { useState, useMemo, useEffect, Fragment, useContext, createContext, useRef, useCallback } from 'react';\nimport { match } from '../../utils/match.esm.js';\nimport { render, RenderStrategy, Features } from '../../utils/render.esm.js';\nimport { useIsoMorphicEffect } from '../../hooks/use-iso-morphic-effect.esm.js';\nimport { useServerHandoffComplete } from '../../hooks/use-server-handoff-complete.esm.js';\nimport { useId } from '../../hooks/use-id.esm.js';\nimport { useIsMounted } from '../../hooks/use-is-mounted.esm.js';\nimport { useOpenClosed, State, OpenClosedProvider } from '../../internal/open-closed.esm.js';\nimport { useIsInitialRender } from '../../hooks/use-is-initial-render.esm.js';\nimport { transition, Reason } from './utils/transition.esm.js';\n\nfunction useSplitClasses(classes) {\n if (classes === void 0) {\n classes = '';\n }\n\n return useMemo(function () {\n return classes.split(' ').filter(function (className) {\n return className.trim().length > 1;\n });\n }, [classes]);\n}\n\nvar TransitionContext = /*#__PURE__*/createContext(null);\nTransitionContext.displayName = 'TransitionContext';\nvar TreeStates;\n\n(function (TreeStates) {\n TreeStates[\"Visible\"] = \"visible\";\n TreeStates[\"Hidden\"] = \"hidden\";\n})(TreeStates || (TreeStates = {}));\n\nfunction useTransitionContext() {\n var context = useContext(TransitionContext);\n\n if (context === null) {\n throw new Error('A is used but it is missing a parent or .');\n }\n\n return context;\n}\n\nfunction useParentNesting() {\n var context = useContext(NestingContext);\n\n if (context === null) {\n throw new Error('A is used but it is missing a parent or .');\n }\n\n return context;\n}\n\nvar NestingContext = /*#__PURE__*/createContext(null);\nNestingContext.displayName = 'NestingContext';\n\nfunction hasChildren(bag) {\n if ('children' in bag) return hasChildren(bag.children);\n return bag.current.filter(function (_ref) {\n var state = _ref.state;\n return state === TreeStates.Visible;\n }).length > 0;\n}\n\nfunction useNesting(done) {\n var doneRef = useRef(done);\n var transitionableChildren = useRef([]);\n var mounted = useIsMounted();\n useEffect(function () {\n doneRef.current = done;\n }, [done]);\n var unregister = useCallback(function (childId, strategy) {\n var _match;\n\n if (strategy === void 0) {\n strategy = RenderStrategy.Hidden;\n }\n\n var idx = transitionableChildren.current.findIndex(function (_ref2) {\n var id = _ref2.id;\n return id === childId;\n });\n if (idx === -1) return;\n match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {\n transitionableChildren.current.splice(idx, 1);\n }, _match[RenderStrategy.Hidden] = function () {\n transitionableChildren.current[idx].state = TreeStates.Hidden;\n }, _match));\n\n if (!hasChildren(transitionableChildren) && mounted.current) {\n doneRef.current == null ? void 0 : doneRef.current();\n }\n }, [doneRef, mounted, transitionableChildren]);\n var register = useCallback(function (childId) {\n var child = transitionableChildren.current.find(function (_ref3) {\n var id = _ref3.id;\n return id === childId;\n });\n\n if (!child) {\n transitionableChildren.current.push({\n id: childId,\n state: TreeStates.Visible\n });\n } else if (child.state !== TreeStates.Visible) {\n child.state = TreeStates.Visible;\n }\n\n return function () {\n return unregister(childId, RenderStrategy.Unmount);\n };\n }, [transitionableChildren, unregister]);\n return useMemo(function () {\n return {\n children: transitionableChildren,\n register: register,\n unregister: unregister\n };\n }, [register, unregister, transitionableChildren]);\n}\n\nfunction noop() {}\n\nvar eventNames = ['beforeEnter', 'afterEnter', 'beforeLeave', 'afterLeave'];\n\nfunction ensureEventHooksExist(events) {\n var result = {};\n\n for (var _iterator = _createForOfIteratorHelperLoose(eventNames), _step; !(_step = _iterator()).done;) {\n var _events$name;\n\n var name = _step.value;\n result[name] = (_events$name = events[name]) != null ? _events$name : noop;\n }\n\n return result;\n}\n\nfunction useEvents(events) {\n var eventsRef = useRef(ensureEventHooksExist(events));\n useEffect(function () {\n eventsRef.current = ensureEventHooksExist(events);\n }, [events]);\n return eventsRef;\n} // ---\n\n\nvar DEFAULT_TRANSITION_CHILD_TAG = 'div';\nvar TransitionChildRenderFeatures = Features.RenderStrategy;\n\nfunction TransitionChild(props) {\n var _match3;\n\n var beforeEnter = props.beforeEnter,\n afterEnter = props.afterEnter,\n beforeLeave = props.beforeLeave,\n afterLeave = props.afterLeave,\n enter = props.enter,\n enterFrom = props.enterFrom,\n enterTo = props.enterTo,\n entered = props.entered,\n leave = props.leave,\n leaveFrom = props.leaveFrom,\n leaveTo = props.leaveTo,\n rest = _objectWithoutPropertiesLoose(props, [\"beforeEnter\", \"afterEnter\", \"beforeLeave\", \"afterLeave\", \"enter\", \"enterFrom\", \"enterTo\", \"entered\", \"leave\", \"leaveFrom\", \"leaveTo\"]);\n\n var container = useRef(null);\n\n var _useState = useState(TreeStates.Visible),\n state = _useState[0],\n setState = _useState[1];\n\n var strategy = rest.unmount ? RenderStrategy.Unmount : RenderStrategy.Hidden;\n\n var _useTransitionContext = useTransitionContext(),\n show = _useTransitionContext.show,\n appear = _useTransitionContext.appear,\n initial = _useTransitionContext.initial;\n\n var _useParentNesting = useParentNesting(),\n register = _useParentNesting.register,\n unregister = _useParentNesting.unregister;\n\n var id = useId();\n var isTransitioning = useRef(false);\n var nesting = useNesting(function () {\n // When all children have been unmounted we can only hide ourselves if and only if we are not\n // transitioning ourselves. Otherwise we would unmount before the transitions are finished.\n if (!isTransitioning.current) {\n setState(TreeStates.Hidden);\n unregister(id);\n events.current.afterLeave();\n }\n });\n useIsoMorphicEffect(function () {\n if (!id) return;\n return register(id);\n }, [register, id]);\n useIsoMorphicEffect(function () {\n var _match2; // If we are in another mode than the Hidden mode then ignore\n\n\n if (strategy !== RenderStrategy.Hidden) return;\n if (!id) return; // Make sure that we are visible\n\n if (show && state !== TreeStates.Visible) {\n setState(TreeStates.Visible);\n return;\n }\n\n match(state, (_match2 = {}, _match2[TreeStates.Hidden] = function () {\n return unregister(id);\n }, _match2[TreeStates.Visible] = function () {\n return register(id);\n }, _match2));\n }, [state, id, register, unregister, show, strategy]);\n var enterClasses = useSplitClasses(enter);\n var enterFromClasses = useSplitClasses(enterFrom);\n var enterToClasses = useSplitClasses(enterTo);\n var enteredClasses = useSplitClasses(entered);\n var leaveClasses = useSplitClasses(leave);\n var leaveFromClasses = useSplitClasses(leaveFrom);\n var leaveToClasses = useSplitClasses(leaveTo);\n var events = useEvents({\n beforeEnter: beforeEnter,\n afterEnter: afterEnter,\n beforeLeave: beforeLeave,\n afterLeave: afterLeave\n });\n var ready = useServerHandoffComplete();\n useEffect(function () {\n if (ready && state === TreeStates.Visible && container.current === null) {\n throw new Error('Did you forget to passthrough the `ref` to the actual DOM node?');\n }\n }, [container, state, ready]); // Skipping initial transition\n\n var skip = initial && !appear;\n useIsoMorphicEffect(function () {\n var node = container.current;\n if (!node) return;\n if (skip) return;\n isTransitioning.current = true;\n if (show) events.current.beforeEnter();\n if (!show) events.current.beforeLeave();\n return show ? transition(node, enterClasses, enterFromClasses, enterToClasses, enteredClasses, function (reason) {\n isTransitioning.current = false;\n if (reason === Reason.Finished) events.current.afterEnter();\n }) : transition(node, leaveClasses, leaveFromClasses, leaveToClasses, enteredClasses, function (reason) {\n isTransitioning.current = false;\n if (reason !== Reason.Finished) return; // When we don't have children anymore we can safely unregister from the parent and hide\n // ourselves.\n\n if (!hasChildren(nesting)) {\n setState(TreeStates.Hidden);\n unregister(id);\n events.current.afterLeave();\n }\n });\n }, [events, id, isTransitioning, unregister, nesting, container, skip, show, enterClasses, enterFromClasses, enterToClasses, leaveClasses, leaveFromClasses, leaveToClasses]);\n var propsWeControl = {\n ref: container\n };\n var passthroughProps = rest;\n return React.createElement(NestingContext.Provider, {\n value: nesting\n }, React.createElement(OpenClosedProvider, {\n value: match(state, (_match3 = {}, _match3[TreeStates.Visible] = State.Open, _match3[TreeStates.Hidden] = State.Closed, _match3))\n }, render({\n props: _extends({}, passthroughProps, propsWeControl),\n defaultTag: DEFAULT_TRANSITION_CHILD_TAG,\n features: TransitionChildRenderFeatures,\n visible: state === TreeStates.Visible,\n name: 'Transition.Child'\n })));\n}\n\nfunction Transition(props) {\n // @ts-expect-error\n var show = props.show,\n _props$appear = props.appear,\n appear = _props$appear === void 0 ? false : _props$appear,\n unmount = props.unmount,\n passthroughProps = _objectWithoutPropertiesLoose(props, [\"show\", \"appear\", \"unmount\"]);\n\n var usesOpenClosedState = useOpenClosed();\n\n if (show === undefined && usesOpenClosedState !== null) {\n var _match4;\n\n show = match(usesOpenClosedState, (_match4 = {}, _match4[State.Open] = true, _match4[State.Closed] = false, _match4));\n }\n\n if (![true, false].includes(show)) {\n throw new Error('A is used but it is missing a `show={true | false}` prop.');\n }\n\n var _useState2 = useState(show ? TreeStates.Visible : TreeStates.Hidden),\n state = _useState2[0],\n setState = _useState2[1];\n\n var nestingBag = useNesting(function () {\n setState(TreeStates.Hidden);\n });\n var initial = useIsInitialRender();\n var transitionBag = useMemo(function () {\n return {\n show: show,\n appear: appear || !initial,\n initial: initial\n };\n }, [show, appear, initial]);\n useEffect(function () {\n if (show) {\n setState(TreeStates.Visible);\n } else if (!hasChildren(nestingBag)) {\n setState(TreeStates.Hidden);\n }\n }, [show, nestingBag]);\n var sharedProps = {\n unmount: unmount\n };\n return React.createElement(NestingContext.Provider, {\n value: nestingBag\n }, React.createElement(TransitionContext.Provider, {\n value: transitionBag\n }, render({\n props: _extends({}, sharedProps, {\n as: Fragment,\n children: React.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))\n }),\n defaultTag: Fragment,\n features: TransitionChildRenderFeatures,\n visible: state === TreeStates.Visible,\n name: 'Transition'\n })));\n}\n\nTransition.Child = function Child(props) {\n var hasTransitionContext = useContext(TransitionContext) !== null;\n var hasOpenClosedContext = useOpenClosed() !== null;\n return !hasTransitionContext && hasOpenClosedContext ? React.createElement(Transition, Object.assign({}, props)) : React.createElement(TransitionChild, Object.assign({}, props));\n};\n\nTransition.Root = Transition;\nexport { Transition };","import { useRef, useEffect } from 'react';\n\nfunction useIsMounted() {\n var mounted = useRef(false);\n useEffect(function () {\n mounted.current = true;\n return function () {\n mounted.current = false;\n };\n }, []);\n return mounted;\n}\n\nexport { useIsMounted };","import { useRef, useEffect } from 'react';\n\nfunction useIsInitialRender() {\n var initial = useRef(true);\n useEffect(function () {\n initial.current = false;\n }, []);\n return initial.current;\n}\n\nexport { useIsInitialRender };","import React, { Fragment } from \"react\";\nimport { Listbox, Transition } from \"@headlessui/react\";\nimport { SelectorIcon } from \"@heroicons/react/solid\";\n\nconst Filter = ({ selected, setSelected, options, msgSelect, width }) => {\n return (\n \n \n \n {selected ? selected : msgSelect}\n \n \n \n \n {options.map((option, index) => (\n \n `px-3 py-1 ${active ? \"bg-blue-100\" : \"\"} ${\n selected ? \"bg-blue-200\" : \"\"\n }`\n }\n >\n {option}\n \n ))}\n \n \n \n \n );\n};\n\nexport default Filter;\n"],"names":["Focus","_reducers","ListboxStates","ActionTypes","disposables","api","requestAnimationFrame","_requestAnimationFrame","apply","this","arguments","toString","raf","add","cancelAnimationFrame","nextFrame","_len","length","args","Array","_key","setTimeout","_setTimeout","timer","clearTimeout","cb","push","dispose","_step","_iterator","splice","done","value","useDisposables","d","useState","useEffect","useComputed","dependencies","_useState","setValue","cbRef","useRef","current","concat","calculateActiveIndex","action","resolvers","items","resolveItems","currentActiveIndex","resolveActiveIndex","activeIndex","nextActiveIndex","focus","First","findIndex","item","resolveDisabled","Previous","idx","slice","reverse","all","Next","Last","_idx","Specific","resolveId","id","Nothing","x","Error","assertNever","reducers","CloseListbox","state","disabled","listboxState","Closed","activeOptionIndex","OpenListbox","Open","SetDisabled","SetOrientation","orientation","GoToOption","options","dataRef","searchQuery","Search","toLowerCase","match","option","_option$dataRef$curre","textValue","startsWith","ClearSearch","RegisterOption","UnregisterOption","nextOptions","currentActiveOption","a","indexOf","ListboxContext","createContext","useListboxContext","component","context","useContext","err","Listbox","name","captureStackTrace","stateReducer","type","displayName","DEFAULT_LISTBOX_TAG","Fragment","props","_match","onChange","_props$disabled","_props$horizontal","horizontal","passThroughProps","reducerBag","useReducer","propsRef","labelRef","createRef","buttonRef","optionsRef","_reducerBag$","dispatch","event","_buttonRef$current","_optionsRef$current","_buttonRef$current2","target","contains","preventDefault","slot","useMemo","open","Provider","defaultTag","Button","ref","_state$optionsRef$cur","_useListboxContext","join","handleKeyDown","useCallback","key","handleKeyUp","handleClick","currentTarget","_state$buttonRef$curr","preventScroll","labelledby","passthroughProps","propsWeControl","undefined","onKeyDown","onKeyUp","onClick","OptionsRenderFeatures","Options","_state$options$state$","_useListboxContext3","searchDisposables","usesOpenClosedState","visible","container","document","activeElement","stopPropagation","_state$buttonRef$curr3","vertical","_state$buttonRef$curr4","_state$labelRef$curre","_state$labelRef$curre2","_state$buttonRef$curr5","role","tabIndex","features","Label","_state$buttonRef$curr2","Option","_props$disabled2","_useListboxContext4","active","selected","bag","_document$getElementB","_document$getElementB2","getElementById","textContent","select","_document$getElementB3","_document$getElementB4","scrollIntoView","block","_state$buttonRef$curr6","handleFocus","handleMove","handleLeave","onFocus","onPointerMove","onMouseMove","onPointerLeave","onMouseLeave","Reason","addClasses","node","_node$classList","classes","classList","removeClasses","_node$classList2","_len2","_key2","remove","transition","base","from","to","entered","_done","called","_getComputedStyle","getComputedStyle","_map","transitionDuration","transitionDelay","map","_value$split$filter$m2","split","filter","Boolean","v","includes","parseFloat","sort","z","durationMs","delaysMs","Finished","Cancelled","waitForTransition","reason","useSplitClasses","className","trim","TreeStates","TransitionContext","NestingContext","hasChildren","children","_ref","Visible","useNesting","doneRef","transitionableChildren","mounted","useIsMounted","unregister","childId","strategy","_ref2","Hidden","register","child","find","_ref3","noop","eventNames","ensureEventHooksExist","events","result","_events$name","TransitionChildRenderFeatures","TransitionChild","_match3","beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","rest","setState","unmount","_useTransitionContext","useTransitionContext","show","appear","initial","_useParentNesting","useParentNesting","isTransitioning","nesting","_match2","enterClasses","enterFromClasses","enterToClasses","enteredClasses","leaveClasses","leaveFromClasses","leaveToClasses","eventsRef","useEvents","ready","skip","Transition","_match4","_props$appear","_useState2","nestingBag","useIsInitialRender","transitionBag","sharedProps","as","Object","assign","Child","hasTransitionContext","hasOpenClosedContext","Root","setSelected","msgSelect","width","index"],"sourceRoot":""}