lawgic-dev-kit 0.2.4 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (683) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/client.js +5 -0
  3. package/dist/_virtual/client2.js +4 -0
  4. package/dist/_virtual/index.js +7 -0
  5. package/dist/_virtual/index2.js +4 -0
  6. package/dist/_virtual/index3.js +5 -0
  7. package/dist/_virtual/index4.js +5 -0
  8. package/dist/_virtual/index5.js +7 -0
  9. package/dist/_virtual/index6.js +4 -0
  10. package/dist/_virtual/index7.js +4 -0
  11. package/dist/_virtual/index8.js +4 -0
  12. package/dist/_virtual/jsx-runtime.js +5 -0
  13. package/dist/_virtual/jsx-runtime2.js +4 -0
  14. package/dist/_virtual/lodash.js +5 -0
  15. package/dist/_virtual/lodash2.js +4 -0
  16. package/dist/_virtual/react-dom-client.development.js +4 -0
  17. package/dist/_virtual/react-dom-client.production.js +4 -0
  18. package/dist/_virtual/react-is.development.js +4 -0
  19. package/dist/_virtual/react-is.production.min.js +4 -0
  20. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  21. package/dist/_virtual/react-jsx-runtime.production.js +4 -0
  22. package/dist/_virtual/scheduler.development.js +4 -0
  23. package/dist/_virtual/scheduler.production.js +4 -0
  24. package/dist/components/atoms/ActionButton/ActionButton.js +51 -0
  25. package/dist/components/atoms/AsyncToast/index.js +33 -0
  26. package/dist/components/atoms/Avatar/Avatar.js +100 -0
  27. package/dist/components/atoms/BoxContainer/BoxContainer.js +18 -0
  28. package/dist/components/atoms/Button/Button.js +25 -0
  29. package/dist/components/atoms/Button/Button.styles.js +43 -0
  30. package/dist/components/atoms/CenterModal/CenterModal.js +79 -0
  31. package/dist/components/atoms/CountrySelectInput/CountryDropdown.js +256 -0
  32. package/dist/components/atoms/Divider/Divider.js +5 -0
  33. package/dist/components/atoms/FullLogo/FullLogo.js +21 -0
  34. package/dist/components/atoms/IconButton/IconButton.js +35 -0
  35. package/dist/components/atoms/IconButton/IconButton.styles.js +34 -0
  36. package/dist/components/atoms/ImageProfileInput/ImageProfileInput.js +115 -0
  37. package/dist/components/atoms/ImageProfileInput/ImageProfileInput.validators.js +8 -0
  38. package/dist/components/atoms/InfoCard/InfoCard.js +17 -0
  39. package/dist/components/atoms/LoadingSpinner/LoadingSpinner.js +20 -0
  40. package/dist/components/atoms/PasswordInput/PasswordInput.js +91 -0
  41. package/dist/components/atoms/ProgressBar/ProgressBar.js +23 -0
  42. package/dist/components/atoms/SearchBar/index.js +44 -0
  43. package/dist/components/atoms/SectionButton/SectionButton.js +10 -0
  44. package/dist/components/atoms/SectionButton/desktop/SectionButton.js +60 -0
  45. package/dist/components/atoms/SectionButton/desktop/SectionButton.styles.js +11 -0
  46. package/dist/components/atoms/SectionButton/mobile/MobileSectionButton.styles.js +19 -0
  47. package/dist/components/atoms/SectionButton/mobile/SectionButton.js +59 -0
  48. package/dist/components/atoms/SelectDropdown/SelectDropdown.js +178 -0
  49. package/dist/components/atoms/Tab/Tab.js +23 -0
  50. package/dist/components/atoms/Tab/Tab.styles.js +15 -0
  51. package/dist/components/atoms/TextButton/TextButton.js +23 -0
  52. package/dist/components/atoms/TextButton/TextButton.styles.js +13 -0
  53. package/dist/components/atoms/TextInput/TextInput.js +81 -0
  54. package/dist/components/atoms/Toast/Toast.js +113 -0
  55. package/dist/components/atoms/UncontrolledSelector/UncontrolledSelector.js +58 -0
  56. package/dist/components/atoms/UncontrolledTextInput/UncontrolledTextInput.js +80 -0
  57. package/dist/components/atoms/UploadContainer/UploadContainer.js +115 -0
  58. package/dist/components/molecules/AlertModal/AlertModal.js +112 -0
  59. package/dist/components/molecules/CalendarSelector/CalendarSelector.js +221 -0
  60. package/dist/components/molecules/CalendarSelector/PeriodToggle.js +51 -0
  61. package/dist/components/molecules/CalendarSelector/TimeDisplay.js +16 -0
  62. package/dist/components/molecules/DateInput/DateInput.js +73 -0
  63. package/dist/components/molecules/DialogModal/DialogModal.js +125 -0
  64. package/dist/components/molecules/Dropdown/Dropdown.js +77 -0
  65. package/dist/components/molecules/FileUpload/FileUpload.js +121 -0
  66. package/dist/components/molecules/FileUpload/FileUpload.types.js +8 -0
  67. package/dist/components/molecules/FloatingMenu/FloatingMenu.js +82 -0
  68. package/dist/components/molecules/SearchModal/SearchModal.js +64 -0
  69. package/dist/components/molecules/Stepper/Stepper.js +225 -0
  70. package/dist/components/molecules/Tabs/Tabs.js +36 -0
  71. package/dist/components/organisms/index.js +4 -0
  72. package/dist/index.d.ts +1 -0
  73. package/dist/index.js +106 -0
  74. package/dist/lawgic-dev-kit.css +1 -0
  75. package/dist/lawgic-dev-kit.umd.js +136 -136
  76. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +428 -0
  77. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +393 -0
  78. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +586 -0
  79. package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +55 -0
  80. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +199 -0
  81. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
  82. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
  83. package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +2661 -0
  84. package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +23 -0
  85. package/dist/node_modules/@fortawesome/pro-light-svg-icons/index.js +73 -0
  86. package/dist/node_modules/@fortawesome/pro-regular-svg-icons/index.js +13 -0
  87. package/dist/node_modules/@fortawesome/pro-solid-svg-icons/index.js +28 -0
  88. package/dist/node_modules/@fortawesome/react-fontawesome/index.es.js +266 -0
  89. package/dist/node_modules/clsx/dist/clsx.js +17 -0
  90. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  91. package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  92. package/dist/node_modules/date-fns/_lib/format/formatters.js +583 -0
  93. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  94. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  95. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  96. package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
  97. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
  98. package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
  99. package/dist/node_modules/date-fns/addMonths.js +20 -0
  100. package/dist/node_modules/date-fns/constants.js +6 -0
  101. package/dist/node_modules/date-fns/constructFrom.js +8 -0
  102. package/dist/node_modules/date-fns/constructNow.js +8 -0
  103. package/dist/node_modules/date-fns/differenceInCalendarDays.js +16 -0
  104. package/dist/node_modules/date-fns/eachDayOfInterval.js +17 -0
  105. package/dist/node_modules/date-fns/endOfMonth.js +9 -0
  106. package/dist/node_modules/date-fns/endOfWeek.js +11 -0
  107. package/dist/node_modules/date-fns/format.js +59 -0
  108. package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
  109. package/dist/node_modules/date-fns/getISOWeek.js +12 -0
  110. package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
  111. package/dist/node_modules/date-fns/getWeek.js +12 -0
  112. package/dist/node_modules/date-fns/getWeekYear.js +17 -0
  113. package/dist/node_modules/date-fns/isDate.js +7 -0
  114. package/dist/node_modules/date-fns/isSameDay.js +14 -0
  115. package/dist/node_modules/date-fns/isSameMonth.js +13 -0
  116. package/dist/node_modules/date-fns/isToday.js +13 -0
  117. package/dist/node_modules/date-fns/isValid.js +9 -0
  118. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  119. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  120. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  121. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  122. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  123. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  124. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  125. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  126. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  127. package/dist/node_modules/date-fns/locale/en-US.js +21 -0
  128. package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +70 -0
  129. package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +33 -0
  130. package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -0
  131. package/dist/node_modules/date-fns/locale/es/_lib/localize.js +143 -0
  132. package/dist/node_modules/date-fns/locale/es/_lib/match.js +116 -0
  133. package/dist/node_modules/date-fns/locale/es.js +21 -0
  134. package/dist/node_modules/date-fns/setHours.js +9 -0
  135. package/dist/node_modules/date-fns/setMinutes.js +9 -0
  136. package/dist/node_modules/date-fns/setSeconds.js +9 -0
  137. package/dist/node_modules/date-fns/startOfDay.js +9 -0
  138. package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
  139. package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  140. package/dist/node_modules/date-fns/startOfMonth.js +9 -0
  141. package/dist/node_modules/date-fns/startOfWeek.js +11 -0
  142. package/dist/node_modules/date-fns/startOfWeekYear.js +13 -0
  143. package/dist/node_modules/date-fns/startOfYear.js +9 -0
  144. package/dist/node_modules/date-fns/subMonths.js +8 -0
  145. package/dist/node_modules/date-fns/toDate.js +8 -0
  146. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +11 -0
  147. package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +205 -0
  148. package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +83 -0
  149. package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
  150. package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
  151. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
  152. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
  153. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +18 -0
  154. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
  155. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +6 -0
  156. package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +37 -0
  157. package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
  158. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
  159. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
  160. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +92 -0
  161. package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
  162. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +47 -0
  163. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +46 -0
  164. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
  165. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
  166. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
  167. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  168. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
  169. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
  170. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
  171. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
  172. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +7 -0
  173. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
  174. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
  175. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
  176. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
  177. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  178. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
  179. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  180. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +5 -0
  181. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  182. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  183. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  184. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  185. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +5 -0
  186. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  187. package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +5 -0
  188. package/dist/node_modules/framer-motion/dist/es/easing/back.js +9 -0
  189. package/dist/node_modules/framer-motion/dist/es/easing/circ.js +8 -0
  190. package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +19 -0
  191. package/dist/node_modules/framer-motion/dist/es/easing/ease.js +7 -0
  192. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
  193. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
  194. package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
  195. package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +32 -0
  196. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +6 -0
  197. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  198. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +15 -0
  199. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
  200. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +19 -0
  201. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +68 -0
  202. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +28 -0
  203. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
  204. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +85 -0
  205. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
  206. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +24 -0
  207. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
  208. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
  209. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +34 -0
  210. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +13 -0
  211. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +27 -0
  212. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
  213. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +21 -0
  214. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +75 -0
  215. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
  216. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +11 -0
  217. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
  218. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  219. package/dist/node_modules/framer-motion/dist/es/motion/index.js +59 -0
  220. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
  221. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  222. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
  223. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +65 -0
  224. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
  225. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
  226. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +33 -0
  227. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
  228. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +14 -0
  229. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
  230. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
  231. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
  232. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
  233. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +34 -0
  234. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  235. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  236. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +608 -0
  237. package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +15 -0
  238. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +59 -0
  239. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
  240. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
  241. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
  242. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +13 -0
  243. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
  244. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
  245. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +13 -0
  246. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +229 -0
  247. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +20 -0
  248. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +18 -0
  249. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +15 -0
  250. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
  251. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
  252. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
  253. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  254. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +18 -0
  255. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
  256. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
  257. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
  258. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
  259. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  260. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
  261. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
  262. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
  263. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
  264. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
  265. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
  266. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
  267. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
  268. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
  269. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
  270. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
  271. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
  272. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
  273. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
  274. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +12 -0
  275. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +27 -0
  276. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
  277. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
  278. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  279. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
  280. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
  281. package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
  282. package/dist/node_modules/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
  283. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +8 -0
  284. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
  285. package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
  286. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +48 -0
  287. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +44 -0
  288. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  289. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +22 -0
  290. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
  291. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  292. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  293. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  294. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
  295. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +18 -0
  296. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +11 -0
  297. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  298. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
  299. package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +77 -0
  300. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +128 -0
  301. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
  302. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +20 -0
  303. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
  304. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
  305. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
  306. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +27 -0
  307. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  308. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
  309. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +19 -0
  310. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
  311. package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +4 -0
  312. package/dist/node_modules/framer-motion/dist/es/utils/delay.js +13 -0
  313. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +9 -0
  314. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +4 -0
  315. package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
  316. package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +41 -0
  317. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  318. package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
  319. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  320. package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
  321. package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +29 -0
  322. package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +52 -0
  323. package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
  324. package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +8 -0
  325. package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +4 -0
  326. package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +8 -0
  327. package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +8 -0
  328. package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +13 -0
  329. package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
  330. package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +4 -0
  331. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
  332. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
  333. package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +6 -0
  334. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +14 -0
  335. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +8 -0
  336. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  337. package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +19 -0
  338. package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +12 -0
  339. package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +11 -0
  340. package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +16 -0
  341. package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +18 -0
  342. package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +24 -0
  343. package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +49 -0
  344. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +17 -0
  345. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +17 -0
  346. package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  347. package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  348. package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  349. package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
  350. package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  351. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
  352. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +7 -0
  353. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
  354. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
  355. package/dist/node_modules/lodash/lodash.js +3677 -0
  356. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animate/single-value.js +10 -0
  357. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +204 -0
  358. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/BaseAnimation.js +82 -0
  359. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +147 -0
  360. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +17 -0
  361. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +12 -0
  362. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/utils/can-animate.js +23 -0
  363. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/index.js +17 -0
  364. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +8 -0
  365. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +5 -0
  366. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/inertia.js +37 -0
  367. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/keyframes.js +30 -0
  368. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/defaults.js +32 -0
  369. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/find.js +52 -0
  370. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/spring/index.js +91 -0
  371. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/generators/utils/velocity.js +9 -0
  372. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/motion-value.js +46 -0
  373. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-target.js +45 -0
  374. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +33 -0
  375. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/interfaces/visual-element.js +22 -0
  376. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/data-id.js +6 -0
  377. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +7 -0
  378. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/default-transitions.js +22 -0
  379. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-animatable.js +7 -0
  380. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-animation-controls.js +6 -0
  381. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-keyframes-target.js +4 -0
  382. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-none.js +7 -0
  383. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/animation/utils/is-transition-defined.js +6 -0
  384. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PopChild.js +53 -0
  385. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +41 -0
  386. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/index.js +45 -0
  387. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/use-presence.js +17 -0
  388. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/components/AnimatePresence/utils.js +12 -0
  389. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LayoutGroupContext.js +5 -0
  390. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/LazyContext.js +5 -0
  391. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionConfigContext.js +9 -0
  392. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/create.js +13 -0
  393. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/index.js +5 -0
  394. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/MotionContext/utils.js +15 -0
  395. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/PresenceContext.js +5 -0
  396. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +5 -0
  397. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/anticipate.js +5 -0
  398. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/back.js +9 -0
  399. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/circ.js +8 -0
  400. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/cubic-bezier.js +18 -0
  401. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/ease.js +7 -0
  402. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/modifiers/mirror.js +4 -0
  403. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/modifiers/reverse.js +4 -0
  404. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/utils/is-easing-array.js +4 -0
  405. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/easing/utils/map.js +32 -0
  406. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/add-dom-event.js +6 -0
  407. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/add-pointer-event.js +8 -0
  408. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/events/event-info.js +14 -0
  409. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +256 -0
  410. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/index.js +18 -0
  411. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/drag/utils/constraints.js +67 -0
  412. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/focus.js +28 -0
  413. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/hover.js +21 -0
  414. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/pan/PanSession.js +84 -0
  415. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/pan/index.js +43 -0
  416. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/gestures/press.js +23 -0
  417. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/Feature.js +10 -0
  418. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animation/exit.js +27 -0
  419. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animation/index.js +34 -0
  420. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/animations.js +13 -0
  421. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/definitions.js +27 -0
  422. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/drag.js +17 -0
  423. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/gestures.js +21 -0
  424. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +74 -0
  425. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/layout.js +11 -0
  426. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/load-features.js +11 -0
  427. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/viewport/index.js +44 -0
  428. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/features/viewport/observers.js +21 -0
  429. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/index.js +59 -0
  430. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +8 -0
  431. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  432. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-motion-ref.js +18 -0
  433. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-visual-element.js +64 -0
  434. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/use-visual-state.js +53 -0
  435. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/motion/utils/valid-prop.js +38 -0
  436. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/animation/mix-values.js +32 -0
  437. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/conversion.js +25 -0
  438. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/copy.js +14 -0
  439. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-apply.js +52 -0
  440. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-calc.js +36 -0
  441. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/delta-remove.js +25 -0
  442. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/models.js +18 -0
  443. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/geometry/utils.js +34 -0
  444. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +13 -0
  445. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +25 -0
  446. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/create-projection-node.js +607 -0
  447. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/state.js +15 -0
  448. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/shared/stack.js +58 -0
  449. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-border-radius.js +21 -0
  450. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-box-shadow.js +16 -0
  451. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/scale-correction.js +10 -0
  452. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/styles/transform.js +13 -0
  453. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
  454. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/has-transform.js +20 -0
  455. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/projection/utils/measure.js +13 -0
  456. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/VisualElement.js +228 -0
  457. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/create-factory.js +20 -0
  458. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/create-proxy.js +17 -0
  459. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/create.js +15 -0
  460. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/components/motion/proxy.js +6 -0
  461. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +66 -0
  462. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/DOMVisualElement.js +27 -0
  463. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
  464. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/use-render.js +18 -0
  465. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +4 -0
  466. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +31 -0
  467. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/filter-props.js +20 -0
  468. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-css-variable.js +5 -0
  469. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-component.js +24 -0
  470. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
  471. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/utils/unit-conversion.js +31 -0
  472. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/animatable-none.js +10 -0
  473. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/defaults.js +24 -0
  474. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/dimensions.js +9 -0
  475. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/find.js +8 -0
  476. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/get-as-type.js +4 -0
  477. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/number-browser.js +41 -0
  478. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/number.js +18 -0
  479. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/test.js +4 -0
  480. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/transform.js +31 -0
  481. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-auto.js +7 -0
  482. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/dom/value-types/type-int.js +8 -0
  483. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/HTMLVisualElement.js +37 -0
  484. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/config-motion.js +12 -0
  485. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/use-props.js +27 -0
  486. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/build-styles.js +29 -0
  487. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/build-transform.js +31 -0
  488. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  489. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-position.js +13 -0
  490. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/keys-transform.js +23 -0
  491. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/make-none-animatable.js +16 -0
  492. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/parse-transform.js +64 -0
  493. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/render.js +8 -0
  494. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +12 -0
  495. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/store.js +4 -0
  496. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/SVGVisualElement.js +47 -0
  497. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/config-motion.js +43 -0
  498. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/lowercase-elements.js +30 -0
  499. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/use-props.js +22 -0
  500. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/build-attrs.js +26 -0
  501. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +28 -0
  502. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/create-render-state.js +8 -0
  503. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  504. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/measure.js +15 -0
  505. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/path.js +18 -0
  506. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/render.js +11 -0
  507. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +15 -0
  508. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/svg/utils/transform-origin.js +11 -0
  509. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/KeyframesResolver.js +76 -0
  510. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/animation-state.js +128 -0
  511. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
  512. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/flat-tree.js +19 -0
  513. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/get-variant-context.js +20 -0
  514. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/is-controlling-variants.js +13 -0
  515. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/is-variant-label.js +6 -0
  516. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/motion-values.js +26 -0
  517. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +8 -0
  518. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/resolve-variants.js +20 -0
  519. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/setters.js +18 -0
  520. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/render/utils/variant-props.js +13 -0
  521. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/clamp.js +4 -0
  522. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/delay.js +12 -0
  523. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/distance.js +9 -0
  524. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/get-context-window.js +4 -0
  525. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/hsla-to-rgba.js +22 -0
  526. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/interpolate.js +41 -0
  527. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-browser.js +4 -0
  528. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-numerical-string.js +4 -0
  529. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-ref-object.js +6 -0
  530. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/is-zero-value-string.js +4 -0
  531. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/color.js +29 -0
  532. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/complex.js +52 -0
  533. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/immediate.js +6 -0
  534. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/index.js +8 -0
  535. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/number.js +4 -0
  536. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/mix/visibility.js +8 -0
  537. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/default.js +8 -0
  538. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/fill.js +12 -0
  539. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/offsets/time.js +6 -0
  540. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/pipe.js +4 -0
  541. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/reduced-motion/index.js +13 -0
  542. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/reduced-motion/state.js +5 -0
  543. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/resolve-value.js +6 -0
  544. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/shallow-compare.js +14 -0
  545. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-constant.js +8 -0
  546. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-isomorphic-effect.js +6 -0
  547. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hex.js +19 -0
  548. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/hsla.js +12 -0
  549. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/index.js +11 -0
  550. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/rgba.js +16 -0
  551. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/color/utils.js +18 -0
  552. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/filter.js +24 -0
  553. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/complex/index.js +49 -0
  554. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/index.js +17 -0
  555. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/numbers/units.js +17 -0
  556. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  557. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  558. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  559. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/sanitize.js +4 -0
  560. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  561. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/use-will-change/add-will-change.js +9 -0
  562. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/use-will-change/is.js +7 -0
  563. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
  564. package/dist/node_modules/motion/dist/es/framer-motion/dist/es/value/utils/resolve-motion-value.js +9 -0
  565. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
  566. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/controls/Group.js +9 -0
  567. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  568. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  569. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
  570. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
  571. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
  572. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/animation/waapi/utils/linear.js +11 -0
  573. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/batcher.js +26 -0
  574. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/frame.js +9 -0
  575. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/microtask.js +5 -0
  576. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/order.js +17 -0
  577. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/render-step.js +42 -0
  578. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/frameloop/sync-time.js +15 -0
  579. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  580. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  581. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/hover.js +24 -0
  582. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/index.js +32 -0
  583. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
  584. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  585. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  586. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  587. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  588. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  589. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/stats/buffer.js +6 -0
  590. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
  591. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/resolve-elements.js +14 -0
  592. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/flags.js +6 -0
  593. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  594. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/memo.js +12 -0
  595. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/utils/supports/scroll-timeline.js +5 -0
  596. package/dist/node_modules/motion/dist/es/motion-dom/dist/es/value/index.js +201 -0
  597. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/array.js +11 -0
  598. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/errors.js +12 -0
  599. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/global-config.js +6 -0
  600. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/memo.js +8 -0
  601. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/noop.js +4 -0
  602. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/progress.js +7 -0
  603. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/subscription-manager.js +29 -0
  604. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/time-conversion.js +5 -0
  605. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/velocity-per-second.js +6 -0
  606. package/dist/node_modules/motion/dist/es/motion-utils/dist/es/warn-once.js +7 -0
  607. package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +74 -0
  608. package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +9 -0
  609. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +13 -0
  610. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  611. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +6 -0
  612. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +6 -0
  613. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +27 -0
  614. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +12 -0
  615. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +27 -0
  616. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +10 -0
  617. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +5 -0
  618. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +17 -0
  619. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +42 -0
  620. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +16 -0
  621. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +11 -0
  622. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +11 -0
  623. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +24 -0
  624. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +32 -0
  625. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +13 -0
  626. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +27 -0
  627. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  628. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +4 -0
  629. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +4 -0
  630. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +12 -0
  631. package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +6 -0
  632. package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
  633. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +14 -0
  634. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
  635. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +12 -0
  636. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +13 -0
  637. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +6 -0
  638. package/dist/node_modules/motion-dom/dist/es/value/index.js +202 -0
  639. package/dist/node_modules/motion-utils/dist/es/array.js +11 -0
  640. package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
  641. package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
  642. package/dist/node_modules/motion-utils/dist/es/memo.js +8 -0
  643. package/dist/node_modules/motion-utils/dist/es/noop.js +4 -0
  644. package/dist/node_modules/motion-utils/dist/es/progress.js +7 -0
  645. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +29 -0
  646. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +5 -0
  647. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
  648. package/dist/node_modules/motion-utils/dist/es/warn-once.js +7 -0
  649. package/dist/node_modules/object-assign/index.js +54 -0
  650. package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
  651. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  652. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  653. package/dist/node_modules/prop-types/index.js +17 -0
  654. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  655. package/dist/node_modules/prop-types/lib/has.js +7 -0
  656. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
  657. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
  658. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  659. package/dist/node_modules/property-expr/index.js +82 -0
  660. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +247 -0
  661. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +35 -0
  662. package/dist/node_modules/react/jsx-runtime.js +10 -0
  663. package/dist/node_modules/react-dom/cjs/react-dom-client.development.js +15314 -0
  664. package/dist/node_modules/react-dom/cjs/react-dom-client.production.js +9408 -0
  665. package/dist/node_modules/react-dom/client.js +23 -0
  666. package/dist/node_modules/react-hook-form/dist/index.esm.js +203 -0
  667. package/dist/node_modules/scheduler/cjs/scheduler.development.js +236 -0
  668. package/dist/node_modules/scheduler/cjs/scheduler.production.js +233 -0
  669. package/dist/node_modules/scheduler/index.js +10 -0
  670. package/dist/node_modules/tiny-case/index.js +22 -0
  671. package/dist/node_modules/toposort/index.js +66 -0
  672. package/dist/node_modules/yup/index.esm.js +1359 -0
  673. package/dist/providers/ThemeProvider.js +19 -0
  674. package/dist/themes/default.js +9 -0
  675. package/dist/utils/dates.js +14 -0
  676. package/dist/utils/files.js +29 -0
  677. package/dist/utils/images.js +4 -0
  678. package/dist/utils/modal.js +87 -0
  679. package/dist/utils/renderContentOptions.js +15 -0
  680. package/dist/utils/strings.js +16 -0
  681. package/dist/utils/toast.js +114 -0
  682. package/package.json +15 -14
  683. package/dist/lawgic-dev-kit.es.js +0 -50777
@@ -0,0 +1,607 @@
1
+ import { noop as at } from "../../../../../motion-utils/dist/es/noop.js";
2
+ import { SubscriptionManager as rt } from "../../../../../motion-utils/dist/es/subscription-manager.js";
3
+ import { getValueTransition as nt } from "../../../../../motion-dom/dist/es/animation/utils/get-value-transition.js";
4
+ import { cancelFrame as M, frameData as g, frameSteps as C, frame as U } from "../../../../../motion-dom/dist/es/frameloop/frame.js";
5
+ import { microtask as lt } from "../../../../../motion-dom/dist/es/frameloop/microtask.js";
6
+ import { time as ht } from "../../../../../motion-dom/dist/es/frameloop/sync-time.js";
7
+ import { animateSingleValue as ut } from "../../animation/animate/single-value.js";
8
+ import { getOptimisedAppearId as ct } from "../../animation/optimized-appear/get-appear-id.js";
9
+ import { isSVGElement as dt } from "../../render/dom/utils/is-svg-element.js";
10
+ import { FlatTree as ft } from "../../render/utils/flat-tree.js";
11
+ import { clamp as mt } from "../../utils/clamp.js";
12
+ import { delay as pt } from "../../utils/delay.js";
13
+ import { mixNumber as w } from "../../utils/mix/number.js";
14
+ import { resolveMotionValue as F } from "../../value/utils/resolve-motion-value.js";
15
+ import { mixValues as yt } from "../animation/mix-values.js";
16
+ import { copyBoxInto as y, copyAxisDeltaInto as z } from "../geometry/copy.js";
17
+ import { translateAxis as L, transformBox as E, applyBoxDelta as gt, applyTreeDeltas as vt } from "../geometry/delta-apply.js";
18
+ import { calcLength as B, calcRelativePosition as V, calcRelativeBox as Tt, calcBoxDelta as k, isNear as xt } from "../geometry/delta-calc.js";
19
+ import { removeBoxTransforms as N } from "../geometry/delta-remove.js";
20
+ import { createBox as f, createDelta as A } from "../geometry/models.js";
21
+ import { boxEqualsRounded as et, isDeltaZero as it, axisDeltaEquals as _, boxEquals as Dt, aspectRatio as W } from "../geometry/utils.js";
22
+ import { NodeStack as St } from "../shared/stack.js";
23
+ import { scaleCorrectors as H } from "../styles/scale-correction.js";
24
+ import { buildProjectionTransform as Pt } from "../styles/transform.js";
25
+ import { eachAxis as q } from "../utils/each-axis.js";
26
+ import { hasTransform as P, hasScale as G, has2DTranslate as Bt } from "../utils/has-transform.js";
27
+ import { globalProjectionState as O } from "./state.js";
28
+ const b = ["", "X", "Y", "Z"], At = { visibility: "hidden" }, X = 1e3;
29
+ let jt = 0;
30
+ function I(e, l, h, c) {
31
+ const { latestValues: v } = l;
32
+ v[e] && (h[e] = v[e], l.setStaticValue(e, 0), c && (c[e] = 0));
33
+ }
34
+ function st(e) {
35
+ if (e.hasCheckedOptimisedAppear = !0, e.root === e)
36
+ return;
37
+ const { visualElement: l } = e.options;
38
+ if (!l)
39
+ return;
40
+ const h = ct(l);
41
+ if (window.MotionHasOptimisedAnimation(h, "transform")) {
42
+ const { layout: v, layoutId: j } = e.options;
43
+ window.MotionCancelOptimisedAnimation(h, "transform", U, !(v || j));
44
+ }
45
+ const { parent: c } = e;
46
+ c && !c.hasCheckedOptimisedAppear && st(c);
47
+ }
48
+ function ge({ attachResizeListener: e, defaultParent: l, measureScroll: h, checkIsScrollRoot: c, resetTransform: v }) {
49
+ return class {
50
+ constructor(t = {}, i = l == null ? void 0 : l()) {
51
+ this.id = jt++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
52
+ this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
53
+ }, this.updateProjection = () => {
54
+ this.projectionUpdateScheduled = !1, this.nodes.forEach(kt), this.nodes.forEach(Ct), this.nodes.forEach(Ft), this.nodes.forEach(Lt);
55
+ }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = t, this.root = i ? i.root || i : this, this.path = i ? [...i.path, i] : [], this.parent = i, this.depth = i ? i.depth + 1 : 0;
56
+ for (let s = 0; s < this.path.length; s++)
57
+ this.path[s].shouldResetTransform = !0;
58
+ this.root === this && (this.nodes = new ft());
59
+ }
60
+ addEventListener(t, i) {
61
+ return this.eventHandlers.has(t) || this.eventHandlers.set(t, new rt()), this.eventHandlers.get(t).add(i);
62
+ }
63
+ notifyListeners(t, ...i) {
64
+ const s = this.eventHandlers.get(t);
65
+ s && s.notify(...i);
66
+ }
67
+ hasListeners(t) {
68
+ return this.eventHandlers.has(t);
69
+ }
70
+ /**
71
+ * Lifecycles
72
+ */
73
+ mount(t, i = this.root.hasTreeAnimated) {
74
+ if (this.instance)
75
+ return;
76
+ this.isSVG = dt(t), this.instance = t;
77
+ const { layoutId: s, layout: o, visualElement: a } = this.options;
78
+ if (a && !a.current && a.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), i && (o || s) && (this.isLayoutDirty = !0), e) {
79
+ let r;
80
+ const n = () => this.root.updateBlockedByResize = !1;
81
+ e(t, () => {
82
+ this.root.updateBlockedByResize = !0, r && r(), r = pt(n, 250), O.hasAnimatedSinceResize && (O.hasAnimatedSinceResize = !1, this.nodes.forEach($));
83
+ });
84
+ }
85
+ s && this.root.registerSharedNode(s, this), this.options.animate !== !1 && a && (s || o) && this.addEventListener("didUpdate", ({ delta: r, hasLayoutChanged: n, hasRelativeLayoutChanged: u, layout: m }) => {
86
+ if (this.isTreeAnimationBlocked()) {
87
+ this.target = void 0, this.relativeTarget = void 0;
88
+ return;
89
+ }
90
+ const d = this.options.transition || a.getDefaultTransition() || zt, { onLayoutAnimationStart: S, onLayoutAnimationComplete: x } = a.getProps(), R = !this.targetLayout || !et(this.targetLayout, m), p = !n && u;
91
+ if (this.options.layoutRoot || this.resumeFrom || p || n && (R || !this.currentAnimation)) {
92
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(r, p);
93
+ const D = {
94
+ ...nt(d, "layout"),
95
+ onPlay: S,
96
+ onComplete: x
97
+ };
98
+ (a.shouldReduceMotion || this.options.layoutRoot) && (D.delay = 0, D.type = !1), this.startAnimation(D);
99
+ } else
100
+ n || $(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
101
+ this.targetLayout = m;
102
+ });
103
+ }
104
+ unmount() {
105
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
106
+ const t = this.getStack();
107
+ t && t.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, M(this.updateProjection);
108
+ }
109
+ // only on the root
110
+ blockUpdate() {
111
+ this.updateManuallyBlocked = !0;
112
+ }
113
+ unblockUpdate() {
114
+ this.updateManuallyBlocked = !1;
115
+ }
116
+ isUpdateBlocked() {
117
+ return this.updateManuallyBlocked || this.updateBlockedByResize;
118
+ }
119
+ isTreeAnimationBlocked() {
120
+ return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
121
+ }
122
+ // Note: currently only running on root node
123
+ startUpdate() {
124
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Ot), this.animationId++);
125
+ }
126
+ getTransformTemplate() {
127
+ const { visualElement: t } = this.options;
128
+ return t && t.getProps().transformTemplate;
129
+ }
130
+ willUpdate(t = !0) {
131
+ if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
132
+ this.options.onExitComplete && this.options.onExitComplete();
133
+ return;
134
+ }
135
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && st(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
136
+ return;
137
+ this.isLayoutDirty = !0;
138
+ for (let a = 0; a < this.path.length; a++) {
139
+ const r = this.path[a];
140
+ r.shouldResetTransform = !0, r.updateScroll("snapshot"), r.options.layoutRoot && r.willUpdate(!1);
141
+ }
142
+ const { layoutId: i, layout: s } = this.options;
143
+ if (i === void 0 && !s)
144
+ return;
145
+ const o = this.getTransformTemplate();
146
+ this.prevTransformTemplateValue = o ? o(this.latestValues, "") : void 0, this.updateSnapshot(), t && this.notifyListeners("willUpdate");
147
+ }
148
+ update() {
149
+ if (this.updateScheduled = !1, this.isUpdateBlocked()) {
150
+ this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Y);
151
+ return;
152
+ }
153
+ this.isUpdating || this.nodes.forEach(Ut), this.isUpdating = !1, this.nodes.forEach(wt), this.nodes.forEach(Rt), this.nodes.forEach(Vt), this.clearAllSnapshots();
154
+ const i = ht.now();
155
+ g.delta = mt(0, 1e3 / 60, i - g.timestamp), g.timestamp = i, g.isProcessing = !0, C.update.process(g), C.preRender.process(g), C.render.process(g), g.isProcessing = !1;
156
+ }
157
+ didUpdate() {
158
+ this.updateScheduled || (this.updateScheduled = !0, lt.read(this.scheduleUpdate));
159
+ }
160
+ clearAllSnapshots() {
161
+ this.nodes.forEach(Et), this.sharedNodes.forEach(bt);
162
+ }
163
+ scheduleUpdateProjection() {
164
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, U.preRender(this.updateProjection, !1, !0));
165
+ }
166
+ scheduleCheckAfterUnmount() {
167
+ U.postRender(() => {
168
+ this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
169
+ });
170
+ }
171
+ /**
172
+ * Update measurements
173
+ */
174
+ updateSnapshot() {
175
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !B(this.snapshot.measuredBox.x) && !B(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
176
+ }
177
+ updateLayout() {
178
+ if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty))
179
+ return;
180
+ if (this.resumeFrom && !this.resumeFrom.instance)
181
+ for (let s = 0; s < this.path.length; s++)
182
+ this.path[s].updateScroll();
183
+ const t = this.layout;
184
+ this.layout = this.measure(!1), this.layoutCorrected = f(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
185
+ const { visualElement: i } = this.options;
186
+ i && i.notify("LayoutMeasure", this.layout.layoutBox, t ? t.layoutBox : void 0);
187
+ }
188
+ updateScroll(t = "measure") {
189
+ let i = !!(this.options.layoutScroll && this.instance);
190
+ if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === t && (i = !1), i) {
191
+ const s = c(this.instance);
192
+ this.scroll = {
193
+ animationId: this.root.animationId,
194
+ phase: t,
195
+ isRoot: s,
196
+ offset: h(this.instance),
197
+ wasRoot: this.scroll ? this.scroll.isRoot : s
198
+ };
199
+ }
200
+ }
201
+ resetTransform() {
202
+ if (!v)
203
+ return;
204
+ const t = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, i = this.projectionDelta && !it(this.projectionDelta), s = this.getTransformTemplate(), o = s ? s(this.latestValues, "") : void 0, a = o !== this.prevTransformTemplateValue;
205
+ t && (i || P(this.latestValues) || a) && (v(this.instance, o), this.shouldResetTransform = !1, this.scheduleRender());
206
+ }
207
+ measure(t = !0) {
208
+ const i = this.measurePageBox();
209
+ let s = this.removeElementScroll(i);
210
+ return t && (s = this.removeTransform(s)), Nt(s), {
211
+ animationId: this.root.animationId,
212
+ measuredBox: i,
213
+ layoutBox: s,
214
+ latestValues: {},
215
+ source: this.id
216
+ };
217
+ }
218
+ measurePageBox() {
219
+ var t;
220
+ const { visualElement: i } = this.options;
221
+ if (!i)
222
+ return f();
223
+ const s = i.measureViewportBox();
224
+ if (!(((t = this.scroll) === null || t === void 0 ? void 0 : t.wasRoot) || this.path.some(_t))) {
225
+ const { scroll: a } = this.root;
226
+ a && (L(s.x, a.offset.x), L(s.y, a.offset.y));
227
+ }
228
+ return s;
229
+ }
230
+ removeElementScroll(t) {
231
+ var i;
232
+ const s = f();
233
+ if (y(s, t), !((i = this.scroll) === null || i === void 0) && i.wasRoot)
234
+ return s;
235
+ for (let o = 0; o < this.path.length; o++) {
236
+ const a = this.path[o], { scroll: r, options: n } = a;
237
+ a !== this.root && r && n.layoutScroll && (r.wasRoot && y(s, t), L(s.x, r.offset.x), L(s.y, r.offset.y));
238
+ }
239
+ return s;
240
+ }
241
+ applyTransform(t, i = !1) {
242
+ const s = f();
243
+ y(s, t);
244
+ for (let o = 0; o < this.path.length; o++) {
245
+ const a = this.path[o];
246
+ !i && a.options.layoutScroll && a.scroll && a !== a.root && E(s, {
247
+ x: -a.scroll.offset.x,
248
+ y: -a.scroll.offset.y
249
+ }), P(a.latestValues) && E(s, a.latestValues);
250
+ }
251
+ return P(this.latestValues) && E(s, this.latestValues), s;
252
+ }
253
+ removeTransform(t) {
254
+ const i = f();
255
+ y(i, t);
256
+ for (let s = 0; s < this.path.length; s++) {
257
+ const o = this.path[s];
258
+ if (!o.instance || !P(o.latestValues))
259
+ continue;
260
+ G(o.latestValues) && o.updateSnapshot();
261
+ const a = f(), r = o.measurePageBox();
262
+ y(a, r), N(i, o.latestValues, o.snapshot ? o.snapshot.layoutBox : void 0, a);
263
+ }
264
+ return P(this.latestValues) && N(i, this.latestValues), i;
265
+ }
266
+ setTargetDelta(t) {
267
+ this.targetDelta = t, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
268
+ }
269
+ setOptions(t) {
270
+ this.options = {
271
+ ...this.options,
272
+ ...t,
273
+ crossfade: t.crossfade !== void 0 ? t.crossfade : !0
274
+ };
275
+ }
276
+ clearMeasurements() {
277
+ this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
278
+ }
279
+ forceRelativeParentToResolveTarget() {
280
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== g.timestamp && this.relativeParent.resolveTargetDelta(!0);
281
+ }
282
+ resolveTargetDelta(t = !1) {
283
+ var i;
284
+ const s = this.getLead();
285
+ this.isProjectionDirty || (this.isProjectionDirty = s.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = s.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = s.isSharedProjectionDirty);
286
+ const o = !!this.resumingFrom || this !== s;
287
+ if (!(t || o && this.isSharedProjectionDirty || this.isProjectionDirty || !((i = this.parent) === null || i === void 0) && i.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize))
288
+ return;
289
+ const { layout: r, layoutId: n } = this.options;
290
+ if (!(!this.layout || !(r || n))) {
291
+ if (this.resolvedRelativeTargetAt = g.timestamp, !this.targetDelta && !this.relativeTarget) {
292
+ const u = this.getClosestProjectingParent();
293
+ u && u.layout && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), V(this.relativeTargetOrigin, this.layout.layoutBox, u.layout.layoutBox), y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
294
+ }
295
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = f(), this.targetWithTransforms = f()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Tt(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : y(this.target, this.layout.layoutBox), gt(this.target, this.targetDelta)) : y(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
296
+ this.attemptToResolveRelativeTarget = !1;
297
+ const u = this.getClosestProjectingParent();
298
+ u && !!u.resumingFrom == !!this.resumingFrom && !u.options.layoutScroll && u.target && this.animationProgress !== 1 ? (this.relativeParent = u, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), V(this.relativeTargetOrigin, this.target, u.target), y(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
299
+ }
300
+ }
301
+ }
302
+ getClosestProjectingParent() {
303
+ if (!(!this.parent || G(this.parent.latestValues) || Bt(this.parent.latestValues)))
304
+ return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
305
+ }
306
+ isProjecting() {
307
+ return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
308
+ }
309
+ calcProjection() {
310
+ var t;
311
+ const i = this.getLead(), s = !!this.resumingFrom || this !== i;
312
+ let o = !0;
313
+ if ((this.isProjectionDirty || !((t = this.parent) === null || t === void 0) && t.isProjectionDirty) && (o = !1), s && (this.isSharedProjectionDirty || this.isTransformDirty) && (o = !1), this.resolvedRelativeTargetAt === g.timestamp && (o = !1), o)
314
+ return;
315
+ const { layout: a, layoutId: r } = this.options;
316
+ if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(a || r))
317
+ return;
318
+ y(this.layoutCorrected, this.layout.layoutBox);
319
+ const n = this.treeScale.x, u = this.treeScale.y;
320
+ vt(this.layoutCorrected, this.treeScale, this.path, s), i.layout && !i.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (i.target = i.layout.layoutBox, i.targetWithTransforms = f());
321
+ const { target: m } = i;
322
+ if (!m) {
323
+ this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
324
+ return;
325
+ }
326
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (z(this.prevProjectionDelta.x, this.projectionDelta.x), z(this.prevProjectionDelta.y, this.projectionDelta.y)), k(this.projectionDelta, this.layoutCorrected, m, this.latestValues), (this.treeScale.x !== n || this.treeScale.y !== u || !_(this.projectionDelta.x, this.prevProjectionDelta.x) || !_(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", m));
327
+ }
328
+ hide() {
329
+ this.isVisible = !1;
330
+ }
331
+ show() {
332
+ this.isVisible = !0;
333
+ }
334
+ scheduleRender(t = !0) {
335
+ var i;
336
+ if ((i = this.options.visualElement) === null || i === void 0 || i.scheduleRender(), t) {
337
+ const s = this.getStack();
338
+ s && s.scheduleRender();
339
+ }
340
+ this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
341
+ }
342
+ createProjectionDeltas() {
343
+ this.prevProjectionDelta = A(), this.projectionDelta = A(), this.projectionDeltaWithTransform = A();
344
+ }
345
+ setAnimationOrigin(t, i = !1) {
346
+ const s = this.snapshot, o = s ? s.latestValues : {}, a = { ...this.latestValues }, r = A();
347
+ (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !i;
348
+ const n = f(), u = s ? s.source : void 0, m = this.layout ? this.layout.source : void 0, d = u !== m, S = this.getStack(), x = !S || S.members.length <= 1, R = !!(d && !x && this.options.crossfade === !0 && !this.path.some(Mt));
349
+ this.animationProgress = 0;
350
+ let p;
351
+ this.mixTargetDelta = (D) => {
352
+ const T = D / 1e3;
353
+ Z(r.x, t.x, T), Z(r.y, t.y, T), this.setTargetDelta(r), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (V(n, this.layout.layoutBox, this.relativeParent.layout.layoutBox), It(this.relativeTarget, this.relativeTargetOrigin, n, T), p && Dt(this.relativeTarget, p) && (this.isProjectionDirty = !1), p || (p = f()), y(p, this.relativeTarget)), d && (this.animationValues = a, yt(a, o, this.latestValues, T, R, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = T;
354
+ }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
355
+ }
356
+ startAnimation(t) {
357
+ this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (M(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = U.update(() => {
358
+ O.hasAnimatedSinceResize = !0, this.currentAnimation = ut(0, X, {
359
+ ...t,
360
+ onUpdate: (i) => {
361
+ this.mixTargetDelta(i), t.onUpdate && t.onUpdate(i);
362
+ },
363
+ onStop: () => {
364
+ },
365
+ onComplete: () => {
366
+ t.onComplete && t.onComplete(), this.completeAnimation();
367
+ }
368
+ }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
369
+ });
370
+ }
371
+ completeAnimation() {
372
+ this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
373
+ const t = this.getStack();
374
+ t && t.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
375
+ }
376
+ finishAnimation() {
377
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(X), this.currentAnimation.stop()), this.completeAnimation();
378
+ }
379
+ applyTransformsToTarget() {
380
+ const t = this.getLead();
381
+ let { targetWithTransforms: i, target: s, layout: o, latestValues: a } = t;
382
+ if (!(!i || !s || !o)) {
383
+ if (this !== t && this.layout && o && ot(this.options.animationType, this.layout.layoutBox, o.layoutBox)) {
384
+ s = this.target || f();
385
+ const r = B(this.layout.layoutBox.x);
386
+ s.x.min = t.target.x.min, s.x.max = s.x.min + r;
387
+ const n = B(this.layout.layoutBox.y);
388
+ s.y.min = t.target.y.min, s.y.max = s.y.min + n;
389
+ }
390
+ y(i, s), E(i, a), k(this.projectionDeltaWithTransform, this.layoutCorrected, i, a);
391
+ }
392
+ }
393
+ registerSharedNode(t, i) {
394
+ this.sharedNodes.has(t) || this.sharedNodes.set(t, new St()), this.sharedNodes.get(t).add(i);
395
+ const o = i.options.initialPromotionConfig;
396
+ i.promote({
397
+ transition: o ? o.transition : void 0,
398
+ preserveFollowOpacity: o && o.shouldPreserveFollowOpacity ? o.shouldPreserveFollowOpacity(i) : void 0
399
+ });
400
+ }
401
+ isLead() {
402
+ const t = this.getStack();
403
+ return t ? t.lead === this : !0;
404
+ }
405
+ getLead() {
406
+ var t;
407
+ const { layoutId: i } = this.options;
408
+ return i ? ((t = this.getStack()) === null || t === void 0 ? void 0 : t.lead) || this : this;
409
+ }
410
+ getPrevLead() {
411
+ var t;
412
+ const { layoutId: i } = this.options;
413
+ return i ? (t = this.getStack()) === null || t === void 0 ? void 0 : t.prevLead : void 0;
414
+ }
415
+ getStack() {
416
+ const { layoutId: t } = this.options;
417
+ if (t)
418
+ return this.root.sharedNodes.get(t);
419
+ }
420
+ promote({ needsReset: t, transition: i, preserveFollowOpacity: s } = {}) {
421
+ const o = this.getStack();
422
+ o && o.promote(this, s), t && (this.projectionDelta = void 0, this.needsReset = !0), i && this.setOptions({ transition: i });
423
+ }
424
+ relegate() {
425
+ const t = this.getStack();
426
+ return t ? t.relegate(this) : !1;
427
+ }
428
+ resetSkewAndRotation() {
429
+ const { visualElement: t } = this.options;
430
+ if (!t)
431
+ return;
432
+ let i = !1;
433
+ const { latestValues: s } = t;
434
+ if ((s.z || s.rotate || s.rotateX || s.rotateY || s.rotateZ || s.skewX || s.skewY) && (i = !0), !i)
435
+ return;
436
+ const o = {};
437
+ s.z && I("z", t, o, this.animationValues);
438
+ for (let a = 0; a < b.length; a++)
439
+ I(`rotate${b[a]}`, t, o, this.animationValues), I(`skew${b[a]}`, t, o, this.animationValues);
440
+ t.render();
441
+ for (const a in o)
442
+ t.setStaticValue(a, o[a]), this.animationValues && (this.animationValues[a] = o[a]);
443
+ t.scheduleRender();
444
+ }
445
+ getProjectionStyles(t) {
446
+ var i, s;
447
+ if (!this.instance || this.isSVG)
448
+ return;
449
+ if (!this.isVisible)
450
+ return At;
451
+ const o = {
452
+ visibility: ""
453
+ }, a = this.getTransformTemplate();
454
+ if (this.needsReset)
455
+ return this.needsReset = !1, o.opacity = "", o.pointerEvents = F(t == null ? void 0 : t.pointerEvents) || "", o.transform = a ? a(this.latestValues, "") : "none", o;
456
+ const r = this.getLead();
457
+ if (!this.projectionDelta || !this.layout || !r.target) {
458
+ const d = {};
459
+ return this.options.layoutId && (d.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, d.pointerEvents = F(t == null ? void 0 : t.pointerEvents) || ""), this.hasProjected && !P(this.latestValues) && (d.transform = a ? a({}, "") : "none", this.hasProjected = !1), d;
460
+ }
461
+ const n = r.animationValues || r.latestValues;
462
+ this.applyTransformsToTarget(), o.transform = Pt(this.projectionDeltaWithTransform, this.treeScale, n), a && (o.transform = a(n, o.transform));
463
+ const { x: u, y: m } = this.projectionDelta;
464
+ o.transformOrigin = `${u.origin * 100}% ${m.origin * 100}% 0`, r.animationValues ? o.opacity = r === this ? (s = (i = n.opacity) !== null && i !== void 0 ? i : this.latestValues.opacity) !== null && s !== void 0 ? s : 1 : this.preserveOpacity ? this.latestValues.opacity : n.opacityExit : o.opacity = r === this ? n.opacity !== void 0 ? n.opacity : "" : n.opacityExit !== void 0 ? n.opacityExit : 0;
465
+ for (const d in H) {
466
+ if (n[d] === void 0)
467
+ continue;
468
+ const { correct: S, applyTo: x, isCSSVariable: R } = H[d], p = o.transform === "none" ? n[d] : S(n[d], r);
469
+ if (x) {
470
+ const D = x.length;
471
+ for (let T = 0; T < D; T++)
472
+ o[x[T]] = p;
473
+ } else
474
+ R ? this.options.visualElement.renderState.vars[d] = p : o[d] = p;
475
+ }
476
+ return this.options.layoutId && (o.pointerEvents = r === this ? F(t == null ? void 0 : t.pointerEvents) || "" : "none"), o;
477
+ }
478
+ clearSnapshot() {
479
+ this.resumeFrom = this.snapshot = void 0;
480
+ }
481
+ // Only run on root
482
+ resetTree() {
483
+ this.root.nodes.forEach((t) => {
484
+ var i;
485
+ return (i = t.currentAnimation) === null || i === void 0 ? void 0 : i.stop();
486
+ }), this.root.nodes.forEach(Y), this.root.sharedNodes.clear();
487
+ }
488
+ };
489
+ }
490
+ function Rt(e) {
491
+ e.updateLayout();
492
+ }
493
+ function Vt(e) {
494
+ var l;
495
+ const h = ((l = e.resumeFrom) === null || l === void 0 ? void 0 : l.snapshot) || e.snapshot;
496
+ if (e.isLead() && e.layout && h && e.hasListeners("didUpdate")) {
497
+ const { layoutBox: c, measuredBox: v } = e.layout, { animationType: j } = e.options, t = h.source !== e.layout.source;
498
+ j === "size" ? q((r) => {
499
+ const n = t ? h.measuredBox[r] : h.layoutBox[r], u = B(n);
500
+ n.min = c[r].min, n.max = n.min + u;
501
+ }) : ot(j, h.layoutBox, c) && q((r) => {
502
+ const n = t ? h.measuredBox[r] : h.layoutBox[r], u = B(c[r]);
503
+ n.max = n.min + u, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + u);
504
+ });
505
+ const i = A();
506
+ k(i, c, h.layoutBox);
507
+ const s = A();
508
+ t ? k(s, e.applyTransform(v, !0), h.measuredBox) : k(s, c, h.layoutBox);
509
+ const o = !it(i);
510
+ let a = !1;
511
+ if (!e.resumeFrom) {
512
+ const r = e.getClosestProjectingParent();
513
+ if (r && !r.resumeFrom) {
514
+ const { snapshot: n, layout: u } = r;
515
+ if (n && u) {
516
+ const m = f();
517
+ V(m, h.layoutBox, n.layoutBox);
518
+ const d = f();
519
+ V(d, c, u.layoutBox), et(m, d) || (a = !0), r.options.layoutRoot && (e.relativeTarget = d, e.relativeTargetOrigin = m, e.relativeParent = r);
520
+ }
521
+ }
522
+ }
523
+ e.notifyListeners("didUpdate", {
524
+ layout: c,
525
+ snapshot: h,
526
+ delta: s,
527
+ layoutDelta: i,
528
+ hasLayoutChanged: o,
529
+ hasRelativeLayoutChanged: a
530
+ });
531
+ } else if (e.isLead()) {
532
+ const { onExitComplete: c } = e.options;
533
+ c && c();
534
+ }
535
+ e.options.transition = void 0;
536
+ }
537
+ function kt(e) {
538
+ e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
539
+ }
540
+ function Lt(e) {
541
+ e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
542
+ }
543
+ function Et(e) {
544
+ e.clearSnapshot();
545
+ }
546
+ function Y(e) {
547
+ e.clearMeasurements();
548
+ }
549
+ function Ut(e) {
550
+ e.isLayoutDirty = !1;
551
+ }
552
+ function wt(e) {
553
+ const { visualElement: l } = e.options;
554
+ l && l.getProps().onBeforeLayoutMeasure && l.notify("BeforeLayoutMeasure"), e.resetTransform();
555
+ }
556
+ function $(e) {
557
+ e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
558
+ }
559
+ function Ct(e) {
560
+ e.resolveTargetDelta();
561
+ }
562
+ function Ft(e) {
563
+ e.calcProjection();
564
+ }
565
+ function Ot(e) {
566
+ e.resetSkewAndRotation();
567
+ }
568
+ function bt(e) {
569
+ e.removeLeadSnapshot();
570
+ }
571
+ function Z(e, l, h) {
572
+ e.translate = w(l.translate, 0, h), e.scale = w(l.scale, 1, h), e.origin = l.origin, e.originPoint = l.originPoint;
573
+ }
574
+ function J(e, l, h, c) {
575
+ e.min = w(l.min, h.min, c), e.max = w(l.max, h.max, c);
576
+ }
577
+ function It(e, l, h, c) {
578
+ J(e.x, l.x, h.x, c), J(e.y, l.y, h.y, c);
579
+ }
580
+ function Mt(e) {
581
+ return e.animationValues && e.animationValues.opacityExit !== void 0;
582
+ }
583
+ const zt = {
584
+ duration: 0.45,
585
+ ease: [0.4, 0, 0.1, 1]
586
+ }, K = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), Q = K("applewebkit/") && !K("chrome/") ? Math.round : at;
587
+ function tt(e) {
588
+ e.min = Q(e.min), e.max = Q(e.max);
589
+ }
590
+ function Nt(e) {
591
+ tt(e.x), tt(e.y);
592
+ }
593
+ function ot(e, l, h) {
594
+ return e === "position" || e === "preserve-aspect" && !xt(W(l), W(h), 0.2);
595
+ }
596
+ function _t(e) {
597
+ var l;
598
+ return e !== e.root && ((l = e.scroll) === null || l === void 0 ? void 0 : l.wasRoot);
599
+ }
600
+ export {
601
+ Lt as cleanDirtyNodes,
602
+ ge as createProjectionNode,
603
+ J as mixAxis,
604
+ Z as mixAxisDelta,
605
+ It as mixBox,
606
+ kt as propagateDirtyNodes
607
+ };
@@ -0,0 +1,15 @@
1
+ const e = {
2
+ /**
3
+ * Global flag as to whether the tree has animated since the last time
4
+ * we resized the window
5
+ */
6
+ hasAnimatedSinceResize: !0,
7
+ /**
8
+ * We set this to true once, on the first update. Any nodes added to the tree beyond that
9
+ * update will be given a `data-projection-id` attribute.
10
+ */
11
+ hasEverUpdated: !1
12
+ };
13
+ export {
14
+ e as globalProjectionState
15
+ };
@@ -0,0 +1,58 @@
1
+ import { addUniqueItem as a, removeItem as o } from "../../../../../motion-utils/dist/es/array.js";
2
+ class n {
3
+ constructor() {
4
+ this.members = [];
5
+ }
6
+ add(e) {
7
+ a(this.members, e), e.scheduleRender();
8
+ }
9
+ remove(e) {
10
+ if (o(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
11
+ const t = this.members[this.members.length - 1];
12
+ t && this.promote(t);
13
+ }
14
+ }
15
+ relegate(e) {
16
+ const t = this.members.findIndex((i) => e === i);
17
+ if (t === 0)
18
+ return !1;
19
+ let s;
20
+ for (let i = t; i >= 0; i--) {
21
+ const r = this.members[i];
22
+ if (r.isPresent !== !1) {
23
+ s = r;
24
+ break;
25
+ }
26
+ }
27
+ return s ? (this.promote(s), !0) : !1;
28
+ }
29
+ promote(e, t) {
30
+ const s = this.lead;
31
+ if (e !== s && (this.prevLead = s, this.lead = e, e.show(), s)) {
32
+ s.instance && s.scheduleRender(), e.scheduleRender(), e.resumeFrom = s, t && (e.resumeFrom.preserveOpacity = !0), s.snapshot && (e.snapshot = s.snapshot, e.snapshot.latestValues = s.animationValues || s.latestValues), e.root && e.root.isUpdating && (e.isLayoutDirty = !0);
33
+ const { crossfade: i } = e.options;
34
+ i === !1 && s.hide();
35
+ }
36
+ }
37
+ exitAnimationComplete() {
38
+ this.members.forEach((e) => {
39
+ const { options: t, resumingFrom: s } = e;
40
+ t.onExitComplete && t.onExitComplete(), s && s.options.onExitComplete && s.options.onExitComplete();
41
+ });
42
+ }
43
+ scheduleRender() {
44
+ this.members.forEach((e) => {
45
+ e.instance && e.scheduleRender(!1);
46
+ });
47
+ }
48
+ /**
49
+ * Clear any leads that have been removed this render to prevent them from being
50
+ * used in future animations and to prevent memory leaks
51
+ */
52
+ removeLeadSnapshot() {
53
+ this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
54
+ }
55
+ }
56
+ export {
57
+ n as NodeStack
58
+ };