motion-v 0.2.6 → 0.3.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +5858 -0
- package/dist/es/animation/use-animate.mjs +31 -0
- package/dist/es/components/AnimatePresence.vue.mjs +71 -0
- package/dist/es/components/AnimatePresence.vue2.mjs +4 -0
- package/dist/es/components/Motion.vue.mjs +116 -0
- package/dist/es/components/Motion.vue2.mjs +4 -0
- package/dist/es/components/Primitive.mjs +29 -0
- package/dist/es/components/Slot.mjs +36 -0
- package/dist/es/components/context.mjs +6 -0
- package/dist/es/components/presence.mjs +16 -0
- package/dist/es/components/renderSlotFragments.mjs +13 -0
- package/dist/es/constants/index.mjs +20 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/GroupPlaybackControls.mjs +76 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/index.mjs +27 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/resolve-subjects.mjs +16 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/sequence.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/single-value.mjs +11 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animate/subject.mjs +38 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/AcceleratedAnimation.mjs +243 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/BaseAnimation.mjs +95 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/MainThreadAnimation.mjs +275 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.mjs +17 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/utils/accelerated-values.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/utils/can-animate.mjs +30 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/NativeAnimation.mjs +162 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/animate-elements.mjs +31 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/animate-style.mjs +13 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/easing.mjs +37 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/index.mjs +20 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/attach-timeline.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/linear.mjs +13 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/memo-supports.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/style.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-flags.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-linear-easing.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-partial-keyframes.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.mjs +5 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/inertia.mjs +67 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/keyframes.mjs +37 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/spring/find.mjs +83 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/spring/index.mjs +83 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/utils/calc-duration.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/utils/is-generator.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/generators/utils/velocity.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/interfaces/motion-value.mjs +73 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/interfaces/visual-element-target.mjs +59 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/optimized-appear/data-id.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/optimized-appear/get-appear-id.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/sequence/create.mjs +153 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs +15 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/sequence/utils/edit.mjs +26 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/sequence/utils/sort.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/create-visual-element.mjs +43 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/default-transitions.mjs +33 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/get-value-transition.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/is-animatable.mjs +16 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/is-animation-controls.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/is-none.mjs +13 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/is-transition-defined.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/animation/utils/stagger.mjs +26 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/anticipate.mjs +5 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/back.mjs +11 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/circ.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/cubic-bezier.mjs +28 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/ease.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/modifiers/mirror.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/modifiers/reverse.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/steps.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/utils/create-generator-easing.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/utils/get-easing-for-segment.mjs +8 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/utils/is-bezier-definition.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/utils/is-easing-array.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/easing/utils/map.mjs +35 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/batcher.mjs +75 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/frame.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/index-legacy.mjs +11 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/render-step.mjs +63 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/frameloop/sync-time.mjs +21 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/motion/features/definitions.mjs +29 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs +8 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/geometry/conversion.mjs +22 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/geometry/models.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/styles/scale-correction.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/projection/utils/measure.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/VisualElement.mjs +372 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/DOMKeyframesResolver.mjs +101 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/DOMVisualElement.mjs +21 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/resize/handle-element.mjs +62 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/resize/handle-window.mjs +31 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/resize/index.mjs +8 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/index.mjs +63 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/info.mjs +51 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/observe.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/offsets/edge.mjs +33 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/offsets/index.mjs +38 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/offsets/inset.mjs +36 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/offsets/offset.mjs +23 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/offsets/presets.mjs +21 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/on-scroll-handler.mjs +39 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/supports.mjs +5 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/scroll/track.mjs +67 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs +31 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/utils/is-svg-element.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/utils/resolve-element.mjs +23 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs +65 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/defaults.mjs +25 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/dimensions.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/find.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/number-browser.mjs +41 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/number.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/test.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/transform.mjs +31 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/type-auto.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/value-types/type-int.mjs +8 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/dom/viewport/index.mjs +37 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/HTMLVisualElement.mjs +55 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/utils/build-styles.mjs +42 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/utils/build-transform.mjs +47 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/utils/make-none-animatable.mjs +22 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/utils/render.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs +16 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/html/utils/transform.mjs +24 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/object/ObjectVisualElement.mjs +41 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/store.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/SVGVisualElement.mjs +45 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/build-attrs.mjs +46 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs +28 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/is-svg-tag.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/path.mjs +20 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/render.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs +16 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/svg/utils/transform-origin.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/KeyframesResolver.mjs +134 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/is-controlling-variants.mjs +13 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/is-variant-label.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/motion-values.mjs +37 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/resolve-dynamic-variants.mjs +8 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/resolve-variants.mjs +25 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/setters.mjs +22 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/render/utils/variant-props.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/GlobalConfig.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/array.mjs +13 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/clamp.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/delay.mjs +22 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/distance.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/errors.mjs +19 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/hsla-to-rgba.mjs +39 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/interpolate.mjs +49 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/is-browser.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/is-numerical-string.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/is-zero-value-string.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/memo.mjs +11 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/color.mjs +44 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/complex.mjs +84 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/immediate.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/index.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/number.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/mix/visibility.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/noop.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/offsets/default.mjs +9 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/offsets/fill.mjs +12 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/offsets/time.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/pipe.mjs +5 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/progress.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/reduced-motion/index.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/reduced-motion/state.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/resolve-value.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/subscription-manager.mjs +32 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/time-conversion.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/transform.mjs +21 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/velocity-per-second.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/warn-once.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/utils/wrap.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/index.mjs +282 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/color/hex.mjs +37 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/color/hsla.mjs +14 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/color/index.mjs +21 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/color/rgba.mjs +18 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/color/utils.mjs +21 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/complex/filter.mjs +27 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/complex/index.mjs +84 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/numbers/index.mjs +19 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/numbers/units.mjs +23 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/utils/color-regex.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/utils/float-regex.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/utils/is-nullish.mjs +6 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/utils/sanitize.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/types/utils/single-color-regex.mjs +4 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/use-will-change/add-will-change.mjs +10 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/use-will-change/is.mjs +7 -0
- package/dist/es/external/.pnpm/framer-motion@11.11.11/external/framer-motion/dist/es/value/utils/is-motion-value.mjs +4 -0
- package/dist/es/external/.pnpm/hey-listen@1.0.8/external/hey-listen/dist/hey-listen.es.mjs +20 -0
- package/dist/es/features/events.mjs +69 -0
- package/dist/es/features/feature-manager.mjs +29 -0
- package/dist/es/features/feature.mjs +10 -0
- package/dist/es/features/gestures/base.mjs +19 -0
- package/dist/es/features/gestures/hover.mjs +42 -0
- package/dist/es/features/gestures/in-view.mjs +35 -0
- package/dist/es/features/gestures/press.mjs +37 -0
- package/dist/es/features/svg.mjs +31 -0
- package/dist/es/index.mjs +104 -0
- package/dist/es/state/event.mjs +6 -0
- package/dist/es/state/motion-state.mjs +175 -0
- package/dist/es/state/schedule.mjs +30 -0
- package/dist/es/state/style.mjs +117 -0
- package/dist/es/state/transform.mjs +68 -0
- package/dist/es/state/utils.mjs +119 -0
- package/dist/es/utils/createContext.mjs +25 -0
- package/dist/es/utils/events.mjs +8 -0
- package/dist/es/utils/motion-value.mjs +6 -0
- package/dist/es/utils/use-animation-frame.mjs +20 -0
- package/dist/es/utils/use-in-view.mjs +25 -0
- package/dist/es/value/use-combine-values.mjs +27 -0
- package/dist/es/value/use-computed.mjs +20 -0
- package/dist/es/value/use-motion-template.mjs +22 -0
- package/dist/es/value/use-scroll.mjs +56 -0
- package/dist/es/value/use-spring.mjs +59 -0
- package/dist/es/value/use-time.mjs +10 -0
- package/dist/es/value/use-transform.mjs +29 -0
- package/dist/src/animation/index.d.ts +1 -0
- package/dist/src/animation/use-animate.d.ts +8 -0
- package/dist/src/components/Motion.d.ts +3 -3
- package/dist/src/features/events.d.ts +1 -1
- package/dist/src/features/feature-manager.d.ts +9 -0
- package/dist/src/features/feature.d.ts +0 -7
- package/dist/src/features/index.d.ts +2 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/state/motion-state.d.ts +1 -1
- package/dist/src/state/utils.d.ts +1 -1
- package/dist/src/types/state.d.ts +3 -2
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/use-dom-ref.d.ts +1 -0
- package/dist/src/utils/use-in-view.d.ts +3 -0
- package/package.json +8 -7
- package/dist/index.js +0 -4011
- package/dist/index.umd.cjs +0 -1
- package/dist/src/components/usePrimitiveElement.d.ts +0 -5
package/dist/index.umd.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(d,m){typeof exports=="object"&&typeof module<"u"?m(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],m):(d=typeof globalThis<"u"?globalThis:d||self,m(d["motion-v"]={},d.vue))})(this,function(d,m){"use strict";function Ys(e,t){e.indexOf(t)===-1&&e.push(t)}function Ke(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ke{constructor(){this.subscriptions=[]}add(t){return Ys(this.subscriptions,t),()=>Ke(this.subscriptions,t)}notify(t,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,s);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function _t(e,t){return t?e*(1e3/t):0}const $e=new Set;function St(e,t,n){e||$e.has(t)||(console.warn(t),$e.add(t))}const Xs={skipAnimations:!1,useManualTiming:!1},N=e=>e;function qs(e){let t=new Set,n=new Set,s=!1,i=!1;const r=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const g=f&&s?t:n;return c&&r.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,s){i=!0;return}s=!0,[t,n]=[n,t],n.clear(),t.forEach(a),s=!1,i&&(i=!1,l.process(u))}};return l}const rt=["read","resolveKeyframes","update","preRender","render","postRender"],Zs=40;function Js(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=rt.reduce((v,b)=>(v[b]=qs(r),v),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:h}=o,g=()=>{const v=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(v-i.timestamp,Zs),1),i.timestamp=v,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(g))},y=()=>{n=!0,s=!0,i.isProcessing||e(g)};return{schedule:rt.reduce((v,b)=>{const A=o[b];return v[b]=(M,V=!1,P=!1)=>(n||y(),A.schedule(M,V,P)),v},{}),cancel:v=>{for(let b=0;b<rt.length;b++)o[rt[b]].cancel(v)},state:i,steps:o}}const{schedule:x,cancel:R,state:j,steps:Qs}=Js(typeof requestAnimationFrame<"u"?requestAnimationFrame:N,!0);let wt;function ti(){wt=void 0}const K={now:()=>(wt===void 0&&K.set(j.isProcessing||Xs.useManualTiming?j.timestamp:performance.now()),wt),set:e=>{wt=e,queueMicrotask(ti)}},_e=30,ei=e=>!isNaN(parseFloat(e)),_={current:void 0};class We{constructor(t,n={}){this.version="11.11.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const r=K.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=K.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ei(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&St(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ke);const s=this.events[t].add(n);return t==="change"?()=>{s(),x.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return _.current&&_.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_e)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_e);return _t(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function D(e,t){return new We(e,t)}function Tt(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ge=Tt(()=>window.ScrollTimeline!==void 0);class Wt{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(i=>Ge()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const O=e=>e*1e3,L=e=>e/1e3,ni=5;function Ue(e,t,n){const s=Math.max(t-ni,0);return _t(n-e(s),t-s)}d.warning=N,d.invariant=N,process.env.NODE_ENV!=="production"&&(d.warning=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},d.invariant=(e,t)=>{if(!e)throw new Error(t)});const W=(e,t,n)=>n>t?t:n<e?e:n,Gt=.001,si=.01,ze=10,ii=.05,ri=1;function oi({duration:e=800,bounce:t=.25,velocity:n=0,mass:s=1}){let i,r;d.warning(e<=O(ze),"Spring duration must be 10 seconds or less");let o=1-t;o=W(ii,ri,o),e=W(si,ze,L(e)),o<1?(i=u=>{const c=u*o,f=c*e,h=c-n,g=Ut(u,o),y=Math.exp(-f);return Gt-h/g*y},r=u=>{const f=u*o*e,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-f),T=Ut(Math.pow(u,2),o);return(-i(u)+Gt>0?-1:1)*((h-g)*y)/T}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Gt+c*f},r=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=li(i,r,a);if(e=O(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:e}}}const ai=12;function li(e,t,n){let s=n;for(let i=1;i<ai;i++)s=s-e(s)/t(s);return s}function Ut(e,t){return e*Math.sqrt(1-t*t)}const ui=["duration","bounce"],ci=["stiffness","damping","mass"];function je(e,t){return t.some(n=>e[n]!==void 0)}function fi(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!je(e,ci)&&je(e,ui)){const n=oi(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Vt({keyframes:e,restDelta:t,restSpeed:n,...s}){const i=e[0],r=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:h}=fi({...s,velocity:-L(s.velocity||0)}),g=f||0,y=l/(2*Math.sqrt(a*u)),T=r-i,w=L(Math.sqrt(a/u)),v=Math.abs(T)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let b;if(y<1){const A=Ut(w,y);b=M=>{const V=Math.exp(-y*w*M);return r-V*((g+y*w*T)/A*Math.sin(A*M)+T*Math.cos(A*M))}}else if(y===1)b=A=>r-Math.exp(-w*A)*(T+(g+w*T)*A);else{const A=w*Math.sqrt(y*y-1);b=M=>{const V=Math.exp(-y*w*M),P=Math.min(A*M,300);return r-V*((g+y*w*T)*Math.sinh(P)+A*T*Math.cosh(P))/A}}return{calculatedDuration:h&&c||null,next:A=>{const M=b(A);if(h)o.done=A>=c;else{let V=0;y<1&&(V=A===0?O(g):Ue(b,A,M));const P=Math.abs(V)<=n,B=Math.abs(r-M)<=t;o.done=P&&B}return o.value=o.done?r:M,o}}}const zt=2e4;function He(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<zt;)t+=n,s=e.next(t);return t>=zt?1/0:t}function Ye(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(He(s),zt);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:L(i)}}const ot=(e,t,n)=>e+(t-e)*n,J=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s};function Xe(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=J(0,t,s);e.push(ot(n,1,i))}}function jt(e){const t=[0];return Xe(t,e.length-1),t}const F=e=>!!(e&&e.getVelocity);function At(e,t,n){var s;if(typeof e=="string"){let i=document;t&&(d.invariant(!!t.current,"Scope provided, but no element detected."),i=t.current),n?((s=n[e])!==null&&s!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}function Ht(e){return typeof e=="object"&&!Array.isArray(e)}function qe(e,t,n,s){return typeof e=="string"&&Ht(t)?At(e,n,s):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function at(e){return typeof e=="function"}function Ze(e,t,n,s){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(i=s.get(t))!==null&&i!==void 0?i:e}const Je=(e,t,n)=>{const s=t-e;return((n-e)%s+s)%s+e},Qe=e=>Array.isArray(e)&&typeof e[0]!="number";function hi(e,t){return Qe(e)?e[Je(0,e.length,t)]:e}function di(e,t,n){for(let s=0;s<e.length;s++){const i=e[s];i.at>t&&i.at<n&&(Ke(e,i),s--)}}function pi(e,t,n,s,i,r){di(e,i,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ot(i,r,s[o]),easing:hi(n,o)})}function mi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const gi="easeInOut";function yi(e,{defaultTransition:t={},...n}={},s,i){const r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map;let c=0,f=0,h=0;for(let g=0;g<e.length;g++){const y=e[g];if(typeof y=="string"){u.set(y,f);continue}else if(!Array.isArray(y)){u.set(y.name,Ze(f,y.at,c,u));continue}let[T,w,v={}]=y;v.at!==void 0&&(f=Ze(f,v.at,c,u));let b=0;const A=(M,V,P,B=0,S=0)=>{const E=vi(M),{delay:I=0,times:Z=jt(E),type:Ne="keyframes",...bl}=V;let{ease:Ks=t.ease||"easeOut",duration:$}=V;const ks=typeof I=="function"?I(B,S):I,$s=E.length,_s=at(Ne)?Ne:i==null?void 0:i[Ne];if($s<=2&&_s){let zs=100;if($s===2&&wi(E)){const Sl=E[1]-E[0];zs=Math.abs(Sl)}const js={...bl};$!==void 0&&(js.duration=O($));const Hs=Ye(js,zs,_s);Ks=Hs.ease,$=Hs.duration}$??($=r);const Ws=f+ks,Gs=Ws+$;Z.length===1&&Z[0]===0&&(Z[1]=1);const Us=Z.length-E.length;Us>0&&Xe(Z,Us),E.length===1&&E.unshift(null),pi(P,E,Ks,Z,Ws,Gs),b=Math.max(ks+$,b),h=Math.max(Gs,h)};if(F(T)){const M=tn(T,a);A(w,v,en("default",M))}else{const M=qe(T,w,s,l),V=M.length;for(let P=0;P<V;P++){w=w,v=v;const B=M[P],S=tn(B,a);for(const E in w)A(w[E],bi(v,E),en(E,S),P,V)}}c=f,f+=b}return a.forEach((g,y)=>{for(const T in g){const w=g[T];w.sort(mi);const v=[],b=[],A=[];for(let V=0;V<w.length;V++){const{at:P,value:B,easing:S}=w[V];v.push(B),b.push(J(0,h,P)),A.push(S||"easeOut")}b[0]!==0&&(b.unshift(0),v.unshift(v[0]),A.unshift(gi)),b[b.length-1]!==1&&(b.push(1),v.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const M=o.get(y);M.keyframes[T]=v,M.transition[T]={...t,duration:h,ease:A,times:b,...n}}}),o}function tn(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function en(e,t){return t[e]||(t[e]=[]),t[e]}function vi(e){return Array.isArray(e)?e:[e]}function bi(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Si=e=>typeof e=="number",wi=e=>e.every(Si),k=new WeakMap,lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],H=new Set(lt),Ti={type:"spring",stiffness:500,damping:25,restSpeed:10},Vi=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ai={type:"keyframes",duration:.8},Mi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ei=(e,{keyframes:t})=>t.length>2?Ai:H.has(e)?e.startsWith("scale")?Vi(t[1]):Ti:Mi;function Yt(e,t){return e?e[t]||e.default||e:void 0}const xi=e=>e!==null;function ut(e,{repeat:t,repeatType:n="loop"},s){const i=e.filter(xi),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const nn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Pi=1e-7,Ci=12;function Oi(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=nn(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>Pi&&++a<Ci);return o}function Q(e,t,n,s){if(e===t&&n===s)return N;const i=r=>Oi(r,0,1,e,n);return r=>r===0||r===1?r:nn(i(r),t,s)}const Xt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qt=e=>t=>1-e(1-t),Zt=Q(.33,1.53,.69,.99),Mt=qt(Zt),Jt=Xt(Mt),Qt=e=>(e*=2)<1?.5*Mt(e):.5*(2-Math.pow(2,-10*(e-1))),Et=e=>1-Math.sin(Math.acos(e)),sn=qt(Et),te=Xt(Et),rn=e=>/^0[^.\s]+$/u.test(e);function Fi(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||rn(e):!0}const on=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),an=e=>t=>typeof t=="string"&&t.startsWith(e),ln=an("--"),Di=an("var(--"),ee=e=>Di(e)?Bi.test(e.split("/*")[0].trim()):!1,Bi=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ii=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ri(e){const t=Ii.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}const Li=4;function un(e,t,n=1){d.invariant(n<=Li,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[s,i]=Ri(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return on(o)?parseFloat(o):o}return ee(i)?un(i,t,n+1):i}const tt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ct={...tt,transform:e=>W(0,1,e)},xt={...tt,default:1},ft=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),G=ft("deg"),et=ft("%"),p=ft("px"),Ni=ft("vh"),Ki=ft("vw"),cn={...et,parse:e=>et.parse(e)/100,transform:e=>et.transform(e*100)},ki=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),fn=e=>e===tt||e===p,hn=(e,t)=>parseFloat(e.split(", ")[t]),dn=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return hn(i[1],t);{const r=s.match(/^matrix\((.+)\)$/u);return r?hn(r[1],e):0}},$i=new Set(["x","y","z"]),_i=lt.filter(e=>!$i.has(e));function Wi(e){const t=[];return _i.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const nt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:dn(4,13),y:dn(5,14)};nt.translateX=nt.x,nt.translateY=nt.y;const pn=e=>t=>t.test(e),mn=[tt,p,et,G,Ki,Ni,{test:e=>e==="auto",parse:e=>e}],gn=e=>mn.find(pn(e)),Y=new Set;let ne=!1,se=!1;function yn(){if(se){const e=Array.from(Y).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const i=Wi(s);i.length&&(n.set(s,i),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}se=!1,ne=!1,Y.forEach(e=>e.complete()),Y.clear()}function vn(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(se=!0)})}function Gi(){vn(),yn()}class ie{constructor(t,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Y.add(this),ne||(ne=!0,x.read(vn),x.resolveKeyframes(yn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:i}=this;for(let r=0;r<t.length;r++)if(t[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Y.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Y.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ht=e=>Math.round(e*1e5)/1e5,re=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ui(e){return e==null}const zi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,oe=(e,t)=>n=>!!(typeof n=="string"&&zi.test(n)&&n.startsWith(e)||t&&!Ui(n)&&Object.prototype.hasOwnProperty.call(n,t)),bn=(e,t,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(re);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},ji=e=>W(0,255,e),ae={...tt,transform:e=>Math.round(ji(e))},X={test:oe("rgb","red"),parse:bn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ae.transform(e)+", "+ae.transform(t)+", "+ae.transform(n)+", "+ht(ct.transform(s))+")"};function Hi(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const le={test:oe("#"),parse:Hi,transform:X.transform},st={test:oe("hsl","hue"),parse:bn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+et.transform(ht(t))+", "+et.transform(ht(n))+", "+ht(ct.transform(s))+")"},C={test:e=>X.test(e)||le.test(e)||st.test(e),parse:e=>X.test(e)?X.parse(e):st.test(e)?st.parse(e):le.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?X.transform(e):st.transform(e)},Yi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xi(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(re))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Yi))===null||n===void 0?void 0:n.length)||0)>0}const Sn="number",wn="color",qi="var",Zi="var(",Tn="${}",Ji=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function dt(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=t.replace(Ji,l=>(C.test(l)?(s.color.push(r),i.push(wn),n.push(C.parse(l))):l.startsWith(Zi)?(s.var.push(r),i.push(qi),n.push(l)):(s.number.push(r),i.push(Sn),n.push(parseFloat(l))),++r,Tn)).split(Tn);return{values:n,split:a,indexes:s,types:i}}function Vn(e){return dt(e).values}function An(e){const{split:t,types:n}=dt(e),s=t.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=t[o],i[o]!==void 0){const a=n[o];a===Sn?r+=ht(i[o]):a===wn?r+=C.transform(i[o]):r+=i[o]}return r}}const Qi=e=>typeof e=="number"?0:e;function tr(e){const t=Vn(e);return An(e)(t.map(Qi))}const it={test:Xi,parse:Vn,createTransformer:An,getAnimatableNone:tr},er=new Set(["brightness","contrast","saturate","opacity"]);function nr(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(re)||[];if(!s)return e;const i=n.replace(s,"");let r=er.has(t)?1:0;return s!==n&&(r*=100),t+"("+r+i+")"}const sr=/\b([a-z-]*)\(.*?\)/gu,ue={...it,getAnimatableNone:e=>{const t=e.match(sr);return t?t.map(nr).join(" "):e}},ce={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,backgroundPositionX:p,backgroundPositionY:p},ir={rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:xt,scaleX:xt,scaleY:xt,scaleZ:xt,skew:G,skewX:G,skewY:G,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:ct,originX:cn,originY:cn,originZ:p},Mn={...tt,transform:Math.round},fe={...ce,...ir,zIndex:Mn,size:p,fillOpacity:ct,strokeOpacity:ct,numOctaves:Mn},rr={...fe,color:C,backgroundColor:C,outlineColor:C,fill:C,stroke:C,borderColor:C,borderTopColor:C,borderRightColor:C,borderBottomColor:C,borderLeftColor:C,filter:ue,WebkitFilter:ue},he=e=>rr[e];function En(e,t){let n=he(e);return n!==ue&&(n=it),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const or=new Set(["auto","none","0"]);function ar(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!or.has(r)&&dt(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=En(n,i)}class xn extends ie{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ee(u))){const c=un(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ki.has(s)||t.length!==2)return;const[i,r]=t,o=gn(i),a=gn(r);if(o!==a)if(fn(o)&&fn(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)Fi(t[i])&&s.push(i);s.length&&ar(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=nt[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=nt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Pn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(it.test(e)||e==="0")&&!e.startsWith("url("));function lr(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ur(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Pn(i,t),a=Pn(r,t);return d.warning(o===a,`You are trying to animate ${t} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:lr(e)||(n==="spring"||at(n))&&s}const cr=40;class Cn{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>cr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gi(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ur(t,s,i,r))if(o)this.options.duration=0;else{l==null||l(ut(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function de({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},g=S=>a!==void 0&&S<a||l!==void 0&&S>l,y=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let T=n*t;const w=f+T,v=o===void 0?w:o(w);v!==w&&(T=v-f);const b=S=>-T*Math.exp(-S/s),A=S=>v+b(S),M=S=>{const E=b(S),I=A(S);h.done=Math.abs(E)<=u,h.value=h.done?v:I};let V,P;const B=S=>{g(h.value)&&(V=S,P=Vt({keyframes:[h.value,y(h.value)],velocity:Ue(A,S,h.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return B(0),{calculatedDuration:null,next:S=>{let E=!1;return!P&&V===void 0&&(E=!0,M(S),B(S)),V!==void 0&&S>=V?P.next(S-V):(!E&&M(S),h)}}}const On=Q(.42,0,1,1),Fn=Q(0,0,.58,1),pe=Q(.42,0,.58,1),me=e=>Array.isArray(e)&&typeof e[0]=="number",Dn={linear:N,easeIn:On,easeInOut:pe,easeOut:Fn,circIn:Et,circInOut:te,circOut:sn,backIn:Mt,backInOut:Jt,backOut:Zt,anticipate:Qt},ge=e=>{if(me(e)){d.invariant(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,s,i]=e;return Q(t,n,s,i)}else if(typeof e=="string")return d.invariant(Dn[e]!==void 0,`Invalid easing type '${e}'`),Dn[e];return e},fr=(e,t)=>n=>t(e(n)),Pt=(...e)=>e.reduce(fr);function ye(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hr({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=ye(l,a,e+1/3),r=ye(l,a,e),o=ye(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function Ct(e,t){return n=>n>0?t:e}const ve=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},dr=[le,X,st],pr=e=>dr.find(t=>t.test(e));function Bn(e){const t=pr(e);if(d.warning(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===st&&(n=hr(n)),n}const In=(e,t)=>{const n=Bn(e),s=Bn(t);if(!n||!s)return Ct(e,t);const i={...n};return r=>(i.red=ve(n.red,s.red,r),i.green=ve(n.green,s.green,r),i.blue=ve(n.blue,s.blue,r),i.alpha=ot(n.alpha,s.alpha,r),X.transform(i))},be=new Set(["none","hidden"]);function mr(e,t){return be.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gr(e,t){return n=>ot(e,t,n)}function Se(e){return typeof e=="number"?gr:typeof e=="string"?ee(e)?Ct:C.test(e)?In:br:Array.isArray(e)?Rn:typeof e=="object"?C.test(e)?In:yr:Ct}function Rn(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Se(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function yr(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Se(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function vr(e,t){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const o=t.types[r],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const br=(e,t)=>{const n=it.createTransformer(t),s=dt(e),i=dt(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?be.has(e)&&!i.values.length||be.has(t)&&!s.values.length?mr(e,t):Pt(Rn(vr(s,i),i.values),n):(d.warning(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ct(e,t))};function we(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ot(e,t,n):Se(e)(e,t)}function Sr(e,t,n){const s=[],i=n||we,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||N:t;a=Pt(l,a)}s.push(a)}return s}function Ot(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(d.invariant(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&e[0]===e[1])return()=>t[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Sr(t,s,i),a=o.length,l=u=>{let c=0;if(a>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=J(e[c],e[c+1],u);return o[c](f)};return n?u=>l(W(e[0],e[r-1],u)):l}function wr(e,t){return e.map(n=>n*t)}function Tr(e,t){return e.map(()=>t||pe).splice(0,e.length-1)}function pt({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Qe(s)?s.map(ge):ge(s),r={done:!1,value:t[0]},o=wr(n&&n.length===t.length?n:jt(t),e),a=Ot(o,t,{ease:Array.isArray(i)?i:Tr(t,i)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const Vr=e=>{const t=({timestamp:n})=>e(n);return{start:()=>x.update(t,!0),stop:()=>R(t),now:()=>j.isProcessing?j.timestamp:K.now()}},Ar={decay:de,inertia:de,tween:pt,keyframes:pt,spring:Vt},Mr=e=>e/100;class Ft extends Cn{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||ie,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=at(n)?n:Ar[n]||pt;let l,u;a!==pt&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&d.invariant(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=Pt(Mr,we(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});r==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=He(c));const{calculatedDuration:f}=c,h=f+i,g=h*(s+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=s;if(this.startTime===null)return r.next(0);const{delay:h,repeat:g,repeatType:y,repeatDelay:T,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>c;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let A=this.currentTime,M=r;if(g){const S=Math.min(this.currentTime,c)/f;let E=Math.floor(S),I=S%1;!I&&S>=1&&(I=1),I===1&&E--,E=Math.min(E,g+1),!!(E%2)&&(y==="reverse"?(I=1-I,T&&(I-=T/f)):y==="mirror"&&(M=o)),A=W(0,1,I)*f}const V=b?{done:!1,value:l[0]}:M.next(A);a&&(V.value=a(V.value));let{done:P}=V;!b&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return B&&i!==void 0&&(V.value=ut(l,this.options,i)),w&&w(V.value),B&&this.finish(),V}get duration(){const{resolved:t}=this;return t?L(t.calculatedDuration):0}get time(){return L(this.currentTime)}set time(t){t=O(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=L(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Vr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function Er(e){return new Ft(e)}const xr=new Set(["opacity","clipPath","filter","transform"]),Pr=10,Cr=(e,t)=>{let n="";const s=Math.max(Math.round(t/Pr),2);for(let i=0;i<s;i++)n+=e(J(0,s-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`},Or={linearEasing:void 0};function Fr(e,t){const n=Tt(e);return()=>{var s;return(s=Or[t])!==null&&s!==void 0?s:n()}}const mt=Fr(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Ln(e){return!!(typeof e=="function"&&mt()||!e||typeof e=="string"&&(e in Te||mt())||me(e)||Array.isArray(e)&&e.every(Ln))}const gt=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Te={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gt([0,.65,.55,1]),circOut:gt([.55,0,1,.45]),backIn:gt([.31,.01,.66,-.59]),backOut:gt([.33,1.53,.69,.99])};function Nn(e,t){if(e)return typeof e=="function"&&mt()?Cr(e,t):me(e)?gt(e):Array.isArray(e)?e.map(n=>Nn(n,t)||Te.easeOut):Te[e]}function Kn(e,t,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Nn(a,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function Dt(e,t){e.timeline=t,e.onfinish=null}const kn=Tt(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bt=10,Dr=2e4;function Br(e){return at(e.type)||e.type==="spring"||!Ln(e.ease)}function Ir(e,t){const n=new Ft({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const i=[];let r=0;for(;!s.done&&r<Dr;)s=n.sample(r),i.push(s.value),r+=Bt;return{times:void 0,keyframes:i,duration:r-Bt,ease:"linear"}}const $n={anticipate:Qt,backInOut:Jt,circInOut:te};function Rr(e){return e in $n}class _n extends Cn{constructor(t){super(t);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new xn(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(t,n){var s;let{duration:i=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&mt()&&Rr(o)&&(o=$n[o]),Br(this.options)){const{onComplete:h,onUpdate:g,motionValue:y,element:T,...w}=this.options,v=Ir(t,w);t=v.keyframes,t.length===1&&(t[1]=t[0]),i=v.duration,r=v.times,o=v.ease,a="keyframes"}const f=Kn(l.owner.current,u,t,{...this.options,duration:i,times:r,ease:o});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(Dt(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;l.set(ut(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:i,times:r,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return L(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return L(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=O(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return N;const{animation:s}=n;Dt(s,t)}return N}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:h,...g}=this.options,y=new Ft({...g,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),T=O(this.time);u.setWithVelocity(y.sample(T-Bt).value,y.sample(T).value,Bt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=t;return kn()&&s&&xr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}function Lr({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Wn=(e,t,n,s={},i,r)=>o=>{const a=Yt(s,e)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-O(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};Lr(a)||(c={...c,...Ei(e,c)}),c.duration&&(c.duration=O(c.duration)),c.repeatDelay&&(c.repeatDelay=O(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!r&&t.get()!==void 0){const h=ut(c.keyframes,a);if(h!==void 0)return x.update(()=>{c.onUpdate(h),c.onComplete()}),new Wt([])}return!r&&_n.supports(c)?new _n(c):new Ft(c)},Nr=e=>Array.isArray(e),Kr=e=>Nr(e)?e[e.length-1]||0:e;function Gn(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function Un(e,t,n,s){if(typeof t=="function"){const[i,r]=Gn(s);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=Gn(s);t=t(n!==void 0?n:e.custom,i,r)}return t}function kr(e,t,n){const s=e.getProps();return Un(s,t,s.custom,e)}function $r(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,D(n))}function _r(e,t){const n=kr(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Kr(r[o]);$r(e,o,a)}}const Ve=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Wr="data-"+Ve("framerAppearId");function Gr(e){return e.props[Wr]}function Ur(e){return!!(F(e)&&e.add)}function zr(e,t){const n=e.getValue("willChange");if(Ur(n))return n.add(t)}function jr({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function Hr(e,t,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;s&&(o=s);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(r=e.latestValues[f])!==null&&r!==void 0?r:null),g=l[f];if(g===void 0||c&&jr(c,f))continue;const y={delay:n,...Yt(o||{},f)};let T=!1;if(window.MotionHandoffAnimation){const v=Gr(e);if(v){const b=window.MotionHandoffAnimation(v,f,x);b!==null&&(y.startTime=b,T=!0)}}zr(e,f),h.start(Wn(f,h,g,e.shouldReduceMotion&&H.has(f)?{type:!1}:y,e,T));const w=h.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{x.update(()=>{a&&_r(e,a)})}),u}function Yr(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Xr={};function qr(e,{layout:t,layoutId:n}){return H.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Xr[e]||e==="opacity")}function zn(e,t,n){var s;const{style:i}=e,r={};for(const o in i)(F(i[o])||t.style&&F(t.style[o])||qr(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Zr(e,t,n){const s=zn(e,t,n);for(const i in e)if(F(e[i])||F(t[i])){const r=lt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=e[i]}return s}const Jr=typeof window<"u",Ae={current:null},jn={current:!1};function Qr(){if(jn.current=!0,!!Jr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ae.current=e.matches;e.addListener(t),t()}else Ae.current=!1}function to(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function eo(e){return typeof e=="string"||Array.isArray(e)}const no=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Hn(e){return to(e.animate)||no.some(t=>eo(e[t]))}function so(e){return!!(Hn(e)||e.variants)}function io(e,t,n){for(const s in t){const i=t[s],r=n[s];if(F(i))e.addValue(s,i),process.env.NODE_ENV==="development"&&St(i.version==="11.11.11",`Attempting to mix Framer Motion versions ${i.version} with 11.11.11 may not work as expected.`);else if(F(r))e.addValue(s,D(i,{owner:e}));else if(r!==i)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(s);e.addValue(s,D(o!==void 0?o:i,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const Yn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Me={};for(const e in Yn)Me[e]={isEnabled:t=>Yn[e].some(n=>!!t[n])};const ro=[...mn,C,it],oo=e=>ro.find(pn(e)),Xn=()=>({min:0,max:0}),Ee=()=>({x:Xn(),y:Xn()}),qn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Zn{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ie,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=K.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,x.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Hn(n),this.isVariantNode=so(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&F(g)&&g.set(l[h],!1)}}mount(t){this.current=t,k.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),jn.current||Qr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ae.current,process.env.NODE_ENV!=="production"&&St(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){k.delete(this.current),this.projection&&this.projection.unmount(),R(this.notifyUpdate),R(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=H.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&x.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Me){const n=Me[t];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[t]&&i&&s(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<qn.length;s++){const i=qn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=t[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=io(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=D(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(on(i)||rn(i))?i=parseFloat(i):!oo(i)&&it.test(n)&&(i=En(t,n)),this.setBaseTarget(t,F(i)?i.get():i)),F(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=Un(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!F(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ke),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Jn extends Zn{constructor(){super(...arguments),this.KeyframeResolver=xn}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}}const Qn=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ao={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lo=lt.length;function uo(e,t,n){let s="",i=!0;for(let r=0;r<lo;r++){const o=lt[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Qn(a,fe[o]);if(!l){i=!1;const c=ao[o]||o;s+=`${c}(${u}) `}n&&(t[o]=u)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}function ts(e,t,n){const{style:s,vars:i,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(H.has(l)){o=!0;continue}else if(ln(l)){i[l]=u;continue}else{const c=Qn(u,fe[l]);l.startsWith("origin")?(a=!0,r[l]=c):s[l]=c}}if(t.transform||(o||n?s.transform=uo(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;s.transformOrigin=`${l} ${u} ${c}`}}function es(e,t,n){return typeof e=="string"?e:p.transform(t+n*e)}function co(e,t,n){const s=es(t,e.x,e.width),i=es(n,e.y,e.height);return`${s} ${i}`}const fo={offset:"stroke-dashoffset",array:"stroke-dasharray"},ho={offset:"strokeDashoffset",array:"strokeDasharray"};function po(e,t,n=1,s=0,i=!0){e.pathLength=1;const r=i?fo:ho;e[r.offset]=p.transform(-s);const o=p.transform(t),a=p.transform(n);e[r.array]=`${o} ${a}`}function mo(e,{attrX:t,attrY:n,attrScale:s,originX:i,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,f){if(ts(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:y}=e;h.transform&&(y&&(g.transform=h.transform),delete h.transform),y&&(i!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=co(y,i!==void 0?i:.5,r!==void 0?r:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),o!==void 0&&po(h,o,a,l,!1)}const ns=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ss(e,{style:t,vars:n},s,i){Object.assign(e.style,t,i&&i.getProjectionStyles(s));for(const r in n)e.style.setProperty(r,n[r])}function go(e,t,n,s){ss(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(ns.has(i)?i:Ve(i),t.attrs[i])}const yo=e=>typeof e=="string"&&e.toLowerCase()==="svg";class vo extends Jn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ee}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(H.has(n)){const s=he(n);return s&&s.default||0}return n=ns.has(n)?n:Ve(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Zr(t,n,s)}build(t,n,s){mo(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,i){go(t,n,s,i)}mount(t){this.isSVGTag=yo(t.tagName),super.mount(t)}}function bo({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function So(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function wo(e,t){return bo(So(e.getBoundingClientRect(),t))}function To(e){return window.getComputedStyle(e)}class Vo extends Jn{constructor(){super(...arguments),this.type="html",this.renderInstance=ss}readValueFromInstance(t,n){if(H.has(n)){const s=he(n);return s&&s.default||0}else{const s=To(t),i=(ln(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wo(t,n)}build(t,n,s){ts(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return zn(t,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;F(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ao(e,t){return e in t}class Mo extends Zn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Ao(n,t)){const s=t[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Ee()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function is(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Yr(e)?new vo(t):new Vo(t);n.mount(e),k.set(e,n)}function Eo(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Mo(t);n.mount(e),k.set(e,n)}function xo(e,t,n){const s=F(e)?e:D(e);return s.start(Wn("",s,t,n)),s.animation}function Po(e,t){return F(e)||typeof e=="number"||typeof e=="string"&&!Ht(t)}function rs(e,t,n,s){const i=[];if(Po(e,t))i.push(xo(e,Ht(t)&&t.default||t,n&&(n.default||n)));else{const r=qe(e,t,s),o=r.length;d.invariant(!!o,"No valid elements provided.");for(let a=0;a<o;a++){const l=r[a],u=l instanceof Element?is:Eo;k.has(l)||u(l);const c=k.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),i.push(...Hr(c,{...t,transition:f},{}))}}return i}function Co(e,t,n){const s=[];return yi(e,t,n,{spring:Vt}).forEach(({keyframes:r,transition:o},a)=>{s.push(...rs(a,r,o))}),s}function Oo(e){return Array.isArray(e)&&Array.isArray(e[0])}function os(e){function t(n,s,i){let r=[];Oo(n)?r=Co(n,s,e):r=rs(n,s,i,e);const o=new Wt(r);return e&&e.animations.push(o),o}return t}const as=os();function Fo(e,t,n){e.style.setProperty(`--${t}`,n)}function Do(e,t,n){e.style[t]=n}const Bo=Tt(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),It=new WeakMap;function Io(e,t,n){for(let s=0;s<t.length;s++)t[s]===null&&(t[s]=s===0?n():t[s-1]),typeof t[s]=="number"&&ce[e]&&(t[s]=ce[e].transform(t[s]));!Bo()&&t.length<2&&t.unshift(n())}const ls="easeOut";function us(e){const t=It.get(e)||new Map;return It.set(e,t),It.get(e)}class Ro{constructor(t,n,s,i){const r=n.startsWith("--");this.setValue=r?Fo:Do,this.options=i,this.updateFinishedPromise(),d.invariant(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);const o=us(t).get(n);o&&o.stop();const a=()=>n.startsWith("--")?t.style.getPropertyValue(n):window.getComputedStyle(t)[n];if(Array.isArray(s)||(s=[s]),Io(n,s,a),at(i.type)){const u=Ye(i,100,i.type);i.ease=mt()?u.ease:ls,i.duration=O(u.duration),i.type="keyframes"}else i.ease=i.ease||ls;this.removeAnimation=()=>{var u;return(u=It.get(t))===null||u===void 0?void 0:u.delete(n)};const l=()=>{this.setValue(t,n,ut(s,this.options)),this.cancel(),this.resolveFinishedPromise()};kn()?(this.animation=Kn(t,n,s,i),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=l,this.pendingTimeline&&Dt(this.animation,this.pendingTimeline),us(t).set(n,this)):l()}get duration(){return L(this.options.duration||300)}get time(){var t;return this.animation?L(((t=this.animation)===null||t===void 0?void 0:t.currentTime)||0):0}set time(t){this.animation&&(this.animation.currentTime=O(t))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(t){this.animation&&(this.animation.playbackRate=t)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}play(){this.state==="finished"&&this.updateFinishedPromise(),this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}complete(){this.animation&&this.animation.finish()}cancel(){this.removeAnimation();try{this.animation&&this.animation.cancel()}catch{}}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}attachTimeline(t){return this.animation?Dt(this.animation,t):this.pendingTimeline=t,N}}function Lo(e,t,n,s){const i=At(e,s),r=i.length;d.invariant(!!r,"No valid element provided.");const o=[];for(let a=0;a<r;a++){const l=i[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(const c in t){const f=t[c],h={...Yt(n,c)};h.duration=h.duration?O(h.duration):h.duration,h.delay=O(h.delay||0),o.push(new Ro(l,c,f,h))}}return o}const No=(e=>{function t(n,s,i){return new Wt(Lo(n,s,i,e))}return t})(),Rt=new WeakMap;let U;function Ko(e,t){if(t){const{inlineSize:n,blockSize:s}=t[0];return{width:n,height:s}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function ko({target:e,contentRect:t,borderBoxSize:n}){var s;(s=Rt.get(e))===null||s===void 0||s.forEach(i=>{i({target:e,contentSize:t,get size(){return Ko(e,n)}})})}function $o(e){e.forEach(ko)}function _o(){typeof ResizeObserver>"u"||(U=new ResizeObserver($o))}function Wo(e,t){U||_o();const n=At(e);return n.forEach(s=>{let i=Rt.get(s);i||(i=new Set,Rt.set(s,i)),i.add(t),U==null||U.observe(s)}),()=>{n.forEach(s=>{const i=Rt.get(s);i==null||i.delete(t),i!=null&&i.size||U==null||U.unobserve(s)})}}const Lt=new Set;let yt;function Go(){yt=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};Lt.forEach(n=>n(t))},window.addEventListener("resize",yt)}function Uo(e){return Lt.add(e),yt||Go(),()=>{Lt.delete(e),!Lt.size&&yt&&(yt=void 0)}}function zo(e,t){return typeof e=="function"?Uo(e):Wo(e,t)}const jo=50,cs=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Ho=()=>({time:0,x:cs(),y:cs()}),Yo={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function fs(e,t,n,s){const i=n[t],{length:r,position:o}=Yo[t],a=i.current,l=n.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${r}`]-e[`client${r}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=J(0,i.scrollLength,i.current);const u=s-l;i.velocity=u>jo?0:_t(i.current-a,u)}function Xo(e,t,n){fs(e,"x",t,n),fs(e,"y",t,n),t.time=n}function qo(e,t){const n={x:0,y:0};let s=e;for(;s&&s!==t;)if(s instanceof HTMLElement)n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const r=s.getBoundingClientRect();n.x+=i.left-r.left,n.y+=i.top-r.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:r}=s.getBBox();n.x+=i,n.y+=r;let o=null,a=s.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=s.parentNode;s=o}else break;return n}const Zo={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},xe={start:0,center:.5,end:1};function hs(e,t,n=0){let s=0;if(e in xe&&(e=xe[e]),typeof e=="string"){const i=parseFloat(e);e.endsWith("px")?s=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?s=i/100*document.documentElement.clientWidth:e.endsWith("vh")?s=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(s=t*e),n+s}const Jo=[0,0];function Qo(e,t,n,s){let i=Array.isArray(e)?e:Jo,r=0,o=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,xe[e]?e:"0"]),r=hs(i[0],n,s),o=hs(i[1],t),r-o}const ta={x:0,y:0};function ea(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function na(e,t,n){const{offset:s=Zo.All}=n,{target:i=e,axis:r="y"}=n,o=r==="y"?"height":"width",a=i!==e?qo(i,e):ta,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:ea(i),u={width:e.clientWidth,height:e.clientHeight};t[r].offset.length=0;let c=!t[r].interpolate;const f=s.length;for(let h=0;h<f;h++){const g=Qo(s[h],u[o],l[o],a[r]);!c&&g!==t[r].interpolatorOffsets[h]&&(c=!0),t[r].offset[h]=g}c&&(t[r].interpolate=Ot(t[r].offset,jt(s)),t[r].interpolatorOffsets=[...t[r].offset]),t[r].progress=t[r].interpolate(t[r].current)}function sa(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let s=t;for(;s&&s!==e;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&St(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function ia(e,t,n,s={}){return{measure:()=>sa(e,s.target,n),update:i=>{Xo(e,n,i),(s.offset||s.target)&&na(e,n,s)},notify:()=>t(n)}}const vt=new WeakMap,ds=new WeakMap,Pe=new WeakMap,ps=e=>e===document.documentElement?window:e;function Nt(e,{container:t=document.documentElement,...n}={}){let s=Pe.get(t);s||(s=new Set,Pe.set(t,s));const i=Ho(),r=ia(t,e,i,n);if(s.add(r),!vt.has(t)){const a=()=>{for(const h of s)h.measure()},l=()=>{for(const h of s)h.update(j.timestamp)},u=()=>{for(const h of s)h.notify()},c=()=>{x.read(a,!1,!0),x.read(l,!1,!0),x.update(u,!1,!0)};vt.set(t,c);const f=ps(t);window.addEventListener("resize",c,{passive:!0}),t!==document.documentElement&&ds.set(t,zo(t,c)),f.addEventListener("scroll",c,{passive:!0})}const o=vt.get(t);return x.read(o,!1,!0),()=>{var a;R(o);const l=Pe.get(t);if(!l||(l.delete(r),l.size))return;const u=vt.get(t);vt.delete(t),u&&(ps(t).removeEventListener("scroll",u),(a=ds.get(t))===null||a===void 0||a(),window.removeEventListener("resize",u))}}function ms(e,t){let n;const s=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return x.update(s,!0),()=>R(s)}function ra({source:e,container:t,axis:n="y"}){e&&(t=e);const s={value:0},i=Nt(r=>{s.value=r[n].progress*100},{container:t,axis:n});return{currentTime:s,cancel:i}}const Ce=new Map;function gs({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Ce.has(t)||Ce.set(t,{});const s=Ce.get(t);return s[n]||(s[n]=Ge()?new ScrollTimeline({source:t,axis:n}):ra({source:t,axis:n})),s[n]}function oa(e){return e.length===2}function ys(e){return e&&(e.target||e.offset)}function aa(e,t){return oa(e)||ys(t)?Nt(n=>{e(n[t.axis].progress,n)},t):ms(e,gs(t))}function la(e,t){if(ys(t))return e.pause(),Nt(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=gs(t);return e.attachTimeline(n,s=>(s.pause(),ms(i=>{s.time=s.duration*i},n)))}}function vs(e,{axis:t="y",...n}={}){const s={axis:t,...n};return typeof e=="function"?aa(e,s):la(e,s)}const ua={some:0,all:1};function bs(e,t,{root:n,margin:s,amount:i="some"}={}){const r=At(e),o=new WeakMap,a=u=>{u.forEach(c=>{const f=o.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=t(c);typeof h=="function"?o.set(c.target,h):l.unobserve(c.target)}else f&&(f(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:ua[i]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function ca(e,t="end"){return n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const s=n*e,i=t==="end"?Math.floor(s):Math.ceil(s);return W(0,1,i/e)}}function fa(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function ha(e=.1,{startDelay:t=0,from:n=0,ease:s}={}){return(i,r)=>{const o=typeof n=="number"?n:fa(n,r),a=Math.abs(o-i);let l=e*a;if(s){const u=r*e;l=ge(s)(l/u)*u}return t+l}}const da=e=>e&&typeof e=="object"&&e.mix,pa=e=>da(e)?e.mix:void 0;function Ss(...e){const t=!Array.isArray(e[0]),n=t?0:-1,s=e[0+n],i=e[1+n],r=e[2+n],o=e[3+n],a=Ot(i,r,{mixer:pa(r[0]),...o});return t?a(s):a}function ma(e,t){const n=K.now(),s=({timestamp:i})=>{const r=i-n;r>=t&&(R(s),e(r-t))};return x.read(s,!0),()=>R(s)}function ga(e,t){return ma(e,O(t))}const Oe=(e,t)=>Math.abs(e-t);function ya(e,t){const n=Oe(e.x,t.x),s=Oe(e.y,t.y);return Math.sqrt(n**2+s**2)}const va=x,ba=rt.reduce((e,t)=>(e[t]=n=>R(n),e),{});function ws(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,s=Symbol(n);return[o=>{const a=m.inject(s,o);if(a||a===null)return a;throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(m.provide(s,o),o)]}function q(e){return!!(e&&e.getVelocity)}const[Sa,wa]=ws("Motion");function Ts(e,t){if(typeof e=="object")return e;if(e&&t)return t[e]}function Ta(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!Va(e,t):e!==t}function Va(e,t){const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Aa(e,t){!e.includes(t)&&e.push(t)}function Ma(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ea(e,t){return e[t]?{...e,...e[t]}:{...e}}function Vs(e){return e==null?void 0:e.startsWith("--")}function xa(){}const Pa=e=>e;function Ca(e){return typeof e=="number"}const Oa=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Fa=new Set(Oa);function Da(e){return Fa.has(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const As=e=>typeof e<"u",Ms={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>`${e}deg`},Ba={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>`${e}px`},rotate:Ms,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Pa},skew:Ms},Ia=["translate","scale","rotate","skew"],Ra=["","X","Y","Z"],Fe=new Map,Kt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Ia.forEach(e=>{Ra.forEach(t=>{Kt.push(e+t),Fe.set(e+t,Ba[e])})});const La=new Set(Kt),Na=e=>La.has(e),Es={x:"translateX",y:"translateY",z:"translateZ"};function Ka([e],[t]){return Kt.indexOf(e)-Kt.indexOf(t)}function ka(e,[t,n]){return`${e} ${t}(${n})`}function $a(e){return e.sort(Ka).reduce(ka,"").trim()}const _a={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0},Wa={get:(e,t)=>{let n=Vs(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!n&&n!=="0"){const s=Fe.get(t);s&&(n=s.initialValue)}return n},set:(e,t,n)=>{Vs(t)?e.style.setProperty(t,n):e.style[t]=n}};function De(e){var s;const t={},n=[];for(let i in e){let r=e[i];r=q(r)?r.get():r,Na(i)&&i in Es&&(i=Es[i]);let o=Array.isArray(r)?r[0]:r;const a=Fe.get(i);a?(o=Ca(r)?(s=a.toDefaultUnit)==null?void 0:s.call(a,r):r,n.push([i,o])):t[i]=o}return n.length&&(t.transform=$a(n)),t}const xs={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function Ga(e){const t={},n={};for(const s in e)if(s in xs){const i=xs[s],r=typeof i=="string"?i:s,o=e[s];t[r]=q(o)?o.get():o}else n[s]=e[s];return{attributes:t,style:n}}function Ps(e){return e?e.flatMap(t=>t.type===m.Fragment?Ps(t.children):[t]):[]}const Ua=m.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var l,u;if(!n.default)return null;const s=Ps(n.default()),i=s.findIndex(c=>c.type!==m.Comment);if(i===-1)return s;const r=s[i];(l=r.props)==null||delete l.ref;const o=r.props?m.mergeProps(t,r.props):t;t.class&&((u=r.props)!=null&&u.class)&&delete r.props.class;const a=m.cloneVNode(r,o);for(const c in o)c.startsWith("on")&&(a.props||(a.props={}),a.props[c]=o[c]);return s.length===1?a:(s[i]=a,s)}}}),za=m.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const s=e.asChild?"template":e.as;return typeof s=="string"&&["area","img","input"].includes(s)?()=>m.h(s,t):s!=="template"?()=>m.h(e.as,t,{default:n.default}):()=>m.h(Ua,t,{default:n.default})}});var Cs=function(){},Os=function(){};process.env.NODE_ENV!=="production"&&(Cs=function(e,t){!e&&typeof console<"u"&&console.warn(t)},Os=function(e,t){if(!e)throw new Error(t)});class Be{constructor(t){this.state=t}update(){}}class ja{constructor(t){this.features=[],this.features=[new Ha(t),new Ya(t),new Xa(t),new Ja(t),new qa(t)]}mount(){this.features.forEach(t=>t.mount())}unmount(){this.features.forEach(t=>t.unmount())}update(){this.features.forEach(t=>t.update())}}function bt(e,t,n){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:n}}))}class Ie extends Be{updateGestureSubscriptions(){const t=this.isActive();t&&!this.removeGestureSubscriptions?this.removeGestureSubscriptions=this.subscribeEvents():!t&&this.removeGestureSubscriptions&&(this.removeGestureSubscriptions(),this.removeGestureSubscriptions=void 0)}unmount(){var t;(t=this.removeGestureSubscriptions)==null||t.call(this)}}function Fs(e,t,n){return s=>{s.pointerType&&s.pointerType!=="mouse"||(n(),bt(e,t,s))}}class Ha extends Ie{isActive(){return!!this.state.getOptions().hover}constructor(t){super(t),this.subscribeEvents=()=>{const n=this.state.getElement(),s=Fs(n,"hoverstart",()=>{this.state.setActive("hover",!0)}),i=Fs(n,"hoverend",()=>{this.state.setActive("hover",!1)});return n.addEventListener("pointerenter",s),n.addEventListener("pointerleave",i),()=>{n.removeEventListener("pointerenter",s),n.removeEventListener("pointerleave",i)}}}mount(){this.updateGestureSubscriptions()}update(){this.updateGestureSubscriptions()}}class Ya extends Ie{isActive(){return!!this.state.getOptions().press}constructor(t){super(t),this.subscribeEvents=()=>{const n=this.state.getElement(),s=r=>{this.state.setActive("press",!1),bt(n,"pressend",r),window.removeEventListener("pointerup",s)},i=r=>{this.state.setActive("press",!0),bt(n,"pressstart",r),window.addEventListener("pointerup",s)};return n.addEventListener("pointerdown",i),()=>{n.removeEventListener("pointerdown",i),window.removeEventListener("pointerup",s)}}}mount(){this.updateGestureSubscriptions()}update(){this.updateGestureSubscriptions()}}class Xa extends Ie{isActive(){return!!this.state.getOptions().inView}constructor(t){super(t),this.subscribeEvents=()=>{var r;const n=this.state.getElement(),{once:s,...i}=((r=this.state.getOptions())==null?void 0:r.inViewOptions)||{};return bs(n,o=>{if(this.state.setActive("inView",!0),bt(n,"viewenter",o),!s)return a=>{this.state.setActive("inView",!1),bt(n,"viewleave",a)}},i)}}mount(){this.updateGestureSubscriptions()}update(){this.updateGestureSubscriptions()}}class qa extends Be{constructor(){super(...arguments),this.handlers={}}mount(){const t=this.state.getElement();t&&(this.handlers.motionstart=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onMotionStart)==null||r.call(i,s)},this.handlers.motioncomplete=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onMotionComplete)==null||r.call(i,s)},this.handlers.hoverstart=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onHoverStart)==null||r.call(i,s)},this.handlers.hoverend=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onHoverEnd)==null||r.call(i,s)},this.handlers.pressstart=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onPressStart)==null||r.call(i,s)},this.handlers.pressend=n=>{var i,r;const s=n.detail;(r=(i=this.state.getOptions()).onPressEnd)==null||r.call(i,s)},this.handlers.viewenter=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onViewEnter)==null||r.call(i,s)},this.handlers.viewleave=n=>{var i,r;const s=n.detail.target;(r=(i=this.state.getOptions()).onViewLeave)==null||r.call(i,s)},Object.entries(this.handlers).forEach(([n,s])=>{t.addEventListener(n,s)}))}unmount(){const t=this.state.getElement();t&&Object.entries(this.handlers).forEach(([n,s])=>{s&&(t.removeEventListener(n,s),delete this.handlers[n])})}}function Za(e){return e instanceof SVGElement&&e.tagName!=="svg"}class Ja extends Be{mount(){const t=this.state.getElement();if(!Za(t))return;const n=this.state.visualElement;x.read(()=>{try{n.renderState.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}let z;const Ds=e=>e.next(),Qa=e=>e.animateUpdates();function tl(){if(!z)return;const e=z.sort(nl).map(Qa);e.forEach(Ds),e.forEach(Ds),z=void 0}function Bs(e){z?Aa(z,e):(z=[e],requestAnimationFrame(tl))}function el(e){z&&Ma(z,e)}function nl(e,t){return e.getDepth()-t.getDepth()}function Is(e,t,n){return new CustomEvent(e,{detail:{target:t,isExit:n}})}const sl=["initial","animate","inView","hover","press","exit","drag"],kt=new WeakMap;class il{constructor(t,n){this.element=null,this.activeStates={initial:!0,animate:!0},this._context=null,this.options=t,this.parent=n,this.depth=(n==null?void 0:n.depth)+1||0;const s=t.initial===!1?"animate":"initial";this.featureManager=new ja(this),this.initTarget(s)}get context(){if(!this._context){const t={get:(n,s)=>{var i;return typeof this.options[s]=="string"?this.options[s]:(i=this.parent)==null?void 0:i.context[s]}};this._context=new Proxy({},t)}return this._context}initTarget(t){this.baseTarget=Ts(this.options[t]||this.context[t],this.options.variants)||{},this.target={...this.baseTarget}}get initial(){return As(this.options.initial)?this.options.initial:this.context.initial}mount(t){var s;Os(!!t,"Animation state must be mounted with valid Element"),this.element=t,kt.set(t,this),k.get(t)||is(t);const n=k.get(t);if(this.visualElement=n,n.update(this.options,(s=this.parent)==null?void 0:s.context),typeof this.initial=="object")for(const i in this.initial)n.setStaticValue(i,this.initial[i]);else if(typeof this.initial=="string"&&this.options.variants)for(const i in this.options.variants[this.initial])n.setStaticValue(i,this.options.variants[this.initial][i]);this.featureManager.mount()}unmount(){var t;kt.delete(this.element),el(this),(t=k.get(this.element))==null||t.unmount(),this.featureManager.unmount()}update(t){var n;this.options=t,this.visualElement.update(this.options,(n=this.parent)==null?void 0:n.context),this.featureManager.update(),Bs(this)}setActive(t,n){this.element&&(this.activeStates[t]=n,Bs(this))}*animateUpdates(){const t=this.target;this.target={};const n={};for(const l of sl){if(!this.activeStates[l])continue;const u=Ts(As(this.options[l])?this.options[l]:this.context[l],this.options.variants);if(!u)continue;const c={...t,...u};for(const f in c)f!=="transition"&&(this.target[f]=u[f],n[f]=Ea(u.transition??this.options.transition??{},f))}const s=new Set([...Object.keys(this.target),...Object.keys(t)]),i=[];s.forEach(l=>{var u;this.target[l]===void 0&&(this.target[l]=this.baseTarget[l]),Ta(t[l],this.target[l])&&((u=this.baseTarget)[l]??(u[l]=Wa.get(this.element,l)),i.push(()=>as(this.element,{[l]:this.target[l]==="none"?_a[l]:this.target[l]},n[l]||{})))}),yield;const r=i.map(l=>l()).filter(Boolean);if(!r.length)return;const o=this.target;this.element.dispatchEvent(Is("motionstart",o));const a=this.activeStates.exit;Promise.all(r).then(()=>{this.element.dispatchEvent(Is("motioncomplete",{...o},a))}).catch(xa)}isMounted(){return!!this.element}getDepth(){return this.depth}getOptions(){return this.options}getElement(){return this.element}getTarget(){return this.target}}const $t=new Map;function Re(e){const t=$t.get(e);t&&e.removeEventListener("motioncomplete",t),$t.delete(e)}const[rl,ol]=ws("AnimatePresenceContext"),al=m.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:m.mergeDefaults({as:{},asChild:{type:Boolean},inViewOptions:{},inView:{},press:{},hover:{},initial:{type:[String,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},onMotionStart:{type:Function},onMotionComplete:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},onPressStart:{type:Function},onPressEnd:{type:Function},onViewEnter:{type:Function},onViewLeave:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0}),setup(e){const t=e,{initial:n,safeUnmount:s}=rl({initial:m.ref(void 0),safeUnmount:()=>!0}),i=Sa(null),r=m.useAttrs(),o=new il({...r,...t},i);wa(o);const a=m.getCurrentInstance();m.onMounted(()=>{o.mount(a==null?void 0:a.vnode.el),o.update({...r,...t,style:{...De(o.getTarget()),...t.style}})}),m.onUnmounted(()=>{s(a==null?void 0:a.vnode.el)&&o.unmount()}),m.onUpdated(()=>{o.update({...r,...t,initial:n.value===!1?n.value:t.initial===!0?void 0:t.initial})});function l(){const u={...r};Object.keys(r).forEach(f=>{q(r[f])&&(u[f]=r[f].get())});let c={...t.style};if(!o.isMounted())if(Da(t.as)){const{attributes:f,style:h}=Ga(o.getTarget());Object.assign(u,f),Object.assign(c,h,t.style)}else Object.assign(c,t.style,o.getTarget());return c=De(c),u.style=De(c),u}return(u,c)=>(m.openBlock(),m.createBlock(m.unref(za),m.mergeProps({as:u.as,"as-child":u.asChild},l()),{default:m.withCtx(()=>[m.renderSlot(u.$slots,"default")]),_:3},16,["as","as-child"]))}}),ll=m.defineComponent({name:"AnimatePresence",inheritAttrs:!0,__name:"AnimatePresence",props:{mode:{default:"sync"},initial:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},as:{}},setup(e){const t=e,{initial:n}=m.toRefs(t);ol({initial:n,safeUnmount(r){return!$t.has(r)}});function s(r){const o=kt.get(r);o&&(Re(r),o.setActive("exit",!1))}function i(r,o){const a=kt.get(r);if(!a)return o();Re(r);function l(u){var c;(c=u==null?void 0:u.detail)!=null&&c.isExit&&(Re(r),o(),r.__vnode.ctx.isUnmounted&&a.unmount())}$t.set(r,l),r.addEventListener("motioncomplete",l),a.setActive("exit",!0)}return(r,o)=>(m.openBlock(),m.createBlock(m.resolveDynamicComponent(r.multiple?m.TransitionGroup:m.Transition),{tag:r.multiple?r.as:void 0,css:!1,mode:r.mode==="wait"?"out-in":void 0,onEnter:s,onLeave:i},{default:m.withCtx(()=>[m.renderSlot(r.$slots,"default")]),_:3},40,["tag","mode"]))}});function Le(e){const t=D(e()),n=()=>t.set(e()),s=()=>x.preRender(n,!1,!0);let i;const r=a=>{i=a.map(l=>l.on("change",s))},o=()=>{i.forEach(a=>a()),R(n)};return m.onUnmounted(()=>{o()}),{subscribe:r,unsubscribe:o,value:t}}function ul(e){_.current=[];const{value:t,subscribe:n,unsubscribe:s}=Le(e);return n(_.current),_.current=void 0,m.onBeforeUpdate(()=>{s(),_.current=[],e(),n(_.current),_.current=void 0}),t}function cl(e,t,n,s){if(typeof e=="function")return ul(e);const i=typeof t=="function"?t:Ss(t,n,s);return Array.isArray(e)?Rs(e,i):Rs([e],([r])=>i(r))}function Rs(e,t){const n=[],{value:s,subscribe:i}=Le(()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)});return i(e),s}function fl(e){let t=0;const n=({timestamp:i,delta:r})=>{t||(t=i),e(i-t,r)},s=()=>R(n);m.onBeforeUpdate(()=>{s(),x.update(n,!0)}),m.onUnmounted(()=>s()),x.update(n,!0)}function hl(){const e=D(0);return fl(t=>e.set(t)),e}function dl(e,...t){const n=e.length;function s(){let o="";for(let a=0;a<n;a++){o+=e[a];const l=t[a];l&&(o+=q(l)?l.get():l)}return o}const{value:i,subscribe:r}=Le(s);return r(t.filter(q)),i}function Ls(e){return typeof e=="number"?e:parseFloat(e)}function pl(e,t={}){let n=null;const s=D(q(e)?Ls(e.get()):e);let i=s.get(),r=()=>{};const o=()=>{n&&(n.stop(),n=null)},a=()=>{const l=n;(l==null?void 0:l.time)===0&&l.sample(j.delta),o(),n=Er({keyframes:[s.get(),i],velocity:s.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:r})};return m.watch(()=>JSON.stringify(t),()=>{const l=s.attach((u,c)=>(i=u,r=c,x.update(a),s.get()),o);m.onBeforeUnmount(()=>l())},{immediate:!0}),q(e)&&e.on("change",l=>{s.set(Ls(l))}),s}function Ns(e,t){Cs(!!(!t||t.value),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref.`)}function ml(){return{scrollX:D(0),scrollY:D(0),scrollXProgress:D(0),scrollYProgress:D(0)}}function gl({container:e,target:t,...n}={}){const s=ml();let i;const r=()=>{i==null||i(),i=vs((o,{x:a,y:l})=>{s.scrollX.set(a.current),s.scrollXProgress.set(a.progress),s.scrollY.set(l.current),s.scrollYProgress.set(l.progress)},{...n,container:(e==null?void 0:e.value)??void 0,target:(t==null?void 0:t.value)??void 0})};return m.onMounted(()=>{Ns("target",t),Ns("container",e),r()}),m.onUnmounted(()=>i==null?void 0:i()),m.watch(()=>[e==null?void 0:e.value,t==null?void 0:t.value,n.offset],r),s}const yl={motion:["Motion","MotionPresence"]},vl={utilities:["useTransform","useTime","useMotionTemplate","useSpring","useScroll","useMotionValue"]};d.AnimatePresence=ll,d.Motion=al,d.MotionValue=We,d.animate=as,d.animateMini=No,d.anticipate=Qt,d.backIn=Mt,d.backInOut=Jt,d.backOut=Zt,d.cancelFrame=R,d.cancelSync=ba,d.circIn=Et,d.circInOut=te,d.circOut=sn,d.clamp=W,d.components=yl,d.createScopedAnimate=os,d.cubicBezier=Q,d.delay=ga,d.distance=Oe,d.distance2D=ya,d.easeIn=On,d.easeInOut=pe,d.easeOut=Fn,d.frame=x,d.frameData=j,d.frameSteps=Qs,d.inView=bs,d.inertia=de,d.interpolate=Ot,d.keyframes=pt,d.mirrorEasing=Xt,d.mix=we,d.motionValue=D,d.pipe=Pt,d.progress=J,d.reverseEasing=qt,d.scroll=vs,d.scrollInfo=Nt,d.spring=Vt,d.stagger=ha,d.steps=ca,d.sync=va,d.transform=Ss,d.useMotionTemplate=dl,d.useMotionValue=D,d.useScroll=gl,d.useSpring=pl,d.useTime=hl,d.useTransform=cl,d.utilities=vl,d.wrap=Je,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
|