framer-motion 12.23.25 → 12.23.27

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 (490) hide show
  1. package/dist/cjs/client.js +2 -1
  2. package/dist/cjs/client.js.map +1 -0
  3. package/dist/cjs/debug.js +1 -0
  4. package/dist/cjs/debug.js.map +1 -0
  5. package/dist/cjs/dom-mini.js +1 -0
  6. package/dist/cjs/dom-mini.js.map +1 -0
  7. package/dist/cjs/dom.js +86 -1
  8. package/dist/cjs/dom.js.map +1 -0
  9. package/dist/cjs/{feature-bundle-DUrrFqHS.js → feature-bundle-kvRbMDEA.js} +86 -87
  10. package/dist/cjs/feature-bundle-kvRbMDEA.js.map +1 -0
  11. package/dist/cjs/index.js +2 -1
  12. package/dist/cjs/index.js.map +1 -0
  13. package/dist/cjs/m.js +86 -1
  14. package/dist/cjs/m.js.map +1 -0
  15. package/dist/cjs/mini.js +1 -0
  16. package/dist/cjs/mini.js.map +1 -0
  17. package/dist/dom.js +1 -1
  18. package/dist/es/animation/animate/index.mjs +1 -0
  19. package/dist/es/animation/animate/index.mjs.map +1 -0
  20. package/dist/es/animation/animate/resolve-subjects.mjs +1 -0
  21. package/dist/es/animation/animate/resolve-subjects.mjs.map +1 -0
  22. package/dist/es/animation/animate/sequence.mjs +1 -0
  23. package/dist/es/animation/animate/sequence.mjs.map +1 -0
  24. package/dist/es/animation/animate/single-value.mjs +1 -0
  25. package/dist/es/animation/animate/single-value.mjs.map +1 -0
  26. package/dist/es/animation/animate/subject.mjs +1 -0
  27. package/dist/es/animation/animate/subject.mjs.map +1 -0
  28. package/dist/es/animation/animators/waapi/animate-elements.mjs +1 -0
  29. package/dist/es/animation/animators/waapi/animate-elements.mjs.map +1 -0
  30. package/dist/es/animation/animators/waapi/animate-sequence.mjs +1 -0
  31. package/dist/es/animation/animators/waapi/animate-sequence.mjs.map +1 -0
  32. package/dist/es/animation/animators/waapi/animate-style.mjs +1 -0
  33. package/dist/es/animation/animators/waapi/animate-style.mjs.map +1 -0
  34. package/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs +1 -0
  35. package/dist/es/animation/animators/waapi/utils/get-final-keyframe.mjs.map +1 -0
  36. package/dist/es/animation/hooks/animation-controls.mjs +1 -0
  37. package/dist/es/animation/hooks/animation-controls.mjs.map +1 -0
  38. package/dist/es/animation/hooks/use-animate-style.mjs +1 -0
  39. package/dist/es/animation/hooks/use-animate-style.mjs.map +1 -0
  40. package/dist/es/animation/hooks/use-animate.mjs +1 -0
  41. package/dist/es/animation/hooks/use-animate.mjs.map +1 -0
  42. package/dist/es/animation/hooks/use-animated-state.mjs +1 -0
  43. package/dist/es/animation/hooks/use-animated-state.mjs.map +1 -0
  44. package/dist/es/animation/hooks/use-animation.mjs +1 -0
  45. package/dist/es/animation/hooks/use-animation.mjs.map +1 -0
  46. package/dist/es/animation/interfaces/motion-value.mjs +1 -0
  47. package/dist/es/animation/interfaces/motion-value.mjs.map +1 -0
  48. package/dist/es/animation/interfaces/visual-element-target.mjs +1 -0
  49. package/dist/es/animation/interfaces/visual-element-target.mjs.map +1 -0
  50. package/dist/es/animation/interfaces/visual-element-variant.mjs +1 -0
  51. package/dist/es/animation/interfaces/visual-element-variant.mjs.map +1 -0
  52. package/dist/es/animation/interfaces/visual-element.mjs +1 -0
  53. package/dist/es/animation/interfaces/visual-element.mjs.map +1 -0
  54. package/dist/es/animation/optimized-appear/data-id.mjs +1 -0
  55. package/dist/es/animation/optimized-appear/data-id.mjs.map +1 -0
  56. package/dist/es/animation/optimized-appear/get-appear-id.mjs +1 -0
  57. package/dist/es/animation/optimized-appear/get-appear-id.mjs.map +1 -0
  58. package/dist/es/animation/optimized-appear/handoff.mjs +1 -0
  59. package/dist/es/animation/optimized-appear/handoff.mjs.map +1 -0
  60. package/dist/es/animation/optimized-appear/start.mjs +1 -0
  61. package/dist/es/animation/optimized-appear/start.mjs.map +1 -0
  62. package/dist/es/animation/optimized-appear/store-id.mjs +1 -0
  63. package/dist/es/animation/optimized-appear/store-id.mjs.map +1 -0
  64. package/dist/es/animation/optimized-appear/store.mjs +1 -0
  65. package/dist/es/animation/optimized-appear/store.mjs.map +1 -0
  66. package/dist/es/animation/sequence/create.mjs +1 -0
  67. package/dist/es/animation/sequence/create.mjs.map +1 -0
  68. package/dist/es/animation/sequence/utils/calc-repeat-duration.mjs +1 -0
  69. package/dist/es/animation/sequence/utils/calc-repeat-duration.mjs.map +1 -0
  70. package/dist/es/animation/sequence/utils/calc-time.mjs +1 -0
  71. package/dist/es/animation/sequence/utils/calc-time.mjs.map +1 -0
  72. package/dist/es/animation/sequence/utils/edit.mjs +1 -0
  73. package/dist/es/animation/sequence/utils/edit.mjs.map +1 -0
  74. package/dist/es/animation/sequence/utils/normalize-times.mjs +1 -0
  75. package/dist/es/animation/sequence/utils/normalize-times.mjs.map +1 -0
  76. package/dist/es/animation/sequence/utils/sort.mjs +1 -0
  77. package/dist/es/animation/sequence/utils/sort.mjs.map +1 -0
  78. package/dist/es/animation/utils/calc-child-stagger.mjs +1 -0
  79. package/dist/es/animation/utils/calc-child-stagger.mjs.map +1 -0
  80. package/dist/es/animation/utils/create-visual-element.mjs +1 -0
  81. package/dist/es/animation/utils/create-visual-element.mjs.map +1 -0
  82. package/dist/es/animation/utils/default-transitions.mjs +1 -0
  83. package/dist/es/animation/utils/default-transitions.mjs.map +1 -0
  84. package/dist/es/animation/utils/is-animation-controls.mjs +1 -0
  85. package/dist/es/animation/utils/is-animation-controls.mjs.map +1 -0
  86. package/dist/es/animation/utils/is-dom-keyframes.mjs +1 -0
  87. package/dist/es/animation/utils/is-dom-keyframes.mjs.map +1 -0
  88. package/dist/es/animation/utils/is-keyframes-target.mjs +1 -0
  89. package/dist/es/animation/utils/is-keyframes-target.mjs.map +1 -0
  90. package/dist/es/animation/utils/is-transition-defined.mjs +1 -0
  91. package/dist/es/animation/utils/is-transition-defined.mjs.map +1 -0
  92. package/dist/es/client.mjs +1 -0
  93. package/dist/es/client.mjs.map +1 -0
  94. package/dist/es/components/AnimatePresence/PopChild.mjs +1 -0
  95. package/dist/es/components/AnimatePresence/PopChild.mjs.map +1 -0
  96. package/dist/es/components/AnimatePresence/PresenceChild.mjs +1 -0
  97. package/dist/es/components/AnimatePresence/PresenceChild.mjs.map +1 -0
  98. package/dist/es/components/AnimatePresence/index.mjs +1 -0
  99. package/dist/es/components/AnimatePresence/index.mjs.map +1 -0
  100. package/dist/es/components/AnimatePresence/use-presence-data.mjs +1 -0
  101. package/dist/es/components/AnimatePresence/use-presence-data.mjs.map +1 -0
  102. package/dist/es/components/AnimatePresence/use-presence.mjs +1 -0
  103. package/dist/es/components/AnimatePresence/use-presence.mjs.map +1 -0
  104. package/dist/es/components/AnimatePresence/utils.mjs +1 -0
  105. package/dist/es/components/AnimatePresence/utils.mjs.map +1 -0
  106. package/dist/es/components/AnimateSharedLayout.mjs +1 -0
  107. package/dist/es/components/AnimateSharedLayout.mjs.map +1 -0
  108. package/dist/es/components/LayoutGroup/index.mjs +1 -0
  109. package/dist/es/components/LayoutGroup/index.mjs.map +1 -0
  110. package/dist/es/components/LazyMotion/index.mjs +1 -0
  111. package/dist/es/components/LazyMotion/index.mjs.map +1 -0
  112. package/dist/es/components/MotionConfig/index.mjs +1 -0
  113. package/dist/es/components/MotionConfig/index.mjs.map +1 -0
  114. package/dist/es/components/Reorder/Group.mjs +1 -0
  115. package/dist/es/components/Reorder/Group.mjs.map +1 -0
  116. package/dist/es/components/Reorder/Item.mjs +1 -0
  117. package/dist/es/components/Reorder/Item.mjs.map +1 -0
  118. package/dist/es/components/Reorder/namespace.mjs +1 -0
  119. package/dist/es/components/Reorder/namespace.mjs.map +1 -0
  120. package/dist/es/components/Reorder/utils/check-reorder.mjs +1 -0
  121. package/dist/es/components/Reorder/utils/check-reorder.mjs.map +1 -0
  122. package/dist/es/context/DeprecatedLayoutGroupContext.mjs +1 -0
  123. package/dist/es/context/DeprecatedLayoutGroupContext.mjs.map +1 -0
  124. package/dist/es/context/LayoutGroupContext.mjs +1 -0
  125. package/dist/es/context/LayoutGroupContext.mjs.map +1 -0
  126. package/dist/es/context/LazyContext.mjs +1 -0
  127. package/dist/es/context/LazyContext.mjs.map +1 -0
  128. package/dist/es/context/MotionConfigContext.mjs +1 -0
  129. package/dist/es/context/MotionConfigContext.mjs.map +1 -0
  130. package/dist/es/context/MotionContext/create.mjs +1 -0
  131. package/dist/es/context/MotionContext/create.mjs.map +1 -0
  132. package/dist/es/context/MotionContext/index.mjs +1 -0
  133. package/dist/es/context/MotionContext/index.mjs.map +1 -0
  134. package/dist/es/context/MotionContext/utils.mjs +1 -0
  135. package/dist/es/context/MotionContext/utils.mjs.map +1 -0
  136. package/dist/es/context/PresenceContext.mjs +1 -0
  137. package/dist/es/context/PresenceContext.mjs.map +1 -0
  138. package/dist/es/context/ReorderContext.mjs +1 -0
  139. package/dist/es/context/ReorderContext.mjs.map +1 -0
  140. package/dist/es/context/SwitchLayoutGroupContext.mjs +1 -0
  141. package/dist/es/context/SwitchLayoutGroupContext.mjs.map +1 -0
  142. package/dist/es/debug.mjs +1 -0
  143. package/dist/es/debug.mjs.map +1 -0
  144. package/dist/es/dom-mini.mjs +1 -0
  145. package/dist/es/dom-mini.mjs.map +1 -0
  146. package/dist/es/dom.mjs +1 -0
  147. package/dist/es/dom.mjs.map +1 -0
  148. package/dist/es/events/add-dom-event.mjs +1 -0
  149. package/dist/es/events/add-dom-event.mjs.map +1 -0
  150. package/dist/es/events/add-pointer-event.mjs +1 -0
  151. package/dist/es/events/add-pointer-event.mjs.map +1 -0
  152. package/dist/es/events/event-info.mjs +1 -0
  153. package/dist/es/events/event-info.mjs.map +1 -0
  154. package/dist/es/events/use-dom-event.mjs +1 -0
  155. package/dist/es/events/use-dom-event.mjs.map +1 -0
  156. package/dist/es/gestures/drag/VisualElementDragControls.mjs +1 -0
  157. package/dist/es/gestures/drag/VisualElementDragControls.mjs.map +1 -0
  158. package/dist/es/gestures/drag/index.mjs +1 -0
  159. package/dist/es/gestures/drag/index.mjs.map +1 -0
  160. package/dist/es/gestures/drag/use-drag-controls.mjs +1 -0
  161. package/dist/es/gestures/drag/use-drag-controls.mjs.map +1 -0
  162. package/dist/es/gestures/drag/utils/constraints.mjs +1 -0
  163. package/dist/es/gestures/drag/utils/constraints.mjs.map +1 -0
  164. package/dist/es/gestures/focus.mjs +1 -0
  165. package/dist/es/gestures/focus.mjs.map +1 -0
  166. package/dist/es/gestures/hover.mjs +1 -0
  167. package/dist/es/gestures/hover.mjs.map +1 -0
  168. package/dist/es/gestures/pan/PanSession.mjs +1 -0
  169. package/dist/es/gestures/pan/PanSession.mjs.map +1 -0
  170. package/dist/es/gestures/pan/index.mjs +1 -0
  171. package/dist/es/gestures/pan/index.mjs.map +1 -0
  172. package/dist/es/gestures/press.mjs +1 -0
  173. package/dist/es/gestures/press.mjs.map +1 -0
  174. package/dist/es/index.mjs +1 -0
  175. package/dist/es/index.mjs.map +1 -0
  176. package/dist/es/m.mjs +1 -0
  177. package/dist/es/m.mjs.map +1 -0
  178. package/dist/es/mini.mjs +1 -0
  179. package/dist/es/mini.mjs.map +1 -0
  180. package/dist/es/motion/features/Feature.mjs +1 -0
  181. package/dist/es/motion/features/Feature.mjs.map +1 -0
  182. package/dist/es/motion/features/animation/exit.mjs +1 -0
  183. package/dist/es/motion/features/animation/exit.mjs.map +1 -0
  184. package/dist/es/motion/features/animation/index.mjs +1 -0
  185. package/dist/es/motion/features/animation/index.mjs.map +1 -0
  186. package/dist/es/motion/features/animations.mjs +1 -0
  187. package/dist/es/motion/features/animations.mjs.map +1 -0
  188. package/dist/es/motion/features/definitions.mjs +1 -0
  189. package/dist/es/motion/features/definitions.mjs.map +1 -0
  190. package/dist/es/motion/features/drag.mjs +1 -0
  191. package/dist/es/motion/features/drag.mjs.map +1 -0
  192. package/dist/es/motion/features/gestures.mjs +1 -0
  193. package/dist/es/motion/features/gestures.mjs.map +1 -0
  194. package/dist/es/motion/features/layout/MeasureLayout.mjs +1 -20
  195. package/dist/es/motion/features/layout/MeasureLayout.mjs.map +1 -0
  196. package/dist/es/motion/features/layout.mjs +1 -0
  197. package/dist/es/motion/features/layout.mjs.map +1 -0
  198. package/dist/es/motion/features/load-features.mjs +1 -0
  199. package/dist/es/motion/features/load-features.mjs.map +1 -0
  200. package/dist/es/motion/features/viewport/index.mjs +1 -0
  201. package/dist/es/motion/features/viewport/index.mjs.map +1 -0
  202. package/dist/es/motion/features/viewport/observers.mjs +1 -0
  203. package/dist/es/motion/features/viewport/observers.mjs.map +1 -0
  204. package/dist/es/motion/index.mjs +1 -0
  205. package/dist/es/motion/index.mjs.map +1 -0
  206. package/dist/es/motion/utils/is-forced-motion-value.mjs +1 -0
  207. package/dist/es/motion/utils/is-forced-motion-value.mjs.map +1 -0
  208. package/dist/es/motion/utils/is-motion-component.mjs +1 -0
  209. package/dist/es/motion/utils/is-motion-component.mjs.map +1 -0
  210. package/dist/es/motion/utils/symbol.mjs +1 -0
  211. package/dist/es/motion/utils/symbol.mjs.map +1 -0
  212. package/dist/es/motion/utils/unwrap-motion-component.mjs +1 -0
  213. package/dist/es/motion/utils/unwrap-motion-component.mjs.map +1 -0
  214. package/dist/es/motion/utils/use-motion-ref.mjs +1 -0
  215. package/dist/es/motion/utils/use-motion-ref.mjs.map +1 -0
  216. package/dist/es/motion/utils/use-visual-element.mjs +1 -0
  217. package/dist/es/motion/utils/use-visual-element.mjs.map +1 -0
  218. package/dist/es/motion/utils/use-visual-state.mjs +1 -0
  219. package/dist/es/motion/utils/use-visual-state.mjs.map +1 -0
  220. package/dist/es/motion/utils/valid-prop.mjs +1 -0
  221. package/dist/es/motion/utils/valid-prop.mjs.map +1 -0
  222. package/dist/es/projection/animation/mix-values.mjs +1 -0
  223. package/dist/es/projection/animation/mix-values.mjs.map +1 -0
  224. package/dist/es/projection/geometry/conversion.mjs +1 -0
  225. package/dist/es/projection/geometry/conversion.mjs.map +1 -0
  226. package/dist/es/projection/geometry/copy.mjs +1 -0
  227. package/dist/es/projection/geometry/copy.mjs.map +1 -0
  228. package/dist/es/projection/geometry/delta-apply.mjs +1 -0
  229. package/dist/es/projection/geometry/delta-apply.mjs.map +1 -0
  230. package/dist/es/projection/geometry/delta-calc.mjs +1 -0
  231. package/dist/es/projection/geometry/delta-calc.mjs.map +1 -0
  232. package/dist/es/projection/geometry/delta-remove.mjs +1 -0
  233. package/dist/es/projection/geometry/delta-remove.mjs.map +1 -0
  234. package/dist/es/projection/geometry/models.mjs +1 -0
  235. package/dist/es/projection/geometry/models.mjs.map +1 -0
  236. package/dist/es/projection/geometry/utils.mjs +1 -0
  237. package/dist/es/projection/geometry/utils.mjs.map +1 -0
  238. package/dist/es/projection/node/DocumentProjectionNode.mjs +1 -0
  239. package/dist/es/projection/node/DocumentProjectionNode.mjs.map +1 -0
  240. package/dist/es/projection/node/HTMLProjectionNode.mjs +1 -0
  241. package/dist/es/projection/node/HTMLProjectionNode.mjs.map +1 -0
  242. package/dist/es/projection/node/create-projection-node.mjs +1 -0
  243. package/dist/es/projection/node/create-projection-node.mjs.map +1 -0
  244. package/dist/es/projection/node/group.mjs +1 -0
  245. package/dist/es/projection/node/group.mjs.map +1 -0
  246. package/dist/es/projection/node/state.mjs +1 -0
  247. package/dist/es/projection/node/state.mjs.map +1 -0
  248. package/dist/es/projection/shared/stack.mjs +1 -0
  249. package/dist/es/projection/shared/stack.mjs.map +1 -0
  250. package/dist/es/projection/styles/scale-border-radius.mjs +1 -0
  251. package/dist/es/projection/styles/scale-border-radius.mjs.map +1 -0
  252. package/dist/es/projection/styles/scale-box-shadow.mjs +1 -0
  253. package/dist/es/projection/styles/scale-box-shadow.mjs.map +1 -0
  254. package/dist/es/projection/styles/scale-correction.mjs +19 -1
  255. package/dist/es/projection/styles/scale-correction.mjs.map +1 -0
  256. package/dist/es/projection/styles/transform.mjs +1 -0
  257. package/dist/es/projection/styles/transform.mjs.map +1 -0
  258. package/dist/es/projection/use-instant-layout-transition.mjs +1 -0
  259. package/dist/es/projection/use-instant-layout-transition.mjs.map +1 -0
  260. package/dist/es/projection/use-reset-projection.mjs +1 -0
  261. package/dist/es/projection/use-reset-projection.mjs.map +1 -0
  262. package/dist/es/projection/utils/each-axis.mjs +1 -0
  263. package/dist/es/projection/utils/each-axis.mjs.map +1 -0
  264. package/dist/es/projection/utils/has-transform.mjs +1 -0
  265. package/dist/es/projection/utils/has-transform.mjs.map +1 -0
  266. package/dist/es/projection/utils/measure.mjs +1 -0
  267. package/dist/es/projection/utils/measure.mjs.map +1 -0
  268. package/dist/es/projection.mjs +1 -0
  269. package/dist/es/projection.mjs.map +1 -0
  270. package/dist/es/render/VisualElement.mjs +1 -0
  271. package/dist/es/render/VisualElement.mjs.map +1 -0
  272. package/dist/es/render/components/create-proxy.mjs +1 -0
  273. package/dist/es/render/components/create-proxy.mjs.map +1 -0
  274. package/dist/es/render/components/m/create.mjs +1 -0
  275. package/dist/es/render/components/m/create.mjs.map +1 -0
  276. package/dist/es/render/components/m/elements.mjs +1 -0
  277. package/dist/es/render/components/m/elements.mjs.map +1 -0
  278. package/dist/es/render/components/m/proxy.mjs +1 -0
  279. package/dist/es/render/components/m/proxy.mjs.map +1 -0
  280. package/dist/es/render/components/motion/create.mjs +1 -0
  281. package/dist/es/render/components/motion/create.mjs.map +1 -0
  282. package/dist/es/render/components/motion/elements.mjs +1 -0
  283. package/dist/es/render/components/motion/elements.mjs.map +1 -0
  284. package/dist/es/render/components/motion/feature-bundle.mjs +1 -0
  285. package/dist/es/render/components/motion/feature-bundle.mjs.map +1 -0
  286. package/dist/es/render/components/motion/proxy.mjs +1 -0
  287. package/dist/es/render/components/motion/proxy.mjs.map +1 -0
  288. package/dist/es/render/dom/DOMVisualElement.mjs +1 -0
  289. package/dist/es/render/dom/DOMVisualElement.mjs.map +1 -0
  290. package/dist/es/render/dom/create-visual-element.mjs +1 -0
  291. package/dist/es/render/dom/create-visual-element.mjs.map +1 -0
  292. package/dist/es/render/dom/features-animation.mjs +1 -0
  293. package/dist/es/render/dom/features-animation.mjs.map +1 -0
  294. package/dist/es/render/dom/features-max.mjs +1 -0
  295. package/dist/es/render/dom/features-max.mjs.map +1 -0
  296. package/dist/es/render/dom/features-min.mjs +1 -0
  297. package/dist/es/render/dom/features-min.mjs.map +1 -0
  298. package/dist/es/render/dom/scroll/attach-animation.mjs +1 -0
  299. package/dist/es/render/dom/scroll/attach-animation.mjs.map +1 -0
  300. package/dist/es/render/dom/scroll/attach-function.mjs +1 -0
  301. package/dist/es/render/dom/scroll/attach-function.mjs.map +1 -0
  302. package/dist/es/render/dom/scroll/index.mjs +1 -0
  303. package/dist/es/render/dom/scroll/index.mjs.map +1 -0
  304. package/dist/es/render/dom/scroll/info.mjs +1 -0
  305. package/dist/es/render/dom/scroll/info.mjs.map +1 -0
  306. package/dist/es/render/dom/scroll/offsets/edge.mjs +1 -0
  307. package/dist/es/render/dom/scroll/offsets/edge.mjs.map +1 -0
  308. package/dist/es/render/dom/scroll/offsets/index.mjs +1 -0
  309. package/dist/es/render/dom/scroll/offsets/index.mjs.map +1 -0
  310. package/dist/es/render/dom/scroll/offsets/inset.mjs +1 -0
  311. package/dist/es/render/dom/scroll/offsets/inset.mjs.map +1 -0
  312. package/dist/es/render/dom/scroll/offsets/offset.mjs +1 -0
  313. package/dist/es/render/dom/scroll/offsets/offset.mjs.map +1 -0
  314. package/dist/es/render/dom/scroll/offsets/presets.mjs +1 -0
  315. package/dist/es/render/dom/scroll/offsets/presets.mjs.map +1 -0
  316. package/dist/es/render/dom/scroll/on-scroll-handler.mjs +1 -0
  317. package/dist/es/render/dom/scroll/on-scroll-handler.mjs.map +1 -0
  318. package/dist/es/render/dom/scroll/track.mjs +1 -0
  319. package/dist/es/render/dom/scroll/track.mjs.map +1 -0
  320. package/dist/es/render/dom/scroll/utils/get-timeline.mjs +1 -0
  321. package/dist/es/render/dom/scroll/utils/get-timeline.mjs.map +1 -0
  322. package/dist/es/render/dom/use-render.mjs +1 -0
  323. package/dist/es/render/dom/use-render.mjs.map +1 -0
  324. package/dist/es/render/dom/utils/camel-to-dash.mjs +1 -0
  325. package/dist/es/render/dom/utils/camel-to-dash.mjs.map +1 -0
  326. package/dist/es/render/dom/utils/filter-props.mjs +1 -0
  327. package/dist/es/render/dom/utils/filter-props.mjs.map +1 -0
  328. package/dist/es/render/dom/utils/is-svg-component.mjs +1 -0
  329. package/dist/es/render/dom/utils/is-svg-component.mjs.map +1 -0
  330. package/dist/es/render/dom/viewport/index.mjs +1 -0
  331. package/dist/es/render/dom/viewport/index.mjs.map +1 -0
  332. package/dist/es/render/html/HTMLVisualElement.mjs +1 -0
  333. package/dist/es/render/html/HTMLVisualElement.mjs.map +1 -0
  334. package/dist/es/render/html/use-html-visual-state.mjs +1 -0
  335. package/dist/es/render/html/use-html-visual-state.mjs.map +1 -0
  336. package/dist/es/render/html/use-props.mjs +1 -0
  337. package/dist/es/render/html/use-props.mjs.map +1 -0
  338. package/dist/es/render/html/utils/build-styles.mjs +1 -0
  339. package/dist/es/render/html/utils/build-styles.mjs.map +1 -0
  340. package/dist/es/render/html/utils/build-transform.mjs +1 -0
  341. package/dist/es/render/html/utils/build-transform.mjs.map +1 -0
  342. package/dist/es/render/html/utils/create-render-state.mjs +1 -0
  343. package/dist/es/render/html/utils/create-render-state.mjs.map +1 -0
  344. package/dist/es/render/html/utils/render.mjs +1 -0
  345. package/dist/es/render/html/utils/render.mjs.map +1 -0
  346. package/dist/es/render/html/utils/scrape-motion-values.mjs +1 -0
  347. package/dist/es/render/html/utils/scrape-motion-values.mjs.map +1 -0
  348. package/dist/es/render/object/ObjectVisualElement.mjs +1 -0
  349. package/dist/es/render/object/ObjectVisualElement.mjs.map +1 -0
  350. package/dist/es/render/store.mjs +1 -0
  351. package/dist/es/render/store.mjs.map +1 -0
  352. package/dist/es/render/svg/SVGVisualElement.mjs +1 -0
  353. package/dist/es/render/svg/SVGVisualElement.mjs.map +1 -0
  354. package/dist/es/render/svg/lowercase-elements.mjs +1 -0
  355. package/dist/es/render/svg/lowercase-elements.mjs.map +1 -0
  356. package/dist/es/render/svg/use-props.mjs +1 -0
  357. package/dist/es/render/svg/use-props.mjs.map +1 -0
  358. package/dist/es/render/svg/use-svg-visual-state.mjs +1 -0
  359. package/dist/es/render/svg/use-svg-visual-state.mjs.map +1 -0
  360. package/dist/es/render/svg/utils/build-attrs.mjs +1 -0
  361. package/dist/es/render/svg/utils/build-attrs.mjs.map +1 -0
  362. package/dist/es/render/svg/utils/camel-case-attrs.mjs +1 -0
  363. package/dist/es/render/svg/utils/camel-case-attrs.mjs.map +1 -0
  364. package/dist/es/render/svg/utils/create-render-state.mjs +1 -0
  365. package/dist/es/render/svg/utils/create-render-state.mjs.map +1 -0
  366. package/dist/es/render/svg/utils/is-svg-tag.mjs +1 -0
  367. package/dist/es/render/svg/utils/is-svg-tag.mjs.map +1 -0
  368. package/dist/es/render/svg/utils/path.mjs +1 -0
  369. package/dist/es/render/svg/utils/path.mjs.map +1 -0
  370. package/dist/es/render/svg/utils/render.mjs +1 -0
  371. package/dist/es/render/svg/utils/render.mjs.map +1 -0
  372. package/dist/es/render/svg/utils/scrape-motion-values.mjs +1 -0
  373. package/dist/es/render/svg/utils/scrape-motion-values.mjs.map +1 -0
  374. package/dist/es/render/utils/animation-state.mjs +1 -0
  375. package/dist/es/render/utils/animation-state.mjs.map +1 -0
  376. package/dist/es/render/utils/compare-by-depth.mjs +1 -0
  377. package/dist/es/render/utils/compare-by-depth.mjs.map +1 -0
  378. package/dist/es/render/utils/flat-tree.mjs +1 -0
  379. package/dist/es/render/utils/flat-tree.mjs.map +1 -0
  380. package/dist/es/render/utils/get-variant-context.mjs +1 -0
  381. package/dist/es/render/utils/get-variant-context.mjs.map +1 -0
  382. package/dist/es/render/utils/is-controlling-variants.mjs +1 -0
  383. package/dist/es/render/utils/is-controlling-variants.mjs.map +1 -0
  384. package/dist/es/render/utils/is-variant-label.mjs +1 -0
  385. package/dist/es/render/utils/is-variant-label.mjs.map +1 -0
  386. package/dist/es/render/utils/motion-values.mjs +1 -0
  387. package/dist/es/render/utils/motion-values.mjs.map +1 -0
  388. package/dist/es/render/utils/resolve-dynamic-variants.mjs +1 -0
  389. package/dist/es/render/utils/resolve-dynamic-variants.mjs.map +1 -0
  390. package/dist/es/render/utils/resolve-variants.mjs +1 -0
  391. package/dist/es/render/utils/resolve-variants.mjs.map +1 -0
  392. package/dist/es/render/utils/setters.mjs +1 -0
  393. package/dist/es/render/utils/setters.mjs.map +1 -0
  394. package/dist/es/render/utils/variant-props.mjs +1 -0
  395. package/dist/es/render/utils/variant-props.mjs.map +1 -0
  396. package/dist/es/utils/delay.mjs +1 -0
  397. package/dist/es/utils/delay.mjs.map +1 -0
  398. package/dist/es/utils/distance.mjs +1 -0
  399. package/dist/es/utils/distance.mjs.map +1 -0
  400. package/dist/es/utils/get-context-window.mjs +1 -0
  401. package/dist/es/utils/get-context-window.mjs.map +1 -0
  402. package/dist/es/utils/is-browser.mjs +1 -0
  403. package/dist/es/utils/is-browser.mjs.map +1 -0
  404. package/dist/es/utils/is-ref-object.mjs +1 -0
  405. package/dist/es/utils/is-ref-object.mjs.map +1 -0
  406. package/dist/es/utils/reduced-motion/index.mjs +1 -0
  407. package/dist/es/utils/reduced-motion/index.mjs.map +1 -0
  408. package/dist/es/utils/reduced-motion/state.mjs +1 -0
  409. package/dist/es/utils/reduced-motion/state.mjs.map +1 -0
  410. package/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs +1 -0
  411. package/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs.map +1 -0
  412. package/dist/es/utils/reduced-motion/use-reduced-motion.mjs +1 -0
  413. package/dist/es/utils/reduced-motion/use-reduced-motion.mjs.map +1 -0
  414. package/dist/es/utils/shallow-compare.mjs +1 -0
  415. package/dist/es/utils/shallow-compare.mjs.map +1 -0
  416. package/dist/es/utils/use-animation-frame.mjs +1 -0
  417. package/dist/es/utils/use-animation-frame.mjs.map +1 -0
  418. package/dist/es/utils/use-composed-ref.mjs +1 -0
  419. package/dist/es/utils/use-composed-ref.mjs.map +1 -0
  420. package/dist/es/utils/use-constant.mjs +1 -0
  421. package/dist/es/utils/use-constant.mjs.map +1 -0
  422. package/dist/es/utils/use-cycle.mjs +1 -0
  423. package/dist/es/utils/use-cycle.mjs.map +1 -0
  424. package/dist/es/utils/use-force-update.mjs +1 -0
  425. package/dist/es/utils/use-force-update.mjs.map +1 -0
  426. package/dist/es/utils/use-in-view.mjs +1 -0
  427. package/dist/es/utils/use-in-view.mjs.map +1 -0
  428. package/dist/es/utils/use-instant-transition.mjs +1 -0
  429. package/dist/es/utils/use-instant-transition.mjs.map +1 -0
  430. package/dist/es/utils/use-is-mounted.mjs +1 -0
  431. package/dist/es/utils/use-is-mounted.mjs.map +1 -0
  432. package/dist/es/utils/use-isomorphic-effect.mjs +1 -0
  433. package/dist/es/utils/use-isomorphic-effect.mjs.map +1 -0
  434. package/dist/es/utils/use-motion-value-event.mjs +1 -0
  435. package/dist/es/utils/use-motion-value-event.mjs.map +1 -0
  436. package/dist/es/utils/use-page-in-view.mjs +1 -0
  437. package/dist/es/utils/use-page-in-view.mjs.map +1 -0
  438. package/dist/es/utils/use-unmount-effect.mjs +1 -0
  439. package/dist/es/utils/use-unmount-effect.mjs.map +1 -0
  440. package/dist/es/value/scroll/use-element-scroll.mjs +1 -0
  441. package/dist/es/value/scroll/use-element-scroll.mjs.map +1 -0
  442. package/dist/es/value/scroll/use-viewport-scroll.mjs +1 -0
  443. package/dist/es/value/scroll/use-viewport-scroll.mjs.map +1 -0
  444. package/dist/es/value/use-combine-values.mjs +1 -0
  445. package/dist/es/value/use-combine-values.mjs.map +1 -0
  446. package/dist/es/value/use-computed.mjs +1 -0
  447. package/dist/es/value/use-computed.mjs.map +1 -0
  448. package/dist/es/value/use-inverted-scale.mjs +1 -0
  449. package/dist/es/value/use-inverted-scale.mjs.map +1 -0
  450. package/dist/es/value/use-motion-template.mjs +1 -0
  451. package/dist/es/value/use-motion-template.mjs.map +1 -0
  452. package/dist/es/value/use-motion-value.mjs +1 -0
  453. package/dist/es/value/use-motion-value.mjs.map +1 -0
  454. package/dist/es/value/use-scroll.mjs +1 -0
  455. package/dist/es/value/use-scroll.mjs.map +1 -0
  456. package/dist/es/value/use-spring.mjs +1 -0
  457. package/dist/es/value/use-spring.mjs.map +1 -0
  458. package/dist/es/value/use-time.mjs +1 -0
  459. package/dist/es/value/use-time.mjs.map +1 -0
  460. package/dist/es/value/use-transform.mjs +1 -0
  461. package/dist/es/value/use-transform.mjs.map +1 -0
  462. package/dist/es/value/use-velocity.mjs +1 -0
  463. package/dist/es/value/use-velocity.mjs.map +1 -0
  464. package/dist/es/value/use-will-change/WillChangeMotionValue.mjs +1 -0
  465. package/dist/es/value/use-will-change/WillChangeMotionValue.mjs.map +1 -0
  466. package/dist/es/value/use-will-change/add-will-change.mjs +1 -0
  467. package/dist/es/value/use-will-change/add-will-change.mjs.map +1 -0
  468. package/dist/es/value/use-will-change/index.mjs +1 -0
  469. package/dist/es/value/use-will-change/index.mjs.map +1 -0
  470. package/dist/es/value/use-will-change/is.mjs +1 -0
  471. package/dist/es/value/use-will-change/is.mjs.map +1 -0
  472. package/dist/es/value/utils/resolve-motion-value.mjs +1 -0
  473. package/dist/es/value/utils/resolve-motion-value.mjs.map +1 -0
  474. package/dist/framer-motion.dev.js +85 -87
  475. package/dist/framer-motion.js +1 -1
  476. package/dist/size-rollup-animate.js +2 -1
  477. package/dist/size-rollup-animate.js.map +1 -0
  478. package/dist/size-rollup-dom-animation-assets.js +1 -1
  479. package/dist/size-rollup-dom-animation.js +1 -1
  480. package/dist/size-rollup-dom-max-assets.js +1 -1
  481. package/dist/size-rollup-dom-max.js +1 -1
  482. package/dist/size-rollup-m.js +2 -1
  483. package/dist/size-rollup-m.js.map +1 -0
  484. package/dist/size-rollup-motion.js +2 -1
  485. package/dist/size-rollup-motion.js.map +1 -0
  486. package/dist/size-rollup-scroll.js +1 -0
  487. package/dist/size-rollup-scroll.js.map +1 -0
  488. package/dist/size-rollup-waapi-animate.js +1 -0
  489. package/dist/size-rollup-waapi-animate.js.map +1 -0
  490. package/package.json +2 -2
@@ -1 +1 @@
1
- const t=(t,r,a)=>a>r?r:a<t?t:a;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function a(t){return"string"==typeof t||Array.isArray(t)}const e=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o=["initial",...e];function s(t){return r(t.animate)||o.some(r=>a(t[r]))}function n(t){return Boolean(s(t)||t.variants)}const i=t=>r=>"string"==typeof r&&r.startsWith(t),f=i("--"),l=i("var(--"),c=t=>!!l(t)&&d.test(t.split("/*")[0].trim()),d=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,p={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},m={...p,transform:r=>t(0,1,r)},u={...p,default:1},g=t=>({test:r=>"string"==typeof r&&r.endsWith(t)&&1===r.split(" ").length,parse:parseFloat,transform:r=>`${r}${t}`}),h=g("deg"),y=g("%"),v=g("px"),w=g("vh"),x=g("vw"),b=(()=>({...y,parse:t=>y.parse(t)/100,transform:t=>y.transform(100*t)}))(),k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],B=(()=>new Set(k))(),X={...p,transform:Math.round},Y={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radius:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,backgroundPositionX:v,backgroundPositionY:v,...{rotate:h,rotateX:h,rotateY:h,rotateZ:h,scale:u,scaleX:u,scaleY:u,scaleZ:u,skew:h,skewX:h,skewY:h,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:m,originX:b,originY:b,originZ:v},zIndex:X,fillOpacity:m,strokeOpacity:m,numOctaves:X},O=(t,r)=>r&&"number"==typeof t?r.transform(t):t,$=t=>Boolean(t&&t.getVelocity),T={};function W(t,{layout:r,layoutId:a}){return B.has(t)||t.startsWith("origin")||(r||void 0!==a)&&(!!T[t]||"opacity"===t)}const L={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R=k.length;function Z(t,r,a){const{style:e,vars:o,transformOrigin:s}=t;let n=!1,i=!1;for(const t in r){const a=r[t];if(B.has(t))n=!0;else if(f(t))o[t]=a;else{const r=O(a,Y[t]);t.startsWith("origin")?(i=!0,s[t]=r):e[t]=r}}if(r.transform||(n||a?e.transform=function(t,r,a){let e="",o=!0;for(let s=0;s<R;s++){const n=k[s],i=t[n];if(void 0===i)continue;let f=!0;if(f="number"==typeof i?i===(n.startsWith("scale")?1:0):0===parseFloat(i),!f||a){const t=O(i,Y[n]);f||(o=!1,e+=`${L[n]||n}(${t}) `),a&&(r[n]=t)}}return e=e.trim(),a?e=a(r,o?"":e):o&&(e="none"),e}(r,t.transform,a):e.transform&&(e.transform="none")),i){const{originX:t="50%",originY:r="50%",originZ:a=0}=s;e.transformOrigin=`${t} ${r} ${a}`}}const P={offset:"stroke-dashoffset",array:"stroke-dasharray"},S={offset:"strokeDashoffset",array:"strokeDasharray"};function V(t,{attrX:r,attrY:a,attrScale:e,pathLength:o,pathSpacing:s=1,pathOffset:n=0,...i},f,l,c){if(Z(t,i,l),f)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:d,style:p}=t;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==r&&(d.x=r),void 0!==a&&(d.y=a),void 0!==e&&(d.scale=e),void 0!==o&&function(t,r,a=1,e=0,o=!0){t.pathLength=1;const s=o?P:S;t[s.offset]=v.transform(-e);const n=v.transform(r),i=v.transform(a);t[s.array]=`${n} ${i}`}(d,o,s,n,!1)}const A=t=>"string"==typeof t&&"svg"===t.toLowerCase(),F=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function I(t){return"string"==typeof t&&!t.includes("-")&&!!(F.indexOf(t)>-1||/[A-Z]/u.test(t))}function z(t){const r=[{},{}];return t?.values.forEach((t,a)=>{r[0][a]=t.get(),r[1][a]=t.getVelocity()}),r}function C(t,r,a,e){if("function"==typeof r){const[o,s]=z(e);r=r(void 0!==a?a:t.custom,o,s)}if("string"==typeof r&&(r=t.variants&&t.variants[r]),"function"==typeof r){const[o,s]=z(e);r=r(void 0!==a?a:t.custom,o,s)}return r}function E(t,r,a){const{style:e}=t,o={};for(const s in e)($(e[s])||r.style&&$(r.style[s])||W(s,t)||void 0!==a?.getValue(s)?.liveStyle)&&(o[s]=e[s]);return o}function H(t,r,a){const e=E(t,r,a);for(const a in t)if($(t[a])||$(r[a])){e[-1!==k.indexOf(a)?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a]=t[a]}return e}const D="undefined"!=typeof window,j={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},q={};for(const t in j)q[t]={isEnabled:r=>j[t].some(t=>!!r[t])};const M=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),U="data-"+M("framerAppearId");export{Y as A,B,o as C,e as D,f as E,M as F,a,$ as b,W as c,Z as d,V as e,A as f,I as g,n as h,s as i,r as j,H as k,D as l,q as m,p as n,U as o,m as p,t as q,C as r,E as s,y as t,c as u,v,k as w,h as x,x as y,w as z};
1
+ const t=(t,r,e)=>e>r?r:e<t?t:e;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function e(t){return"string"==typeof t||Array.isArray(t)}const s=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],a=["initial",...s];function n(t){return r(t.animate)||a.some(r=>e(t[r]))}function o(t){return Boolean(n(t)||t.variants)}const i=t=>r=>"string"==typeof r&&r.startsWith(t),f=i("--"),l=i("var(--"),u=t=>!!l(t)&&p.test(t.split("/*")[0].trim()),p=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,c={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},d={...c,transform:r=>t(0,1,r)},m={...c,default:1},g=t=>Math.round(1e5*t)/1e5,h=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,b=(t,r)=>e=>Boolean("string"==typeof e&&y.test(e)&&e.startsWith(t)||r&&!function(t){return null==t}(e)&&Object.prototype.hasOwnProperty.call(e,r)),v=(t,r,e)=>s=>{if("string"!=typeof s)return s;const[a,n,o,i]=s.match(h);return{[t]:parseFloat(a),[r]:parseFloat(n),[e]:parseFloat(o),alpha:void 0!==i?parseFloat(i):1}},w={...c,transform:r=>Math.round((r=>t(0,255,r))(r))},x={test:b("rgb","red"),parse:v("red","green","blue"),transform:({red:t,green:r,blue:e,alpha:s=1})=>"rgba("+w.transform(t)+", "+w.transform(r)+", "+w.transform(e)+", "+g(d.transform(s))+")"};const R={test:b("#"),parse:function(t){let r="",e="",s="",a="";return t.length>5?(r=t.substring(1,3),e=t.substring(3,5),s=t.substring(5,7),a=t.substring(7,9)):(r=t.substring(1,2),e=t.substring(2,3),s=t.substring(3,4),a=t.substring(4,5),r+=r,e+=e,s+=s,a+=a),{red:parseInt(r,16),green:parseInt(e,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}},transform:x.transform},B=t=>({test:r=>"string"==typeof r&&r.endsWith(t)&&1===r.split(" ").length,parse:parseFloat,transform:r=>`${r}${t}`}),T=B("deg"),$=B("%"),k=B("px"),L=B("vh"),O=B("vw"),F=(()=>({...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(100*t)}))(),W={test:b("hsl","hue"),parse:v("hue","saturation","lightness"),transform:({hue:t,saturation:r,lightness:e,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(g(r))+", "+$.transform(g(e))+", "+g(d.transform(s))+")"},X={test:t=>x.test(t)||R.test(t)||W.test(t),parse:t=>x.test(t)?x.parse(t):W.test(t)?W.parse(t):R.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?x.transform(t):W.transform(t),getAnimatableNone:t=>{const r=X.parse(t);return r.alpha=0,X.transform(r)}},Y=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const I="number",S="color",P=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function A(t){const r=t.toString(),e=[],s={color:[],number:[],var:[]},a=[];let n=0;const o=r.replace(P,t=>(X.test(t)?(s.color.push(n),a.push(S),e.push(X.parse(t))):t.startsWith("var(")?(s.var.push(n),a.push("var"),e.push(t)):(s.number.push(n),a.push(I),e.push(parseFloat(t))),++n,"${}")).split("${}");return{values:e,split:o,indexes:s,types:a}}function Z(t){return A(t).values}function V(t){const{split:r,types:e}=A(t),s=r.length;return t=>{let a="";for(let n=0;n<s;n++)if(a+=r[n],void 0!==t[n]){const r=e[n];a+=r===I?g(t[n]):r===S?X.transform(t[n]):t[n]}return a}}const H=t=>"number"==typeof t?0:X.test(t)?X.getAnimatableNone(t):t;const z={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(h)?.length||0)+(t.match(Y)?.length||0)>0},parse:Z,createTransformer:V,getAnimatableNone:function(t){const r=Z(t);return V(t)(r.map(H))}},C=(t,r,e)=>t+(r-t)*e,D=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],E=(()=>new Set(D))(),M={...c,transform:Math.round},N={borderWidth:k,borderTopWidth:k,borderRightWidth:k,borderBottomWidth:k,borderLeftWidth:k,borderRadius:k,radius:k,borderTopLeftRadius:k,borderTopRightRadius:k,borderBottomRightRadius:k,borderBottomLeftRadius:k,width:k,maxWidth:k,height:k,maxHeight:k,top:k,right:k,bottom:k,left:k,padding:k,paddingTop:k,paddingRight:k,paddingBottom:k,paddingLeft:k,margin:k,marginTop:k,marginRight:k,marginBottom:k,marginLeft:k,backgroundPositionX:k,backgroundPositionY:k,...{rotate:T,rotateX:T,rotateY:T,rotateZ:T,scale:m,scaleX:m,scaleY:m,scaleZ:m,skew:T,skewX:T,skewY:T,distance:k,translateX:k,translateY:k,translateZ:k,x:k,y:k,z:k,perspective:k,transformPerspective:k,opacity:d,originX:F,originY:F,originZ:k},zIndex:M,fillOpacity:d,strokeOpacity:d,numOctaves:M},j=(t,r)=>r&&"number"==typeof t?r.transform(t):t,q=t=>Boolean(t&&t.getVelocity);function G(t,r){return r.max===r.min?0:t/(r.max-r.min)*100}const J={correct:(t,r)=>{if(!r.target)return t;if("string"==typeof t){if(!k.test(t))return t;t=parseFloat(t)}return`${G(t,r.target.x)}% ${G(t,r.target.y)}%`}},K={correct:(t,{treeScale:r,projectionDelta:e})=>{const s=t,a=z.parse(t);if(a.length>5)return s;const n=z.createTransformer(t),o="number"!=typeof a[0]?1:0,i=e.x.scale*r.x,f=e.y.scale*r.y;a[0+o]/=i,a[1+o]/=f;const l=C(i,f,.5);return"number"==typeof a[2+o]&&(a[2+o]/=l),"number"==typeof a[3+o]&&(a[3+o]/=l),n(a)}},U={borderRadius:{...J,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomLeftRadius:J,borderBottomRightRadius:J,boxShadow:K};function Q(t,{layout:r,layoutId:e}){return E.has(t)||t.startsWith("origin")||(r||void 0!==e)&&(!!U[t]||"opacity"===t)}const _={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tt=D.length;function rt(t,r,e){const{style:s,vars:a,transformOrigin:n}=t;let o=!1,i=!1;for(const t in r){const e=r[t];if(E.has(t))o=!0;else if(f(t))a[t]=e;else{const r=j(e,N[t]);t.startsWith("origin")?(i=!0,n[t]=r):s[t]=r}}if(r.transform||(o||e?s.transform=function(t,r,e){let s="",a=!0;for(let n=0;n<tt;n++){const o=D[n],i=t[o];if(void 0===i)continue;let f=!0;if(f="number"==typeof i?i===(o.startsWith("scale")?1:0):0===parseFloat(i),!f||e){const t=j(i,N[o]);f||(a=!1,s+=`${_[o]||o}(${t}) `),e&&(r[o]=t)}}return s=s.trim(),e?s=e(r,a?"":s):a&&(s="none"),s}(r,t.transform,e):s.transform&&(s.transform="none")),i){const{originX:t="50%",originY:r="50%",originZ:e=0}=n;s.transformOrigin=`${t} ${r} ${e}`}}const et={offset:"stroke-dashoffset",array:"stroke-dasharray"},st={offset:"strokeDashoffset",array:"strokeDasharray"};function at(t,{attrX:r,attrY:e,attrScale:s,pathLength:a,pathSpacing:n=1,pathOffset:o=0,...i},f,l,u){if(rt(t,i,l),f)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:c}=t;p.transform&&(c.transform=p.transform,delete p.transform),(c.transform||p.transformOrigin)&&(c.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete p.transformBox),void 0!==r&&(p.x=r),void 0!==e&&(p.y=e),void 0!==s&&(p.scale=s),void 0!==a&&function(t,r,e=1,s=0,a=!0){t.pathLength=1;const n=a?et:st;t[n.offset]=k.transform(-s);const o=k.transform(r),i=k.transform(e);t[n.array]=`${o} ${i}`}(p,a,n,o,!1)}const nt=t=>"string"==typeof t&&"svg"===t.toLowerCase(),ot=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function it(t){return"string"==typeof t&&!t.includes("-")&&!!(ot.indexOf(t)>-1||/[A-Z]/u.test(t))}function ft(t){const r=[{},{}];return t?.values.forEach((t,e)=>{r[0][e]=t.get(),r[1][e]=t.getVelocity()}),r}function lt(t,r,e,s){if("function"==typeof r){const[a,n]=ft(s);r=r(void 0!==e?e:t.custom,a,n)}if("string"==typeof r&&(r=t.variants&&t.variants[r]),"function"==typeof r){const[a,n]=ft(s);r=r(void 0!==e?e:t.custom,a,n)}return r}function ut(t,r,e){const{style:s}=t,a={};for(const n in s)(q(s[n])||r.style&&q(r.style[n])||Q(n,t)||void 0!==e?.getValue(n)?.liveStyle)&&(a[n]=s[n]);return a}function pt(t,r,e){const s=ut(t,r,e);for(const e in t)if(q(t[e])||q(r[e])){s[-1!==D.indexOf(e)?"attr"+e.charAt(0).toUpperCase()+e.substring(1):e]=t[e]}return s}const ct="undefined"!=typeof window,dt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},mt={};for(const t in dt)mt[t]={isEnabled:r=>dt[t].some(t=>!!r[t])};const gt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ht="data-"+gt("framerAppearId");export{k as A,D as B,$ as C,T as D,O as E,L as F,h as G,N as H,E as I,a as J,s as K,f as L,gt as M,e as a,q as b,Q as c,rt as d,at as e,nt as f,it as g,o as h,n as i,r as j,pt as k,ct as l,mt as m,C as n,ht as o,x as p,W as q,lt as r,ut as s,R as t,u,X as v,z as w,A as x,t as y,c as z};
@@ -1 +1 @@
1
- import{n as t,p as e,q as n,t as s,u as i,v as r,w as o,x as a,y as u,z as l,A as h,r as c,b as d,o as p,B as m,a as f,C as y,j as v,D as g,l as b,i as w,h as T,m as S,E as A,d as M,s as V,F as x,k as C,e as k,f as P,g as E}from"./size-rollup-dom-animation-assets.js";import{Fragment as F}from"react";const D={},O=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);const I=t=>/^0[^.\s]+$/u.test(t);function R(t){let e;return()=>(void 0===e&&(e=t()),e)}const N=t=>t,K=(t,e)=>n=>e(t(n)),B=(...t)=>t.reduce(K),L=(t,e,n)=>{const s=e-t;return 0===s?1:(n-t)/s};class j{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](t,e,n);else for(let i=0;i<s;i++){const s=this.subscriptions[i];s&&s(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const U=t=>1e3*t,q=t=>t/1e3;function W(t,e){return e?t*(1e3/e):0}const Y=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function $(t,e,n,s){if(t===e&&n===s)return N;const i=e=>function(t,e,n,s,i){let r,o,a=0;do{o=e+(n-e)/2,r=Y(o,s,i)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:Y(i(t),e,s)}const z=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,H=t=>e=>1-t(1-e),X=$(.33,1.53,.69,.99),_=H(X),G=z(_),Z=t=>(t*=2)<1?.5*_(t):.5*(2-Math.pow(2,-10*(t-1))),J=t=>1-Math.sin(Math.acos(t)),Q=H(J),tt=z(J),et=$(.42,0,1,1),nt=$(0,0,.58,1),st=$(.42,0,.58,1),it=t=>Array.isArray(t)&&"number"==typeof t[0],rt={linear:N,easeIn:et,easeInOut:st,easeOut:nt,circIn:J,circInOut:tt,circOut:Q,backIn:_,backInOut:G,backOut:X,anticipate:Z},ot=t=>{if(it(t)){t.length;const[e,n,s,i]=t;return $(e,n,s,i)}return"string"==typeof t?rt[t]:t},at=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ut={value:null,addProjectionMetrics:null};function lt(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=at.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},u=0;function l(e){o.has(e)&&(h.schedule(e),t()),u++,e(a)}const h={schedule:(t,e=!1,r=!1)=>{const a=r&&i?n:s;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{s.delete(t),o.delete(t)},process:t=>{a=t,i?r=!0:(i=!0,[n,s]=[s,n],n.forEach(l),e&&ut.value&&ut.value.frameloop[e].push(u),u=0,n.clear(),i=!1,r&&(r=!1,h.process(t)))}};return h}(r,e?n:void 0),t),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{const r=D.useManualTiming?i.timestamp:performance.now();n=!1,D.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(r-i.timestamp,40),1)),i.timestamp=r,i.isProcessing=!0,a.process(i),u.process(i),l.process(i),h.process(i),c.process(i),d.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(f))};return{schedule:at.reduce((e,r)=>{const a=o[r];return e[r]=(e,r=!1,o=!1)=>(n||(n=!0,s=!0,i.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<at.length;e++)o[at[e]].cancel(t)},state:i,steps:o}}const{schedule:ht,cancel:ct,state:dt,steps:pt}=lt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:N,!0);let mt;function ft(){mt=void 0}const yt={now:()=>(void 0===mt&&yt.set(dt.isProcessing||D.useManualTiming?dt.timestamp:performance.now()),mt),set:t=>{mt=t,queueMicrotask(ft)}},vt=t=>Math.round(1e5*t)/1e5,gt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const bt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wt=(t,e)=>n=>Boolean("string"==typeof n&&bt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tt=(t,e,n)=>s=>{if("string"!=typeof s)return s;const[i,r,o,a]=s.match(gt);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},St={...t,transform:t=>Math.round((t=>n(0,255,t))(t))},At={test:wt("rgb","red"),parse:Tt("red","green","blue"),transform:({red:t,green:n,blue:s,alpha:i=1})=>"rgba("+St.transform(t)+", "+St.transform(n)+", "+St.transform(s)+", "+vt(e.transform(i))+")"};const Mt={test:wt("#"),parse:function(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}},transform:At.transform},Vt={test:wt("hsl","hue"),parse:Tt("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+s.transform(vt(n))+", "+s.transform(vt(i))+", "+vt(e.transform(r))+")"},xt={test:t=>At.test(t)||Mt.test(t)||Vt.test(t),parse:t=>At.test(t)?At.parse(t):Vt.test(t)?Vt.parse(t):Mt.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?At.transform(t):Vt.transform(t),getAnimatableNone:t=>{const e=xt.parse(t);return e.alpha=0,xt.transform(e)}},Ct=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const kt="number",Pt="color",Et=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ft(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const o=e.replace(Et,t=>(xt.test(t)?(s.color.push(r),i.push(Pt),n.push(xt.parse(t))):t.startsWith("var(")?(s.var.push(r),i.push("var"),n.push(t)):(s.number.push(r),i.push(kt),n.push(parseFloat(t))),++r,"${}")).split("${}");return{values:n,split:o,indexes:s,types:i}}function Dt(t){return Ft(t).values}function Ot(t){const{split:e,types:n}=Ft(t),s=e.length;return t=>{let i="";for(let r=0;r<s;r++)if(i+=e[r],void 0!==t[r]){const e=n[r];i+=e===kt?vt(t[r]):e===Pt?xt.transform(t[r]):t[r]}return i}}const It=t=>"number"==typeof t?0:xt.test(t)?xt.getAnimatableNone(t):t;const Rt={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(gt)?.length||0)+(t.match(Ct)?.length||0)>0},parse:Dt,createTransformer:Ot,getAnimatableNone:function(t){const e=Dt(t);return Ot(t)(e.map(It))}};function Nt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Kt(t,e){return n=>n>0?e:t}const Bt=(t,e,n)=>t+(e-t)*n,Lt=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},jt=[Mt,At,Vt];function Ut(t){const e=(n=t,jt.find(t=>t.test(n)));var n;if(!Boolean(e))return!1;let s=e.parse(t);return e===Vt&&(s=function({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,n/=100;let i=0,r=0,o=0;if(e/=100){const s=n<.5?n*(1+e):n+e-n*e,a=2*n-s;i=Nt(a,s,t+1/3),r=Nt(a,s,t),o=Nt(a,s,t-1/3)}else i=r=o=n;return{red:Math.round(255*i),green:Math.round(255*r),blue:Math.round(255*o),alpha:s}}(s)),s}const qt=(t,e)=>{const n=Ut(t),s=Ut(e);if(!n||!s)return Kt(t,e);const i={...n};return t=>(i.red=Lt(n.red,s.red,t),i.green=Lt(n.green,s.green,t),i.blue=Lt(n.blue,s.blue,t),i.alpha=Bt(n.alpha,s.alpha,t),At.transform(i))},Wt=new Set(["none","hidden"]);function Yt(t,e){return n=>Bt(t,e,n)}function $t(t){return"number"==typeof t?Yt:"string"==typeof t?i(t)?Kt:xt.test(t)?qt:Xt:Array.isArray(t)?zt:"object"==typeof t?xt.test(t)?qt:Ht:Kt}function zt(t,e){const n=[...t],s=n.length,i=t.map((t,n)=>$t(t)(t,e[n]));return t=>{for(let e=0;e<s;e++)n[e]=i[e](t);return n}}function Ht(t,e){const n={...t,...e},s={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(s[i]=$t(t[i])(t[i],e[i]));return t=>{for(const e in s)n[e]=s[e](t);return n}}const Xt=(t,e)=>{const n=Rt.createTransformer(e),s=Ft(t),i=Ft(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Wt.has(t)&&!i.values.length||Wt.has(e)&&!s.values.length?function(t,e){return Wt.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):B(zt(function(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const r=e.types[i],o=t.indexes[r][s[r]],a=t.values[o]??0;n[i]=a,s[r]++}return n}(s,i),i.values),n):Kt(t,e)};function _t(t,e,n){if("number"==typeof t&&"number"==typeof e&&"number"==typeof n)return Bt(t,e,n);return $t(t)(t,e)}const Gt=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>ht.update(e,t),stop:()=>ct(e),now:()=>dt.isProcessing?dt.timestamp:yt.now()}},Zt=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let e=0;e<i;e++)s+=Math.round(1e4*t(e/(i-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Jt=2e4;function Qt(t){let e=0;let n=t.next(e);for(;!n.done&&e<Jt;)e+=50,n=t.next(e);return e>=Jt?1/0:e}function te(t,e,n){const s=Math.max(e-5,0);return W(n-t(s),e-s)}const ee=100,ne=10,se=1,ie=0,re=800,oe=.3,ae=.3,ue={granular:.01,default:2},le={granular:.005,default:.5},he=.01,ce=10,de=.05,pe=1,me=.001;function fe({duration:t=re,bounce:e=oe,velocity:s=ie,mass:i=se}){let r,o,a=1-e;a=n(de,pe,a),t=n(he,ce,q(t)),a<1?(r=e=>{const n=e*a,i=n*t,r=n-s,o=ve(e,a),u=Math.exp(-i);return me-r/o*u},o=e=>{const n=e*a*t,i=n*s+s,o=Math.pow(a,2)*Math.pow(e,2)*t,u=Math.exp(-n),l=ve(Math.pow(e,2),a);return(-r(e)+me>0?-1:1)*((i-o)*u)/l}):(r=e=>Math.exp(-e*t)*((e-s)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(s-e)));const u=function(t,e,n){let s=n;for(let n=1;n<ye;n++)s-=t(s)/e(s);return s}(r,o,5/t);if(t=U(t),isNaN(u))return{stiffness:ee,damping:ne,duration:t};{const e=Math.pow(u,2)*i;return{stiffness:e,damping:2*a*Math.sqrt(i*e),duration:t}}}const ye=12;function ve(t,e){return t*Math.sqrt(1-e*e)}const ge=["duration","bounce"],be=["stiffness","damping","mass"];function we(t,e){return e.some(e=>void 0!==t[e])}function Te(t=ae,e=oe){const s="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:r}=s;const o=s.keyframes[0],a=s.keyframes[s.keyframes.length-1],u={done:!1,value:o},{stiffness:l,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:ie,stiffness:ee,damping:ne,mass:se,isResolvedFromDuration:!1,...t};if(!we(t,be)&&we(t,ge))if(t.visualDuration){const s=t.visualDuration,i=2*Math.PI/(1.2*s),r=i*i,o=2*n(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:se,stiffness:r,damping:o}}else{const n=fe(t);e={...e,...n,mass:se},e.isResolvedFromDuration=!0}return e}({...s,velocity:-q(s.velocity||0)}),f=p||0,y=h/(2*Math.sqrt(l*c)),v=a-o,g=q(Math.sqrt(l/c)),b=Math.abs(v)<5;let w;if(i||(i=b?ue.granular:ue.default),r||(r=b?le.granular:le.default),y<1){const t=ve(g,y);w=e=>{const n=Math.exp(-y*g*e);return a-n*((f+y*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===y)w=t=>a-Math.exp(-g*t)*(v+(f+g*v)*t);else{const t=g*Math.sqrt(y*y-1);w=e=>{const n=Math.exp(-y*g*e),s=Math.min(t*e,300);return a-n*((f+y*g*v)*Math.sinh(s)+t*v*Math.cosh(s))/t}}const T={calculatedDuration:m&&d||null,next:t=>{const e=w(t);if(m)u.done=t>=d;else{let n=0===t?f:0;y<1&&(n=0===t?U(f):te(w,t,e));const s=Math.abs(n)<=i,o=Math.abs(a-e)<=r;u.done=s&&o}return u.value=u.done?a:e,u},toString:()=>{const t=Math.min(Qt(T),Jt),e=Zt(e=>T.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return T}function Se({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?u:void 0===u||Math.abs(a-t)<Math.abs(u-t)?a:u;let m=n*e;const f=c+m,y=void 0===o?f:o(f);y!==f&&(m=y-c);const v=t=>-m*Math.exp(-t/s),g=t=>y+v(t),b=t=>{const e=v(t),n=g(t);d.done=Math.abs(e)<=l,d.value=d.done?y:n};let w,T;const S=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==u&&e>u)&&(w=t,T=Te({keyframes:[d.value,p(d.value)],velocity:te(g,t,d.value),damping:i,stiffness:r,restDelta:l,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return T||void 0!==w||(e=!0,b(t),S(t)),void 0!==w&&t>=w?T.next(t-w):(!e&&b(t),d)}}}function Ae(t,e,{clamp:s=!0,ease:i,mixer:r}={}){const o=t.length;if(e.length,1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const u=function(t,e,n){const s=[],i=n||D.mix||_t,r=t.length-1;for(let n=0;n<r;n++){let r=i(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||N:e;r=B(t,r)}s.push(r)}return s}(e,i,r),l=u.length,h=n=>{if(a&&n<t[0])return e[0];let s=0;if(l>1)for(;s<t.length-2&&!(n<t[s+1]);s++);const i=L(t[s],t[s+1],n);return u[s](i)};return s?e=>h(n(t[0],t[o-1],e)):h}function Me(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=L(0,e,s);t.push(Bt(n,1,i))}}(e,t.length-1),e}function Ve({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=(t=>Array.isArray(t)&&"number"!=typeof t[0])(s)?s.map(ot):ot(s),r={done:!1,value:e[0]},o=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:Me(e),t),a=Ae(o,e,{ease:Array.isArray(i)?i:(u=e,l=i,u.map(()=>l||st).splice(0,u.length-1))});var u,l;return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}Te.applyToOptions=t=>{const e=function(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Qt(s),Jt);return{type:"keyframes",ease:t=>s.next(i*t).value/e,duration:q(i)}}(t,100,Te);return t.ease=e.ease,t.duration=U(e.duration),t.type="keyframes",t};const xe=t=>null!==t;function Ce(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(xe),o=i<0||e&&"loop"!==n&&e%2==1?0:r.length-1;return o&&void 0!==s?s:r[o]}const ke={decay:Se,inertia:Se,tween:Ve,keyframes:Ve,spring:Te};function Pe(t){"string"==typeof t.type&&(t.type=ke[t.type])}class Ee{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const Fe=t=>t/100;class De extends Ee{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==yt.now()&&this.tick(yt.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;Pe(t);const{type:e=Ve,repeat:n=0,repeatDelay:s=0,repeatType:i,velocity:r=0}=t;let{keyframes:o}=t;const a=e||Ve;a!==Ve&&"number"!=typeof o[0]&&(this.mixKeyframes=B(Fe,_t(o[0],o[1])),o=[0,100]);const u=a({...t,keyframes:o});"mirror"===i&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===u.calculatedDuration&&(u.calculatedDuration=Qt(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=u}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(null===this.startTime)return s.next(0);const{delay:l=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=s;if(c){const t=Math.min(this.currentTime,i)/a;let e=Math.floor(t),s=t%1;!s&&t>=1&&(s=1),1===s&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===d?(s=1-s,p&&(s-=p/a)):"mirror"===d&&(w=o)),b=n(0,1,s)*a}const T=g?{done:!1,value:h[0]}:w.next(b);r&&(T.value=r(T.value));let{done:S}=T;g||null===u||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&m!==Se&&(T.value=Ce(h,this.options,y,this.speed)),f&&f(T.value),A&&this.finish(),T}then(t,e){return this.finished.then(t,e)}get duration(){return q(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+q(t)}get time(){return q(this.currentTime)}set time(t){t=U(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(yt.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=q(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Gt,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yt.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const Oe=t=>180*t/Math.PI,Ie=t=>{const e=Oe(Math.atan2(t[1],t[0]));return Ne(e)},Re={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ie,rotateZ:Ie,skewX:t=>Oe(Math.atan(t[1])),skewY:t=>Oe(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ne=t=>((t%=360)<0&&(t+=360),t),Ke=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Be=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Le={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ke,scaleY:Be,scale:t=>(Ke(t)+Be(t))/2,rotateX:t=>Ne(Oe(Math.atan2(t[6],t[5]))),rotateY:t=>Ne(Oe(Math.atan2(-t[2],t[0]))),rotateZ:Ie,rotate:Ie,skewX:t=>Oe(Math.atan(t[4])),skewY:t=>Oe(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function je(t){return t.includes("scale")?1:0}function Ue(t,e){if(!t||"none"===t)return je(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Le,i=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Re,i=e}if(!i)return je(e);const r=s[e],o=i[1].split(",").map(qe);return"function"==typeof r?r(o):o[r]}function qe(t){return parseFloat(t.trim())}const We=e=>e===t||e===r,Ye=new Set(["x","y","z"]),$e=o.filter(t=>!Ye.has(t));const ze={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ue(e,"x"),y:(t,{transform:e})=>Ue(e,"y")};ze.translateX=ze.x,ze.translateY=ze.y;const He=new Set;let Xe=!1,_e=!1,Ge=!1;function Ze(){if(_e){const t=Array.from(He).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return $e.forEach(n=>{const s=t.getValue(n);void 0!==s&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}_e=!1,Xe=!1,He.forEach(t=>t.complete(Ge)),He.clear()}function Je(){He.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_e=!0)})}class Qe{constructor(t,e,n,s,i,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=s,this.element=i,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(He.add(this),Xe||(Xe=!0,ht.read(Je),ht.resolveKeyframes(Ze))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:s}=this;if(null===t[0]){const i=s?.get(),r=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){const s=n.readValue(e,r);null!=s&&(t[0]=s)}void 0===t[0]&&(t[0]=r),s&&void 0===i&&s.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),He.delete(this)}cancel(){"scheduled"===this.state&&(He.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const tn=R(()=>void 0!==window.ScrollTimeline),en={};function nn(t,e){const n=R(t);return()=>en[e]??n()}const sn=nn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),rn=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,on={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rn([0,.65,.55,1]),circOut:rn([.55,0,1,.45]),backIn:rn([.31,.01,.66,-.59]),backOut:rn([.33,1.53,.69,.99])};function an(t,e){return t?"function"==typeof t?sn()?Zt(t,e):"ease-out":it(t)?rn(t):Array.isArray(t)?t.map(t=>an(t,e)||on.easeOut):on[t]:void 0}function un(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const h={[e]:n};u&&(h.offset=u);const c=an(a,i);Array.isArray(c)&&(h.easing=c);const d={delay:s,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};l&&(d.pseudoElement=l);return t.animate(h,d)}function ln(t){return"function"==typeof t&&"applyToOptions"in t}class hn extends Ee{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:s,pseudoElement:i,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=Boolean(i),this.allowFlatten=r,this.options=t,t.type;const u=function({type:t,...e}){return ln(t)&&sn()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=un(e,n,s,u,i),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const t=Ce(s,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return q(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+q(t)}get time(){return q(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=U(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tn()?(this.animation.timeline=t,N):e(this)}}const cn={anticipate:Z,backInOut:G,circInOut:tt};function dn(t){"string"==typeof t.ease&&t.ease in cn&&(t.ease=cn[t.ease])}class pn extends hn{constructor(t){dn(t),Pe(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:s,element:i,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const o=new De({...r,autoplay:!1}),a=U(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}const mn=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Rt.test(t)&&"0"!==t||t.startsWith("url(")));function fn(t){t.duration=0,t.type="keyframes"}const yn=new Set(["opacity","clipPath","filter","transform"]),vn=R(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class gn extends Ee{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r="loop",keyframes:o,name:a,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=yt.now();const c={autoplay:t,delay:e,type:n,repeat:s,repeatDelay:i,repeatType:r,name:a,motionValue:u,element:l,...h},d=l?.KeyframeResolver||Qe;this.keyframeResolver=new d(o,(t,e,n)=>this.onKeyframesResolved(t,e,c,!n),a,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,s){this.keyframeResolver=void 0;const{name:i,type:r,velocity:o,delay:a,isHandoff:u,onUpdate:l}=n;this.resolvedAt=yt.now(),function(t,e,n,s){const i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],o=mn(i,e),a=mn(r,e);return!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||ln(n))&&s)}(t,i,r,o)||(!D.instantAnimations&&a||l?.(Ce(t,n,e)),t[0]=t[t.length-1],fn(n),n.repeat=0);const h={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},c=!u&&function(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return vn()&&n&&yn.has(n)&&("transform"!==n||!l)&&!u&&!s&&"mirror"!==i&&0!==r&&"inertia"!==o}(h)?new pn({...h,element:h.motionValue.owner.current}):new De(h);c.finished.then(()=>this.notifyFinished()).catch(N),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ge=!0,Je(),Ze(),Ge=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const bn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wn(t,e,n=1){const[s,r]=function(t){const e=bn.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const t=o.trim();return O(t)?parseFloat(t):t}return i(r)?wn(r,e,n+1):r}function Tn(t,e){return t?.[e]??t?.default??t}const Sn=new Set(["width","height","top","left","right","bottom",...o]),An=t=>e=>e.test(t),Mn=[t,r,s,a,u,l,{test:t=>"auto"===t,parse:t=>t}],Vn=t=>Mn.find(An(t));function xn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||I(t))}const Cn=new Set(["brightness","contrast","saturate","opacity"]);function kn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[s]=n.match(gt)||[];if(!s)return t;const i=n.replace(s,"");let r=Cn.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const Pn=/\b([a-z-]*)\(.*?\)/gu,En={...Rt,getAnimatableNone:t=>{const e=t.match(Pn);return e?e.map(kn).join(" "):t}},Fn={...h,color:xt,backgroundColor:xt,outlineColor:xt,fill:xt,stroke:xt,borderColor:xt,borderTopColor:xt,borderRightColor:xt,borderBottomColor:xt,borderLeftColor:xt,filter:En,WebkitFilter:En},Dn=t=>Fn[t];function On(t,e){let n=Dn(t);return n!==En&&(n=Rt),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const In=new Set(["auto","none","0"]);class Rn extends Qe{constructor(t,e,n,s,i){super(t,e,n,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let s=t[n];if("string"==typeof s&&(s=s.trim(),i(s))){const i=wn(s,e.current);void 0!==i&&(t[n]=i),n===t.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!Sn.has(n)||2!==t.length)return;const[s,r]=t,o=Vn(s),a=Vn(r);if(o!==a)if(We(o)&&We(a))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else ze[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||xn(t[e]))&&n.push(e);n.length&&function(t,e,n){let s,i=0;for(;i<t.length&&!s;){const e=t[i];"string"==typeof e&&!In.has(e)&&Ft(e).values.length&&(s=t[i]),i++}if(s&&n)for(const i of e)t[i]=On(n,s)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ze[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const s=e[e.length-1];void 0!==s&&t.getValue(n,s).jump(s,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const s=t.getValue(e);s&&s.jump(this.measuredOrigin,!1);const i=n.length-1,r=n[i];n[i]=ze[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}class Nn{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=yt.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=yt.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new j);const n=this.events[t].add(e);return"change"===t?()=>{n(),ht.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return W(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Kn(t,e){return new Nn(t,e)}const{schedule:Bn,cancel:Ln}=lt(queueMicrotask,!1),jn=!1;function Un(){return jn}function qn(t,e){const n=function(t){if(t instanceof EventTarget)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),s=new AbortController;return[n,{passive:!0,...e,signal:s.signal},()=>s.abort()]}function Wn(t){return!("touch"===t.pointerType||Un())}const Yn=(t,e)=>!!e&&(t===e||Yn(t,e.parentElement)),$n=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const zn=new WeakSet;function Hn(t){return e=>{"Enter"===e.key&&t(e)}}function Xn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function _n(t){return(t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary)(t)&&!Un()}function Gn(t,e,n={}){const[s,i,r]=qn(t,n),o=t=>{const s=t.currentTarget;if(!_n(t))return;zn.add(s);const r=e(s,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",u),zn.has(s)&&zn.delete(s),_n(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,s===window||s===document||n.useGlobalTarget||Yn(s,t.target))},u=t=>{o(t,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",u,i)};return s.forEach(t=>{var e,s;(n.useGlobalTarget?window:t).addEventListener("pointerdown",o,i),"object"==typeof(s=e=t)&&null!==s&&"offsetHeight"in e&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const s=Hn(()=>{if(zn.has(n))return;Xn(n,"down");const t=Hn(()=>{Xn(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>Xn(n,"cancel"),e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)})(t,i)),function(t){return $n.has(t.tagName)||-1!==t.tabIndex}(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}const Zn=[...Mn,xt,Rt];function Jn(t,e,n){const s=t.getProps();return c(s,e,void 0!==n?n:s.custom,t)}const Qn=t=>Array.isArray(t);function ts(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Kn(n))}function es(t){return Qn(t)?t[t.length-1]||0:t}function ns(t,e){const n=t.getValue("willChange");if(s=n,Boolean(d(s)&&s.add))return n.add(e);if(!n&&D.WillChange){const n=new D.WillChange("auto");t.addValue("willChange",n),n.add(e)}var s}function ss(t){return t.props[p]}const is=t=>null!==t;const rs={type:"spring",stiffness:500,damping:25,restSpeed:10},os={type:"keyframes",duration:.8},as={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},us=(t,{keyframes:e})=>e.length>2?os:m.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:rs:as;const ls=(t,e,n,s={},i,r)=>o=>{const a=Tn(s,t)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l-=U(u);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};(function({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:u,elapsed:l,...h}){return!!Object.keys(h).length})(a)||Object.assign(h,us(t,h)),h.duration&&(h.duration=U(h.duration)),h.repeatDelay&&(h.repeatDelay=U(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(fn(h),0===h.delay&&(c=!0)),(D.instantAnimations||D.skipAnimations)&&(c=!0,fn(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(is),r=e&&"loop"!==n&&e%2==1?0:i.length-1;return r&&void 0!==s?s:i[r]}(h.keyframes,a);if(void 0!==t)return void ht.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new De(h):new gn(h)};function hs({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,s}function cs(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;s&&(r=s);const u=[],l=i&&t.animationState&&t.animationState.getState()[i];for(const e in a){const s=t.getValue(e,t.latestValues[e]??null),i=a[e];if(void 0===i||l&&hs(l,e))continue;const o={delay:n,...Tn(r||{},e)},h=s.get();if(void 0!==h&&!s.isAnimating&&!Array.isArray(i)&&i===h&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){const n=ss(t);if(n){const t=window.MotionHandoffAnimation(n,e,ht);null!==t&&(o.startTime=t,c=!0)}}ns(t,e),s.start(ls(e,s,i,t.shouldReduceMotion&&Sn.has(e)?{type:!1}:o,t,c));const d=s.animation;d&&u.push(d)}return o&&Promise.all(u).then(()=>{ht.update(()=>{o&&function(t,e){const n=Jn(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const e in r)ts(t,e,es(r[e]))}(t,o)})}),u}function ds(t,e,n,s=0,i=1){const r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*s;return"function"==typeof n?n(r,o):1===i?r*s:a-r*s}function ps(t,e,n={}){const s=Jn(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(cs(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(s=0)=>{const{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=i;return function(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(ps(u,e,{...o,delay:n+("function"==typeof s?0:s)+ds(t.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,s,r,o,a,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}return Promise.all([r(),o(n.delay)])}function ms(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const fs=y.length;function ys(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ys(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<fs;n++){const s=y[n],i=t.props[s];(f(i)||!1===i)&&(e[s]=i)}return e}const vs=[...g].reverse(),gs=g.length;function bs(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let s;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map(e=>ps(t,e,n));s=Promise.all(i)}else if("string"==typeof e)s=ps(t,e,n);else{const i="function"==typeof e?Jn(t,e,n.custom):e;s=Promise.all(cs(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function ws(t){let e=bs(t),n=As(),s=!0;const i=e=>(n,s)=>{const i=Jn(t,s,"exit"===e?t.presenceContext?.custom:void 0);if(i){const{transition:t,transitionEnd:e,...s}=i;n={...n,...s,...e}}return n};function r(r){const{props:o}=t,a=ys(t.parent)||{},u=[],l=new Set;let h={},c=1/0;for(let e=0;e<gs;e++){const d=vs[e],p=n[d],m=void 0!==o[d]?o[d]:a[d],y=f(m),g=d===r?p.isActive:null;!1===g&&(c=e);let b=m===a[d]&&m!==o[d]&&y;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),p.protectedKeys={...h},!p.isActive&&null===g||!m&&!p.prevProp||v(m)||"boolean"==typeof m)continue;const w=Ts(p.prevProp,m);let T=w||d===r&&p.isActive&&!b&&y||e>c&&y,S=!1;const A=Array.isArray(m)?m:[m];let M=A.reduce(i(d),{});!1===g&&(M={});const{prevResolvedValues:V={}}=p,x={...V,...M},C=e=>{T=!0,l.has(e)&&(S=!0,l.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in x){const e=M[t],n=V[t];if(h.hasOwnProperty(t))continue;let s=!1;s=Qn(e)&&Qn(n)?!ms(e,n):e!==n,s?null!=e?C(t):l.add(t):void 0!==e&&l.has(t)?C(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=M,p.isActive&&(h={...h,...M}),s&&t.blockInitialAnimation&&(T=!1);const k=b&&w;T&&(!k||S)&&u.push(...A.map(e=>{const n={type:d};if("string"==typeof e&&s&&!k&&t.manuallyAnimateOnMount&&t.parent){const{parent:s}=t,i=Jn(s,e);if(s.enteringChildren&&i){const{delayChildren:e}=i.transition||{};n.delay=ds(s.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(l.size){const e={};if("boolean"!=typeof o.initial){const n=Jn(t,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(e.transition=n.transition)}l.forEach(n=>{const s=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=s??null}),u.push({animation:e})}let d=Boolean(u.length);return!s||!1!==o.initial&&o.initial!==o.animate||t.manuallyAnimateOnMount||(d=!1),s=!1,d?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,s){if(n[e].isActive===s)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,s)),n[e].isActive=s;const i=r(e);for(const t in n)n[t].protectedKeys={};return i},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=As()}}}function Ts(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ms(e,t)}function Ss(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function As(){return{animate:Ss(!0),whileInView:Ss(),whileHover:Ss(),whileTap:Ss(),whileDrag:Ss(),whileFocus:Ss(),exit:Ss()}}class Ms{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Vs=0;const xs={animation:{Feature:class extends Ms{constructor(t){super(t),t.animationState||(t.animationState=ws(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();v(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Ms{constructor(){super(...arguments),this.id=Vs++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const s=this.node.animationState.setActive("exit",!t);e&&!t&&s.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function Cs(t){return{point:{x:t.pageX,y:t.pageY}}}function ks(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover","Start"===n);const i=s["onHover"+n];i&&ht.postRender(()=>i(e,Cs(e)))}function Ps(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Es(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap","Start"===n);const i=s["onTap"+("End"===n?"":n)];i&&ht.postRender(()=>i(e,Cs(e)))}const Fs=new WeakMap,Ds=new WeakMap,Os=t=>{const e=Fs.get(t.target);e&&e(t)},Is=t=>{t.forEach(Os)};function Rs(t,e,n){const s=function({root:t,...e}){const n=t||document;Ds.has(n)||Ds.set(n,{});const s=Ds.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Is,{root:t,...e})),s[i]}(e);return Fs.set(t,n),s.observe(t),()=>{Fs.delete(t),s.unobserve(t)}}const Ns={some:0,all:1};const Ks={inView:{Feature:class extends Ms{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:s="some",once:i}=t,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:Ns[s]};return Rs(this.node.current,r,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),r=e?n:s;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ms{mount(){const{current:t}=this.node;t&&(this.unmount=Gn(t,(t,e)=>(Es(this.node,e,"Start"),(t,{success:e})=>Es(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Ms{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=B(Ps(this.node.current,"focus",()=>this.onFocus()),Ps(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Ms{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[s,i,r]=qn(t,n),o=t=>{if(!Wn(t))return;const{target:n}=t,s=e(n,t);if("function"!=typeof s||!n)return;const r=t=>{Wn(t)&&(s(t),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,i)};return s.forEach(t=>{t.addEventListener("pointerenter",o,i)}),r}(t,(t,e)=>(ks(this.node,e,"Start"),t=>ks(this.node,t,"End"))))}unmount(){}}}};const Bs=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Ls={current:null},js={current:!1};const Us=new WeakMap;const qs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ws{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:s,blockInitialAnimation:i,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Qe,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=yt.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,ht.render(this.render,!1,!0))};const{latestValues:a,renderState:u}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=w(e),this.isVariantNode=T(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&d(e)&&e.set(a[t])}}mount(t){this.current=t,Us.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),js.current||function(){if(js.current=!0,b)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ls.current=t.matches;t.addEventListener("change",e),e()}else Ls.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ls.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ct(this.notifyUpdate),ct(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=m.has(t);n&&this.onBindTransform&&this.onBindTransform();const s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ht.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in S){const e=S[t];if(!e)continue;const{isEnabled:n,Feature:s}=e;if(!this.features[t]&&s&&n(this.props)&&(this.features[t]=new s(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<qs.length;e++){const n=qs[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const s=t["on"+n];s&&(this.propEventSubscriptions[n]=this.on(n,s))}this.prevMotionValues=function(t,e,n){for(const s in e){const i=e[s],r=n[s];if(d(i))t.addValue(s,i);else if(d(r))t.addValue(s,Kn(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const e=t.getValue(s);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{const e=t.getStaticValue(s);t.addValue(s,Kn(void 0!==e?e:i,{owner:t}))}}for(const s in n)void 0===e[s]&&t.removeValue(s);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Kn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=n&&("string"==typeof n&&(O(n)||I(n))?n=parseFloat(n):(s=n,!Zn.find(An(s))&&Rt.test(e)&&(n=On(t,e))),this.setBaseTarget(t,d(n)?n.get():n)),d(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const s=c(this.props,e,this.presenceContext?.custom);s&&(n=s[t])}if(e&&void 0!==n)return n;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||d(s)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new j),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){Bn.render(this.render)}}class Ys extends Ws{constructor(){super(...arguments),this.KeyframeResolver=Rn}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;d(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function $s(t,{style:e,vars:n},s,i){const r=t.style;let o;for(o in e)r[o]=e[o];for(o in i?.applyProjectionStyles(r,s),n)r.setProperty(o,n[o])}class zs extends Ys{constructor(){super(...arguments),this.type="html",this.renderInstance=$s}readValueFromInstance(t,e){if(m.has(e))return this.projection?.isProjecting?je(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ue(n,e)})(t,e);{const s=(n=t,window.getComputedStyle(n)),i=(A(e)?s.getPropertyValue(e):s[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return function(t,e){return function({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}(t,e)}build(t,e,n){M(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return V(t,e,n)}}const Hs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class Xs extends Ys{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bs}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(m.has(e)){const t=Dn(e);return t&&t.default||0}return e=Hs.has(e)?e:x(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return C(t,e,n)}build(t,e,n){k(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,s){!function(t,e,n,s){$s(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(Hs.has(n)?n:x(n),e.attrs[n])}(t,e,0,s)}mount(t){this.isSVGTag=P(t.tagName),super.mount(t)}}const _s={renderer:(t,e)=>E(t)?new Xs(e):new zs(e,{allowProjection:t!==F}),...xs,...Ks};export{_s as domAnimation};
1
+ import{n as t,p as e,q as n,t as i,u as s,v as r,w as o,x as a,y as u,z as l,A as h,B as c,C as d,D as p,E as m,F as f,G as y,H as v,r as g,b as w,o as T,I as b,a as S,J as A,j as V,K as M,l as x,i as C,h as k,m as P,L as E,d as F,s as D,M as O,k as I,e as R,f as K,g as B}from"./size-rollup-dom-animation-assets.js";import{Fragment as N}from"react";const L={},j=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);const U=t=>/^0[^.\s]+$/u.test(t);function q(t){let e;return()=>(void 0===e&&(e=t()),e)}const W=t=>t,Y=(t,e)=>n=>e(t(n)),z=(...t)=>t.reduce(Y),H=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i};class X{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s<i;s++){const i=this.subscriptions[s];i&&i(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $=t=>1e3*t,_=t=>t/1e3;function G(t,e){return e?t*(1e3/e):0}const Z=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function J(t,e,n,i){if(t===e&&n===i)return W;const s=e=>function(t,e,n,i,s){let r,o,a=0;do{o=e+(n-e)/2,r=Z(o,i,s)-t,r>0?n=o:e=o}while(Math.abs(r)>1e-7&&++a<12);return o}(e,0,1,t,n);return t=>0===t||1===t?t:Z(s(t),e,i)}const Q=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,tt=t=>e=>1-t(1-e),et=J(.33,1.53,.69,.99),nt=tt(et),it=Q(nt),st=t=>(t*=2)<1?.5*nt(t):.5*(2-Math.pow(2,-10*(t-1))),rt=t=>1-Math.sin(Math.acos(t)),ot=tt(rt),at=Q(rt),ut=J(.42,0,1,1),lt=J(0,0,.58,1),ht=J(.42,0,.58,1),ct=t=>Array.isArray(t)&&"number"==typeof t[0],dt={linear:W,easeIn:ut,easeInOut:ht,easeOut:lt,circIn:rt,circInOut:at,circOut:ot,backIn:nt,backInOut:it,backOut:et,anticipate:st},pt=t=>{if(ct(t)){t.length;const[e,n,i,s]=t;return J(e,n,i,s)}return"string"==typeof t?dt[t]:t},mt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ft={value:null,addProjectionMetrics:null};function yt(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=mt.reduce((t,n)=>(t[n]=function(t,e){let n=new Set,i=new Set,s=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},u=0;function l(e){o.has(e)&&(h.schedule(e),t()),u++,e(a)}const h={schedule:(t,e=!1,r=!1)=>{const a=r&&s?n:i;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{i.delete(t),o.delete(t)},process:t=>{a=t,s?r=!0:(s=!0,[n,i]=[i,n],n.forEach(l),e&&ft.value&&ft.value.frameloop[e].push(u),u=0,n.clear(),s=!1,r&&(r=!1,h.process(t)))}};return h}(r,e?n:void 0),t),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:h,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{const r=L.useManualTiming?s.timestamp:performance.now();n=!1,L.useManualTiming||(s.delta=i?1e3/60:Math.max(Math.min(r-s.timestamp,40),1)),s.timestamp=r,s.isProcessing=!0,a.process(s),u.process(s),l.process(s),h.process(s),c.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,n&&e&&(i=!1,t(f))};return{schedule:mt.reduce((e,r)=>{const a=o[r];return e[r]=(e,r=!1,o=!1)=>(n||(n=!0,i=!0,s.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<mt.length;e++)o[mt[e]].cancel(t)},state:s,steps:o}}const{schedule:vt,cancel:gt,state:wt,steps:Tt}=yt("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:W,!0);let bt;function St(){bt=void 0}const At={now:()=>(void 0===bt&&At.set(wt.isProcessing||L.useManualTiming?wt.timestamp:performance.now()),bt),set:t=>{bt=t,queueMicrotask(St)}};function Vt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Mt(t,e){return n=>n>0?e:t}const xt=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},Ct=[i,e,n];function kt(t){const e=(i=t,Ct.find(t=>t.test(i)));var i;if(!Boolean(e))return!1;let s=e.parse(t);return e===n&&(s=function({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,n/=100;let s=0,r=0,o=0;if(e/=100){const i=n<.5?n*(1+e):n+e-n*e,a=2*n-i;s=Vt(a,i,t+1/3),r=Vt(a,i,t),o=Vt(a,i,t-1/3)}else s=r=o=n;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:i}}(s)),s}const Pt=(n,i)=>{const s=kt(n),r=kt(i);if(!s||!r)return Mt(n,i);const o={...s};return n=>(o.red=xt(s.red,r.red,n),o.green=xt(s.green,r.green,n),o.blue=xt(s.blue,r.blue,n),o.alpha=t(s.alpha,r.alpha,n),e.transform(o))},Et=new Set(["none","hidden"]);function Ft(e,n){return i=>t(e,n,i)}function Dt(t){return"number"==typeof t?Ft:"string"==typeof t?s(t)?Mt:r.test(t)?Pt:Rt:Array.isArray(t)?Ot:"object"==typeof t?r.test(t)?Pt:It:Mt}function Ot(t,e){const n=[...t],i=n.length,s=t.map((t,n)=>Dt(t)(t,e[n]));return t=>{for(let e=0;e<i;e++)n[e]=s[e](t);return n}}function It(t,e){const n={...t,...e},i={};for(const s in n)void 0!==t[s]&&void 0!==e[s]&&(i[s]=Dt(t[s])(t[s],e[s]));return t=>{for(const e in i)n[e]=i[e](t);return n}}const Rt=(t,e)=>{const n=o.createTransformer(e),i=a(t),s=a(e);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Et.has(t)&&!s.values.length||Et.has(e)&&!i.values.length?function(t,e){return Et.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):z(Ot(function(t,e){const n=[],i={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const r=e.types[s],o=t.indexes[r][i[r]],a=t.values[o]??0;n[s]=a,i[r]++}return n}(i,s),s.values),n):Mt(t,e)};function Kt(e,n,i){if("number"==typeof e&&"number"==typeof n&&"number"==typeof i)return t(e,n,i);return Dt(e)(e,n)}const Bt=t=>{const e=({timestamp:e})=>t(e);return{start:(t=!0)=>vt.update(e,t),stop:()=>gt(e),now:()=>wt.isProcessing?wt.timestamp:At.now()}},Nt=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let e=0;e<s;e++)i+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Lt=2e4;function jt(t){let e=0;let n=t.next(e);for(;!n.done&&e<Lt;)e+=50,n=t.next(e);return e>=Lt?1/0:e}function Ut(t,e,n){const i=Math.max(e-5,0);return G(n-t(i),e-i)}const qt=100,Wt=10,Yt=1,zt=0,Ht=800,Xt=.3,$t=.3,_t={granular:.01,default:2},Gt={granular:.005,default:.5},Zt=.01,Jt=10,Qt=.05,te=1,ee=.001;function ne({duration:t=Ht,bounce:e=Xt,velocity:n=zt,mass:i=Yt}){let s,r,o=1-e;o=u(Qt,te,o),t=u(Zt,Jt,_(t)),o<1?(s=e=>{const i=e*o,s=i*t,r=i-n,a=se(e,o),u=Math.exp(-s);return ee-r/a*u},r=e=>{const i=e*o*t,r=i*n+n,a=Math.pow(o,2)*Math.pow(e,2)*t,u=Math.exp(-i),l=se(Math.pow(e,2),o);return(-s(e)+ee>0?-1:1)*((r-a)*u)/l}):(s=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,r=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let i=n;for(let n=1;n<ie;n++)i-=t(i)/e(i);return i}(s,r,5/t);if(t=$(t),isNaN(a))return{stiffness:qt,damping:Wt,duration:t};{const e=Math.pow(a,2)*i;return{stiffness:e,damping:2*o*Math.sqrt(i*e),duration:t}}}const ie=12;function se(t,e){return t*Math.sqrt(1-e*e)}const re=["duration","bounce"],oe=["stiffness","damping","mass"];function ae(t,e){return e.some(e=>void 0!==t[e])}function ue(t=$t,e=Xt){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:zt,stiffness:qt,damping:Wt,mass:Yt,isResolvedFromDuration:!1,...t};if(!ae(t,oe)&&ae(t,re))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(1.2*n),s=i*i,r=2*u(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Yt,stiffness:s,damping:r}}else{const n=ne(t);e={...e,...n,mass:Yt},e.isResolvedFromDuration=!0}return e}({...n,velocity:-_(n.velocity||0)}),f=p||0,y=h/(2*Math.sqrt(l*c)),v=o-r,g=_(Math.sqrt(l/c)),w=Math.abs(v)<5;let T;if(i||(i=w?_t.granular:_t.default),s||(s=w?Gt.granular:Gt.default),y<1){const t=se(g,y);T=e=>{const n=Math.exp(-y*g*e);return o-n*((f+y*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}}else if(1===y)T=t=>o-Math.exp(-g*t)*(v+(f+g*v)*t);else{const t=g*Math.sqrt(y*y-1);T=e=>{const n=Math.exp(-y*g*e),i=Math.min(t*e,300);return o-n*((f+y*g*v)*Math.sinh(i)+t*v*Math.cosh(i))/t}}const b={calculatedDuration:m&&d||null,next:t=>{const e=T(t);if(m)a.done=t>=d;else{let n=0===t?f:0;y<1&&(n=0===t?$(f):Ut(T,t,e));const r=Math.abs(n)<=i,u=Math.abs(o-e)<=s;a.done=r&&u}return a.value=a.done?o:e,a},toString:()=>{const t=Math.min(jt(b),Lt),e=Nt(e=>b.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return b}function le({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:h}){const c=t[0],d={done:!1,value:c},p=t=>void 0===a?u:void 0===u||Math.abs(a-t)<Math.abs(u-t)?a:u;let m=n*e;const f=c+m,y=void 0===o?f:o(f);y!==f&&(m=y-c);const v=t=>-m*Math.exp(-t/i),g=t=>y+v(t),w=t=>{const e=v(t),n=g(t);d.done=Math.abs(e)<=l,d.value=d.done?y:n};let T,b;const S=t=>{var e;(e=d.value,void 0!==a&&e<a||void 0!==u&&e>u)&&(T=t,b=ue({keyframes:[d.value,p(d.value)],velocity:Ut(g,t,d.value),damping:s,stiffness:r,restDelta:l,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return b||void 0!==T||(e=!0,w(t),S(t)),void 0!==T&&t>=T?b.next(t-T):(!e&&w(t),d)}}}function he(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const r=t.length;if(e.length,1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const i=[],s=n||L.mix||Kt,r=t.length-1;for(let n=0;n<r;n++){let r=s(t[n],t[n+1]);if(e){const t=Array.isArray(e)?e[n]||W:e;r=z(t,r)}i.push(r)}return i}(e,i,s),l=a.length,h=n=>{if(o&&n<t[0])return e[0];let i=0;if(l>1)for(;i<t.length-2&&!(n<t[i+1]);i++);const s=H(t[i],t[i+1],n);return a[i](s)};return n?e=>h(u(t[0],t[r-1],e)):h}function ce(e){const n=[0];return function(e,n){const i=e[e.length-1];for(let s=1;s<=n;s++){const r=H(0,n,s);e.push(t(i,1,r))}}(n,e.length-1),n}function de({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=(t=>Array.isArray(t)&&"number"!=typeof t[0])(i)?i.map(pt):pt(i),r={done:!1,value:e[0]},o=function(t,e){return t.map(t=>t*e)}(n&&n.length===e.length?n:ce(e),t),a=he(o,e,{ease:Array.isArray(s)?s:(u=e,l=s,u.map(()=>l||ht).splice(0,u.length-1))});var u,l;return{calculatedDuration:t,next:e=>(r.value=a(e),r.done=e>=t,r)}}ue.applyToOptions=t=>{const e=function(t,e=100,n){const i=n({...t,keyframes:[0,e]}),s=Math.min(jt(i),Lt);return{type:"keyframes",ease:t=>i.next(s*t).value/e,duration:_(s)}}(t,100,ue);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};const pe=t=>null!==t;function me(t,{repeat:e,repeatType:n="loop"},i,s=1){const r=t.filter(pe),o=s<0||e&&"loop"!==n&&e%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}const fe={decay:le,inertia:le,tween:de,keyframes:de,spring:ue};function ye(t){"string"==typeof t.type&&(t.type=fe[t.type])}class ve{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const ge=t=>t/100;class we extends ve{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==At.now()&&this.tick(At.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){const{options:t}=this;ye(t);const{type:e=de,repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=t;let{keyframes:o}=t;const a=e||de;a!==de&&"number"!=typeof o[0]&&(this.mixKeyframes=z(ge,Kt(o[0],o[1])),o=[0,100]);const u=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===u.calculatedDuration&&(u.calculatedDuration=jt(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:n,totalDuration:i,mixKeyframes:s,mirroredGenerator:r,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:h,repeat:c,repeatType:d,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let w=this.currentTime,T=n;if(c){const t=Math.min(this.currentTime,i)/o;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,c+1);Boolean(e%2)&&("reverse"===d?(n=1-n,p&&(n-=p/o)):"mirror"===d&&(T=r)),w=u(0,1,n)*o}const b=g?{done:!1,value:h[0]}:T.next(w);s&&(b.value=s(b.value));let{done:S}=b;g||null===a||(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&m!==le&&(b.value=me(h,this.options,y,this.speed)),f&&f(b.value),A&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return _(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+_(t)}get time(){return _(this.currentTime)}set time(t){t=$(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(At.now());const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=_(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Bt,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=e??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(At.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const Te=t=>180*t/Math.PI,be=t=>{const e=Te(Math.atan2(t[1],t[0]));return Ae(e)},Se={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:be,rotateZ:be,skewX:t=>Te(Math.atan(t[1])),skewY:t=>Te(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ae=t=>((t%=360)<0&&(t+=360),t),Ve=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Me=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),xe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ve,scaleY:Me,scale:t=>(Ve(t)+Me(t))/2,rotateX:t=>Ae(Te(Math.atan2(t[6],t[5]))),rotateY:t=>Ae(Te(Math.atan2(-t[2],t[0]))),rotateZ:be,rotate:be,skewX:t=>Te(Math.atan(t[4])),skewY:t=>Te(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ce(t){return t.includes("scale")?1:0}function ke(t,e){if(!t||"none"===t)return Ce(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=xe,s=n;else{const e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Se,s=e}if(!s)return Ce(e);const r=i[e],o=s[1].split(",").map(Pe);return"function"==typeof r?r(o):o[r]}function Pe(t){return parseFloat(t.trim())}const Ee=t=>t===l||t===h,Fe=new Set(["x","y","z"]),De=c.filter(t=>!Fe.has(t));const Oe={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ke(e,"x"),y:(t,{transform:e})=>ke(e,"y")};Oe.translateX=Oe.x,Oe.translateY=Oe.y;const Ie=new Set;let Re=!1,Ke=!1,Be=!1;function Ne(){if(Ke){const t=Array.from(Ie).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{const e=function(t){const e=[];return De.forEach(n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();const e=n.get(t);e&&e.forEach(([e,n])=>{t.getValue(e)?.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}Ke=!1,Re=!1,Ie.forEach(t=>t.complete(Be)),Ie.clear()}function Le(){Ie.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ke=!0)})}class je{constructor(t,e,n,i,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Ie.add(this),Re||(Re=!0,vt.read(Le),vt.resolveKeyframes(Ne))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;if(null===t[0]){const s=i?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(n&&e){const i=n.readValue(e,r);null!=i&&(t[0]=i)}void 0===t[0]&&(t[0]=r),i&&void 0===s&&i.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ie.delete(this)}cancel(){"scheduled"===this.state&&(Ie.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Ue=q(()=>void 0!==window.ScrollTimeline),qe={};function We(t,e){const n=q(t);return()=>qe[e]??n()}const Ye=We(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),ze=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,He={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ze([0,.65,.55,1]),circOut:ze([.55,0,1,.45]),backIn:ze([.31,.01,.66,-.59]),backOut:ze([.33,1.53,.69,.99])};function Xe(t,e){return t?"function"==typeof t?Ye()?Nt(t,e):"ease-out":ct(t)?ze(t):Array.isArray(t)?t.map(t=>Xe(t,e)||He.easeOut):He[t]:void 0}function $e(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:u}={},l=void 0){const h={[e]:n};u&&(h.offset=u);const c=Xe(a,s);Array.isArray(c)&&(h.easing=c);const d={delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};l&&(d.pseudoElement=l);return t.animate(h,d)}function _e(t){return"function"==typeof t&&"applyToOptions"in t}class Ge extends ve{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:e,name:n,keyframes:i,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=Boolean(s),this.allowFlatten=r,this.options=t,t.type;const u=function({type:t,...e}){return _e(t)&&Ye()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=$e(e,n,i,u,s),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const t=me(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,n){(t=>t.startsWith("--"))(e)?t.style.setProperty(e,n):t.style[e]=n}(e,n,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return _(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+_(t)}get time(){return _(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=$(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Ue()?(this.animation.timeline=t,W):e(this)}}const Ze={anticipate:st,backInOut:it,circInOut:at};function Je(t){"string"==typeof t.ease&&t.ease in Ze&&(t.ease=Ze[t.ease])}class Qe extends Ge{constructor(t){Je(t),ye(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:n,onComplete:i,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);const o=new we({...r,autoplay:!1}),a=$(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}const tn=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!o.test(t)&&"0"!==t||t.startsWith("url(")));function en(t){t.duration=0,t.type="keyframes"}const nn=new Set(["opacity","clipPath","filter","transform"]),sn=q(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rn extends ve{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:u,element:l,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=At.now();const c={autoplay:t,delay:e,type:n,repeat:i,repeatDelay:s,repeatType:r,name:a,motionValue:u,element:l,...h},d=l?.KeyframeResolver||je;this.keyframeResolver=new d(o,(t,e,n)=>this.onKeyframesResolved(t,e,c,!n),a,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,n,i){this.keyframeResolver=void 0;const{name:s,type:r,velocity:o,delay:a,isHandoff:u,onUpdate:l}=n;this.resolvedAt=At.now(),function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const r=t[t.length-1],o=tn(s,e),a=tn(r,e);return!(!o||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||_e(n))&&i)}(t,s,r,o)||(!L.instantAnimations&&a||l?.(me(t,n,e)),t[0]=t[t.length-1],en(n),n.repeat=0);const h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...n,keyframes:t},c=!u&&function(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=t,a=e?.owner?.current;if(!(a instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return sn()&&n&&nn.has(n)&&("transform"!==n||!l)&&!u&&!i&&"mirror"!==s&&0!==r&&"inertia"!==o}(h)?new Qe({...h,element:h.motionValue.owner.current}):new we(h);c.finished.then(()=>this.notifyFinished()).catch(W),this.pendingTimeline&&(this.stopTimeline=c.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=c}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Be=!0,Le(),Ne(),Be=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const on=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function an(t,e,n=1){const[i,r]=function(t){const e=on.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const t=o.trim();return j(t)?parseFloat(t):t}return s(r)?an(r,e,n+1):r}function un(t,e){return t?.[e]??t?.default??t}const ln=new Set(["width","height","top","left","right","bottom",...c]),hn=t=>e=>e.test(t),cn=[l,h,d,p,m,f,{test:t=>"auto"===t,parse:t=>t}],dn=t=>cn.find(hn(t));function pn(t){return"number"==typeof t?0===t:null===t||("none"===t||"0"===t||U(t))}const mn=new Set(["brightness","contrast","saturate","opacity"]);function fn(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(y)||[];if(!i)return t;const s=n.replace(i,"");let r=mn.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+s+")"}const yn=/\b([a-z-]*)\(.*?\)/gu,vn={...o,getAnimatableNone:t=>{const e=t.match(yn);return e?e.map(fn).join(" "):t}},gn={...v,color:r,backgroundColor:r,outlineColor:r,fill:r,stroke:r,borderColor:r,borderTopColor:r,borderRightColor:r,borderBottomColor:r,borderLeftColor:r,filter:vn,WebkitFilter:vn},wn=t=>gn[t];function Tn(t,e){let n=wn(t);return n!==vn&&(n=o),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const bn=new Set(["auto","none","0"]);class Sn extends je{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let i=t[n];if("string"==typeof i&&(i=i.trim(),s(i))){const s=an(i,e.current);void 0!==s&&(t[n]=s),n===t.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!ln.has(n)||2!==t.length)return;const[i,r]=t,o=dn(i),a=dn(r);if(o!==a)if(Ee(o)&&Ee(a))for(let e=0;e<t.length;e++){const n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else Oe[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++)(null===t[e]||pn(t[e]))&&n.push(e);n.length&&function(t,e,n){let i,s=0;for(;s<t.length&&!i;){const e=t[s];"string"==typeof e&&!bn.has(e)&&a(e).values.length&&(i=t[s]),s++}if(i&&n)for(const s of e)t[s]=Tn(n,i)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Oe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const i=e[e.length-1];void 0!==i&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:e,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(e);i&&i.jump(this.measuredOrigin,!1);const s=n.length-1,r=n[s];n[s]=Oe[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}class An{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{const e=At.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=At.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new X);const n=this.events[t].add(e);return"change"===t?()=>{n(),vt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=At.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return G(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vn(t,e){return new An(t,e)}const{schedule:Mn,cancel:xn}=yt(queueMicrotask,!1),Cn=!1;function kn(){return Cn}function Pn(t,e){const n=function(t){if(t instanceof EventTarget)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),i=new AbortController;return[n,{passive:!0,...e,signal:i.signal},()=>i.abort()]}function En(t){return!("touch"===t.pointerType||kn())}const Fn=(t,e)=>!!e&&(t===e||Fn(t,e.parentElement)),Dn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const On=new WeakSet;function In(t){return e=>{"Enter"===e.key&&t(e)}}function Rn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function Kn(t){return(t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary)(t)&&!kn()}function Bn(t,e,n={}){const[i,s,r]=Pn(t,n),o=t=>{const i=t.currentTarget;if(!Kn(t))return;On.add(i);const r=e(i,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",u),On.has(i)&&On.delete(i),Kn(t)&&"function"==typeof r&&r(t,{success:e})},a=t=>{o(t,i===window||i===document||n.useGlobalTarget||Fn(i,t.target))},u=t=>{o(t,!1)};window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",u,s)};return i.forEach(t=>{var e,i;(n.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),"object"==typeof(i=e=t)&&null!==i&&"offsetHeight"in e&&(t.addEventListener("focus",t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const i=In(()=>{if(On.has(n))return;Rn(n,"down");const t=In(()=>{Rn(n,"up")});n.addEventListener("keyup",t,e),n.addEventListener("blur",()=>Rn(n,"cancel"),e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)})(t,s)),function(t){return Dn.has(t.tagName)||-1!==t.tabIndex}(t)||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}const Nn=[...cn,r,o];function Ln(t,e,n){const i=t.getProps();return g(i,e,void 0!==n?n:i.custom,t)}const jn=t=>Array.isArray(t);function Un(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vn(n))}function qn(t){return jn(t)?t[t.length-1]||0:t}function Wn(t,e){const n=t.getValue("willChange");if(i=n,Boolean(w(i)&&i.add))return n.add(e);if(!n&&L.WillChange){const n=new L.WillChange("auto");t.addValue("willChange",n),n.add(e)}var i}function Yn(t){return t.props[T]}const zn=t=>null!==t;const Hn={type:"spring",stiffness:500,damping:25,restSpeed:10},Xn={type:"keyframes",duration:.8},$n={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_n=(t,{keyframes:e})=>e.length>2?Xn:b.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Hn:$n;const Gn=(t,e,n,i={},s,r)=>o=>{const a=un(i,t)||{},u=a.delay||i.delay||0;let{elapsed:l=0}=i;l-=$(u);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};(function({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:u,elapsed:l,...h}){return!!Object.keys(h).length})(a)||Object.assign(h,_n(t,h)),h.duration&&(h.duration=$(h.duration)),h.repeatDelay&&(h.repeatDelay=$(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if((!1===h.type||0===h.duration&&!h.repeatDelay)&&(en(h),0===h.delay&&(c=!0)),(L.instantAnimations||L.skipAnimations)&&(c=!0,en(h),h.delay=0),h.allowFlatten=!a.type&&!a.ease,c&&!r&&void 0!==e.get()){const t=function(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(zn),r=e&&"loop"!==n&&e%2==1?0:s.length-1;return r&&void 0!==i?i:s[r]}(h.keyframes,a);if(void 0!==t)return void vt.update(()=>{h.onUpdate(t),h.onComplete()})}return a.isSync?new we(h):new rn(h)};function Zn({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,i}function Jn(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r=t.getDefaultTransition(),transitionEnd:o,...a}=e;i&&(r=i);const u=[],l=s&&t.animationState&&t.animationState.getState()[s];for(const e in a){const i=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||l&&Zn(l,e))continue;const o={delay:n,...un(r||{},e)},h=i.get();if(void 0!==h&&!i.isAnimating&&!Array.isArray(s)&&s===h&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){const n=Yn(t);if(n){const t=window.MotionHandoffAnimation(n,e,vt);null!==t&&(o.startTime=t,c=!0)}}Wn(t,e),i.start(Gn(e,i,s,t.shouldReduceMotion&&ln.has(e)?{type:!1}:o,t,c));const d=i.animation;d&&u.push(d)}return o&&Promise.all(u).then(()=>{vt.update(()=>{o&&function(t,e){const n=Ln(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const e in r)Un(t,e,qn(r[e]))}(t,o)})}),u}function Qn(t,e,n,i=0,s=1){const r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*i;return"function"==typeof n?n(r,o):1===s?r*i:a-r*i}function ti(t,e,n={}){const i=Ln(t,e,"exit"===n.type?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const r=i?()=>Promise.all(Jn(t,i,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(i=0)=>{const{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,n=0,i=0,s=0,r=1,o){const a=[];for(const u of t.variantChildren)u.notify("AnimationStart",e),a.push(ti(u,e,{...o,delay:n+("function"==typeof i?0:i)+Qn(t.variantChildren,u,i,s,r)}).then(()=>u.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,i,r,o,a,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}return Promise.all([r(),o(n.delay)])}function ei(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}const ni=A.length;function ii(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&ii(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<ni;n++){const i=A[n],s=t.props[i];(S(s)||!1===s)&&(e[i]=s)}return e}const si=[...M].reverse(),ri=M.length;function oi(t){return e=>Promise.all(e.map(({animation:e,options:n})=>function(t,e,n={}){let i;if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map(e=>ti(t,e,n));i=Promise.all(s)}else if("string"==typeof e)i=ti(t,e,n);else{const s="function"==typeof e?Ln(t,e,n.custom):e;i=Promise.all(Jn(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}(t,e,n)))}function ai(t){let e=oi(t),n=hi(),i=!0;const s=e=>(n,i)=>{const s=Ln(t,i,"exit"===e?t.presenceContext?.custom:void 0);if(s){const{transition:t,transitionEnd:e,...i}=s;n={...n,...i,...e}}return n};function r(r){const{props:o}=t,a=ii(t.parent)||{},u=[],l=new Set;let h={},c=1/0;for(let e=0;e<ri;e++){const d=si[e],p=n[d],m=void 0!==o[d]?o[d]:a[d],f=S(m),y=d===r?p.isActive:null;!1===y&&(c=e);let v=m===a[d]&&m!==o[d]&&f;if(v&&i&&t.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...h},!p.isActive&&null===y||!m&&!p.prevProp||V(m)||"boolean"==typeof m)continue;const g=ui(p.prevProp,m);let w=g||d===r&&p.isActive&&!v&&f||e>c&&f,T=!1;const b=Array.isArray(m)?m:[m];let A=b.reduce(s(d),{});!1===y&&(A={});const{prevResolvedValues:M={}}=p,x={...M,...A},C=e=>{w=!0,l.has(e)&&(T=!0,l.delete(e)),p.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in x){const e=A[t],n=M[t];if(h.hasOwnProperty(t))continue;let i=!1;i=jn(e)&&jn(n)?!ei(e,n):e!==n,i?null!=e?C(t):l.add(t):void 0!==e&&l.has(t)?C(t):p.protectedKeys[t]=!0}p.prevProp=m,p.prevResolvedValues=A,p.isActive&&(h={...h,...A}),i&&t.blockInitialAnimation&&(w=!1);const k=v&&g;w&&(!k||T)&&u.push(...b.map(e=>{const n={type:d};if("string"==typeof e&&i&&!k&&t.manuallyAnimateOnMount&&t.parent){const{parent:i}=t,s=Ln(i,e);if(i.enteringChildren&&s){const{delayChildren:e}=s.transition||{};n.delay=Qn(i.enteringChildren,t,e)}}return{animation:e,options:n}}))}if(l.size){const e={};if("boolean"!=typeof o.initial){const n=Ln(t,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(e.transition=n.transition)}l.forEach(n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=i??null}),u.push({animation:e})}let d=Boolean(u.length);return!i||!1!==o.initial&&o.initial!==o.animate||t.manuallyAnimateOnMount||(d=!1),i=!1,d?e(u):Promise.resolve()}return{animateChanges:r,setActive:function(e,i){if(n[e].isActive===i)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,i)),n[e].isActive=i;const s=r(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=hi()}}}function ui(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ei(e,t)}function li(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hi(){return{animate:li(!0),whileInView:li(),whileHover:li(),whileTap:li(),whileDrag:li(),whileFocus:li(),exit:li()}}class ci{constructor(t){this.isMounted=!1,this.node=t}update(){}}let di=0;const pi={animation:{Feature:class extends ci{constructor(t){super(t),t.animationState||(t.animationState=ai(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();V(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends ci{constructor(){super(...arguments),this.id=di++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then(()=>{e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}}};function mi(t){return{point:{x:t.pageX,y:t.pageY}}}function fi(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover","Start"===n);const s=i["onHover"+n];s&&vt.postRender(()=>s(e,mi(e)))}function yi(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function vi(t,e,n){const{props:i}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap","Start"===n);const s=i["onTap"+("End"===n?"":n)];s&&vt.postRender(()=>s(e,mi(e)))}const gi=new WeakMap,wi=new WeakMap,Ti=t=>{const e=gi.get(t.target);e&&e(t)},bi=t=>{t.forEach(Ti)};function Si(t,e,n){const i=function({root:t,...e}){const n=t||document;wi.has(n)||wi.set(n,{});const i=wi.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(bi,{root:t,...e})),i[s]}(e);return gi.set(t,n),i.observe(t),()=>{gi.delete(t),i.unobserve(t)}}const Ai={some:0,all:1};const Vi={inView:{Feature:class extends ci{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,r={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Ai[i]};return Si(this.node.current,r,t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),r=e?n:i;r&&r(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ci{mount(){const{current:t}=this.node;t&&(this.unmount=Bn(t,(t,e)=>(vi(this.node,e,"Start"),(t,{success:e})=>vi(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ci{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=z(yi(this.node.current,"focus",()=>this.onFocus()),yi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends ci{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e,n={}){const[i,s,r]=Pn(t,n),o=t=>{if(!En(t))return;const{target:n}=t,i=e(n,t);if("function"!=typeof i||!n)return;const r=t=>{En(t)&&(i(t),n.removeEventListener("pointerleave",r))};n.addEventListener("pointerleave",r,s)};return i.forEach(t=>{t.addEventListener("pointerenter",o,s)}),r}(t,(t,e)=>(fi(this.node,e,"Start"),t=>fi(this.node,t,"End"))))}unmount(){}}}};const Mi=()=>({x:{min:0,max:0},y:{min:0,max:0}}),xi={current:null},Ci={current:!1};const ki=new WeakMap;const Pi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ei{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=je,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=At.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,vt.render(this.render,!1,!0))};const{latestValues:a,renderState:u}=r;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=C(e),this.isVariantNode=k(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in h){const e=h[t];void 0!==a[t]&&w(e)&&e.set(a[t])}}mount(t){this.current=t,ki.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),Ci.current||function(){if(Ci.current=!0,x)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>xi.current=t.matches;t.addEventListener("change",e),e()}else xi.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||xi.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),gt(this.notifyUpdate),gt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=b.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&vt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in P){const e=P[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<Pi.length;e++){const n=Pi[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const i=t["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(t,e,n){for(const i in e){const s=e[i],r=n[i];if(w(s))t.addValue(i,s);else if(w(r))t.addValue(i,Vn(s,{owner:t}));else if(r!==s)if(t.hasValue(i)){const e=t.getValue(i);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{const e=t.getStaticValue(i);t.addValue(i,Vn(void 0!==e?e:s,{owner:t}))}}for(const i in n)void 0===e[i]&&t.removeValue(i);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Vn(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){let n=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var i;return null!=n&&("string"==typeof n&&(j(n)||U(n))?n=parseFloat(n):(i=n,!Nn.find(hn(i))&&o.test(e)&&(n=Tn(t,e))),this.setBaseTarget(t,w(n)?n.get():n)),w(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){const{initial:e}=this.props;let n;if("string"==typeof e||"object"==typeof e){const i=g(this.props,e,this.presenceContext?.custom);i&&(n=i[t])}if(e&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||w(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new X),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){Mn.render(this.render)}}class Fi extends Ei{constructor(){super(...arguments),this.KeyframeResolver=Sn}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;w(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function Di(t,{style:e,vars:n},i,s){const r=t.style;let o;for(o in e)r[o]=e[o];for(o in s?.applyProjectionStyles(r,i),n)r.setProperty(o,n[o])}class Oi extends Fi{constructor(){super(...arguments),this.type="html",this.renderInstance=Di}readValueFromInstance(t,e){if(b.has(e))return this.projection?.isProjecting?Ce(e):((t,e)=>{const{transform:n="none"}=getComputedStyle(t);return ke(n,e)})(t,e);{const i=(n=t,window.getComputedStyle(n)),s=(E(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof s?s.trim():s}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return function(t,e){return function({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(t.getBoundingClientRect(),e))}(t,e)}build(t,e,n){F(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return D(t,e,n)}}const Ii=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);class Ri extends Fi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Mi}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(b.has(e)){const t=wn(e);return t&&t.default||0}return e=Ii.has(e)?e:O(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return I(t,e,n)}build(t,e,n){R(t,e,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,e,n,i){!function(t,e,n,i){Di(t,e,void 0,i);for(const n in e.attrs)t.setAttribute(Ii.has(n)?n:O(n),e.attrs[n])}(t,e,0,i)}mount(t){this.isSVGTag=K(t.tagName),super.mount(t)}}const Ki={renderer:(t,e)=>B(t)?new Ri(e):new Oi(e,{allowProjection:t!==N}),...pi,...Vi};export{Ki as domAnimation};
@@ -1 +1 @@
1
- import{createContext as t}from"react";const r=(t,r,a)=>a>r?r:a<t?t:a,a=t({});function e(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function o(t){return"string"==typeof t||Array.isArray(t)}const s=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],n=["initial",...s];function i(t){return e(t.animate)||n.some(r=>o(t[r]))}function f(t){return Boolean(i(t)||t.variants)}const l=t=>r=>"string"==typeof r&&r.startsWith(t),c=l("--"),p=l("var(--"),d=t=>!!p(t)&&u.test(t.split("/*")[0].trim()),u=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,m={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},g={...m,transform:t=>r(0,1,t)},h={...m,default:1},y=t=>({test:r=>"string"==typeof r&&r.endsWith(t)&&1===r.split(" ").length,parse:parseFloat,transform:r=>`${r}${t}`}),w=y("deg"),v=y("%"),b=y("px"),x=y("vh"),k=y("vw"),B=(()=>({...v,parse:t=>v.parse(t)/100,transform:t=>v.transform(100*t)}))(),O=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],X=(()=>new Set(O))(),Y={...m,transform:Math.round},S={borderWidth:b,borderTopWidth:b,borderRightWidth:b,borderBottomWidth:b,borderLeftWidth:b,borderRadius:b,radius:b,borderTopLeftRadius:b,borderTopRightRadius:b,borderBottomRightRadius:b,borderBottomLeftRadius:b,width:b,maxWidth:b,height:b,maxHeight:b,top:b,right:b,bottom:b,left:b,padding:b,paddingTop:b,paddingRight:b,paddingBottom:b,paddingLeft:b,margin:b,marginTop:b,marginRight:b,marginBottom:b,marginLeft:b,backgroundPositionX:b,backgroundPositionY:b,...{rotate:w,rotateX:w,rotateY:w,rotateZ:w,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:w,skewX:w,skewY:w,distance:b,translateX:b,translateY:b,translateZ:b,x:b,y:b,z:b,perspective:b,transformPerspective:b,opacity:g,originX:B,originY:B,originZ:b},zIndex:Y,fillOpacity:g,strokeOpacity:g,numOctaves:Y},$=(t,r)=>r&&"number"==typeof t?r.transform(t):t,L=t=>Boolean(t&&t.getVelocity),P={};function T(t){for(const r in t)P[r]=t[r],c(r)&&(P[r].isCSSVariable=!0)}function W(t,{layout:r,layoutId:a}){return X.has(t)||t.startsWith("origin")||(r||void 0!==a)&&(!!P[t]||"opacity"===t)}const R={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V=O.length;function Z(t,r,a){const{style:e,vars:o,transformOrigin:s}=t;let n=!1,i=!1;for(const t in r){const a=r[t];if(X.has(t))n=!0;else if(c(t))o[t]=a;else{const r=$(a,S[t]);t.startsWith("origin")?(i=!0,s[t]=r):e[t]=r}}if(r.transform||(n||a?e.transform=function(t,r,a){let e="",o=!0;for(let s=0;s<V;s++){const n=O[s],i=t[n];if(void 0===i)continue;let f=!0;if(f="number"==typeof i?i===(n.startsWith("scale")?1:0):0===parseFloat(i),!f||a){const t=$(i,S[n]);f||(o=!1,e+=`${R[n]||n}(${t}) `),a&&(r[n]=t)}}return e=e.trim(),a?e=a(r,o?"":e):o&&(e="none"),e}(r,t.transform,a):e.transform&&(e.transform="none")),i){const{originX:t="50%",originY:r="50%",originZ:a=0}=s;e.transformOrigin=`${t} ${r} ${a}`}}const I={offset:"stroke-dashoffset",array:"stroke-dasharray"},A={offset:"strokeDashoffset",array:"strokeDasharray"};function C(t,{attrX:r,attrY:a,attrScale:e,pathLength:o,pathSpacing:s=1,pathOffset:n=0,...i},f,l,c){if(Z(t,i,l),f)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:d}=t;p.transform&&(d.transform=p.transform,delete p.transform),(d.transform||p.transformOrigin)&&(d.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),d.transform&&(d.transformBox=c?.transformBox??"fill-box",delete p.transformBox),void 0!==r&&(p.x=r),void 0!==a&&(p.y=a),void 0!==e&&(p.scale=e),void 0!==o&&function(t,r,a=1,e=0,o=!0){t.pathLength=1;const s=o?I:A;t[s.offset]=b.transform(-e);const n=b.transform(r),i=b.transform(a);t[s.array]=`${n} ${i}`}(p,o,s,n,!1)}const F=t=>"string"==typeof t&&"svg"===t.toLowerCase(),H=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function z(t){return"string"==typeof t&&!t.includes("-")&&!!(H.indexOf(t)>-1||/[A-Z]/u.test(t))}const E=t(null);function D(t){const r=[{},{}];return t?.values.forEach((t,a)=>{r[0][a]=t.get(),r[1][a]=t.getVelocity()}),r}function j(t,r,a,e){if("function"==typeof r){const[o,s]=D(e);r=r(void 0!==a?a:t.custom,o,s)}if("string"==typeof r&&(r=t.variants&&t.variants[r]),"function"==typeof r){const[o,s]=D(e);r=r(void 0!==a?a:t.custom,o,s)}return r}function q(t){return L(t)?t.get():t}function G(t,r,a){const{style:e}=t,o={};for(const s in e)(L(e[s])||r.style&&L(r.style[s])||W(s,t)||void 0!==a?.getValue(s)?.liveStyle)&&(o[s]=e[s]);return o}function J(t,r,a){const e=G(t,r,a);for(const a in t)if(L(t[a])||L(r[a])){e[-1!==O.indexOf(a)?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a]=t[a]}return e}const M="undefined"!=typeof window,U={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},K={};for(const t in U)K[t]={isEnabled:r=>U[t].some(t=>!!r[t])};function N(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const Q=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_="data-"+Q("framerAppearId"),tt=t({});export{k as A,x as B,S as C,X as D,P as E,c as F,T as G,n as H,s as I,Q as J,a as L,E as P,tt as S,o as a,L as b,W as c,Z as d,C as e,F as f,z as g,f as h,i,e as j,j as k,J as l,N as m,M as n,_ as o,K as p,m as q,q as r,G as s,g as t,r as u,v,d as w,b as x,O as y,w as z};
1
+ import{createContext as t}from"react";const r=(t,r,e)=>e>r?r:e<t?t:e,e=t({});function s(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function a(t){return"string"==typeof t||Array.isArray(t)}const n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],o=["initial",...n];function i(t){return s(t.animate)||o.some(r=>a(t[r]))}function f(t){return Boolean(i(t)||t.variants)}const l=t=>r=>"string"==typeof r&&r.startsWith(t),u=l("--"),p=l("var(--"),c=t=>!!p(t)&&d.test(t.split("/*")[0].trim()),d=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,m={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},g={...m,transform:t=>r(0,1,t)},h={...m,default:1},y=t=>Math.round(1e5*t)/1e5,b=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const v=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,w=(t,r)=>e=>Boolean("string"==typeof e&&v.test(e)&&e.startsWith(t)||r&&!function(t){return null==t}(e)&&Object.prototype.hasOwnProperty.call(e,r)),x=(t,r,e)=>s=>{if("string"!=typeof s)return s;const[a,n,o,i]=s.match(b);return{[t]:parseFloat(a),[r]:parseFloat(n),[e]:parseFloat(o),alpha:void 0!==i?parseFloat(i):1}},R={...m,transform:t=>Math.round((t=>r(0,255,t))(t))},B={test:w("rgb","red"),parse:x("red","green","blue"),transform:({red:t,green:r,blue:e,alpha:s=1})=>"rgba("+R.transform(t)+", "+R.transform(r)+", "+R.transform(e)+", "+y(g.transform(s))+")"};const O={test:w("#"),parse:function(t){let r="",e="",s="",a="";return t.length>5?(r=t.substring(1,3),e=t.substring(3,5),s=t.substring(5,7),a=t.substring(7,9)):(r=t.substring(1,2),e=t.substring(2,3),s=t.substring(3,4),a=t.substring(4,5),r+=r,e+=e,s+=s,a+=a),{red:parseInt(r,16),green:parseInt(e,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}},transform:B.transform},T=t=>({test:r=>"string"==typeof r&&r.endsWith(t)&&1===r.split(" ").length,parse:parseFloat,transform:r=>`${r}${t}`}),$=T("deg"),k=T("%"),L=T("px"),F=T("vh"),P=T("vw"),S=(()=>({...k,parse:t=>k.parse(t)/100,transform:t=>k.transform(100*t)}))(),W={test:w("hsl","hue"),parse:x("hue","saturation","lightness"),transform:({hue:t,saturation:r,lightness:e,alpha:s=1})=>"hsla("+Math.round(t)+", "+k.transform(y(r))+", "+k.transform(y(e))+", "+y(g.transform(s))+")"},X={test:t=>B.test(t)||O.test(t)||W.test(t),parse:t=>B.test(t)?B.parse(t):W.test(t)?W.parse(t):O.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?B.transform(t):W.transform(t),getAnimatableNone:t=>{const r=X.parse(t);return r.alpha=0,X.transform(r)}},Y=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const I="number",A="color",Z=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function V(t){const r=t.toString(),e=[],s={color:[],number:[],var:[]},a=[];let n=0;const o=r.replace(Z,t=>(X.test(t)?(s.color.push(n),a.push(A),e.push(X.parse(t))):t.startsWith("var(")?(s.var.push(n),a.push("var"),e.push(t)):(s.number.push(n),a.push(I),e.push(parseFloat(t))),++n,"${}")).split("${}");return{values:e,split:o,indexes:s,types:a}}function H(t){return V(t).values}function j(t){const{split:r,types:e}=V(t),s=r.length;return t=>{let a="";for(let n=0;n<s;n++)if(a+=r[n],void 0!==t[n]){const r=e[n];a+=r===I?y(t[n]):r===A?X.transform(t[n]):t[n]}return a}}const z=t=>"number"==typeof t?0:X.test(t)?X.getAnimatableNone(t):t;const C={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(b)?.length||0)+(t.match(Y)?.length||0)>0},parse:H,createTransformer:j,getAnimatableNone:function(t){const r=H(t);return j(t)(r.map(z))}},D=(t,r,e)=>t+(r-t)*e,E=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],N=(()=>new Set(E))(),M={...m,transform:Math.round},q={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,backgroundPositionX:L,backgroundPositionY:L,...{rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:$,skewX:$,skewY:$,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:g,originX:S,originY:S,originZ:L},zIndex:M,fillOpacity:g,strokeOpacity:g,numOctaves:M},G=(t,r)=>r&&"number"==typeof t?r.transform(t):t,J=t=>Boolean(t&&t.getVelocity);function K(t,r){return r.max===r.min?0:t/(r.max-r.min)*100}const Q={correct:(t,r)=>{if(!r.target)return t;if("string"==typeof t){if(!L.test(t))return t;t=parseFloat(t)}return`${K(t,r.target.x)}% ${K(t,r.target.y)}%`}},U={correct:(t,{treeScale:r,projectionDelta:e})=>{const s=t,a=C.parse(t);if(a.length>5)return s;const n=C.createTransformer(t),o="number"!=typeof a[0]?1:0,i=e.x.scale*r.x,f=e.y.scale*r.y;a[0+o]/=i,a[1+o]/=f;const l=D(i,f,.5);return"number"==typeof a[2+o]&&(a[2+o]/=l),"number"==typeof a[3+o]&&(a[3+o]/=l),n(a)}},_={borderRadius:{...Q,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomLeftRadius:Q,borderBottomRightRadius:Q,boxShadow:U};function tt(t,{layout:r,layoutId:e}){return N.has(t)||t.startsWith("origin")||(r||void 0!==e)&&(!!_[t]||"opacity"===t)}const rt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},et=E.length;function st(t,r,e){const{style:s,vars:a,transformOrigin:n}=t;let o=!1,i=!1;for(const t in r){const e=r[t];if(N.has(t))o=!0;else if(u(t))a[t]=e;else{const r=G(e,q[t]);t.startsWith("origin")?(i=!0,n[t]=r):s[t]=r}}if(r.transform||(o||e?s.transform=function(t,r,e){let s="",a=!0;for(let n=0;n<et;n++){const o=E[n],i=t[o];if(void 0===i)continue;let f=!0;if(f="number"==typeof i?i===(o.startsWith("scale")?1:0):0===parseFloat(i),!f||e){const t=G(i,q[o]);f||(a=!1,s+=`${rt[o]||o}(${t}) `),e&&(r[o]=t)}}return s=s.trim(),e?s=e(r,a?"":s):a&&(s="none"),s}(r,t.transform,e):s.transform&&(s.transform="none")),i){const{originX:t="50%",originY:r="50%",originZ:e=0}=n;s.transformOrigin=`${t} ${r} ${e}`}}const at={offset:"stroke-dashoffset",array:"stroke-dasharray"},nt={offset:"strokeDashoffset",array:"strokeDasharray"};function ot(t,{attrX:r,attrY:e,attrScale:s,pathLength:a,pathSpacing:n=1,pathOffset:o=0,...i},f,l,u){if(st(t,i,l),f)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:c}=t;p.transform&&(c.transform=p.transform,delete p.transform),(c.transform||p.transformOrigin)&&(c.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete p.transformBox),void 0!==r&&(p.x=r),void 0!==e&&(p.y=e),void 0!==s&&(p.scale=s),void 0!==a&&function(t,r,e=1,s=0,a=!0){t.pathLength=1;const n=a?at:nt;t[n.offset]=L.transform(-s);const o=L.transform(r),i=L.transform(e);t[n.array]=`${o} ${i}`}(p,a,n,o,!1)}const it=t=>"string"==typeof t&&"svg"===t.toLowerCase(),ft=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function lt(t){return"string"==typeof t&&!t.includes("-")&&!!(ft.indexOf(t)>-1||/[A-Z]/u.test(t))}const ut=t(null);function pt(t){const r=[{},{}];return t?.values.forEach((t,e)=>{r[0][e]=t.get(),r[1][e]=t.getVelocity()}),r}function ct(t,r,e,s){if("function"==typeof r){const[a,n]=pt(s);r=r(void 0!==e?e:t.custom,a,n)}if("string"==typeof r&&(r=t.variants&&t.variants[r]),"function"==typeof r){const[a,n]=pt(s);r=r(void 0!==e?e:t.custom,a,n)}return r}function dt(t){return J(t)?t.get():t}function mt(t,r,e){const{style:s}=t,a={};for(const n in s)(J(s[n])||r.style&&J(r.style[n])||tt(n,t)||void 0!==e?.getValue(n)?.liveStyle)&&(a[n]=s[n]);return a}function gt(t,r,e){const s=mt(t,r,e);for(const e in t)if(J(t[e])||J(r[e])){s[-1!==E.indexOf(e)?"attr"+e.charAt(0).toUpperCase()+e.substring(1):e]=t[e]}return s}const ht="undefined"!=typeof window,yt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},bt={};for(const t in yt)bt[t]={isEnabled:r=>yt[t].some(t=>!!r[t])};function vt(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const wt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xt="data-"+wt("framerAppearId"),Rt=t({});export{r as A,m as B,L as C,E as D,k as E,$ as F,P as G,F as H,b as I,q as J,N as K,e as L,_ as M,u as N,o as O,ut as P,n as Q,wt as R,Rt as S,a,J as b,tt as c,st as d,ot as e,it as f,lt as g,f as h,i,s as j,ct as k,gt as l,vt as m,ht as n,xt as o,bt as p,D as q,dt as r,mt as s,B as t,W as u,O as v,c as w,X as x,C as y,V as z};