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AG,QAAWf,UAAA7C,EAAAG,OAAA,EAA2BsD,MAAArB,MAAAA,EAAA,OAAAA,EAAAjC,OAAA,GAAyDtF,SAAAA,CAAA,GAClI,EACA,EACAiH,CAAAA,EAAAgC,WAAA,cACA,IAAAC,EAAAjC,oJCxBAkC,EAAa,GAAAlE,EAAAC,EAAA,EAAE,CACfC,MAAA,CACAC,KAAA,kIACAgE,QAAA,CACA,OACA,WACA,cACA,eACA,gBACA,gBACA,kBACA,iBACA,kBAESC,EAAAC,EAA4B,CACrC,CACAC,MAAA,CACA,OACA,OACA,eACA,iBACA,WACA,eACA,eACA,eACA,sBACA,CACAC,YAAiBH,EAAAI,EAAkB,CACnCC,aAAA,sCACAC,WAAA,wCACAC,UAAA,aACAC,MAAA,2CACA,EACAtE,SAAA,CACAuE,MAAA,CACAC,QAAA,CACAX,QAAA,CACA,4CACA,qDACA,EAEAY,QAAA,CACAZ,QAAA,CACA,wCACA,qDACA,EAEAa,UAAA,CACAb,QAAA,CACA,0CACA,uDACA,EAEAc,QAAA,CACAd,QAAA,CACA,wCACA,qDACA,EAEAe,QAAA,CACAf,QAAA,CACA,wCACA,qDACA,EAEAgB,OAAA,CACAhB,QAAA,CACA,uCACA,8CACA,CAEA,EACAiB,KAAA,CACAC,GAAA,CACAlB,QAAA,WACAG,MAAA,CACA,oBAEA,kCACA,CACAI,WAAA,YACAD,aAAA,YACAG,MAAA,YACA,EACAU,GAAA,CACAnB,QAAA,WACAG,MAAA,CACA,qBAEA,kCACA,CACAI,WAAA,aACAD,aAAA,aACAG,MAAA,aACA,EACAW,GAAA,CACApB,QAAA,WACAG,MAAA,CACA,sBAEA,kCACA,CACAI,WAAA,cACAD,aAAA,cACAG,MAAA,YACA,CACA,EACAY,WAAA,CACAC,KAAA,CACAtF,KAAA,sCACA,CACA,EACAuF,iBAAA,CACAD,KAAA,CACAtB,QAAA,kBACAG,MAAA,iBACA,EACAqB,MAAA,CACAxB,QAAA,wBACAG,MAAA,iBACAG,aAAA,CACA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AC3B,GAqFAI,gBAAAA,GACAa,cA1EoB,eAACjG,EAAAA,UAAAA,MAAAA,CAAAA,GAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAS,CAAC,EAC/B,MAAO,CACL,GAAG0F,CAAAA,EAAAA,EAAAA,CAAAA,EAAWxB,EAAYM,EAAYxE,EAAO,CAC7CtB,IAAKwH,CAAAA,EAAAA,EAAAA,CAAAA,EAAU9C,EAAU1E,GACzB6G,GAAIrB,EAAWqB,EAAE,CACjBlG,UAAW7C,EAAMqE,WAAW,CAAC,CAAEZ,MAAOrB,MAAAA,EAAqB,KAAK,EAAIA,EAAWiC,WAAW,GAC1FmC,SAAUmD,CAAAA,EAAAA,EAAAA,CAAAA,EAAMnD,EAAUkB,EAAWlB,QAAQ,CAC/C,CACF,EAmEEsC,cAAAA,GACAD,cAAAA,GACAG,kBAAAA,GACAK,qBAAAA,GACAC,mBAAAA,EACF,CACF","sources":["webpack://_N_E/./node_modules/next-themes/dist/index.module.js","webpack://_N_E/./node_modules/@heroui/theme/dist/chunk-VX7HAPUO.mjs","webpack://_N_E/./node_modules/@heroui/kbd/dist/chunk-33JVVCIB.mjs","webpack://_N_E/./node_modules/@heroui/kbd/dist/chunk-ZWTE5ZFD.mjs","webpack://_N_E/./node_modules/@heroui/kbd/dist/chunk-EZX35FZF.mjs","webpack://_N_E/./node_modules/@heroui/theme/dist/chunk-UAUH5UKD.mjs","webpack://_N_E/./node_modules/@heroui/switch/node_modules/@react-aria/switch/dist/useSwitch.mjs","webpack://_N_E/./node_modules/@heroui/switch/node_modules/@react-stately/toggle/dist/useToggleState.mjs","webpack://_N_E/./node_modules/@heroui/switch/dist/chunk-K534ZJ2B.mjs"],"sourcesContent":["import e,{useContext as t,Fragment as n,useState as r,useCallback as o,useEffect as a,useMemo as s,memo as l,createContext as m}from\"react\";const c=[\"light\",\"dark\"],i=\"(prefers-color-scheme: dark)\",d=\"undefined\"==typeof window,u=/*#__PURE__*/m(void 0),h={setTheme:e=>{},themes:[]},y=()=>{var e;return null!==(e=t(u))&&void 0!==e?e:h},$=r=>t(u)?/*#__PURE__*/e.createElement(n,null,r.children):/*#__PURE__*/e.createElement(f,r),v=[\"light\",\"dark\"],f=({forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:m=!0,storageKey:d=\"theme\",themes:h=v,defaultTheme:y=(l?\"system\":\"light\"),attribute:$=\"data-theme\",value:f,children:w,nonce:T})=>{const[E,k]=r(()=>S(d,y)),[C,L]=r(()=>S(d)),x=f?Object.values(f):h,I=o(e=>{let t=e;if(!t)return;\"system\"===e&&l&&(t=p());const r=f?f[t]:t,o=n?b():null,a=document.documentElement;if(\"class\"===$?(a.classList.remove(...x),r&&a.classList.add(r)):r?a.setAttribute($,r):a.removeAttribute($),m){const e=c.includes(y)?y:null,n=c.includes(t)?t:e;a.style.colorScheme=n}null==o||o()},[]),O=o(e=>{k(e);try{localStorage.setItem(d,e)}catch(e){}},[t]),M=o(e=>{const n=p(e);L(n),\"system\"===E&&l&&!t&&I(\"system\")},[E,t]);a(()=>{const e=window.matchMedia(i);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),a(()=>{const e=e=>{e.key===d&&O(e.newValue||y)};return window.addEventListener(\"storage\",e),()=>window.removeEventListener(\"storage\",e)},[O]),a(()=>{I(null!=t?t:E)},[t,E]);const A=s(()=>({theme:E,setTheme:O,forcedTheme:t,resolvedTheme:\"system\"===E?C:E,themes:l?[...h,\"system\"]:h,systemTheme:l?C:void 0}),[E,O,t,C,l,h]);/*#__PURE__*/return e.createElement(u.Provider,{value:A},/*#__PURE__*/e.createElement(g,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:m,storageKey:d,themes:h,defaultTheme:y,attribute:$,value:f,children:w,attrs:x,nonce:T}),w)},g=/*#__PURE__*/l(({forcedTheme:t,storageKey:n,attribute:r,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:l,attrs:m,nonce:d})=>{const u=\"system\"===s,h=\"class\"===r?`var d=document.documentElement,c=d.classList;c.remove(${m.map(e=>`'${e}'`).join(\",\")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,y=a?c.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:\"if(e==='light'||e==='dark')d.style.colorScheme=e\":\"\",$=(e,t=!1,n=!0)=>{const o=l?l[e]:e,s=t?e+\"|| ''\":`'${o}'`;let m=\"\";return a&&n&&!t&&c.includes(e)&&(m+=`d.style.colorScheme = '${e}';`),\"class\"===r?m+=t||o?`c.add(${s})`:\"null\":o&&(m+=`d[s](n,${s})`),m},v=t?`!function(){${h}${$(t)}}()`:o?`!function(){try{${h}var e=localStorage.getItem('${n}');if('system'===e||(!e&&${u})){var t='${i}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$(\"dark\")}}else{${$(\"light\")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:\"\"}${$(l?\"x[e]\":\"e\",!0)}}${u?\"\":\"else{\"+$(s,!1,!1)+\"}\"}${y}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${n}');if(e){${l?`var x=${JSON.stringify(l)};`:\"\"}${$(l?\"x[e]\":\"e\",!0)}}else{${$(s,!1,!1)};}${y}}catch(t){}}();`;/*#__PURE__*/return e.createElement(\"script\",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),S=(e,t)=>{if(d)return;let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},b=()=>{const e=document.createElement(\"style\");return e.appendChild(document.createTextNode(\"*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},p=e=>(e||(e=window.matchMedia(i)),e.matches?\"dark\":\"light\");export{$ as ThemeProvider,y as useTheme};\n","import {\n tv\n} from \"./chunk-UWE6H66T.mjs\";\n\n// src/components/kbd.ts\nvar kbd = tv({\n slots: {\n base: [\n \"px-1.5\",\n \"py-0.5\",\n \"inline-flex\",\n \"space-x-0.5\",\n \"rtl:space-x-reverse\",\n \"items-center\",\n \"font-sans\",\n \"font-normal\",\n \"text-center\",\n \"text-small\",\n \"shadow-small\",\n \"bg-default-100\",\n \"text-foreground-600\",\n \"rounded-small\"\n ],\n abbr: \"no-underline\",\n content: \"\"\n },\n variants: {},\n defaultVariants: {}\n});\n\nexport {\n kbd\n};\n","// src/use-kbd.ts\nimport { mapPropsVariants } from \"@heroui/system-rsc\";\nimport { kbd } from \"@heroui/theme\";\nimport { clsx, objectToDeps } from \"@heroui/shared-utils\";\nimport { useMemo } from \"react\";\nfunction useKbd(originalProps) {\n const [props, variantProps] = mapPropsVariants(originalProps, kbd.variantKeys);\n const { as, children, className, keys, title, classNames, ...otherProps } = props;\n const Component = as || \"kbd\";\n const slots = useMemo(\n () => kbd({\n ...variantProps\n }),\n [objectToDeps(variantProps)]\n );\n const baseStyles = clsx(classNames == null ? void 0 : classNames.base, className);\n const keysToRender = typeof keys === \"string\" ? [keys] : Array.isArray(keys) ? keys : [];\n const getKbdProps = (props2 = {}) => ({\n ...otherProps,\n ...props2,\n className: clsx(slots.base({ class: clsx(baseStyles, props2.className) }))\n });\n return { Component, slots, classNames, title, children, keysToRender, getKbdProps };\n}\n\nexport {\n useKbd\n};\n","// src/utils.ts\nvar kbdKeysMap = {\n command: \"\\u2318\",\n shift: \"\\u21E7\",\n ctrl: \"\\u2303\",\n option: \"\\u2325\",\n enter: \"\\u21B5\",\n delete: \"\\u232B\",\n escape: \"\\u238B\",\n tab: \"\\u21E5\",\n capslock: \"\\u21EA\",\n up: \"\\u2191\",\n right: \"\\u2192\",\n down: \"\\u2193\",\n left: \"\\u2190\",\n pageup: \"\\u21DE\",\n pagedown: \"\\u21DF\",\n home: \"\\u2196\",\n end: \"\\u2198\",\n help: \"?\",\n space: \"\\u2423\",\n fn: \"Fn\",\n win: \"\\u2318\",\n alt: \"\\u2325\"\n};\nvar kbdKeysLabelMap = {\n command: \"Command\",\n shift: \"Shift\",\n ctrl: \"Control\",\n option: \"Option\",\n enter: \"Enter\",\n delete: \"Delete\",\n escape: \"Escape\",\n tab: \"Tab\",\n capslock: \"Caps Lock\",\n up: \"Up\",\n right: \"Right\",\n down: \"Down\",\n left: \"Left\",\n pageup: \"Page Up\",\n pagedown: \"Page Down\",\n home: \"Home\",\n end: \"End\",\n help: \"Help\",\n space: \"Space\",\n fn: \"Fn\",\n win: \"Win\",\n alt: \"Alt\"\n};\n\nexport {\n kbdKeysMap,\n kbdKeysLabelMap\n};\n","import {\n useKbd\n} from \"./chunk-33JVVCIB.mjs\";\nimport {\n kbdKeysLabelMap,\n kbdKeysMap\n} from \"./chunk-ZWTE5ZFD.mjs\";\n\n// src/kbd.tsx\nimport { useMemo } from \"react\";\nimport { forwardRef } from \"@heroui/system-rsc\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar Kbd = forwardRef((props, ref) => {\n const { Component, children, slots, classNames, keysToRender, getKbdProps } = useKbd({\n ...props\n });\n const keysContent = useMemo(() => {\n return keysToRender.map((key) => /* @__PURE__ */ jsx(\n \"abbr\",\n {\n className: slots.abbr({ class: classNames == null ? void 0 : classNames.abbr }),\n title: kbdKeysLabelMap[key],\n children: kbdKeysMap[key]\n },\n key\n ));\n }, [keysToRender]);\n return /* @__PURE__ */ jsxs(Component, { ref, ...getKbdProps(), children: [\n keysContent,\n children && /* @__PURE__ */ jsx(\"span\", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children })\n ] });\n});\nKbd.displayName = \"HeroUI.Kbd\";\nvar kbd_default = Kbd;\n\nexport {\n kbd_default\n};\n","import {\n tv\n} from \"./chunk-UWE6H66T.mjs\";\nimport {\n groupDataFocusVisibleClasses,\n hiddenInputClasses\n} from \"./chunk-CNTMWM4F.mjs\";\n\n// src/components/toggle.ts\nvar toggle = tv({\n slots: {\n base: \"group relative max-w-fit inline-flex items-center justify-start cursor-pointer touch-none tap-highlight-transparent select-none\",\n wrapper: [\n \"px-1\",\n \"relative\",\n \"inline-flex\",\n \"items-center\",\n \"justify-start\",\n \"flex-shrink-0\",\n \"overflow-hidden\",\n \"bg-default-200\",\n \"rounded-full\",\n // focus ring\n ...groupDataFocusVisibleClasses\n ],\n thumb: [\n \"z-10\",\n \"flex\",\n \"items-center\",\n \"justify-center\",\n \"bg-white\",\n \"shadow-small\",\n \"rounded-full\",\n \"origin-right\",\n \"pointer-events-none\"\n ],\n hiddenInput: hiddenInputClasses,\n startContent: \"z-0 absolute start-1.5 text-current\",\n endContent: \"z-0 absolute end-1.5 text-default-600\",\n thumbIcon: \"text-black\",\n label: \"relative text-foreground select-none ms-2\"\n },\n variants: {\n color: {\n default: {\n wrapper: [\n \"group-data-[selected=true]:bg-default-400\",\n \"group-data-[selected=true]:text-default-foreground\"\n ]\n },\n primary: {\n wrapper: [\n \"group-data-[selected=true]:bg-primary\",\n \"group-data-[selected=true]:text-primary-foreground\"\n ]\n },\n secondary: {\n wrapper: [\n \"group-data-[selected=true]:bg-secondary\",\n \"group-data-[selected=true]:text-secondary-foreground\"\n ]\n },\n success: {\n wrapper: [\n \"group-data-[selected=true]:bg-success\",\n \"group-data-[selected=true]:text-success-foreground\"\n ]\n },\n warning: {\n wrapper: [\n \"group-data-[selected=true]:bg-warning\",\n \"group-data-[selected=true]:text-warning-foreground\"\n ]\n },\n danger: {\n wrapper: [\n \"group-data-[selected=true]:bg-danger\",\n \"data-[selected=true]:text-danger-foreground\"\n ]\n }\n },\n size: {\n sm: {\n wrapper: \"w-10 h-6\",\n thumb: [\n \"w-4 h-4 text-tiny\",\n //selected\n \"group-data-[selected=true]:ms-4\"\n ],\n endContent: \"text-tiny\",\n startContent: \"text-tiny\",\n label: \"text-small\"\n },\n md: {\n wrapper: \"w-12 h-7\",\n thumb: [\n \"w-5 h-5 text-small\",\n //selected\n \"group-data-[selected=true]:ms-5\"\n ],\n endContent: \"text-small\",\n startContent: \"text-small\",\n label: \"text-medium\"\n },\n lg: {\n wrapper: \"w-14 h-8\",\n thumb: [\n \"w-6 h-6 text-medium\",\n //selected\n \"group-data-[selected=true]:ms-6\"\n ],\n endContent: \"text-medium\",\n startContent: \"text-medium\",\n label: \"text-large\"\n }\n },\n isDisabled: {\n true: {\n base: \"opacity-disabled pointer-events-none\"\n }\n },\n disableAnimation: {\n true: {\n wrapper: \"transition-none\",\n thumb: \"transition-none\"\n },\n false: {\n wrapper: \"transition-background\",\n thumb: \"transition-all\",\n startContent: [\n \"opacity-0\",\n \"scale-50\",\n \"transition-transform-opacity\",\n \"group-data-[selected=true]:scale-100\",\n \"group-data-[selected=true]:opacity-100\"\n ],\n endContent: [\n \"opacity-100\",\n \"transition-transform-opacity\",\n \"group-data-[selected=true]:translate-x-3\",\n \"group-data-[selected=true]:opacity-0\"\n ]\n }\n }\n },\n defaultVariants: {\n color: \"primary\",\n size: \"md\",\n isDisabled: false\n },\n compoundVariants: [\n {\n disableAnimation: false,\n size: \"sm\",\n class: {\n thumb: [\"group-data-[pressed=true]:w-5\", \"group-data-[selected]:group-data-[pressed]:ml-3\"]\n }\n },\n {\n disableAnimation: false,\n size: \"md\",\n class: {\n thumb: [\"group-data-[pressed=true]:w-6\", \"group-data-[selected]:group-data-[pressed]:ml-4\"]\n }\n },\n {\n disableAnimation: false,\n size: \"lg\",\n class: {\n thumb: [\"group-data-[pressed=true]:w-7\", \"group-data-[selected]:group-data-[pressed]:ml-5\"]\n }\n }\n ]\n});\n\nexport {\n toggle\n};\n","import {useToggle as $ifSyJ$useToggle} from \"@react-aria/toggle\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $b418ec0c85c52f27$export$d853f7095ae95f88(props, state, ref) {\n let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isPressed: isPressed, isDisabled: isDisabled, isReadOnly: isReadOnly } = (0, $ifSyJ$useToggle)(props, state, ref);\n return {\n labelProps: labelProps,\n inputProps: {\n ...inputProps,\n role: 'switch',\n checked: isSelected\n },\n isSelected: isSelected,\n isPressed: isPressed,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly\n };\n}\n\n\nexport {$b418ec0c85c52f27$export$d853f7095ae95f88 as useSwitch};\n//# sourceMappingURL=useSwitch.module.js.map\n","import {useControlledState as $d8rik$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {\n let { isReadOnly: isReadOnly } = props;\n // have to provide an empty function so useControlledState doesn't throw a fit\n // can't use useControlledState's prop calling because we need the event object from the change\n let [isSelected, setSelected] = (0, $d8rik$useControlledState)(props.isSelected, props.defaultSelected || false, props.onChange);\n function updateSelected(value) {\n if (!isReadOnly) setSelected(value);\n }\n function toggleState() {\n if (!isReadOnly) setSelected(!isSelected);\n }\n return {\n isSelected: isSelected,\n setSelected: updateSelected,\n toggle: toggleState\n };\n}\n\n\nexport {$3017fa7ffdddec74$export$8042c6c013fd5226 as useToggleState};\n//# sourceMappingURL=useToggleState.module.js.map\n","\"use client\";\n\n// src/use-switch.ts\nimport { useCallback, useId, useRef } from \"react\";\nimport { mapPropsVariants, useProviderContext } from \"@heroui/system\";\nimport { mergeRefs } from \"@heroui/react-utils\";\nimport { useSafeLayoutEffect } from \"@heroui/use-safe-layout-effect\";\nimport { useHover } from \"@react-aria/interactions\";\nimport { toggle } from \"@heroui/theme\";\nimport { chain, mergeProps } from \"@react-aria/utils\";\nimport { clsx, dataAttr, objectToDeps } from \"@heroui/shared-utils\";\nimport { useSwitch as useReactAriaSwitch } from \"@react-aria/switch\";\nimport { useMemo } from \"react\";\nimport { useToggleState } from \"@react-stately/toggle\";\nimport { useFocusRing } from \"@react-aria/focus\";\nfunction useSwitch(originalProps = {}) {\n var _a, _b;\n const globalContext = useProviderContext();\n const [props, variantProps] = mapPropsVariants(originalProps, toggle.variantKeys);\n const {\n ref,\n as,\n name,\n value = \"\",\n isReadOnly: isReadOnlyProp = false,\n autoFocus = false,\n startContent,\n endContent,\n defaultSelected,\n isSelected: isSelectedProp,\n children,\n thumbIcon,\n className,\n classNames,\n onChange,\n onValueChange,\n ...otherProps\n } = props;\n const Component = as || \"label\";\n const domRef = useRef(null);\n const inputRef = useRef(null);\n const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;\n const labelId = useId();\n const ariaSwitchProps = useMemo(() => {\n const ariaLabel = otherProps[\"aria-label\"] || typeof children === \"string\" ? children : void 0;\n return {\n name,\n value,\n children,\n autoFocus,\n defaultSelected,\n isSelected: isSelectedProp,\n isDisabled: !!originalProps.isDisabled,\n isReadOnly: isReadOnlyProp,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": otherProps[\"aria-labelledby\"] || labelId,\n onChange: onValueChange\n };\n }, [\n value,\n name,\n labelId,\n children,\n autoFocus,\n isReadOnlyProp,\n isSelectedProp,\n defaultSelected,\n originalProps.isDisabled,\n otherProps[\"aria-label\"],\n otherProps[\"aria-labelledby\"],\n onValueChange\n ]);\n const state = useToggleState(ariaSwitchProps);\n useSafeLayoutEffect(() => {\n if (!inputRef.current) return;\n const isInputRefChecked = !!inputRef.current.checked;\n state.setSelected(isInputRefChecked);\n }, [inputRef.current]);\n const { inputProps, isPressed, isReadOnly } = useReactAriaSwitch(ariaSwitchProps, state, inputRef);\n const { focusProps, isFocused, isFocusVisible } = useFocusRing({ autoFocus: inputProps.autoFocus });\n const { hoverProps, isHovered } = useHover({\n isDisabled: inputProps.disabled\n });\n const isInteractionDisabled = ariaSwitchProps.isDisabled || isReadOnly;\n const pressed = isInteractionDisabled ? false : isPressed;\n const isSelected = inputProps.checked;\n const isDisabled = inputProps.disabled;\n const slots = useMemo(\n () => toggle({\n ...variantProps,\n disableAnimation\n }),\n [objectToDeps(variantProps), disableAnimation]\n );\n const baseStyles = clsx(classNames == null ? void 0 : classNames.base, className);\n const getBaseProps = (props2) => {\n return {\n ...mergeProps(hoverProps, otherProps, props2),\n ref: domRef,\n className: slots.base({ class: clsx(baseStyles, props2 == null ? void 0 : props2.className) }),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-selected\": dataAttr(isSelected),\n \"data-readonly\": dataAttr(isReadOnly),\n \"data-focus\": dataAttr(isFocused),\n \"data-focus-visible\": dataAttr(isFocusVisible),\n \"data-hover\": dataAttr(isHovered),\n \"data-pressed\": dataAttr(pressed)\n };\n };\n const getWrapperProps = useCallback(\n (props2 = {}) => {\n return {\n ...props2,\n \"aria-hidden\": true,\n className: clsx(slots.wrapper({ class: clsx(classNames == null ? void 0 : classNames.wrapper, props2 == null ? void 0 : props2.className) }))\n };\n },\n [slots, classNames == null ? void 0 : classNames.wrapper]\n );\n const getInputProps = (props2 = {}) => {\n return {\n ...mergeProps(inputProps, focusProps, props2),\n ref: mergeRefs(inputRef, ref),\n id: inputProps.id,\n className: slots.hiddenInput({ class: classNames == null ? void 0 : classNames.hiddenInput }),\n onChange: chain(onChange, inputProps.onChange)\n };\n };\n const getThumbProps = useCallback(\n (props2 = {}) => ({\n ...props2,\n className: slots.thumb({ class: clsx(classNames == null ? void 0 : classNames.thumb, props2 == null ? void 0 : props2.className) })\n }),\n [slots, classNames == null ? void 0 : classNames.thumb]\n );\n const getLabelProps = useCallback(\n (props2 = {}) => ({\n ...props2,\n id: labelId,\n className: slots.label({ class: clsx(classNames == null ? void 0 : classNames.label, props2 == null ? void 0 : props2.className) })\n }),\n [slots, classNames == null ? void 0 : classNames.label, isDisabled, isSelected]\n );\n const getThumbIconProps = useCallback(\n (props2 = {\n includeStateProps: false\n }) => mergeProps(\n {\n width: \"1em\",\n height: \"1em\",\n className: slots.thumbIcon({ class: clsx(classNames == null ? void 0 : classNames.thumbIcon) })\n },\n props2.includeStateProps ? {\n isSelected\n } : {}\n ),\n [slots, classNames == null ? void 0 : classNames.thumbIcon, isSelected]\n );\n const getStartContentProps = useCallback(\n (props2 = {}) => ({\n width: \"1em\",\n height: \"1em\",\n ...props2,\n className: slots.startContent({ class: clsx(classNames == null ? void 0 : classNames.startContent, props2 == null ? void 0 : props2.className) })\n }),\n [slots, classNames == null ? void 0 : classNames.startContent, isSelected]\n );\n const getEndContentProps = useCallback(\n (props2 = {}) => ({\n width: \"1em\",\n height: \"1em\",\n ...props2,\n className: slots.endContent({ class: clsx(classNames == null ? void 0 : classNames.endContent, props2 == null ? void 0 : props2.className) })\n }),\n [slots, classNames == null ? void 0 : classNames.endContent, isSelected]\n );\n return {\n Component,\n slots,\n classNames,\n domRef,\n children,\n thumbIcon,\n startContent,\n endContent,\n isHovered,\n isSelected,\n isPressed: pressed,\n isFocused,\n isFocusVisible,\n isDisabled,\n getBaseProps,\n getWrapperProps,\n getInputProps,\n getLabelProps,\n getThumbProps,\n getThumbIconProps,\n getStartContentProps,\n getEndContentProps\n };\n}\n\nexport {\n useSwitch\n};\n"],"names":["c","i","d","window","u","react__WEBPACK_IMPORTED_MODULE_0__","createContext","h","setTheme","e","themes","y","useContext","$","r","createElement","Fragment","children","f","v","forcedTheme","t","disableTransitionOnChange","n","enableSystem","l","enableColorScheme","m","storageKey","defaultTheme","attribute","value","w","nonce","T","E","k","useState","S","C","L","x","Object","values","I","useCallback","p","o","b","a","document","documentElement","classList","remove","add","setAttribute","removeAttribute","includes","style","colorScheme","O","localStorage","setItem","M","useEffect","matchMedia","addListener","removeListener","key","newValue","addEventListener","removeEventListener","A","useMemo","theme","resolvedTheme","systemTheme","Provider","g","attrs","memo","s","map","join","JSON","stringify","dangerouslySetInnerHTML","__html","getItem","appendChild","createTextNode","head","getComputedStyle","body","setTimeout","removeChild","matches","kbd","chunk_UWE6H66T","tv","slots","base","abbr","content","variants","defaultVariants","kbdKeysMap","command","shift","ctrl","option","enter","delete","escape","tab","capslock","up","right","down","left","pageup","pagedown","home","end","help","space","fn","win","alt","kbdKeysLabelMap","Kbd","chunk_YFAKJTDR","Gp","props","ref","Component","classNames","keysToRender","getKbdProps","useKbd","originalProps","variantProps","oe","variantKeys","as","className","keys","title","otherProps","react","dist","Xx","baseStyles","Wy","Array","isArray","props2","class","keysContent","jsx_runtime","jsx","jsxs","displayName","kbd_default","toggle","wrapper","chunk_CNTMWM4F","ID","thumb","hiddenInput","PZ","startContent","endContent","thumbIcon","label","color","default","primary","secondary","success","warning","danger","size","sm","md","lg","isDisabled","true","disableAnimation","false","compoundVariants","useSwitch","_a","_b","globalContext","useProviderContext","mapPropsVariants","name","isReadOnly","isReadOnlyProp","autoFocus","defaultSelected","isSelected","isSelectedProp","onChange","onValueChange","domRef","useRef","inputRef","labelId","useId","ariaSwitchProps","ariaLabel","state","useToggleState","setSelected","useControlledState","z","useSafeLayoutEffect","current","isInputRefChecked","checked","inputProps","isPressed","useReactAriaSwitch","labelProps","useToggle","role","focusProps","isFocused","isFocusVisible","useFocusRing","hoverProps","isHovered","useHover","disabled","pressed","isInteractionDisabled","objectToDeps","clsx","getWrapperProps","getThumbProps","getLabelProps","id","getThumbIconProps","includeStateProps","mergeProps","width","height","getStartContentProps","getEndContentProps","getBaseProps","dataAttr","getInputProps","mergeRefs","chain"],"sourceRoot":""}