@nethesis/phone-island 1.0.15-dev.2 → 1.0.15-dev.4

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 (270) hide show
  1. package/dist/components/AudioPlayerView/index.js +1 -1
  2. package/dist/components/AudioPlayerView/index.js.map +1 -1
  3. package/dist/components/CallView/Actions.js.map +1 -1
  4. package/dist/components/CallView/index.js +1 -1
  5. package/dist/components/CallView/index.js.map +1 -1
  6. package/dist/components/RecorderView/index.js +1 -1
  7. package/dist/components/RecorderView/index.js.map +1 -1
  8. package/dist/components/SideView/SideView.js.map +1 -1
  9. package/dist/components/Socket.js +1 -1
  10. package/dist/components/Socket.js.map +1 -1
  11. package/dist/components/StreamingAnswerView/index.js.map +1 -1
  12. package/dist/components/TranscriptionView/TranscriptionView.js +1 -1
  13. package/dist/components/TranscriptionView/TranscriptionView.js.map +1 -1
  14. package/dist/components/VideoView/index.js.map +1 -1
  15. package/dist/components/WebRTC.js +1 -1
  16. package/dist/components/WebRTC.js.map +1 -1
  17. package/dist/events/RecorderEvents.js +1 -1
  18. package/dist/events/RecorderEvents.js.map +1 -1
  19. package/dist/index.css +1 -1
  20. package/dist/lib/devices/devices.js +1 -1
  21. package/dist/lib/devices/devices.js.map +1 -1
  22. package/dist/models/motions.js.map +1 -1
  23. package/dist/models/webrtc.js.map +1 -1
  24. package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +1 -1
  25. package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js.map +1 -1
  26. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +1 -1
  27. package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +1 -1
  28. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +1 -1
  29. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +1 -1
  30. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +1 -1
  31. package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +1 -1
  32. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +1 -1
  33. package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +1 -1
  34. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +1 -1
  35. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +1 -1
  36. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +1 -1
  37. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +1 -1
  38. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +1 -1
  39. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +1 -1
  40. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +1 -1
  41. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +1 -1
  42. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +1 -1
  43. package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +1 -1
  44. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +1 -1
  45. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +1 -1
  46. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +1 -1
  47. package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +1 -1
  48. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +1 -1
  49. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +1 -1
  50. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +1 -1
  51. package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +1 -1
  52. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +1 -1
  53. package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +1 -1
  54. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +1 -1
  55. package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +1 -1
  56. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +1 -1
  57. package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +1 -1
  58. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +1 -1
  59. package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +1 -1
  60. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +1 -1
  61. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +1 -1
  62. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +1 -1
  63. package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +1 -1
  64. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +1 -1
  65. package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +1 -1
  66. package/dist/node_modules/@headlessui/react/dist/internal/floating.js +1 -1
  67. package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +1 -1
  68. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +1 -1
  69. package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +1 -1
  70. package/dist/node_modules/@headlessui/react/dist/machine.js +1 -1
  71. package/dist/node_modules/@headlessui/react/dist/machine.js.map +1 -1
  72. package/dist/node_modules/@headlessui/react/dist/react-glue.js +1 -1
  73. package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +1 -1
  74. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +1 -1
  75. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +1 -1
  76. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +1 -1
  77. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +1 -1
  78. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +1 -1
  79. package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +1 -1
  80. package/dist/node_modules/@headlessui/react/dist/utils/match.js +1 -1
  81. package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +1 -1
  82. package/dist/node_modules/@headlessui/react/dist/utils/render.js +1 -1
  83. package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +1 -1
  84. package/dist/node_modules/@headlessui/react/dist/utils/store.js +1 -1
  85. package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +1 -1
  86. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js +1 -1
  87. package/dist/node_modules/@react-aria/focus/dist/FocusScope.mjs.js.map +1 -1
  88. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js +1 -1
  89. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.mjs.js.map +1 -1
  90. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js +1 -1
  91. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.mjs.js.map +1 -1
  92. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js +1 -1
  93. package/dist/node_modules/@react-aria/utils/dist/useEffectEvent.mjs.js.map +1 -1
  94. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js +1 -1
  95. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs.js.map +1 -1
  96. package/dist/node_modules/engine.io-client/build/esm/socket.js +1 -1
  97. package/dist/node_modules/engine.io-client/build/esm/socket.js.map +1 -1
  98. package/dist/node_modules/engine.io-client/build/esm/transport.js +1 -1
  99. package/dist/node_modules/engine.io-client/build/esm/transport.js.map +1 -1
  100. package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +1 -1
  101. package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js.map +1 -1
  102. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js +1 -1
  103. package/dist/node_modules/engine.io-client/build/esm/transports/webtransport.js.map +1 -1
  104. package/dist/node_modules/engine.io-client/build/esm/util.js +1 -1
  105. package/dist/node_modules/engine.io-client/build/esm/util.js.map +1 -1
  106. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +1 -1
  107. package/dist/node_modules/engine.io-parser/build/esm/encodePacket.browser.js.map +1 -1
  108. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js +1 -1
  109. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs.js.map +1 -1
  110. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  111. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js.map +1 -1
  112. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  113. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js.map +1 -1
  114. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +1 -1
  115. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js.map +1 -1
  116. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js +1 -1
  117. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs.js.map +1 -1
  118. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js +1 -1
  119. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs.js.map +1 -1
  120. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js +1 -1
  121. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs.js.map +1 -1
  122. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js +1 -1
  123. package/dist/node_modules/framer-motion/dist/es/gestures/press.mjs.js.map +1 -1
  124. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js +1 -1
  125. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs.js.map +1 -1
  126. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +1 -1
  127. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js.map +1 -1
  128. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  129. package/dist/node_modules/framer-motion/dist/es/motion/index.mjs.js.map +1 -1
  130. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
  131. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js.map +1 -1
  132. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  133. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js.map +1 -1
  134. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
  135. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js.map +1 -1
  136. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js +1 -1
  137. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.mjs.js.map +1 -1
  138. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs.js +1 -1
  139. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs.js.map +1 -1
  140. package/dist/node_modules/js-base64/base64.mjs.js +1 -1
  141. package/dist/node_modules/js-base64/base64.mjs.js.map +1 -1
  142. package/dist/node_modules/moment/moment.js +2 -2
  143. package/dist/node_modules/moment/moment.js.map +1 -1
  144. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js +1 -1
  145. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs.js.map +1 -1
  146. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js +1 -1
  147. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.mjs.js.map +1 -1
  148. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js +1 -1
  149. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs.js.map +1 -1
  150. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js +1 -1
  151. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs.js.map +1 -1
  152. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js +1 -1
  153. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs.js.map +1 -1
  154. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js +1 -1
  155. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs.js.map +1 -1
  156. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js +1 -1
  157. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.mjs.js.map +1 -1
  158. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js +1 -1
  159. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs.js.map +1 -1
  160. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js +1 -1
  161. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs.js.map +1 -1
  162. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js +1 -1
  163. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs.js.map +1 -1
  164. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js +1 -1
  165. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs.js.map +1 -1
  166. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js +1 -1
  167. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs.js.map +1 -1
  168. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js +1 -1
  169. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs.js.map +1 -1
  170. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js +1 -1
  171. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs.js.map +1 -1
  172. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js +1 -1
  173. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs.js.map +1 -1
  174. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js +1 -1
  175. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs.js.map +1 -1
  176. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs.js +1 -1
  177. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs.js.map +1 -1
  178. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js +1 -1
  179. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs.js.map +1 -1
  180. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs.js +1 -1
  181. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs.js.map +1 -1
  182. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js +1 -1
  183. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs.js.map +1 -1
  184. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js +1 -1
  185. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs.js.map +1 -1
  186. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js +1 -1
  187. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs.js.map +1 -1
  188. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js +1 -1
  189. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs.js.map +1 -1
  190. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.mjs.js +1 -1
  191. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.mjs.js.map +1 -1
  192. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js +1 -1
  193. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.mjs.js.map +1 -1
  194. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js +1 -1
  195. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.mjs.js.map +1 -1
  196. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js +1 -1
  197. package/dist/node_modules/motion-dom/dist/es/gestures/hover.mjs.js.map +1 -1
  198. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js +1 -1
  199. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.mjs.js.map +1 -1
  200. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs.js +1 -1
  201. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs.js.map +1 -1
  202. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js +1 -1
  203. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs.js.map +1 -1
  204. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs.js +1 -1
  205. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs.js.map +1 -1
  206. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs.js +1 -1
  207. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs.js.map +1 -1
  208. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js +1 -1
  209. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.mjs.js.map +1 -1
  210. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs.js +1 -1
  211. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.mjs.js.map +1 -1
  212. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js +1 -1
  213. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs.js.map +1 -1
  214. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js +1 -1
  215. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.mjs.js.map +1 -1
  216. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js +1 -1
  217. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.mjs.js.map +1 -1
  218. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs.js +1 -1
  219. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs.js.map +1 -1
  220. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.mjs.js +1 -1
  221. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.mjs.js.map +1 -1
  222. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
  223. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs.js.map +1 -1
  224. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs.js +1 -1
  225. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.mjs.js.map +1 -1
  226. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js +1 -1
  227. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs.js.map +1 -1
  228. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js +1 -1
  229. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs.js.map +1 -1
  230. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.mjs.js +1 -1
  231. package/dist/node_modules/motion-dom/dist/es/resize/handle-element.mjs.js.map +1 -1
  232. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js +1 -1
  233. package/dist/node_modules/motion-dom/dist/es/utils/delay.mjs.js.map +1 -1
  234. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js +1 -1
  235. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.mjs.js.map +1 -1
  236. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js +1 -1
  237. package/dist/node_modules/motion-dom/dist/es/value/index.mjs.js.map +1 -1
  238. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js +1 -1
  239. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs.js.map +1 -1
  240. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js +1 -1
  241. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.mjs.js.map +1 -1
  242. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js +1 -1
  243. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.mjs.js.map +1 -1
  244. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js +1 -1
  245. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.mjs.js.map +1 -1
  246. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js +1 -1
  247. package/dist/node_modules/motion-utils/dist/es/pipe.mjs.js.map +1 -1
  248. package/dist/node_modules/react-redux/es/components/Provider.js +1 -1
  249. package/dist/node_modules/react-redux/es/components/Provider.js.map +1 -1
  250. package/dist/node_modules/react-redux/es/hooks/useDispatch.js +1 -1
  251. package/dist/node_modules/react-redux/es/hooks/useDispatch.js.map +1 -1
  252. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js +1 -1
  253. package/dist/node_modules/react-redux/es/hooks/useReduxContext.js.map +1 -1
  254. package/dist/node_modules/react-redux/es/hooks/useSelector.js +1 -1
  255. package/dist/node_modules/react-redux/es/hooks/useSelector.js.map +1 -1
  256. package/dist/node_modules/react-redux/es/hooks/useStore.js +1 -1
  257. package/dist/node_modules/react-redux/es/hooks/useStore.js.map +1 -1
  258. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js +1 -1
  259. package/dist/node_modules/react-tooltip/dist/react-tooltip.min.mjs.js.map +1 -1
  260. package/dist/node_modules/socket.io-client/build/esm/socket.js +1 -1
  261. package/dist/node_modules/socket.io-client/build/esm/socket.js.map +1 -1
  262. package/dist/node_modules/socket.io-client/build/esm/url.js +1 -1
  263. package/dist/node_modules/socket.io-client/build/esm/url.js.map +1 -1
  264. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js +1 -1
  265. package/dist/node_modules/webrtc-adapter/src/js/adapter_factory.js.map +1 -1
  266. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js +1 -1
  267. package/dist/node_modules/webrtc-adapter/src/js/safari/safari_shim.js.map +1 -1
  268. package/dist/package.json.js +1 -1
  269. package/dist/services/astproxy.js.map +1 -1
  270. package/package.json +7 -22
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../AsyncMotionValueAnimation.mjs.js"),i=require("../JSAnimation.mjs.js"),t=require("../utils/get-value-transition.mjs.js"),n=require("../utils/make-animation-instant.mjs.js"),o=require("../utils/default-transitions.mjs.js"),s=require("../keyframes/get-final.mjs.js"),a=require("../utils/is-transition-defined.mjs.js"),r=require("../../frameloop/frame.mjs.js"),l=require("../../../../../motion-utils/dist/es/time-conversion.mjs.js"),m=require("../../../../../motion-utils/dist/es/global-config.mjs.js");exports.animateMotionValue=function(u,d,y){let p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=arguments.length>4?arguments[4]:void 0,j=arguments.length>5?arguments[5]:void 0;return c=>{const g=t.getValueTransition(p,u)||{},A=g.delay||p.delay||0;let{elapsed:v=0}=p;v-=l.secondsToMilliseconds(A);const k={keyframes:Array.isArray(y)?y:[null,y],ease:"easeOut",velocity:d.getVelocity(),...g,delay:-v,onUpdate:e=>{d.set(e),g.onUpdate&&g.onUpdate(e)},onComplete:()=>{c(),g.onComplete&&g.onComplete()},name:u,motionValue:d,element:j?void 0:f};a.isTransitionDefined(g)||Object.assign(k,o.getDefaultTransition(u,k)),k.duration&&(k.duration=l.secondsToMilliseconds(k.duration)),k.repeatDelay&&(k.repeatDelay=l.secondsToMilliseconds(k.repeatDelay)),void 0!==k.from&&(k.keyframes[0]=k.from);let q=!1;if((!1===k.type||0===k.duration&&!k.repeatDelay)&&(n.makeAnimationInstant(k),0===k.delay&&(q=!0)),(m.MotionGlobalConfig.instantAnimations||m.MotionGlobalConfig.skipAnimations||f?.shouldSkipAnimations||g.skipAnimations)&&(q=!0,n.makeAnimationInstant(k),k.delay=0),k.allowFlatten=!g.type&&!g.ease,q&&!j&&void 0!==d.get()){const e=s.getFinalKeyframe(k.keyframes,g);if(void 0!==e)return void r.frame.update(()=>{k.onUpdate(e),k.onComplete()})}return g.isSync?new i.JSAnimation(k):new e.AsyncMotionValueAnimation(k)}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../AsyncMotionValueAnimation.mjs.js"),i=require("../JSAnimation.mjs.js"),t=require("../utils/get-value-transition.mjs.js"),n=require("../utils/make-animation-instant.mjs.js"),o=require("../utils/default-transitions.mjs.js"),s=require("../keyframes/get-final.mjs.js"),a=require("../utils/is-transition-defined.mjs.js"),r=require("../../frameloop/frame.mjs.js"),l=require("../../../../../motion-utils/dist/es/time-conversion.mjs.js"),m=require("../../../../../motion-utils/dist/es/global-config.mjs.js");exports.animateMotionValue=(u,d,y,p={},j,f)=>c=>{const A=t.getValueTransition(p,u)||{},g=A.delay||p.delay||0;let{elapsed:k=0}=p;k-=l.secondsToMilliseconds(g);const q={keyframes:Array.isArray(y)?y:[null,y],ease:"easeOut",velocity:d.getVelocity(),...A,delay:-k,onUpdate:e=>{d.set(e),A.onUpdate&&A.onUpdate(e)},onComplete:()=>{c(),A.onComplete&&A.onComplete()},name:u,motionValue:d,element:f?void 0:j};a.isTransitionDefined(A)||Object.assign(q,o.getDefaultTransition(u,q)),q.duration&&(q.duration=l.secondsToMilliseconds(q.duration)),q.repeatDelay&&(q.repeatDelay=l.secondsToMilliseconds(q.repeatDelay)),void 0!==q.from&&(q.keyframes[0]=q.from);let v=!1;if((!1===q.type||0===q.duration&&!q.repeatDelay)&&(n.makeAnimationInstant(q),0===q.delay&&(v=!0)),(m.MotionGlobalConfig.instantAnimations||m.MotionGlobalConfig.skipAnimations||j?.shouldSkipAnimations||A.skipAnimations)&&(v=!0,n.makeAnimationInstant(q),q.delay=0),q.allowFlatten=!A.type&&!A.ease,v&&!f&&void 0!==d.get()){const e=s.getFinalKeyframe(q.keyframes,A);if(void 0!==e)return void r.frame.update(()=>{q.onUpdate(e),q.onComplete()})}return A.isSync?new i.JSAnimation(q):new e.AsyncMotionValueAnimation(q)};
2
2
  //# sourceMappingURL=motion-value.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"motion-value.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs"],"sourcesContent":["import { secondsToMilliseconds, MotionGlobalConfig } from 'motion-utils';\nimport { AsyncMotionValueAnimation } from '../AsyncMotionValueAnimation.mjs';\nimport { JSAnimation } from '../JSAnimation.mjs';\nimport { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { makeAnimationInstant } from '../utils/make-animation-instant.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { getFinalKeyframe } from '../keyframes/get-final.mjs';\nimport { isTransitionDefined } from '../utils/is-transition-defined.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {\n const valueTransition = getValueTransition(transition, name) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n const options = {\n keyframes: Array.isArray(target) ? target : [null, target],\n ease: \"easeOut\",\n velocity: value.getVelocity(),\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n },\n name,\n motionValue: value,\n element: isHandoff ? undefined : element,\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unique transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n Object.assign(options, getDefaultTransition(name, options));\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n options.duration && (options.duration = secondsToMilliseconds(options.duration));\n options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n /**\n * Support deprecated way to set initial value. Prefer keyframe syntax.\n */\n if (options.from !== undefined) {\n options.keyframes[0] = options.from;\n }\n let shouldSkip = false;\n if (options.type === false ||\n (options.duration === 0 && !options.repeatDelay)) {\n makeAnimationInstant(options);\n if (options.delay === 0) {\n shouldSkip = true;\n }\n }\n if (MotionGlobalConfig.instantAnimations ||\n MotionGlobalConfig.skipAnimations ||\n element?.shouldSkipAnimations ||\n valueTransition.skipAnimations) {\n shouldSkip = true;\n makeAnimationInstant(options);\n options.delay = 0;\n }\n /**\n * If the transition type or easing has been explicitly set by the user\n * then we don't want to allow flattening the animation.\n */\n options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n /**\n * If we can or must skip creating the animation, and apply only\n * the final keyframe, do so. We also check once keyframes are resolved but\n * this early check prevents the need to create an animation at all.\n */\n if (shouldSkip && !isHandoff && value.get() !== undefined) {\n const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n if (finalKeyframe !== undefined) {\n frame.update(() => {\n options.onUpdate(finalKeyframe);\n options.onComplete();\n });\n return;\n }\n }\n return valueTransition.isSync\n ? new JSAnimation(options)\n : new AsyncMotionValueAnimation(options);\n};\n\nexport { animateMotionValue };\n//# sourceMappingURL=motion-value.mjs.map\n"],"names":["name","value","target","transition","arguments","length","undefined","element","isHandoff","onComplete","valueTransition","getValueTransition","delay","elapsed","secondsToMilliseconds","options","keyframes","Array","isArray","ease","velocity","getVelocity","onUpdate","v","set","motionValue","isTransitionDefined","Object","assign","getDefaultTransition","duration","repeatDelay","from","shouldSkip","type","makeAnimationInstant","MotionGlobalConfig","instantAnimations","skipAnimations","shouldSkipAnimations","allowFlatten","get","finalKeyframe","getFinalKeyframe","frame","update","isSync","JSAnimation","AsyncMotionValueAnimation"],"mappings":"omBAmBI,SACIA,EACAC,EACAC,GAAkC,IAClCC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAqD,CAAA,EACrDG,EAA4BH,UAAAC,OAAAD,EAAAA,kBAAAE,EAC5BE,EAAmBJ,UAAAC,OAAAD,EAAAA,kBAAAE,EAAA,OAEtBG,IACG,MAAMC,EAAkBC,EAAkBA,mBAACR,EAAYH,IAAS,CAAA,EAO1DY,EAAQF,EAAgBE,OAAST,EAAWS,OAAS,EAM3D,IAAIC,QAAEA,EAAU,GAAMV,EACtBU,GAAoBC,wBAAsBF,GAE1C,MAAMG,EAAiC,CACnCC,UAAWC,MAAMC,QAAQhB,GAAUA,EAAS,CAAC,KAAMA,GACnDiB,KAAM,UACNC,SAAUnB,EAAMoB,iBACbX,EACHE,OAAQC,EACRS,SAAWC,IACPtB,EAAMuB,IAAID,GACVb,EAAgBY,UAAYZ,EAAgBY,SAASC,IAEzDd,WAAYA,KACRA,IACAC,EAAgBD,YAAcC,EAAgBD,cAElDT,OACAyB,YAAaxB,EACbM,QAASC,OAAYF,EAAYC,GAOhCmB,EAAAA,oBAAoBhB,IACrBiB,OAAOC,OAAOb,EAASc,EAAoBA,qBAAC7B,EAAMe,IAQtDA,EAAQe,WAARf,EAAQe,SAAahB,EAAAA,sBAAsBC,EAAQe,WACnDf,EAAQgB,cAARhB,EAAQgB,YAAgBjB,EAAAA,sBAAsBC,EAAQgB,mBAKjCzB,IAAjBS,EAAQiB,OACRjB,EAAQC,UAAU,GAAKD,EAAQiB,MAGnC,IAAIC,GAAa,EAmCjB,KAhC8B,IAAzBlB,EAAgBmB,MACK,IAArBnB,EAAQe,WAAmBf,EAAQgB,eAEpCI,EAAoBA,qBAACpB,GAEC,IAAlBA,EAAQH,QACRqB,GAAa,KAKjBG,EAAkBA,mBAACC,mBACnBD,qBAAmBE,gBACnB/B,GAASgC,sBACT7B,EAAgB4B,kBAEhBL,GAAa,EACbE,EAAoBA,qBAACpB,GACrBA,EAAQH,MAAQ,GAOpBG,EAAQyB,cAAgB9B,EAAgBwB,OAASxB,EAAgBS,KAO7Dc,IAAezB,QAA6BF,IAAhBL,EAAMwC,MAAqB,CACvD,MAAMC,EAAgBC,EAAgBA,iBAClC5B,EAAQC,UACRN,GAGJ,QAAsBJ,IAAlBoC,EAMA,YALAE,EAAKA,MAACC,OAAO,KACT9B,EAAQO,SAAUoB,GAClB3B,EAAQN,cAKpB,CAEA,OAAOC,EAAgBoC,OACjB,IAAIC,EAAWA,YAAChC,GAChB,IAAIiC,EAAAA,0BAA0BjC,GACxC"}
1
+ {"version":3,"file":"motion-value.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs"],"sourcesContent":["import { secondsToMilliseconds, MotionGlobalConfig } from 'motion-utils';\nimport { AsyncMotionValueAnimation } from '../AsyncMotionValueAnimation.mjs';\nimport { JSAnimation } from '../JSAnimation.mjs';\nimport { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { makeAnimationInstant } from '../utils/make-animation-instant.mjs';\nimport { getDefaultTransition } from '../utils/default-transitions.mjs';\nimport { getFinalKeyframe } from '../keyframes/get-final.mjs';\nimport { isTransitionDefined } from '../utils/is-transition-defined.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {\n const valueTransition = getValueTransition(transition, name) || {};\n /**\n * Most transition values are currently completely overwritten by value-specific\n * transitions. In the future it'd be nicer to blend these transitions. But for now\n * delay actually does inherit from the root transition if not value-specific.\n */\n const delay = valueTransition.delay || transition.delay || 0;\n /**\n * Elapsed isn't a public transition option but can be passed through from\n * optimized appear effects in milliseconds.\n */\n let { elapsed = 0 } = transition;\n elapsed = elapsed - secondsToMilliseconds(delay);\n const options = {\n keyframes: Array.isArray(target) ? target : [null, target],\n ease: \"easeOut\",\n velocity: value.getVelocity(),\n ...valueTransition,\n delay: -elapsed,\n onUpdate: (v) => {\n value.set(v);\n valueTransition.onUpdate && valueTransition.onUpdate(v);\n },\n onComplete: () => {\n onComplete();\n valueTransition.onComplete && valueTransition.onComplete();\n },\n name,\n motionValue: value,\n element: isHandoff ? undefined : element,\n };\n /**\n * If there's no transition defined for this value, we can generate\n * unique transition settings for this value.\n */\n if (!isTransitionDefined(valueTransition)) {\n Object.assign(options, getDefaultTransition(name, options));\n }\n /**\n * Both WAAPI and our internal animation functions use durations\n * as defined by milliseconds, while our external API defines them\n * as seconds.\n */\n options.duration && (options.duration = secondsToMilliseconds(options.duration));\n options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));\n /**\n * Support deprecated way to set initial value. Prefer keyframe syntax.\n */\n if (options.from !== undefined) {\n options.keyframes[0] = options.from;\n }\n let shouldSkip = false;\n if (options.type === false ||\n (options.duration === 0 && !options.repeatDelay)) {\n makeAnimationInstant(options);\n if (options.delay === 0) {\n shouldSkip = true;\n }\n }\n if (MotionGlobalConfig.instantAnimations ||\n MotionGlobalConfig.skipAnimations ||\n element?.shouldSkipAnimations ||\n valueTransition.skipAnimations) {\n shouldSkip = true;\n makeAnimationInstant(options);\n options.delay = 0;\n }\n /**\n * If the transition type or easing has been explicitly set by the user\n * then we don't want to allow flattening the animation.\n */\n options.allowFlatten = !valueTransition.type && !valueTransition.ease;\n /**\n * If we can or must skip creating the animation, and apply only\n * the final keyframe, do so. We also check once keyframes are resolved but\n * this early check prevents the need to create an animation at all.\n */\n if (shouldSkip && !isHandoff && value.get() !== undefined) {\n const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);\n if (finalKeyframe !== undefined) {\n frame.update(() => {\n options.onUpdate(finalKeyframe);\n options.onComplete();\n });\n return;\n }\n }\n return valueTransition.isSync\n ? new JSAnimation(options)\n : new AsyncMotionValueAnimation(options);\n};\n\nexport { animateMotionValue };\n//# sourceMappingURL=motion-value.mjs.map\n"],"names":["animateMotionValue","name","value","target","transition","element","isHandoff","onComplete","valueTransition","getValueTransition","delay","elapsed","secondsToMilliseconds","options","keyframes","Array","isArray","ease","velocity","getVelocity","onUpdate","v","set","motionValue","undefined","isTransitionDefined","Object","assign","getDefaultTransition","duration","repeatDelay","from","shouldSkip","type","makeAnimationInstant","MotionGlobalConfig","instantAnimations","skipAnimations","shouldSkipAnimations","allowFlatten","get","finalKeyframe","getFinalKeyframe","frame","update","isSync","JSAnimation","AsyncMotionValueAnimation"],"mappings":"omBAmBIA,CACIC,EACAC,EACAC,EACAC,EAAqD,GACrDC,EACAC,IAEHC,IACG,MAAMC,EAAkBC,EAAkBA,mBAACL,EAAYH,IAAS,CAAA,EAO1DS,EAAQF,EAAgBE,OAASN,EAAWM,OAAS,EAM3D,IAAIC,QAAEA,EAAU,GAAMP,EACtBO,GAAoBC,wBAAsBF,GAE1C,MAAMG,EAAiC,CACnCC,UAAWC,MAAMC,QAAQb,GAAUA,EAAS,CAAC,KAAMA,GACnDc,KAAM,UACNC,SAAUhB,EAAMiB,iBACbX,EACHE,OAAQC,EACRS,SAAWC,IACPnB,EAAMoB,IAAID,GACVb,EAAgBY,UAAYZ,EAAgBY,SAASC,IAEzDd,WAAYA,KACRA,IACAC,EAAgBD,YAAcC,EAAgBD,cAElDN,OACAsB,YAAarB,EACbG,QAASC,OAAYkB,EAAYnB,GAOhCoB,EAAAA,oBAAoBjB,IACrBkB,OAAOC,OAAOd,EAASe,EAAoBA,qBAAC3B,EAAMY,IAQtDA,EAAQgB,WAARhB,EAAQgB,SAAajB,EAAAA,sBAAsBC,EAAQgB,WACnDhB,EAAQiB,cAARjB,EAAQiB,YAAgBlB,EAAAA,sBAAsBC,EAAQiB,mBAKjCN,IAAjBX,EAAQkB,OACRlB,EAAQC,UAAU,GAAKD,EAAQkB,MAGnC,IAAIC,GAAa,EAmCjB,KAhC8B,IAAzBnB,EAAgBoB,MACK,IAArBpB,EAAQgB,WAAmBhB,EAAQiB,eAEpCI,EAAoBA,qBAACrB,GAEC,IAAlBA,EAAQH,QACRsB,GAAa,KAKjBG,EAAkBA,mBAACC,mBACnBD,qBAAmBE,gBACnBhC,GAASiC,sBACT9B,EAAgB6B,kBAEhBL,GAAa,EACbE,EAAoBA,qBAACrB,GACrBA,EAAQH,MAAQ,GAOpBG,EAAQ0B,cAAgB/B,EAAgByB,OAASzB,EAAgBS,KAO7De,IAAe1B,QAA6BkB,IAAhBtB,EAAMsC,MAAqB,CACvD,MAAMC,EAAgBC,EAAgBA,iBAClC7B,EAAQC,UACRN,GAGJ,QAAsBgB,IAAlBiB,EAMA,YALAE,EAAKA,MAACC,OAAO,KACT/B,EAAQO,SAAUqB,GAClB5B,EAAQN,cAKpB,CAEA,OAAOC,EAAgBqC,OACjB,IAAIC,EAAWA,YAACjC,GAChB,IAAIkC,EAAAA,0BAA0BlC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/get-value-transition.mjs.js"),t=require("../utils/resolve-transition.mjs.js"),i=require("../../render/utils/keys-position.mjs.js"),n=require("../../render/utils/setters.mjs.js"),s=require("../../value/will-change/add-will-change.mjs.js"),a=require("../optimized-appear/get-appear-id.mjs.js"),o=require("./motion-value.mjs.js"),r=require("../../frameloop/frame.mjs.js");function l(e,t){let{protectedKeys:i,needsAnimating:n}=e;const s=i.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,s}exports.animateTarget=function(u,m){let{delay:d=0,transitionOverride:c,type:p}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:f,transitionEnd:g,...j}=m;const v=u.getDefaultTransition();f=f?t.resolveTransition(f,v):v;const y=f?.reduceMotion,h=f?.skipAnimations;c&&(f=c);const A=[],q=p&&u.animationState&&u.animationState.getState()[p],w=f?.path;w&&w.animateVisualElement(u,j,f,d,A);for(const t in j){const n=u.getValue(t,u.latestValues[t]??null),m=j[t];if(void 0===m||q&&l(q,t))continue;const c={delay:d,...e.getValueTransition(f||{},t)};h&&(c.skipAnimations=!0);const p=n.get();if(void 0!==p&&!n.isAnimating()&&!Array.isArray(m)&&m===p&&!c.velocity){r.frame.update(()=>n.set(m));continue}let g=!1;if(window.MotionHandoffAnimation){const e=a.getOptimisedAppearId(u);if(e){const i=window.MotionHandoffAnimation(e,t,r.frame);null!==i&&(c.startTime=i,g=!0)}}s.addValueToWillChange(u,t);const v=y??u.shouldReduceMotion;n.start(o.animateMotionValue(t,n,m,v&&i.positionalKeys.has(t)?{type:!1}:c,u,g));const w=n.animation;w&&A.push(w)}if(g){const e=()=>r.frame.update(()=>{g&&n.setTarget(u,g)});A.length?Promise.all(A).then(e):e()}return A};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../utils/get-value-transition.mjs.js"),t=require("../utils/resolve-transition.mjs.js"),i=require("../../render/utils/keys-position.mjs.js"),n=require("../../render/utils/setters.mjs.js"),s=require("../../value/will-change/add-will-change.mjs.js"),a=require("../optimized-appear/get-appear-id.mjs.js"),o=require("./motion-value.mjs.js"),r=require("../../frameloop/frame.mjs.js");function l({protectedKeys:e,needsAnimating:t},i){const n=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,n}exports.animateTarget=function(u,m,{delay:d=0,transitionOverride:c,type:p}={}){let{transition:f,transitionEnd:j,...g}=m;const y=u.getDefaultTransition();f=f?t.resolveTransition(f,y):y;const v=f?.reduceMotion,h=f?.skipAnimations;c&&(f=c);const A=[],q=p&&u.animationState&&u.animationState.getState()[p],w=f?.path;w&&w.animateVisualElement(u,g,f,d,A);for(const t in g){const n=u.getValue(t,u.latestValues[t]??null),m=g[t];if(void 0===m||q&&l(q,t))continue;const c={delay:d,...e.getValueTransition(f||{},t)};h&&(c.skipAnimations=!0);const p=n.get();if(void 0!==p&&!n.isAnimating()&&!Array.isArray(m)&&m===p&&!c.velocity){r.frame.update(()=>n.set(m));continue}let j=!1;if(window.MotionHandoffAnimation){const e=a.getOptimisedAppearId(u);if(e){const i=window.MotionHandoffAnimation(e,t,r.frame);null!==i&&(c.startTime=i,j=!0)}}s.addValueToWillChange(u,t);const y=v??u.shouldReduceMotion;n.start(o.animateMotionValue(t,n,m,y&&i.positionalKeys.has(t)?{type:!1}:c,u,j));const w=n.animation;w&&A.push(w)}if(j){const e=()=>r.frame.update(()=>{j&&n.setTarget(u,j)});A.length?Promise.all(A).then(e):e()}return A};
2
2
  //# sourceMappingURL=visual-element-target.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-element-target.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs"],"sourcesContent":["import { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { resolveTransition } from '../utils/resolve-transition.mjs';\nimport { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { addValueToWillChange } from '../../value/will-change/add-will-change.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n let { transition, transitionEnd, ...target } = targetAndTransition;\n const defaultTransition = visualElement.getDefaultTransition();\n transition = transition\n ? resolveTransition(transition, defaultTransition)\n : defaultTransition;\n const reduceMotion = transition?.reduceMotion;\n const skipAnimations = transition?.skipAnimations;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n const path = transition?.path;\n if (path) {\n // path mutates `target` to claim x/y; loop below skips them.\n path.animateVisualElement(visualElement, target, transition, delay, animations);\n }\n for (const key in target) {\n const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n if (skipAnimations)\n valueTransition.skipAnimations = true;\n /**\n * If the value is already at the defined target, skip the animation.\n * We still re-assert the value via frame.update to take precedence\n * over any stale transitionEnd callbacks from previous animations.\n */\n const currentValue = value.get();\n if (currentValue !== undefined &&\n !value.isAnimating() &&\n !Array.isArray(valueTarget) &&\n valueTarget === currentValue &&\n !valueTransition.velocity) {\n frame.update(() => value.set(valueTarget));\n continue;\n }\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n addValueToWillChange(visualElement, key);\n const shouldReduceMotion = reduceMotion ?? visualElement.shouldReduceMotion;\n value.start(animateMotionValue(key, value, valueTarget, shouldReduceMotion && positionalKeys.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n const applyTransitionEnd = () => frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n if (animations.length) {\n Promise.all(animations).then(applyTransitionEnd);\n }\n else {\n applyTransitionEnd();\n }\n }\n return animations;\n}\n\nexport { animateTarget };\n//# sourceMappingURL=visual-element-target.mjs.map\n"],"names":["shouldBlockAnimation","_ref","key","protectedKeys","needsAnimating","shouldBlock","hasOwnProperty","animateTarget","visualElement","targetAndTransition","delay","transitionOverride","type","arguments","length","undefined","transition","transitionEnd","target","defaultTransition","getDefaultTransition","resolveTransition","reduceMotion","skipAnimations","animations","animationTypeState","animationState","getState","path","animateVisualElement","value","getValue","latestValues","valueTarget","valueTransition","getValueTransition","currentValue","get","isAnimating","Array","isArray","velocity","frame","update","set","isHandoff","window","MotionHandoffAnimation","appearId","getOptimisedAppearId","startTime","addValueToWillChange","shouldReduceMotion","start","animateMotionValue","positionalKeys","has","animation","push","applyTransitionEnd","setTarget","Promise","all","then"],"mappings":"6cAqBA,SAASA,EAAoBC,EAEzBC,GAAW,IADXC,cAAEA,EAAaC,eAAEA,GAAoCH,EAGrD,MAAMI,EACFF,EAAcG,eAAeJ,KAAgC,IAAxBE,EAAeF,GAGxD,OADAE,EAAeF,IAAO,EACfG,CACX,uBAEgBE,SACZC,EACAC,GAC2E,IAA3EC,MAAEA,EAAQ,EAACC,mBAAEA,EAAkBC,KAAEA,GAAIC,UAAAC,OAAAD,QAAAE,IAAAF,aAAAA,UAAA,GAAoC,IAErEG,WACAA,EAAUC,cACVA,KACGC,GACHT,EAEJ,MAAMU,EAAoBX,EAAcY,uBACxCJ,EAAaA,EACPK,EAAiBA,kBAACL,EAAYG,GAC9BA,EAEN,MAAMG,EAAgBN,GAA2CM,aAC3DC,EAAiBP,GAAYO,eAE/BZ,IAAoBK,EAAaL,GAErC,MAAMa,EAAkD,GAElDC,EACFb,GACAJ,EAAckB,gBACdlB,EAAckB,eAAeC,WAAWf,GAEtCgB,EAAQZ,GAAkDY,KAC5DA,GAEAA,EAAKC,qBACDrB,EACAU,EACAF,EACAN,EACAc,GAIR,IAAK,MAAMtB,KAAOgB,EAAQ,CACtB,MAAMY,EAAQtB,EAAcuB,SACxB7B,EACAM,EAAcwB,aAAa9B,IAAQ,MAEjC+B,EAAcf,EAAOhB,GAE3B,QACoBa,IAAhBkB,GACCR,GACGzB,EAAqByB,EAAoBvB,GAE7C,SAGJ,MAAMgC,EAAkB,CACpBxB,WACGyB,qBAAmBnB,GAAc,CAAE,EAAEd,IAGxCqB,IAAgBW,EAAgBX,gBAAiB,GAOrD,MAAMa,EAAeN,EAAMO,MAC3B,QACqBtB,IAAjBqB,IACCN,EAAMQ,gBACNC,MAAMC,QAAQP,IACfA,IAAgBG,IACfF,EAAgBO,SACnB,CACEC,EAAKA,MAACC,OAAO,IAAMb,EAAMc,IAAIX,IAC7B,QACJ,CAMA,IAAIY,GAAY,EAChB,GAAIC,OAAOC,uBAAwB,CAC/B,MAAMC,EAAWC,uBAAqBzC,GAEtC,GAAIwC,EAAU,CACV,MAAME,EAAYJ,OAAOC,uBACrBC,EACA9C,EACAwC,EAAAA,OAGc,OAAdQ,IACAhB,EAAgBgB,UAAYA,EAC5BL,GAAY,EAEpB,CACJ,CAEAM,uBAAqB3C,EAAeN,GAEpC,MAAMkD,EACF9B,GAAgBd,EAAc4C,mBAElCtB,EAAMuB,MACFC,qBACIpD,EACA4B,EACAG,EACAmB,GAAsBG,EAAcA,eAACC,IAAItD,GACnC,CAAEU,MAAM,GACRsB,EACN1B,EACAqC,IAIR,MAAMY,EAAY3B,EAAM2B,UAEpBA,GACAjC,EAAWkC,KAAKD,EAExB,CAEA,GAAIxC,EAAe,CACf,MAAM0C,EAAqBA,IACvBjB,QAAMC,OAAO,KACT1B,GAAiB2C,EAASA,UAACpD,EAAeS,KAG9CO,EAAWV,OACX+C,QAAQC,IAAItC,GAAYuC,KAAKJ,GAE7BA,GAER,CAEA,OAAOnC,CACX"}
1
+ {"version":3,"file":"visual-element-target.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs"],"sourcesContent":["import { getValueTransition } from '../utils/get-value-transition.mjs';\nimport { resolveTransition } from '../utils/resolve-transition.mjs';\nimport { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { setTarget } from '../../render/utils/setters.mjs';\nimport { addValueToWillChange } from '../../value/will-change/add-will-change.mjs';\nimport { getOptimisedAppearId } from '../optimized-appear/get-appear-id.mjs';\nimport { animateMotionValue } from './motion-value.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\n/**\n * Decide whether we should block this animation. Previously, we achieved this\n * just by checking whether the key was listed in protectedKeys, but this\n * posed problems if an animation was triggered by afterChildren and protectedKeys\n * had been set to true in the meantime.\n */\nfunction shouldBlockAnimation({ protectedKeys, needsAnimating }, key) {\n const shouldBlock = protectedKeys.hasOwnProperty(key) && needsAnimating[key] !== true;\n needsAnimating[key] = false;\n return shouldBlock;\n}\nfunction animateTarget(visualElement, targetAndTransition, { delay = 0, transitionOverride, type } = {}) {\n let { transition, transitionEnd, ...target } = targetAndTransition;\n const defaultTransition = visualElement.getDefaultTransition();\n transition = transition\n ? resolveTransition(transition, defaultTransition)\n : defaultTransition;\n const reduceMotion = transition?.reduceMotion;\n const skipAnimations = transition?.skipAnimations;\n if (transitionOverride)\n transition = transitionOverride;\n const animations = [];\n const animationTypeState = type &&\n visualElement.animationState &&\n visualElement.animationState.getState()[type];\n const path = transition?.path;\n if (path) {\n // path mutates `target` to claim x/y; loop below skips them.\n path.animateVisualElement(visualElement, target, transition, delay, animations);\n }\n for (const key in target) {\n const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);\n const valueTarget = target[key];\n if (valueTarget === undefined ||\n (animationTypeState &&\n shouldBlockAnimation(animationTypeState, key))) {\n continue;\n }\n const valueTransition = {\n delay,\n ...getValueTransition(transition || {}, key),\n };\n if (skipAnimations)\n valueTransition.skipAnimations = true;\n /**\n * If the value is already at the defined target, skip the animation.\n * We still re-assert the value via frame.update to take precedence\n * over any stale transitionEnd callbacks from previous animations.\n */\n const currentValue = value.get();\n if (currentValue !== undefined &&\n !value.isAnimating() &&\n !Array.isArray(valueTarget) &&\n valueTarget === currentValue &&\n !valueTransition.velocity) {\n frame.update(() => value.set(valueTarget));\n continue;\n }\n /**\n * If this is the first time a value is being animated, check\n * to see if we're handling off from an existing animation.\n */\n let isHandoff = false;\n if (window.MotionHandoffAnimation) {\n const appearId = getOptimisedAppearId(visualElement);\n if (appearId) {\n const startTime = window.MotionHandoffAnimation(appearId, key, frame);\n if (startTime !== null) {\n valueTransition.startTime = startTime;\n isHandoff = true;\n }\n }\n }\n addValueToWillChange(visualElement, key);\n const shouldReduceMotion = reduceMotion ?? visualElement.shouldReduceMotion;\n value.start(animateMotionValue(key, value, valueTarget, shouldReduceMotion && positionalKeys.has(key)\n ? { type: false }\n : valueTransition, visualElement, isHandoff));\n const animation = value.animation;\n if (animation) {\n animations.push(animation);\n }\n }\n if (transitionEnd) {\n const applyTransitionEnd = () => frame.update(() => {\n transitionEnd && setTarget(visualElement, transitionEnd);\n });\n if (animations.length) {\n Promise.all(animations).then(applyTransitionEnd);\n }\n else {\n applyTransitionEnd();\n }\n }\n return animations;\n}\n\nexport { animateTarget };\n//# sourceMappingURL=visual-element-target.mjs.map\n"],"names":["shouldBlockAnimation","protectedKeys","needsAnimating","key","shouldBlock","hasOwnProperty","animateTarget","visualElement","targetAndTransition","delay","transitionOverride","type","transition","transitionEnd","target","defaultTransition","getDefaultTransition","resolveTransition","reduceMotion","skipAnimations","animations","animationTypeState","animationState","getState","path","animateVisualElement","value","getValue","latestValues","valueTarget","undefined","valueTransition","getValueTransition","currentValue","get","isAnimating","Array","isArray","velocity","frame","update","set","isHandoff","window","MotionHandoffAnimation","appearId","getOptimisedAppearId","startTime","addValueToWillChange","shouldReduceMotion","start","animateMotionValue","positionalKeys","has","animation","push","applyTransitionEnd","setTarget","length","Promise","all","then"],"mappings":"6cAqBA,SAASA,GACLC,cAAEA,EAAaC,eAAEA,GACjBC,GAEA,MAAMC,EACFH,EAAcI,eAAeF,KAAgC,IAAxBD,EAAeC,GAGxD,OADAD,EAAeC,IAAO,EACfC,CACX,uBAEgBE,SACZC,EACAC,GACAC,MAAEA,EAAQ,EAACC,mBAAEA,EAAkBC,KAAEA,GAAwC,IAEzE,IAAIC,WACAA,EAAUC,cACVA,KACGC,GACHN,EAEJ,MAAMO,EAAoBR,EAAcS,uBACxCJ,EAAaA,EACPK,EAAiBA,kBAACL,EAAYG,GAC9BA,EAEN,MAAMG,EAAgBN,GAA2CM,aAC3DC,EAAiBP,GAAYO,eAE/BT,IAAoBE,EAAaF,GAErC,MAAMU,EAAkD,GAElDC,EACFV,GACAJ,EAAce,gBACdf,EAAce,eAAeC,WAAWZ,GAEtCa,EAAQZ,GAAkDY,KAC5DA,GAEAA,EAAKC,qBACDlB,EACAO,EACAF,EACAH,EACAW,GAIR,IAAK,MAAMjB,KAAOW,EAAQ,CACtB,MAAMY,EAAQnB,EAAcoB,SACxBxB,EACAI,EAAcqB,aAAazB,IAAQ,MAEjC0B,EAAcf,EAAOX,GAE3B,QACoB2B,IAAhBD,GACCR,GACGrB,EAAqBqB,EAAoBlB,GAE7C,SAGJ,MAAM4B,EAAkB,CACpBtB,WACGuB,qBAAmBpB,GAAc,CAAE,EAAET,IAGxCgB,IAAgBY,EAAgBZ,gBAAiB,GAOrD,MAAMc,EAAeP,EAAMQ,MAC3B,QACqBJ,IAAjBG,IACCP,EAAMS,gBACNC,MAAMC,QAAQR,IACfA,IAAgBI,IACfF,EAAgBO,SACnB,CACEC,EAAKA,MAACC,OAAO,IAAMd,EAAMe,IAAIZ,IAC7B,QACJ,CAMA,IAAIa,GAAY,EAChB,GAAIC,OAAOC,uBAAwB,CAC/B,MAAMC,EAAWC,uBAAqBvC,GAEtC,GAAIsC,EAAU,CACV,MAAME,EAAYJ,OAAOC,uBACrBC,EACA1C,EACAoC,EAAAA,OAGc,OAAdQ,IACAhB,EAAgBgB,UAAYA,EAC5BL,GAAY,EAEpB,CACJ,CAEAM,uBAAqBzC,EAAeJ,GAEpC,MAAM8C,EACF/B,GAAgBX,EAAc0C,mBAElCvB,EAAMwB,MACFC,qBACIhD,EACAuB,EACAG,EACAoB,GAAsBG,EAAcA,eAACC,IAAIlD,GACnC,CAAEQ,MAAM,GACRoB,EACNxB,EACAmC,IAIR,MAAMY,EAAY5B,EAAM4B,UAEpBA,GACAlC,EAAWmC,KAAKD,EAExB,CAEA,GAAIzC,EAAe,CACf,MAAM2C,EAAqBA,IACvBjB,QAAMC,OAAO,KACT3B,GAAiB4C,EAASA,UAAClD,EAAeM,KAG9CO,EAAWsC,OACXC,QAAQC,IAAIxC,GAAYyC,KAAKL,GAE7BA,GAER,CAEA,OAAOpC,CACX"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("../utils/calc-child-stagger.mjs.js"),i=require("./visual-element-target.mjs.js");function n(r,o){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=e.resolveVariant(r,o,"exit"===a.type?r.presenceContext?.custom:void 0);let{transition:s=r.getDefaultTransition()||{}}=l||{};a.transitionOverride&&(s=a.transitionOverride);const d=l?()=>Promise.all(i.animateTarget(r,l,a)):()=>Promise.resolve(),v=r.variantChildren&&r.variantChildren.size?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:l,staggerDirection:d}=s;return function(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0;const d=[];for(const v of e.variantChildren)v.notify("AnimationStart",i),d.push(n(v,i,{...s,delay:r+("function"==typeof o?0:o)+t.calcChildStagger(e.variantChildren,v,o,a,l)}).then(()=>v.notify("AnimationComplete",i)));return Promise.all(d)}(r,o,e,i,l,d,a)}:()=>Promise.resolve(),{when:c}=s;if(c){const[e,t]="beforeChildren"===c?[d,v]:[v,d];return e().then(()=>t())}return Promise.all([d(),v(a.delay)])}exports.animateVariant=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),r=require("../utils/calc-child-stagger.mjs.js"),t=require("./visual-element-target.mjs.js");function i(n,a,s={}){const o=e.resolveVariant(n,a,"exit"===s.type?n.presenceContext?.custom:void 0);let{transition:l=n.getDefaultTransition()||{}}=o||{};s.transitionOverride&&(l=s.transitionOverride);const c=o?()=>Promise.all(t.animateTarget(n,o,s)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(e=0)=>{const{delayChildren:t=0,staggerChildren:o,staggerDirection:c}=l;return function(e,t,n=0,a=0,s=0,o=1,l){const c=[];for(const d of e.variantChildren)d.notify("AnimationStart",t),c.push(i(d,t,{...l,delay:n+("function"==typeof a?0:a)+r.calcChildStagger(e.variantChildren,d,a,s,o)}).then(()=>d.notify("AnimationComplete",t)));return Promise.all(c)}(n,a,e,t,o,c,s)}:()=>Promise.resolve(),{when:u}=l;if(u){const[e,r]="beforeChildren"===u?[c,d]:[d,c];return e().then(()=>r())}return Promise.all([c(),d(s.delay)])}exports.animateVariant=i;
2
2
  //# sourceMappingURL=visual-element-variant.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-element-variant.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { calcChildStagger } from '../utils/calc-child-stagger.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, forwardDelay, delayChildren, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delay = 0, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n for (const child of visualElement.variantChildren) {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delay +\n (typeof delayChildren === \"function\" ? 0 : delayChildren) +\n calcChildStagger(visualElement.variantChildren, child, delayChildren, staggerChildren, staggerDirection),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n }\n return Promise.all(animations);\n}\n\nexport { animateVariant };\n//# sourceMappingURL=visual-element-variant.mjs.map\n"],"names":["animateVariant","visualElement","variant","options","arguments","length","undefined","resolved","resolveVariant","type","presenceContext","custom","transition","getDefaultTransition","transitionOverride","getAnimation","Promise","all","animateTarget","resolve","getChildAnimations","variantChildren","size","forwardDelay","delayChildren","staggerChildren","staggerDirection","delay","animations","child","notify","push","calcChildStagger","then","animateChildren","when","first","last"],"mappings":"oOAOM,SAAUA,EACZC,EACAC,GAC2C,IAA3CC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAyC,CAAA,EAEzC,MAAMG,EAAWC,EAAAA,eACbP,EACAC,EACiB,SAAjBC,EAAQM,KACFR,EAAcS,iBAAiBC,YAC/BL,GAGV,IAAIM,WAAEA,EAAaX,EAAcY,wBAA0B,CAAA,GACvDN,GAAY,CAAA,EAEZJ,EAAQW,qBACRF,EAAaT,EAAQW,oBAOzB,MAAMC,EAAmCR,EACnC,IAAMS,QAAQC,IAAIC,EAAaA,cAACjB,EAAeM,EAAUJ,IACzD,IAAMa,QAAQG,UAMdC,EACFnB,EAAcoB,iBAAmBpB,EAAcoB,gBAAgBC,KACzD,WAAqB,IAApBC,EAAYnB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EACZ,MAAMoB,cACFA,EAAgB,EAACC,gBACjBA,EAAeC,iBACfA,GACAd,EAEJ,OA6BlB,SACIX,EACAC,GAKsC,IAJtCyB,EAAAvB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAgB,EAChBoB,EAAApB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAgD,EAChDqB,EAAerB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EAClBsB,EAAgBtB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EACnBD,EAAsCC,UAAAC,OAAAD,EAAAA,kBAAAE,EAEtC,MAAMsB,EAA6B,GAEnC,IAAK,MAAMC,KAAS5B,EAAcoB,gBAC9BQ,EAAMC,OAAO,iBAAkB5B,GAC/B0B,EAAWG,KACP/B,EAAe6B,EAAO3B,EAAS,IACxBC,EACHwB,MACIA,GAC0B,mBAAlBH,EAA+B,EAAIA,GAC3CQ,EAAAA,iBACI/B,EAAcoB,gBACdQ,EACAL,EACAC,EACAC,KAETO,KAAK,IAAMJ,EAAMC,OAAO,oBAAqB5B,KAIxD,OAAOc,QAAQC,IAAIW,EACvB,CA5DyBM,CACHjC,EACAC,EACAqB,EACAC,EACAC,EACAC,EACAvB,EAER,EACA,IAAMa,QAAQG,WAMlBgB,KAAEA,GAASvB,EACjB,GAAIuB,EAAM,CACN,MAAOC,EAAOC,GACD,mBAATF,EACM,CAACpB,EAAcK,GACf,CAACA,EAAoBL,GAE/B,OAAOqB,IAAQH,KAAK,IAAMI,KAE1B,OAAOrB,QAAQC,IAAI,CAACF,IAAgBK,EAAmBjB,EAAQwB,QAEvE"}
1
+ {"version":3,"file":"visual-element-variant.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { calcChildStagger } from '../utils/calc-child-stagger.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\n\nfunction animateVariant(visualElement, variant, options = {}) {\n const resolved = resolveVariant(visualElement, variant, options.type === \"exit\"\n ? visualElement.presenceContext?.custom\n : undefined);\n let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};\n if (options.transitionOverride) {\n transition = options.transitionOverride;\n }\n /**\n * If we have a variant, create a callback that runs it as an animation.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getAnimation = resolved\n ? () => Promise.all(animateTarget(visualElement, resolved, options))\n : () => Promise.resolve();\n /**\n * If we have children, create a callback that runs all their animations.\n * Otherwise, we resolve a Promise immediately for a composable no-op.\n */\n const getChildAnimations = visualElement.variantChildren && visualElement.variantChildren.size\n ? (forwardDelay = 0) => {\n const { delayChildren = 0, staggerChildren, staggerDirection, } = transition;\n return animateChildren(visualElement, variant, forwardDelay, delayChildren, staggerChildren, staggerDirection, options);\n }\n : () => Promise.resolve();\n /**\n * If the transition explicitly defines a \"when\" option, we need to resolve either\n * this animation or all children animations before playing the other.\n */\n const { when } = transition;\n if (when) {\n const [first, last] = when === \"beforeChildren\"\n ? [getAnimation, getChildAnimations]\n : [getChildAnimations, getAnimation];\n return first().then(() => last());\n }\n else {\n return Promise.all([getAnimation(), getChildAnimations(options.delay)]);\n }\n}\nfunction animateChildren(visualElement, variant, delay = 0, delayChildren = 0, staggerChildren = 0, staggerDirection = 1, options) {\n const animations = [];\n for (const child of visualElement.variantChildren) {\n child.notify(\"AnimationStart\", variant);\n animations.push(animateVariant(child, variant, {\n ...options,\n delay: delay +\n (typeof delayChildren === \"function\" ? 0 : delayChildren) +\n calcChildStagger(visualElement.variantChildren, child, delayChildren, staggerChildren, staggerDirection),\n }).then(() => child.notify(\"AnimationComplete\", variant)));\n }\n return Promise.all(animations);\n}\n\nexport { animateVariant };\n//# sourceMappingURL=visual-element-variant.mjs.map\n"],"names":["animateVariant","visualElement","variant","options","resolved","resolveVariant","type","presenceContext","custom","undefined","transition","getDefaultTransition","transitionOverride","getAnimation","Promise","all","animateTarget","resolve","getChildAnimations","variantChildren","size","forwardDelay","delayChildren","staggerChildren","staggerDirection","delay","animations","child","notify","push","calcChildStagger","then","animateChildren","when","first","last"],"mappings":"oOAOM,SAAUA,EACZC,EACAC,EACAC,EAAyC,CAAA,GAEzC,MAAMC,EAAWC,EAAAA,eACbJ,EACAC,EACiB,SAAjBC,EAAQG,KACFL,EAAcM,iBAAiBC,YAC/BC,GAGV,IAAIC,WAAEA,EAAaT,EAAcU,wBAA0B,CAAA,GACvDP,GAAY,CAAA,EAEZD,EAAQS,qBACRF,EAAaP,EAAQS,oBAOzB,MAAMC,EAAmCT,EACnC,IAAMU,QAAQC,IAAIC,EAAaA,cAACf,EAAeG,EAAUD,IACzD,IAAMW,QAAQG,UAMdC,EACFjB,EAAckB,iBAAmBlB,EAAckB,gBAAgBC,KACzD,CAACC,EAAe,KACZ,MAAMC,cACFA,EAAgB,EAACC,gBACjBA,EAAeC,iBACfA,GACAd,EAEJ,OA6BlB,SACIT,EACAC,EACAuB,EAAgB,EAChBH,EAAgD,EAChDC,EAAkB,EAClBC,EAAmB,EACnBrB,GAEA,MAAMuB,EAA6B,GAEnC,IAAK,MAAMC,KAAS1B,EAAckB,gBAC9BQ,EAAMC,OAAO,iBAAkB1B,GAC/BwB,EAAWG,KACP7B,EAAe2B,EAAOzB,EAAS,IACxBC,EACHsB,MACIA,GAC0B,mBAAlBH,EAA+B,EAAIA,GAC3CQ,EAAAA,iBACI7B,EAAckB,gBACdQ,EACAL,EACAC,EACAC,KAETO,KAAK,IAAMJ,EAAMC,OAAO,oBAAqB1B,KAIxD,OAAOY,QAAQC,IAAIW,EACvB,CA5DyBM,CACH/B,EACAC,EACAmB,EACAC,EACAC,EACAC,EACArB,IAGR,IAAMW,QAAQG,WAMlBgB,KAAEA,GAASvB,EACjB,GAAIuB,EAAM,CACN,MAAOC,EAAOC,GACD,mBAATF,EACM,CAACpB,EAAcK,GACf,CAACA,EAAoBL,GAE/B,OAAOqB,IAAQH,KAAK,IAAMI,KAE1B,OAAOrB,QAAQC,IAAI,CAACF,IAAgBK,EAAmBf,EAAQsB,QAEvE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("./visual-element-target.mjs.js"),a=require("./visual-element-variant.mjs.js");exports.animateVisualElement=function(i,r){let n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(i.notify("AnimationStart",r),Array.isArray(r)){const e=r.map(e=>a.animateVariant(i,e,s));n=Promise.all(e)}else if("string"==typeof r)n=a.animateVariant(i,r,s);else{const a="function"==typeof r?e.resolveVariant(i,r,s.custom):r;n=Promise.all(t.animateTarget(i,a,s))}return n.then(()=>{i.notify("AnimationComplete",r)})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/resolve-dynamic-variants.mjs.js"),t=require("./visual-element-target.mjs.js"),a=require("./visual-element-variant.mjs.js");exports.animateVisualElement=function(i,r,n={}){let s;if(i.notify("AnimationStart",r),Array.isArray(r)){const e=r.map(e=>a.animateVariant(i,e,n));s=Promise.all(e)}else if("string"==typeof r)s=a.animateVariant(i,r,n);else{const a="function"==typeof r?e.resolveVariant(i,r,n.custom):r;s=Promise.all(t.animateTarget(i,a,n))}return s.then(()=>{i.notify("AnimationComplete",r)})};
2
2
  //# sourceMappingURL=visual-element.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"visual-element.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n//# sourceMappingURL=visual-element.mjs.map\n"],"names":["visualElement","definition","animation","options","arguments","length","undefined","notify","Array","isArray","animations","map","variant","animateVariant","Promise","all","resolvedDefinition","resolveVariant","custom","animateTarget","then"],"mappings":"8PAOM,SACFA,EACAC,GAC2C,IAGvCC,EAHJC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAyC,CAAA,EAKzC,GAHAJ,EAAcO,OAAO,iBAAkBN,GAGnCO,MAAMC,QAAQR,GAAa,CAC3B,MAAMS,EAAaT,EAAWU,IAAKC,GAC/BC,EAAcA,eAACb,EAAeY,EAAST,IAE3CD,EAAYY,QAAQC,IAAIL,EAC5B,MAAO,GAA0B,iBAAfT,EACdC,EAAYW,EAAAA,eAAeb,EAAeC,EAAYE,OACnD,CACH,MAAMa,EACoB,mBAAff,EACDgB,EAAcA,eAACjB,EAAeC,EAAYE,EAAQe,QAClDjB,EAEVC,EAAYY,QAAQC,IAChBI,EAAAA,cAAcnB,EAAegB,EAAoBb,GAEzD,CAEA,OAAOD,EAAUkB,KAAK,KAClBpB,EAAcO,OAAO,oBAAqBN,IAElD"}
1
+ {"version":3,"file":"visual-element.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs"],"sourcesContent":["import { resolveVariant } from '../../render/utils/resolve-dynamic-variants.mjs';\nimport { animateTarget } from './visual-element-target.mjs';\nimport { animateVariant } from './visual-element-variant.mjs';\n\nfunction animateVisualElement(visualElement, definition, options = {}) {\n visualElement.notify(\"AnimationStart\", definition);\n let animation;\n if (Array.isArray(definition)) {\n const animations = definition.map((variant) => animateVariant(visualElement, variant, options));\n animation = Promise.all(animations);\n }\n else if (typeof definition === \"string\") {\n animation = animateVariant(visualElement, definition, options);\n }\n else {\n const resolvedDefinition = typeof definition === \"function\"\n ? resolveVariant(visualElement, definition, options.custom)\n : definition;\n animation = Promise.all(animateTarget(visualElement, resolvedDefinition, options));\n }\n return animation.then(() => {\n visualElement.notify(\"AnimationComplete\", definition);\n });\n}\n\nexport { animateVisualElement };\n//# sourceMappingURL=visual-element.mjs.map\n"],"names":["visualElement","definition","options","animation","notify","Array","isArray","animations","map","variant","animateVariant","Promise","all","resolvedDefinition","resolveVariant","custom","animateTarget","then"],"mappings":"8PAOM,SACFA,EACAC,EACAC,EAAyC,CAAA,GAGzC,IAAIC,EAEJ,GAHAH,EAAcI,OAAO,iBAAkBH,GAGnCI,MAAMC,QAAQL,GAAa,CAC3B,MAAMM,EAAaN,EAAWO,IAAKC,GAC/BC,EAAcA,eAACV,EAAeS,EAASP,IAE3CC,EAAYQ,QAAQC,IAAIL,EAC5B,MAAO,GAA0B,iBAAfN,EACdE,EAAYO,EAAAA,eAAeV,EAAeC,EAAYC,OACnD,CACH,MAAMW,EACoB,mBAAfZ,EACDa,EAAcA,eAACd,EAAeC,EAAYC,EAAQa,QAClDd,EAEVE,EAAYQ,QAAQC,IAChBI,EAAAA,cAAchB,EAAea,EAAoBX,GAEzD,CAEA,OAAOC,EAAUc,KAAK,KAClBjB,EAAcI,OAAO,oBAAqBH,IAElD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/keys-position.mjs.js"),s=require("../../value/types/dimensions.mjs.js"),r=require("../utils/css-variables-conversion.mjs.js"),t=require("../utils/is-css-variable.mjs.js"),i=require("./KeyframesResolver.mjs.js"),n=require("./utils/is-none.mjs.js"),a=require("./utils/make-none-animatable.mjs.js"),o=require("./utils/unit-conversion.mjs.js");class l extends i.KeyframeResolver{constructor(e,s,r,t,i){super(e,s,r,t,i,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let e=0;e<i.length;e++){let s=i[e];if("string"==typeof s&&(s=s.trim(),t.isCSSVariableToken(s))){const t=r.getVariableValue(s,n.current);void 0!==t&&(i[e]=t),e===i.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(a)||2!==i.length)return;const[l,u]=i,m=s.findDimensionValueType(l),f=s.findDimensionValueType(u);if(t.containsCSSVariable(l)!==t.containsCSSVariable(u)&&o.positionalValues[a])this.needsMeasurement=!0;else if(m!==f)if(o.isNumOrPxType(m)&&o.isNumOrPxType(f))for(let e=0;e<i.length;e++){const s=i[e];"string"==typeof s&&(i[e]=parseFloat(s))}else o.positionalValues[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,r=[];for(let s=0;s<e.length;s++)(null===e[s]||n.isNone(e[s]))&&r.push(s);r.length&&a.makeNoneKeyframesAnimatable(e,r,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=o.positionalValues[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const t=s[s.length-1];void 0!==t&&e.getValue(r,t).jump(t,!1)}measureEndState(){const{element:e,name:s,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const t=e.getValue(s);t&&t.jump(this.measuredOrigin,!1);const i=r.length-1,n=r[i];r[i]=o.positionalValues[s](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(s=>{let[r,t]=s;e.getValue(r).set(t)}),this.resolveNoneKeyframes()}}exports.DOMKeyframesResolver=l;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/keys-position.mjs.js"),s=require("../../value/types/dimensions.mjs.js"),r=require("../utils/css-variables-conversion.mjs.js"),t=require("../utils/is-css-variable.mjs.js"),i=require("./KeyframesResolver.mjs.js"),n=require("./utils/is-none.mjs.js"),a=require("./utils/make-none-animatable.mjs.js"),o=require("./utils/unit-conversion.mjs.js");class l extends i.KeyframeResolver{constructor(e,s,r,t,i){super(e,s,r,t,i,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:n,name:a}=this;if(!n||!n.current)return;super.readKeyframes();for(let e=0;e<i.length;e++){let s=i[e];if("string"==typeof s&&(s=s.trim(),t.isCSSVariableToken(s))){const t=r.getVariableValue(s,n.current);void 0!==t&&(i[e]=t),e===i.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!e.positionalKeys.has(a)||2!==i.length)return;const[l,u]=i,m=s.findDimensionValueType(l),f=s.findDimensionValueType(u);if(t.containsCSSVariable(l)!==t.containsCSSVariable(u)&&o.positionalValues[a])this.needsMeasurement=!0;else if(m!==f)if(o.isNumOrPxType(m)&&o.isNumOrPxType(f))for(let e=0;e<i.length;e++){const s=i[e];"string"==typeof s&&(i[e]=parseFloat(s))}else o.positionalValues[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,r=[];for(let s=0;s<e.length;s++)(null===e[s]||n.isNone(e[s]))&&r.push(s);r.length&&a.makeNoneKeyframesAnimatable(e,r,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=o.positionalValues[r](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const t=s[s.length-1];void 0!==t&&e.getValue(r,t).jump(t,!1)}measureEndState(){const{element:e,name:s,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const t=e.getValue(s);t&&t.jump(this.measuredOrigin,!1);const i=r.length-1,n=r[i];r[i]=o.positionalValues[s](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==n&&void 0===this.finalKeyframe&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,r])=>{e.getValue(s).set(r)}),this.resolveNoneKeyframes()}}exports.DOMKeyframesResolver=l;
2
2
  //# sourceMappingURL=DOMKeyframesResolver.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DOMKeyframesResolver.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs"],"sourcesContent":["import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { positionalValues, isNumOrPxType } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other\n * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.\n */\n const originHasVar = containsCSSVariable(origin);\n const targetHasVar = containsCSSVariable(target);\n if (originHasVar !== targetHasVar && positionalValues[name]) {\n this.needsMeasurement = true;\n return;\n }\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else if (positionalValues[name]) {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n//# sourceMappingURL=DOMKeyframesResolver.mjs.map\n"],"names":["DOMKeyframesResolver","KeyframeResolver","constructor","unresolvedKeyframes","onComplete","name","motionValue","element","super","readKeyframes","this","current","i","length","keyframe","trim","isCSSVariableToken","resolved","getVariableValue","undefined","finalKeyframe","resolveNoneKeyframes","positionalKeys","has","origin","target","originType","findDimensionValueType","targetType","containsCSSVariable","positionalValues","needsMeasurement","isNumOrPxType","value","parseFloat","noneKeyframeIndexes","isNone","push","makeNoneKeyframesAnimatable","measureInitialState","suspendedScrollY","window","pageYOffset","measuredOrigin","measureViewportBox","getComputedStyle","measureKeyframe","getValue","jump","measureEndState","finalKeyframeIndex","removedTransforms","forEach","_ref","unsetTransformName","unsetTransformValue","set"],"mappings":"0bAmBM,MAAOA,UAEHC,EAAAA,iBAONC,WAAAA,CACIC,EACAC,EACAC,EACAC,EACAC,GAEAC,MAAML,EAAqBC,EAAYC,EAAMC,EAAaC,GAAS,EACvE,CAEAE,aAAAA,GACI,MAAMN,oBAAEA,EAAmBI,QAAEA,EAAOF,KAAEA,GAASK,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAElCH,MAAMC,gBAKN,IAAK,IAAIG,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,IAAK,CACjD,IAAIE,EAAWX,EAAoBS,GAEnC,GAAwB,iBAAbE,IACPA,EAAWA,EAASC,OAEhBC,EAAAA,mBAAmBF,IAAW,CAC9B,MAAMG,EAAWC,EAAgBA,iBAACJ,EAAUP,EAAQI,cAEnCQ,IAAbF,IACAd,EAAoBS,GAAKK,GAGzBL,IAAMT,EAAoBU,OAAS,IACnCH,KAAKU,cAAgBN,EAE7B,CAER,CAeA,GARAJ,KAAKW,wBAQAC,EAAcA,eAACC,IAAIlB,IAAwC,IAA/BF,EAAoBU,OACjD,OAGJ,MAAOW,EAAQC,GAAUtB,EACnBuB,EAAaC,yBAAuBH,GACpCI,EAAaD,yBAAuBF,GAS1C,GAHqBI,sBAAoBL,KACpBK,sBAAoBJ,IAEJK,EAAgBA,iBAACzB,GAClDK,KAAKqB,kBAAmB,OAO5B,GAAIL,IAAeE,EAMnB,GAAII,EAAaA,cAACN,IAAeM,EAAaA,cAACJ,GAC3C,IAAK,IAAIhB,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,IAAK,CACjD,MAAMqB,EAAQ9B,EAAoBS,GACb,iBAAVqB,IACP9B,EAAoBS,GAAKsB,WAAWD,GAE5C,MACOH,EAAAA,iBAAiBzB,KAIxBK,KAAKqB,kBAAmB,EAEhC,CAEAV,oBAAAA,GACI,MAAMlB,oBAAEA,EAAmBE,KAAEA,GAASK,KAEhCyB,EAAgC,GACtC,IAAK,IAAIvB,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,KAEb,OAA3BT,EAAoBS,IACpBwB,EAAAA,OAAOjC,EAAoBS,MAE3BuB,EAAoBE,KAAKzB,GAI7BuB,EAAoBtB,QACpByB,EAAAA,4BACInC,EACAgC,EACA9B,EAGZ,CAEAkC,mBAAAA,GACI,MAAMhC,QAAEA,EAAOJ,oBAAEA,EAAmBE,KAAEA,GAASK,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAErB,WAATN,IACAK,KAAK8B,iBAAmBC,OAAOC,aAGnChC,KAAKiC,eAAiBb,mBAAiBzB,GACnCE,EAAQqC,qBACRH,OAAOI,iBAAiBtC,EAAQI,UAGpCR,EAAoB,GAAKO,KAAKiC,eAG9B,MAAMG,EACF3C,EAAoBA,EAAoBU,OAAS,QAE7BM,IAApB2B,GACAvC,EAAQwC,SAAS1C,EAAMyC,GAAiBE,KAAKF,GAAiB,EAEtE,CAEAG,eAAAA,GACI,MAAM1C,QAAEA,EAAOF,KAAEA,EAAIF,oBAAEA,GAAwBO,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAElC,MAAMsB,EAAQ1B,EAAQwC,SAAS1C,GAC/B4B,GAASA,EAAMe,KAAKtC,KAAKiC,gBAAgB,GAEzC,MAAMO,EAAqB/C,EAAoBU,OAAS,EAClDO,EAAgBjB,EAAoB+C,GAE1C/C,EAAoB+C,GAAsBpB,mBAAiBzB,GACvDE,EAAQqC,qBACRH,OAAOI,iBAAiBtC,EAAQI,UAGd,OAAlBS,QAAiDD,IAAvBT,KAAKU,gBAC/BV,KAAKU,cAAgBA,GAIrBV,KAAKyC,mBAAmBtC,QACxBH,KAAKyC,kBAAkBC,QACnBC,IAA8C,IAA5CC,EAAoBC,GAAoBF,EACtC9C,EACKwC,SAASO,GACTE,IAAID,KAKrB7C,KAAKW,sBACT"}
1
+ {"version":3,"file":"DOMKeyframesResolver.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs"],"sourcesContent":["import { positionalKeys } from '../../render/utils/keys-position.mjs';\nimport { findDimensionValueType } from '../../value/types/dimensions.mjs';\nimport { getVariableValue } from '../utils/css-variables-conversion.mjs';\nimport { isCSSVariableToken, containsCSSVariable } from '../utils/is-css-variable.mjs';\nimport { KeyframeResolver } from './KeyframesResolver.mjs';\nimport { isNone } from './utils/is-none.mjs';\nimport { makeNoneKeyframesAnimatable } from './utils/make-none-animatable.mjs';\nimport { positionalValues, isNumOrPxType } from './utils/unit-conversion.mjs';\n\nclass DOMKeyframesResolver extends KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element) {\n super(unresolvedKeyframes, onComplete, name, motionValue, element, true);\n }\n readKeyframes() {\n const { unresolvedKeyframes, element, name } = this;\n if (!element || !element.current)\n return;\n super.readKeyframes();\n /**\n * If any keyframe is a CSS variable, we need to find its value by sampling the element\n */\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n let keyframe = unresolvedKeyframes[i];\n if (typeof keyframe === \"string\") {\n keyframe = keyframe.trim();\n if (isCSSVariableToken(keyframe)) {\n const resolved = getVariableValue(keyframe, element.current);\n if (resolved !== undefined) {\n unresolvedKeyframes[i] = resolved;\n }\n if (i === unresolvedKeyframes.length - 1) {\n this.finalKeyframe = keyframe;\n }\n }\n }\n }\n /**\n * Resolve \"none\" values. We do this potentially twice - once before and once after measuring keyframes.\n * This could be seen as inefficient but it's a trade-off to avoid measurements in more situations, which\n * have a far bigger performance impact.\n */\n this.resolveNoneKeyframes();\n /**\n * Check to see if unit type has changed. If so schedule jobs that will\n * temporarily set styles to the destination keyframes.\n * Skip if we have more than two keyframes or this isn't a positional value.\n * TODO: We can throw if there are multiple keyframes and the value type changes.\n */\n if (!positionalKeys.has(name) || unresolvedKeyframes.length !== 2) {\n return;\n }\n const [origin, target] = unresolvedKeyframes;\n const originType = findDimensionValueType(origin);\n const targetType = findDimensionValueType(target);\n /**\n * If one keyframe contains embedded CSS variables (e.g. in calc()) and the other\n * doesn't, we need to measure to convert to pixels. This handles GitHub issue #3410.\n */\n const originHasVar = containsCSSVariable(origin);\n const targetHasVar = containsCSSVariable(target);\n if (originHasVar !== targetHasVar && positionalValues[name]) {\n this.needsMeasurement = true;\n return;\n }\n /**\n * Either we don't recognise these value types or we can animate between them.\n */\n if (originType === targetType)\n return;\n /**\n * If both values are numbers or pixels, we can animate between them by\n * converting them to numbers.\n */\n if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n const value = unresolvedKeyframes[i];\n if (typeof value === \"string\") {\n unresolvedKeyframes[i] = parseFloat(value);\n }\n }\n }\n else if (positionalValues[name]) {\n /**\n * Else, the only way to resolve this is by measuring the element.\n */\n this.needsMeasurement = true;\n }\n }\n resolveNoneKeyframes() {\n const { unresolvedKeyframes, name } = this;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < unresolvedKeyframes.length; i++) {\n if (unresolvedKeyframes[i] === null ||\n isNone(unresolvedKeyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n }\n if (noneKeyframeIndexes.length) {\n makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name);\n }\n }\n measureInitialState() {\n const { element, unresolvedKeyframes, name } = this;\n if (!element || !element.current)\n return;\n if (name === \"height\") {\n this.suspendedScrollY = window.pageYOffset;\n }\n this.measuredOrigin = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n unresolvedKeyframes[0] = this.measuredOrigin;\n // Set final key frame to measure after next render\n const measureKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (measureKeyframe !== undefined) {\n element.getValue(name, measureKeyframe).jump(measureKeyframe, false);\n }\n }\n measureEndState() {\n const { element, name, unresolvedKeyframes } = this;\n if (!element || !element.current)\n return;\n const value = element.getValue(name);\n value && value.jump(this.measuredOrigin, false);\n const finalKeyframeIndex = unresolvedKeyframes.length - 1;\n const finalKeyframe = unresolvedKeyframes[finalKeyframeIndex];\n unresolvedKeyframes[finalKeyframeIndex] = positionalValues[name](element.measureViewportBox(), window.getComputedStyle(element.current));\n if (finalKeyframe !== null && this.finalKeyframe === undefined) {\n this.finalKeyframe = finalKeyframe;\n }\n // If we removed transform values, reapply them before the next render\n if (this.removedTransforms?.length) {\n this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {\n element\n .getValue(unsetTransformName)\n .set(unsetTransformValue);\n });\n }\n this.resolveNoneKeyframes();\n }\n}\n\nexport { DOMKeyframesResolver };\n//# sourceMappingURL=DOMKeyframesResolver.mjs.map\n"],"names":["DOMKeyframesResolver","KeyframeResolver","constructor","unresolvedKeyframes","onComplete","name","motionValue","element","super","readKeyframes","this","current","i","length","keyframe","trim","isCSSVariableToken","resolved","getVariableValue","undefined","finalKeyframe","resolveNoneKeyframes","positionalKeys","has","origin","target","originType","findDimensionValueType","targetType","containsCSSVariable","positionalValues","needsMeasurement","isNumOrPxType","value","parseFloat","noneKeyframeIndexes","isNone","push","makeNoneKeyframesAnimatable","measureInitialState","suspendedScrollY","window","pageYOffset","measuredOrigin","measureViewportBox","getComputedStyle","measureKeyframe","getValue","jump","measureEndState","finalKeyframeIndex","removedTransforms","forEach","unsetTransformName","unsetTransformValue","set"],"mappings":"0bAmBM,MAAOA,UAEHC,EAAAA,iBAONC,WAAAA,CACIC,EACAC,EACAC,EACAC,EACAC,GAEAC,MAAML,EAAqBC,EAAYC,EAAMC,EAAaC,GAAS,EACvE,CAEAE,aAAAA,GACI,MAAMN,oBAAEA,EAAmBI,QAAEA,EAAOF,KAAEA,GAASK,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAElCH,MAAMC,gBAKN,IAAK,IAAIG,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,IAAK,CACjD,IAAIE,EAAWX,EAAoBS,GAEnC,GAAwB,iBAAbE,IACPA,EAAWA,EAASC,OAEhBC,EAAAA,mBAAmBF,IAAW,CAC9B,MAAMG,EAAWC,EAAgBA,iBAACJ,EAAUP,EAAQI,cAEnCQ,IAAbF,IACAd,EAAoBS,GAAKK,GAGzBL,IAAMT,EAAoBU,OAAS,IACnCH,KAAKU,cAAgBN,EAE7B,CAER,CAeA,GARAJ,KAAKW,wBAQAC,EAAcA,eAACC,IAAIlB,IAAwC,IAA/BF,EAAoBU,OACjD,OAGJ,MAAOW,EAAQC,GAAUtB,EACnBuB,EAAaC,yBAAuBH,GACpCI,EAAaD,yBAAuBF,GAS1C,GAHqBI,sBAAoBL,KACpBK,sBAAoBJ,IAEJK,EAAgBA,iBAACzB,GAClDK,KAAKqB,kBAAmB,OAO5B,GAAIL,IAAeE,EAMnB,GAAII,EAAaA,cAACN,IAAeM,EAAaA,cAACJ,GAC3C,IAAK,IAAIhB,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,IAAK,CACjD,MAAMqB,EAAQ9B,EAAoBS,GACb,iBAAVqB,IACP9B,EAAoBS,GAAKsB,WAAWD,GAE5C,MACOH,EAAAA,iBAAiBzB,KAIxBK,KAAKqB,kBAAmB,EAEhC,CAEAV,oBAAAA,GACI,MAAMlB,oBAAEA,EAAmBE,KAAEA,GAASK,KAEhCyB,EAAgC,GACtC,IAAK,IAAIvB,EAAI,EAAGA,EAAIT,EAAoBU,OAAQD,KAEb,OAA3BT,EAAoBS,IACpBwB,EAAAA,OAAOjC,EAAoBS,MAE3BuB,EAAoBE,KAAKzB,GAI7BuB,EAAoBtB,QACpByB,EAAAA,4BACInC,EACAgC,EACA9B,EAGZ,CAEAkC,mBAAAA,GACI,MAAMhC,QAAEA,EAAOJ,oBAAEA,EAAmBE,KAAEA,GAASK,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAErB,WAATN,IACAK,KAAK8B,iBAAmBC,OAAOC,aAGnChC,KAAKiC,eAAiBb,mBAAiBzB,GACnCE,EAAQqC,qBACRH,OAAOI,iBAAiBtC,EAAQI,UAGpCR,EAAoB,GAAKO,KAAKiC,eAG9B,MAAMG,EACF3C,EAAoBA,EAAoBU,OAAS,QAE7BM,IAApB2B,GACAvC,EAAQwC,SAAS1C,EAAMyC,GAAiBE,KAAKF,GAAiB,EAEtE,CAEAG,eAAAA,GACI,MAAM1C,QAAEA,EAAOF,KAAEA,EAAIF,oBAAEA,GAAwBO,KAE/C,IAAKH,IAAYA,EAAQI,QAAS,OAElC,MAAMsB,EAAQ1B,EAAQwC,SAAS1C,GAC/B4B,GAASA,EAAMe,KAAKtC,KAAKiC,gBAAgB,GAEzC,MAAMO,EAAqB/C,EAAoBU,OAAS,EAClDO,EAAgBjB,EAAoB+C,GAE1C/C,EAAoB+C,GAAsBpB,mBAAiBzB,GACvDE,EAAQqC,qBACRH,OAAOI,iBAAiBtC,EAAQI,UAGd,OAAlBS,QAAiDD,IAAvBT,KAAKU,gBAC/BV,KAAKU,cAAgBA,GAIrBV,KAAKyC,mBAAmBtC,QACxBH,KAAKyC,kBAAkBC,QACnB,EAAEC,EAAoBC,MAClB/C,EACKwC,SAASM,GACTE,IAAID,KAKrB5C,KAAKW,sBACT"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/fill-wildcards.mjs.js"),s=require("./utils/unit-conversion.mjs.js"),t=require("../../frameloop/frame.mjs.js");const r=new Set;let n=!1,a=!1,l=!1;function i(){if(a){const e=Array.from(r).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=s.removeNonTranslationalTransform(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const s=n.get(e);s&&s.forEach(s=>{let[t,r]=s;e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}a=!1,n=!1,r.forEach(e=>e.complete(l)),r.clear()}function o(){r.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(a=!0)})}exports.KeyframeResolver=class{constructor(e,s,t,r,n){let a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=t,this.motionValue=r,this.element=n,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),n||(n=!0,t.frame.read(o),t.frame.resolveKeyframes(i))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:t,element:r,motionValue:n}=this;if(null===s[0]){const e=n?.get(),a=s[s.length-1];if(void 0!==e)s[0]=e;else if(r&&t){const e=r.readValue(t,a);null!=e&&(s[0]=e)}void 0===s[0]&&(s[0]=a),n&&void 0===e&&n.set(s[0])}e.fillWildcards(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),r.delete(this)}cancel(){"scheduled"===this.state&&(r.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}},exports.flushKeyframeResolvers=function(){l=!0,o(),i(),l=!1};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/fill-wildcards.mjs.js"),s=require("./utils/unit-conversion.mjs.js"),t=require("../../frameloop/frame.mjs.js");const r=new Set;let a=!1,n=!1,i=!1;function l(){if(n){const e=Array.from(r).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),a=new Map;t.forEach(e=>{const t=s.removeNonTranslationalTransform(e);t.length&&(a.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const s=a.get(e);s&&s.forEach(([s,t])=>{e.getValue(s)?.set(t)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}n=!1,a=!1,r.forEach(e=>e.complete(i)),r.clear()}function o(){r.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(n=!0)})}exports.KeyframeResolver=class{constructor(e,s,t,r,a,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=t,this.motionValue=r,this.element=a,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(r.add(this),a||(a=!0,t.frame.read(o),t.frame.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:t,element:r,motionValue:a}=this;if(null===s[0]){const e=a?.get(),n=s[s.length-1];if(void 0!==e)s[0]=e;else if(r&&t){const e=r.readValue(t,n);null!=e&&(s[0]=e)}void 0===s[0]&&(s[0]=n),a&&void 0===e&&a.set(s[0])}e.fillWildcards(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),r.delete(this)}cancel(){"scheduled"===this.state&&(r.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}},exports.flushKeyframeResolvers=function(){i=!0,o(),l(),i=!1};
2
2
  //# sourceMappingURL=KeyframesResolver.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyframesResolver.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs"],"sourcesContent":["import { fillWildcards } from './utils/fill-wildcards.mjs';\nimport { removeNonTranslationalTransform } from './utils/unit-conversion.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst toResolve = new Set();\nlet isScheduled = false;\nlet anyNeedsMeasurement = false;\nlet isForced = false;\nfunction measureAllKeyframes() {\n if (anyNeedsMeasurement) {\n const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);\n const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));\n const transformsToRestore = new Map();\n /**\n * Write pass\n * If we're measuring elements we want to remove bounding box-changing transforms.\n */\n elementsToMeasure.forEach((element) => {\n const removedTransforms = removeNonTranslationalTransform(element);\n if (!removedTransforms.length)\n return;\n transformsToRestore.set(element, removedTransforms);\n element.render();\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n // Write\n elementsToMeasure.forEach((element) => {\n element.render();\n const restore = transformsToRestore.get(element);\n if (restore) {\n restore.forEach(([key, value]) => {\n element.getValue(key)?.set(value);\n });\n }\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n // Write\n resolversToMeasure.forEach((resolver) => {\n if (resolver.suspendedScrollY !== undefined) {\n window.scrollTo(0, resolver.suspendedScrollY);\n }\n });\n }\n anyNeedsMeasurement = false;\n isScheduled = false;\n toResolve.forEach((resolver) => resolver.complete(isForced));\n toResolve.clear();\n}\nfunction readAllKeyframes() {\n toResolve.forEach((resolver) => {\n resolver.readKeyframes();\n if (resolver.needsMeasurement) {\n anyNeedsMeasurement = true;\n }\n });\n}\nfunction flushKeyframeResolvers() {\n isForced = true;\n readAllKeyframes();\n measureAllKeyframes();\n isForced = false;\n}\nclass KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {\n this.state = \"pending\";\n /**\n * Track whether this resolver is async. If it is, it'll be added to the\n * resolver queue and flushed in the next frame. Resolvers that aren't going\n * to trigger read/write thrashing don't need to be async.\n */\n this.isAsync = false;\n /**\n * Track whether this resolver needs to perform a measurement\n * to resolve its keyframes.\n */\n this.needsMeasurement = false;\n this.unresolvedKeyframes = [...unresolvedKeyframes];\n this.onComplete = onComplete;\n this.name = name;\n this.motionValue = motionValue;\n this.element = element;\n this.isAsync = isAsync;\n }\n scheduleResolve() {\n this.state = \"scheduled\";\n if (this.isAsync) {\n toResolve.add(this);\n if (!isScheduled) {\n isScheduled = true;\n frame.read(readAllKeyframes);\n frame.resolveKeyframes(measureAllKeyframes);\n }\n }\n else {\n this.readKeyframes();\n this.complete();\n }\n }\n readKeyframes() {\n const { unresolvedKeyframes, name, element, motionValue } = this;\n // If initial keyframe is null we need to read it from the DOM\n if (unresolvedKeyframes[0] === null) {\n const currentValue = motionValue?.get();\n // TODO: This doesn't work if the final keyframe is a wildcard\n const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (currentValue !== undefined) {\n unresolvedKeyframes[0] = currentValue;\n }\n else if (element && name) {\n const valueAsRead = element.readValue(name, finalKeyframe);\n if (valueAsRead !== undefined && valueAsRead !== null) {\n unresolvedKeyframes[0] = valueAsRead;\n }\n }\n if (unresolvedKeyframes[0] === undefined) {\n unresolvedKeyframes[0] = finalKeyframe;\n }\n if (motionValue && currentValue === undefined) {\n motionValue.set(unresolvedKeyframes[0]);\n }\n }\n fillWildcards(unresolvedKeyframes);\n }\n setFinalKeyframe() { }\n measureInitialState() { }\n renderEndStyles() { }\n measureEndState() { }\n complete(isForcedComplete = false) {\n this.state = \"complete\";\n this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n toResolve.delete(this);\n }\n cancel() {\n if (this.state === \"scheduled\") {\n toResolve.delete(this);\n this.state = \"pending\";\n }\n }\n resume() {\n if (this.state === \"pending\")\n this.scheduleResolve();\n }\n}\n\nexport { KeyframeResolver, flushKeyframeResolvers };\n//# sourceMappingURL=KeyframesResolver.mjs.map\n"],"names":["toResolve","Set","isScheduled","anyNeedsMeasurement","isForced","measureAllKeyframes","resolversToMeasure","Array","from","filter","resolver","needsMeasurement","elementsToMeasure","map","element","transformsToRestore","Map","forEach","removedTransforms","removeNonTranslationalTransform","length","set","render","measureInitialState","restore","get","_ref","key","value","getValue","measureEndState","undefined","suspendedScrollY","window","scrollTo","complete","clear","readAllKeyframes","readKeyframes","constructor","unresolvedKeyframes","onComplete","name","motionValue","isAsync","arguments","this","state","scheduleResolve","add","frame","read","resolveKeyframes","currentValue","finalKeyframe","valueAsRead","readValue","fillWildcards","setFinalKeyframe","renderEndStyles","isForcedComplete","delete","cancel","resume","flushKeyframeResolvers"],"mappings":"yMAWA,MAAMA,EAAY,IAAIC,IACtB,IAAIC,GAAc,EACdC,GAAsB,EACtBC,GAAW,EAEf,SAASC,IACL,GAAIF,EAAqB,CACrB,MAAMG,EAAqBC,MAAMC,KAAKR,GAAWS,OAC5CC,GAA+BA,EAASC,kBAEvCC,EAAoB,IAAIX,IAC1BK,EAAmBO,IAAKH,GAAaA,EAASI,UAE5CC,EAAsB,IAAIC,IAShCJ,EAAkBK,QAASH,IACvB,MAAMI,EAAoBC,kCACtBL,GAGCI,EAAkBE,SAEvBL,EAAoBM,IAAIP,EAASI,GAEjCJ,EAAQQ,YAIZhB,EAAmBW,QAASP,GAAaA,EAASa,uBAGlDX,EAAkBK,QAASH,IACvBA,EAAQQ,SAER,MAAME,EAAUT,EAAoBU,IAAIX,GACpCU,GACAA,EAAQP,QAAQS,IAAiB,IAAfC,EAAKC,GAAMF,EACzBZ,EAAQe,SAASF,IAAMN,IAAIO,OAMvCtB,EAAmBW,QAASP,GAAaA,EAASoB,mBAGlDxB,EAAmBW,QAASP,SACUqB,IAA9BrB,EAASsB,kBACTC,OAAOC,SAAS,EAAGxB,EAASsB,mBAGxC,CAEA7B,GAAsB,EACtBD,GAAc,EAEdF,EAAUiB,QAASP,GAAaA,EAASyB,SAAS/B,IAClDJ,EAAUoC,OACd,CAEA,SAASC,IACLrC,EAAUiB,QAASP,IACfA,EAAS4B,gBAEL5B,EAASC,mBACTR,GAAsB,IAGlC,gCAyCIoC,WAAAA,CACIC,EACAC,EACAC,EACAC,EACA7B,GACe,IAAf8B,EAAOC,UAAAzB,OAAA,QAAAW,IAAAc,UAAA,IAAAA,UAAA,GArBXC,KAAAC,MAA8C,UAOtCD,KAAAF,SAAU,EAMlBE,KAAAnC,kBAAmB,EAUfmC,KAAKN,oBAAsB,IAAIA,GAC/BM,KAAKL,WAAaA,EAClBK,KAAKJ,KAAOA,EACZI,KAAKH,YAAcA,EACnBG,KAAKhC,QAAUA,EACfgC,KAAKF,QAAUA,CACnB,CAEAI,eAAAA,GACIF,KAAKC,MAAQ,YAETD,KAAKF,SACL5C,EAAUiD,IAAIH,MAET5C,IACDA,GAAc,EACdgD,QAAMC,KAAKd,GACXa,QAAME,iBAAiB/C,MAG3ByC,KAAKR,gBACLQ,KAAKX,WAEb,CAEAG,aAAAA,GACI,MAAME,oBAAEA,EAAmBE,KAAEA,EAAI5B,QAAEA,EAAO6B,YAAEA,GAAgBG,KAG5D,GAA+B,OAA3BN,EAAoB,GAAa,CACjC,MAAMa,EAAeV,GAAalB,MAG5B6B,EACFd,EAAoBA,EAAoBpB,OAAS,GAErD,QAAqBW,IAAjBsB,EACAb,EAAoB,GAAKa,OACtB,GAAIvC,GAAW4B,EAAM,CACxB,MAAMa,EAAczC,EAAQ0C,UAAUd,EAAMY,GAExCC,UACAf,EAAoB,GAAKe,EAEjC,MAE+BxB,IAA3BS,EAAoB,KACpBA,EAAoB,GAAKc,GAGzBX,QAAgCZ,IAAjBsB,GACfV,EAAYtB,IAAImB,EAAoB,GAE5C,CAEAiB,EAAaA,cAACjB,EAClB,CAEAkB,gBAAAA,GAAoB,CACpBnC,mBAAAA,GAAuB,CACvBoC,eAAAA,GAAmB,CACnB7B,eAAAA,GAAmB,CAEnBK,QAAAA,GAAiC,IAAxByB,EAAgBf,UAAAzB,OAAA,QAAAW,IAAAc,UAAA,IAAAA,UAAA,GACrBC,KAAKC,MAAQ,WAEbD,KAAKL,WACDK,KAAKN,oBACLM,KAAKQ,cACLM,GAGJ5D,EAAU6D,OAAOf,KACrB,CAEAgB,MAAAA,GACuB,cAAfhB,KAAKC,QACL/C,EAAU6D,OAAOf,MACjBA,KAAKC,MAAQ,UAErB,CAEAgB,MAAAA,GACuB,YAAfjB,KAAKC,OAAqBD,KAAKE,iBACvC,kCAnIYgB,WACZ5D,GAAW,EACXiC,IACAhC,IACAD,GAAW,CACf"}
1
+ {"version":3,"file":"KeyframesResolver.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs"],"sourcesContent":["import { fillWildcards } from './utils/fill-wildcards.mjs';\nimport { removeNonTranslationalTransform } from './utils/unit-conversion.mjs';\nimport { frame } from '../../frameloop/frame.mjs';\n\nconst toResolve = new Set();\nlet isScheduled = false;\nlet anyNeedsMeasurement = false;\nlet isForced = false;\nfunction measureAllKeyframes() {\n if (anyNeedsMeasurement) {\n const resolversToMeasure = Array.from(toResolve).filter((resolver) => resolver.needsMeasurement);\n const elementsToMeasure = new Set(resolversToMeasure.map((resolver) => resolver.element));\n const transformsToRestore = new Map();\n /**\n * Write pass\n * If we're measuring elements we want to remove bounding box-changing transforms.\n */\n elementsToMeasure.forEach((element) => {\n const removedTransforms = removeNonTranslationalTransform(element);\n if (!removedTransforms.length)\n return;\n transformsToRestore.set(element, removedTransforms);\n element.render();\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureInitialState());\n // Write\n elementsToMeasure.forEach((element) => {\n element.render();\n const restore = transformsToRestore.get(element);\n if (restore) {\n restore.forEach(([key, value]) => {\n element.getValue(key)?.set(value);\n });\n }\n });\n // Read\n resolversToMeasure.forEach((resolver) => resolver.measureEndState());\n // Write\n resolversToMeasure.forEach((resolver) => {\n if (resolver.suspendedScrollY !== undefined) {\n window.scrollTo(0, resolver.suspendedScrollY);\n }\n });\n }\n anyNeedsMeasurement = false;\n isScheduled = false;\n toResolve.forEach((resolver) => resolver.complete(isForced));\n toResolve.clear();\n}\nfunction readAllKeyframes() {\n toResolve.forEach((resolver) => {\n resolver.readKeyframes();\n if (resolver.needsMeasurement) {\n anyNeedsMeasurement = true;\n }\n });\n}\nfunction flushKeyframeResolvers() {\n isForced = true;\n readAllKeyframes();\n measureAllKeyframes();\n isForced = false;\n}\nclass KeyframeResolver {\n constructor(unresolvedKeyframes, onComplete, name, motionValue, element, isAsync = false) {\n this.state = \"pending\";\n /**\n * Track whether this resolver is async. If it is, it'll be added to the\n * resolver queue and flushed in the next frame. Resolvers that aren't going\n * to trigger read/write thrashing don't need to be async.\n */\n this.isAsync = false;\n /**\n * Track whether this resolver needs to perform a measurement\n * to resolve its keyframes.\n */\n this.needsMeasurement = false;\n this.unresolvedKeyframes = [...unresolvedKeyframes];\n this.onComplete = onComplete;\n this.name = name;\n this.motionValue = motionValue;\n this.element = element;\n this.isAsync = isAsync;\n }\n scheduleResolve() {\n this.state = \"scheduled\";\n if (this.isAsync) {\n toResolve.add(this);\n if (!isScheduled) {\n isScheduled = true;\n frame.read(readAllKeyframes);\n frame.resolveKeyframes(measureAllKeyframes);\n }\n }\n else {\n this.readKeyframes();\n this.complete();\n }\n }\n readKeyframes() {\n const { unresolvedKeyframes, name, element, motionValue } = this;\n // If initial keyframe is null we need to read it from the DOM\n if (unresolvedKeyframes[0] === null) {\n const currentValue = motionValue?.get();\n // TODO: This doesn't work if the final keyframe is a wildcard\n const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];\n if (currentValue !== undefined) {\n unresolvedKeyframes[0] = currentValue;\n }\n else if (element && name) {\n const valueAsRead = element.readValue(name, finalKeyframe);\n if (valueAsRead !== undefined && valueAsRead !== null) {\n unresolvedKeyframes[0] = valueAsRead;\n }\n }\n if (unresolvedKeyframes[0] === undefined) {\n unresolvedKeyframes[0] = finalKeyframe;\n }\n if (motionValue && currentValue === undefined) {\n motionValue.set(unresolvedKeyframes[0]);\n }\n }\n fillWildcards(unresolvedKeyframes);\n }\n setFinalKeyframe() { }\n measureInitialState() { }\n renderEndStyles() { }\n measureEndState() { }\n complete(isForcedComplete = false) {\n this.state = \"complete\";\n this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, isForcedComplete);\n toResolve.delete(this);\n }\n cancel() {\n if (this.state === \"scheduled\") {\n toResolve.delete(this);\n this.state = \"pending\";\n }\n }\n resume() {\n if (this.state === \"pending\")\n this.scheduleResolve();\n }\n}\n\nexport { KeyframeResolver, flushKeyframeResolvers };\n//# sourceMappingURL=KeyframesResolver.mjs.map\n"],"names":["toResolve","Set","isScheduled","anyNeedsMeasurement","isForced","measureAllKeyframes","resolversToMeasure","Array","from","filter","resolver","needsMeasurement","elementsToMeasure","map","element","transformsToRestore","Map","forEach","removedTransforms","removeNonTranslationalTransform","length","set","render","measureInitialState","restore","get","key","value","getValue","measureEndState","undefined","suspendedScrollY","window","scrollTo","complete","clear","readAllKeyframes","readKeyframes","constructor","unresolvedKeyframes","onComplete","name","motionValue","isAsync","this","state","scheduleResolve","add","frame","read","resolveKeyframes","currentValue","finalKeyframe","valueAsRead","readValue","fillWildcards","setFinalKeyframe","renderEndStyles","isForcedComplete","delete","cancel","resume","flushKeyframeResolvers"],"mappings":"yMAWA,MAAMA,EAAY,IAAIC,IACtB,IAAIC,GAAc,EACdC,GAAsB,EACtBC,GAAW,EAEf,SAASC,IACL,GAAIF,EAAqB,CACrB,MAAMG,EAAqBC,MAAMC,KAAKR,GAAWS,OAC5CC,GAA+BA,EAASC,kBAEvCC,EAAoB,IAAIX,IAC1BK,EAAmBO,IAAKH,GAAaA,EAASI,UAE5CC,EAAsB,IAAIC,IAShCJ,EAAkBK,QAASH,IACvB,MAAMI,EAAoBC,kCACtBL,GAGCI,EAAkBE,SAEvBL,EAAoBM,IAAIP,EAASI,GAEjCJ,EAAQQ,YAIZhB,EAAmBW,QAASP,GAAaA,EAASa,uBAGlDX,EAAkBK,QAASH,IACvBA,EAAQQ,SAER,MAAME,EAAUT,EAAoBU,IAAIX,GACpCU,GACAA,EAAQP,QAAQ,EAAES,EAAKC,MACnBb,EAAQc,SAASF,IAAML,IAAIM,OAMvCrB,EAAmBW,QAASP,GAAaA,EAASmB,mBAGlDvB,EAAmBW,QAASP,SACUoB,IAA9BpB,EAASqB,kBACTC,OAAOC,SAAS,EAAGvB,EAASqB,mBAGxC,CAEA5B,GAAsB,EACtBD,GAAc,EAEdF,EAAUiB,QAASP,GAAaA,EAASwB,SAAS9B,IAClDJ,EAAUmC,OACd,CAEA,SAASC,IACLpC,EAAUiB,QAASP,IACfA,EAAS2B,gBAEL3B,EAASC,mBACTR,GAAsB,IAGlC,gCAyCImC,WAAAA,CACIC,EACAC,EACAC,EACAC,EACA5B,EACA6B,GAAU,GArBdC,KAAAC,MAA8C,UAOtCD,KAAAD,SAAU,EAMlBC,KAAAjC,kBAAmB,EAUfiC,KAAKL,oBAAsB,IAAIA,GAC/BK,KAAKJ,WAAaA,EAClBI,KAAKH,KAAOA,EACZG,KAAKF,YAAcA,EACnBE,KAAK9B,QAAUA,EACf8B,KAAKD,QAAUA,CACnB,CAEAG,eAAAA,GACIF,KAAKC,MAAQ,YAETD,KAAKD,SACL3C,EAAU+C,IAAIH,MAET1C,IACDA,GAAc,EACd8C,QAAMC,KAAKb,GACXY,QAAME,iBAAiB7C,MAG3BuC,KAAKP,gBACLO,KAAKV,WAEb,CAEAG,aAAAA,GACI,MAAME,oBAAEA,EAAmBE,KAAEA,EAAI3B,QAAEA,EAAO4B,YAAEA,GAAgBE,KAG5D,GAA+B,OAA3BL,EAAoB,GAAa,CACjC,MAAMY,EAAeT,GAAajB,MAG5B2B,EACFb,EAAoBA,EAAoBnB,OAAS,GAErD,QAAqBU,IAAjBqB,EACAZ,EAAoB,GAAKY,OACtB,GAAIrC,GAAW2B,EAAM,CACxB,MAAMY,EAAcvC,EAAQwC,UAAUb,EAAMW,GAExCC,UACAd,EAAoB,GAAKc,EAEjC,MAE+BvB,IAA3BS,EAAoB,KACpBA,EAAoB,GAAKa,GAGzBV,QAAgCZ,IAAjBqB,GACfT,EAAYrB,IAAIkB,EAAoB,GAE5C,CAEAgB,EAAaA,cAAChB,EAClB,CAEAiB,gBAAAA,GAAoB,CACpBjC,mBAAAA,GAAuB,CACvBkC,eAAAA,GAAmB,CACnB5B,eAAAA,GAAmB,CAEnBK,QAAAA,CAASwB,GAAmB,GACxBd,KAAKC,MAAQ,WAEbD,KAAKJ,WACDI,KAAKL,oBACLK,KAAKQ,cACLM,GAGJ1D,EAAU2D,OAAOf,KACrB,CAEAgB,MAAAA,GACuB,cAAfhB,KAAKC,QACL7C,EAAU2D,OAAOf,MACjBA,KAAKC,MAAQ,UAErB,CAEAgB,MAAAA,GACuB,YAAfjB,KAAKC,OAAqBD,KAAKE,iBACvC,kCAnIYgB,WACZ1D,GAAW,EACXgC,IACA/B,IACAD,GAAW,CACf"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>null!==e;exports.getFinalKeyframe=function(t,o,l){let{repeat:r,repeatType:n="loop"}=o,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=t.filter(e),s=p<0||r&&"loop"!==n&&r%2==1?0:i.length-1;return s&&void 0!==l?l:i[s]};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>null!==e;exports.getFinalKeyframe=function(t,{repeat:o,repeatType:r="loop"},l,n=1){const p=t.filter(e),s=n<0||o&&"loop"!==r&&o%2==1?0:p.length-1;return s&&void 0!==l?l:p[s]};
2
2
  //# sourceMappingURL=get-final.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-final.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs"],"sourcesContent":["const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe, speed = 1) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const useFirstKeyframe = speed < 0 || (repeat && repeatType !== \"loop\" && repeat % 2 === 1);\n const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n//# sourceMappingURL=get-final.mjs.map\n"],"names":["isNotNull","value","getFinalKeyframe","keyframes","_ref","finalKeyframe","repeat","repeatType","speed","arguments","length","undefined","resolvedKeyframes","filter","index"],"mappings":"oEAEA,MAAMA,EAAaC,GAA6B,OAAVA,2BAEtBC,SACZC,EAAcC,EAEdC,GACiB,IAFjBC,OAAEA,EAAMC,WAAEA,EAAa,QAAkCH,EAEzDI,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAgB,EAEhB,MAAMG,EAAoBT,EAAUU,OAAOb,GAGrCc,EADFN,EAAQ,GAAMF,GAAyB,SAAfC,GAAyBD,EAAS,GAAM,EACnC,EAAIM,EAAkBF,OAAS,EAEhE,OAAQI,QAA2BH,IAAlBN,EAEXA,EADAO,EAAkBE,EAE5B"}
1
+ {"version":3,"file":"get-final.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs"],"sourcesContent":["const isNotNull = (value) => value !== null;\nfunction getFinalKeyframe(keyframes, { repeat, repeatType = \"loop\" }, finalKeyframe, speed = 1) {\n const resolvedKeyframes = keyframes.filter(isNotNull);\n const useFirstKeyframe = speed < 0 || (repeat && repeatType !== \"loop\" && repeat % 2 === 1);\n const index = useFirstKeyframe ? 0 : resolvedKeyframes.length - 1;\n return !index || finalKeyframe === undefined\n ? resolvedKeyframes[index]\n : finalKeyframe;\n}\n\nexport { getFinalKeyframe };\n//# sourceMappingURL=get-final.mjs.map\n"],"names":["isNotNull","value","keyframes","repeat","repeatType","finalKeyframe","speed","resolvedKeyframes","filter","index","length","undefined"],"mappings":"oEAEA,MAAMA,EAAaC,GAA6B,OAAVA,oCAGlCC,GACAC,OAAEA,EAAMC,WAAEA,EAAa,QACvBC,EACAC,EAAgB,GAEhB,MAAMC,EAAoBL,EAAUM,OAAOR,GAGrCS,EADFH,EAAQ,GAAMH,GAAyB,SAAfC,GAAyBD,EAAS,GAAM,EACnC,EAAII,EAAkBG,OAAS,EAEhE,OAAQD,QAA2BE,IAAlBN,EAEXA,EADAE,EAAkBE,EAE5B"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../../render/dom/parse-transform.mjs.js"),e=require("../../../render/utils/keys-transform.mjs.js"),t=require("../../../value/types/numbers/index.mjs.js"),s=require("../../../value/types/numbers/units.mjs.js");const a=new Set(["x","y","z"]),o=e.transformPropOrder.filter(r=>!a.has(r));const n={width:(r,e)=>{let{x:t}=r,{paddingLeft:s="0",paddingRight:a="0",boxSizing:o}=e;const n=t.max-t.min;return"border-box"===o?n:n-parseFloat(s)-parseFloat(a)},height:(r,e)=>{let{y:t}=r,{paddingTop:s="0",paddingBottom:a="0",boxSizing:o}=e;const n=t.max-t.min;return"border-box"===o?n:n-parseFloat(s)-parseFloat(a)},top:(r,e)=>{let{top:t}=e;return parseFloat(t)},left:(r,e)=>{let{left:t}=e;return parseFloat(t)},bottom:(r,e)=>{let{y:t}=r,{top:s}=e;return parseFloat(s)+(t.max-t.min)},right:(r,e)=>{let{x:t}=r,{left:s}=e;return parseFloat(s)+(t.max-t.min)},x:(e,t)=>{let{transform:s}=t;return r.parseValueFromTransform(s,"x")},y:(e,t)=>{let{transform:s}=t;return r.parseValueFromTransform(s,"y")}};n.translateX=n.x,n.translateY=n.y,exports.isNumOrPxType=r=>r===t.number||r===s.px,exports.positionalValues=n,exports.removeNonTranslationalTransform=function(r){const e=[];return o.forEach(t=>{const s=r.getValue(t);void 0!==s&&(e.push([t,s.get()]),s.set(t.startsWith("scale")?1:0))}),e};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../../render/dom/parse-transform.mjs.js"),e=require("../../../render/utils/keys-transform.mjs.js"),t=require("../../../value/types/numbers/index.mjs.js"),s=require("../../../value/types/numbers/units.mjs.js");const a=new Set(["x","y","z"]),o=e.transformPropOrder.filter(r=>!a.has(r));const n={width:({x:r},{paddingLeft:e="0",paddingRight:t="0",boxSizing:s})=>{const a=r.max-r.min;return"border-box"===s?a:a-parseFloat(e)-parseFloat(t)},height:({y:r},{paddingTop:e="0",paddingBottom:t="0",boxSizing:s})=>{const a=r.max-r.min;return"border-box"===s?a:a-parseFloat(e)-parseFloat(t)},top:(r,{top:e})=>parseFloat(e),left:(r,{left:e})=>parseFloat(e),bottom:({y:r},{top:e})=>parseFloat(e)+(r.max-r.min),right:({x:r},{left:e})=>parseFloat(e)+(r.max-r.min),x:(e,{transform:t})=>r.parseValueFromTransform(t,"x"),y:(e,{transform:t})=>r.parseValueFromTransform(t,"y")};n.translateX=n.x,n.translateY=n.y,exports.isNumOrPxType=r=>r===t.number||r===s.px,exports.positionalValues=n,exports.removeNonTranslationalTransform=function(r){const e=[];return o.forEach(t=>{const s=r.getValue(t);void 0!==s&&(e.push([t,s.get()]),s.set(t.startsWith("scale")?1:0))}),e};
2
2
  //# sourceMappingURL=unit-conversion.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"unit-conversion.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs"],"sourcesContent":["import { parseValueFromTransform } from '../../../render/dom/parse-transform.mjs';\nimport { transformPropOrder } from '../../../render/utils/keys-transform.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst isNumOrPxType = (v) => v === number || v === px;\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\", boxSizing }) => {\n const width = x.max - x.min;\n return boxSizing === \"border-box\"\n ? width\n : width - parseFloat(paddingLeft) - parseFloat(paddingRight);\n },\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\", boxSizing }) => {\n const height = y.max - y.min;\n return boxSizing === \"border-box\"\n ? height\n : height - parseFloat(paddingTop) - parseFloat(paddingBottom);\n },\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: (_bbox, { transform }) => parseValueFromTransform(transform, \"x\"),\n y: (_bbox, { transform }) => parseValueFromTransform(transform, \"y\"),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\nexport { isNumOrPxType, positionalValues, removeNonTranslationalTransform };\n//# sourceMappingURL=unit-conversion.mjs.map\n"],"names":["isNumOrPxType","transformKeys","Set","nonTranslationalTransformKeys","transformPropOrder","filter","key","has","positionalValues","width","_ref","_ref2","x","paddingLeft","paddingRight","boxSizing","max","min","parseFloat","height","_ref3","_ref4","y","paddingTop","paddingBottom","top","_bbox","_ref5","left","_ref6","bottom","_ref7","_ref8","right","_ref9","_ref0","_ref1","transform","parseValueFromTransform","_ref10","translateX","translateY","v","number","px","visualElement","removedTransforms","forEach","value","getValue","undefined","push","get","set","startsWith"],"mappings":"uSAUaA,MAQPC,EAAgB,IAAIC,IAAI,CAAC,IAAK,IAAK,MACnCC,EAAgCC,EAAAA,mBAAmBC,OACpDC,IAASL,EAAcM,IAAID,IAmBzB,MAAME,EACT,CAEIC,MAAOA,CAAAC,EAAAC,KAGH,IAFAC,EAAEA,GAAGF,GACLG,YAAEA,EAAc,IAAGC,aAAEA,EAAe,IAAGC,UAAEA,GAAWJ,EAEpD,MAAMF,EAAQG,EAAEI,IAAMJ,EAAEK,IACxB,MAAqB,eAAdF,EACDN,EACAA,EAAQS,WAAWL,GAAeK,WAAWJ,IAEvDK,OAAQA,CAAAC,EAAAC,KAGJ,IAFAC,EAAEA,GAAGF,GACLG,WAAEA,EAAa,IAAGC,cAAEA,EAAgB,IAAGT,UAAEA,GAAWM,EAEpD,MAAMF,EAASG,EAAEN,IAAMM,EAAEL,IACzB,MAAqB,eAAdF,EACDI,EACAA,EAASD,WAAWK,GAAcL,WAAWM,IAGvDC,IAAKA,CAACC,EAAKC,KAAA,IAAEF,IAAEA,GAAKE,EAAA,OAAKT,WAAWO,IACpCG,KAAMA,CAACF,EAAKG,KAAA,IAAED,KAAEA,GAAMC,EAAA,OAAKX,WAAWU,IACtCE,OAAQA,CAAAC,EAAAC,KAAA,IAACV,EAAEA,GAAGS,GAAEN,IAAEA,GAAKO,EAAA,OAAKd,WAAWO,IAAkBH,EAAEN,IAAMM,EAAEL,MACnEgB,MAAOA,CAAAC,EAAAC,KAAA,IAACvB,EAAEA,GAAGsB,GAAEN,KAAEA,GAAMO,EAAA,OACnBjB,WAAWU,IAAmBhB,EAAEI,IAAMJ,EAAEK,MAG5CL,EAAGA,CAACc,EAAKU,KAAA,IAAEC,UAAEA,GAAWD,EAAA,OAAKE,EAAuBA,wBAACD,EAAW,MAChEf,EAAGA,CAACI,EAAKa,KAAA,IAAEF,UAAEA,GAAWE,EAAA,OAAKD,EAAuBA,wBAACD,EAAW,OAIxE7B,EAAiBgC,WAAahC,EAAiBI,EAC/CJ,EAAiBiC,WAAajC,EAAiBc,wBAhEjBoB,GAC1BA,IAAMC,EAAMA,QAAID,IAAME,EAAAA,sEAapB,SAA0CC,GAC5C,MAAMC,EAAuC,GAW7C,OATA3C,EAA8B4C,QAASzC,IACnC,MAAM0C,EACFH,EAAcI,SAAS3C,QACb4C,IAAVF,IACAF,EAAkBK,KAAK,CAAC7C,EAAK0C,EAAMI,QACnCJ,EAAMK,IAAI/C,EAAIgD,WAAW,SAAW,EAAI,MAIzCR,CACX"}
1
+ {"version":3,"file":"unit-conversion.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs"],"sourcesContent":["import { parseValueFromTransform } from '../../../render/dom/parse-transform.mjs';\nimport { transformPropOrder } from '../../../render/utils/keys-transform.mjs';\nimport { number } from '../../../value/types/numbers/index.mjs';\nimport { px } from '../../../value/types/numbers/units.mjs';\n\nconst isNumOrPxType = (v) => v === number || v === px;\nconst transformKeys = new Set([\"x\", \"y\", \"z\"]);\nconst nonTranslationalTransformKeys = transformPropOrder.filter((key) => !transformKeys.has(key));\nfunction removeNonTranslationalTransform(visualElement) {\n const removedTransforms = [];\n nonTranslationalTransformKeys.forEach((key) => {\n const value = visualElement.getValue(key);\n if (value !== undefined) {\n removedTransforms.push([key, value.get()]);\n value.set(key.startsWith(\"scale\") ? 1 : 0);\n }\n });\n return removedTransforms;\n}\nconst positionalValues = {\n // Dimensions\n width: ({ x }, { paddingLeft = \"0\", paddingRight = \"0\", boxSizing }) => {\n const width = x.max - x.min;\n return boxSizing === \"border-box\"\n ? width\n : width - parseFloat(paddingLeft) - parseFloat(paddingRight);\n },\n height: ({ y }, { paddingTop = \"0\", paddingBottom = \"0\", boxSizing }) => {\n const height = y.max - y.min;\n return boxSizing === \"border-box\"\n ? height\n : height - parseFloat(paddingTop) - parseFloat(paddingBottom);\n },\n top: (_bbox, { top }) => parseFloat(top),\n left: (_bbox, { left }) => parseFloat(left),\n bottom: ({ y }, { top }) => parseFloat(top) + (y.max - y.min),\n right: ({ x }, { left }) => parseFloat(left) + (x.max - x.min),\n // Transform\n x: (_bbox, { transform }) => parseValueFromTransform(transform, \"x\"),\n y: (_bbox, { transform }) => parseValueFromTransform(transform, \"y\"),\n};\n// Alias translate longform names\npositionalValues.translateX = positionalValues.x;\npositionalValues.translateY = positionalValues.y;\n\nexport { isNumOrPxType, positionalValues, removeNonTranslationalTransform };\n//# sourceMappingURL=unit-conversion.mjs.map\n"],"names":["isNumOrPxType","transformKeys","Set","nonTranslationalTransformKeys","transformPropOrder","filter","key","has","positionalValues","width","x","paddingLeft","paddingRight","boxSizing","max","min","parseFloat","height","y","paddingTop","paddingBottom","top","_bbox","left","bottom","right","transform","parseValueFromTransform","translateX","translateY","v","number","px","visualElement","removedTransforms","forEach","value","getValue","undefined","push","get","set","startsWith"],"mappings":"uSAUaA,MAQPC,EAAgB,IAAIC,IAAI,CAAC,IAAK,IAAK,MACnCC,EAAgCC,EAAAA,mBAAmBC,OACpDC,IAASL,EAAcM,IAAID,IAmBzB,MAAME,EACT,CAEIC,MAAOA,EACDC,MACAC,cAAc,IAAKC,eAAe,IAAKC,gBAEzC,MAAMJ,EAAQC,EAAEI,IAAMJ,EAAEK,IACxB,MAAqB,eAAdF,EACDJ,EACAA,EAAQO,WAAWL,GAAeK,WAAWJ,IAEvDK,OAAQA,EACFC,MACAC,aAAa,IAAKC,gBAAgB,IAAKP,gBAEzC,MAAMI,EAASC,EAAEJ,IAAMI,EAAEH,IACzB,MAAqB,eAAdF,EACDI,EACAA,EAASD,WAAWG,GAAcH,WAAWI,IAGvDC,IAAKA,CAACC,GAASD,SAAUL,WAAWK,GACpCE,KAAMA,CAACD,GAASC,UAAWP,WAAWO,GACtCC,OAAQA,EAAGN,MAAOG,SAAUL,WAAWK,IAAkBH,EAAEJ,IAAMI,EAAEH,KACnEU,MAAOA,EAAGf,MAAOa,UACbP,WAAWO,IAAmBb,EAAEI,IAAMJ,EAAEK,KAG5CL,EAAGA,CAACY,GAASI,eAAgBC,EAAuBA,wBAACD,EAAW,KAChER,EAAGA,CAACI,GAASI,eAAgBC,EAAuBA,wBAACD,EAAW,MAIxElB,EAAiBoB,WAAapB,EAAiBE,EAC/CF,EAAiBqB,WAAarB,EAAiBU,wBAhEjBY,GAC1BA,IAAMC,EAAMA,QAAID,IAAME,EAAAA,sEAapB,SAA0CC,GAC5C,MAAMC,EAAuC,GAW7C,OATA/B,EAA8BgC,QAAS7B,IACnC,MAAM8B,EACFH,EAAcI,SAAS/B,QACbgC,IAAVF,IACAF,EAAkBK,KAAK,CAACjC,EAAK8B,EAAMI,QACnCJ,EAAMK,IAAInC,EAAIoC,WAAW,SAAW,EAAI,MAIzCR,CACX"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcChildStagger=function(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const n=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,c=(s-1)*r;return"function"==typeof o?o(n,s):1===i?n*r:c-n*r};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.calcChildStagger=function(e,t,o,r=0,s=1){const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),n=e.size,c=(n-1)*r;return"function"==typeof o?o(i,n):1===s?i*r:c-i*r};
2
2
  //# sourceMappingURL=calc-child-stagger.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"calc-child-stagger.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs"],"sourcesContent":["function calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {\n const index = Array.from(children)\n .sort((a, b) => a.sortNodePosition(b))\n .indexOf(child);\n const numChildren = children.size;\n const maxStaggerDuration = (numChildren - 1) * staggerChildren;\n const delayIsFunction = typeof delayChildren === \"function\";\n return delayIsFunction\n ? delayChildren(index, numChildren)\n : staggerDirection === 1\n ? index * staggerChildren\n : maxStaggerDuration - index * staggerChildren;\n}\n\nexport { calcChildStagger };\n//# sourceMappingURL=calc-child-stagger.mjs.map\n"],"names":["children","child","delayChildren","staggerChildren","arguments","length","undefined","staggerDirection","index","Array","from","sort","a","b","sortNodePosition","indexOf","numChildren","size","maxStaggerDuration"],"mappings":"6FAGM,SACFA,EACAC,EACAC,GAE4B,IAD5BC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAA0B,EAC1BG,EAAAH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAA2B,EAE3B,MAAMI,EAAQC,MAAMC,KAAKV,GACpBW,KAAK,CAACC,EAAGC,IAAMD,EAAEE,iBAAiBD,IAClCE,QAAQd,GACPe,EAAchB,EAASiB,KACvBC,GAAsBF,EAAc,GAAKb,EAG/C,MAFiD,mBAAlBD,EAGzBA,EAAcM,EAAOQ,GACA,IAArBT,EACAC,EAAQL,EACRe,EAAqBV,EAAQL,CACvC"}
1
+ {"version":3,"file":"calc-child-stagger.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs"],"sourcesContent":["function calcChildStagger(children, child, delayChildren, staggerChildren = 0, staggerDirection = 1) {\n const index = Array.from(children)\n .sort((a, b) => a.sortNodePosition(b))\n .indexOf(child);\n const numChildren = children.size;\n const maxStaggerDuration = (numChildren - 1) * staggerChildren;\n const delayIsFunction = typeof delayChildren === \"function\";\n return delayIsFunction\n ? delayChildren(index, numChildren)\n : staggerDirection === 1\n ? index * staggerChildren\n : maxStaggerDuration - index * staggerChildren;\n}\n\nexport { calcChildStagger };\n//# sourceMappingURL=calc-child-stagger.mjs.map\n"],"names":["children","child","delayChildren","staggerChildren","staggerDirection","index","Array","from","sort","a","b","sortNodePosition","indexOf","numChildren","size","maxStaggerDuration"],"mappings":"6FAGM,SACFA,EACAC,EACAC,EACAC,EAA0B,EAC1BC,EAA2B,GAE3B,MAAMC,EAAQC,MAAMC,KAAKP,GACpBQ,KAAK,CAACC,EAAGC,IAAMD,EAAEE,iBAAiBD,IAClCE,QAAQX,GACPY,EAAcb,EAASc,KACvBC,GAAsBF,EAAc,GAAKV,EAG/C,MAFiD,mBAAlBD,EAGzBA,EAAcG,EAAOQ,GACA,IAArBT,EACAC,EAAQF,EACRY,EAAqBV,EAAQF,CACvC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./is-css-variable.mjs.js"),r=require("../../../../../motion-utils/dist/es/errors.mjs.js"),t=require("../../../../../motion-utils/dist/es/is-numerical-string.mjs.js");const i=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function s(e){const r=i.exec(e);if(!r)return[,];const[,t,s,a]=r;return[`--${t??s}`,a]}exports.getVariableValue=function i(a,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;r.invariant(o<=4,`Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[c,l]=s(a);if(!c)return;const u=window.getComputedStyle(n).getPropertyValue(c);if(u){const e=u.trim();return t.isNumericalString(e)?parseFloat(e):e}return e.isCSSVariableToken(l)?i(l,n,o+1):l},exports.parseCSSVariable=s;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./is-css-variable.mjs.js"),r=require("../../../../../motion-utils/dist/es/errors.mjs.js"),t=require("../../../../../motion-utils/dist/es/is-numerical-string.mjs.js");const i=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function s(e){const r=i.exec(e);if(!r)return[,];const[,t,s,a]=r;return[`--${t??s}`,a]}exports.getVariableValue=function i(a,n,o=1){r.invariant(o<=4,`Max CSS variable fallback depth detected in property "${a}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[c,u]=s(a);if(!c)return;const l=window.getComputedStyle(n).getPropertyValue(c);if(l){const e=l.trim();return t.isNumericalString(e)?parseFloat(e):e}return e.isCSSVariableToken(u)?i(u,n,o+1):u},exports.parseCSSVariable=s;
2
2
  //# sourceMappingURL=css-variables-conversion.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"css-variables-conversion.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs"],"sourcesContent":["import { invariant, isNumericalString } from 'motion-utils';\nimport { isCSSVariableToken } from './is-css-variable.mjs';\n\n/**\n * Parse Framer's special CSS variable format into a CSS token and a fallback.\n *\n * ```\n * `var(--foo, #fff)` => [`--foo`, '#fff']\n * ```\n *\n * @param current\n */\nconst splitCSSVariableRegex = \n// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words\n/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;\nfunction parseCSSVariable(current) {\n const match = splitCSSVariableRegex.exec(current);\n if (!match)\n return [,];\n const [, token1, token2, fallback] = match;\n return [`--${token1 ?? token2}`, fallback];\n}\nconst maxDepth = 4;\nfunction getVariableValue(current, element, depth = 1) {\n invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current}\". This may indicate a circular fallback dependency.`, \"max-css-var-depth\");\n const [token, fallback] = parseCSSVariable(current);\n // No CSS variable detected\n if (!token)\n return;\n // Attempt to read this CSS variable off the element\n const resolved = window.getComputedStyle(element).getPropertyValue(token);\n if (resolved) {\n const trimmed = resolved.trim();\n return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n }\n return isCSSVariableToken(fallback)\n ? getVariableValue(fallback, element, depth + 1)\n : fallback;\n}\n\nexport { getVariableValue, parseCSSVariable };\n//# sourceMappingURL=css-variables-conversion.mjs.map\n"],"names":["splitCSSVariableRegex","parseCSSVariable","current","match","exec","token1","token2","fallback","getVariableValue","element","depth","arguments","length","undefined","invariant","token","resolved","window","getComputedStyle","getPropertyValue","trimmed","trim","isNumericalString","parseFloat","isCSSVariableToken"],"mappings":"yPAcA,MAAMA,EAEF,2DACE,SAAUC,EAAiBC,GAC7B,MAAMC,EAAQH,EAAsBI,KAAKF,GACzC,IAAKC,EAAO,MAAO,IAEnB,MAASE,CAAAA,EAAQC,EAAQC,GAAYJ,EACrC,MAAO,CAAC,KAAKE,GAAUC,IAAUC,EACrC,0BAGM,SAAUC,EACZN,EACAO,GACS,IAATC,EAAKC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,EAERG,YACIJ,GAPS,EAQT,yDAAyDR,wDACzD,qBAGJ,MAAOa,EAAOR,GAAYN,EAAiBC,GAG3C,IAAKa,EAAO,OAGZ,MAAMC,EAAWC,OAAOC,iBAAiBT,GAASU,iBAAiBJ,GAEnE,GAAIC,EAAU,CACV,MAAMI,EAAUJ,EAASK,OACzB,OAAOC,EAAAA,kBAAkBF,GAAWG,WAAWH,GAAWA,CAC9D,CAEA,OAAOI,EAAkBA,mBAACjB,GACpBC,EAAiBD,EAAUE,EAASC,EAAQ,GAC5CH,CACV"}
1
+ {"version":3,"file":"css-variables-conversion.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs"],"sourcesContent":["import { invariant, isNumericalString } from 'motion-utils';\nimport { isCSSVariableToken } from './is-css-variable.mjs';\n\n/**\n * Parse Framer's special CSS variable format into a CSS token and a fallback.\n *\n * ```\n * `var(--foo, #fff)` => [`--foo`, '#fff']\n * ```\n *\n * @param current\n */\nconst splitCSSVariableRegex = \n// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words\n/^var\\(--(?:([\\w-]+)|([\\w-]+), ?([a-zA-Z\\d ()%#.,-]+))\\)/u;\nfunction parseCSSVariable(current) {\n const match = splitCSSVariableRegex.exec(current);\n if (!match)\n return [,];\n const [, token1, token2, fallback] = match;\n return [`--${token1 ?? token2}`, fallback];\n}\nconst maxDepth = 4;\nfunction getVariableValue(current, element, depth = 1) {\n invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property \"${current}\". This may indicate a circular fallback dependency.`, \"max-css-var-depth\");\n const [token, fallback] = parseCSSVariable(current);\n // No CSS variable detected\n if (!token)\n return;\n // Attempt to read this CSS variable off the element\n const resolved = window.getComputedStyle(element).getPropertyValue(token);\n if (resolved) {\n const trimmed = resolved.trim();\n return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;\n }\n return isCSSVariableToken(fallback)\n ? getVariableValue(fallback, element, depth + 1)\n : fallback;\n}\n\nexport { getVariableValue, parseCSSVariable };\n//# sourceMappingURL=css-variables-conversion.mjs.map\n"],"names":["splitCSSVariableRegex","parseCSSVariable","current","match","exec","token1","token2","fallback","getVariableValue","element","depth","invariant","token","resolved","window","getComputedStyle","getPropertyValue","trimmed","trim","isNumericalString","parseFloat","isCSSVariableToken"],"mappings":"yPAcA,MAAMA,EAEF,2DACE,SAAUC,EAAiBC,GAC7B,MAAMC,EAAQH,EAAsBI,KAAKF,GACzC,IAAKC,EAAO,MAAO,IAEnB,MAASE,CAAAA,EAAQC,EAAQC,GAAYJ,EACrC,MAAO,CAAC,KAAKE,GAAUC,IAAUC,EACrC,0BAGM,SAAUC,EACZN,EACAO,EACAC,EAAQ,GAERC,YACID,GAPS,EAQT,yDAAyDR,wDACzD,qBAGJ,MAAOU,EAAOL,GAAYN,EAAiBC,GAG3C,IAAKU,EAAO,OAGZ,MAAMC,EAAWC,OAAOC,iBAAiBN,GAASO,iBAAiBJ,GAEnE,GAAIC,EAAU,CACV,MAAMI,EAAUJ,EAASK,OACzB,OAAOC,EAAAA,kBAAkBF,GAAWG,WAAWH,GAAWA,CAC9D,CAEA,OAAOI,EAAkBA,mBAACd,GACpBC,EAAiBD,EAAUE,EAASC,EAAQ,GAC5CH,CACV"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/keys-transform.mjs.js");const s={type:"spring",stiffness:500,damping:25,restSpeed:10},t={type:"keyframes",duration:.8},r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};exports.getDefaultTransition=(a,n)=>{let{keyframes:i}=n;return i.length>2?t:e.transformProps.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===i[1]?2*Math.sqrt(550):30,restSpeed:10}:s:r};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../render/utils/keys-transform.mjs.js");const s={type:"spring",stiffness:500,damping:25,restSpeed:10},t={type:"keyframes",duration:.8},r={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};exports.getDefaultTransition=(a,{keyframes:n})=>n.length>2?t:e.transformProps.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:s:r;
2
2
  //# sourceMappingURL=default-transitions.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"default-transitions.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from '../../render/utils/keys-transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n//# sourceMappingURL=default-transitions.mjs.map\n"],"names":["underDampedSpring","type","stiffness","damping","restSpeed","keyframesTransition","duration","ease","getDefaultTransition","valueKey","_ref","keyframes","length","transformProps","has","startsWith","Math","sqrt"],"mappings":"8HAGA,MAAMA,EAAoD,CACtDC,KAAM,SACNC,UAAW,IACXC,QAAS,GACTC,UAAW,IAYTC,EAAsD,CACxDJ,KAAM,YACNK,SAAU,IAORC,EAAuC,CACzCN,KAAM,YACNM,KAAM,CAAC,IAAM,GAAK,IAAM,GACxBD,SAAU,iCAGsBE,CAChCC,EAAgBC,KAEgB,IADhCC,UAAEA,GAAkCD,EAEpC,OAAIC,EAAUC,OAAS,EACZP,EACAQ,EAAcA,eAACC,IAAIL,GACnBA,EAASM,WAAW,SA7BG,CAClCd,KAAM,SACNC,UAAW,IACXC,QAAoB,IA2BaQ,EAAU,GA3BnB,EAAIK,KAAKC,KAAK,KAAO,GAC7Cb,UAAW,IA2BDJ,EAGHO"}
1
+ {"version":3,"file":"default-transitions.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from '../../render/utils/keys-transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n//# sourceMappingURL=default-transitions.mjs.map\n"],"names":["underDampedSpring","type","stiffness","damping","restSpeed","keyframesTransition","duration","ease","getDefaultTransition","valueKey","keyframes","length","transformProps","has","startsWith","Math","sqrt"],"mappings":"8HAGA,MAAMA,EAAoD,CACtDC,KAAM,SACNC,UAAW,IACXC,QAAS,GACTC,UAAW,IAYTC,EAAsD,CACxDJ,KAAM,YACNK,SAAU,IAORC,EAAuC,CACzCN,KAAM,YACNM,KAAM,CAAC,IAAM,GAAK,IAAM,GACxBD,SAAU,iCAGsBE,CAChCC,GACEC,eAEEA,EAAUC,OAAS,EACZN,EACAO,EAAcA,eAACC,IAAIJ,GACnBA,EAASK,WAAW,SA7BG,CAClCb,KAAM,SACNC,UAAW,IACXC,QAAoB,IA2BaO,EAAU,GA3BnB,EAAIK,KAAKC,KAAK,KAAO,GAC7CZ,UAAW,IA2BDJ,EAGHO"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.cubicBezierAsString=e=>{let[r,t,i,c]=e;return`cubic-bezier(${r}, ${t}, ${i}, ${c})`};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.cubicBezierAsString=([e,r,i,t])=>`cubic-bezier(${e}, ${r}, ${i}, ${t})`;
2
2
  //# sourceMappingURL=cubic-bezier.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cubic-bezier.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs"],"sourcesContent":["const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\n\nexport { cubicBezierAsString };\n//# sourceMappingURL=cubic-bezier.mjs.map\n"],"names":["_ref","a","b","c","d"],"mappings":"gGAEmCA,IAAA,IAAEC,EAAGC,EAAGC,EAAGC,GAAoBJ,EAAA,MAC9D,gBAAgBC,MAAMC,MAAMC,MAAMC"}
1
+ {"version":3,"file":"cubic-bezier.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.mjs"],"sourcesContent":["const cubicBezierAsString = ([a, b, c, d]) => `cubic-bezier(${a}, ${b}, ${c}, ${d})`;\n\nexport { cubicBezierAsString };\n//# sourceMappingURL=cubic-bezier.mjs.map\n"],"names":["cubicBezierAsString","a","b","c","d"],"mappings":"gGAEmCA,EAAEC,EAAGC,EAAGC,EAAGC,KAC1C,gBAAgBH,MAAMC,MAAMC,MAAMC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./easing/map-easing.mjs.js");exports.startWaapiAnimation=function(a,t,r){let{delay:i=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:l="easeOut",times:d}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const u={[t]:r};d&&(u.offset=d);const g=e.mapEasingToNativeEasing(l,n);Array.isArray(g)&&(u.easing=g);const m={delay:i,duration:n,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};return p&&(m.pseudoElement=p),a.animate(u,m)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./easing/map-easing.mjs.js");exports.startWaapiAnimation=function(a,r,t,{delay:i=0,duration:s=300,repeat:n=0,repeatType:o="loop",ease:l="easeOut",times:p}={},u=void 0){const d={[r]:t};p&&(d.offset=p);const m=e.mapEasingToNativeEasing(l,s);Array.isArray(m)&&(d.easing=m);const y={delay:i,duration:s,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:n+1,direction:"reverse"===o?"alternate":"normal"};return u&&(y.pseudoElement=u),a.animate(d,y)};
2
2
  //# sourceMappingURL=start-waapi-animation.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"start-waapi-animation.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs"],"sourcesContent":["import { mapEasingToNativeEasing } from './easing/map-easing.mjs';\n\nfunction startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = \"loop\", ease = \"easeOut\", times, } = {}, pseudoElement = undefined) {\n const keyframeOptions = {\n [valueName]: keyframes,\n };\n if (times)\n keyframeOptions.offset = times;\n const easing = mapEasingToNativeEasing(ease, duration);\n /**\n * If this is an easing array, apply to keyframes, not animation as a whole\n */\n if (Array.isArray(easing))\n keyframeOptions.easing = easing;\n const options = {\n delay,\n duration,\n easing: !Array.isArray(easing) ? easing : \"linear\",\n fill: \"both\",\n iterations: repeat + 1,\n direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\",\n };\n if (pseudoElement)\n options.pseudoElement = pseudoElement;\n return element.animate(keyframeOptions, options);\n}\n\nexport { startWaapiAnimation };\n//# sourceMappingURL=start-waapi-animation.mjs.map\n"],"names":["element","valueName","keyframes","delay","duration","repeat","repeatType","ease","times","arguments","length","undefined","pseudoElement","keyframeOptions","offset","easing","mapEasingToNativeEasing","Array","isArray","options","fill","iterations","direction","animate"],"mappings":"4IAGM,SACFA,EACAC,EACAC,GAS6C,IAR7CC,MACIA,EAAQ,EAACC,SACTA,EAAW,IAAGC,OACdA,EAAS,EAACC,WACVA,EAAa,OAAMC,KACnBA,EAAO,UAASC,MAChBA,GAAKC,UAAAC,OAAAD,QAAAE,IAAAF,aAAAA,UAAA,GACY,GACrBG,EAAAH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,QAAoCE,EAEpC,MAAME,EAA4C,CAC9CZ,CAACA,GAAYC,GAEbM,IAAOK,EAAgBC,OAASN,GAEpC,MAAMO,EAASC,EAAAA,wBAAwBT,EAAMH,GAKzCa,MAAMC,QAAQH,KAASF,EAAgBE,OAASA,GAEpD,MAAMI,EAAoC,CACtChB,QACAC,WACAW,OAASE,MAAMC,QAAQH,GAAmB,SAATA,EACjCK,KAAM,OACNC,WAAYhB,EAAS,EACrBiB,UAA0B,YAAfhB,EAA2B,YAAc,UAKxD,OAFIM,IAAeO,EAAQP,cAAgBA,GAEpCZ,EAAQuB,QAAQV,EAAiBM,EAC5C"}
1
+ {"version":3,"file":"start-waapi-animation.mjs.js","sources":["../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs"],"sourcesContent":["import { mapEasingToNativeEasing } from './easing/map-easing.mjs';\n\nfunction startWaapiAnimation(element, valueName, keyframes, { delay = 0, duration = 300, repeat = 0, repeatType = \"loop\", ease = \"easeOut\", times, } = {}, pseudoElement = undefined) {\n const keyframeOptions = {\n [valueName]: keyframes,\n };\n if (times)\n keyframeOptions.offset = times;\n const easing = mapEasingToNativeEasing(ease, duration);\n /**\n * If this is an easing array, apply to keyframes, not animation as a whole\n */\n if (Array.isArray(easing))\n keyframeOptions.easing = easing;\n const options = {\n delay,\n duration,\n easing: !Array.isArray(easing) ? easing : \"linear\",\n fill: \"both\",\n iterations: repeat + 1,\n direction: repeatType === \"reverse\" ? \"alternate\" : \"normal\",\n };\n if (pseudoElement)\n options.pseudoElement = pseudoElement;\n return element.animate(keyframeOptions, options);\n}\n\nexport { startWaapiAnimation };\n//# sourceMappingURL=start-waapi-animation.mjs.map\n"],"names":["element","valueName","keyframes","delay","duration","repeat","repeatType","ease","times","pseudoElement","undefined","keyframeOptions","offset","easing","mapEasingToNativeEasing","Array","isArray","options","fill","iterations","direction","animate"],"mappings":"4IAGM,SACFA,EACAC,EACAC,GACAC,MACIA,EAAQ,EAACC,SACTA,EAAW,IAAGC,OACdA,EAAS,EAACC,WACVA,EAAa,OAAMC,KACnBA,EAAO,UAASC,MAChBA,GACiB,CAAE,EACvBC,OAAoCC,GAEpC,MAAMC,EAA4C,CAC9CV,CAACA,GAAYC,GAEbM,IAAOG,EAAgBC,OAASJ,GAEpC,MAAMK,EAASC,EAAAA,wBAAwBP,EAAMH,GAKzCW,MAAMC,QAAQH,KAASF,EAAgBE,OAASA,GAEpD,MAAMI,EAAoC,CACtCd,QACAC,WACAS,OAASE,MAAMC,QAAQH,GAAmB,SAATA,EACjCK,KAAM,OACNC,WAAYd,EAAS,EACrBe,UAA0B,YAAfd,EAA2B,YAAc,UAKxD,OAFIG,IAAeQ,EAAQR,cAAgBA,GAEpCT,EAAQqB,QAAQV,EAAiBM,EAC5C"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/supports/linear-easing.mjs.js"),r=require("../../generators/utils/is-generator.mjs.js");exports.applyGeneratorOptions=function(s){let{type:t,...a}=s;return r.isGenerator(t)&&e.supportsLinearEasing()?t.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../utils/supports/linear-easing.mjs.js"),r=require("../../generators/utils/is-generator.mjs.js");exports.applyGeneratorOptions=function({type:s,...t}){return r.isGenerator(s)&&e.supportsLinearEasing()?s.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)};
2
2
  //# sourceMappingURL=apply-generator.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"apply-generator.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs"],"sourcesContent":["import { supportsLinearEasing } from '../../../utils/supports/linear-easing.mjs';\nimport { isGenerator } from '../../generators/utils/is-generator.mjs';\n\nfunction applyGeneratorOptions({ type, ...options }) {\n if (isGenerator(type) && supportsLinearEasing()) {\n return type.applyToOptions(options);\n }\n else {\n options.duration ?? (options.duration = 300);\n options.ease ?? (options.ease = \"easeOut\");\n }\n return options;\n}\n\nexport { applyGeneratorOptions };\n//# sourceMappingURL=apply-generator.mjs.map\n"],"names":["_ref","type","options","isGenerator","supportsLinearEasing","applyToOptions","duration","ease"],"mappings":"wNAIM,SAA+BA,GAGnB,IAHoBC,KAClCA,KACGC,GACWF,EACd,OAAIG,cAAYF,IAASG,EAAAA,uBACdH,EAAKI,eAAgBH,IAE5BA,EAAQI,WAARJ,EAAQI,SAAa,KACrBJ,EAAQK,OAARL,EAAQK,KAAS,WAGdL,EACX"}
1
+ {"version":3,"file":"apply-generator.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs"],"sourcesContent":["import { supportsLinearEasing } from '../../../utils/supports/linear-easing.mjs';\nimport { isGenerator } from '../../generators/utils/is-generator.mjs';\n\nfunction applyGeneratorOptions({ type, ...options }) {\n if (isGenerator(type) && supportsLinearEasing()) {\n return type.applyToOptions(options);\n }\n else {\n options.duration ?? (options.duration = 300);\n options.ease ?? (options.ease = \"easeOut\");\n }\n return options;\n}\n\nexport { applyGeneratorOptions };\n//# sourceMappingURL=apply-generator.mjs.map\n"],"names":["type","options","isGenerator","supportsLinearEasing","applyToOptions","duration","ease"],"mappings":"wNAIM,UAAgCA,KAClCA,KACGC,IAEH,OAAIC,cAAYF,IAASG,EAAAA,uBACdH,EAAKI,eAAgBH,IAE5BA,EAAQI,WAARJ,EAAQI,SAAa,KACrBJ,EAAQK,OAARL,EAAQK,KAAS,WAGdL,EACX"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.generateLinearEasing=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.generateLinearEasing=(e,t,r=10)=>{let n="";const a=Math.max(Math.round(t/r),2);for(let t=0;t<a;t++)n+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};
2
2
  //# sourceMappingURL=linear.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"linear.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs"],"sourcesContent":["const generateLinearEasing = (easing, duration, // as milliseconds\nresolution = 10 // as milliseconds\n) => {\n let points = \"\";\n const numPoints = Math.max(Math.round(duration / resolution), 2);\n for (let i = 0; i < numPoints; i++) {\n points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + \", \";\n }\n return `linear(${points.substring(0, points.length - 2)})`;\n};\n\nexport { generateLinearEasing };\n//# sourceMappingURL=linear.mjs.map\n"],"names":["easing","duration","resolution","arguments","length","undefined","points","numPoints","Math","max","round","i","substring"],"mappings":"iGAEoC,SAChCA,EACAC,GAEQ,IADRC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAqB,GAEjBG,EAAS,GACb,MAAMC,EAAYC,KAAKC,IAAID,KAAKE,MAAMT,EAAWC,GAAa,GAE9D,IAAK,IAAIS,EAAI,EAAGA,EAAIJ,EAAWI,IAC3BL,GAAUE,KAAKE,MAAoC,IAA9BV,EAAOW,GAAKJ,EAAY,KAAe,IAAQ,KAGxE,MAAO,UAAUD,EAAOM,UAAU,EAAGN,EAAOF,OAAS,KACzD"}
1
+ {"version":3,"file":"linear.mjs.js","sources":["../../../../../../../../node_modules/motion-dom/dist/es/animation/waapi/utils/linear.mjs"],"sourcesContent":["const generateLinearEasing = (easing, duration, // as milliseconds\nresolution = 10 // as milliseconds\n) => {\n let points = \"\";\n const numPoints = Math.max(Math.round(duration / resolution), 2);\n for (let i = 0; i < numPoints; i++) {\n points += Math.round(easing(i / (numPoints - 1)) * 10000) / 10000 + \", \";\n }\n return `linear(${points.substring(0, points.length - 2)})`;\n};\n\nexport { generateLinearEasing };\n//# sourceMappingURL=linear.mjs.map\n"],"names":["generateLinearEasing","easing","duration","resolution","points","numPoints","Math","max","round","i","substring","length"],"mappings":"iGAEoCA,CAChCC,EACAC,EACAC,EAAqB,MAErB,IAAIC,EAAS,GACb,MAAMC,EAAYC,KAAKC,IAAID,KAAKE,MAAMN,EAAWC,GAAa,GAE9D,IAAK,IAAIM,EAAI,EAAGA,EAAIJ,EAAWI,IAC3BL,GAAUE,KAAKE,MAAoC,IAA9BP,EAAOQ,GAAKJ,EAAY,KAAe,IAAQ,KAGxE,MAAO,UAAUD,EAAOM,UAAU,EAAGN,EAAOO,OAAS"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addDomEvent=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.addDomEvent=function(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)};
2
2
  //# sourceMappingURL=add-dom-event.mjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-dom-event.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/events/add-dom-event.mjs"],"sourcesContent":["function addDomEvent(target, eventName, handler, options = { passive: true }) {\n target.addEventListener(eventName, handler, options);\n return () => target.removeEventListener(eventName, handler, options);\n}\n\nexport { addDomEvent };\n//# sourceMappingURL=add-dom-event.mjs.map\n"],"names":["target","eventName","handler","options","arguments","length","undefined","passive","addEventListener","removeEventListener"],"mappings":"wFAAM,SACFA,EACAC,EACAC,GACoD,IAApDC,EAAAC,UAAAC,OAAAD,QAAAE,IAAAF,UAAAE,GAAAF,UAAmC,GAAA,CAAEG,SAAS,GAI9C,OAFAP,EAAOQ,iBAAiBP,EAAWC,EAASC,GAErC,IAAMH,EAAOS,oBAAoBR,EAAWC,EAASC,EAChE"}
1
+ {"version":3,"file":"add-dom-event.mjs.js","sources":["../../../../../../node_modules/motion-dom/dist/es/events/add-dom-event.mjs"],"sourcesContent":["function addDomEvent(target, eventName, handler, options = { passive: true }) {\n target.addEventListener(eventName, handler, options);\n return () => target.removeEventListener(eventName, handler, options);\n}\n\nexport { addDomEvent };\n//# sourceMappingURL=add-dom-event.mjs.map\n"],"names":["target","eventName","handler","options","passive","addEventListener","removeEventListener"],"mappings":"wFAAM,SACFA,EACAC,EACAC,EACAC,EAAmC,CAAEC,SAAS,IAI9C,OAFAJ,EAAOK,iBAAiBJ,EAAWC,EAASC,GAErC,IAAMH,EAAOM,oBAAoBL,EAAWC,EAASC,EAChE"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./order.mjs.js"),s=require("./render-step.mjs.js"),r=require("../../../../motion-utils/dist/es/global-config.mjs.js");exports.createRenderBatcher=function(t,o){let n=!1,c=!0;const i={delta:0,timestamp:0,isProcessing:!1},p=()=>n=!0,a=e.stepsOrder.reduce((e,r)=>(e[r]=s.createRenderStep(p),e),{}),{setup:d,read:l,resolveKeyframes:u,preUpdate:m,update:g,preRender:f,render:h,postRender:j}=a,v=()=>{const e=r.MotionGlobalConfig.useManualTiming,s=e?i.timestamp:performance.now();n=!1,e||(i.delta=c?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,d.process(i),l.process(i),u.process(i),m.process(i),g.process(i),f.process(i),h.process(i),j.process(i),i.isProcessing=!1,n&&o&&(c=!1,t(v))};return{schedule:e.stepsOrder.reduce((e,s)=>{const r=a[s];return e[s]=function(e){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,c=!0,i.isProcessing||t(v)),r.schedule(e,s,o)},e},{}),cancel:s=>{for(let r=0;r<e.stepsOrder.length;r++)a[e.stepsOrder[r]].cancel(s)},state:i,steps:a}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./order.mjs.js"),s=require("./render-step.mjs.js"),r=require("../../../../motion-utils/dist/es/global-config.mjs.js");exports.createRenderBatcher=function(t,o){let c=!1,n=!0;const p={delta:0,timestamp:0,isProcessing:!1},i=()=>c=!0,a=e.stepsOrder.reduce((e,r)=>(e[r]=s.createRenderStep(i),e),{}),{setup:d,read:l,resolveKeyframes:u,preUpdate:m,update:g,preRender:f,render:j,postRender:h}=a,M=()=>{const e=r.MotionGlobalConfig.useManualTiming,s=e?p.timestamp:performance.now();c=!1,e||(p.delta=n?1e3/60:Math.max(Math.min(s-p.timestamp,40),1)),p.timestamp=s,p.isProcessing=!0,d.process(p),l.process(p),u.process(p),m.process(p),g.process(p),f.process(p),j.process(p),h.process(p),p.isProcessing=!1,c&&o&&(n=!1,t(M))};return{schedule:e.stepsOrder.reduce((e,s)=>{const r=a[s];return e[s]=(e,s=!1,o=!1)=>(c||(c=!0,n=!0,p.isProcessing||t(M)),r.schedule(e,s,o)),e},{}),cancel:s=>{for(let r=0;r<e.stepsOrder.length;r++)a[e.stepsOrder[r]].cancel(s)},state:p,steps:a}};
2
2
  //# sourceMappingURL=batcher.mjs.js.map