@nethesis/phone-island 1.1.3 → 1.1.5

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.
Files changed (225) hide show
  1. package/dist/components/CallView/DeviceIcon.js +1 -1
  2. package/dist/components/CallView/DeviceIcon.js.map +1 -1
  3. package/dist/components/CallView/NumberPopover.js +1 -1
  4. package/dist/components/CallView/NumberPopover.js.map +1 -1
  5. package/dist/components/SideView/hooks/useSideViewLogic.js +1 -1
  6. package/dist/components/SideView/hooks/useSideViewLogic.js.map +1 -1
  7. package/dist/components/Socket.js +1 -1
  8. package/dist/components/Socket.js.map +1 -1
  9. package/dist/components/VideoView/index.js +1 -1
  10. package/dist/components/VideoView/index.js.map +1 -1
  11. package/dist/components/WebRTC.js +1 -1
  12. package/dist/components/WebRTC.js.map +1 -1
  13. package/dist/lib/phone/counterpartDevice.js +1 -1
  14. package/dist/lib/phone/counterpartDevice.js.map +1 -1
  15. package/dist/lib/phone/screenShare.js +2 -0
  16. package/dist/lib/phone/screenShare.js.map +1 -0
  17. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  18. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  19. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  20. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  21. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  22. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  23. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.mjs.js.map +1 -1
  24. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js.map +1 -1
  25. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js.map +1 -1
  26. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js.map +1 -1
  27. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js.map +1 -1
  28. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js +1 -1
  29. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.mjs.js.map +1 -1
  30. package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs.js.map +1 -1
  31. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js +1 -1
  32. package/dist/node_modules/framer-motion/dist/es/gestures/hover.mjs.js.map +1 -1
  33. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js +1 -1
  34. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.mjs.js.map +1 -1
  35. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  36. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  37. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js +1 -1
  38. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.mjs.js.map +1 -1
  39. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js +1 -1
  40. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs.js.map +1 -1
  41. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  42. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  43. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.mjs.js.map +1 -1
  44. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +1 -1
  45. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js.map +1 -1
  46. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +1 -1
  47. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js.map +1 -1
  48. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js +1 -1
  49. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.mjs.js.map +1 -1
  50. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  51. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  52. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +1 -1
  53. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js.map +1 -1
  54. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +1 -1
  55. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js.map +1 -1
  56. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  57. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  58. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  59. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  60. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  61. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  62. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js +1 -1
  63. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs.js.map +1 -1
  64. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js +1 -1
  65. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js.map +1 -1
  66. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  67. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  68. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +1 -1
  69. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  70. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js +1 -1
  71. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js.map +1 -1
  72. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js +1 -1
  73. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.mjs.js.map +1 -1
  74. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +1 -1
  75. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  76. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js +1 -1
  77. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs.js.map +1 -1
  78. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js +1 -1
  79. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -1
  80. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js +1 -1
  81. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -1
  82. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js +1 -1
  83. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -1
  84. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js +1 -1
  85. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -1
  86. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  87. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  88. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  89. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  90. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js +1 -1
  91. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs.js.map +1 -1
  92. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  93. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  94. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js +1 -1
  95. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.mjs.js.map +1 -1
  96. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js +1 -1
  97. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs.js.map +1 -1
  98. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js +1 -1
  99. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs.js.map +1 -1
  100. package/dist/node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs.js +2 -0
  101. package/dist/node_modules/motion-dom/dist/es/animation/utils/notify-inspector.mjs.js.map +1 -0
  102. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs.js +2 -0
  103. package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-start-time.mjs.js.map +1 -0
  104. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js +1 -1
  105. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs.js.map +1 -1
  106. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/TransformAnimation.mjs.js +2 -0
  107. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/TransformAnimation.mjs.js.map +1 -0
  108. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs.js +2 -0
  109. package/dist/node_modules/motion-dom/dist/es/animation/waapi/transforms/groups.mjs.js.map +1 -0
  110. package/dist/node_modules/motion-dom/dist/es/events/add-pointer-event.mjs.js +2 -0
  111. package/dist/node_modules/motion-dom/dist/es/events/add-pointer-event.mjs.js.map +1 -0
  112. package/dist/node_modules/motion-dom/dist/es/events/event-info.mjs.js +2 -0
  113. package/dist/node_modules/motion-dom/dist/es/events/event-info.mjs.js.map +1 -0
  114. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  115. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  116. package/dist/node_modules/motion-dom/dist/es/frameloop/frame-data.mjs.js +2 -0
  117. package/dist/node_modules/motion-dom/dist/es/frameloop/frame-data.mjs.js.map +1 -0
  118. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js +1 -1
  119. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.mjs.js.map +1 -1
  120. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  121. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  122. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js +1 -1
  123. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.mjs.js.map +1 -1
  124. package/dist/node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs.js +2 -0
  125. package/dist/node_modules/motion-dom/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -0
  126. package/dist/node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs.js +2 -0
  127. package/dist/node_modules/motion-dom/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -0
  128. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  129. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  130. package/dist/node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs.js +2 -0
  131. package/dist/node_modules/motion-dom/dist/es/gestures/pan/PanSession.mjs.js.map +1 -0
  132. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  133. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  134. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js +1 -1
  135. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs.js.map +1 -1
  136. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js +1 -1
  137. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs.js.map +1 -1
  138. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js +1 -1
  139. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs.js.map +1 -1
  140. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -1
  141. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs.js.map +1 -1
  142. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js +1 -1
  143. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.mjs.js.map +1 -1
  144. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js +1 -1
  145. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js.map +1 -1
  146. package/dist/node_modules/motion-dom/dist/es/projection/node/root.mjs.js +2 -0
  147. package/dist/node_modules/motion-dom/dist/es/projection/node/root.mjs.js.map +1 -0
  148. package/dist/node_modules/motion-dom/dist/es/projection/styles/default-scale-correctors.mjs.js +2 -0
  149. package/dist/node_modules/motion-dom/dist/es/projection/styles/default-scale-correctors.mjs.js.map +1 -0
  150. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js +1 -1
  151. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.mjs.js.map +1 -1
  152. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.mjs.js +1 -1
  153. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.mjs.js.map +1 -1
  154. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs.js.map +1 -1
  155. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js +1 -1
  156. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js.map +1 -1
  157. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js +1 -1
  158. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js.map +1 -1
  159. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -1
  160. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js +1 -1
  161. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs.js.map +1 -1
  162. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js +1 -1
  163. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs.js.map +1 -1
  164. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs.js.map +1 -1
  166. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
  167. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -1
  168. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js +1 -1
  169. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs.js.map +1 -1
  170. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js +1 -1
  171. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js.map +1 -1
  172. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js +1 -1
  173. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs.js.map +1 -1
  174. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js +1 -1
  175. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs.js.map +1 -1
  176. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js +1 -1
  177. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs.js.map +1 -1
  178. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs.js +1 -1
  179. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs.js.map +1 -1
  180. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs.js +1 -1
  181. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs.js.map +1 -1
  182. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js +1 -1
  183. package/dist/node_modules/motion-dom/dist/es/resize/index.mjs.js.map +1 -1
  184. package/dist/node_modules/motion-dom/dist/es/scope/active.mjs.js +2 -0
  185. package/dist/node_modules/motion-dom/dist/es/scope/active.mjs.js.map +1 -0
  186. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js +1 -1
  187. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js.map +1 -1
  188. package/dist/node_modules/motion-dom/dist/es/utils/distance.mjs.js.map +1 -0
  189. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js +1 -1
  190. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.mjs.js.map +1 -1
  191. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js +1 -1
  192. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.mjs.js.map +1 -1
  193. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js +1 -1
  194. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs.js.map +1 -1
  195. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  196. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  197. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +1 -1
  198. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +1 -1
  199. package/dist/node_modules/motion-dom/dist/es/value/utils/as-number.mjs.js +2 -0
  200. package/dist/node_modules/motion-dom/dist/es/value/utils/as-number.mjs.js.map +1 -0
  201. package/dist/node_modules/motion-utils/dist/es/easing/circ.mjs.js.map +1 -1
  202. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js +1 -1
  203. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs.js.map +1 -1
  204. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js +1 -1
  205. package/dist/node_modules/motion-utils/dist/es/errors.mjs.js.map +1 -1
  206. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js +1 -1
  207. package/dist/node_modules/motion-utils/dist/es/subscription-manager.mjs.js.map +1 -1
  208. package/dist/package.json.js +1 -1
  209. package/package.json +3 -3
  210. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js +0 -2
  211. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs.js.map +0 -1
  212. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js +0 -2
  213. package/dist/node_modules/framer-motion/dist/es/events/event-info.mjs.js.map +0 -1
  214. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +0 -2
  215. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +0 -1
  216. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +0 -2
  217. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +0 -1
  218. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +0 -2
  219. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +0 -1
  220. package/dist/node_modules/framer-motion/dist/es/utils/distance.mjs.js.map +0 -1
  221. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs.js +0 -2
  222. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.mjs.js.map +0 -1
  223. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js +0 -2
  224. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.mjs.js.map +0 -1
  225. /package/dist/node_modules/{framer-motion → motion-dom}/dist/es/utils/distance.mjs.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"animation-state.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/animation-state.mjs"],"sourcesContent":["import { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\nimport { calcChildStagger } from '../../animation/utils/calc-child-stagger.mjs';\nimport { getVariantContext } from './get-variant-context.mjs';\nimport { isAnimationControls } from './is-animation-controls.mjs';\nimport { isKeyframesTarget } from './is-keyframes-target.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant } from './resolve-dynamic-variants.mjs';\nimport { shallowCompare } from './shallow-compare.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\nconst numAnimationTypes = variantPriorityOrder.length;\nfunction createAnimateFunction(visualElement) {\n return (animations) => {\n return Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n };\n}\nfunction createAnimationState(visualElement) {\n let animate = createAnimateFunction(visualElement);\n let state = createState();\n let isInitialRender = true;\n /**\n * Track whether the animation state has been reset (e.g. via StrictMode\n * double-invocation or Suspense unmount/remount). On the first\n * animateChanges() call after a reset we need to behave like the initial\n * render for variant-inheritance checks, even though isInitialRender is\n * already false.\n */\n let wasReset = false;\n /**\n * This function will be used to reduce the animation definitions for\n * each active animation type into an object of resolved values for it.\n */\n const buildResolvedTypeValues = (type) => (acc, definition) => {\n const resolved = resolveVariant(visualElement, definition, type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n if (resolved) {\n const { transition, transitionEnd, ...target } = resolved;\n acc = { ...acc, ...target, ...transitionEnd };\n }\n return acc;\n };\n /**\n * This just allows us to inject mocked animation functions\n * @internal\n */\n function setAnimateFunction(makeAnimator) {\n animate = makeAnimator(visualElement);\n }\n /**\n * When we receive new props, we need to:\n * 1. Create a list of protected keys for each type. This is a directory of\n * value keys that are currently being \"handled\" by types of a higher priority\n * so that whenever an animation is played of a given type, these values are\n * protected from being animated.\n * 2. Determine if an animation type needs animating.\n * 3. Determine if any values have been removed from a type and figure out\n * what to animate those to.\n */\n function animateChanges(changedActiveType) {\n const { props } = visualElement;\n const context = getVariantContext(visualElement.parent) || {};\n /**\n * A list of animations that we'll build into as we iterate through the animation\n * types. This will get executed at the end of the function.\n */\n const animations = [];\n /**\n * Keep track of which values have been removed. Then, as we hit lower priority\n * animation types, we can check if they contain removed values and animate to that.\n */\n const removedKeys = new Set();\n /**\n * A dictionary of all encountered keys. This is an object to let us build into and\n * copy it without iteration. Each time we hit an animation type we set its protected\n * keys - the keys its not allowed to animate - to the latest version of this object.\n */\n let encounteredKeys = {};\n /**\n * If a variant has been removed at a given index, and this component is controlling\n * variant animations, we want to ensure lower-priority variants are forced to animate.\n */\n let removedVariantIndex = Infinity;\n /**\n * Iterate through all animation types in reverse priority order. For each, we want to\n * detect which values it's handling and whether or not they've changed (and therefore\n * need to be animated). If any values have been removed, we want to detect those in\n * lower priority props and flag for animation.\n */\n for (let i = 0; i < numAnimationTypes; i++) {\n const type = reversePriorityOrder[i];\n const typeState = state[type];\n const prop = props[type] !== undefined\n ? props[type]\n : context[type];\n const propIsVariant = isVariantLabel(prop);\n /**\n * If this type has *just* changed isActive status, set activeDelta\n * to that status. Otherwise set to null.\n */\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * If this prop is an inherited variant, rather than been set directly on the\n * component itself, we want to make sure we allow the parent to trigger animations.\n *\n * TODO: Can probably change this to a !isControllingVariants check\n */\n let isInherited = prop === context[type] &&\n prop !== props[type] &&\n propIsVariant;\n if (isInherited &&\n (isInitialRender || wasReset) &&\n visualElement.manuallyAnimateOnMount) {\n isInherited = false;\n }\n /**\n * Set all encountered keys so far as the protected keys for this type. This will\n * be any key that has been animated or otherwise handled by active, higher-priortiy types.\n */\n typeState.protectedKeys = { ...encounteredKeys };\n // Check if we can skip analysing this prop early\n if (\n // If it isn't active and hasn't *just* been set as inactive\n (!typeState.isActive && activeDelta === null) ||\n // If we didn't and don't have any defined prop for this animation type\n (!prop && !typeState.prevProp) ||\n // Or if the prop doesn't define an animation\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n continue;\n }\n /**\n * If exit is already active and wasn't just activated, skip\n * re-processing to prevent interrupting running exit animations.\n * Re-resolving exit with a changed custom value can start new\n * value animations that stop the originals, leaving the exit\n * animation promise unresolved and the component stuck in the DOM.\n */\n if (type === \"exit\" && typeState.isActive && activeDelta !== true) {\n if (typeState.prevResolvedValues) {\n encounteredKeys = {\n ...encounteredKeys,\n ...typeState.prevResolvedValues,\n };\n }\n continue;\n }\n /**\n * As we go look through the values defined on this type, if we detect\n * a changed value or a value that was removed in a higher priority, we set\n * this to true and add this prop to the animation list.\n */\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n // If we're making this variant active, we want to always make it active\n (type === changedActiveType &&\n typeState.isActive &&\n !isInherited &&\n propIsVariant) ||\n // If we removed a higher-priority variant (i is in reverse order)\n (i > removedVariantIndex && propIsVariant);\n let handledRemovedValues = false;\n /**\n * As animations can be set as variant lists, variants or target objects, we\n * coerce everything to an array if it isn't one already\n */\n const definitionList = Array.isArray(prop) ? prop : [prop];\n /**\n * Build an object of all the resolved values. We'll use this in the subsequent\n * animateChanges calls to determine whether a value has changed.\n */\n let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});\n if (activeDelta === false)\n resolvedValues = {};\n /**\n * Now we need to loop through all the keys in the prev prop and this prop,\n * and decide:\n * 1. If the value has changed, and needs animating\n * 2. If it has been removed, and needs adding to the removedKeys set\n * 3. If it has been removed in a higher priority type and needs animating\n * 4. If it hasn't been removed in a higher priority but hasn't changed, and\n * needs adding to the type's protectedKeys list.\n */\n const { prevResolvedValues = {} } = typeState;\n const allKeys = {\n ...prevResolvedValues,\n ...resolvedValues,\n };\n const markToAnimate = (key) => {\n shouldAnimateType = true;\n if (removedKeys.has(key)) {\n handledRemovedValues = true;\n removedKeys.delete(key);\n }\n typeState.needsAnimating[key] = true;\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = false;\n };\n for (const key in allKeys) {\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n // If we've already handled this we can just skip ahead\n if (encounteredKeys.hasOwnProperty(key))\n continue;\n /**\n * If the value has changed, we probably want to animate it.\n */\n let valueHasChanged = false;\n if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {\n valueHasChanged =\n !shallowCompare(next, prev) || variantDidChange;\n }\n else {\n valueHasChanged = next !== prev;\n }\n if (valueHasChanged) {\n if (next !== undefined && next !== null) {\n // If next is defined and doesn't equal prev, it needs animating\n markToAnimate(key);\n }\n else {\n // If it's undefined, it's been removed.\n removedKeys.add(key);\n }\n }\n else if (next !== undefined && removedKeys.has(key)) {\n /**\n * If next hasn't changed and it isn't undefined, we want to check if it's\n * been removed by a higher priority\n */\n markToAnimate(key);\n }\n else {\n /**\n * If it hasn't changed, we add it to the list of protected values\n * to ensure it doesn't get animated.\n */\n typeState.protectedKeys[key] = true;\n }\n }\n /**\n * Update the typeState so next time animateChanges is called we can compare the\n * latest prop and resolvedValues to these.\n */\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if ((isInitialRender || wasReset) &&\n visualElement.blockInitialAnimation) {\n shouldAnimateType = false;\n }\n /**\n * If this is an inherited prop we want to skip this animation\n * unless the inherited variants haven't changed on this render.\n */\n const willAnimateViaParent = isInherited && variantDidChange;\n const needsAnimating = !willAnimateViaParent || handledRemovedValues;\n if (shouldAnimateType && needsAnimating) {\n animations.push(...definitionList.map((animation) => {\n const options = { type };\n /**\n * If we're performing the initial animation, but we're not\n * rendering at the same time as the variant-controlling parent,\n * we want to use the parent's transition to calculate the stagger.\n */\n if (typeof animation === \"string\" &&\n (isInitialRender || wasReset) &&\n !willAnimateViaParent &&\n visualElement.manuallyAnimateOnMount &&\n visualElement.parent) {\n const { parent } = visualElement;\n const parentVariant = resolveVariant(parent, animation);\n if (parent.enteringChildren && parentVariant) {\n const { delayChildren } = parentVariant.transition || {};\n options.delay = calcChildStagger(parent.enteringChildren, visualElement, delayChildren);\n }\n }\n return {\n animation: animation,\n options,\n };\n }));\n }\n }\n /**\n * If there are some removed value that haven't been dealt with,\n * we need to create a new animation that falls back either to the value\n * defined in the style prop, or the last read value.\n */\n if (removedKeys.size) {\n const fallbackAnimation = {};\n /**\n * If the initial prop contains a transition we can use that, otherwise\n * allow the animation function to use the visual element's default.\n */\n if (typeof props.initial !== \"boolean\") {\n const initialTransition = resolveVariant(visualElement, Array.isArray(props.initial)\n ? props.initial[0]\n : props.initial);\n if (initialTransition && initialTransition.transition) {\n fallbackAnimation.transition = initialTransition.transition;\n }\n }\n removedKeys.forEach((key) => {\n const fallbackTarget = visualElement.getBaseTarget(key);\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = true;\n // @ts-expect-error - @mattgperry to figure if we should do something here\n fallbackAnimation[key] = fallbackTarget ?? null;\n });\n animations.push({ animation: fallbackAnimation });\n }\n let shouldAnimate = Boolean(animations.length);\n if (isInitialRender &&\n (props.initial === false || props.initial === props.animate) &&\n !visualElement.manuallyAnimateOnMount) {\n shouldAnimate = false;\n }\n isInitialRender = false;\n wasReset = false;\n return shouldAnimate ? animate(animations) : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive) {\n // If the active state hasn't changed, we can safely do nothing here\n if (state[type].isActive === isActive)\n return Promise.resolve();\n // Propagate active change to children\n visualElement.variantChildren?.forEach((child) => child.animationState?.setActive(type, isActive));\n state[type].isActive = isActive;\n const animations = animateChanges(type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n setAnimateFunction,\n getState: () => state,\n reset: () => {\n state = createState();\n wasReset = true;\n },\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createTypeState(isActive = false) {\n return {\n isActive,\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n}\nfunction createState() {\n return {\n animate: createTypeState(true),\n whileInView: createTypeState(),\n whileHover: createTypeState(),\n whileTap: createTypeState(),\n whileDrag: createTypeState(),\n whileFocus: createTypeState(),\n exit: createTypeState(),\n };\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n//# sourceMappingURL=animation-state.mjs.map\n"],"names":["reversePriorityOrder","variantPriorityOrder","reverse","numAnimationTypes","length","createAnimateFunction","visualElement","animations","Promise","all","map","animation","options","animateVisualElement","checkVariantsDidChange","prev","next","Array","isArray","shallowCompare","createTypeState","isActive","protectedKeys","needsAnimating","prevResolvedValues","createState","animate","whileInView","whileHover","whileTap","whileDrag","whileFocus","exit","state","isInitialRender","wasReset","buildResolvedTypeValues","type","acc","definition","resolved","resolveVariant","presenceContext","custom","undefined","transition","transitionEnd","target","animateChanges","changedActiveType","props","context","getVariantContext","parent","removedKeys","Set","encounteredKeys","removedVariantIndex","Infinity","i","typeState","prop","propIsVariant","isVariantLabel","activeDelta","isInherited","manuallyAnimateOnMount","prevProp","isAnimationControls","variantDidChange","shouldAnimateType","handledRemovedValues","definitionList","resolvedValues","reduce","allKeys","markToAnimate","key","has","delete","motionValue","getValue","liveStyle","hasOwnProperty","valueHasChanged","isKeyframesTarget","add","blockInitialAnimation","willAnimateViaParent","push","parentVariant","enteringChildren","delayChildren","delay","calcChildStagger","size","fallbackAnimation","initial","initialTransition","forEach","fallbackTarget","getBaseTarget","shouldAnimate","Boolean","resolve","setActive","variantChildren","child","animationState","setAnimateFunction","makeAnimator","getState","reset"],"mappings":"meAsCA,MAAMA,EAAuB,IAAIC,wBAAsBC,UACjDC,EAAoBF,EAAoBA,qBAACG,OAQ/C,SAASC,EAAsBC,GAC3B,OAAQC,GACGC,QAAQC,IACXF,EAAWG,IAAI,EAAGC,YAAWC,aACzBC,EAAoBA,qBAACP,EAAeK,EAAWC,IAI/D,CA+aM,SAAUE,EAAuBC,EAAWC,GAC9C,MAAoB,iBAATA,EACAA,IAASD,IACTE,MAAMC,QAAQF,KACbG,EAAcA,eAACH,EAAMD,EAIrC,CAUA,SAASK,EAAgBC,GAAW,GAChC,MAAO,CACHA,WACAC,cAAe,CAAE,EACjBC,eAAgB,CAAE,EAClBC,mBAAoB,CAAA,EAE5B,CAEA,SAASC,IACL,MAAO,CACHC,QAASN,GAAgB,GACzBO,YAAaP,IACbQ,WAAYR,IACZS,SAAUT,IACVU,UAAWV,IACXW,WAAYX,IACZY,KAAMZ,IAEd,+DAldM,SAA+Bd,GACjC,IAAIoB,EAAUrB,EAAsBC,GAChC2B,EAAQR,IACRS,GAAkB,EAQlBC,GAAW,EAMf,MAAMC,EACDC,GACD,CACIC,EACAC,KAEA,MAAMC,EAAWC,EAAAA,eACbnC,EACAiC,EACS,SAATF,EACM/B,EAAcoC,iBAAiBC,YAC/BC,GAGV,GAAIJ,EAAU,CACV,MAAMK,WAAEA,EAAUC,cAAEA,KAAkBC,GAAWP,EACjDF,EAAM,IAAKA,KAAQS,KAAWD,EAClC,CAEA,OAAOR,GAuBf,SAASU,EAAeC,GACpB,MAAMC,MAAEA,GAAU5C,EACZ6C,EAAUC,EAAiBA,kBAAC9C,EAAc+C,SAAW,CAAA,EAMrD9C,EAAqC,GAMrC+C,EAAc,IAAIC,IAOxB,IAAIC,EAA0C,CAAA,EAM1CC,EAAsBC,IAQ1B,IAAK,IAAIC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BnD,WAAaqD,EAAkBrD,WAEzD,CAEAS,EAAY6C,QAAStB,IACjB,MAAMuB,EAAiB9F,EAAc+F,cAAcxB,GAE7CG,EAAc1E,EAAc2E,SAASJ,GACvCG,IAAaA,EAAYE,WAAY,GAGzCc,EAAkBnB,GAAOuB,GAAkB,OAG/C7F,EAAWkF,KAAK,CAAE9E,UAAWqF,GACjC,CAEA,IAAIM,EAAgBC,QAAQhG,EAAWH,QAYvC,OATI8B,IACmB,IAAlBgB,EAAM+C,SAAqB/C,EAAM+C,UAAY/C,EAAMxB,SACnDpB,EAAc4D,yBAEfoC,GAAgB,GAGpBpE,GAAkB,EAClBC,GAAW,EACJmE,EAAgB5E,EAAQnB,GAAcC,QAAQgG,SACzD,CAyBA,MAAO,CACHxD,iBACAyD,UAtBJ,SAAmBpE,EAAqBhB,GAEpC,GAAIY,EAAMI,GAAMhB,WAAaA,EAAU,OAAOb,QAAQgG,UAGtDlG,EAAcoG,iBAAiBP,QAASQ,GACpCA,EAAMC,gBAAgBH,UAAUpE,EAAMhB,IAG1CY,EAAMI,GAAMhB,SAAWA,EAEvB,MAAMd,EAAayC,EAAeX,GAElC,IAAK,MAAMwC,KAAO5C,EACdA,EAAM4C,GAA2BvD,cAAgB,GAGrD,OAAOf,CACX,EAKIsG,mBAzXJ,SACIC,GAEApF,EAAUoF,EAAaxG,EAC3B,EAsXIyG,SAAUA,IAAM9E,EAChB+E,MAAOA,KACH/E,EAAQR,IACRU,GAAW,GAGvB"}
1
+ {"version":3,"file":"animation-state.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/animation-state.mjs"],"sourcesContent":["import { animateVisualElement } from '../../animation/interfaces/visual-element.mjs';\nimport { calcChildStagger } from '../../animation/utils/calc-child-stagger.mjs';\nimport { isMotionValue } from '../../value/utils/is-motion-value.mjs';\nimport { isAnimationControls } from './is-animation-controls.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { resolveVariant, getTypeCustom } from './resolve-dynamic-variants.mjs';\nimport { shallowCompare } from './shallow-compare.mjs';\nimport { variantPriorityOrder } from './variant-props.mjs';\n\nconst reversePriorityOrder = [...variantPriorityOrder].reverse();\n/**\n * Diffs the element's animation props (one layer per AnimationType, highest\n * priority wins each value) against the previous call and starts animations\n * for what changed.\n *\n * Uses `any` type for visualElement to avoid circular dependencies. It reads\n * props, parent, presenceContext, variantChildren, enteringChildren,\n * manuallyAnimateOnMount, blockInitialAnimation, getValue(),\n * getBaseTargetFromProps(), baseTarget and initialValues.\n */\nfunction createAnimationState(visualElement) {\n let animate = (animations) => Promise.all(animations.map(({ animation, options }) => animateVisualElement(visualElement, animation, options)));\n let state = createState();\n let isInitialRender = true;\n /**\n * After a reset (StrictMode, Suspense, AnimatePresence re-entry) the next\n * animateChanges() mounts again, but initial={false} no longer applies.\n */\n let wasReset = false;\n function animateChanges(changedActiveType) {\n const { props, parent, manuallyAnimateOnMount } = visualElement;\n const isMounting = isInitialRender || wasReset;\n const animations = [];\n /**\n * Values removed from a type. A lower-priority type that defines\n * them animates them back, otherwise they fall back to a base target.\n */\n const removedKeys = new Set();\n /**\n * Values claimed by active, higher-priority types.\n */\n let encounteredKeys = {};\n /**\n * Once a type has been deactivated, lower-priority variant labels\n * re-animate so variant children animate back too.\n */\n let removedVariantIndex = Infinity;\n /**\n * Variant labels are inherited from the closest variant-controlling\n * ancestor, unless an element on the way has inherit={false}.\n */\n let source = visualElement;\n do\n source = source.props.inherit !== false && source.parent;\n while (source && !source.isControllingVariants);\n reversePriorityOrder.forEach((type, i) => {\n const typeState = state[type];\n const ownProp = props[type];\n const inheritedProp = source && source.props[type];\n const prop = ownProp !== undefined\n ? ownProp\n : isVariantLabel(inheritedProp) || inheritedProp === false\n ? inheritedProp\n : undefined;\n const propIsVariant = isVariantLabel(prop);\n const activeDelta = type === changedActiveType ? typeState.isActive : null;\n if (activeDelta === false)\n removedVariantIndex = i;\n /**\n * Inherited labels are animated by the parent through\n * variantChildren, unless this element mounted after its parent.\n */\n const isInherited = propIsVariant &&\n ownProp === undefined &&\n !(isMounting && manuallyAnimateOnMount);\n typeState.protectedKeys = { ...encounteredKeys };\n if ((!typeState.isActive && activeDelta === null) ||\n (!prop && !typeState.prevProp) ||\n isAnimationControls(prop) ||\n typeof prop === \"boolean\") {\n return;\n }\n /**\n * Don't re-resolve a running exit: a changed custom would start\n * new value animations that stop the originals, leaving the exit\n * promise unresolved and the element stuck in the DOM.\n */\n if (type === \"exit\" && typeState.isActive && activeDelta !== true) {\n encounteredKeys = {\n ...encounteredKeys,\n ...typeState.prevResolvedValues,\n };\n return;\n }\n const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);\n let shouldAnimateType = variantDidChange ||\n (propIsVariant &&\n ((activeDelta && !isInherited) || i > removedVariantIndex));\n let handledRemovedValues = false;\n const definitionList = Array.isArray(prop) ? prop : [prop];\n let resolvedValues = {};\n if (activeDelta !== false) {\n for (const definition of definitionList) {\n const { transition, transitionEnd, ...target } = resolveVariant(visualElement, definition, getTypeCustom(visualElement, type)) || {};\n resolvedValues = {\n ...resolvedValues,\n ...target,\n ...transitionEnd,\n };\n }\n }\n const { prevResolvedValues } = typeState;\n for (const key in { ...prevResolvedValues, ...resolvedValues }) {\n if (key in encounteredKeys)\n continue;\n const next = resolvedValues[key];\n const prev = prevResolvedValues[key];\n /**\n * Keyframes compare by value, but replay whenever the\n * variant label changed.\n */\n const valueHasChanged = Array.isArray(next) && Array.isArray(prev)\n ? !shallowCompare(next, prev) || variantDidChange\n : next !== prev;\n if (valueHasChanged && (next === undefined || next === null)) {\n removedKeys.add(key);\n }\n else if (valueHasChanged ||\n (next !== undefined && removedKeys.has(key))) {\n shouldAnimateType = true;\n if (removedKeys.delete(key))\n handledRemovedValues = true;\n typeState.needsAnimating[key] = true;\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = false;\n }\n else {\n typeState.protectedKeys[key] = true;\n }\n }\n typeState.prevProp = prop;\n typeState.prevResolvedValues = resolvedValues;\n if (typeState.isActive) {\n encounteredKeys = { ...encounteredKeys, ...resolvedValues };\n }\n if (shouldAnimateType &&\n (!(isInherited && variantDidChange) || handledRemovedValues)) {\n for (const animation of definitionList) {\n const options = { type };\n /**\n * Elements that mount into an already-mounted parent\n * animate themselves, staggered by the parent variant's\n * delayChildren.\n */\n if (typeof animation === \"string\" &&\n isMounting &&\n manuallyAnimateOnMount &&\n parent?.enteringChildren) {\n const delayChildren = resolveVariant(parent, animation)\n ?.transition?.delayChildren;\n options.delay = calcChildStagger(parent.enteringChildren, visualElement, delayChildren);\n }\n animations.push({ animation, options });\n }\n }\n });\n /**\n * Removed values that no lower-priority type defines animate back to\n * initial, then style, then the value as first read. If initial no\n * longer defines a value it once did, it stays where it is.\n */\n if (removedKeys.size) {\n const { initial } = props;\n const fallbackAnimation = {};\n const resolvedInitial = typeof initial !== \"boolean\" &&\n resolveVariant(visualElement, Array.isArray(initial) ? initial[0] : initial, visualElement.presenceContext?.custom);\n if (resolvedInitial && resolvedInitial.transition) {\n fallbackAnimation.transition = resolvedInitial.transition;\n }\n removedKeys.forEach((key) => {\n const motionValue = visualElement.getValue(key);\n if (motionValue)\n motionValue.liveStyle = true;\n const fromInitial = resolvedInitial && !Array.isArray(initial)\n ? resolvedInitial[key]\n : undefined;\n const fromProps = visualElement.getBaseTargetFromProps(props, key);\n fallbackAnimation[key] =\n (fromInitial !== undefined\n ? fromInitial\n : fromProps !== undefined && !isMotionValue(fromProps)\n ? fromProps\n : visualElement.initialValues[key] === undefined\n ? visualElement.baseTarget[key]\n : undefined) ?? null;\n /**\n * If it stays where it is, that's now its base. Otherwise a\n * later removal (like a gesture ending) would also stay,\n * leaving the value stuck. Stop first so accelerated\n * animations sync the value they reached. In practice initial\n * only changes like this with Fast Refresh, so this is\n * dev-only (#3787).\n */\n if (process.env.NODE_ENV !== \"production\" &&\n fallbackAnimation[key] === null &&\n visualElement.initialValues[key] !== undefined) {\n delete visualElement.initialValues[key];\n motionValue?.stop();\n visualElement.baseTarget[key] = motionValue?.get();\n }\n });\n animations.push({ animation: fallbackAnimation });\n }\n const blockAnimation = (isMounting && visualElement.blockInitialAnimation) ||\n (isInitialRender &&\n !manuallyAnimateOnMount &&\n (props.initial === false || props.initial === props.animate));\n isInitialRender = wasReset = false;\n return !blockAnimation && animations.length\n ? animate(animations)\n : Promise.resolve();\n }\n /**\n * Change whether a certain animation type is active.\n */\n function setActive(type, isActive) {\n if (state[type].isActive === isActive)\n return Promise.resolve();\n visualElement.variantChildren?.forEach((child) => child.animationState?.setActive(type, isActive));\n state[type].isActive = isActive;\n const animations = animateChanges(type);\n for (const key in state) {\n state[key].protectedKeys = {};\n }\n return animations;\n }\n return {\n animateChanges,\n setActive,\n /**\n * Allows tests to inject a mocked animate function.\n * @internal\n */\n setAnimateFunction: (makeAnimator) => {\n animate = makeAnimator(visualElement);\n },\n getState: () => state,\n reset: () => {\n state = createState();\n wasReset = true;\n },\n };\n}\nfunction checkVariantsDidChange(prev, next) {\n if (typeof next === \"string\") {\n return next !== prev;\n }\n else if (Array.isArray(next)) {\n return !shallowCompare(next, prev);\n }\n return false;\n}\nfunction createState() {\n const state = {};\n for (const type of variantPriorityOrder) {\n state[type] = {\n isActive: type === \"animate\",\n protectedKeys: {},\n needsAnimating: {},\n prevResolvedValues: {},\n };\n }\n return state;\n}\n\nexport { checkVariantsDidChange, createAnimationState };\n//# sourceMappingURL=animation-state.mjs.map\n"],"names":["reversePriorityOrder","variantPriorityOrder","reverse","checkVariantsDidChange","prev","next","Array","isArray","shallowCompare","createState","state","type","isActive","protectedKeys","needsAnimating","prevResolvedValues","visualElement","animate","animations","Promise","all","map","animation","options","animateVisualElement","isInitialRender","wasReset","animateChanges","changedActiveType","props","parent","manuallyAnimateOnMount","isMounting","removedKeys","Set","encounteredKeys","removedVariantIndex","Infinity","source","inherit","isControllingVariants","forEach","i","typeState","ownProp","inheritedProp","prop","undefined","isVariantLabel","propIsVariant","activeDelta","isInherited","prevProp","isAnimationControls","variantDidChange","shouldAnimateType","handledRemovedValues","definitionList","resolvedValues","definition","transition","transitionEnd","target","resolveVariant","getTypeCustom","key","valueHasChanged","add","has","delete","motionValue","getValue","liveStyle","enteringChildren","delayChildren","delay","calcChildStagger","push","size","initial","fallbackAnimation","resolvedInitial","presenceContext","custom","fromInitial","fromProps","getBaseTargetFromProps","isMotionValue","initialValues","baseTarget","process","env","NODE_ENV","stop","get","blockAnimation","blockInitialAnimation","length","resolve","setActive","variantChildren","child","animationState","setAnimateFunction","makeAnimator","getState","reset"],"mappings":"qcA6CA,MAAMA,EAAuB,IAAIC,wBAAsBC,UAqUjD,SAAUC,EAAuBC,EAAWC,GAC9C,MAAoB,iBAATA,EACAA,IAASD,IACTE,MAAMC,QAAQF,KACbG,EAAcA,eAACH,EAAMD,EAIrC,CAUA,SAASK,IACL,MAAMC,EAAQ,CAAA,EAEd,IAAK,MAAMC,KAAQV,uBACfS,EAAMC,GAAQ,CACVC,SAAmB,YAATD,EACVE,cAAe,CAAE,EACjBC,eAAgB,CAAE,EAClBC,mBAAoB,CAAA,GAI5B,OAAOL,CACX,+DAxVM,SAA+BM,GACjC,IAAIC,EAA4BC,GAC5BC,QAAQC,IACJF,EAAWG,IAAI,EAAGC,YAAWC,aACzBC,EAAoBA,qBAACR,EAAeM,EAAWC,KAGvDb,EAAQD,IACRgB,GAAkB,EAMlBC,GAAW,EAEf,SAASC,EAAeC,GACpB,MAAMC,MAAEA,EAAKC,OAAEA,EAAMC,uBAAEA,GAA2Bf,EAC5CgB,EAAaP,GAAmBC,EAChCR,EAAqC,GAMrCe,EAAc,IAAIC,IAKxB,IAAIC,EAA0C,CAAA,EAM1CC,EAAsBC,IAMtBC,EAAStB,EACb,GAAGsB,GAAkC,IAAzBA,EAAOT,MAAMU,SAAqBD,EAAOR,aAC9CQ,IAAWA,EAAOE,uBA8JzB,GA5JAxC,EAAqByC,QAAQ,CAAC9B,EAAM+B,KAChC,MAAMC,EAAYjC,EAAMC,GAClBiC,EAAUf,EAAMlB,GAChBkC,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AcyE,WAAWxB,QACzBlB,EAHAsC,IAGc,KAWK,eAAzBK,QAAQC,IAAIC,UACe,OAA3BZ,EAAkBf,SACmBlB,IAArC/B,EAAcwE,cAAcvB,YAErBjD,EAAcwE,cAAcvB,GACnCK,GAAauB,OACb7E,EAAcyE,WAAWxB,GAAOK,GAAawB,SAIrD5E,EAAW2D,KAAK,CAAEvD,UAAW0D,GACjC,CAEA,MAAMe,EACD/D,GAAchB,EAAcgF,uBAC5BvE,IACIM,KACkB,IAAlBF,EAAMkD,SAAqBlD,EAAMkD,UAAYlD,EAAMZ,SAI5D,OAFAQ,EAAkBC,GAAW,GAErBqE,GAAkB7E,EAAW+E,OAC/BhF,EAAQC,GACRC,QAAQ+E,SAClB,CAuBA,MAAO,CACHvE,iBACAwE,UApBJ,SAAmBxF,EAAqBC,GACpC,GAAIF,EAAMC,GAAMC,WAAaA,EAAU,OAAOO,QAAQ+E,UAEtDlF,EAAcoF,iBAAiB3D,QAAS4D,GACpCA,EAAMC,gBAAgBH,UAAUxF,EAAMC,IAG1CF,EAAMC,GAAMC,SAAWA,EAEvB,MAAMM,EAAaS,EAAehB,GAElC,IAAK,MAAMsD,KAAOvD,EACdA,EAAMuD,GAAsBpD,cAAgB,GAGhD,OAAOK,CACX,EASIqF,mBAAqBC,IACjBvF,EAAUuF,EAAaxF,IAE3ByF,SAAUA,IAAM/F,EAChBgG,MAAOA,KACHhG,EAAQD,IACRiB,GAAW,GAGvB"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./is-animation-controls.mjs.js"),i=require("./is-variant-label.mjs.js"),e=require("./variant-props.mjs.js");function s(s){return r.isAnimationControls(s.animate)||e.variantProps.some(r=>i.isVariantLabel(s[r]))}exports.isControllingVariants=s,exports.isVariantNode=function(r){return Boolean(s(r)||r.variants)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./is-animation-controls.mjs.js"),i=require("./is-variant-label.mjs.js"),t=require("./variant-props.mjs.js");function e(e){if(r.isAnimationControls(e.animate))return!0;for(let r=0;r<t.variantProps.length;r++)if(i.isVariantLabel(e[t.variantProps[r]]))return!0;return!1}exports.isControllingVariants=e,exports.isVariantNode=function(r){return Boolean(e(r)||r.variants)};
2
2
  //# sourceMappingURL=is-controlling-variants.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-controlling-variants.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs"],"sourcesContent":["import { isAnimationControls } from './is-animation-controls.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { variantProps } from './variant-props.mjs';\n\nfunction isControllingVariants(props) {\n return (isAnimationControls(props.animate) ||\n variantProps.some((name) => isVariantLabel(props[name])));\n}\nfunction isVariantNode(props) {\n return Boolean(isControllingVariants(props) || props.variants);\n}\n\nexport { isControllingVariants, isVariantNode };\n//# sourceMappingURL=is-controlling-variants.mjs.map\n"],"names":["isControllingVariants","props","isAnimationControls","animate","variantProps","some","name","isVariantLabel","Boolean","variants"],"mappings":"+LAKM,SAAUA,EAAsBC,GAClC,OACIC,sBAAoBD,EAAME,UAC1BC,EAAAA,aAAaC,KAAMC,GACfC,iBAAeN,EAAMK,IAGjC,uDAEM,SAAwBL,GAC1B,OAAOO,QAAQR,EAAsBC,IAAUA,EAAMQ,SACzD"}
1
+ {"version":3,"file":"is-controlling-variants.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs"],"sourcesContent":["import { isAnimationControls } from './is-animation-controls.mjs';\nimport { isVariantLabel } from './is-variant-label.mjs';\nimport { variantProps } from './variant-props.mjs';\n\nfunction isControllingVariants(props) {\n if (isAnimationControls(props.animate))\n return true;\n for (let i = 0; i < variantProps.length; i++) {\n if (isVariantLabel(props[variantProps[i]])) {\n return true;\n }\n }\n return false;\n}\nfunction isVariantNode(props) {\n return Boolean(isControllingVariants(props) || props.variants);\n}\n\nexport { isControllingVariants, isVariantNode };\n//# sourceMappingURL=is-controlling-variants.mjs.map\n"],"names":["isControllingVariants","props","isAnimationControls","animate","i","variantProps","length","isVariantLabel","Boolean","variants"],"mappings":"+LAKM,SAAUA,EAAsBC,GAClC,GAAIC,EAAmBA,oBAACD,EAAME,SAAU,OAAO,EAE/C,IAAK,IAAIC,EAAI,EAAGA,EAAIC,EAAAA,aAAaC,OAAQF,IACrC,GAAIG,EAAcA,eAACN,EAAMI,EAAYA,aAACD,KAClC,OAAO,EAIf,OAAO,CACX,uDAEM,SAAwBH,GAC1B,OAAOO,QAAQR,EAAsBC,IAAUA,EAAMQ,SACzD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],t=(()=>new Set([...e,"pathRotation"]))();exports.transformPropOrder=e,exports.transformProps=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],t=(()=>new Set([...e,"pathRotation"]))();exports.transformPropOrder=e,exports.transformProps=t;
2
2
  //# sourceMappingURL=keys-transform.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"keys-transform.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs"],"sourcesContent":["/**\n * Generate a list of every possible transform key.\n */\nconst transformPropOrder = [\n \"transformPerspective\",\n \"x\",\n \"y\",\n \"z\",\n \"translateX\",\n \"translateY\",\n \"translateZ\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"rotate\",\n \"rotateX\",\n \"rotateY\",\n \"rotateZ\",\n \"skew\",\n \"skewX\",\n \"skewY\",\n];\n/**\n * A quick lookup for transform props.\n *\n * `pathRotation` is a transform for routing purposes (skipped from raw\n * style application, wired to the transform composite, flags transform\n * dirty) but is intentionally NOT in `transformPropOrder` — it is\n * composed onto `rotate` at the build sites, not serialized in its own\n * slot, and must stay out of the order-array consumers (parse-transform,\n * unit-conversion, keys-position).\n */\nconst transformProps = /*@__PURE__*/ (() => new Set([...transformPropOrder, \"pathRotation\"]))();\n\nexport { transformPropOrder, transformProps };\n//# sourceMappingURL=keys-transform.mjs.map\n"],"names":["transformPropOrder","transformProps","Set"],"mappings":"oEAGO,MAAMA,EAAqB,CAC9B,uBACA,IACA,IACA,IACA,aACA,aACA,aACA,QACA,SACA,SACA,SACA,UACA,UACA,UACA,OACA,QACA,SAaSC,EAA+B,KACxC,IAAIC,IAAI,IAAIF,EAAoB,iBADQ"}
1
+ {"version":3,"file":"keys-transform.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs"],"sourcesContent":["/**\n * Generate a list of every possible transform key.\n */\nconst transformPropOrder = [\n \"transformPerspective\",\n \"x\",\n \"y\",\n \"z\",\n \"translateX\",\n \"translateY\",\n \"translateZ\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"scaleZ\",\n \"rotate\",\n \"rotateX\",\n \"rotateY\",\n \"rotateZ\",\n \"skew\",\n \"skewX\",\n \"skewY\",\n];\n/**\n * A quick lookup for transform props.\n *\n * `pathRotation` is a transform for routing purposes (skipped from raw\n * style application, wired to the transform composite, flags transform\n * dirty) but is intentionally NOT in `transformPropOrder` — it is\n * composed onto `rotate` at the build sites, not serialized in its own\n * slot, and must stay out of the order-array consumers (parse-transform,\n * unit-conversion, keys-position).\n */\nconst transformProps = /*@__PURE__*/ (() => new Set([...transformPropOrder, \"pathRotation\"]))();\n\nexport { transformPropOrder, transformProps };\n//# sourceMappingURL=keys-transform.mjs.map\n"],"names":["transformPropOrder","transformProps","Set"],"mappings":"oEAGO,MAAMA,EAAqB,CAC9B,uBACA,IACA,IACA,IACA,aACA,aACA,aACA,QACA,SACA,SACA,SACA,SACA,UACA,UACA,UACA,OACA,QACA,SAaSC,EAA+B,KACxC,IAAIC,IAAI,IAAIF,EAAoB,iBADQ"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./resolve-variants.mjs.js");exports.resolveVariant=function(r,s,o){const t=r.getProps();return e.resolveVariantFromProps(t,s,void 0!==o?o:t.custom,r)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./resolve-variants.mjs.js");exports.getTypeCustom=(e,r)=>"exit"===r?e.presenceContext?.custom:void 0,exports.resolveVariant=function(r,t,s){return e.resolveVariantFromProps(r.getProps(),t,s,r)};
2
2
  //# sourceMappingURL=resolve-dynamic-variants.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-dynamic-variants.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs"],"sourcesContent":["import { resolveVariantFromProps } from './resolve-variants.mjs';\n\nfunction resolveVariant(visualElement, definition, custom) {\n const props = visualElement.getProps();\n return resolveVariantFromProps(props, definition, custom !== undefined ? custom : props.custom, visualElement);\n}\n\nexport { resolveVariant };\n//# sourceMappingURL=resolve-dynamic-variants.mjs.map\n"],"names":["resolveVariant","visualElement","definition","custom","props","getProps","resolveVariantFromProps","undefined"],"mappings":"sIAqBgBA,SACZC,EACAC,EACAC,GAEA,MAAMC,EAAQH,EAAcI,WAC5B,OAAOC,EAAuBA,wBAC1BF,EACAF,OACWK,IAAXJ,EAAuBA,EAASC,EAAMD,OACtCF,EAER"}
1
+ {"version":3,"file":"resolve-dynamic-variants.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs"],"sourcesContent":["import { resolveVariantFromProps } from './resolve-variants.mjs';\n\nfunction resolveVariant(visualElement, definition, custom) {\n return resolveVariantFromProps(visualElement.getProps(), definition, custom, visualElement);\n}\n/**\n * Exit variants resolve with AnimatePresence's custom, every other type\n * with the element's own.\n */\nconst getTypeCustom = (visualElement, type) => type === \"exit\" ? visualElement.presenceContext?.custom : undefined;\n\nexport { getTypeCustom, resolveVariant };\n//# sourceMappingURL=resolve-dynamic-variants.mjs.map\n"],"names":["getTypeCustom","visualElement","type","presenceContext","custom","undefined","resolveVariant","definition","resolveVariantFromProps","getProps"],"mappings":"qIAuC6BA,CAACC,EAAoBC,IACrC,SAATA,EAAkBD,EAAcE,iBAAiBC,YAASC,yBAlB9CC,SACZL,EACAM,EACAH,GAEA,OAAOI,EAAAA,wBACHP,EAAcQ,WACdF,EACAH,EACAH,EAER"}
@@ -1,2 +1,2 @@
1
- "use strict";function t(t){const o=[{},{}];return t?.values.forEach((t,e)=>{o[0][e]=t.get(),o[1][e]=t.getVelocity()}),o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveVariantFromProps=function(o,e,n,r){if("function"==typeof e){const[s,i]=t(r);e=e(void 0!==n?n:o.custom,s,i)}if("string"==typeof e&&(e=o.variants&&o.variants[e]),"function"==typeof e){const[s,i]=t(r);e=e(void 0!==n?n:o.custom,s,i)}return e};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveVariantFromProps=function(t,e,o,r){const n=e=>"function"==typeof e?e(void 0!==o?o:t.custom,...function(t){const e=[{},{}];return t?.values.forEach((t,o)=>{e[0][o]=t.get(),e[1][o]=t.getVelocity()}),e}(r)):e;return"string"==typeof(e=n(e))&&(e=t.variants&&t.variants[e]),n(e)};
2
2
  //# sourceMappingURL=resolve-variants.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-variants.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs"],"sourcesContent":["function getValueState(visualElement) {\n const state = [{}, {}];\n visualElement?.values.forEach((value, key) => {\n state[0][key] = value.get();\n state[1][key] = value.getVelocity();\n });\n return state;\n}\nfunction resolveVariantFromProps(props, definition, custom, visualElement) {\n /**\n * If the variant definition is a function, resolve.\n */\n if (typeof definition === \"function\") {\n const [current, velocity] = getValueState(visualElement);\n definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n }\n /**\n * If the variant definition is a variant label, or\n * the function returned a variant label, resolve.\n */\n if (typeof definition === \"string\") {\n definition = props.variants && props.variants[definition];\n }\n /**\n * At this point we've resolved both functions and variant labels,\n * but the resolved variant label might itself have been a function.\n * If so, resolve. This can only have returned a valid target object.\n */\n if (typeof definition === \"function\") {\n const [current, velocity] = getValueState(visualElement);\n definition = definition(custom !== undefined ? custom : props.custom, current, velocity);\n }\n return definition;\n}\n\nexport { resolveVariantFromProps };\n//# sourceMappingURL=resolve-variants.mjs.map\n"],"names":["getValueState","visualElement","state","values","forEach","value","key","get","getVelocity","props","definition","custom","current","velocity","undefined","variants"],"mappings":"aAQA,SAASA,EAAcC,GACnB,MAAMC,EAA0C,CAAC,GAAI,CAAA,GAOrD,OALAD,GAAeE,OAAOC,QAAQ,CAACC,EAAYC,KACvCJ,EAAM,GAAGI,GAAOD,EAAME,MACtBL,EAAM,GAAGI,GAAOD,EAAMG,gBAGnBN,CACX,wFAcM,SACFO,EACAC,EACAC,EACAV,GAKA,GAA0B,mBAAfS,EAA2B,CAClC,MAAOE,EAASC,GAAYb,EAAcC,GAC1CS,EAAaA,OACEI,IAAXH,EAAuBA,EAASF,EAAME,OACtCC,EACAC,EAER,CAeA,GAT0B,iBAAfH,IACPA,EAAaD,EAAMM,UAAYN,EAAMM,SAASL,IAQxB,mBAAfA,EAA2B,CAClC,MAAOE,EAASC,GAAYb,EAAcC,GAC1CS,EAAaA,OACEI,IAAXH,EAAuBA,EAASF,EAAME,OACtCC,EACAC,EAER,CAEA,OAAOH,CACX"}
1
+ {"version":3,"file":"resolve-variants.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs"],"sourcesContent":["function getValueState(visualElement) {\n const state = [{}, {}];\n visualElement?.values.forEach((value, key) => {\n state[0][key] = value.get();\n state[1][key] = value.getVelocity();\n });\n return state;\n}\nfunction resolveVariantFromProps(props, definition, custom, visualElement) {\n const resolveFunction = (def) => typeof def === \"function\"\n ? def(custom !== undefined ? custom : props.custom, ...getValueState(visualElement))\n : def;\n /**\n * Resolve a function, then a variant label (which the function may have\n * returned), then a function again as the label may point to one. The\n * final function can only return a target object.\n */\n definition = resolveFunction(definition);\n if (typeof definition === \"string\") {\n definition = props.variants && props.variants[definition];\n }\n return resolveFunction(definition);\n}\n\nexport { resolveVariantFromProps };\n//# sourceMappingURL=resolve-variants.mjs.map\n"],"names":["props","definition","custom","visualElement","resolveFunction","def","undefined","state","values","forEach","value","key","get","getVelocity","getValueState","variants"],"mappings":"oGA+BM,SACFA,EACAC,EACAC,EACAC,GAEA,MAAMC,EAAmBC,GACN,mBAARA,EACDA,OACeC,IAAXJ,EAAuBA,EAASF,EAAME,UAhCxD,SAAuBC,GACnB,MAAMI,EAA0C,CAAC,GAAI,CAAA,GAOrD,OALAJ,GAAeK,OAAOC,QAAQ,CAACC,EAAYC,KACvCJ,EAAM,GAAGI,GAAOD,EAAME,MACtBL,EAAM,GAAGI,GAAOD,EAAMG,gBAGnBN,CACX,CAwBqBO,CAAcX,IAErBE,EAaV,MAJ0B,iBAF1BJ,EAAaG,EAAgBH,MAGzBA,EAAaD,EAAMe,UAAYf,EAAMe,SAASd,IAG3CG,EAAgBH,EAC3B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...e];exports.variantPriorityOrder=e,exports.variantProps=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial"].concat(e);exports.variantPriorityOrder=e,exports.variantProps=i;
2
2
  //# sourceMappingURL=variant-props.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"variant-props.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/variant-props.mjs"],"sourcesContent":["const variantPriorityOrder = [\n \"animate\",\n \"whileInView\",\n \"whileFocus\",\n \"whileHover\",\n \"whileTap\",\n \"whileDrag\",\n \"exit\",\n];\nconst variantProps = [\"initial\", ...variantPriorityOrder];\n\nexport { variantPriorityOrder, variantProps };\n//# sourceMappingURL=variant-props.mjs.map\n"],"names":["variantPriorityOrder","variantProps"],"mappings":"oEAEO,MAAMA,EAAwC,CACjD,UACA,cACA,aACA,aACA,WACA,YACA,QAGSC,EAAe,CAAC,aAAcD"}
1
+ {"version":3,"file":"variant-props.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/render/utils/variant-props.mjs"],"sourcesContent":["const variantPriorityOrder = [\n \"animate\",\n \"whileInView\",\n \"whileFocus\",\n \"whileHover\",\n \"whileTap\",\n \"whileDrag\",\n \"exit\",\n];\nconst variantProps = /* @__PURE__ */ [\"initial\"].concat(variantPriorityOrder);\n\nexport { variantPriorityOrder, variantProps };\n//# sourceMappingURL=variant-props.mjs.map\n"],"names":["variantPriorityOrder","variantProps","concat"],"mappings":"oEAEO,MAAMA,EAAwC,CACjD,UACA,cACA,aACA,aACA,WACA,YACA,QAGSC,EAA+B,CAAC,WAAWC,OACpDF"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./handle-element.mjs.js"),r=require("./handle-window.mjs.js");exports.resize=function(n,s){return"function"==typeof n?r.resizeWindow(n):e.resizeElement(n,s)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../scope/active.mjs.js"),r=require("./handle-element.mjs.js"),s=require("./handle-window.mjs.js");exports.resize=function(i,t){return e.addToScope("function"==typeof i?s.resizeWindow(i):r.resizeElement(i,t))};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/resize/index.mjs"],"sourcesContent":["import { resizeElement } from './handle-element.mjs';\nimport { resizeWindow } from './handle-window.mjs';\n\nfunction resize(a, b) {\n return typeof a === \"function\" ? resizeWindow(a) : resizeElement(a, b);\n}\n\nexport { resize };\n//# sourceMappingURL=index.mjs.map\n"],"names":["a","b","resizeWindow","resizeElement"],"mappings":"gKAUM,SACFA,EACAC,GAEA,MAAoB,mBAAND,EAAmBE,EAAYA,aAACF,GAAKG,EAAaA,cAACH,EAAGC,EACxE"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/resize/index.mjs"],"sourcesContent":["import { addToScope } from '../scope/active.mjs';\nimport { resizeElement } from './handle-element.mjs';\nimport { resizeWindow } from './handle-window.mjs';\n\nfunction resize(a, b) {\n return addToScope(typeof a === \"function\" ? resizeWindow(a) : resizeElement(a, b));\n}\n\nexport { resize };\n//# sourceMappingURL=index.mjs.map\n"],"names":["a","b","addToScope","resizeWindow","resizeElement"],"mappings":"oMAWM,SACFA,EACAC,GAEA,OAAOC,aACU,mBAANF,EAAmBG,EAAYA,aAACH,GAAKI,gBAAcJ,EAAGC,GAErE"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={};exports.activeScope=e,exports.addToScope=function(r){return e.current?.add(r),r},exports.bindToScope=r=>e.current?e.current.bind(r):r;
2
+ //# sourceMappingURL=active.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/scope/active.mjs"],"sourcesContent":["const activeScope = {};\n/**\n * Register `cleanup` with the active scope, if there is one, so stopping\n * the scope also runs it.\n */\nfunction addToScope(cleanup) {\n activeScope.current?.add(cleanup);\n return cleanup;\n}\n/**\n * Collect the animation a builder like `animateLayout()` or\n * `animateView()` resolves with. If the scope stops first, the animation\n * is stopped as soon as it starts.\n */\nfunction addBuilderToScope(builder) {\n const scope = activeScope.current;\n if (!scope)\n return;\n let isStopped = false;\n let stop;\n const remove = scope.add(() => {\n isStopped = true;\n stop?.();\n });\n builder.then((animation) => {\n if (!animation)\n return;\n stop = () => animation.stop();\n isStopped ? stop() : animation.finished.then(remove);\n }, remove);\n}\n/**\n * Bind `callback` to the active scope, so anything it starts later (for\n * instance an animation in an `inView()` callback) is collected too.\n */\nconst bindToScope = (callback) => activeScope.current ? activeScope.current.bind(callback) : callback;\n\nexport { activeScope, addBuilderToScope, addToScope, bindToScope };\n//# sourceMappingURL=active.mjs.map\n"],"names":["activeScope","cleanup","current","add","callback","bind"],"mappings":"oEAeO,MAAMA,EAAyC,CAAA,2CAMhD,SAA6CC,GAE/C,OADAD,EAAYE,SAASC,IAAIF,GAClBA,CACX,sBA+B+DG,GAC3DJ,EAAYE,QAAUF,EAAYE,QAAQG,KAAKD,GAAYA"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../frameloop/sync-time.mjs.js"),r=require("../frameloop/frame.mjs.js");exports.delay=function(t,s){const a=e.time.now(),m=({timestamp:e})=>{const o=e-a;o>=s&&(r.cancelFrame(m),t(o-s))};return r.frame.setup(m,!0),()=>r.cancelFrame(m)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../frameloop/sync-time.mjs.js"),r=require("../scope/active.mjs.js"),o=require("../frameloop/frame.mjs.js");exports.delay=function(s,t){const c=e.time.now();s=r.bindToScope(s);const a=({timestamp:e})=>{const r=e-c;r>=t&&(o.cancelFrame(a),s(r-t))};return o.frame.setup(a,!0),r.addToScope(()=>o.cancelFrame(a))};
2
2
  //# sourceMappingURL=delay.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delay.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/delay.mjs"],"sourcesContent":["import { time } from '../frameloop/sync-time.mjs';\nimport { secondsToMilliseconds } from 'motion-utils';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\n/**\n * Timeout defined in ms\n */\nfunction delay(callback, timeout) {\n const start = time.now();\n const checkElapsed = ({ timestamp }) => {\n const elapsed = timestamp - start;\n if (elapsed >= timeout) {\n cancelFrame(checkElapsed);\n callback(elapsed - timeout);\n }\n };\n frame.setup(checkElapsed, true);\n return () => cancelFrame(checkElapsed);\n}\nfunction delayInSeconds(callback, timeout) {\n return delay(callback, secondsToMilliseconds(timeout));\n}\n\nexport { delay, delayInSeconds };\n//# sourceMappingURL=delay.mjs.map\n"],"names":["callback","timeout","start","time","now","checkElapsed","timestamp","elapsed","cancelFrame","frame","setup"],"mappings":"wKAUM,SAAgBA,EAA2BC,GAC7C,MAAMC,EAAQC,OAAKC,MAEbC,EAAeA,EAAGC,gBACpB,MAAMC,EAAUD,EAAYJ,EAExBK,GAAWN,IACXO,EAAWA,YAACH,GACZL,EAASO,EAAUN,KAM3B,OAFAQ,EAAAA,MAAMC,MAAML,GAAc,GAEnB,IAAMG,EAAAA,YAAYH,EAC7B"}
1
+ {"version":3,"file":"delay.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/delay.mjs"],"sourcesContent":["import { time } from '../frameloop/sync-time.mjs';\nimport { secondsToMilliseconds } from 'motion-utils';\nimport { bindToScope, addToScope } from '../scope/active.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\n/**\n * Timeout defined in ms\n */\nfunction delay(callback, timeout) {\n const start = time.now();\n callback = bindToScope(callback);\n const checkElapsed = ({ timestamp }) => {\n const elapsed = timestamp - start;\n if (elapsed >= timeout) {\n cancelFrame(checkElapsed);\n callback(elapsed - timeout);\n }\n };\n frame.setup(checkElapsed, true);\n return addToScope(() => cancelFrame(checkElapsed));\n}\nfunction delayInSeconds(callback, timeout) {\n return delay(callback, secondsToMilliseconds(timeout));\n}\n\nexport { delay, delayInSeconds };\n//# sourceMappingURL=delay.mjs.map\n"],"names":["callback","timeout","start","time","now","bindToScope","checkElapsed","timestamp","elapsed","cancelFrame","frame","setup","addToScope"],"mappings":"4MAWM,SAAgBA,EAA2BC,GAC7C,MAAMC,EAAQC,OAAKC,MACnBJ,EAAWK,EAAAA,YAAYL,GAEvB,MAAMM,EAAeA,EAAGC,gBACpB,MAAMC,EAAUD,EAAYL,EAExBM,GAAWP,IACXQ,EAAWA,YAACH,GACZN,EAASQ,EAAUP,KAM3B,OAFAS,EAAAA,MAAMC,MAAML,GAAc,GAEnBM,aAAW,IAAMH,cAAYH,GACxC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"distance.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/distance.mjs"],"sourcesContent":["const distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x);\n const yDelta = distance(a.y, b.y);\n return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\n\nexport { distance, distance2D };\n//# sourceMappingURL=distance.mjs.map\n"],"names":["distance","a","b","Math","abs","xDelta","x","yDelta","y","sqrt"],"mappings":"oEAEO,MAAMA,EAAWA,CAACC,EAAWC,IAAcC,KAAKC,IAAIH,EAAIC,yCAEzD,SAAqBD,EAAUC,GAEjC,MAAMG,EAASL,EAASC,EAAEK,EAAGJ,EAAEI,GACzBC,EAASP,EAASC,EAAEO,EAAGN,EAAEM,GAC/B,OAAOL,KAAKM,KAAKJ,GAAU,EAAIE,GAAU,EAC7C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../value/types/color/hex.mjs.js"),r=require("../../value/types/color/hsla.mjs.js"),s=require("../../value/types/color/hsla-to-rgba.mjs.js"),o=require("../../value/types/color/rgba.mjs.js"),a=require("./immediate.mjs.js"),t=require("./number.mjs.js"),l=require("../../../../../motion-utils/dist/es/errors.mjs.js");const n=(e,r,s)=>{const o=e*e,a=s*(r*r-o)+o;return a<0?0:Math.sqrt(a)},i=[e.hex,o.rgba,r.hsla];function u(e){const o=(a=e,i.find(e=>e.test(a)));var a;if(l.warning(Boolean(o),`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!Boolean(o))return!1;let t=o.parse(e);return o===r.hsla&&(t=s.hslaToRgba(t)),t}exports.mixColor=(e,r)=>{const s=u(e),l=u(r);if(!s||!l)return a.mixImmediate(e,r);const i={...s};return e=>(i.red=n(s.red,l.red,e),i.green=n(s.green,l.green,e),i.blue=n(s.blue,l.blue,e),i.alpha=t.mixNumber(s.alpha,l.alpha,e),o.rgba.transform(i))},exports.mixLinearColor=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../value/types/color/hex.mjs.js"),r=require("../../value/types/color/hsla.mjs.js"),s=require("../../value/types/color/hsla-to-rgba.mjs.js"),t=require("../../value/types/color/rgba.mjs.js"),a=require("./immediate.mjs.js"),o=require("./number.mjs.js"),l=require("../../../../../motion-utils/dist/es/errors.mjs.js");const i=(e,r,s)=>{const t=e*e,a=s*(r*r-t)+t;return a<0?0:Math.sqrt(a)},n=[e.hex,t.rgba,r.hsla];function u(e){const t=(a=e,n.find(e=>e.test(a)));var a;if(!t)return l.warning(!1,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!1;let o=t.parse(e);return t===r.hsla&&(o=s.hslaToRgba(o)),o}exports.mixColor=(e,r)=>{const s=u(e),l=u(r);if(!s||!l)return a.mixImmediate(e,r);const n={...s};return e=>(n.red=i(s.red,l.red,e),n.green=i(s.green,l.green,e),n.blue=i(s.blue,l.blue,e),n.alpha=o.mixNumber(s.alpha,l.alpha,e),t.rgba.transform(n))},exports.mixLinearColor=i;
2
2
  //# sourceMappingURL=color.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/utils/mix/color.mjs"],"sourcesContent":["import { warning } from 'motion-utils';\nimport { hex } from '../../value/types/color/hex.mjs';\nimport { hsla } from '../../value/types/color/hsla.mjs';\nimport { hslaToRgba } from '../../value/types/color/hsla-to-rgba.mjs';\nimport { rgba } from '../../value/types/color/rgba.mjs';\nimport { mixImmediate } from './immediate.mjs';\nimport { mixNumber } from './number.mjs';\n\n// Linear color space blending\n// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw\n// Demonstrated http://codepen.io/osublake/pen/xGVVaN\nconst mixLinearColor = (from, to, v) => {\n const fromExpo = from * from;\n const expo = v * (to * to - fromExpo) + fromExpo;\n return expo < 0 ? 0 : Math.sqrt(expo);\n};\nconst colorTypes = [hex, rgba, hsla];\nconst getColorType = (v) => colorTypes.find((type) => type.test(v));\nfunction asRGBA(color) {\n const type = getColorType(color);\n warning(Boolean(type), `'${color}' is not an animatable color. Use the equivalent color code instead.`, \"color-not-animatable\");\n if (!Boolean(type))\n return false;\n let model = type.parse(color);\n if (type === hsla) {\n // TODO Remove this cast - needed since Motion's stricter typing\n model = hslaToRgba(model);\n }\n return model;\n}\nconst mixColor = (from, to) => {\n const fromRGBA = asRGBA(from);\n const toRGBA = asRGBA(to);\n if (!fromRGBA || !toRGBA) {\n return mixImmediate(from, to);\n }\n const blended = { ...fromRGBA };\n return (v) => {\n blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);\n return rgba.transform(blended);\n };\n};\n\nexport { mixColor, mixLinearColor };\n//# sourceMappingURL=color.mjs.map\n"],"names":["mixLinearColor","from","to","v","fromExpo","expo","Math","sqrt","colorTypes","hex","rgba","hsla","asRGBA","color","type","find","test","warning","Boolean","model","parse","hslaToRgba","mixColor","fromRGBA","toRGBA","mixImmediate","blended","red","green","blue","alpha","mixNumber","transform"],"mappings":"+YAYaA,MAAAA,EAAiBA,CAACC,EAAcC,EAAYC,KACrD,MAAMC,EAAWH,EAAOA,EAClBI,EAAOF,GAAKD,EAAKA,EAAKE,GAAYA,EACxC,OAAOC,EAAO,EAAI,EAAIC,KAAKC,KAAKF,IAG9BG,EAAa,CAACC,EAAAA,IAAKC,EAAIA,KAAEC,EAAIA,MAInC,SAASC,EAAOC,GACZ,MAAMC,GAJYX,EAIQU,EAH1BL,EAAWO,KAAMD,GAASA,EAAKE,KAAKb,KADlBA,MAYlB,GANAc,UACIC,QAAQJ,GACR,IAAID,wEACJ,yBAGCK,QAAQJ,GAAO,OAAO,EAE3B,IAAIK,EAAQL,EAAMM,MAAMP,GAOxB,OALIC,IAASH,EAAAA,OAETQ,EAAQE,EAAAA,WAAWF,IAGhBA,CACX,kBAEwBG,CAACrB,EAAsBC,KAC3C,MAAMqB,EAAWX,EAAOX,GAClBuB,EAASZ,EAAOV,GAEtB,IAAKqB,IAAaC,EACd,OAAOC,EAAYA,aAACxB,EAAMC,GAG9B,MAAMwB,EAAU,IAAKH,GAErB,OAAQpB,IACJuB,EAAQC,IAAM3B,EAAeuB,EAASI,IAAKH,EAAOG,IAAKxB,GACvDuB,EAAQE,MAAQ5B,EAAeuB,EAASK,MAAOJ,EAAOI,MAAOzB,GAC7DuB,EAAQG,KAAO7B,EAAeuB,EAASM,KAAML,EAAOK,KAAM1B,GAC1DuB,EAAQI,MAAQC,EAAAA,UAAUR,EAASO,MAAON,EAAOM,MAAO3B,GACjDO,EAAIA,KAACsB,UAAWN"}
1
+ {"version":3,"file":"color.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/utils/mix/color.mjs"],"sourcesContent":["import { warning } from 'motion-utils';\nimport { hex } from '../../value/types/color/hex.mjs';\nimport { hsla } from '../../value/types/color/hsla.mjs';\nimport { hslaToRgba } from '../../value/types/color/hsla-to-rgba.mjs';\nimport { rgba } from '../../value/types/color/rgba.mjs';\nimport { mixImmediate } from './immediate.mjs';\nimport { mixNumber } from './number.mjs';\n\n// Linear color space blending\n// Explained https://www.youtube.com/watch?v=LKnqECcg6Gw\n// Demonstrated http://codepen.io/osublake/pen/xGVVaN\nconst mixLinearColor = (from, to, v) => {\n const fromExpo = from * from;\n const expo = v * (to * to - fromExpo) + fromExpo;\n return expo < 0 ? 0 : Math.sqrt(expo);\n};\nconst colorTypes = [hex, rgba, hsla];\nconst getColorType = (v) => colorTypes.find((type) => type.test(v));\nfunction asRGBA(color) {\n const type = getColorType(color);\n if (!type) {\n warning(false, `'${color}' is not an animatable color. Use the equivalent color code instead.`, \"color-not-animatable\");\n return false;\n }\n let model = type.parse(color);\n if (type === hsla) {\n // TODO Remove this cast - needed since Motion's stricter typing\n model = hslaToRgba(model);\n }\n return model;\n}\nconst mixColor = (from, to) => {\n const fromRGBA = asRGBA(from);\n const toRGBA = asRGBA(to);\n if (!fromRGBA || !toRGBA) {\n return mixImmediate(from, to);\n }\n const blended = { ...fromRGBA };\n return (v) => {\n blended.red = mixLinearColor(fromRGBA.red, toRGBA.red, v);\n blended.green = mixLinearColor(fromRGBA.green, toRGBA.green, v);\n blended.blue = mixLinearColor(fromRGBA.blue, toRGBA.blue, v);\n blended.alpha = mixNumber(fromRGBA.alpha, toRGBA.alpha, v);\n return rgba.transform(blended);\n };\n};\n\nexport { mixColor, mixLinearColor };\n//# sourceMappingURL=color.mjs.map\n"],"names":["mixLinearColor","from","to","v","fromExpo","expo","Math","sqrt","colorTypes","hex","rgba","hsla","asRGBA","color","type","find","test","warning","model","parse","hslaToRgba","mixColor","fromRGBA","toRGBA","mixImmediate","blended","red","green","blue","alpha","mixNumber","transform"],"mappings":"+YAYaA,MAAAA,EAAiBA,CAACC,EAAcC,EAAYC,KACrD,MAAMC,EAAWH,EAAOA,EAClBI,EAAOF,GAAKD,EAAKA,EAAKE,GAAYA,EACxC,OAAOC,EAAO,EAAI,EAAIC,KAAKC,KAAKF,IAG9BG,EAAa,CAACC,EAAAA,IAAKC,EAAIA,KAAEC,EAAIA,MAInC,SAASC,EAAOC,GACZ,MAAMC,GAJYX,EAIQU,EAH1BL,EAAWO,KAAMD,GAASA,EAAKE,KAAKb,KADlBA,MAMlB,IAAKW,EAMD,OALAG,EAAOA,SACH,EACA,IAAIJ,wEACJ,yBAEG,EAGX,IAAIK,EAAQJ,EAAKK,MAAMN,GAOvB,OALIC,IAASH,EAAAA,OAETO,EAAQE,EAAAA,WAAWF,IAGhBA,CACX,kBAEwBG,CAACpB,EAAsBC,KAC3C,MAAMoB,EAAWV,EAAOX,GAClBsB,EAASX,EAAOV,GAEtB,IAAKoB,IAAaC,EACd,OAAOC,EAAYA,aAACvB,EAAMC,GAG9B,MAAMuB,EAAU,IAAKH,GAErB,OAAQnB,IACJsB,EAAQC,IAAM1B,EAAesB,EAASI,IAAKH,EAAOG,IAAKvB,GACvDsB,EAAQE,MAAQ3B,EAAesB,EAASK,MAAOJ,EAAOI,MAAOxB,GAC7DsB,EAAQG,KAAO5B,EAAesB,EAASM,KAAML,EAAOK,KAAMzB,GAC1DsB,EAAQI,MAAQC,EAAAA,UAAUR,EAASO,MAAON,EAAOM,MAAO1B,GACjDO,EAAIA,KAACqB,UAAWN"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./complex.mjs.js"),r=require("./number.mjs.js");exports.mix=function(t,u,m){return"number"==typeof t&&"number"==typeof u&&"number"==typeof m?r.mixNumber(t,u,m):e.getMixer(t)(t,u)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../value/types/utils/sanitize.mjs.js"),r=require("./complex.mjs.js"),t=require("./number.mjs.js");const i=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;exports.mix=function(n,s,u){if("number"==typeof n&&"number"==typeof s&&"number"==typeof u)return t.mixNumber(n,s,u);if("string"==typeof n&&"string"==typeof s){const r=function(r,n){const s=i.exec(r);if(!s)return;const u=i.exec(n);if(!u||s[2]!==u[2])return;const o=s[2],f=parseFloat(s[1]),m=parseFloat(u[1]);return r=>e.sanitize(t.mixNumber(f,m,r))+o}(n,s);if(r)return r}return r.getMixer(n)(n,s)};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/utils/mix/index.mjs"],"sourcesContent":["import { getMixer } from './complex.mjs';\nimport { mixNumber } from './number.mjs';\n\nfunction mix(from, to, p) {\n if (typeof from === \"number\" &&\n typeof to === \"number\" &&\n typeof p === \"number\") {\n return mixNumber(from, to, p);\n }\n const mixer = getMixer(from);\n return mixer(from, to);\n}\n\nexport { mix };\n//# sourceMappingURL=index.mjs.map\n"],"names":["mix","from","to","p","mixNumberImmediate","getMixer","mixer"],"mappings":"+IAMgBA,SAAOC,EAASC,EAAOC,GACnC,MACoB,iBAATF,GACO,iBAAPC,GACM,iBAANC,EAEAC,YAAmBH,EAAMC,EAAIC,GAG1BE,WAASJ,EAChBK,CAAML,EAAaC,EAC9B"}
1
+ {"version":3,"file":"index.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/utils/mix/index.mjs"],"sourcesContent":["import { sanitize } from '../../value/types/utils/sanitize.mjs';\nimport { getMixer } from './complex.mjs';\nimport { mixNumber } from './number.mjs';\n\n/**\n * A single number with an optional unit, e.g. \"50%\", \"-10px\", \".5em\".\n * Exponents don't match, so they fall through to the complex mixer.\n */\nconst unitValue = /^(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+))([a-z%]*)$/iu;\n/**\n * Most CSS values Motion mixes are a single number with a unit. Mixing\n * these directly produces the same output as the complex mixer\n * (\"25%\", \"0.33333px\") without tokenising both strings.\n */\nfunction mixUnit(from, to) {\n const a = unitValue.exec(from);\n if (!a)\n return;\n const b = unitValue.exec(to);\n if (!b || a[2] !== b[2])\n return;\n const unit = a[2];\n const origin = parseFloat(a[1]);\n const target = parseFloat(b[1]);\n return (p) => sanitize(mixNumber(origin, target, p)) + unit;\n}\nfunction mix(from, to, p) {\n if (typeof from === \"number\" &&\n typeof to === \"number\" &&\n typeof p === \"number\") {\n return mixNumber(from, to, p);\n }\n if (typeof from === \"string\" && typeof to === \"string\") {\n const mixer = mixUnit(from, to);\n if (mixer)\n return mixer;\n }\n const mixer = getMixer(from);\n return mixer(from, to);\n}\n\nexport { mix };\n//# sourceMappingURL=index.mjs.map\n"],"names":["unitValue","mix","from","to","p","mixNumberImmediate","mixer","a","exec","b","unit","origin","parseFloat","target","sanitize","mixNumber","mixUnit","getMixer"],"mappings":"wLASA,MAAMA,EAAY,uDAuBFC,SAAOC,EAASC,EAAOC,GACnC,GACoB,iBAATF,GACO,iBAAPC,GACM,iBAANC,EAEP,OAAOC,YAAmBH,EAAMC,EAAIC,GAGxC,GAAoB,iBAATF,GAAmC,iBAAPC,EAAiB,CACpD,MAAMG,EA1Bd,SAAiBJ,EAAcC,GAC3B,MAAMI,EAAIP,EAAUQ,KAAKN,GACzB,IAAKK,EAAG,OACR,MAAME,EAAIT,EAAUQ,KAAKL,GACzB,IAAKM,GAAKF,EAAE,KAAOE,EAAE,GAAI,OAEzB,MAAMC,EAAOH,EAAE,GACTI,EAASC,WAAWL,EAAE,IACtBM,EAASD,WAAWH,EAAE,IAE5B,OAAQL,GACJU,EAAQA,SAACC,YAAmBJ,EAAQE,EAAQT,IAAMM,CAC1D,CAcsBM,CAAQd,EAAMC,GAC5B,GAAIG,EAAO,OAAOA,CACtB,CAGA,OADcW,WAASf,EAChBI,CAAMJ,EAAaC,EAC9B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.resolveElements=function(e,r,t){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;r&&(n=r.current);const l=t?.[e]??n.querySelectorAll(e);return l?Array.from(l):[]}return Array.from(e).filter(e=>null!=e)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../scope/active.mjs.js");exports.resolveElements=function(r,t,n){if(null==r)return[];if(r instanceof EventTarget)return[r];if("string"==typeof r){const o=t?t.current:e.activeScope.current?.root||document,u=n?.[r]??o.querySelectorAll(r);return u?Array.from(u):[]}return Array.from(r).filter(e=>null!=e)};
2
2
  //# sourceMappingURL=resolve-elements.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-elements.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/resolve-elements.mjs"],"sourcesContent":["function resolveElements(elementOrSelector, scope, selectorCache) {\n if (elementOrSelector == null) {\n return [];\n }\n if (elementOrSelector instanceof EventTarget) {\n return [elementOrSelector];\n }\n else if (typeof elementOrSelector === \"string\") {\n let root = document;\n if (scope) {\n root = scope.current;\n }\n const elements = selectorCache?.[elementOrSelector] ??\n root.querySelectorAll(elementOrSelector);\n return elements ? Array.from(elements) : [];\n }\n return Array.from(elementOrSelector).filter((element) => element != null);\n}\n\nexport { resolveElements };\n//# sourceMappingURL=resolve-elements.mjs.map\n"],"names":["resolveElements","elementOrSelector","scope","selectorCache","EventTarget","root","document","current","elements","querySelectorAll","Array","from","filter","element"],"mappings":"4FAqBgBA,SACZC,EACAC,EACAC,GAEA,GAAyB,MAArBF,EACA,MAAO,GAGX,GAAIA,aAA6BG,YAC7B,MAAO,CAACH,GACL,GAAiC,iBAAtBA,EAAgC,CAC9C,IAAII,EAA6BC,SAE7BJ,IACAG,EAAOH,EAAMK,SAGjB,MAAMC,EACFL,IAAgBF,IAChBI,EAAKI,iBAAiBR,GAE1B,OAAOO,EAAWE,MAAMC,KAAKH,GAAY,EAC7C,CAEA,OAAOE,MAAMC,KAAKV,GAAmBW,OAChCC,GAA2C,MAAXA,EAEzC"}
1
+ {"version":3,"file":"resolve-elements.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/utils/resolve-elements.mjs"],"sourcesContent":["import { activeScope } from '../scope/active.mjs';\n\nfunction resolveElements(elementOrSelector, scope, selectorCache) {\n if (elementOrSelector == null) {\n return [];\n }\n if (elementOrSelector instanceof EventTarget) {\n return [elementOrSelector];\n }\n else if (typeof elementOrSelector === \"string\") {\n const root = scope\n ? scope.current\n : activeScope.current?.root || document;\n const elements = selectorCache?.[elementOrSelector] ??\n root.querySelectorAll(elementOrSelector);\n return elements ? Array.from(elements) : [];\n }\n return Array.from(elementOrSelector).filter((element) => element != null);\n}\n\nexport { resolveElements };\n//# sourceMappingURL=resolve-elements.mjs.map\n"],"names":["resolveElements","elementOrSelector","scope","selectorCache","EventTarget","root","current","activeScope","document","elements","querySelectorAll","Array","from","filter","element"],"mappings":"oIAuBgBA,SACZC,EACAC,EACAC,GAEA,GAAyB,MAArBF,EACA,MAAO,GAGX,GAAIA,aAA6BG,YAC7B,MAAO,CAACH,GACL,GAAiC,iBAAtBA,EAAgC,CAC9C,MAAMI,EAA6BH,EAC7BA,EAAMI,QACNC,EAAAA,YAAYD,SAASD,MAAQG,SAE7BC,EACFN,IAAgBF,IAChBI,EAAKK,iBAAiBT,GAE1B,OAAOQ,EAAWE,MAAMC,KAAKH,GAAY,EAC7C,CAEA,OAAOE,MAAMC,KAAKX,GAAmBY,OAChCC,GAA2C,MAAXA,EAEzC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../frameloop/sync-time.mjs.js"),e=require("../frameloop/frame.mjs.js"),s=require("../../../../motion-utils/dist/es/warn-once.mjs.js"),i=require("../../../../motion-utils/dist/es/subscription-manager.mjs.js"),n=require("../../../../motion-utils/dist/es/velocity-per-second.mjs.js");class a{constructor(e,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const s=t.time.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){var s;this.current=e,this.updatedAt=t.time.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(s=this.current,!isNaN(parseFloat(s))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&s.warnOnce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new i.SubscriptionManager);const n=this.events[t].add(s);return"change"===t?()=>{n(),e.frame.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,s){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=t.time.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,30);return n.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}exports.MotionValue=a,exports.motionValue=function(t,e){return new a(t,e)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../frameloop/sync-time.mjs.js"),e=require("../frameloop/frame.mjs.js"),s=require("../../../../motion-utils/dist/es/warn-once.mjs.js"),i=require("../../../../motion-utils/dist/es/subscription-manager.mjs.js"),n=require("../../../../motion-utils/dist/es/velocity-per-second.mjs.js");class r{constructor(e,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const s=t.time.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){var s;this.current=e,this.updatedAt=t.time.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(s=this.current,!isNaN(parseFloat(s))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&s.warnOnce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){var s;return"change"===t?this.onChangeSubscribe(e):((s=this.events)[t]||(s[t]=new i.SubscriptionManager)).add(e)}onChangeSubscribe(t){const{events:e}=this;return e.change||this.changeSubscriber?(e.change||(e.change=new i.SubscriptionManager,e.change.add(this.changeSubscriber),this.changeSubscriber=void 0),e.change.add(t)):this.changeSubscriber=t,()=>{this.changeSubscriber===t?this.changeSubscriber=void 0:e.change?.remove(t),this.stopIfUnobserved()}}stopIfUnobserved(){e.frame.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,s){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){const{current:t,changeSubscriber:e}=this;e?e(t):this.events.change?.notify(t)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){const t=this.animation?.liveValue?.();return void 0===t?this.current:t}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=t.time.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,30);return n.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0;let s,i=!1;s=t(()=>{i=!0,this.events.animationComplete?.notify(),this.animation===s&&this.clearAnimation(),e()}),i||(this.animation=s),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}exports.MotionValue=r,exports.motionValue=function(t,e){return new r(t,e)};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/value/index.mjs"],"sourcesContent":["import { warnOnce, SubscriptionManager, velocityPerSecond } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\n/**\n * Maximum time between the value of two frames, beyond which we\n * assume the velocity has since been 0.\n */\nconst MAX_VELOCITY_DELTA = 30;\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n */\n constructor(init, options = {}) {\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = null;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v) => {\n const currentTime = time.now();\n /**\n * If we're updating the value during another frame or eventloop\n * than the previous frame, then the we set the previous frame value\n * to current.\n */\n if (this.updatedAt !== currentTime) {\n this.setPrevFrameValue();\n }\n this.prev = this.current;\n this.setCurrent(v);\n // Update update subscribers\n if (this.current !== this.prev) {\n this.events.change?.notify(this.current);\n if (this.dependents) {\n for (const dependent of this.dependents) {\n dependent.dirty();\n }\n }\n }\n };\n this.hasAnimated = false;\n this.setCurrent(init);\n this.owner = options.owner;\n }\n setCurrent(current) {\n this.current = current;\n this.updatedAt = time.now();\n if (this.canTrackVelocity === null && current !== undefined) {\n this.canTrackVelocity = isFloat(this.current);\n }\n }\n setPrevFrameValue(prevFrameValue = this.current) {\n this.prevFrameValue = prevFrameValue;\n this.prevUpdatedAt = this.updatedAt;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n if (!this.events[eventName]) {\n this.events[eventName] = new SubscriptionManager();\n }\n const unsubscribe = this.events[eventName].add(callback);\n if (eventName === \"change\") {\n return () => {\n unsubscribe();\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n frame.read(() => {\n if (!this.events.change.getSize()) {\n this.stop();\n }\n });\n };\n }\n return unsubscribe;\n }\n clearListeners() {\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v) {\n if (!this.passiveEffect) {\n this.updateAndNotify(v);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = undefined;\n this.prevFrameValue = prev;\n this.prevUpdatedAt = this.updatedAt - delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v, endAnimation = true) {\n this.updateAndNotify(v);\n this.prev = v;\n this.prevUpdatedAt = this.prevFrameValue = undefined;\n endAnimation && this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n dirty() {\n this.events.change?.notify(this.current);\n }\n addDependent(dependent) {\n if (!this.dependents) {\n this.dependents = new Set();\n }\n this.dependents.add(dependent);\n }\n removeDependent(dependent) {\n if (this.dependents) {\n this.dependents.delete(dependent);\n }\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n const currentTime = time.now();\n if (!this.canTrackVelocity ||\n this.prevFrameValue === undefined ||\n currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n return 0;\n }\n const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n // Casts because of parseFloat's poor typing\n return velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prevFrameValue), delta);\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n this.animation = startAnimation(resolve);\n if (this.events.animationStart) {\n this.events.animationStart.notify();\n }\n }).then(() => {\n if (this.events.animationComplete) {\n this.events.animationComplete.notify();\n }\n this.clearAnimation();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n delete this.animation;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.dependents?.clear();\n this.events.destroy?.notify();\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n//# sourceMappingURL=index.mjs.map\n"],"names":["MotionValue","constructor","init","options","this","canTrackVelocity","events","updateAndNotify","v","currentTime","time","now","updatedAt","setPrevFrameValue","prev","current","setCurrent","change","notify","dependents","dependent","dirty","hasAnimated","owner","value","undefined","isNaN","parseFloat","prevFrameValue","prevUpdatedAt","onChange","subscription","process","env","NODE_ENV","warnOnce","on","eventName","callback","SubscriptionManager","unsubscribe","add","frame","read","getSize","stop","clearListeners","eventManagers","clear","attach","passiveEffect","stopPassiveEffect","set","setWithVelocity","delta","jump","endAnimation","addDependent","Set","removeDependent","delete","get","getPrevious","getVelocity","Math","min","velocityPerSecond","start","startAnimation","Promise","resolve","animation","animationStart","then","animationComplete","clearAnimation","animationCancel","isAnimating","destroy"],"mappings":"kXAmFaA,EAuFTC,WAAAA,CAAYC,EAASC,EAA8B,IA1B3CC,KAAAC,iBAAmC,KAkGnCD,KAAAE,OAEJ,GAwGJF,KAAAG,gBAAmBC,IACf,MAAMC,EAAcC,OAAKC,MAgBzB,GATIP,KAAKQ,YAAcH,GACnBL,KAAKS,oBAGTT,KAAKU,KAAOV,KAAKW,QAEjBX,KAAKY,WAAWR,GAGZJ,KAAKW,UAAYX,KAAKU,OACtBV,KAAKE,OAAOW,QAAQC,OAAOd,KAAKW,SAE5BX,KAAKe,YACL,IAAK,MAAMC,KAAahB,KAAKe,WACzBC,EAAUC,SA2D1BjB,KAAAkB,aAAc,EAlQVlB,KAAKY,WAAWd,GAChBE,KAAKmB,MAAQpB,EAAQoB,KACzB,CAEAP,UAAAA,CAAWD,GArIES,MAsITpB,KAAKW,QAAUA,EACfX,KAAKQ,UAAYF,OAAKC,MAEQ,OAA1BP,KAAKC,uBAAyCoB,IAAZV,IAClCX,KAAKC,kBA1IAmB,EA0I2BpB,KAAKW,SAzIrCW,MAAMC,WAAWH,KA2IzB,CAEAX,iBAAA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mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/value/index.mjs"],"sourcesContent":["import { warnOnce, SubscriptionManager, velocityPerSecond } from 'motion-utils';\nimport { time } from '../frameloop/sync-time.mjs';\nimport { frame } from '../frameloop/frame.mjs';\n\n/**\n * Maximum time between the value of two frames, beyond which we\n * assume the velocity has since been 0.\n */\nconst MAX_VELOCITY_DELTA = 30;\nconst isFloat = (value) => {\n return !isNaN(parseFloat(value));\n};\nconst collectMotionValues = {\n current: undefined,\n};\n/**\n * `MotionValue` is used to track the state and velocity of motion values.\n *\n * @public\n */\nclass MotionValue {\n /**\n * @param init - The initiating value\n * @param config - Optional configuration options\n *\n * - `transformer`: A function to transform incoming values with.\n */\n constructor(init, options = {}) {\n /**\n * Tracks whether this value can output a velocity. Currently this is only true\n * if the value is numerical, but we might be able to widen the scope here and support\n * other value types.\n *\n * @internal\n */\n this.canTrackVelocity = null;\n /**\n * An object containing a SubscriptionManager for each active event.\n */\n this.events = {};\n this.updateAndNotify = (v) => {\n const currentTime = time.now();\n /**\n * If we're updating the value during another frame or eventloop\n * than the previous frame, then the we set the previous frame value\n * to current.\n */\n if (this.updatedAt !== currentTime) {\n this.setPrevFrameValue();\n }\n this.prev = this.current;\n this.setCurrent(v);\n // Update update subscribers\n if (this.current !== this.prev) {\n this.notifyChange();\n if (this.dependents) {\n for (const dependent of this.dependents) {\n dependent.dirty();\n }\n }\n }\n };\n this.hasAnimated = false;\n this.setCurrent(init);\n this.owner = options.owner;\n }\n setCurrent(current) {\n this.current = current;\n this.updatedAt = time.now();\n if (this.canTrackVelocity === null && current !== undefined) {\n this.canTrackVelocity = isFloat(this.current);\n }\n }\n setPrevFrameValue(prevFrameValue = this.current) {\n this.prevFrameValue = prevFrameValue;\n this.prevUpdatedAt = this.updatedAt;\n }\n /**\n * Adds a function that will be notified when the `MotionValue` is updated.\n *\n * It returns a function that, when called, will cancel the subscription.\n *\n * When calling `onChange` inside a React component, it should be wrapped with the\n * `useEffect` hook. As it returns an unsubscribe function, this should be returned\n * from the `useEffect` function to ensure you don't add duplicate subscribers..\n *\n * ```jsx\n * export const MyComponent = () => {\n * const x = useMotionValue(0)\n * const y = useMotionValue(0)\n * const opacity = useMotionValue(1)\n *\n * useEffect(() => {\n * function updateOpacity() {\n * const maxXY = Math.max(x.get(), y.get())\n * const newOpacity = transform(maxXY, [0, 100], [1, 0])\n * opacity.set(newOpacity)\n * }\n *\n * const unsubscribeX = x.on(\"change\", updateOpacity)\n * const unsubscribeY = y.on(\"change\", updateOpacity)\n *\n * return () => {\n * unsubscribeX()\n * unsubscribeY()\n * }\n * }, [])\n *\n * return <motion.div style={{ x }} />\n * }\n * ```\n *\n * @param subscriber - A function that receives the latest value.\n * @returns A function that, when called, will cancel this subscription.\n *\n * @deprecated\n */\n onChange(subscription) {\n if (process.env.NODE_ENV !== \"production\") {\n warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback).`);\n }\n return this.on(\"change\", subscription);\n }\n on(eventName, callback) {\n var _a;\n if (eventName === \"change\")\n return this.onChangeSubscribe(callback);\n return ((_a = this.events)[eventName] || (_a[eventName] = new SubscriptionManager())).add(callback);\n }\n onChangeSubscribe(callback) {\n const { events } = this;\n if (!events.change && !this.changeSubscriber) {\n this.changeSubscriber = callback;\n }\n else {\n if (!events.change) {\n events.change = new SubscriptionManager();\n events.change.add(this.changeSubscriber);\n this.changeSubscriber = undefined;\n }\n events.change.add(callback);\n }\n return () => {\n if (this.changeSubscriber === callback) {\n this.changeSubscriber = undefined;\n }\n else {\n events.change?.remove(callback);\n }\n this.stopIfUnobserved();\n };\n }\n /**\n * If we have no more change listeners by the start\n * of the next frame, stop active animations.\n */\n stopIfUnobserved() {\n frame.read(() => {\n if (!this.changeSubscriber && !this.events.change?.getSize()) {\n this.stop();\n }\n });\n }\n clearListeners() {\n this.changeSubscriber = undefined;\n for (const eventManagers in this.events) {\n this.events[eventManagers].clear();\n }\n }\n /**\n * Attaches a passive effect to the `MotionValue`.\n */\n attach(passiveEffect, stopPassiveEffect) {\n this.passiveEffect = passiveEffect;\n this.stopPassiveEffect = stopPassiveEffect;\n }\n /**\n * Sets the state of the `MotionValue`.\n *\n * @remarks\n *\n * ```jsx\n * const x = useMotionValue(0)\n * x.set(10)\n * ```\n *\n * @param latest - Latest value to set.\n * @param render - Whether to notify render subscribers. Defaults to `true`\n *\n * @public\n */\n set(v) {\n if (!this.passiveEffect) {\n this.updateAndNotify(v);\n }\n else {\n this.passiveEffect(v, this.updateAndNotify);\n }\n }\n setWithVelocity(prev, current, delta) {\n this.set(current);\n this.prev = undefined;\n this.prevFrameValue = prev;\n this.prevUpdatedAt = this.updatedAt - delta;\n }\n /**\n * Set the state of the `MotionValue`, stopping any active animations,\n * effects, and resets velocity to `0`.\n */\n jump(v, endAnimation = true) {\n this.updateAndNotify(v);\n this.prev = v;\n this.prevUpdatedAt = this.prevFrameValue = undefined;\n endAnimation && this.stop();\n if (this.stopPassiveEffect)\n this.stopPassiveEffect();\n }\n dirty() {\n this.notifyChange();\n }\n notifyChange() {\n const { current, changeSubscriber } = this;\n /**\n * One or the other exists. Subscribing during the direct\n * subscriber's call moves it into a new manager, which must not\n * then be notified for the same change.\n */\n if (changeSubscriber) {\n changeSubscriber(current);\n }\n else {\n this.events.change?.notify(current);\n }\n }\n addDependent(dependent) {\n if (!this.dependents) {\n this.dependents = new Set();\n }\n this.dependents.add(dependent);\n }\n removeDependent(dependent) {\n if (this.dependents) {\n this.dependents.delete(dependent);\n }\n }\n /**\n * Returns the latest state of `MotionValue`\n *\n * @returns - The latest state of `MotionValue`\n *\n * @public\n */\n get() {\n if (collectMotionValues.current) {\n collectMotionValues.current.push(this);\n }\n /**\n * A value animating on the compositor isn't updated every frame,\n * so read it from its animation.\n */\n const sampled = this.animation?.liveValue?.();\n return sampled === undefined ? this.current : sampled;\n }\n /**\n * The value as last set. Unlike get(), this doesn't read an animation\n * running on the compositor, which renders the value itself.\n */\n getCurrent() {\n return this.current;\n }\n /**\n * @public\n */\n getPrevious() {\n return this.prev;\n }\n /**\n * Returns the latest velocity of `MotionValue`\n *\n * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.\n *\n * @public\n */\n getVelocity() {\n const currentTime = time.now();\n if (!this.canTrackVelocity ||\n this.prevFrameValue === undefined ||\n currentTime - this.updatedAt > MAX_VELOCITY_DELTA) {\n return 0;\n }\n const delta = Math.min(this.updatedAt - this.prevUpdatedAt, MAX_VELOCITY_DELTA);\n // Casts because of parseFloat's poor typing\n return velocityPerSecond(parseFloat(this.current) -\n parseFloat(this.prevFrameValue), delta);\n }\n /**\n * Registers a new animation to control this `MotionValue`. Only one\n * animation can drive a `MotionValue` at one time.\n *\n * ```jsx\n * value.start()\n * ```\n *\n * @param animation - A function that starts the provided animation\n */\n start(startAnimation) {\n this.stop();\n return new Promise((resolve) => {\n this.hasAnimated = true;\n /**\n * Complete synchronously via the callback rather than chaining a\n * second promise per animation. Guard against animations that\n * complete before startAnimation has returned.\n */\n let isComplete = false;\n let animation;\n // eslint-disable-next-line prefer-const -- read by the callback before assignment when completing synchronously\n animation = startAnimation(() => {\n isComplete = true;\n this.events.animationComplete?.notify();\n if (this.animation === animation)\n this.clearAnimation();\n resolve();\n });\n if (!isComplete)\n this.animation = animation;\n this.events.animationStart?.notify();\n });\n }\n /**\n * Stop the currently active animation.\n *\n * @public\n */\n stop() {\n if (this.animation) {\n this.animation.stop();\n if (this.events.animationCancel) {\n this.events.animationCancel.notify();\n }\n }\n this.clearAnimation();\n }\n /**\n * Returns `true` if this value is currently animating.\n *\n * @public\n */\n isAnimating() {\n return !!this.animation;\n }\n clearAnimation() {\n // Assign rather than delete to keep the object's shape stable\n this.animation = undefined;\n }\n /**\n * Destroy and clean up subscribers to this `MotionValue`.\n *\n * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically\n * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually\n * created a `MotionValue` via the `motionValue` function.\n *\n * @public\n */\n destroy() {\n this.dependents?.clear();\n this.events.destroy?.notify();\n this.clearListeners();\n this.stop();\n if (this.stopPassiveEffect) {\n this.stopPassiveEffect();\n }\n }\n}\nfunction motionValue(init, options) {\n return new MotionValue(init, options);\n}\n\nexport { MotionValue, collectMotionValues, motionValue };\n//# sourceMappingURL=index.mjs.map\n"],"names":["MotionValue","constructor","init","options","this","canTrackVelocity","events","updateAndNotify","v","currentTime","time","now","updatedAt","setPrevFrameValue","prev","current","setCurrent","notifyChange","dependents","dependent","dirty","hasAnimated","owner","value","undefined","isNaN","parseFloat","prevFrameValue","prevUpdatedAt","onChange","subscription","process","env","NODE_ENV","warnOnce","on","eventName","callback","onChangeSubscribe","_a","SubscriptionManager","add","change","changeSubscriber","remove","stopIfUnobserved","frame","read","getSize","stop","clearListeners","eventManagers","clear","attach","passiveEffect","stopPassiveEffect","set","setWithVelocity","delta","jump","endAnimation","notify","addDependent","Set","removeDependent","delete","get","sampled","animation","liveValue","getCurrent","getPrevious","getVelocity","Math","min","velocityPerSecond","start","startAnimation","Promise","resolve","isComplete","animationComplete","clearAnimation","animationStart","animationCancel","isAnimating","destroy"],"mappings":"kXAoFaA,EA8FTC,WAAAA,CAAYC,EAASC,EAA8B,IA1B3CC,KAAAC,iBAAmC,KAkGnCD,KAAAE,OAEJ,GAyIJF,KAAAG,gBAAmBC,IACf,MAAMC,EAAcC,OAAKC,MAgBzB,GATIP,KAAKQ,YAAcH,GACnBL,KAAKS,oBAGTT,KAAKU,KAAOV,KAAKW,QAEjBX,KAAKY,WAAWR,GAGZJ,KAAKW,UAAYX,KAAKU,OACtBV,KAAKa,eAEDb,KAAKc,YACL,IAAK,MAAMC,KAAaf,KAAKc,WACzBC,EAAUC,SAyE1BhB,KAAAiB,aAAc,EAjTVjB,KAAKY,WAAWd,GAChBE,KAAKkB,MAAQnB,EAAQmB,KACzB,CAEAN,UAAAA,CAAWD,GA5IEQ,MA6ITnB,KAAKW,QAAUA,EACfX,KAAKQ,UAAYF,OAAKC,MAEQ,OAA1BP,KAAKC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W,SACZW,WAAWtB,KAAKuB,gBACpB+B,EAER,CAcAkB,KAAAA,CAAMC,GAGF,OAFAzE,KAAK6C,OAEE,IAAI6B,QAAeC,IACtB3E,KAAKiB,aAAc,EAOnB,IACI+C,EADAY,GAAa,EAGjBZ,EAAYS,EAAe,KACvBG,GAAa,EACb5E,KAAKE,OAAO2E,mBAAmBpB,SAC3BzD,KAAKgE,YAAcA,GAAWhE,KAAK8E,iBACvCH,MAGCC,IAAY5E,KAAKgE,UAAYA,GAElChE,KAAKE,OAAO6E,gBAAgBtB,UAEpC,CAOAZ,IAAAA,GACQ7C,KAAKgE,YACLhE,KAAKgE,UAAUnB,OACX7C,KAAKE,OAAO8E,iBACZhF,KAAKE,OAAO8E,gBAAgBvB,UAGpCzD,KAAK8E,gBACT,CAOAG,WAAAA,GACI,QAASjF,KAAKgE,SAClB,CAEQc,cAAAA,GAEJ9E,KAAKgE,eAAY5C,CACrB,CAWA8D,OAAAA,GACIlF,KAAKc,YAAYkC,QACjBhD,KAAKE,OAAOgF,SAASzB,SACrBzD,KAAK8C,iBACL9C,KAAK6C,OAED7C,KAAKmD,mBACLnD,KAAKmD,mBAEb,4CAGE,SAAyBrD,EAASC,GACpC,OAAO,IAAIH,EAAeE,EAAMC,EACpC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../color/index.mjs.js"),t=require("../utils/color-regex.mjs.js"),s=require("../utils/float-regex.mjs.js"),r=require("../utils/sanitize.mjs.js");const o="number",n="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function l(t){const s=t.toString(),r=[],l={color:[],number:[],var:[]},a=[];let i=0;const c=s.replace(u,t=>(e.color.test(t)?(l.color.push(i),a.push(n),r.push(e.color.parse(t))):t.startsWith("var(")?(l.var.push(i),a.push("var"),r.push(t)):(l.number.push(i),a.push(o),r.push(parseFloat(t))),++i,"${}")).split("${}");return{values:r,split:c,indexes:l,types:a}}function a({split:t,types:s}){const u=t.length;return l=>{let a="";for(let i=0;i<u;i++)if(a+=t[i],void 0!==l[i]){const t=s[i];a+=t===o?r.sanitize(l[i]):t===n?e.color.transform(l[i]):l[i]}return a}}const i=(t,s)=>{return"number"==typeof t?s?.trim().endsWith("/")?t:0:"number"==typeof(r=t)?0:e.color.test(r)?e.color.getAnimatableNone(r):r;var r};const c={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(s.floatRegex)?.length||0)+(e.match(t.colorRegex)?.length||0)>0},parse:function(e){return l(e).values},createTransformer:function(e){return a(l(e))},getAnimatableNone:function(e){const t=l(e);return a(t)(t.values.map((e,s)=>i(e,t.split[s])))}};exports.analyseComplexValue=l,exports.complex=c;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../color/index.mjs.js"),t=require("../utils/color-regex.mjs.js"),s=require("../utils/float-regex.mjs.js"),r=require("../utils/sanitize.mjs.js");const o=new RegExp(s.floatRegex.source),n=new RegExp(t.colorRegex.source,"i");const u="number",l="color",i=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function a(t){const s=t.toString(),r=[],o={color:[],number:[],var:[]},n=[];let a=0;const c=s.replace(i,t=>(e.color.test(t)?(o.color.push(a),n.push(l),r.push(e.color.parse(t))):t.startsWith("var(")?(o.var.push(a),n.push("var"),r.push(t)):(o.number.push(a),n.push(u),r.push(parseFloat(t))),++a,"${}")).split("${}");return{values:r,split:c,indexes:o,types:n}}function c({split:t,types:s}){const o=t.length;return n=>{let i="";for(let a=0;a<o;a++)if(i+=t[a],void 0!==n[a]){const t=s[a];i+=t===u?r.sanitize(n[a]):t===l?e.color.transform(n[a]):n[a]}return i}}const p=(t,s)=>{return"number"==typeof t?s?.trim().endsWith("/")?t:0:"number"==typeof(r=t)?0:e.color.test(r)?e.color.getAnimatableNone(r):r;var r};const f={test:function(e){return isNaN(e)&&"string"==typeof e&&(o.test(e)||n.test(e))},parse:function(e){return a(e).values},createTransformer:function(e){return c(a(e))},getAnimatableNone:function(e){const t=a(e);return c(t)(t.values.map((e,s)=>p(e,t.split[s])))}};exports.analyseComplexValue=a,exports.complex=f,exports.hasComplexValues=function(e){const t=e.toString();return o.test(t)||n.test(t)};
2
2
  //# sourceMappingURL=index.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/value/types/complex/index.mjs"],"sourcesContent":["import { color } from '../color/index.mjs';\nimport { colorRegex } from '../utils/color-regex.mjs';\nimport { floatRegex } from '../utils/float-regex.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\n\nfunction test(v) {\n return (isNaN(v) &&\n typeof v === \"string\" &&\n (v.match(floatRegex)?.length || 0) +\n (v.match(colorRegex)?.length || 0) >\n 0);\n}\nconst NUMBER_TOKEN = \"number\";\nconst COLOR_TOKEN = \"color\";\nconst VAR_TOKEN = \"var\";\nconst VAR_FUNCTION_TOKEN = \"var(\";\nconst SPLIT_TOKEN = \"${}\";\n// this regex consists of the `singleCssVariableRegex|rgbHSLValueRegex|digitRegex`\nconst complexRegex = /var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)/giu;\nfunction analyseComplexValue(value) {\n const originalValue = value.toString();\n const values = [];\n const indexes = {\n color: [],\n number: [],\n var: [],\n };\n const types = [];\n let i = 0;\n const tokenised = originalValue.replace(complexRegex, (parsedValue) => {\n if (color.test(parsedValue)) {\n indexes.color.push(i);\n types.push(COLOR_TOKEN);\n values.push(color.parse(parsedValue));\n }\n else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {\n indexes.var.push(i);\n types.push(VAR_TOKEN);\n values.push(parsedValue);\n }\n else {\n indexes.number.push(i);\n types.push(NUMBER_TOKEN);\n values.push(parseFloat(parsedValue));\n }\n ++i;\n return SPLIT_TOKEN;\n });\n const split = tokenised.split(SPLIT_TOKEN);\n return { values, split, indexes, types };\n}\nfunction parseComplexValue(v) {\n return analyseComplexValue(v).values;\n}\nfunction buildTransformer({ split, types }) {\n const numSections = split.length;\n return (v) => {\n let output = \"\";\n for (let i = 0; i < numSections; i++) {\n output += split[i];\n if (v[i] !== undefined) {\n const type = types[i];\n if (type === NUMBER_TOKEN) {\n output += sanitize(v[i]);\n }\n else if (type === COLOR_TOKEN) {\n output += color.transform(v[i]);\n }\n else {\n output += v[i];\n }\n }\n }\n return output;\n };\n}\nfunction createTransformer(source) {\n return buildTransformer(analyseComplexValue(source));\n}\nconst convertNumbersToZero = (v) => typeof v === \"number\" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v;\n/**\n * Convert a parsed value to its zero equivalent, but preserve numbers\n * that act as divisors in CSS calc() expressions.\n *\n * analyseComplexValue extracts numbers from CSS strings and puts the\n * surrounding text into a `split` template array. For example:\n * \"calc(var(--gap) / 5)\" → values: [var(--gap), 5]\n * split: [\"calc(\", \" / \", \")\"]\n *\n * When building a zero-equivalent for animation, naively zeroing all\n * numbers turns the divisor into 0 → \"calc(var(--gap) / 0)\" → NaN.\n * We detect this by checking whether the text preceding a number\n * (split[i]) ends with \"/\" — the CSS calc division operator.\n */\nconst convertToZero = (value, splitBefore) => {\n if (typeof value === \"number\") {\n return splitBefore?.trim().endsWith(\"/\") ? value : 0;\n }\n return convertNumbersToZero(value);\n};\nfunction getAnimatableNone(v) {\n const info = analyseComplexValue(v);\n const transformer = buildTransformer(info);\n return transformer(info.values.map((value, i) => convertToZero(value, info.split[i])));\n}\nconst complex = {\n test,\n parse: parseComplexValue,\n createTransformer,\n getAnimatableNone,\n};\n\nexport { analyseComplexValue, complex };\n//# sourceMappingURL=index.mjs.map\n"],"names":["NUMBER_TOKEN","COLOR_TOKEN","complexRegex","analyseComplexValue","value","originalValue","toString","values","indexes","color","number","var","types","i","split","replace","parsedValue","test","push","parse","startsWith","parseFloat","buildTransformer","numSections","length","v","output","undefined","type","sanitize","transform","convertToZero","splitBefore","trim","endsWith","getAnimatableNone","complex","isNaN","match","floatRegex","colorRegex","createTransformer","source","info","transformer","map"],"mappings":"mOAkBA,MAAMA,EAAe,SACfC,EAAc,QAuBdC,EACF,kOAEE,SAAUC,EACZC,GAEA,MAAMC,EAAgBD,EAAME,WAEtBC,EAAwB,GACxBC,EAAwB,CAC1BC,MAAO,GACPC,OAAQ,GACRC,IAAK,IAEHC,EAAmC,GAEzC,IAAIC,EAAI,EACR,MAiBMC,EAjBYT,EAAcU,QAAQb,EAAec,IAC/CP,EAAKA,MAACQ,KAAKD,IACXR,EAAQC,MAAMS,KAAKL,GACnBD,EAAMM,KAAKjB,GACXM,EAAOW,KAAKT,EAAAA,MAAMU,MAAMH,KACjBA,EAAYI,WA3CJ,SA4CfZ,EAAQG,IAAIO,KAAKL,GACjBD,EAAMM,KA9CA,OA+CNX,EAAOW,KAAKF,KAEZR,EAAQE,OAAOQ,KAAKL,GACpBD,EAAMM,KAAKlB,GACXO,EAAOW,KAAKG,WAAWL,OA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/index.mjs"],"sourcesContent":["import { color } from '../color/index.mjs';\nimport { colorRegex } from '../utils/color-regex.mjs';\nimport { floatRegex } from '../utils/float-regex.mjs';\nimport { sanitize } from '../utils/sanitize.mjs';\n\n/**\n * Non-global copies of the token regexes so test() can use .test()\n * (no match array, stops at the first token) without lastIndex state.\n */\nconst hasFloat = /*@__PURE__*/ new RegExp(floatRegex.source);\nconst hasColor = /*@__PURE__*/ new RegExp(colorRegex.source, \"i\");\nfunction test(v) {\n return (isNaN(v) &&\n typeof v === \"string\" &&\n (hasFloat.test(v) || hasColor.test(v)));\n}\nconst NUMBER_TOKEN = \"number\";\nconst COLOR_TOKEN = \"color\";\nconst VAR_TOKEN = \"var\";\nconst VAR_FUNCTION_TOKEN = \"var(\";\nconst SPLIT_TOKEN = \"${}\";\n// this regex consists of the `singleCssVariableRegex|rgbHSLValueRegex|digitRegex`.\n// The lookahead skips digits in function names, like the 3 in matrix3d(.\nconst complexRegex = /var\\s*\\(\\s*--(?:[\\w-]+\\s*|[\\w-]+\\s*,(?:\\s*[^)(\\s]|\\s*\\((?:[^)(]|\\([^)(]*\\))*\\))+\\s*)\\)|#[\\da-f]{3,8}|(?:rgb|hsl)a?\\((?:-?[\\d.]+%?[,\\s]+){2}-?[\\d.]+%?\\s*(?:[,/]\\s*)?(?:\\b\\d+(?:\\.\\d+)?|\\.\\d+)?%?\\)|-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?![a-z]*\\()/giu;\n/**\n * Whether analyseComplexValue(value) would find any values, without\n * tokenising the string. CSS variables are resolved before this is\n * used, so it's enough to look for a number or a color.\n */\nfunction hasComplexValues(value) {\n const asString = value.toString();\n return hasFloat.test(asString) || hasColor.test(asString);\n}\nfunction analyseComplexValue(value) {\n const originalValue = value.toString();\n const values = [];\n const indexes = {\n color: [],\n number: [],\n var: [],\n };\n const types = [];\n let i = 0;\n const tokenised = originalValue.replace(complexRegex, (parsedValue) => {\n if (color.test(parsedValue)) {\n indexes.color.push(i);\n types.push(COLOR_TOKEN);\n values.push(color.parse(parsedValue));\n }\n else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {\n indexes.var.push(i);\n types.push(VAR_TOKEN);\n values.push(parsedValue);\n }\n else {\n indexes.number.push(i);\n types.push(NUMBER_TOKEN);\n values.push(parseFloat(parsedValue));\n }\n ++i;\n return SPLIT_TOKEN;\n });\n const split = tokenised.split(SPLIT_TOKEN);\n return { values, split, indexes, types };\n}\nfunction parseComplexValue(v) {\n return analyseComplexValue(v).values;\n}\nfunction buildTransformer({ split, types }) {\n const numSections = split.length;\n return (v) => {\n let output = \"\";\n for (let i = 0; i < numSections; i++) {\n output += split[i];\n if (v[i] !== undefined) {\n const type = types[i];\n if (type === NUMBER_TOKEN) {\n output += sanitize(v[i]);\n }\n else if (type === COLOR_TOKEN) {\n output += color.transform(v[i]);\n }\n else {\n output += v[i];\n }\n }\n }\n return output;\n };\n}\nfunction createTransformer(source) {\n return buildTransformer(analyseComplexValue(source));\n}\nconst convertNumbersToZero = (v) => typeof v === \"number\" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v;\n/**\n * Convert a parsed value to its zero equivalent, but preserve numbers\n * that act as divisors in CSS calc() expressions.\n *\n * analyseComplexValue extracts numbers from CSS strings and puts the\n * surrounding text into a `split` template array. For example:\n * \"calc(var(--gap) / 5)\" → values: [var(--gap), 5]\n * split: [\"calc(\", \" / \", \")\"]\n *\n * When building a zero-equivalent for animation, naively zeroing all\n * numbers turns the divisor into 0 → \"calc(var(--gap) / 0)\" → NaN.\n * We detect this by checking whether the text preceding a number\n * (split[i]) ends with \"/\" — the CSS calc division operator.\n */\nconst convertToZero = (value, splitBefore) => {\n if (typeof value === \"number\") {\n return splitBefore?.trim().endsWith(\"/\") ? value : 0;\n }\n return convertNumbersToZero(value);\n};\nfunction getAnimatableNone(v) {\n const info = analyseComplexValue(v);\n const transformer = buildTransformer(info);\n return transformer(info.values.map((value, i) => convertToZero(value, info.split[i])));\n}\nconst complex = {\n test,\n parse: parseComplexValue,\n createTransformer,\n getAnimatableNone,\n};\n\nexport { analyseComplexValue, complex, hasComplexValues };\n//# sourceMappingURL=index.mjs.map\n"],"names":["hasFloat","RegExp","floatRegex","source","hasColor","colorRegex","NUMBER_TOKEN","COLOR_TOKEN","complexRegex","analyseComplexValue","value","originalValue","toString","values","indexes","color","number","var","types","i","split","replace","parsedValue","test","push","parse","startsWith","parseFloat","buildTransformer","numSections","length","v","output","undefined","type","sanitize","transform","convertToZero","splitBefore","trim","endsWith","getAnimatableNone","complex","isNaN","createTransformer","info","transformer","map","asString"],"mappings":"mOAYA,MAAMA,EAAyB,IAAIC,OAAOC,EAAUA,WAACC,QAC/CC,EAAyB,IAAIH,OAAOI,EAAUA,WAACF,OAAQ,KAU7D,MAAMG,EAAe,SACfC,EAAc,QAwBdC,EACF,8OAYE,SAAUC,EACZC,GAEA,MAAMC,EAAgBD,EAAME,WAEtBC,EAAwB,GACxBC,EAAwB,CAC1BC,MAAO,GACPC,OAAQ,GACRC,IAAK,IAEHC,EAAmC,GAEzC,IAAIC,EAAI,EACR,MAiBMC,EAjBYT,EAAcU,QAAQb,EAAec,IAC/CP,EAAKA,MAACQ,KAAKD,IACXR,EAAQC,MAAMS,KAAKL,GACnBD,EAAMM,KAAKjB,GACXM,EAAOW,KAAKT,EAAAA,MAAMU,MAAMH,KACjBA,EAAYI,WAtDJ,SAuDfZ,EAAQG,IAAIO,KAAKL,GACjBD,EAAMM,KAzDA,OA0DNX,EAAOW,KAAKF,KAEZR,EAAQE,OAAOQ,KAAKL,GACpBD,EAAMM,KAAKlB,GACXO,EAAOW,KAAKG,WAAWL,OAEzBH,EA9DU,QAiEQC,MAjER,OAmEhB,MAAO,CAAEP,SAAQO,QAAON,UAASI,QACrC,CAMA,SAASU,GAAiBR,MAAEA,EAAKF,MAAEA,IAC/B,MAAMW,EAAcT,EAAMU,OAC1B,OAAQC,IACJ,IAAIC,EAAS,GACb,IAAK,IAAIb,EAAI,EAAGA,EAAIU,EAAaV,IAE7B,GADAa,GAAUZ,EAAMD,QACHc,IAATF,EAAEZ,GAAkB,CACpB,MAAMe,EAAOhB,EAAMC,GAEfa,GADAE,IAAS5B,EACC6B,EAAQA,SAACJ,EAAEZ,IACde,IAAS3B,EACNQ,EAAAA,MAAMqB,UAAUL,EAAEZ,IAElBY,EAAEZ,EAEpB,CAGJ,OAAOa,EAEf,CAMA,MAiBMK,EAAgBA,CAClB3B,EACA4B,KAEA,MAAqB,iBAAV5B,EACA4B,GAAaC,OAAOC,SAAS,KAAO9B,EAAQ,EArB1C,iBADaqB,EAwBErB,GAvBJ,EAAIK,EAAKA,MAACQ,KAAKQ,GAAKhB,EAAKA,MAAC0B,kBAAkBV,GAAKA,EAD/CA,OAmCvB,MAAMW,EAAU,CACnBnB,KApJJ,SAAcQ,GACV,OACIY,MAAMZ,IACO,iBAANA,IACN/B,EAASuB,KAAKQ,IAAM3B,EAASmB,KAAKQ,GAE3C,EA+IIN,MAnEJ,SAA2BM,GACvB,OAAOtB,EAAoBsB,GAAGlB,MAClC,EAkEI+B,kBA1CJ,SAA2BzC,GACvB,OAAOyB,EAAiBnB,EAAoBN,GAChD,EAyCIsC,kBAZJ,SAA2BV,GACvB,MAAMc,EAAOpC,EAAoBsB,GAEjC,OADoBH,EAAiBiB,EAC9BC,CACHD,EAAKhC,OAAOkC,IAAI,CAACrC,EAAOS,IAAMkB,EAAc3B,EAAOmC,EAAKzB,MAAMD,KAEtE,4EAxGM,SAA2BT,GAC7B,MAAMsC,EAAWtC,EAAME,WACvB,OAAOZ,EAASuB,KAAKyB,IAAa5C,EAASmB,KAAKyB,EACpD"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.asNumber=e=>"number"==typeof e?e:parseFloat(e);
2
+ //# sourceMappingURL=as-number.mjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"as-number.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/value/utils/as-number.mjs"],"sourcesContent":["const asNumber = (v) => typeof v === \"number\" ? v : parseFloat(v);\n\nexport { asNumber };\n//# sourceMappingURL=as-number.mjs.map\n"],"names":["v","parseFloat"],"mappings":"qFAEyBA,GACR,iBAANA,EAAiBA,EAAIC,WAAWD"}
@@ -1 +1 @@
1
- {"version":3,"file":"circ.mjs.js","sources":["../../../../../../node_modules/motion-utils/dist/es/easing/circ.mjs"],"sourcesContent":["import { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst circIn = (p) => 1 - Math.sin(Math.acos(p));\nconst circOut = reverseEasing(circIn);\nconst circInOut = mirrorEasing(circIn);\n\nexport { circIn, circInOut, circOut };\n//# sourceMappingURL=circ.mjs.map\n"],"names":["circIn","p","Math","sin","acos","circOut","reverseEasing","circInOut","mirrorEasing"],"mappings":"+GAIaA,MAAAA,EAA0BC,GAAM,EAAIC,KAAKC,IAAID,KAAKE,KAAKH,IACvDI,wCAAuBC,cAACN,GACxBO,EAAYC,EAAYA,aAACR"}
1
+ {"version":3,"file":"circ.mjs.js","sources":["../../../../../../node_modules/motion-utils/dist/es/easing/circ.mjs"],"sourcesContent":["import { mirrorEasing } from './modifiers/mirror.mjs';\nimport { reverseEasing } from './modifiers/reverse.mjs';\n\nconst circIn = (p) => 1 - Math.sin(Math.acos(p));\nconst circOut = /* @__PURE__ */ reverseEasing(circIn);\nconst circInOut = /* @__PURE__ */ mirrorEasing(circIn);\n\nexport { circIn, circInOut, circOut };\n//# sourceMappingURL=circ.mjs.map\n"],"names":["circIn","p","Math","sin","acos","circOut","reverseEasing","circInOut","mirrorEasing"],"mappings":"+GAIaA,MAAAA,EAA0BC,GAAM,EAAIC,KAAKC,IAAID,KAAKE,KAAKH,IACvDI,wCAAuCC,cAACN,GACxCO,EAA4BC,EAAYA,aAACR"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../noop.mjs.js");const r=(e,r,t)=>(((1-3*t+3*r)*e+(3*t-6*r))*e+3*r)*e;exports.cubicBezier=function(t,o,n,s){if(t===o&&n===s)return e.noop;const u=e=>function(e,t,o,n,s){let u,i,c=0;do{i=t+(o-t)/2,u=r(i,n,s)-e,u>0?o=i:t=i}while(Math.abs(u)>1e-7&&++c<12);return i}(e,0,1,t,n);return e=>0===e||1===e?e:r(u(e),o,s)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../noop.mjs.js");const r=(e,r,t)=>e*(3*(1-e)*((1-e)*r+e*t)+e*e);exports.cubicBezier=function(t,o,n,s){return t===o&&n===s?e.noop:e=>{let u=0,c=1,i=e;for(let o=0;;o++){i>=u&&i<=c||(i=(u+c)/2);const s=r(i,t,n)-e;if(s*s<1e-28||40===o)break;s>0?c=i:u=i,i-=1e-7*s/(r(i+1e-7,t,n)-e-s)}return r(i,o,s)}};
2
2
  //# sourceMappingURL=cubic-bezier.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cubic-bezier.mjs.js","sources":["../../../../../../node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs"],"sourcesContent":["import { noop } from '../noop.mjs';\n\n/*\n Bezier function generator\n This has been modified from Gaëtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n \n I've removed the newtonRaphsonIterate algo because in benchmarking it\n wasn't noticeably faster than binarySubdivision, indeed removing it\n usually improved times, depending on the curve.\n I also removed the lookup table, as for the added bundle size and loop we're\n only cutting ~4 or so subdivision iterations. I bumped the max iterations up\n to 12 to compensate and this still tended to be faster for no perceivable\n loss in accuracy.\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nconst calcBezier = (t, a1, a2) => (((1.0 - 3.0 * a2 + 3.0 * a1) * t + (3.0 * a2 - 6.0 * a1)) * t + 3.0 * a1) *\n t;\nconst subdivisionPrecision = 0.0000001;\nconst subdivisionMaxIterations = 12;\nfunction binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {\n let currentX;\n let currentT;\n let i = 0;\n do {\n currentT = lowerBound + (upperBound - lowerBound) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - x;\n if (currentX > 0.0) {\n upperBound = currentT;\n }\n else {\n lowerBound = currentT;\n }\n } while (Math.abs(currentX) > subdivisionPrecision &&\n ++i < subdivisionMaxIterations);\n return currentT;\n}\n/*#__NO_SIDE_EFFECTS__*/\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noop;\n const getTForX = (aX) => binarySubdivide(aX, 0, 1, mX1, mX2);\n // If animation is at start/end, return t without easing\n return (t) => t === 0 || t === 1 ? t : calcBezier(getTForX(t), mY1, mY2);\n}\n\nexport { cubicBezier };\n//# sourceMappingURL=cubic-bezier.mjs.map\n"],"names":["calcBezier","t","a1","a2","mX1","mY1","mX2","mY2","noop","getTForX","aX","x","lowerBound","upperBound","currentX","currentT","i","Math","abs","binarySubdivide"],"mappings":"oGAqBA,MAAMA,EAAaA,CAACC,EAAWC,EAAYC,OACpC,EAAM,EAAMA,EAAK,EAAMD,GAAMD,GAAK,EAAME,EAAK,EAAMD,IAAOD,EAAI,EAAMC,GACvED,sBAiCE,SACFG,EACAC,EACAC,EACAC,GAGA,GAAIH,IAAQC,GAAOC,IAAQC,EAAK,OAAOC,EAAAA,KAEvC,MAAMC,EAAYC,GArCtB,SACIC,EACAC,EACAC,EACAT,EACAE,GAEA,IAAIQ,EACAC,EACAC,EAAY,EAEhB,GACID,EAAWH,GAAcC,EAAaD,GAAc,EACpDE,EAAWd,EAAWe,EAAUX,EAAKE,GAAOK,EACxCG,EAAW,EACXD,EAAaE,EAEbH,EAAaG,QAGjBE,KAAKC,IAAIJ,GAvBY,QAwBnBE,EAvBuB,IA0B7B,OAAOD,CACX,CAYqCI,CAAgBT,EAAI,EAAG,EAAGN,EAAKE,GAGhE,OAAQL,GACE,IAANA,GAAiB,IAANA,EAAUA,EAAID,EAAWS,EAASR,GAAII,EAAKE,EAC9D"}
1
+ {"version":3,"file":"cubic-bezier.mjs.js","sources":["../../../../../../node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs"],"sourcesContent":["import { noop } from '../noop.mjs';\n\n/*\n Bezier function generator\n This has been modified from Gaëtan Renaudeau's BezierEasing\n https://github.com/gre/bezier-easing/blob/master/src/index.js\n https://github.com/gre/bezier-easing/blob/master/LICENSE\n\n t is found for a given x with Newton-Raphson, safeguarded by a bisection\n bracket: whenever a Newton step would leave the bracket (near flat parts\n of the curve), it bisects instead. This converges to full precision in\n ~5 iterations on typical curves, so output is smooth rather than snapped\n to a fixed bisection grid. The slope is estimated with a forward\n difference, and the lookup table is omitted, to save bytes.\n\n x = 0 and x = 1 return exactly 0 and 1. x outside [0, 1] starts outside\n the bracket, so it bisects towards the nearer end and saturates to within\n ~1e-12 of 0 or 1.\n Usage\n const easeOut = cubicBezier(.17,.67,.83,.67);\n const x = easeOut(0.5); // returns 0.627...\n*/\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\n// Bernstein form, so it is exactly 0 at t = 0 and exactly 1 at t = 1.\nconst calcBezier = (t, a1, a2) => t * (3 * (1 - t) * ((1 - t) * a1 + t * a2) + t * t);\n/*#__NO_SIDE_EFFECTS__*/\nfunction cubicBezier(mX1, mY1, mX2, mY2) {\n // If this is a linear gradient, return linear easing\n if (mX1 === mY1 && mX2 === mY2)\n return noop;\n return (x) => {\n let lowerBound = 0;\n let upperBound = 1;\n let t = x;\n for (let i = 0;; i++) {\n // If t is outside the bracket, because x is out of range or a\n // Newton step overshot where the slope is ~0, bisect instead.\n if (!(t >= lowerBound && t <= upperBound)) {\n t = (lowerBound + upperBound) / 2;\n }\n const currentX = calcBezier(t, mX1, mX2) - x;\n if (currentX * currentX < 1e-28 || i === 40)\n break;\n currentX > 0 ? (upperBound = t) : (lowerBound = t);\n // Newton-Raphson step, with dx/dt from a forward difference\n t -=\n (currentX * 1e-7) /\n (calcBezier(t + 1e-7, mX1, mX2) - x - currentX);\n }\n return calcBezier(t, mY1, mY2);\n };\n}\n\nexport { cubicBezier };\n//# sourceMappingURL=cubic-bezier.mjs.map\n"],"names":["calcBezier","t","a1","a2","mX1","mY1","mX2","mY2","noop","x","lowerBound","upperBound","i","currentX"],"mappings":"oGAyBA,MAAMA,EAAaA,CAACC,EAAWC,EAAYC,IACvCF,GAAK,GAAK,EAAIA,KAAO,EAAIA,GAAKC,EAAKD,EAAIE,GAAMF,EAAIA,uBAG/C,SACFG,EACAC,EACAC,EACAC,GAGA,OAAIH,IAAQC,GAAOC,IAAQC,EAAYC,EAAAA,KAE/BC,IACJ,IAAIC,EAAa,EACbC,EAAa,EACbV,EAAIQ,EAER,IAAK,IAAIG,EAAI,GAAKA,IAAK,CAGbX,GAAKS,GAAcT,GAAKU,IAC1BV,GAAKS,EAAaC,GAAc,GAGpC,MAAME,EAAWb,EAAWC,EAAGG,EAAKE,GAAOG,EAC3C,GAAII,EAAWA,EAAW,OAAe,KAAND,EAAU,MAC7CC,EAAW,EAAKF,EAAaV,EAAMS,EAAaT,EAGhDA,GACgB,KAAXY,GACAb,EAAWC,EAAI,KAAMG,EAAKE,GAAOG,EAAII,EAC9C,CAEA,OAAOb,EAAWC,EAAGI,EAAKE,GAElC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./format-error-message.mjs.js");exports.warning=()=>{},exports.invariant=()=>{},"undefined"!=typeof process&&"production"!==process.env?.NODE_ENV&&(exports.warning=(e,o,s)=>{e||"undefined"==typeof console||console.warn(r.formatErrorMessage(o,s))},exports.invariant=(e,o,s)=>{if(!e)throw new Error(r.formatErrorMessage(o,s))});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./format-error-message.mjs.js");exports.warning=()=>{},exports.invariant=()=>{},"undefined"!=typeof process&&"production"!==process.env.NODE_ENV&&(exports.warning=(e,o,s)=>{e||"undefined"==typeof console||console.warn(r.formatErrorMessage(o,s))},exports.invariant=(e,o,s)=>{if(!e)throw new Error(r.formatErrorMessage(o,s))});
2
2
  //# sourceMappingURL=errors.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.mjs.js","sources":["../../../../../node_modules/motion-utils/dist/es/errors.mjs"],"sourcesContent":["import { formatErrorMessage } from './format-error-message.mjs';\n\nlet warning = () => { };\nlet invariant = () => { };\nif (typeof process !== \"undefined\" &&\n process.env?.NODE_ENV !== \"production\") {\n warning = (check, message, errorCode) => {\n if (!check && typeof console !== \"undefined\") {\n console.warn(formatErrorMessage(message, errorCode));\n }\n };\n invariant = (check, message, errorCode) => {\n if (!check) {\n throw new Error(formatErrorMessage(message, errorCode));\n }\n };\n}\n\nexport { invariant, warning };\n//# sourceMappingURL=errors.mjs.map\n"],"names":["warning","invariant","process","env","NODE_ENV","check","message","errorCode","console","warn","formatErrorMessage","Error"],"mappings":"mHAQIA,QAAOA,QAAeA,OACtBC,QAASA,UAAeA,OAGL,oBAAZC,SACmB,eAA1BA,QAAQC,KAAKC,WAEbJ,QAAAA,QAAUA,CAACK,EAAOC,EAASC,KAClBF,GAA4B,oBAAZG,SACjBA,QAAQC,KAAKC,EAAAA,mBAAmBJ,EAASC,KAIjDN,QAAAA,UAAYA,CAACI,EAAOC,EAASC,KACzB,IAAKF,EACD,MAAM,IAAIM,MAAMD,EAAAA,mBAAmBJ,EAASC"}
1
+ {"version":3,"file":"errors.mjs.js","sources":["../../../../../node_modules/motion-utils/dist/es/errors.mjs"],"sourcesContent":["import { formatErrorMessage } from './format-error-message.mjs';\n\nlet warning = () => { };\nlet invariant = () => { };\nif (typeof process !== \"undefined\" && process.env.NODE_ENV !== \"production\") {\n warning = (check, message, errorCode) => {\n if (!check && typeof console !== \"undefined\") {\n console.warn(formatErrorMessage(message, errorCode));\n }\n };\n invariant = (check, message, errorCode) => {\n if (!check) {\n throw new Error(formatErrorMessage(message, errorCode));\n }\n };\n}\n\nexport { invariant, warning };\n//# sourceMappingURL=errors.mjs.map\n"],"names":["warning","invariant","process","env","NODE_ENV","check","message","errorCode","console","warn","formatErrorMessage","Error"],"mappings":"mHAQIA,QAAOA,QAAeA,OACtBC,QAASA,UAAeA,OAEL,oBAAZC,SAAoD,eAAzBA,QAAQC,IAAIC,WAC9CJ,QAAAA,QAAUA,CAACK,EAAOC,EAASC,KAClBF,GAA4B,oBAAZG,SACjBA,QAAQC,KAAKC,EAAAA,mBAAmBJ,EAASC,KAIjDN,QAAAA,UAAYA,CAACI,EAAOC,EAASC,KACzB,IAAKF,EACD,MAAM,IAAIM,MAAMD,EAAAA,mBAAmBJ,EAASC"}