@burdenoff/microfe-mybodyshield 2026.705.1 → 2026.706.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/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +10 -0
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.js +5 -5
- package/dist/mybodyshield/components/DataTable.js +8 -4
- package/dist/mybodyshield/components/DataTable.js.map +1 -1
- package/dist/mybodyshield/components/EvidenceUpload.js +92 -4
- package/dist/mybodyshield/components/EvidenceUpload.js.map +1 -0
- package/dist/mybodyshield/components/FileLink.js +35 -2
- package/dist/mybodyshield/components/FileLink.js.map +1 -0
- package/dist/mybodyshield/components/MybDiscussion.js +107 -6
- package/dist/mybodyshield/components/MybDiscussion.js.map +1 -0
- package/dist/mybodyshield/components/MybTags.js +148 -4
- package/dist/mybodyshield/components/MybTags.js.map +1 -0
- package/dist/mybodyshield/components/Pagination.js.map +1 -1
- package/dist/mybodyshield/components/UserSearchSelect.js +148 -0
- package/dist/mybodyshield/components/UserSearchSelect.js.map +1 -0
- package/dist/mybodyshield/components/index.js +1 -0
- package/dist/mybodyshield/hooks/index.js +1 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +47 -27
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/hooks/useMybComments.js +44 -2
- package/dist/mybodyshield/hooks/useMybComments.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybFiles.js +80 -3
- package/dist/mybodyshield/hooks/useMybFiles.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybTags.js +88 -2
- package/dist/mybodyshield/hooks/useMybTags.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybUsers.js +36 -0
- package/dist/mybodyshield/hooks/useMybUsers.js.map +1 -0
- package/dist/mybodyshield/pages/DashboardPage.js +444 -340
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/_shared/visuals.js +29 -23
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +272 -179
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -257
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +745 -504
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +688 -320
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramsPage.js +282 -234
- package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -1
- package/dist/mybodyshield/pages/progress/ProgressPage.js +447 -299
- package/dist/mybodyshield/pages/progress/ProgressPage.js.map +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +335 -246
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionDetailPage.js +380 -267
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionsPage.js +111 -78
- package/dist/mybodyshield/pages/train/SessionsPage.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +260 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +140 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +109 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +131 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +86 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +168 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +63 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +69 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +41 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +586 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +206 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +58 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +137 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +35 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +94 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +66 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +33 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +28 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js +435 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/{LineChart.js → AreaChart.js} +5 -5
- package/dist/node_modules/recharts/es6/chart/{LineChart.js.map → AreaChart.js.map} +1 -1
- package/package.json +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -473
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/geometry/utils.mjs"],"sourcesContent":["import { calcLength } from './delta-calc.mjs';\n\nfunction isAxisDeltaZero(delta) {\n return delta.translate === 0 && delta.scale === 1;\n}\nfunction isDeltaZero(delta) {\n return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);\n}\nfunction axisEquals(a, b) {\n return a.min === b.min && a.max === b.max;\n}\nfunction boxEquals(a, b) {\n return axisEquals(a.x, b.x) && axisEquals(a.y, b.y);\n}\nfunction axisEqualsRounded(a, b) {\n return (Math.round(a.min) === Math.round(b.min) &&\n Math.round(a.max) === Math.round(b.max));\n}\nfunction boxEqualsRounded(a, b) {\n return axisEqualsRounded(a.x, b.x) && axisEqualsRounded(a.y, b.y);\n}\nfunction aspectRatio(box) {\n return calcLength(box.x) / calcLength(box.y);\n}\nfunction axisDeltaEquals(a, b) {\n return (a.translate === b.translate &&\n a.scale === b.scale &&\n a.originPoint === b.originPoint);\n}\n\nexport { aspectRatio, axisDeltaEquals, axisEquals, axisEqualsRounded, boxEquals, boxEqualsRounded, isDeltaZero };\n//# sourceMappingURL=utils.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,SAAS,EAAgB,GAAO;AAC5B,QAAO,EAAM,cAAc,KAAK,EAAM,UAAU;;AAEpD,SAAS,EAAY,GAAO;AACxB,QAAO,EAAgB,EAAM,EAAE,IAAI,EAAgB,EAAM,EAAE;;AAE/D,SAAS,EAAW,GAAG,GAAG;AACtB,QAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE;;AAE1C,SAAS,EAAU,GAAG,GAAG;AACrB,QAAO,EAAW,EAAE,GAAG,EAAE,EAAE,IAAI,EAAW,EAAE,GAAG,EAAE,EAAE;;AAEvD,SAAS,EAAkB,GAAG,GAAG;AAC7B,QAAQ,KAAK,MAAM,EAAE,IAAI,KAAK,KAAK,MAAM,EAAE,IAAI,IAC3C,KAAK,MAAM,EAAE,IAAI,KAAK,KAAK,MAAM,EAAE,IAAI;;AAE/C,SAAS,EAAiB,GAAG,GAAG;AAC5B,QAAO,EAAkB,EAAE,GAAG,EAAE,EAAE,IAAI,EAAkB,EAAE,GAAG,EAAE,EAAE;;AAErE,SAAS,EAAY,GAAK;AACtB,QAAO,EAAW,EAAI,EAAE,GAAG,EAAW,EAAI,EAAE;;AAEhD,SAAS,EAAgB,GAAG,GAAG;AAC3B,QAAQ,EAAE,cAAc,EAAE,aACtB,EAAE,UAAU,EAAE,SACd,EAAE,gBAAgB,EAAE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { addDomEvent as e } from "../../events/add-dom-event.js";
|
|
2
|
+
import { createProjectionNode as t } from "./create-projection-node.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
|
|
4
|
+
var n = t({
|
|
5
|
+
attachResizeListener: (t, n) => e(t, "resize", n),
|
|
6
|
+
measureScroll: () => ({
|
|
7
|
+
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
8
|
+
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
|
|
9
|
+
}),
|
|
10
|
+
checkIsScrollRoot: () => !0
|
|
11
|
+
});
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as DocumentProjectionNode };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=DocumentProjectionNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentProjectionNode.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs"],"sourcesContent":["import { addDomEvent } from '../../events/add-dom-event.mjs';\nimport { createProjectionNode } from './create-projection-node.mjs';\n\nconst DocumentProjectionNode = createProjectionNode({\n attachResizeListener: (ref, notify) => addDomEvent(ref, \"resize\", notify),\n measureScroll: () => ({\n x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,\n y: document.documentElement.scrollTop || document.body?.scrollTop || 0,\n }),\n checkIsScrollRoot: () => true,\n});\n\nexport { DocumentProjectionNode };\n//# sourceMappingURL=DocumentProjectionNode.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAM,IAAyB,EAAqB;CAChD,uBAAuB,GAAK,MAAW,EAAY,GAAK,UAAU,EAAO;CACzE,sBAAsB;EAClB,GAAG,SAAS,gBAAgB,cAAc,SAAS,MAAM,cAAc;EACvE,GAAG,SAAS,gBAAgB,aAAa,SAAS,MAAM,aAAa;EACxE;CACD,yBAAyB;CAC5B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createProjectionNode as e } from "./create-projection-node.js";
|
|
2
|
+
import { DocumentProjectionNode as t } from "./DocumentProjectionNode.js";
|
|
3
|
+
//#region node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs
|
|
4
|
+
var n = { current: void 0 }, r = e({
|
|
5
|
+
measureScroll: (e) => ({
|
|
6
|
+
x: e.scrollLeft,
|
|
7
|
+
y: e.scrollTop
|
|
8
|
+
}),
|
|
9
|
+
defaultParent: () => {
|
|
10
|
+
if (!n.current) {
|
|
11
|
+
let e = new t({});
|
|
12
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), n.current = e;
|
|
13
|
+
}
|
|
14
|
+
return n.current;
|
|
15
|
+
},
|
|
16
|
+
resetTransform: (e, t) => {
|
|
17
|
+
e.style.transform = t === void 0 ? "none" : t;
|
|
18
|
+
},
|
|
19
|
+
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as HTMLProjectionNode };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=HTMLProjectionNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HTMLProjectionNode.js","names":[],"sources":["../../../../../../../node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs"],"sourcesContent":["import { createProjectionNode } from './create-projection-node.mjs';\nimport { DocumentProjectionNode } from './DocumentProjectionNode.mjs';\n\nconst rootProjectionNode = {\n current: undefined,\n};\nconst HTMLProjectionNode = createProjectionNode({\n measureScroll: (instance) => ({\n x: instance.scrollLeft,\n y: instance.scrollTop,\n }),\n defaultParent: () => {\n if (!rootProjectionNode.current) {\n const documentNode = new DocumentProjectionNode({});\n documentNode.mount(window);\n documentNode.setOptions({ layoutScroll: true });\n rootProjectionNode.current = documentNode;\n }\n return rootProjectionNode.current;\n },\n resetTransform: (instance, value) => {\n instance.style.transform = value !== undefined ? value : \"none\";\n },\n checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === \"fixed\"),\n});\n\nexport { HTMLProjectionNode, rootProjectionNode };\n//# sourceMappingURL=HTMLProjectionNode.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAM,IAAqB,EACvB,SAAS,KAAA,GACZ,EACK,IAAqB,EAAqB;CAC5C,gBAAgB,OAAc;EAC1B,GAAG,EAAS;EACZ,GAAG,EAAS;EACf;CACD,qBAAqB;AACjB,MAAI,CAAC,EAAmB,SAAS;GAC7B,IAAM,IAAe,IAAI,EAAuB,EAAE,CAAC;AAGnD,GAFA,EAAa,MAAM,OAAO,EAC1B,EAAa,WAAW,EAAE,cAAc,IAAM,CAAC,EAC/C,EAAmB,UAAU;;AAEjC,SAAO,EAAmB;;CAE9B,iBAAiB,GAAU,MAAU;AACjC,IAAS,MAAM,YAAY,MAAU,KAAA,IAAoB,SAAR;;CAErD,oBAAoB,MAAqB,OAAO,iBAAiB,EAAS,CAAC,aAAa;CAC3F,CAAC"}
|
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
import { clamp as e } from "../../../../../motion-utils/dist/es/clamp.js";
|
|
2
|
+
import { noop as t } from "../../../../../motion-utils/dist/es/noop.js";
|
|
3
|
+
import { SubscriptionManager as n } from "../../../../../motion-utils/dist/es/subscription-manager.js";
|
|
4
|
+
import { cancelFrame as r, frame as i, frameData as a, frameSteps as o } from "../../frameloop/frame.js";
|
|
5
|
+
import { time as s } from "../../frameloop/sync-time.js";
|
|
6
|
+
import { mixNumber as c } from "../../utils/mix/number.js";
|
|
7
|
+
import { motionValue as l } from "../../value/index.js";
|
|
8
|
+
import { getValueTransition as u } from "../../animation/utils/get-value-transition.js";
|
|
9
|
+
import { getOptimisedAppearId as d } from "../../animation/optimized-appear/get-appear-id.js";
|
|
10
|
+
import { microtask as f } from "../../frameloop/microtask.js";
|
|
11
|
+
import { isSVGElement as p } from "../../utils/is-svg-element.js";
|
|
12
|
+
import { statsBuffer as m } from "../../stats/buffer.js";
|
|
13
|
+
import { isSVGSVGElement as ee } from "../../utils/is-svg-svg-element.js";
|
|
14
|
+
import { createBox as h, createDelta as g } from "../geometry/models.js";
|
|
15
|
+
import { has2DTranslate as _, hasScale as v, hasTransform as y } from "../utils/has-transform.js";
|
|
16
|
+
import { applyBoxDelta as te, applyTreeDeltas as ne, transformBox as b, translateAxis as x } from "../geometry/delta-apply.js";
|
|
17
|
+
import { scaleCorrectors as S } from "../styles/scale-correction.js";
|
|
18
|
+
import { copyAxisDeltaInto as C, copyAxisInto as w, copyBoxInto as T } from "../geometry/copy.js";
|
|
19
|
+
import { calcBoxDelta as E, calcLength as D, calcRelativeBox as re, calcRelativePosition as O, isNear as k } from "../geometry/delta-calc.js";
|
|
20
|
+
import { removeBoxTransforms as A } from "../geometry/delta-remove.js";
|
|
21
|
+
import { aspectRatio as j, axisDeltaEquals as M, boxEquals as ie, boxEqualsRounded as N, isDeltaZero as P } from "../geometry/utils.js";
|
|
22
|
+
import { eachAxis as F } from "../utils/each-axis.js";
|
|
23
|
+
import { buildProjectionTransform as ae } from "../styles/transform.js";
|
|
24
|
+
import { mixValues as oe } from "../animation/mix-values.js";
|
|
25
|
+
import { animateSingleValue as se } from "../../animation/animate/single-value.js";
|
|
26
|
+
import { FlatTree as ce } from "../utils/flat-tree.js";
|
|
27
|
+
import { delay as le } from "../../utils/delay.js";
|
|
28
|
+
import { resolveMotionValue as I } from "../../value/utils/resolve-motion-value.js";
|
|
29
|
+
import { NodeStack as ue } from "../shared/stack.js";
|
|
30
|
+
import { globalProjectionState as L } from "./state.js";
|
|
31
|
+
//#region node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs
|
|
32
|
+
var R = {
|
|
33
|
+
nodes: 0,
|
|
34
|
+
calculatedTargetDeltas: 0,
|
|
35
|
+
calculatedProjections: 0
|
|
36
|
+
}, z = [
|
|
37
|
+
"",
|
|
38
|
+
"X",
|
|
39
|
+
"Y",
|
|
40
|
+
"Z"
|
|
41
|
+
], B = 1e3, V = 0;
|
|
42
|
+
function H(e, t, n, r) {
|
|
43
|
+
let { latestValues: i } = t;
|
|
44
|
+
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
45
|
+
}
|
|
46
|
+
function U(e) {
|
|
47
|
+
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
|
|
48
|
+
let { visualElement: t } = e.options;
|
|
49
|
+
if (!t) return;
|
|
50
|
+
let n = d(t);
|
|
51
|
+
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
52
|
+
let { layout: t, layoutId: r } = e.options;
|
|
53
|
+
window.MotionCancelOptimisedAnimation(n, "transform", i, !(t || r));
|
|
54
|
+
}
|
|
55
|
+
let { parent: r } = e;
|
|
56
|
+
r && !r.hasCheckedOptimisedAppear && U(r);
|
|
57
|
+
}
|
|
58
|
+
function de({ attachResizeListener: t, defaultParent: d, measureScroll: w, checkIsScrollRoot: k, resetTransform: j }) {
|
|
59
|
+
return class {
|
|
60
|
+
constructor(e = {}, t = d?.()) {
|
|
61
|
+
this.id = V++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
|
|
62
|
+
x: 1,
|
|
63
|
+
y: 1
|
|
64
|
+
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
65
|
+
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
66
|
+
}, this.updateProjection = () => {
|
|
67
|
+
this.projectionUpdateScheduled = !1, m.value && (R.nodes = R.calculatedTargetDeltas = R.calculatedProjections = 0), this.nodes.forEach(me), this.nodes.forEach(be), this.nodes.forEach(xe), this.nodes.forEach(he), m.addProjectionMetrics && m.addProjectionMetrics(R);
|
|
68
|
+
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = t ? t.root || t : this, this.path = t ? [...t.path, t] : [], this.parent = t, this.depth = t ? t.depth + 1 : 0;
|
|
69
|
+
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
|
|
70
|
+
this.root === this && (this.nodes = new ce());
|
|
71
|
+
}
|
|
72
|
+
addEventListener(e, t) {
|
|
73
|
+
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new n()), this.eventHandlers.get(e).add(t);
|
|
74
|
+
}
|
|
75
|
+
notifyListeners(e, ...t) {
|
|
76
|
+
let n = this.eventHandlers.get(e);
|
|
77
|
+
n && n.notify(...t);
|
|
78
|
+
}
|
|
79
|
+
hasListeners(e) {
|
|
80
|
+
return this.eventHandlers.has(e);
|
|
81
|
+
}
|
|
82
|
+
mount(e) {
|
|
83
|
+
if (this.instance) return;
|
|
84
|
+
this.isSVG = p(e) && !ee(e), this.instance = e;
|
|
85
|
+
let { layoutId: n, layout: r, visualElement: a } = this.options;
|
|
86
|
+
if (a && !a.current && a.mount(e), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), t) {
|
|
87
|
+
let n, r = 0, a = () => this.root.updateBlockedByResize = !1;
|
|
88
|
+
i.read(() => {
|
|
89
|
+
r = window.innerWidth;
|
|
90
|
+
}), t(e, () => {
|
|
91
|
+
let e = window.innerWidth;
|
|
92
|
+
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = le(a, 250), L.hasAnimatedSinceResize && (L.hasAnimatedSinceResize = !1, this.nodes.forEach(K)));
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && a && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
|
|
96
|
+
if (this.isTreeAnimationBlocked()) {
|
|
97
|
+
this.target = void 0, this.relativeTarget = void 0;
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
let i = this.options.transition || a.getDefaultTransition() || Te, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = a.getProps(), c = !this.targetLayout || !N(this.targetLayout, r), l = !t && n;
|
|
101
|
+
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
|
|
102
|
+
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
103
|
+
let t = {
|
|
104
|
+
...u(i, "layout"),
|
|
105
|
+
onPlay: o,
|
|
106
|
+
onComplete: s
|
|
107
|
+
};
|
|
108
|
+
(a.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
|
|
109
|
+
} else t || K(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
110
|
+
this.targetLayout = r;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
unmount() {
|
|
114
|
+
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
115
|
+
let e = this.getStack();
|
|
116
|
+
e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), r(this.updateProjection);
|
|
117
|
+
}
|
|
118
|
+
blockUpdate() {
|
|
119
|
+
this.updateManuallyBlocked = !0;
|
|
120
|
+
}
|
|
121
|
+
unblockUpdate() {
|
|
122
|
+
this.updateManuallyBlocked = !1;
|
|
123
|
+
}
|
|
124
|
+
isUpdateBlocked() {
|
|
125
|
+
return this.updateManuallyBlocked || this.updateBlockedByResize;
|
|
126
|
+
}
|
|
127
|
+
isTreeAnimationBlocked() {
|
|
128
|
+
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
129
|
+
}
|
|
130
|
+
startUpdate() {
|
|
131
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Se), this.animationId++);
|
|
132
|
+
}
|
|
133
|
+
getTransformTemplate() {
|
|
134
|
+
let { visualElement: e } = this.options;
|
|
135
|
+
return e && e.getProps().transformTemplate;
|
|
136
|
+
}
|
|
137
|
+
willUpdate(e = !0) {
|
|
138
|
+
if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
|
|
139
|
+
this.options.onExitComplete && this.options.onExitComplete();
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && U(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
|
|
143
|
+
this.isLayoutDirty = !0;
|
|
144
|
+
for (let e = 0; e < this.path.length; e++) {
|
|
145
|
+
let t = this.path[e];
|
|
146
|
+
t.shouldResetTransform = !0, (typeof t.latestValues.x == "string" || typeof t.latestValues.y == "string") && (t.isLayoutDirty = !0), t.updateScroll("snapshot"), t.options.layoutRoot && t.willUpdate(!1);
|
|
147
|
+
}
|
|
148
|
+
let { layoutId: t, layout: n } = this.options;
|
|
149
|
+
if (t === void 0 && !n) return;
|
|
150
|
+
let r = this.getTransformTemplate();
|
|
151
|
+
this.prevTransformTemplateValue = r ? r(this.latestValues, "") : void 0, this.updateSnapshot(), e && this.notifyListeners("willUpdate");
|
|
152
|
+
}
|
|
153
|
+
update() {
|
|
154
|
+
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
155
|
+
let e = this.updateBlockedByResize;
|
|
156
|
+
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(_e), this.nodes.forEach(W);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (this.animationId <= this.animationCommitId) {
|
|
160
|
+
this.nodes.forEach(G);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(ve), this.nodes.forEach(ye), this.nodes.forEach(fe), this.nodes.forEach(pe)) : this.nodes.forEach(G), this.clearAllSnapshots();
|
|
164
|
+
let t = s.now();
|
|
165
|
+
a.delta = e(0, 1e3 / 60, t - a.timestamp), a.timestamp = t, a.isProcessing = !0, o.update.process(a), o.preRender.process(a), o.render.process(a), a.isProcessing = !1;
|
|
166
|
+
}
|
|
167
|
+
didUpdate() {
|
|
168
|
+
this.updateScheduled || (this.updateScheduled = !0, f.read(this.scheduleUpdate));
|
|
169
|
+
}
|
|
170
|
+
clearAllSnapshots() {
|
|
171
|
+
this.nodes.forEach(ge), this.sharedNodes.forEach(Ce);
|
|
172
|
+
}
|
|
173
|
+
scheduleUpdateProjection() {
|
|
174
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, i.preRender(this.updateProjection, !1, !0));
|
|
175
|
+
}
|
|
176
|
+
scheduleCheckAfterUnmount() {
|
|
177
|
+
i.postRender(() => {
|
|
178
|
+
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
updateSnapshot() {
|
|
182
|
+
this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !D(this.snapshot.measuredBox.x) && !D(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
|
|
183
|
+
}
|
|
184
|
+
updateLayout() {
|
|
185
|
+
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
|
|
186
|
+
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
|
|
187
|
+
let e = this.layout;
|
|
188
|
+
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= h(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
189
|
+
let { visualElement: t } = this.options;
|
|
190
|
+
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
|
|
191
|
+
}
|
|
192
|
+
updateScroll(e = "measure") {
|
|
193
|
+
let t = !!(this.options.layoutScroll && this.instance);
|
|
194
|
+
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (t = !1), t && this.instance) {
|
|
195
|
+
let t = k(this.instance);
|
|
196
|
+
this.scroll = {
|
|
197
|
+
animationId: this.root.animationId,
|
|
198
|
+
phase: e,
|
|
199
|
+
isRoot: t,
|
|
200
|
+
offset: w(this.instance),
|
|
201
|
+
wasRoot: this.scroll ? this.scroll.isRoot : t
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
resetTransform() {
|
|
206
|
+
if (!j) return;
|
|
207
|
+
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !P(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, i = r !== this.prevTransformTemplateValue;
|
|
208
|
+
e && this.instance && (t || y(this.latestValues) || i) && (j(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
|
|
209
|
+
}
|
|
210
|
+
measure(e = !0) {
|
|
211
|
+
let t = this.measurePageBox(), n = this.removeElementScroll(t);
|
|
212
|
+
return e && (n = this.removeTransform(n)), Ee(n), {
|
|
213
|
+
animationId: this.root.animationId,
|
|
214
|
+
measuredBox: t,
|
|
215
|
+
layoutBox: n,
|
|
216
|
+
latestValues: {},
|
|
217
|
+
source: this.id
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
measurePageBox() {
|
|
221
|
+
let { visualElement: e } = this.options;
|
|
222
|
+
if (!e) return h();
|
|
223
|
+
let t = e.measureViewportBox();
|
|
224
|
+
if (!(this.scroll?.wasRoot || this.path.some(De))) {
|
|
225
|
+
let { scroll: e } = this.root;
|
|
226
|
+
e && (x(t.x, e.offset.x), x(t.y, e.offset.y));
|
|
227
|
+
}
|
|
228
|
+
return t;
|
|
229
|
+
}
|
|
230
|
+
removeElementScroll(e) {
|
|
231
|
+
let t = h();
|
|
232
|
+
if (T(t, e), this.scroll?.wasRoot) return t;
|
|
233
|
+
for (let n = 0; n < this.path.length; n++) {
|
|
234
|
+
let r = this.path[n], { scroll: i, options: a } = r;
|
|
235
|
+
r !== this.root && i && a.layoutScroll && (i.wasRoot && T(t, e), x(t.x, i.offset.x), x(t.y, i.offset.y));
|
|
236
|
+
}
|
|
237
|
+
return t;
|
|
238
|
+
}
|
|
239
|
+
applyTransform(e, t = !1, n) {
|
|
240
|
+
let r = n || h();
|
|
241
|
+
T(r, e);
|
|
242
|
+
for (let e = 0; e < this.path.length; e++) {
|
|
243
|
+
let n = this.path[e];
|
|
244
|
+
!t && n.options.layoutScroll && n.scroll && n !== n.root && (x(r.x, -n.scroll.offset.x), x(r.y, -n.scroll.offset.y)), y(n.latestValues) && b(r, n.latestValues, n.layout?.layoutBox);
|
|
245
|
+
}
|
|
246
|
+
return y(this.latestValues) && b(r, this.latestValues, this.layout?.layoutBox), r;
|
|
247
|
+
}
|
|
248
|
+
removeTransform(e) {
|
|
249
|
+
let t = h();
|
|
250
|
+
T(t, e);
|
|
251
|
+
for (let e = 0; e < this.path.length; e++) {
|
|
252
|
+
let n = this.path[e];
|
|
253
|
+
if (!y(n.latestValues)) continue;
|
|
254
|
+
let r;
|
|
255
|
+
n.instance && (v(n.latestValues) && n.updateSnapshot(), r = h(), T(r, n.measurePageBox())), A(t, n.latestValues, n.snapshot?.layoutBox, r);
|
|
256
|
+
}
|
|
257
|
+
return y(this.latestValues) && A(t, this.latestValues), t;
|
|
258
|
+
}
|
|
259
|
+
setTargetDelta(e) {
|
|
260
|
+
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
261
|
+
}
|
|
262
|
+
setOptions(e) {
|
|
263
|
+
this.options = {
|
|
264
|
+
...this.options,
|
|
265
|
+
...e,
|
|
266
|
+
crossfade: e.crossfade === void 0 ? !0 : e.crossfade
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
clearMeasurements() {
|
|
270
|
+
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
271
|
+
}
|
|
272
|
+
forceRelativeParentToResolveTarget() {
|
|
273
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== a.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
274
|
+
}
|
|
275
|
+
resolveTargetDelta(e = !1) {
|
|
276
|
+
let t = this.getLead();
|
|
277
|
+
this.isProjectionDirty ||= t.isProjectionDirty, this.isTransformDirty ||= t.isTransformDirty, this.isSharedProjectionDirty ||= t.isSharedProjectionDirty;
|
|
278
|
+
let n = !!this.resumingFrom || this !== t;
|
|
279
|
+
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
|
|
280
|
+
let { layout: r, layoutId: i } = this.options;
|
|
281
|
+
if (!this.layout || !(r || i)) return;
|
|
282
|
+
this.resolvedRelativeTargetAt = a.timestamp;
|
|
283
|
+
let o = this.getClosestProjectingParent();
|
|
284
|
+
o && this.linkedParentVersion !== o.layoutVersion && !o.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && o && o.layout ? this.createRelativeTarget(o, this.layout.layoutBox, o.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = h(), this.targetWithTransforms = h()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), re(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : T(this.target, this.layout.layoutBox), te(this.target, this.targetDelta)) : T(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && o && !!o.resumingFrom == !!this.resumingFrom && !o.options.layoutScroll && o.target && this.animationProgress !== 1 ? this.createRelativeTarget(o, this.target, o.target) : this.relativeParent = this.relativeTarget = void 0), m.value && R.calculatedTargetDeltas++);
|
|
285
|
+
}
|
|
286
|
+
getClosestProjectingParent() {
|
|
287
|
+
if (!(!this.parent || v(this.parent.latestValues) || _(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
288
|
+
}
|
|
289
|
+
isProjecting() {
|
|
290
|
+
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
291
|
+
}
|
|
292
|
+
createRelativeTarget(e, t, n) {
|
|
293
|
+
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = h(), this.relativeTargetOrigin = h(), O(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), T(this.relativeTarget, this.relativeTargetOrigin);
|
|
294
|
+
}
|
|
295
|
+
removeRelativeTarget() {
|
|
296
|
+
this.relativeParent = this.relativeTarget = void 0;
|
|
297
|
+
}
|
|
298
|
+
calcProjection() {
|
|
299
|
+
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
|
|
300
|
+
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === a.timestamp && (n = !1), n) return;
|
|
301
|
+
let { layout: r, layoutId: i } = this.options;
|
|
302
|
+
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
|
|
303
|
+
T(this.layoutCorrected, this.layout.layoutBox);
|
|
304
|
+
let o = this.treeScale.x, s = this.treeScale.y;
|
|
305
|
+
ne(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = h());
|
|
306
|
+
let { target: c } = e;
|
|
307
|
+
if (!c) {
|
|
308
|
+
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (C(this.prevProjectionDelta.x, this.projectionDelta.x), C(this.prevProjectionDelta.y, this.projectionDelta.y)), E(this.projectionDelta, this.layoutCorrected, c, this.latestValues), (this.treeScale.x !== o || this.treeScale.y !== s || !M(this.projectionDelta.x, this.prevProjectionDelta.x) || !M(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", c)), m.value && R.calculatedProjections++;
|
|
312
|
+
}
|
|
313
|
+
hide() {
|
|
314
|
+
this.isVisible = !1;
|
|
315
|
+
}
|
|
316
|
+
show() {
|
|
317
|
+
this.isVisible = !0;
|
|
318
|
+
}
|
|
319
|
+
scheduleRender(e = !0) {
|
|
320
|
+
if (this.options.visualElement?.scheduleRender(), e) {
|
|
321
|
+
let e = this.getStack();
|
|
322
|
+
e && e.scheduleRender();
|
|
323
|
+
}
|
|
324
|
+
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
325
|
+
}
|
|
326
|
+
createProjectionDeltas() {
|
|
327
|
+
this.prevProjectionDelta = g(), this.projectionDelta = g(), this.projectionDeltaWithTransform = g();
|
|
328
|
+
}
|
|
329
|
+
setAnimationOrigin(e, t = !1, n) {
|
|
330
|
+
let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = g();
|
|
331
|
+
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
|
|
332
|
+
let s = h(), l = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), u = this.getStack(), d = !u || u.members.length <= 1, f = !!(l && !d && this.options.crossfade === !0 && !this.path.some(Y));
|
|
333
|
+
this.animationProgress = 0;
|
|
334
|
+
let p, m = n?.interpolateProjection(e);
|
|
335
|
+
this.mixTargetDelta = (t) => {
|
|
336
|
+
let n = t / 1e3, r = m?.(n);
|
|
337
|
+
r ? (o.x.translate = r.x, o.x.scale = c(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = c(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : (q(o.x, e.x, n), q(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (O(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), we(this.relativeTarget, this.relativeTargetOrigin, s, n), p && ie(this.relativeTarget, p) && (this.isProjectionDirty = !1), p ||= h(), T(p, this.relativeTarget)), l && (this.animationValues = a, oe(a, i, this.latestValues, n, f, d)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
|
|
338
|
+
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
339
|
+
}
|
|
340
|
+
startAnimation(e) {
|
|
341
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (r(this.pendingAnimation), void 0), this.pendingAnimation = i.update(() => {
|
|
342
|
+
L.hasAnimatedSinceResize = !0, this.motionValue ||= l(0), this.motionValue.jump(0, !1), this.currentAnimation = se(this.motionValue, [0, 1e3], {
|
|
343
|
+
...e,
|
|
344
|
+
velocity: 0,
|
|
345
|
+
isSync: !0,
|
|
346
|
+
onUpdate: (t) => {
|
|
347
|
+
this.mixTargetDelta(t), e.onUpdate && e.onUpdate(t);
|
|
348
|
+
},
|
|
349
|
+
onComplete: () => {
|
|
350
|
+
e.onComplete && e.onComplete(), this.completeAnimation();
|
|
351
|
+
}
|
|
352
|
+
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
completeAnimation() {
|
|
356
|
+
this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
|
|
357
|
+
let e = this.getStack();
|
|
358
|
+
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
359
|
+
}
|
|
360
|
+
finishAnimation() {
|
|
361
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(B), this.currentAnimation.stop()), this.completeAnimation();
|
|
362
|
+
}
|
|
363
|
+
applyTransformsToTarget() {
|
|
364
|
+
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
|
|
365
|
+
if (!(!t || !n || !r)) {
|
|
366
|
+
if (this !== e && this.layout && r && $(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
|
|
367
|
+
n = this.target || h();
|
|
368
|
+
let t = D(this.layout.layoutBox.x);
|
|
369
|
+
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
|
|
370
|
+
let r = D(this.layout.layoutBox.y);
|
|
371
|
+
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
|
|
372
|
+
}
|
|
373
|
+
T(t, n), b(t, i), E(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
registerSharedNode(e, t) {
|
|
377
|
+
this.sharedNodes.has(e) || this.sharedNodes.set(e, new ue()), this.sharedNodes.get(e).add(t);
|
|
378
|
+
let n = t.options.initialPromotionConfig;
|
|
379
|
+
t.promote({
|
|
380
|
+
transition: n ? n.transition : void 0,
|
|
381
|
+
preserveFollowOpacity: n && n.shouldPreserveFollowOpacity ? n.shouldPreserveFollowOpacity(t) : void 0
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
isLead() {
|
|
385
|
+
let e = this.getStack();
|
|
386
|
+
return e ? e.lead === this : !0;
|
|
387
|
+
}
|
|
388
|
+
getLead() {
|
|
389
|
+
let { layoutId: e } = this.options;
|
|
390
|
+
return e && this.getStack()?.lead || this;
|
|
391
|
+
}
|
|
392
|
+
getPrevLead() {
|
|
393
|
+
let { layoutId: e } = this.options;
|
|
394
|
+
return e ? this.getStack()?.prevLead : void 0;
|
|
395
|
+
}
|
|
396
|
+
getStack() {
|
|
397
|
+
let { layoutId: e } = this.options;
|
|
398
|
+
if (e) return this.root.sharedNodes.get(e);
|
|
399
|
+
}
|
|
400
|
+
promote({ needsReset: e, transition: t, preserveFollowOpacity: n } = {}) {
|
|
401
|
+
let r = this.getStack();
|
|
402
|
+
r && r.promote(this, n), e && (this.projectionDelta = void 0, this.needsReset = !0), t && this.setOptions({ transition: t });
|
|
403
|
+
}
|
|
404
|
+
relegate() {
|
|
405
|
+
let e = this.getStack();
|
|
406
|
+
return e ? e.relegate(this) : !1;
|
|
407
|
+
}
|
|
408
|
+
resetSkewAndRotation() {
|
|
409
|
+
let { visualElement: e } = this.options;
|
|
410
|
+
if (!e) return;
|
|
411
|
+
let t = !1, { latestValues: n } = e;
|
|
412
|
+
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
|
|
413
|
+
let r = {};
|
|
414
|
+
n.z && H("z", e, r, this.animationValues);
|
|
415
|
+
for (let t = 0; t < z.length; t++) H(`rotate${z[t]}`, e, r, this.animationValues), H(`skew${z[t]}`, e, r, this.animationValues);
|
|
416
|
+
e.render();
|
|
417
|
+
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
|
|
418
|
+
e.scheduleRender();
|
|
419
|
+
}
|
|
420
|
+
applyProjectionStyles(e, t) {
|
|
421
|
+
if (!this.instance || this.isSVG) return;
|
|
422
|
+
if (!this.isVisible) {
|
|
423
|
+
e.visibility = "hidden";
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
let n = this.getTransformTemplate();
|
|
427
|
+
if (this.needsReset) {
|
|
428
|
+
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = I(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
let r = this.getLead();
|
|
432
|
+
if (!this.projectionDelta || !this.layout || !r.target) {
|
|
433
|
+
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = I(t?.pointerEvents) || ""), this.hasProjected && !y(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
e.visibility = "";
|
|
437
|
+
let i = r.animationValues || r.latestValues;
|
|
438
|
+
this.applyTransformsToTarget();
|
|
439
|
+
let a = ae(this.projectionDeltaWithTransform, this.treeScale, i);
|
|
440
|
+
n && (a = n(i, a)), e.transform = a;
|
|
441
|
+
let { x: o, y: s } = this.projectionDelta;
|
|
442
|
+
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, r.animationValues ? e.opacity = r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : e.opacity = r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
|
|
443
|
+
for (let t in S) {
|
|
444
|
+
if (i[t] === void 0) continue;
|
|
445
|
+
let { correct: n, applyTo: o, isCSSVariable: s } = S[t], c = a === "none" ? i[t] : n(i[t], r);
|
|
446
|
+
if (o) {
|
|
447
|
+
let t = o.length;
|
|
448
|
+
for (let n = 0; n < t; n++) e[o[n]] = c;
|
|
449
|
+
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
|
|
450
|
+
}
|
|
451
|
+
this.options.layoutId && (e.pointerEvents = r === this ? I(t?.pointerEvents) || "" : "none");
|
|
452
|
+
}
|
|
453
|
+
clearSnapshot() {
|
|
454
|
+
this.resumeFrom = this.snapshot = void 0;
|
|
455
|
+
}
|
|
456
|
+
resetTree() {
|
|
457
|
+
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(W), this.root.sharedNodes.clear();
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
function fe(e) {
|
|
462
|
+
e.updateLayout();
|
|
463
|
+
}
|
|
464
|
+
function pe(e) {
|
|
465
|
+
let t = e.resumeFrom?.snapshot || e.snapshot;
|
|
466
|
+
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
467
|
+
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
|
|
468
|
+
if (i === "size") F((e) => {
|
|
469
|
+
let r = a ? t.measuredBox[e] : t.layoutBox[e], i = D(r);
|
|
470
|
+
r.min = n[e].min, r.max = r.min + i;
|
|
471
|
+
});
|
|
472
|
+
else if (i === "x" || i === "y") {
|
|
473
|
+
let e = i === "x" ? "y" : "x";
|
|
474
|
+
w(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
|
|
475
|
+
} else $(i, t.layoutBox, n) && F((r) => {
|
|
476
|
+
let i = a ? t.measuredBox[r] : t.layoutBox[r], o = D(n[r]);
|
|
477
|
+
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
|
|
478
|
+
});
|
|
479
|
+
let o = g();
|
|
480
|
+
E(o, n, t.layoutBox);
|
|
481
|
+
let s = g();
|
|
482
|
+
a ? E(s, e.applyTransform(r, !0), t.measuredBox) : E(s, n, t.layoutBox);
|
|
483
|
+
let c = !P(o), l = !1;
|
|
484
|
+
if (!e.resumeFrom) {
|
|
485
|
+
let r = e.getClosestProjectingParent();
|
|
486
|
+
if (r && !r.resumeFrom) {
|
|
487
|
+
let { snapshot: i, layout: a } = r;
|
|
488
|
+
if (i && a) {
|
|
489
|
+
let o = e.options.layoutAnchor || void 0, s = h();
|
|
490
|
+
O(s, t.layoutBox, i.layoutBox, o);
|
|
491
|
+
let c = h();
|
|
492
|
+
O(c, n, a.layoutBox, o), N(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
e.notifyListeners("didUpdate", {
|
|
497
|
+
layout: n,
|
|
498
|
+
snapshot: t,
|
|
499
|
+
delta: s,
|
|
500
|
+
layoutDelta: o,
|
|
501
|
+
hasLayoutChanged: c,
|
|
502
|
+
hasRelativeLayoutChanged: l
|
|
503
|
+
});
|
|
504
|
+
} else if (e.isLead()) {
|
|
505
|
+
let { onExitComplete: t } = e.options;
|
|
506
|
+
t && t();
|
|
507
|
+
}
|
|
508
|
+
e.options.transition = void 0;
|
|
509
|
+
}
|
|
510
|
+
function me(e) {
|
|
511
|
+
m.value && R.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
|
|
512
|
+
}
|
|
513
|
+
function he(e) {
|
|
514
|
+
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
515
|
+
}
|
|
516
|
+
function ge(e) {
|
|
517
|
+
e.clearSnapshot();
|
|
518
|
+
}
|
|
519
|
+
function W(e) {
|
|
520
|
+
e.clearMeasurements();
|
|
521
|
+
}
|
|
522
|
+
function _e(e) {
|
|
523
|
+
e.isLayoutDirty = !0, e.updateLayout();
|
|
524
|
+
}
|
|
525
|
+
function G(e) {
|
|
526
|
+
e.isLayoutDirty = !1;
|
|
527
|
+
}
|
|
528
|
+
function ve(e) {
|
|
529
|
+
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
|
|
530
|
+
}
|
|
531
|
+
function ye(e) {
|
|
532
|
+
let { visualElement: t } = e.options;
|
|
533
|
+
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
534
|
+
}
|
|
535
|
+
function K(e) {
|
|
536
|
+
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
537
|
+
}
|
|
538
|
+
function be(e) {
|
|
539
|
+
e.resolveTargetDelta();
|
|
540
|
+
}
|
|
541
|
+
function xe(e) {
|
|
542
|
+
e.calcProjection();
|
|
543
|
+
}
|
|
544
|
+
function Se(e) {
|
|
545
|
+
e.resetSkewAndRotation();
|
|
546
|
+
}
|
|
547
|
+
function Ce(e) {
|
|
548
|
+
e.removeLeadSnapshot();
|
|
549
|
+
}
|
|
550
|
+
function q(e, t, n) {
|
|
551
|
+
e.translate = c(t.translate, 0, n), e.scale = c(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
552
|
+
}
|
|
553
|
+
function J(e, t, n, r) {
|
|
554
|
+
e.min = c(t.min, n.min, r), e.max = c(t.max, n.max, r);
|
|
555
|
+
}
|
|
556
|
+
function we(e, t, n, r) {
|
|
557
|
+
J(e.x, t.x, n.x, r), J(e.y, t.y, n.y, r);
|
|
558
|
+
}
|
|
559
|
+
function Y(e) {
|
|
560
|
+
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
561
|
+
}
|
|
562
|
+
var Te = {
|
|
563
|
+
duration: .45,
|
|
564
|
+
ease: [
|
|
565
|
+
.4,
|
|
566
|
+
0,
|
|
567
|
+
.1,
|
|
568
|
+
1
|
|
569
|
+
]
|
|
570
|
+
}, X = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Z = X("applewebkit/") && !X("chrome/") ? Math.round : t;
|
|
571
|
+
function Q(e) {
|
|
572
|
+
e.min = Z(e.min), e.max = Z(e.max);
|
|
573
|
+
}
|
|
574
|
+
function Ee(e) {
|
|
575
|
+
Q(e.x), Q(e.y);
|
|
576
|
+
}
|
|
577
|
+
function $(e, t, n) {
|
|
578
|
+
return e === "position" || e === "preserve-aspect" && !k(j(t), j(n), .2);
|
|
579
|
+
}
|
|
580
|
+
function De(e) {
|
|
581
|
+
return e !== e.root && e.scroll?.wasRoot;
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
export { de as createProjectionNode };
|
|
585
|
+
|
|
586
|
+
//# sourceMappingURL=create-projection-node.js.map
|