{"version":3,"file":"static/chunks/2321-2fad2d7cde53cef4.js","mappings":"giBAGA,IAAIA,EAAsB,IACxB,IAAMC,EAAU,CACdC,IAAK,CACHC,QAAS,CACX,EACAC,OAAQ,CACND,QAAS,CACX,EACAE,KAAM,CACJC,QAAS,CACX,EACAC,MAAO,CACLD,QAAS,CACX,EACA,YAAa,CACXA,QAAS,EACTH,QAAS,CACX,EACA,UAAW,CACTG,QAAS,EACTH,QAAS,CACX,EACA,eAAgB,CACdG,QAAS,EACTH,QAAS,CACX,EACA,aAAc,CACZG,QAAS,EACTH,QAAS,CACX,EACA,cAAe,CACbG,QAAS,EACTH,QAAS,CACX,EACA,YAAa,CACXG,QAAS,EACTH,QAAS,CACX,EACA,aAAc,CACZG,QAAS,EACTH,QAAS,CACX,EACA,WAAY,CACVG,QAAS,EACTH,QAAS,CACX,CACF,EACA,MAAO,CAACF,MAAAA,EAAkB,KAAK,EAAIA,CAAO,CAACO,EAAU,GAAK,CAAC,CAC7D,EACIC,EAAuB,GAelBC,CAdc,CACnBR,IAAK,MACLE,OAAQ,SACRC,KAAM,OACNE,MAAO,QACP,YAAa,YACb,UAAW,UACX,eAAgB,eAChB,aAAc,aACd,aAAc,WACd,WAAY,cACZ,cAAe,YACf,YAAa,cACf,EACmB,CAACC,EAAU,CAY5BG,EAA4B,CAACC,EAAeC,KAC9C,GAAIA,EAAiBC,QAAQ,CAAC,KAAM,CAClC,GAAM,CAACC,EAAS,CAAGF,EAAiBG,KAAK,CAAC,KAC1C,GAAID,EAASD,QAAQ,CAACF,GACpB,MAAO,EAEX,CACA,MAAO,EACT,EACIK,EAAoB,CAACC,EAAkBV,KACzC,GAAIA,EAAUM,QAAQ,CAAC,KAAM,CAC3B,GAAM,EAAGC,EAAS,CAAGP,EAAUQ,KAAK,CAAC,KACrC,MAAO,GAAuBD,MAAAA,CAApBG,EAAiB,KAAYC,MAAA,CAATJ,EAChC,CACA,OAAOG,CACT,iFC3FA,IAAIE,EAAqB,CACvBC,KAAM,C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AA,CAAA5K,EAAAqS,GAAAzH,EAEA,CACA,SAAAyK,EAAArV,CAAA,CAAAsV,CAAA,EACA,IAAAC,EAAAvV,EACAwV,EAAAF,EAAAG,QAAA,GACAC,EAAAF,EAAApQ,OAAA,MACAuQ,EAAAD,GAAA,EAAAF,EAAA9V,MAAA,CAAAgW,EAAA,EACA,GAAAC,EAAA,GACA,IAAAC,EAAAjL,KAAAiL,GAAA,IAAAD,GACAJ,EAAA5K,KAAAkL,KAAA,CAAAN,EAAAK,GAAAA,CACA,CACA,OAAAL,CACA,CACA,SAAAO,EAAA9V,CAAA,CAAAqS,CAAA,CAAAzH,CAAA,CAAA0K,CAAA,EACAjD,EAAA0D,OAAA1D,GACAzH,EAAAmL,OAAAnL,GACA,IAAAoL,EAAA,CAAAhW,EAAAiW,CAAAA,MAAA5D,GAAA,EAAAA,CAAA,GAAAiD,EACAY,EAAAb,EAAA1K,EAAAA,KAAAwL,GAAA,CAAAH,IAAAV,EAAAtV,EAAA2K,KAAAyL,IAAA,CAAAJ,GAAAV,CAAAA,EAAA3K,KAAAwL,GAAA,CAAAH,EAAA,EAAAhW,EAAAgW,EAAAV,GAOA,OANAW,MAAA5D,GAGM,CAAA4D,MAAArL,IAAAsL,EAAAtL,GAAAsL,CAAAA,EAAAvL,KAAAyB,KAAA,CAAAiJ,EAAAzK,EAAA0K,EAAAA,IAAAA,CAAA,EAFNY,EAAA7D,EAAA6D,EAAA7D,EACA,CAAA4D,MAAArL,IAAAsL,EAAAtL,GAAAsL,CAAAA,EAAA7D,EAAA1H,KAAAyB,KAAA,CAAAiJ,EAAA,CAAAzK,EAAAyH,CAAA,EAAAiD,EAAAA,IAAAA,CAAA,EAGAY,EAAAb,EAAAa,EAAAZ,EAEA","sources":["webpack://_N_E/./node_modules/@nextui-org/aria-utils/dist/chunk-WQVQ7P2I.mjs","webpack://_N_E/./node_modules/@nextui-org/framer-utils/dist/chunk-736YWA4T.mjs","webpack://_N_E/./node_modules/@nextui-org/react-utils/dist/chunk-CIZQCQPA.mjs","webpack://_N_E/./node_modules/@nextui-org/theme/dist/chunk-2QXJAGC7.mjs","webpack://_N_E/./node_modules/@react-aria/overlays/dist/useCloseOnScroll.mjs","webpack://_N_E/./node_modules/@react-aria/interactions/dist/useInteractOutside.mjs","webpack://_N_E/./node_modules/@react-aria/overlays/dist/useOverlay.mjs","webpack://_N_E/./node_modules/@react-aria/overlays/dist/calculatePosition.mjs","webpack://_N_E/./node_modules/@react-aria/overlays/dist/useOverlayPosition.mjs","webpack://_N_E/./node_modules/@react-aria/utils/dist/useResizeObserver.mjs","webpack://_N_E/./node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs","webpack://_N_E/./node_modules/@react-stately/utils/dist/number.mjs"],"sourcesContent":["\"use client\";\n\n// src/overlays/utils.ts\nvar getTransformOrigins = (placement) => {\n const origins = {\n top: {\n originY: 1\n },\n bottom: {\n originY: 0\n },\n left: {\n originX: 1\n },\n right: {\n originX: 0\n },\n \"top-start\": {\n originX: 0,\n originY: 1\n },\n \"top-end\": {\n originX: 1,\n originY: 1\n },\n \"bottom-start\": {\n originX: 0,\n originY: 0\n },\n \"bottom-end\": {\n originX: 1,\n originY: 0\n },\n \"right-start\": {\n originX: 0,\n originY: 0\n },\n \"right-end\": {\n originX: 0,\n originY: 1\n },\n \"left-start\": {\n originX: 1,\n originY: 0\n },\n \"left-end\": {\n originX: 1,\n originY: 1\n }\n };\n return (origins == null ? void 0 : origins[placement]) || {};\n};\nvar toReactAriaPlacement = (placement) => {\n const mapPositions = {\n top: \"top\",\n bottom: \"bottom\",\n left: \"left\",\n right: \"right\",\n \"top-start\": \"top start\",\n \"top-end\": \"top end\",\n \"bottom-start\": \"bottom start\",\n \"bottom-end\": \"bottom end\",\n \"left-start\": \"left top\",\n \"left-end\": \"left bottom\",\n \"right-start\": \"right top\",\n \"right-end\": \"right bottom\"\n };\n return mapPositions[placement];\n};\nvar toOverlayPlacement = (placement) => {\n const mapPositions = {\n top: \"top\",\n bottom: \"bottom\",\n left: \"left\",\n right: \"right\",\n center: \"top\"\n };\n return mapPositions[placement];\n};\nvar getShouldUseAxisPlacement = (axisPlacement, overlayPlacement) => {\n if (overlayPlacement.includes(\"-\")) {\n const [position] = overlayPlacement.split(\"-\");\n if (position.includes(axisPlacement)) {\n return false;\n }\n }\n return true;\n};\nvar getArrowPlacement = (dynamicPlacement, placement) => {\n if (placement.includes(\"-\")) {\n const [, position] = placement.split(\"-\");\n return `${dynamicPlacement}-${position}`;\n }\n return dynamicPlacement;\n};\n\nexport {\n getTransformOrigins,\n toReactAriaPlacement,\n toOverlayPlacement,\n getShouldUseAxisPlacement,\n getArrowPlacement\n};\n","\"use client\";\n\n// src/transition-utils.ts\nvar TRANSITION_EASINGS = {\n ease: [0.36, 0.66, 0.4, 1],\n easeIn: [0.4, 0, 1, 1],\n easeOut: [0, 0, 0.2, 1],\n easeInOut: [0.4, 0, 0.2, 1],\n spring: [0.155, 1.105, 0.295, 1.12],\n springOut: [0.57, -0.15, 0.62, 0.07],\n softSpring: [0.16, 1.11, 0.3, 1.02]\n};\nvar TRANSITION_DEFAULTS = {\n enter: {\n duration: 0.2,\n ease: TRANSITION_EASINGS.easeOut\n },\n exit: {\n duration: 0.1,\n ease: TRANSITION_EASINGS.easeIn\n }\n};\nvar TRANSITION_VARIANTS = {\n scaleSpring: {\n enter: {\n transform: \"scale(1)\",\n opacity: 1,\n transition: {\n type: \"spring\",\n bounce: 0,\n duration: 0.2\n }\n },\n exit: {\n transform: \"scale(0.85)\",\n opacity: 0,\n transition: {\n type: \"easeOut\",\n duration: 0.15\n }\n }\n },\n scaleSpringOpacity: {\n initial: {\n opacity: 0,\n transform: \"scale(0.8)\"\n },\n enter: {\n opacity: 1,\n transform: \"scale(1)\",\n transition: {\n type: \"spring\",\n bounce: 0,\n duration: 0.3\n }\n },\n exit: {\n opacity: 0,\n transform: \"scale(0.96)\",\n transition: {\n type: \"easeOut\",\n bounce: 0,\n duration: 0.15\n }\n }\n },\n scale: {\n enter: { scale: 1 },\n exit: { scale: 0.95 }\n },\n scaleFadeIn: {\n enter: {\n transform: \"scale(1)\",\n opacity: 1,\n transition: {\n duration: 0.25,\n ease: TRANSITION_EASINGS.easeIn\n }\n },\n exit: {\n transform: \"scale(0.95)\",\n opacity: 0,\n transition: {\n duration: 0.2,\n ease: TRANSITION_EASINGS.easeOut\n }\n }\n },\n scaleInOut: {\n enter: {\n transform: \"scale(1)\",\n opacity: 1,\n transition: {\n duration: 0.4,\n ease: TRANSITION_EASINGS.ease\n }\n },\n exit: {\n transform: \"scale(1.03)\",\n opacity: 0,\n transition: {\n duration: 0.3,\n ease: TRANSITION_EASINGS.ease\n }\n }\n },\n fade: {\n enter: {\n opacity: 1,\n transition: {\n duration: 0.4,\n ease: TRANSITION_EASINGS.ease\n }\n },\n exit: {\n opacity: 0,\n transition: {\n duration: 0.3,\n ease: TRANSITION_EASINGS.ease\n }\n }\n },\n collapse: {\n enter: {\n opacity: 1,\n height: \"auto\",\n transition: {\n height: {\n type: \"spring\",\n bounce: 0,\n duration: 0.3\n },\n opacity: {\n easings: \"ease\",\n duration: 0.4\n }\n }\n },\n exit: {\n opacity: 0,\n height: 0,\n transition: {\n easings: \"ease\",\n duration: 0.3\n }\n }\n }\n};\n\nexport {\n TRANSITION_EASINGS,\n TRANSITION_DEFAULTS,\n TRANSITION_VARIANTS\n};\n","\"use client\";\n\n// src/refs.ts\nimport { isFunction } from \"@nextui-org/shared-utils\";\nfunction assignRef(ref, value) {\n if (ref == null)\n return;\n if (isFunction(ref)) {\n ref(value);\n return;\n }\n try {\n ref.current = value;\n } catch (error) {\n throw new Error(`Cannot assign value '${value}' to ref '${ref}'`);\n }\n}\nfunction mergeRefs(...refs) {\n return (node) => {\n refs.forEach((ref) => assignRef(ref, node));\n };\n}\n\nexport {\n assignRef,\n mergeRefs\n};\n","import {\n colorVariants\n} from \"./chunk-GQT3YUX3.mjs\";\nimport {\n tv\n} from \"./chunk-UWE6H66T.mjs\";\nimport {\n dataFocusVisibleClasses\n} from \"./chunk-GH5E4FQB.mjs\";\n\n// src/components/popover.ts\nvar popover = tv({\n slots: {\n base: [\n \"z-0\",\n \"relative\",\n \"bg-transparent\",\n \"before:content-['']\",\n \"before:hidden\",\n \"before:z-[-1]\",\n \"before:absolute\",\n \"before:rotate-45\",\n \"before:w-2.5\",\n \"before:h-2.5\",\n \"before:rounded-sm\",\n \"data-[arrow=true]:before:block\",\n \"data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]\",\n \"data-[placement=top]:before:left-1/2\",\n \"data-[placement=top]:before:-translate-x-1/2\",\n \"data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]\",\n \"data-[placement=top-start]:before:left-3\",\n \"data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]\",\n \"data-[placement=top-end]:before:right-3\",\n \"data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]\",\n \"data-[placement=bottom]:before:left-1/2\",\n \"data-[placement=bottom]:before:-translate-x-1/2\",\n \"data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]\",\n \"data-[placement=bottom-start]:before:left-3\",\n \"data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]\",\n \"data-[placement=bottom-end]:before:right-3\",\n \"data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]\",\n \"data-[placement=left]:before:top-1/2\",\n \"data-[placement=left]:before:-translate-y-1/2\",\n \"data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]\",\n \"data-[placement=left-start]:before:top-1/4\",\n \"data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]\",\n \"data-[placement=left-end]:before:bottom-1/4\",\n \"data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]\",\n \"data-[placement=right]:before:top-1/2\",\n \"data-[placement=right]:before:-translate-y-1/2\",\n \"data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]\",\n \"data-[placement=right-start]:before:top-1/4\",\n \"data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]\",\n \"data-[placement=right-end]:before:bottom-1/4\",\n ...dataFocusVisibleClasses\n ],\n content: [\n \"z-10\",\n \"px-2.5\",\n \"py-1\",\n \"w-full\",\n \"inline-flex\",\n \"flex-col\",\n \"items-center\",\n \"justify-center\",\n \"box-border\",\n \"subpixel-antialiased\",\n \"outline-none\",\n \"box-border\"\n ],\n trigger: [\"z-10\"],\n backdrop: [\"hidden\"],\n arrow: []\n },\n variants: {\n size: {\n sm: { content: \"text-tiny\" },\n md: { content: \"text-small\" },\n lg: { content: \"text-medium\" }\n },\n color: {\n default: {\n base: \"before:bg-content1 before:shadow-small\",\n content: \"bg-content1\"\n },\n foreground: {\n base: \"before:bg-foreground\",\n content: colorVariants.solid.foreground\n },\n primary: {\n base: \"before:bg-primary\",\n content: colorVariants.solid.primary\n },\n secondary: {\n base: \"before:bg-secondary\",\n content: colorVariants.solid.secondary\n },\n success: {\n base: \"before:bg-success\",\n content: colorVariants.solid.success\n },\n warning: {\n base: \"before:bg-warning\",\n content: colorVariants.solid.warning\n },\n danger: {\n base: \"before:bg-danger\",\n content: colorVariants.solid.danger\n }\n },\n radius: {\n none: { content: \"rounded-none\" },\n sm: { content: \"rounded-small\" },\n md: { content: \"rounded-medium\" },\n lg: { content: \"rounded-large\" },\n full: { content: \"rounded-full\" }\n },\n shadow: {\n sm: {\n content: \"shadow-small\"\n },\n md: {\n content: \"shadow-medium\"\n },\n lg: {\n content: \"shadow-large\"\n }\n },\n backdrop: {\n transparent: {},\n opaque: {\n backdrop: \"bg-overlay/50 backdrop-opacity-disabled\"\n },\n blur: {\n backdrop: \"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30\"\n }\n },\n triggerScaleOnOpen: {\n true: {\n trigger: [\"aria-expanded:scale-[0.97]\", \"aria-expanded:opacity-70\", \"subpixel-antialiased\"]\n },\n false: {}\n },\n disableAnimation: {\n true: {\n base: \"animate-none\"\n }\n },\n isTriggerDisabled: {\n true: {\n trigger: \"opacity-disabled pointer-events-none\"\n },\n false: {}\n }\n },\n defaultVariants: {\n color: \"default\",\n radius: \"lg\",\n size: \"md\",\n shadow: \"md\",\n backdrop: \"transparent\",\n triggerScaleOnOpen: true\n },\n compoundVariants: [\n {\n backdrop: [\"opaque\", \"blur\"],\n class: {\n backdrop: \"block w-full h-full fixed inset-0 -z-30\"\n }\n }\n ]\n});\n\nexport {\n popover\n};\n","import {useEffect as $dRVb8$useEffect} from \"react\";\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 */ \nconst $dd149f63282afbbf$export$f6211563215e3b37 = new WeakMap();\nfunction $dd149f63282afbbf$export$18fc8428861184da(opts) {\n let { triggerRef: triggerRef, isOpen: isOpen, onClose: onClose } = opts;\n (0, $dRVb8$useEffect)(()=>{\n if (!isOpen || onClose === null) return;\n let onScroll = (e)=>{\n // Ignore if scrolling an scrollable region outside the trigger's tree.\n let target = e.target;\n // window is not a Node and doesn't have contain, but window contains everything\n if (!triggerRef.current || target instanceof Node && !target.contains(triggerRef.current)) return;\n // Ignore scroll events on any input or textarea as the cursor position can cause it to scroll\n // such as in a combobox. Clicking the dropdown button places focus on the input, and if the\n // text inside the input extends beyond the 'end', then it will scroll so the cursor is visible at the end.\n if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) return;\n let onCloseHandler = onClose || $dd149f63282afbbf$export$f6211563215e3b37.get(triggerRef.current);\n if (onCloseHandler) onCloseHandler();\n };\n window.addEventListener('scroll', onScroll, true);\n return ()=>{\n window.removeEventListener('scroll', onScroll, true);\n };\n }, [\n isOpen,\n onClose,\n triggerRef\n ]);\n}\n\n\nexport {$dd149f63282afbbf$export$f6211563215e3b37 as onCloseMap, $dd149f63282afbbf$export$18fc8428861184da as useCloseOnScroll};\n//# sourceMappingURL=useCloseOnScroll.module.js.map\n","import {useEffectEvent as $ispOf$useEffectEvent, getOwnerDocument as $ispOf$getOwnerDocument} from \"@react-aria/utils\";\nimport {useRef as $ispOf$useRef, useEffect as $ispOf$useEffect} from \"react\";\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 */ // Portions of the code in this file are based on code from react.\n// Original licensing for the following can be found in the\n// NOTICE file in the root directory of this source tree.\n// See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions\n\n\nfunction $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(props) {\n let { ref: ref, onInteractOutside: onInteractOutside, isDisabled: isDisabled, onInteractOutsideStart: onInteractOutsideStart } = props;\n let stateRef = (0, $ispOf$useRef)({\n isPointerDown: false,\n ignoreEmulatedMouseEvents: false\n });\n let onPointerDown = (0, $ispOf$useEffectEvent)((e)=>{\n if (onInteractOutside && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) {\n if (onInteractOutsideStart) onInteractOutsideStart(e);\n stateRef.current.isPointerDown = true;\n }\n });\n let triggerInteractOutside = (0, $ispOf$useEffectEvent)((e)=>{\n if (onInteractOutside) onInteractOutside(e);\n });\n (0, $ispOf$useEffect)(()=>{\n let state = stateRef.current;\n if (isDisabled) return;\n const element = ref.current;\n const documentObject = (0, $ispOf$getOwnerDocument)(element);\n // Use pointer events if available. Otherwise, fall back to mouse and touch events.\n if (typeof PointerEvent !== 'undefined') {\n let onPointerUp = (e)=>{\n if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);\n state.isPointerDown = false;\n };\n // changing these to capture phase fixed combobox\n documentObject.addEventListener('pointerdown', onPointerDown, true);\n documentObject.addEventListener('pointerup', onPointerUp, true);\n return ()=>{\n documentObject.removeEventListener('pointerdown', onPointerDown, true);\n documentObject.removeEventListener('pointerup', onPointerUp, true);\n };\n } else {\n let onMouseUp = (e)=>{\n if (state.ignoreEmulatedMouseEvents) state.ignoreEmulatedMouseEvents = false;\n else if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);\n state.isPointerDown = false;\n };\n let onTouchEnd = (e)=>{\n state.ignoreEmulatedMouseEvents = true;\n if (state.isPointerDown && $e0b6e0b68ec7f50f$var$isValidEvent(e, ref)) triggerInteractOutside(e);\n state.isPointerDown = false;\n };\n documentObject.addEventListener('mousedown', onPointerDown, true);\n documentObject.addEventListener('mouseup', onMouseUp, true);\n documentObject.addEventListener('touchstart', onPointerDown, true);\n documentObject.addEventListener('touchend', onTouchEnd, true);\n return ()=>{\n documentObject.removeEventListener('mousedown', onPointerDown, true);\n documentObject.removeEventListener('mouseup', onMouseUp, true);\n documentObject.removeEventListener('touchstart', onPointerDown, true);\n documentObject.removeEventListener('touchend', onTouchEnd, true);\n };\n }\n }, [\n ref,\n isDisabled,\n onPointerDown,\n triggerInteractOutside\n ]);\n}\nfunction $e0b6e0b68ec7f50f$var$isValidEvent(event, ref) {\n if (event.button > 0) return false;\n if (event.target) {\n // if the event target is no longer in the document, ignore\n const ownerDocument = event.target.ownerDocument;\n if (!ownerDocument || !ownerDocument.documentElement.contains(event.target)) return false;\n // If the target is within a top layer element (e.g. toasts), ignore.\n if (event.target.closest('[data-react-aria-top-layer]')) return false;\n }\n return ref.current && !ref.current.contains(event.target);\n}\n\n\nexport {$e0b6e0b68ec7f50f$export$872b660ac5a1ff98 as useInteractOutside};\n//# sourceMappingURL=useInteractOutside.module.js.map\n","import {isElementInChildOfActiveScope as $jtpZv$isElementInChildOfActiveScope} from \"@react-aria/focus\";\nimport {useEffect as $jtpZv$useEffect} from \"react\";\nimport {useInteractOutside as $jtpZv$useInteractOutside, useFocusWithin as $jtpZv$useFocusWithin} from \"@react-aria/interactions\";\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 */ \n\n\nconst $a11501f3d1d39e6c$var$visibleOverlays = [];\nfunction $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {\n let { onClose: onClose, shouldCloseOnBlur: shouldCloseOnBlur, isOpen: isOpen, isDismissable: isDismissable = false, isKeyboardDismissDisabled: isKeyboardDismissDisabled = false, shouldCloseOnInteractOutside: shouldCloseOnInteractOutside } = props;\n // Add the overlay ref to the stack of visible overlays on mount, and remove on unmount.\n (0, $jtpZv$useEffect)(()=>{\n if (isOpen) $a11501f3d1d39e6c$var$visibleOverlays.push(ref);\n return ()=>{\n let index = $a11501f3d1d39e6c$var$visibleOverlays.indexOf(ref);\n if (index >= 0) $a11501f3d1d39e6c$var$visibleOverlays.splice(index, 1);\n };\n }, [\n isOpen,\n ref\n ]);\n // Only hide the overlay when it is the topmost visible overlay in the stack\n let onHide = ()=>{\n if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref && onClose) onClose();\n };\n let onInteractOutsideStart = (e)=>{\n if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {\n if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref) {\n e.stopPropagation();\n e.preventDefault();\n }\n }\n };\n let onInteractOutside = (e)=>{\n if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.target)) {\n if ($a11501f3d1d39e6c$var$visibleOverlays[$a11501f3d1d39e6c$var$visibleOverlays.length - 1] === ref) {\n e.stopPropagation();\n e.preventDefault();\n }\n onHide();\n }\n };\n // Handle the escape key\n let onKeyDown = (e)=>{\n if (e.key === 'Escape' && !isKeyboardDismissDisabled && !e.nativeEvent.isComposing) {\n e.stopPropagation();\n e.preventDefault();\n onHide();\n }\n };\n // Handle clicking outside the overlay to close it\n (0, $jtpZv$useInteractOutside)({\n ref: ref,\n onInteractOutside: isDismissable && isOpen ? onInteractOutside : undefined,\n onInteractOutsideStart: onInteractOutsideStart\n });\n let { focusWithinProps: focusWithinProps } = (0, $jtpZv$useFocusWithin)({\n isDisabled: !shouldCloseOnBlur,\n onBlurWithin: (e)=>{\n // Do not close if relatedTarget is null, which means focus is lost to the body.\n // That can happen when switching tabs, or due to a VoiceOver/Chrome bug with Control+Option+Arrow navigation.\n // Clicking on the body to close the overlay should already be handled by useInteractOutside.\n // https://github.com/adobe/react-spectrum/issues/4130\n // https://github.com/adobe/react-spectrum/issues/4922\n //\n // If focus is moving into a child focus scope (e.g. menu inside a dialog),\n // do not close the outer overlay. At this point, the active scope should\n // still be the outer overlay, since blur events run before focus.\n if (!e.relatedTarget || (0, $jtpZv$isElementInChildOfActiveScope)(e.relatedTarget)) return;\n if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose === null || onClose === void 0 ? void 0 : onClose();\n }\n });\n let onPointerDownUnderlay = (e)=>{\n // fixes a firefox issue that starts text selection https://bugzilla.mozilla.org/show_bug.cgi?id=1675846\n if (e.target === e.currentTarget) e.preventDefault();\n };\n return {\n overlayProps: {\n onKeyDown: onKeyDown,\n ...focusWithinProps\n },\n underlayProps: {\n onPointerDown: onPointerDownUnderlay\n }\n };\n}\n\n\nexport {$a11501f3d1d39e6c$export$ea8f71083e90600f as useOverlay};\n//# sourceMappingURL=useOverlay.module.js.map\n","import {isWebKit as $fZVmS$isWebKit, clamp as $fZVmS$clamp} from \"@react-aria/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 */ \nconst $edcf132a9284368a$var$AXIS = {\n top: 'top',\n bottom: 'top',\n left: 'left',\n right: 'left'\n};\nconst $edcf132a9284368a$var$FLIPPED_DIRECTION = {\n top: 'bottom',\n bottom: 'top',\n left: 'right',\n right: 'left'\n};\nconst $edcf132a9284368a$var$CROSS_AXIS = {\n top: 'left',\n left: 'top'\n};\nconst $edcf132a9284368a$var$AXIS_SIZE = {\n top: 'height',\n left: 'width'\n};\nconst $edcf132a9284368a$var$TOTAL_SIZE = {\n width: 'totalWidth',\n height: 'totalHeight'\n};\nconst $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE = {};\nlet $edcf132a9284368a$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;\nfunction $edcf132a9284368a$var$getContainerDimensions(containerNode) {\n let width = 0, height = 0, totalWidth = 0, totalHeight = 0, top = 0, left = 0;\n let scroll = {};\n var _visualViewport_scale;\n let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.scale) !== null && _visualViewport_scale !== void 0 ? _visualViewport_scale : 1) > 1;\n if (containerNode.tagName === 'BODY') {\n let documentElement = document.documentElement;\n totalWidth = documentElement.clientWidth;\n totalHeight = documentElement.clientHeight;\n var _visualViewport_width;\n width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.width) !== null && _visualViewport_width !== void 0 ? _visualViewport_width : totalWidth;\n var _visualViewport_height;\n height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.height) !== null && _visualViewport_height !== void 0 ? _visualViewport_height : totalHeight;\n scroll.top = documentElement.scrollTop || containerNode.scrollTop;\n scroll.left = documentElement.scrollLeft || containerNode.scrollLeft;\n // The goal of the below is to get a top/left value that represents the top/left of the visual viewport with\n // respect to the layout viewport origin. This combined with the scrollTop/scrollLeft will allow us to calculate\n // coordinates/values with respect to the visual viewport or with respect to the layout viewport.\n if ($edcf132a9284368a$var$visualViewport) {\n top = $edcf132a9284368a$var$visualViewport.offsetTop;\n left = $edcf132a9284368a$var$visualViewport.offsetLeft;\n }\n } else {\n ({ width: width, height: height, top: top, left: left } = $edcf132a9284368a$var$getOffset(containerNode));\n scroll.top = containerNode.scrollTop;\n scroll.left = containerNode.scrollLeft;\n totalWidth = width;\n totalHeight = height;\n }\n if ((0, $fZVmS$isWebKit)() && (containerNode.tagName === 'BODY' || containerNode.tagName === 'HTML') && isPinchZoomedIn) {\n // Safari will report a non-zero scrollTop/Left for the non-scrolling body/HTML element when pinch zoomed in unlike other browsers.\n // Set to zero for parity calculations so we get consistent positioning of overlays across all browsers.\n // Also switch to visualViewport.pageTop/pageLeft so that we still accomodate for scroll positioning for body/HTML elements that are actually scrollable\n // before pinch zoom happens\n scroll.top = 0;\n scroll.left = 0;\n var _visualViewport_pageTop;\n top = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.pageTop) !== null && _visualViewport_pageTop !== void 0 ? _visualViewport_pageTop : 0;\n var _visualViewport_pageLeft;\n left = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.pageLeft) !== null && _visualViewport_pageLeft !== void 0 ? _visualViewport_pageLeft : 0;\n }\n return {\n width: width,\n height: height,\n totalWidth: totalWidth,\n totalHeight: totalHeight,\n scroll: scroll,\n top: top,\n left: left\n };\n}\nfunction $edcf132a9284368a$var$getScroll(node) {\n return {\n top: node.scrollTop,\n left: node.scrollLeft,\n width: node.scrollWidth,\n height: node.scrollHeight\n };\n}\n// Determines the amount of space required when moving the overlay to ensure it remains in the boundary\nfunction $edcf132a9284368a$var$getDelta(axis, offset, size, // The dimensions of the boundary element that the popover is\n// positioned within (most of the time this is the ).\nboundaryDimensions, // The dimensions of the containing block element that the popover is\n// positioned relative to (e.g. parent with position: relative).\n// Usually this is the same as the boundary element, but if the popover\n// is portaled somewhere other than the body and has an ancestor with\n// position: relative/absolute, it will be different.\ncontainerDimensions, padding, containerOffsetWithBoundary) {\n var _containerDimensions_scroll_axis;\n let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== void 0 ? _containerDimensions_scroll_axis : 0;\n // The height/width of the boundary. Matches the axis along which we are adjusting the overlay position\n let boundarySize = boundaryDimensions[$edcf132a9284368a$var$AXIS_SIZE[axis]];\n // Calculate the edges of the boundary (accomodating for the boundary padding) and the edges of the overlay.\n // Note that these values are with respect to the visual viewport (aka 0,0 is the top left of the viewport)\n let boundaryStartEdge = boundaryDimensions.scroll[$edcf132a9284368a$var$AXIS[axis]] + padding;\n let boundaryEndEdge = boundarySize + boundaryDimensions.scroll[$edcf132a9284368a$var$AXIS[axis]] - padding;\n let startEdgeOffset = offset - containerScroll + containerOffsetWithBoundary[axis] - boundaryDimensions[$edcf132a9284368a$var$AXIS[axis]];\n let endEdgeOffset = offset - containerScroll + size + containerOffsetWithBoundary[axis] - boundaryDimensions[$edcf132a9284368a$var$AXIS[axis]];\n // If any of the overlay edges falls outside of the boundary, shift the overlay the required amount to align one of the overlay's\n // edges with the closest boundary edge.\n if (startEdgeOffset < boundaryStartEdge) return boundaryStartEdge - startEdgeOffset;\n else if (endEdgeOffset > boundaryEndEdge) return Math.max(boundaryEndEdge - endEdgeOffset, boundaryStartEdge - startEdgeOffset);\n else return 0;\n}\nfunction $edcf132a9284368a$var$getMargins(node) {\n let style = window.getComputedStyle(node);\n return {\n top: parseInt(style.marginTop, 10) || 0,\n bottom: parseInt(style.marginBottom, 10) || 0,\n left: parseInt(style.marginLeft, 10) || 0,\n right: parseInt(style.marginRight, 10) || 0\n };\n}\nfunction $edcf132a9284368a$var$parsePlacement(input) {\n if ($edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input]) return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input];\n let [placement, crossPlacement] = input.split(' ');\n let axis = $edcf132a9284368a$var$AXIS[placement] || 'right';\n let crossAxis = $edcf132a9284368a$var$CROSS_AXIS[axis];\n if (!$edcf132a9284368a$var$AXIS[crossPlacement]) crossPlacement = 'center';\n let size = $edcf132a9284368a$var$AXIS_SIZE[axis];\n let crossSize = $edcf132a9284368a$var$AXIS_SIZE[crossAxis];\n $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input] = {\n placement: placement,\n crossPlacement: crossPlacement,\n axis: axis,\n crossAxis: crossAxis,\n size: size,\n crossSize: crossSize\n };\n return $edcf132a9284368a$var$PARSED_PLACEMENT_CACHE[input];\n}\nfunction $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset) {\n let { placement: placement, crossPlacement: crossPlacement, axis: axis, crossAxis: crossAxis, size: size, crossSize: crossSize } = placementInfo;\n let position = {};\n var _childOffset_crossAxis;\n // button position\n position[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== void 0 ? _childOffset_crossAxis : 0;\n var _childOffset_crossSize, _overlaySize_crossSize, _childOffset_crossSize1, _overlaySize_crossSize1;\n if (crossPlacement === 'center') // + (button size / 2) - (overlay size / 2)\n // at this point the overlay center should match the button center\n position[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== void 0 ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== void 0 ? _overlaySize_crossSize : 0)) / 2;\n else if (crossPlacement !== crossAxis) // + (button size) - (overlay size)\n // at this point the overlay bottom should match the button bottom\n position[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== void 0 ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== void 0 ? _overlaySize_crossSize1 : 0);\n /* else {\n the overlay top should match the button top\n } */ \n position[crossAxis] += crossOffset;\n // overlay top overlapping arrow with button bottom\n const minPosition = childOffset[crossAxis] - overlaySize[crossSize] + arrowSize + arrowBoundaryOffset;\n // overlay bottom overlapping arrow with button top\n const maxPosition = childOffset[crossAxis] + childOffset[crossSize] - arrowSize - arrowBoundaryOffset;\n position[crossAxis] = (0, $fZVmS$clamp)(position[crossAxis], minPosition, maxPosition);\n // Floor these so the position isn't placed on a partial pixel, only whole pixels. Shouldn't matter if it was floored or ceiled, so chose one.\n if (placement === axis) {\n // If the container is positioned (non-static), then we use the container's actual\n // height, as `bottom` will be relative to this height. But if the container is static,\n // then it can only be the `document.body`, and `bottom` will be relative to _its_\n // container, which should be as large as boundaryDimensions.\n const containerHeight = isContainerPositioned ? containerOffsetWithBoundary[size] : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE[size]];\n position[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] = Math.floor(containerHeight - childOffset[axis] + offset);\n } else position[axis] = Math.floor(childOffset[axis] + childOffset[size] + offset);\n return position;\n}\nfunction $edcf132a9284368a$var$getMaxHeight(position, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlayHeight, heightGrowthDirection) {\n const containerHeight = isContainerPositioned ? containerOffsetWithBoundary.height : boundaryDimensions[$edcf132a9284368a$var$TOTAL_SIZE.height];\n var _position_bottom;\n // For cases where position is set via \"bottom\" instead of \"top\", we need to calculate the true overlay top with respect to the boundary. Reverse calculate this with the same method\n // used in computePosition.\n let overlayTop = position.top != null ? containerOffsetWithBoundary.top + position.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position.bottom) !== null && _position_bottom !== void 0 ? _position_bottom : 0) - overlayHeight);\n var _boundaryDimensions_scroll_top, _margins_top, _margins_bottom, _boundaryDimensions_scroll_top1, _margins_top1, _margins_bottom1;\n let maxHeight = heightGrowthDirection !== 'top' ? // We want the distance between the top of the overlay to the bottom of the boundary\n Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== void 0 ? _boundaryDimensions_scroll_top : 0) - overlayTop // this is the top of the overlay\n - (((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0) + padding // save additional space for margin and padding\n )) : Math.max(0, overlayTop + overlayHeight // this is the bottom of the overlay\n - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== void 0 ? _boundaryDimensions_scroll_top1 : 0) // this is the top of the boundary\n ) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== void 0 ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== void 0 ? _margins_bottom1 : 0) + padding // save additional space for margin and padding\n ));\n return Math.min(boundaryDimensions.height - padding * 2, maxHeight);\n}\nfunction $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding, placementInfo) {\n let { placement: placement, axis: axis, size: size } = placementInfo;\n var _boundaryDimensions_scroll_axis, _margins_axis;\n if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== void 0 ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== void 0 ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);\n var _margins_axis1;\n return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== void 0 ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);\n}\nfunction $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset, overlaySize, scrollSize, margins, padding, flip, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset, crossOffset, isContainerPositioned, userSetMaxHeight, arrowSize, arrowBoundaryOffset) {\n let placementInfo = $edcf132a9284368a$var$parsePlacement(placementInput);\n let { size: size, crossAxis: crossAxis, crossSize: crossSize, placement: placement, crossPlacement: crossPlacement } = placementInfo;\n let position = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, offset, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset);\n let normalizedOffset = offset;\n let space = $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset, placementInfo);\n // Check if the scroll size of the overlay is greater than the available space to determine if we need to flip\n if (flip && scrollSize[size] > space) {\n let flippedPlacementInfo = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[placement]} ${crossPlacement}`);\n let flippedPosition = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, flippedPlacementInfo, offset, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset);\n let flippedSpace = $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding + offset, flippedPlacementInfo);\n // If the available space for the flipped position is greater than the original available space, flip.\n if (flippedSpace > space) {\n placementInfo = flippedPlacementInfo;\n position = flippedPosition;\n normalizedOffset = offset;\n }\n }\n // Determine the direction the height of the overlay can grow so that we can choose how to calculate the max height\n let heightGrowthDirection = 'bottom';\n if (placementInfo.axis === 'top') {\n if (placementInfo.placement === 'top') heightGrowthDirection = 'top';\n else if (placementInfo.placement === 'bottom') heightGrowthDirection = 'bottom';\n } else if (placementInfo.crossAxis === 'top') {\n if (placementInfo.crossPlacement === 'top') heightGrowthDirection = 'bottom';\n else if (placementInfo.crossPlacement === 'bottom') heightGrowthDirection = 'top';\n }\n let delta = $edcf132a9284368a$var$getDelta(crossAxis, position[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary);\n position[crossAxis] += delta;\n let maxHeight = $edcf132a9284368a$var$getMaxHeight(position, boundaryDimensions, containerOffsetWithBoundary, isContainerPositioned, margins, padding, overlaySize.height, heightGrowthDirection);\n if (userSetMaxHeight && userSetMaxHeight < maxHeight) maxHeight = userSetMaxHeight;\n overlaySize.height = Math.min(overlaySize.height, maxHeight);\n position = $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions, overlaySize, placementInfo, normalizedOffset, crossOffset, containerOffsetWithBoundary, isContainerPositioned, arrowSize, arrowBoundaryOffset);\n delta = $edcf132a9284368a$var$getDelta(crossAxis, position[crossAxis], overlaySize[crossSize], boundaryDimensions, containerDimensions, padding, containerOffsetWithBoundary);\n position[crossAxis] += delta;\n let arrowPosition = {};\n // All values are transformed so that 0 is at the top/left of the overlay depending on the orientation\n // Prefer the arrow being in the center of the trigger/overlay anchor element\n // childOffset[crossAxis] + .5 * childOffset[crossSize] = absolute position with respect to the trigger's coordinate system that would place the arrow in the center of the trigger\n // position[crossAxis] - margins[AXIS[crossAxis]] = value use to transform the position to a value with respect to the overlay's coordinate system. A child element's (aka arrow) position absolute's \"0\"\n // is positioned after the margin of its parent (aka overlay) so we need to subtract it to get the proper coordinate transform\n let preferredArrowPosition = childOffset[crossAxis] + .5 * childOffset[crossSize] - position[crossAxis] - margins[$edcf132a9284368a$var$AXIS[crossAxis]];\n // Min/Max position limits for the arrow with respect to the overlay\n const arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset;\n var _margins_left, _margins_right, _margins_top, _margins_bottom;\n // overlaySize[crossSize] - margins = true size of the overlay\n const overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === 'left' ? ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);\n const arrowMaxPosition = overlaySize[crossSize] - overlayMargin - arrowSize / 2 - arrowBoundaryOffset;\n // Min/Max position limits for the arrow with respect to the trigger/overlay anchor element\n // Same margin accomodation done here as well as for the preferredArrowPosition\n const arrowOverlappingChildMinEdge = childOffset[crossAxis] + arrowSize / 2 - (position[crossAxis] + margins[$edcf132a9284368a$var$AXIS[crossAxis]]);\n const arrowOverlappingChildMaxEdge = childOffset[crossAxis] + childOffset[crossSize] - arrowSize / 2 - (position[crossAxis] + margins[$edcf132a9284368a$var$AXIS[crossAxis]]);\n // Clamp the arrow positioning so that it always is within the bounds of the anchor and the overlay\n const arrowPositionOverlappingChild = (0, $fZVmS$clamp)(preferredArrowPosition, arrowOverlappingChildMinEdge, arrowOverlappingChildMaxEdge);\n arrowPosition[crossAxis] = (0, $fZVmS$clamp)(arrowPositionOverlappingChild, arrowMinPosition, arrowMaxPosition);\n return {\n position: position,\n maxHeight: maxHeight,\n arrowOffsetLeft: arrowPosition.left,\n arrowOffsetTop: arrowPosition.top,\n placement: placementInfo.placement\n };\n}\nfunction $edcf132a9284368a$export$b3ceb0cbf1056d98(opts) {\n let { placement: placement, targetNode: targetNode, overlayNode: overlayNode, scrollNode: scrollNode, padding: padding, shouldFlip: shouldFlip, boundaryElement: boundaryElement, offset: offset, crossOffset: crossOffset, maxHeight: maxHeight, arrowSize: arrowSize = 0, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = opts;\n let container = overlayNode instanceof HTMLElement ? $edcf132a9284368a$var$getContainingBlock(overlayNode) : document.documentElement;\n let isViewportContainer = container === document.documentElement;\n const containerPositionStyle = window.getComputedStyle(container).position;\n let isContainerPositioned = !!containerPositionStyle && containerPositionStyle !== 'static';\n let childOffset = isViewportContainer ? $edcf132a9284368a$var$getOffset(targetNode) : $edcf132a9284368a$var$getPosition(targetNode, container);\n if (!isViewportContainer) {\n let { marginTop: marginTop, marginLeft: marginLeft } = window.getComputedStyle(targetNode);\n childOffset.top += parseInt(marginTop, 10) || 0;\n childOffset.left += parseInt(marginLeft, 10) || 0;\n }\n let overlaySize = $edcf132a9284368a$var$getOffset(overlayNode);\n let margins = $edcf132a9284368a$var$getMargins(overlayNode);\n var _margins_left, _margins_right;\n overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0);\n var _margins_top, _margins_bottom;\n overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);\n let scrollSize = $edcf132a9284368a$var$getScroll(scrollNode);\n let boundaryDimensions = $edcf132a9284368a$var$getContainerDimensions(boundaryElement);\n let containerDimensions = $edcf132a9284368a$var$getContainerDimensions(container);\n // If the container is the HTML element wrapping the body element, the retrieved scrollTop/scrollLeft will be equal to the\n // body element's scroll. Set the container's scroll values to 0 since the overlay's edge position value in getDelta don't then need to be further offset\n // by the container scroll since they are essentially the same containing element and thus in the same coordinate system\n let containerOffsetWithBoundary = boundaryElement.tagName === 'BODY' ? $edcf132a9284368a$var$getOffset(container) : $edcf132a9284368a$var$getPosition(container, boundaryElement);\n if (container.tagName === 'HTML' && boundaryElement.tagName === 'BODY') {\n containerDimensions.scroll.top = 0;\n containerDimensions.scroll.left = 0;\n }\n return $edcf132a9284368a$export$6839422d1f33cee9(placement, childOffset, overlaySize, scrollSize, margins, padding, shouldFlip, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset, crossOffset, isContainerPositioned, maxHeight, arrowSize, arrowBoundaryOffset);\n}\nfunction $edcf132a9284368a$var$getOffset(node) {\n let { top: top, left: left, width: width, height: height } = node.getBoundingClientRect();\n let { scrollTop: scrollTop, scrollLeft: scrollLeft, clientTop: clientTop, clientLeft: clientLeft } = document.documentElement;\n return {\n top: top + scrollTop - clientTop,\n left: left + scrollLeft - clientLeft,\n width: width,\n height: height\n };\n}\nfunction $edcf132a9284368a$var$getPosition(node, parent) {\n let style = window.getComputedStyle(node);\n let offset;\n if (style.position === 'fixed') {\n let { top: top, left: left, width: width, height: height } = node.getBoundingClientRect();\n offset = {\n top: top,\n left: left,\n width: width,\n height: height\n };\n } else {\n offset = $edcf132a9284368a$var$getOffset(node);\n let parentOffset = $edcf132a9284368a$var$getOffset(parent);\n let parentStyle = window.getComputedStyle(parent);\n parentOffset.top += (parseInt(parentStyle.borderTopWidth, 10) || 0) - parent.scrollTop;\n parentOffset.left += (parseInt(parentStyle.borderLeftWidth, 10) || 0) - parent.scrollLeft;\n offset.top -= parentOffset.top;\n offset.left -= parentOffset.left;\n }\n offset.top -= parseInt(style.marginTop, 10) || 0;\n offset.left -= parseInt(style.marginLeft, 10) || 0;\n return offset;\n}\n// Returns the containing block of an element, which is the element that\n// this element will be positioned relative to.\n// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block\nfunction $edcf132a9284368a$var$getContainingBlock(node) {\n // The offsetParent of an element in most cases equals the containing block.\n // https://w3c.github.io/csswg-drafts/cssom-view/#dom-htmlelement-offsetparent\n let offsetParent = node.offsetParent;\n // The offsetParent algorithm terminates at the document body,\n // even if the body is not a containing block. Double check that\n // and use the documentElement if so.\n if (offsetParent && offsetParent === document.body && window.getComputedStyle(offsetParent).position === 'static' && !$edcf132a9284368a$var$isContainingBlock(offsetParent)) offsetParent = document.documentElement;\n // TODO(later): handle table elements?\n // The offsetParent can be null if the element has position: fixed, or a few other cases.\n // We have to walk up the tree manually in this case because fixed positioned elements\n // are still positioned relative to their containing block, which is not always the viewport.\n if (offsetParent == null) {\n offsetParent = node.parentElement;\n while(offsetParent && !$edcf132a9284368a$var$isContainingBlock(offsetParent))offsetParent = offsetParent.parentElement;\n }\n // Fall back to the viewport.\n return offsetParent || document.documentElement;\n}\n// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\nfunction $edcf132a9284368a$var$isContainingBlock(node) {\n let style = window.getComputedStyle(node);\n return style.transform !== 'none' || /transform|perspective/.test(style.willChange) || style.filter !== 'none' || style.contain === 'paint' || 'backdropFilter' in style && style.backdropFilter !== 'none' || 'WebkitBackdropFilter' in style && style.WebkitBackdropFilter !== 'none';\n}\n\n\nexport {$edcf132a9284368a$export$6839422d1f33cee9 as calculatePositionInternal, $edcf132a9284368a$export$b3ceb0cbf1056d98 as calculatePosition};\n//# sourceMappingURL=calculatePosition.module.js.map\n","import {calculatePosition as $edcf132a9284368a$export$b3ceb0cbf1056d98} from \"./calculatePosition.mjs\";\nimport {useCloseOnScroll as $dd149f63282afbbf$export$18fc8428861184da} from \"./useCloseOnScroll.mjs\";\nimport {useState as $39EOa$useState, useRef as $39EOa$useRef, useEffect as $39EOa$useEffect, useCallback as $39EOa$useCallback} from \"react\";\nimport {useLayoutEffect as $39EOa$useLayoutEffect, useResizeObserver as $39EOa$useResizeObserver} from \"@react-aria/utils\";\nimport {useLocale as $39EOa$useLocale} from \"@react-aria/i18n\";\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 */ \n\n\n\n\nlet $2a41e45df1593e64$var$visualViewport = typeof document !== 'undefined' ? window.visualViewport : null;\nfunction $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {\n let { direction: direction } = (0, $39EOa$useLocale)();\n let { arrowSize: arrowSize = 0, targetRef: targetRef, overlayRef: overlayRef, scrollRef: scrollRef = overlayRef, placement: placement = 'bottom', containerPadding: containerPadding = 12, shouldFlip: shouldFlip = true, boundaryElement: boundaryElement = typeof document !== 'undefined' ? document.body : null, offset: offset = 0, crossOffset: crossOffset = 0, shouldUpdatePosition: shouldUpdatePosition = true, isOpen: isOpen = true, onClose: onClose, maxHeight: maxHeight, arrowBoundaryOffset: arrowBoundaryOffset = 0 } = props;\n let [position, setPosition] = (0, $39EOa$useState)(null);\n let deps = [\n shouldUpdatePosition,\n placement,\n overlayRef.current,\n targetRef.current,\n scrollRef.current,\n containerPadding,\n shouldFlip,\n boundaryElement,\n offset,\n crossOffset,\n isOpen,\n direction,\n maxHeight,\n arrowBoundaryOffset,\n arrowSize\n ];\n // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might\n // just be a non-realistic use case\n // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles\n let lastScale = (0, $39EOa$useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);\n (0, $39EOa$useEffect)(()=>{\n if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;\n }, [\n isOpen\n ]);\n let updatePosition = (0, $39EOa$useCallback)(()=>{\n if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;\n if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;\n // Determine a scroll anchor based on the focused element.\n // This stores the offset of the anchor element from the scroll container\n // so it can be restored after repositioning. This way if the overlay height\n // changes, the focused element appears to stay in the same position.\n let anchor = null;\n if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {\n var _document_activeElement;\n let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n var _anchorRect_top;\n // Anchor from the top if the offset is in the top half of the scrollable element,\n // otherwise anchor from the bottom.\n anchor = {\n type: 'top',\n offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top\n };\n if (anchor.offset > scrollRect.height / 2) {\n anchor.type = 'bottom';\n var _anchorRect_bottom;\n anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;\n }\n }\n // Always reset the overlay's previous max height if not defined by the user so that we can compensate for\n // RAC collections populating after a second render and properly set a correct max height + positioning when it populates.\n let overlay = overlayRef.current;\n if (!maxHeight && overlayRef.current) {\n var _window_visualViewport;\n overlay.style.top = '0px';\n overlay.style.bottom = '';\n var _window_visualViewport_height;\n overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';\n }\n let position = (0, $edcf132a9284368a$export$b3ceb0cbf1056d98)({\n placement: $2a41e45df1593e64$var$translateRTL(placement, direction),\n overlayNode: overlayRef.current,\n targetNode: targetRef.current,\n scrollNode: scrollRef.current || overlayRef.current,\n padding: containerPadding,\n shouldFlip: shouldFlip,\n boundaryElement: boundaryElement,\n offset: offset,\n crossOffset: crossOffset,\n maxHeight: maxHeight,\n arrowSize: arrowSize,\n arrowBoundaryOffset: arrowBoundaryOffset\n });\n if (!position.position) return;\n // Modify overlay styles directly so positioning happens immediately without the need of a second render\n // This is so we don't have to delay autoFocus scrolling or delay applying preventScroll for popovers\n overlay.style.top = '';\n overlay.style.bottom = '';\n overlay.style.left = '';\n overlay.style.right = '';\n Object.keys(position.position).forEach((key)=>overlay.style[key] = position.position[key] + 'px');\n overlay.style.maxHeight = position.maxHeight != null ? position.maxHeight + 'px' : '';\n // Restore scroll position relative to anchor element.\n if (anchor && document.activeElement && scrollRef.current) {\n let anchorRect = document.activeElement.getBoundingClientRect();\n let scrollRect = scrollRef.current.getBoundingClientRect();\n let newOffset = anchorRect[anchor.type] - scrollRect[anchor.type];\n scrollRef.current.scrollTop += newOffset - anchor.offset;\n }\n // Trigger a set state for a second render anyway for arrow positioning\n setPosition(position);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n // Update position when anything changes\n // eslint-disable-next-line react-hooks/exhaustive-deps\n (0, $39EOa$useLayoutEffect)(updatePosition, deps);\n // Update position on window resize\n $2a41e45df1593e64$var$useResize(updatePosition);\n // Update position when the overlay changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: overlayRef,\n onResize: updatePosition\n });\n // Update position when the target changes size (might need to flip).\n (0, $39EOa$useResizeObserver)({\n ref: targetRef,\n onResize: updatePosition\n });\n // Reposition the overlay and do not close on scroll while the visual viewport is resizing.\n // This will ensure that overlays adjust their positioning when the iOS virtual keyboard appears.\n let isResizing = (0, $39EOa$useRef)(false);\n (0, $39EOa$useLayoutEffect)(()=>{\n let timeout;\n let onResize = ()=>{\n isResizing.current = true;\n clearTimeout(timeout);\n timeout = setTimeout(()=>{\n isResizing.current = false;\n }, 500);\n updatePosition();\n };\n // Only reposition the overlay if a scroll event happens immediately as a result of resize (aka the virtual keyboard has appears)\n // We don't want to reposition the overlay if the user has pinch zoomed in and is scrolling the viewport around.\n let onScroll = ()=>{\n if (isResizing.current) onResize();\n };\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);\n return ()=>{\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);\n $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);\n };\n }, [\n updatePosition\n ]);\n let close = (0, $39EOa$useCallback)(()=>{\n if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();\n }, [\n onClose,\n isResizing\n ]);\n // When scrolling a parent scrollable region of the trigger (other than the body),\n // we hide the popover. Otherwise, its position would be incorrect.\n (0, $dd149f63282afbbf$export$18fc8428861184da)({\n triggerRef: targetRef,\n isOpen: isOpen,\n onClose: onClose && close\n });\n var _position_maxHeight, _position_placement;\n return {\n overlayProps: {\n style: {\n position: 'absolute',\n zIndex: 100000,\n ...position === null || position === void 0 ? void 0 : position.position,\n maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'\n }\n },\n placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,\n arrowProps: {\n 'aria-hidden': 'true',\n role: 'presentation',\n style: {\n left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,\n top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop\n }\n },\n updatePosition: updatePosition\n };\n}\nfunction $2a41e45df1593e64$var$useResize(onResize) {\n (0, $39EOa$useLayoutEffect)(()=>{\n window.addEventListener('resize', onResize, false);\n return ()=>{\n window.removeEventListener('resize', onResize, false);\n };\n }, [\n onResize\n ]);\n}\nfunction $2a41e45df1593e64$var$translateRTL(position, direction) {\n if (direction === 'rtl') return position.replace('start', 'right').replace('end', 'left');\n return position.replace('start', 'left').replace('end', 'right');\n}\n\n\nexport {$2a41e45df1593e64$export$d39e1813b3bdd0e1 as useOverlayPosition};\n//# sourceMappingURL=useOverlayPosition.module.js.map\n","import {useEffect as $Vsl8o$useEffect} from \"react\";\n\n\nfunction $9daab02d461809db$var$hasResizeObserver() {\n return typeof window.ResizeObserver !== 'undefined';\n}\nfunction $9daab02d461809db$export$683480f191c0e3ea(options) {\n const { ref: ref, box: box, onResize: onResize } = options;\n (0, $Vsl8o$useEffect)(()=>{\n let element = ref === null || ref === void 0 ? void 0 : ref.current;\n if (!element) return;\n if (!$9daab02d461809db$var$hasResizeObserver()) {\n window.addEventListener('resize', onResize, false);\n return ()=>{\n window.removeEventListener('resize', onResize, false);\n };\n } else {\n const resizeObserverInstance = new window.ResizeObserver((entries)=>{\n if (!entries.length) return;\n onResize();\n });\n resizeObserverInstance.observe(element, {\n box: box\n });\n return ()=>{\n if (element) resizeObserverInstance.unobserve(element);\n };\n }\n }, [\n onResize,\n ref,\n box\n ]);\n}\n\n\nexport {$9daab02d461809db$export$683480f191c0e3ea as useResizeObserver};\n//# sourceMappingURL=useResizeObserver.module.js.map\n","import {useCallback as $hnMvi$useCallback} from \"react\";\nimport {useControlledState as $hnMvi$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 */ \n\nfunction $fc909762b330b746$export$61c6a8c84e605fb6(props) {\n let [isOpen, setOpen] = (0, $hnMvi$useControlledState)(props.isOpen, props.defaultOpen || false, props.onOpenChange);\n const open = (0, $hnMvi$useCallback)(()=>{\n setOpen(true);\n }, [\n setOpen\n ]);\n const close = (0, $hnMvi$useCallback)(()=>{\n setOpen(false);\n }, [\n setOpen\n ]);\n const toggle = (0, $hnMvi$useCallback)(()=>{\n setOpen(!isOpen);\n }, [\n setOpen,\n isOpen\n ]);\n return {\n isOpen: isOpen,\n setOpen: setOpen,\n open: open,\n close: close,\n toggle: toggle\n };\n}\n\n\nexport {$fc909762b330b746$export$61c6a8c84e605fb6 as useOverlayTriggerState};\n//# sourceMappingURL=useOverlayTriggerState.module.js.map\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 */ /**\n * Takes a value and forces it to the closest min/max if it's outside. Also forces it to the closest valid step.\n */ function $9446cca9a3875146$export$7d15b64cf5a3a4c4(value, min = -Infinity, max = Infinity) {\n let newValue = Math.min(Math.max(value, min), max);\n return newValue;\n}\nfunction $9446cca9a3875146$export$e1a7b8e69ef6c52f(value, step) {\n let roundedValue = value;\n let stepString = step.toString();\n let pointIndex = stepString.indexOf('.');\n let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;\n if (precision > 0) {\n let pow = Math.pow(10, precision);\n roundedValue = Math.round(roundedValue * pow) / pow;\n }\n return roundedValue;\n}\nfunction $9446cca9a3875146$export$cb6e0bb50bc19463(value, min, max, step) {\n min = Number(min);\n max = Number(max);\n let remainder = (value - (isNaN(min) ? 0 : min)) % step;\n let snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(Math.abs(remainder) * 2 >= step ? value + Math.sign(remainder) * (step - Math.abs(remainder)) : value - remainder, step);\n if (!isNaN(min)) {\n if (snappedValue < min) snappedValue = min;\n else if (!isNaN(max) && snappedValue > max) snappedValue = min + Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f((max - min) / step, step)) * step;\n } else if (!isNaN(max) && snappedValue > max) snappedValue = Math.floor($9446cca9a3875146$export$e1a7b8e69ef6c52f(max / step, step)) * step;\n // correct floating point behavior by rounding to step precision\n snappedValue = $9446cca9a3875146$export$e1a7b8e69ef6c52f(snappedValue, step);\n return snappedValue;\n}\nfunction $9446cca9a3875146$export$b6268554fba451f(value, digits, base = 10) {\n const pow = Math.pow(base, digits);\n return Math.round(value * pow) / pow;\n}\n\n\nexport {$9446cca9a3875146$export$7d15b64cf5a3a4c4 as clamp, $9446cca9a3875146$export$e1a7b8e69ef6c52f as roundToStepPrecision, $9446cca9a3875146$export$cb6e0bb50bc19463 as snapValueToStep, $9446cca9a3875146$export$b6268554fba451f as toFixedNumber};\n//# sourceMappingURL=number.module.js.map\n"],"names":["getTransformOrigins","origins","top","originY","bottom","left","originX","right","placement","toReactAriaPlacement","mapPositions","getShouldUseAxisPlacement","axisPlacement","overlayPlacement","includes","position","split","getArrowPlacement","dynamicPlacement","concat","TRANSITION_EASINGS","ease","easeIn","easeOut","easeInOut","spring","springOut","softSpring","TRANSITION_VARIANTS","scaleSpring","enter","transform","opacity","transition","type","bounce","duration","exit","scaleSpringOpacity","initial","scale","scaleFadeIn","scaleInOut","fade","collapse","height","easings","mergeRefs","_len","arguments","length","refs","_key","forEach","assignRef","ref","value","isFunction","current","error","node","popover","_chunk_UWE6H66T_mjs__WEBPACK_IMPORTED_MODULE_0__","tv","slots","base","_chunk_GH5E4FQB_mjs__WEBPACK_IMPORTED_MODULE_1__","Dh","content","trigger","backdrop","arrow","variants","size","sm","md","lg","color","default","foreground","_chunk_GQT3YUX3_mjs__WEBPACK_IMPORTED_MODULE_2__","J","solid","primary","secondary","success","warning","danger","radius","none","full","shadow","transparent","opaque","blur","triggerScaleOnOpen","true","false","disableAnimation","isTriggerDisabled","defaultVariants","compoundVariants","class","$dd149f63282afbbf$export$f6211563215e3b37","WeakMap","$dd149f63282afbbf$export$18fc8428861184da","opts","triggerRef","isOpen","onClose","react__WEBPACK_IMPORTED_MODULE_0__","useEffect","onScroll","target","e","Node","contains","HTMLInputElement","HTMLTextAreaElement","onCloseHandler","get","window","addEventListener","removeEventListener","$e0b6e0b68ec7f50f$var$isValidEvent","event","button","ownerDocument","documentElement","closest","$a11501f3d1d39e6c$var$visibleOverlays","$a11501f3d1d39e6c$export$ea8f71083e90600f","props","shouldCloseOnBlur","isDismissable","isKeyboardDismissDisabled","shouldCloseOnInteractOutside","react","push","index","indexOf","splice","onHide","onInteractOutside","isDisabled","onInteractOutsideStart","stateRef","useRef","isPointerDown","ignoreEmulatedMouseEvents","onPointerDown","useEffectEvent","i","triggerInteractOutside","state","element","documentObject","domHelpers","r","PointerEvent","onPointerUp","onMouseUp","onTouchEnd","stopPropagation","preventDefault","undefined","focusWithinProps","useFocusWithin","L","onBlurWithin","relatedTarget","FocusScope","cW","overlayProps","onKeyDown","key","nativeEvent","isComposing","underlayProps","currentTarget","$edcf132a9284368a$var$AXIS","$edcf132a9284368a$var$FLIPPED_DIRECTION","$edcf132a9284368a$var$CROSS_AXIS","$edcf132a9284368a$var$AXIS_SIZE","$edcf132a9284368a$var$TOTAL_SIZE","width","$edcf132a9284368a$var$PARSED_PLACEMENT_CACHE","$edcf132a9284368a$var$visualViewport","document","visualViewport","$edcf132a9284368a$var$getContainerDimensions","containerNode","_visualViewport_scale","_visualViewport_width","_visualViewport_height","_visualViewport_pageTop","_visualViewport_pageLeft","totalWidth","totalHeight","scroll","isPinchZoomedIn","tagName","clientWidth","clientHeight","scrollTop","scrollLeft","offsetTop","offsetLeft","$edcf132a9284368a$var$getOffset","platform","Pf","pageTop","pageLeft","$edcf132a9284368a$var$getDelta","axis","offset","boundaryDimensions","containerDimensions","padding","containerOffsetWithBoundary","_containerDimensions_scroll_axis","containerScroll","boundarySize","boundaryStartEdge","boundaryEndEdge","startEdgeOffset","endEdgeOffset","Math","max","$edcf132a9284368a$var$parsePlacement","input","crossPlacement","crossAxis","crossSize","$edcf132a9284368a$var$computePosition","childOffset","overlaySize","placementInfo","crossOffset","isContainerPositioned","arrowSize","arrowBoundaryOffset","_childOffset_crossAxis","_childOffset_crossSize","_overlaySize_crossSize","_childOffset_crossSize1","_overlaySize_crossSize1","minPosition","maxPosition","number","uZ","containerHeight","floor","$edcf132a9284368a$var$getAvailableSpace","margins","_boundaryDimensions_scroll_axis","_margins_axis","_margins_axis1","getBoundingClientRect","clientTop","clientLeft","$edcf132a9284368a$var$getPosition","parent","style","getComputedStyle","parentOffset","parentStyle","parseInt","borderTopWidth","borderLeftWidth","marginTop","marginLeft","$edcf132a9284368a$var$isContainingBlock","test","willChange","filter","contain","backdropFilter","WebkitBackdropFilter","$2a41e45df1593e64$var$visualViewport","$2a41e45df1593e64$export$d39e1813b3bdd0e1","_position_maxHeight","_position_placement","direction","context","j","targetRef","overlayRef","scrollRef","containerPadding","shouldFlip","boundaryElement","body","shouldUpdatePosition","maxHeight","setPosition","useState","deps","lastScale","updatePosition","useCallback","_document_activeElement","_anchorRect_top","_anchorRect_bottom","_window_visualViewport","_window_visualViewport_height","anchor","activeElement","anchorRect","scrollRect","overlay","innerHeight","_margins_left","_margins_right","_margins_top","_margins_bottom","targetNode","overlayNode","scrollNode","container","HTMLElement","$edcf132a9284368a$var$getContainingBlock","offsetParent","parentElement","isViewportContainer","containerPositionStyle","marginBottom","marginRight","scrollSize","scrollWidth","scrollHeight","$edcf132a9284368a$export$6839422d1f33cee9","placementInput","flip","userSetMaxHeight","normalizedOffset","space","flippedPlacementInfo","flippedPosition","heightGrowthDirection","delta","$edcf132a9284368a$var$getMaxHeight","overlayHeight","_position_bottom","_boundaryDimensions_scroll_top","_boundaryDimensions_scroll_top1","_margins_top1","_margins_bottom1","overlayTop","min","arrowPosition","preferredArrowPosition","arrowMinPosition","overlayMargin","arrowMaxPosition","arrowOverlappingChildMinEdge","arrowOverlappingChildMaxEdge","arrowPositionOverlappingChild","arrowOffsetLeft","arrowOffsetTop","replace","Object","keys","newOffset","useLayoutEffect","b","useResizeObserver","y","onResize","isResizing","timeout","clearTimeout","setTimeout","close","useCloseOnScroll","O","zIndex","arrowProps","role","$9daab02d461809db$export$683480f191c0e3ea","options","box","ResizeObserver","resizeObserverInstance","entries","observe","unobserve","$fc909762b330b746$export$61c6a8c84e605fb6","setOpen","_react_stately_utils__WEBPACK_IMPORTED_MODULE_1__","z","defaultOpen","onOpenChange","open","toggle","$9446cca9a3875146$export$7d15b64cf5a3a4c4","Infinity","$9446cca9a3875146$export$e1a7b8e69ef6c52f","step","roundedValue","stepString","toString","pointIndex","precision","pow","round","$9446cca9a3875146$export$cb6e0bb50bc19463","Number","remainder","isNaN","snappedValue","abs","sign"],"sourceRoot":""}