@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.107

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 (263) hide show
  1. package/README.md +118 -31
  2. package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
  3. package/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-ouMGAlJW.js} +39 -39
  4. package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-MrF1Z6w2.js} +3 -3
  5. package/dist/{Checkbox-B_ngk9Dj.js → Checkbox-8KnRLpQG.js} +60 -61
  6. package/dist/{CommandInput-BLq69pOT.js → CommandInput-CGnqfudl.js} +4 -4
  7. package/dist/{Counter-BV680M5r.js → Counter-CDXdP1Af.js} +3 -3
  8. package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
  9. package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-D4QlKGg7.js} +7 -7
  10. package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-tYZNl-tz.js} +31 -24
  11. package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-B_NGSZ2r.js} +20 -20
  12. package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-D7HKSXK8.js} +71 -66
  13. package/dist/Input-is8n7emP.js +195 -0
  14. package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
  15. package/dist/{Modal-Dyn088X7.js → Modal-Dq9BHD_9.js} +4 -4
  16. package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
  17. package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
  18. package/dist/Switch-C7286Bcu.js +199 -0
  19. package/dist/{Toast-3NEz7LLa.js → Toast-jSx3Lao8.js} +8 -7
  20. package/dist/Wrapper-2AUlYAHQ.js +195 -0
  21. package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CyHxGs4E.js} +4 -4
  22. package/dist/{Wrapper-DP6Sxngx.js → Wrapper-a7RVCcrn.js} +248 -242
  23. package/dist/components/Alert/Alert.js +2 -2
  24. package/dist/components/AlertDialog/AlertDialog.js +2 -2
  25. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  26. package/dist/components/AlertDialog/components/index.js +1 -1
  27. package/dist/components/Autocomplete/Autocomplete.js +1 -1
  28. package/dist/components/Autocomplete/components/List/List.js +1 -1
  29. package/dist/components/Autocomplete/hooks/useAutocomplete.js +27 -25
  30. package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
  31. package/dist/components/Badge/Badge.js +2 -2
  32. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  33. package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
  34. package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
  35. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  36. package/dist/components/Button/Button.js +1 -1
  37. package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
  38. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
  39. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
  40. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
  41. package/dist/components/Card/Card.js +25 -22
  42. package/dist/components/Checkbox/Checkbox.js +1 -1
  43. package/dist/components/Command/Command.js +2 -2
  44. package/dist/components/Command/components/Command.js +1 -1
  45. package/dist/components/Command/components/CommandEmpty.js +1 -1
  46. package/dist/components/Command/components/CommandGroup.js +2 -2
  47. package/dist/components/Command/components/CommandInput.js +1 -1
  48. package/dist/components/Command/components/CommandItem.js +2 -2
  49. package/dist/components/Command/components/CommandList.js +2 -2
  50. package/dist/components/Command/components/CommandSeparator.js +2 -2
  51. package/dist/components/Command/components/CommandShortcut.js +1 -1
  52. package/dist/components/Command/components/DialogContent.js +3 -3
  53. package/dist/components/Command/components/DialogOverlay.js +2 -2
  54. package/dist/components/Command/components/index.js +1 -1
  55. package/dist/components/Counter/Counter.js +1 -1
  56. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  57. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
  58. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
  59. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
  60. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
  61. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
  62. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  63. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  64. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  65. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
  66. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
  67. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  68. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
  69. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
  70. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
  71. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
  72. package/dist/components/Datepicker/DatePicker.js +2 -2
  73. package/dist/components/Divider/Divider.js +7 -7
  74. package/dist/components/Drawer/Drawer.js +28 -26
  75. package/dist/components/Drawer/components/Body/Body.js +1 -1
  76. package/dist/components/Drawer/components/Footer/Footer.js +1 -1
  77. package/dist/components/Drawer/components/Header/Header.js +1 -1
  78. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  79. package/dist/components/Filter/Filter.js +1 -1
  80. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
  81. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
  82. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
  83. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  84. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
  85. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
  86. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
  87. package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
  88. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +43 -41
  89. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +1 -1
  90. package/dist/components/Filter/utils/index.js +1 -1
  91. package/dist/components/ImageUpload/ImageUpload.js +1 -1
  92. package/dist/components/Input/Input.js +1 -1
  93. package/dist/components/LineChart/LineChart.js +2 -2
  94. package/dist/components/Loading/Loading.js +1 -1
  95. package/dist/components/Modal/Modal.js +1 -1
  96. package/dist/components/Modal/components/Body/Body.js +1 -1
  97. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  98. package/dist/components/Modal/components/Header/Header.js +1 -1
  99. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  100. package/dist/components/Modal/components/index.js +1 -1
  101. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  102. package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
  103. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  104. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  105. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  106. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
  107. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
  108. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
  109. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
  110. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
  111. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  112. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
  113. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
  114. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  115. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  116. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  117. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  118. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  119. package/dist/components/PieChart/PieChart.js +31 -28
  120. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  121. package/dist/components/Radio/Radio.js +1 -1
  122. package/dist/components/RadioCard/RadioCard.js +1 -1
  123. package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
  124. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  125. package/dist/components/Range/Range.js +2 -2
  126. package/dist/components/Select/Select.js +43 -36
  127. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  128. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
  129. package/dist/components/Select/components/List/List.js +78 -67
  130. package/dist/components/Select/components/ListItem/ListItem.js +1 -1
  131. package/dist/components/Select/components/Wrapper.js +1 -1
  132. package/dist/components/Select/components/index.js +2 -2
  133. package/dist/components/Select/hooks/useNavigationList.js +2 -3
  134. package/dist/components/Select/hooks/useSelect.js +8 -8
  135. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
  136. package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
  137. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  138. package/dist/components/Sidebar/components/Label/Label.js +1 -1
  139. package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
  140. package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
  141. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
  142. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
  143. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
  144. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
  145. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
  146. package/dist/components/Sidebar/components/index.js +1 -1
  147. package/dist/components/Slider/Slider.js +2 -2
  148. package/dist/components/Spinner/Spinner.js +1 -1
  149. package/dist/components/Stepper/Stepper.js +1 -1
  150. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
  151. package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
  152. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
  153. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
  154. package/dist/components/Switch/Switch.js +1 -1
  155. package/dist/components/Switch/Switch.variants.js +15 -7
  156. package/dist/components/Table/Table.js +1 -1
  157. package/dist/components/Table/components/Body.js +1 -1
  158. package/dist/components/Table/components/Filter.js +1 -1
  159. package/dist/components/Table/components/Head.js +1 -1
  160. package/dist/components/Table/components/Row.js +1 -1
  161. package/dist/components/Tabs/Tabs.js +2 -2
  162. package/dist/components/Tabs/components/Content.js +2 -2
  163. package/dist/components/Tabs/components/List.js +2 -2
  164. package/dist/components/Tabs/components/Trigger.js +2 -2
  165. package/dist/components/Tag/Tag.js +8 -8
  166. package/dist/components/TagSelect/TagSelect.js +1 -1
  167. package/dist/components/TagSelect/components/Item/Item.js +1 -1
  168. package/dist/components/TagSelect/components/List/List.js +1 -1
  169. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  170. package/dist/components/TagSelect/components/index.js +1 -1
  171. package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
  172. package/dist/components/TextArea/TextArea.js +71 -26
  173. package/dist/components/TextArea/TextArea.variants.js +49 -13
  174. package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
  175. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
  176. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
  177. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +114 -99
  178. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
  179. package/dist/components/Toast/Toast.js +1 -1
  180. package/dist/components/Tooltip/Tooltip.js +2 -2
  181. package/dist/components/Typography/Typography.js +19 -16
  182. package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
  183. package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
  184. package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
  185. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
  186. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
  187. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
  188. package/dist/components/VirtualizedTable/components/Filter/Filter.js +4 -4
  189. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  190. package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
  191. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
  192. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  193. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +3 -3
  194. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
  195. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  196. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  197. package/dist/components/index.js +12 -12
  198. package/dist/{components-Cf345jTv.js → components-CaEW5ge4.js} +32 -32
  199. package/dist/{constants-CxJJRVK3.js → constants-HQIXhj2t.js} +2 -2
  200. package/dist/contexts/index.js +1 -1
  201. package/dist/contexts/theme.provider.js +1 -1
  202. package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
  203. package/dist/{dist-DFCz63oC2.js → dist-9WbMf_jT.js} +158 -159
  204. package/dist/{dist-tGUUcv8n.js → dist-AxOGvL82.js} +114 -115
  205. package/dist/{dist-DDck_2lb.js → dist-BIBFLVt1.js} +117 -116
  206. package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
  207. package/dist/{dist-BaPW7qXd2.js → dist-BnCbAI-c.js} +1 -1
  208. package/dist/{dist-BdobXn93.js → dist-CszFjHAP.js} +2 -2
  209. package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
  210. package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR.js} +38 -38
  211. package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
  212. package/dist/{dist-BlPTJNIm.js → dist-pxvIAJzo.js} +2 -2
  213. package/dist/es2015-B_07N-UL.js +796 -0
  214. package/dist/hooks/useMediaQuery.js +1 -1
  215. package/dist/index.js +14 -14
  216. package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
  217. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
  218. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
  219. package/dist/lib/components/Card/Card.types.d.ts +1 -0
  220. package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
  221. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
  222. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
  223. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
  224. package/dist/lib/components/Divider/Divider.d.ts +3 -2
  225. package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
  226. package/dist/lib/components/Input/Input.types.d.ts +4 -0
  227. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
  228. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
  229. package/dist/lib/components/Select/Select.types.d.ts +2 -0
  230. package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
  231. package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
  232. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
  233. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
  234. package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
  235. package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
  236. package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
  237. package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
  238. package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
  239. package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
  240. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
  241. package/dist/lib/utils/index.d.ts +1 -0
  242. package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
  243. package/dist/package.json +27 -27
  244. package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
  245. package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
  246. package/dist/{react-CvUtBTMg.js → react-7zQ6bvbE.js} +837 -828
  247. package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
  248. package/dist/styles.css +1 -1
  249. package/dist/{table.provider-B0BafHuU.js → table.provider-CWzODR1t.js} +96 -96
  250. package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
  251. package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
  252. package/dist/utils/index.js +6 -5
  253. package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
  254. package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
  255. package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
  256. package/package.json +27 -27
  257. package/dist/Input-Cf44DzfE.js +0 -188
  258. package/dist/Switch-aPhL5rNG.js +0 -196
  259. package/dist/Wrapper-R8fik3ah.js +0 -182
  260. package/dist/es2015-DigR3dar.js +0 -795
  261. /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
  262. /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
  263. /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
@@ -1,12 +1,11 @@
1
- import { a as Nr, n as Ur, r as Wr } from "./rolldown-runtime-Ck3dxwZt.js";
2
- import { Component as $r, Fragment as qn, createContext as Vt, createElement as Kr, forwardRef as _r, useCallback as Zn, useContext as U, useEffect as ni, useId as zr, useInsertionEffect as Jn, useLayoutEffect as Hr, useMemo as he, useRef as ft } from "react";
3
- import { jsx as Qn, jsxs as Gr } from "react/jsx-runtime";
1
+ import { Component as jr, Fragment as qn, createContext as Vt, createElement as Nr, forwardRef as Ur, useCallback as Zn, useContext as U, useEffect as ni, useId as Wr, useInsertionEffect as Jn, useLayoutEffect as $r, useMemo as he, useRef as ft } from "react";
2
+ import { jsx as Qn, jsxs as Kr } from "react/jsx-runtime";
4
3
  var ts = Vt({});
5
- function Xr(t) {
4
+ function zr(t) {
6
5
  const e = ft(null);
7
6
  return e.current === null && (e.current = t()), e.current;
8
7
  }
9
- var Yr = typeof window < "u", qr = Yr ? Hr : ni, si = /* @__PURE__ */ Vt(null);
8
+ var Hr = typeof window < "u", Gr = Hr ? $r : ni, si = /* @__PURE__ */ Vt(null);
10
9
  function ri(t, e) {
11
10
  t.indexOf(e) === -1 && t.push(e);
12
11
  }
@@ -19,11 +18,11 @@ function Re(t, e) {
19
18
  return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
20
19
  }
21
20
  var Mt = () => {
22
- }, it = () => {
21
+ }, tt = () => {
23
22
  };
24
23
  typeof process < "u" && process.env.NODE_ENV !== "production" && (Mt = (t, e, i) => {
25
24
  !t && typeof console < "u" && console.warn(Re(e, i));
26
- }, it = (t, e, i) => {
25
+ }, tt = (t, e, i) => {
27
26
  if (!t) throw new Error(Re(e, i));
28
27
  });
29
28
  var st = {}, es = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), is = (t) => typeof t == "object" && t !== null, ns = (t) => /^0[^.\s]+$/u.test(t);
@@ -32,7 +31,7 @@ function ss(t) {
32
31
  let e;
33
32
  return () => (e === void 0 && (e = t()), e);
34
33
  }
35
- var _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Ut = (...t) => t.reduce((e, i) => (n) => i(e(n))), Ft = /* @__NO_SIDE_EFFECTS__ */ (t, e, i) => {
34
+ var z = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Ut = (...t) => t.reduce((e, i) => (n) => i(e(n))), It = /* @__NO_SIDE_EFFECTS__ */ (t, e, i) => {
36
35
  const n = e - t;
37
36
  return n ? (i - t) / n : 1;
38
37
  }, oi = class {
@@ -61,25 +60,25 @@ var _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Ut = (...t) => t.reduce((e, i) => (
61
60
  function ai(t, e, i) {
62
61
  t || Ri.has(e) || (console.warn(Re(e, i)), Ri.add(e));
63
62
  }
64
- var os = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t, Zr = 1e-7, Jr = 12;
65
- function Qr(t, e, i, n, s) {
63
+ var os = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t, _r = 1e-7, Xr = 12;
64
+ function Yr(t, e, i, n, s) {
66
65
  let o, r, a = 0;
67
66
  do
68
67
  r = e + (i - e) / 2, o = os(r, n, s) - t, o > 0 ? i = r : e = r;
69
- while (Math.abs(o) > Zr && ++a < Jr);
68
+ while (Math.abs(o) > _r && ++a < Xr);
70
69
  return r;
71
70
  }
72
71
  // @__NO_SIDE_EFFECTS__
73
72
  function Wt(t, e, i, n) {
74
- if (t === e && i === n) return _;
75
- const s = (o) => Qr(o, 0, 1, t, i);
73
+ if (t === e && i === n) return z;
74
+ const s = (o) => Yr(o, 0, 1, t, i);
76
75
  return (o) => o === 0 || o === 1 ? o : os(s(o), e, n);
77
76
  }
78
- var as = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ls = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => 1 - t(1 - e), us = /* @__PURE__ */ Wt(0.33, 1.53, 0.69, 0.99), li = /* @__PURE__ */ ls(us), cs = /* @__PURE__ */ as(li), hs = (t) => t >= 1 ? 1 : (t *= 2) < 1 ? 0.5 * li(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ui = (t) => 1 - Math.sin(Math.acos(t)), fs = ls(ui), ds = as(ui), to = /* @__PURE__ */ Wt(0.42, 0, 1, 1), eo = /* @__PURE__ */ Wt(0, 0, 0.58, 1), ps = /* @__PURE__ */ Wt(0.42, 0, 0.58, 1), io = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] != "number", ms = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] == "number", Li = {
79
- linear: _,
80
- easeIn: to,
77
+ var as = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ls = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => 1 - t(1 - e), us = /* @__PURE__ */ Wt(0.33, 1.53, 0.69, 0.99), li = /* @__PURE__ */ ls(us), cs = /* @__PURE__ */ as(li), hs = (t) => t >= 1 ? 1 : (t *= 2) < 1 ? 0.5 * li(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ui = (t) => 1 - Math.sin(Math.acos(t)), fs = ls(ui), ds = as(ui), qr = /* @__PURE__ */ Wt(0.42, 0, 1, 1), Zr = /* @__PURE__ */ Wt(0, 0, 0.58, 1), ps = /* @__PURE__ */ Wt(0.42, 0, 0.58, 1), Jr = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] != "number", ms = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] == "number", Li = {
78
+ linear: z,
79
+ easeIn: qr,
81
80
  easeInOut: ps,
82
- easeOut: eo,
81
+ easeOut: Zr,
83
82
  circIn: ui,
84
83
  circInOut: ds,
85
84
  circOut: fs,
@@ -87,15 +86,15 @@ var as = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 -
87
86
  backInOut: cs,
88
87
  backOut: us,
89
88
  anticipate: hs
90
- }, no = (t) => typeof t == "string", ki = (t) => {
89
+ }, Qr = (t) => typeof t == "string", ki = (t) => {
91
90
  if (ms(t)) {
92
- it(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
91
+ tt(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
93
92
  const [e, i, n, s] = t;
94
93
  return /* @__PURE__ */ Wt(e, i, n, s);
95
- } else if (no(t))
96
- return it(Li[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Li[t];
94
+ } else if (Qr(t))
95
+ return tt(Li[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Li[t];
97
96
  return t;
98
- }, _t = [
97
+ }, zt = [
99
98
  "setup",
100
99
  "read",
101
100
  "resolveKeyframes",
@@ -105,7 +104,7 @@ var as = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 -
105
104
  "render",
106
105
  "postRender"
107
106
  ];
108
- function so(t) {
107
+ function to(t) {
109
108
  let e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = !1, s = !1;
110
109
  const o = /* @__PURE__ */ new WeakSet();
111
110
  let r = {
@@ -136,41 +135,41 @@ function so(t) {
136
135
  };
137
136
  return l;
138
137
  }
139
- var ro = 40;
138
+ var eo = 40;
140
139
  function vs(t, e) {
141
140
  let i = !1, n = !0;
142
141
  const s = {
143
142
  delta: 0,
144
143
  timestamp: 0,
145
144
  isProcessing: !1
146
- }, o = () => i = !0, r = _t.reduce((x, w) => (x[w] = so(o), x), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: p, postRender: d } = r, m = () => {
145
+ }, o = () => i = !0, r = zt.reduce((x, w) => (x[w] = to(o), x), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: p, postRender: d } = r, m = () => {
147
146
  const x = st.useManualTiming, w = x ? s.timestamp : performance.now();
148
- i = !1, x || (s.delta = n ? 1e3 / 60 : Math.max(Math.min(w - s.timestamp, ro), 1)), s.timestamp = w, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), h.process(s), f.process(s), p.process(s), d.process(s), s.isProcessing = !1, i && e && (n = !1, t(m));
149
- }, v = () => {
147
+ i = !1, x || (s.delta = n ? 1e3 / 60 : Math.max(Math.min(w - s.timestamp, eo), 1)), s.timestamp = w, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), h.process(s), f.process(s), p.process(s), d.process(s), s.isProcessing = !1, i && e && (n = !1, t(m));
148
+ }, g = () => {
150
149
  i = !0, n = !0, s.isProcessing || t(m);
151
150
  };
152
151
  return {
153
- schedule: _t.reduce((x, w) => {
152
+ schedule: zt.reduce((x, w) => {
154
153
  const P = r[w];
155
- return x[w] = (A, D = !1, S = !1) => (i || v(), P.schedule(A, D, S)), x;
154
+ return x[w] = (A, D = !1, S = !1) => (i || g(), P.schedule(A, D, S)), x;
156
155
  }, {}),
157
156
  cancel: (x) => {
158
- for (let w = 0; w < _t.length; w++) r[_t[w]].cancel(x);
157
+ for (let w = 0; w < zt.length; w++) r[zt[w]].cancel(x);
159
158
  },
160
159
  state: s,
161
160
  steps: r
162
161
  };
163
162
  }
164
- var { schedule: M, cancel: rt, state: I, steps: ve } = /* @__PURE__ */ vs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : _, !0), Xt;
165
- function oo() {
163
+ var { schedule: M, cancel: rt, state: F, steps: ve } = /* @__PURE__ */ vs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : z, !0), Xt;
164
+ function io() {
166
165
  Xt = void 0;
167
166
  }
168
167
  var O = {
169
- now: () => (Xt === void 0 && O.set(I.isProcessing || st.useManualTiming ? I.timestamp : performance.now()), Xt),
168
+ now: () => (Xt === void 0 && O.set(F.isProcessing || st.useManualTiming ? F.timestamp : performance.now()), Xt),
170
169
  set: (t) => {
171
- Xt = t, queueMicrotask(oo);
170
+ Xt = t, queueMicrotask(io);
172
171
  }
173
- }, gs = (t) => (e) => typeof e == "string" && e.startsWith(t), ys = /* @__PURE__ */ gs("--"), ao = /* @__PURE__ */ gs("var(--"), ci = (t) => ao(t) ? lo.test(t.split("/*")[0].trim()) : !1, lo = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
172
+ }, gs = (t) => (e) => typeof e == "string" && e.startsWith(t), ys = /* @__PURE__ */ gs("--"), no = /* @__PURE__ */ gs("var(--"), ci = (t) => no(t) ? so.test(t.split("/*")[0].trim()) : !1, so = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
174
173
  function Bi(t) {
175
174
  return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
176
175
  }
@@ -181,14 +180,14 @@ var Ct = {
181
180
  }, Ot = {
182
181
  ...Ct,
183
182
  transform: (t) => Q(0, 1, t)
184
- }, zt = {
183
+ }, Ht = {
185
184
  ...Ct,
186
185
  default: 1
187
186
  }, kt = (t) => Math.round(t * 1e5) / 1e5, hi = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
188
- function uo(t) {
187
+ function ro(t) {
189
188
  return t == null;
190
189
  }
191
- var co = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, fi = (t, e) => (i) => !!(typeof i == "string" && co.test(i) && i.startsWith(t) || e && !uo(i) && Object.prototype.hasOwnProperty.call(i, e)), Ts = (t, e, i) => (n) => {
190
+ var oo = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, fi = (t, e) => (i) => !!(typeof i == "string" && oo.test(i) && i.startsWith(t) || e && !ro(i) && Object.prototype.hasOwnProperty.call(i, e)), Ts = (t, e, i) => (n) => {
192
191
  if (typeof n != "string") return n;
193
192
  const [s, o, r, a] = n.match(hi);
194
193
  return {
@@ -197,15 +196,15 @@ var co = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(
197
196
  [i]: parseFloat(r),
198
197
  alpha: a !== void 0 ? parseFloat(a) : 1
199
198
  };
200
- }, ho = (t) => Q(0, 255, t), ge = {
199
+ }, ao = (t) => Q(0, 255, t), ge = {
201
200
  ...Ct,
202
- transform: (t) => Math.round(ho(t))
201
+ transform: (t) => Math.round(ao(t))
203
202
  }, dt = {
204
203
  test: /* @__PURE__ */ fi("rgb", "red"),
205
204
  parse: /* @__PURE__ */ Ts("red", "green", "blue"),
206
205
  transform: ({ red: t, green: e, blue: i, alpha: n = 1 }) => "rgba(" + ge.transform(t) + ", " + ge.transform(e) + ", " + ge.transform(i) + ", " + kt(Ot.transform(n)) + ")"
207
206
  };
208
- function fo(t) {
207
+ function lo(t) {
209
208
  let e = "", i = "", n = "", s = "";
210
209
  return t.length > 5 ? (e = t.substring(1, 3), i = t.substring(3, 5), n = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), i = t.substring(2, 3), n = t.substring(3, 4), s = t.substring(4, 5), e += e, i += i, n += n, s += s), {
211
210
  red: parseInt(e, 16),
@@ -216,13 +215,13 @@ function fo(t) {
216
215
  }
217
216
  var Le = {
218
217
  test: /* @__PURE__ */ fi("#"),
219
- parse: fo,
218
+ parse: lo,
220
219
  transform: dt.transform
221
220
  }, $t = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
222
221
  test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
223
222
  parse: parseFloat,
224
223
  transform: (e) => `${e}${t}`
225
- }), et = /* @__PURE__ */ $t("deg"), J = /* @__PURE__ */ $t("%"), y = /* @__PURE__ */ $t("px"), po = /* @__PURE__ */ $t("vh"), mo = /* @__PURE__ */ $t("vw"), Ii = {
224
+ }), it = /* @__PURE__ */ $t("deg"), J = /* @__PURE__ */ $t("%"), y = /* @__PURE__ */ $t("px"), uo = /* @__PURE__ */ $t("vh"), co = /* @__PURE__ */ $t("vw"), Fi = {
226
225
  ...J,
227
226
  parse: (t) => J.parse(t) / 100,
228
227
  transform: (t) => J.transform(t * 100)
@@ -238,11 +237,11 @@ var Le = {
238
237
  const e = R.parse(t);
239
238
  return e.alpha = 0, R.transform(e);
240
239
  }
241
- }, vo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
242
- function go(t) {
243
- return isNaN(t) && typeof t == "string" && (t.match(hi)?.length || 0) + (t.match(vo)?.length || 0) > 0;
240
+ }, ho = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
241
+ function fo(t) {
242
+ return isNaN(t) && typeof t == "string" && (t.match(hi)?.length || 0) + (t.match(ho)?.length || 0) > 0;
244
243
  }
245
- var xs = "number", ws = "color", yo = "var", To = "var(", Fi = "${}", xo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
244
+ var xs = "number", ws = "color", po = "var", mo = "var(", Ii = "${}", vo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
246
245
  function bt(t) {
247
246
  const e = t.toString(), i = [], n = {
248
247
  color: [],
@@ -252,12 +251,12 @@ function bt(t) {
252
251
  let o = 0;
253
252
  return {
254
253
  values: i,
255
- split: e.replace(xo, (r) => (R.test(r) ? (n.color.push(o), s.push(ws), i.push(R.parse(r))) : r.startsWith(To) ? (n.var.push(o), s.push(yo), i.push(r)) : (n.number.push(o), s.push(xs), i.push(parseFloat(r))), ++o, Fi)).split(Fi),
254
+ split: e.replace(vo, (r) => (R.test(r) ? (n.color.push(o), s.push(ws), i.push(R.parse(r))) : r.startsWith(mo) ? (n.var.push(o), s.push(po), i.push(r)) : (n.number.push(o), s.push(xs), i.push(parseFloat(r))), ++o, Ii)).split(Ii),
256
255
  indexes: n,
257
256
  types: s
258
257
  };
259
258
  }
260
- function wo(t) {
259
+ function go(t) {
261
260
  return bt(t).values;
262
261
  }
263
262
  function Ps({ split: t, types: e }) {
@@ -272,24 +271,24 @@ function Ps({ split: t, types: e }) {
272
271
  return s;
273
272
  };
274
273
  }
275
- function Po(t) {
274
+ function yo(t) {
276
275
  return Ps(bt(t));
277
276
  }
278
- var So = (t) => typeof t == "number" ? 0 : R.test(t) ? R.getAnimatableNone(t) : t, bo = (t, e) => typeof t == "number" ? e?.trim().endsWith("/") ? t : 0 : So(t);
279
- function Ao(t) {
277
+ var To = (t) => typeof t == "number" ? 0 : R.test(t) ? R.getAnimatableNone(t) : t, xo = (t, e) => typeof t == "number" ? e?.trim().endsWith("/") ? t : 0 : To(t);
278
+ function wo(t) {
280
279
  const e = bt(t);
281
- return Ps(e)(e.values.map((i, n) => bo(i, e.split[n])));
280
+ return Ps(e)(e.values.map((i, n) => xo(i, e.split[n])));
282
281
  }
283
- var G = {
284
- test: go,
285
- parse: wo,
286
- createTransformer: Po,
287
- getAnimatableNone: Ao
282
+ var _ = {
283
+ test: fo,
284
+ parse: go,
285
+ createTransformer: yo,
286
+ getAnimatableNone: wo
288
287
  };
289
288
  function ye(t, e, i) {
290
289
  return i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? t + (e - t) * 6 * i : i < 1 / 2 ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t;
291
290
  }
292
- function Vo({ hue: t, saturation: e, lightness: i, alpha: n }) {
291
+ function Po({ hue: t, saturation: e, lightness: i, alpha: n }) {
293
292
  t /= 360, e /= 100, i /= 100;
294
293
  let s = 0, o = 0, r = 0;
295
294
  if (!e) s = o = r = i;
@@ -310,16 +309,16 @@ function ne(t, e) {
310
309
  var V = (t, e, i) => t + (e - t) * i, Te = (t, e, i) => {
311
310
  const n = t * t, s = i * (e * e - n) + n;
312
311
  return s < 0 ? 0 : Math.sqrt(s);
313
- }, Mo = [
312
+ }, So = [
314
313
  Le,
315
314
  dt,
316
315
  xt
317
- ], Co = (t) => Mo.find((e) => e.test(t));
316
+ ], bo = (t) => So.find((e) => e.test(t));
318
317
  function Oi(t) {
319
- const e = Co(t);
318
+ const e = bo(t);
320
319
  if (Mt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e) return !1;
321
320
  let i = e.parse(t);
322
- return e === xt && (i = Vo(i)), i;
321
+ return e === xt && (i = Po(i)), i;
323
322
  }
324
323
  var ji = (t, e) => {
325
324
  const i = Oi(t), n = Oi(e);
@@ -327,14 +326,14 @@ var ji = (t, e) => {
327
326
  const s = { ...i };
328
327
  return (o) => (s.red = Te(i.red, n.red, o), s.green = Te(i.green, n.green, o), s.blue = Te(i.blue, n.blue, o), s.alpha = V(i.alpha, n.alpha, o), dt.transform(s));
329
328
  }, ke = /* @__PURE__ */ new Set(["none", "hidden"]);
330
- function Do(t, e) {
329
+ function Ao(t, e) {
331
330
  return ke.has(t) ? (i) => i <= 0 ? t : e : (i) => i >= 1 ? e : t;
332
331
  }
333
- function Eo(t, e) {
332
+ function Vo(t, e) {
334
333
  return (i) => V(t, e, i);
335
334
  }
336
335
  function di(t) {
337
- return typeof t == "number" ? Eo : typeof t == "string" ? ci(t) ? ne : R.test(t) ? ji : ko : Array.isArray(t) ? Ss : typeof t == "object" ? R.test(t) ? ji : Ro : ne;
336
+ return typeof t == "number" ? Vo : typeof t == "string" ? ci(t) ? ne : R.test(t) ? ji : Do : Array.isArray(t) ? Ss : typeof t == "object" ? R.test(t) ? ji : Mo : ne;
338
337
  }
339
338
  function Ss(t, e) {
340
339
  const i = [...t], n = i.length, s = t.map((o, r) => di(o)(o, e[r]));
@@ -343,7 +342,7 @@ function Ss(t, e) {
343
342
  return i;
344
343
  };
345
344
  }
346
- function Ro(t, e) {
345
+ function Mo(t, e) {
347
346
  const i = {
348
347
  ...t,
349
348
  ...e
@@ -354,31 +353,31 @@ function Ro(t, e) {
354
353
  return i;
355
354
  };
356
355
  }
357
- function Lo(t, e) {
356
+ function Co(t, e) {
358
357
  const i = [], n = {
359
358
  color: 0,
360
359
  var: 0,
361
360
  number: 0
362
361
  };
363
362
  for (let s = 0; s < e.values.length; s++) {
364
- const o = e.types[s], r = t.indexes[o][n[o]];
365
- i[s] = t.values[r] ?? 0, n[o]++;
363
+ const o = e.types[s], r = t.indexes[o][n[o]], a = t.values[r] ?? 0;
364
+ i[s] = a, n[o]++;
366
365
  }
367
366
  return i;
368
367
  }
369
- var ko = (t, e) => {
370
- const i = G.createTransformer(e), n = bt(t), s = bt(e);
371
- return n.indexes.var.length === s.indexes.var.length && n.indexes.color.length === s.indexes.color.length && n.indexes.number.length >= s.indexes.number.length ? ke.has(t) && !s.values.length || ke.has(e) && !n.values.length ? Do(t, e) : Ut(Ss(Lo(n, s), s.values), i) : (Mt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), ne(t, e));
368
+ var Do = (t, e) => {
369
+ const i = _.createTransformer(e), n = bt(t), s = bt(e);
370
+ return n.indexes.var.length === s.indexes.var.length && n.indexes.color.length === s.indexes.color.length && n.indexes.number.length >= s.indexes.number.length ? ke.has(t) && !s.values.length || ke.has(e) && !n.values.length ? Ao(t, e) : Ut(Ss(Co(n, s), s.values), i) : (Mt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), ne(t, e));
372
371
  };
373
372
  function bs(t, e, i) {
374
373
  return typeof t == "number" && typeof e == "number" && typeof i == "number" ? V(t, e, i) : di(t)(t, e);
375
374
  }
376
- var Bo = (t) => {
375
+ var Eo = (t) => {
377
376
  const e = ({ timestamp: i }) => t(i);
378
377
  return {
379
378
  start: (i = !0) => M.update(e, i),
380
379
  stop: () => rt(e),
381
- now: () => I.isProcessing ? I.timestamp : O.now()
380
+ now: () => F.isProcessing ? F.timestamp : O.now()
382
381
  };
383
382
  }, As = (t, e, i = 10) => {
384
383
  let n = "";
@@ -394,7 +393,7 @@ function pi(t) {
394
393
  e += i, n = t.next(e);
395
394
  return e >= 2e4 ? 1 / 0 : e;
396
395
  }
397
- function Io(t, e = 100, i) {
396
+ function Ro(t, e = 100, i) {
398
397
  const n = i({
399
398
  ...t,
400
399
  keyframes: [0, e]
@@ -429,14 +428,14 @@ var C = {
429
428
  function Be(t, e) {
430
429
  return t * Math.sqrt(1 - e * e);
431
430
  }
432
- var Fo = 12;
433
- function Oo(t, e, i) {
431
+ var Lo = 12;
432
+ function ko(t, e, i) {
434
433
  let n = i;
435
- for (let s = 1; s < Fo; s++) n = n - t(n) / e(n);
434
+ for (let s = 1; s < Lo; s++) n = n - t(n) / e(n);
436
435
  return n;
437
436
  }
438
437
  var Ni = 1e-3;
439
- function jo({ duration: t = C.duration, bounce: e = C.bounce, velocity: i = C.velocity, mass: n = C.mass }) {
438
+ function Bo({ duration: t = C.duration, bounce: e = C.bounce, velocity: i = C.velocity, mass: n = C.mass }) {
440
439
  let s, o;
441
440
  Mt(t <= W(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
442
441
  let r = 1 - e;
@@ -447,7 +446,7 @@ function jo({ duration: t = C.duration, bounce: e = C.bounce, velocity: i = C.ve
447
446
  const u = c * r * t, h = u * i + i, f = Math.pow(r, 2) * Math.pow(c, 2) * t, p = Math.exp(-u), d = Be(Math.pow(c, 2), r);
448
447
  return (-s(c) + Ni > 0 ? -1 : 1) * ((h - f) * p) / d;
449
448
  }) : (s = (c) => -1e-3 + Math.exp(-c * t) * ((c - i) * t + 1), o = (c) => Math.exp(-c * t) * ((i - c) * (t * t)));
450
- const a = 5 / t, l = Oo(s, o, a);
449
+ const a = 5 / t, l = ko(s, o, a);
451
450
  if (t = W(t), isNaN(l)) return {
452
451
  stiffness: C.stiffness,
453
452
  damping: C.damping,
@@ -462,7 +461,7 @@ function jo({ duration: t = C.duration, bounce: e = C.bounce, velocity: i = C.ve
462
461
  };
463
462
  }
464
463
  }
465
- var No = ["duration", "bounce"], Uo = [
464
+ var Fo = ["duration", "bounce"], Io = [
466
465
  "stiffness",
467
466
  "damping",
468
467
  "mass"
@@ -470,7 +469,7 @@ var No = ["duration", "bounce"], Uo = [
470
469
  function Ui(t, e) {
471
470
  return e.some((i) => t[i] !== void 0);
472
471
  }
473
- function Wo(t) {
472
+ function Oo(t) {
474
473
  let e = {
475
474
  velocity: C.velocity,
476
475
  stiffness: C.stiffness,
@@ -479,7 +478,7 @@ function Wo(t) {
479
478
  isResolvedFromDuration: !1,
480
479
  ...t
481
480
  };
482
- if (!Ui(t, Uo) && Ui(t, No))
481
+ if (!Ui(t, Io) && Ui(t, Fo))
483
482
  if (e.velocity = 0, t.visualDuration) {
484
483
  const i = t.visualDuration, n = 2 * Math.PI / (i * 1.2), s = n * n, o = 2 * Q(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
485
484
  e = {
@@ -489,7 +488,7 @@ function Wo(t) {
489
488
  damping: o
490
489
  };
491
490
  } else {
492
- const i = jo({
491
+ const i = Bo({
493
492
  ...t,
494
493
  velocity: 0
495
494
  });
@@ -511,31 +510,31 @@ function se(t = C.visualDuration, e = C.bounce) {
511
510
  const o = i.keyframes[0], r = i.keyframes[i.keyframes.length - 1], a = {
512
511
  done: !1,
513
512
  value: o
514
- }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: p } = Wo({
513
+ }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: p } = Oo({
515
514
  ...i,
516
515
  velocity: -K(i.velocity || 0)
517
- }), d = f || 0, m = c / (2 * Math.sqrt(l * u)), v = r - o, g = K(Math.sqrt(l / u)), T = Math.abs(v) < 5;
516
+ }), d = f || 0, m = c / (2 * Math.sqrt(l * u)), g = r - o, v = K(Math.sqrt(l / u)), T = Math.abs(g) < 5;
518
517
  n || (n = T ? C.restSpeed.granular : C.restSpeed.default), s || (s = T ? C.restDelta.granular : C.restDelta.default);
519
518
  let x, w, P, A, D, S;
520
519
  if (m < 1)
521
- P = Be(g, m), A = (d + m * g * v) / P, x = (b) => {
522
- const k = Math.exp(-m * g * b);
523
- return r - k * (A * Math.sin(P * b) + v * Math.cos(P * b));
524
- }, D = m * g * A + v * P, S = m * g * v - A * P, w = (b) => Math.exp(-m * g * b) * (D * Math.sin(P * b) + S * Math.cos(P * b));
520
+ P = Be(v, m), A = (d + m * v * g) / P, x = (b) => {
521
+ const k = Math.exp(-m * v * b);
522
+ return r - k * (A * Math.sin(P * b) + g * Math.cos(P * b));
523
+ }, D = m * v * A + g * P, S = m * v * g - A * P, w = (b) => Math.exp(-m * v * b) * (D * Math.sin(P * b) + S * Math.cos(P * b));
525
524
  else if (m === 1) {
526
- x = (k) => r - Math.exp(-g * k) * (v + (d + g * v) * k);
527
- const b = d + g * v;
528
- w = (k) => Math.exp(-g * k) * (g * b * k - d);
525
+ x = (k) => r - Math.exp(-v * k) * (g + (d + v * g) * k);
526
+ const b = d + v * g;
527
+ w = (k) => Math.exp(-v * k) * (v * b * k - d);
529
528
  } else {
530
- const b = g * Math.sqrt(m * m - 1);
529
+ const b = v * Math.sqrt(m * m - 1);
531
530
  x = (X) => {
532
- const tt = Math.exp(-m * g * X), Y = Math.min(b * X, 300);
533
- return r - tt * ((d + m * g * v) * Math.sinh(Y) + b * v * Math.cosh(Y)) / b;
531
+ const et = Math.exp(-m * v * X), Y = Math.min(b * X, 300);
532
+ return r - et * ((d + m * v * g) * Math.sinh(Y) + b * g * Math.cosh(Y)) / b;
534
533
  };
535
- const k = (d + m * g * v) / b, N = m * g * k - v * b, at = m * g * v - k * b;
534
+ const k = (d + m * v * g) / b, N = m * v * k - g * b, at = m * v * g - k * b;
536
535
  w = (X) => {
537
- const tt = Math.exp(-m * g * X), Y = Math.min(b * X, 300);
538
- return tt * (N * Math.sinh(Y) + at * Math.cosh(Y));
536
+ const et = Math.exp(-m * v * X), Y = Math.min(b * X, 300);
537
+ return et * (N * Math.sinh(Y) + at * Math.cosh(Y));
539
538
  };
540
539
  }
541
540
  const E = {
@@ -543,8 +542,8 @@ function se(t = C.visualDuration, e = C.bounce) {
543
542
  velocity: (b) => W(w(b)),
544
543
  next: (b) => {
545
544
  if (!p && m < 1) {
546
- const N = Math.exp(-m * g * b), at = Math.sin(P * b), X = Math.cos(P * b), tt = r - N * (A * at + v * X), Y = W(N * (D * at + S * X));
547
- return a.done = Math.abs(Y) <= n && Math.abs(r - tt) <= s, a.value = a.done ? r : tt, a;
545
+ const N = Math.exp(-m * v * b), at = Math.sin(P * b), X = Math.cos(P * b), et = r - N * (A * at + g * X), Y = W(N * (D * at + S * X));
546
+ return a.done = Math.abs(Y) <= n && Math.abs(r - et) <= s, a.value = a.done ? r : et, a;
548
547
  }
549
548
  const k = x(b);
550
549
  if (p)
@@ -565,25 +564,25 @@ function se(t = C.visualDuration, e = C.bounce) {
565
564
  return E;
566
565
  }
567
566
  se.applyToOptions = (t) => {
568
- const e = Io(t, 100, se);
567
+ const e = Ro(t, 100, se);
569
568
  return t.ease = e.ease, t.duration = W(e.duration), t.type = "keyframes", t;
570
569
  };
571
- var $o = 5;
570
+ var jo = 5;
572
571
  function Ms(t, e, i) {
573
- const n = Math.max(e - $o, 0);
572
+ const n = Math.max(e - jo, 0);
574
573
  return rs(i - t(n), e - n);
575
574
  }
576
- function Ie({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: n = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
575
+ function Fe({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: n = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
577
576
  const h = t[0], f = {
578
577
  done: !1,
579
578
  value: h
580
579
  }, p = (S) => a !== void 0 && S < a || l !== void 0 && S > l, d = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
581
580
  let m = i * e;
582
- const v = h + m, g = r === void 0 ? v : r(v);
583
- g !== v && (m = g - h);
584
- const T = (S) => -m * Math.exp(-S / n), x = (S) => g + T(S), w = (S) => {
581
+ const g = h + m, v = r === void 0 ? g : r(g);
582
+ v !== g && (m = v - h);
583
+ const T = (S) => -m * Math.exp(-S / n), x = (S) => v + T(S), w = (S) => {
585
584
  const E = T(S), b = x(S);
586
- f.done = Math.abs(E) <= c, f.value = f.done ? g : b;
585
+ f.done = Math.abs(E) <= c, f.value = f.done ? v : b;
587
586
  };
588
587
  let P, A;
589
588
  const D = (S) => {
@@ -604,71 +603,75 @@ function Ie({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: n = 3
604
603
  }
605
604
  };
606
605
  }
607
- function Ko(t, e, i) {
606
+ function No(t, e, i) {
608
607
  const n = [], s = i || st.mix || bs, o = t.length - 1;
609
608
  for (let r = 0; r < o; r++) {
610
609
  let a = s(t[r], t[r + 1]);
611
- e && (a = Ut(Array.isArray(e) ? e[r] || _ : e, a)), n.push(a);
610
+ if (e) {
611
+ const l = Array.isArray(e) ? e[r] || z : e;
612
+ a = Ut(l, a);
613
+ }
614
+ n.push(a);
612
615
  }
613
616
  return n;
614
617
  }
615
- function _o(t, e, { clamp: i = !0, ease: n, mixer: s } = {}) {
618
+ function Uo(t, e, { clamp: i = !0, ease: n, mixer: s } = {}) {
616
619
  const o = t.length;
617
- if (it(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1) return () => e[0];
620
+ if (tt(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1) return () => e[0];
618
621
  if (o === 2 && e[0] === e[1]) return () => e[1];
619
622
  const r = t[0] === t[1];
620
623
  t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
621
- const a = Ko(e, n, s), l = a.length, c = (u) => {
624
+ const a = No(e, n, s), l = a.length, c = (u) => {
622
625
  if (r && u < t[0]) return e[0];
623
626
  let h = 0;
624
627
  if (l > 1)
625
628
  for (; h < t.length - 2 && !(u < t[h + 1]); h++) ;
626
- const f = Ft(t[h], t[h + 1], u);
629
+ const f = It(t[h], t[h + 1], u);
627
630
  return a[h](f);
628
631
  };
629
632
  return i ? (u) => c(Q(t[0], t[o - 1], u)) : c;
630
633
  }
631
- function zo(t, e) {
634
+ function Wo(t, e) {
632
635
  const i = t[t.length - 1];
633
636
  for (let n = 1; n <= e; n++) {
634
- const s = Ft(0, e, n);
637
+ const s = It(0, e, n);
635
638
  t.push(V(i, 1, s));
636
639
  }
637
640
  }
638
- function Ho(t) {
641
+ function $o(t) {
639
642
  const e = [0];
640
- return zo(e, t.length - 1), e;
643
+ return Wo(e, t.length - 1), e;
641
644
  }
642
- function Go(t, e) {
645
+ function Ko(t, e) {
643
646
  return t.map((i) => i * e);
644
647
  }
645
- function Xo(t, e) {
648
+ function zo(t, e) {
646
649
  return t.map(() => e || ps).splice(0, t.length - 1);
647
650
  }
648
651
  function wt({ duration: t = 300, keyframes: e, times: i, ease: n = "easeInOut" }) {
649
- const s = io(n) ? n.map(ki) : ki(n), o = {
652
+ const s = Jr(n) ? n.map(ki) : ki(n), o = {
650
653
  done: !1,
651
654
  value: e[0]
652
- }, r = _o(Go(i && i.length === e.length ? i : Ho(e), t), e, { ease: Array.isArray(s) ? s : Xo(e, s) });
655
+ }, r = Ko(i && i.length === e.length ? i : $o(e), t), a = Uo(r, e, { ease: Array.isArray(s) ? s : zo(e, s) });
653
656
  return {
654
657
  calculatedDuration: t,
655
- next: (a) => (o.value = r(a), o.done = a >= t, o)
658
+ next: (l) => (o.value = a(l), o.done = l >= t, o)
656
659
  };
657
660
  }
658
- var Yo = (t) => t !== null;
661
+ var Ho = (t) => t !== null;
659
662
  function fe(t, { repeat: e, repeatType: i = "loop" }, n, s = 1) {
660
- const o = t.filter(Yo), r = s < 0 || e && i !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
663
+ const o = t.filter(Ho), r = s < 0 || e && i !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
661
664
  return !r || n === void 0 ? o[r] : n;
662
665
  }
663
- var qo = {
664
- decay: Ie,
665
- inertia: Ie,
666
+ var Go = {
667
+ decay: Fe,
668
+ inertia: Fe,
666
669
  tween: wt,
667
670
  keyframes: wt,
668
671
  spring: se
669
672
  };
670
673
  function Cs(t) {
671
- typeof t.type == "string" && (t.type = qo[t.type]);
674
+ typeof t.type == "string" && (t.type = Go[t.type]);
672
675
  }
673
676
  var mi = class {
674
677
  constructor() {
@@ -688,7 +691,7 @@ var mi = class {
688
691
  then(t, e) {
689
692
  return this.finished.then(t, e);
690
693
  }
691
- }, Zo = (t) => t / 100, re = class extends mi {
694
+ }, _o = (t) => t / 100, re = class extends mi {
692
695
  constructor(t) {
693
696
  super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
694
697
  done: !1,
@@ -704,7 +707,7 @@ var mi = class {
704
707
  const { type: e = wt, repeat: i = 0, repeatDelay: n = 0, repeatType: s, velocity: o = 0 } = t;
705
708
  let { keyframes: r } = t;
706
709
  const a = e || wt;
707
- process.env.NODE_ENV !== "production" && a !== wt && it(r.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`, "spring-two-frames"), a !== wt && typeof r[0] != "number" && (this.mixKeyframes = Ut(Zo, bs(r[0], r[1])), r = [0, 100]);
710
+ process.env.NODE_ENV !== "production" && a !== wt && tt(r.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`, "spring-two-frames"), a !== wt && typeof r[0] != "number" && (this.mixKeyframes = Ut(_o, bs(r[0], r[1])), r = [0, 100]);
708
711
  const l = a({
709
712
  ...t,
710
713
  keyframes: r
@@ -726,8 +729,8 @@ var mi = class {
726
729
  if (this.startTime === null) return i.next(0);
727
730
  const { delay: l = 0, keyframes: c, repeat: u, repeatType: h, repeatDelay: f, type: p, onUpdate: d, finalKeyframe: m } = this.options;
728
731
  this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - n / this.speed, this.startTime)), e ? this.currentTime = t : this.updateTime(t);
729
- const v = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), g = this.playbackSpeed >= 0 ? v < 0 : v > n;
730
- this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = n);
732
+ const g = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), v = this.playbackSpeed >= 0 ? g < 0 : g > n;
733
+ this.currentTime = Math.max(g, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = n);
731
734
  let T = this.currentTime, x = i;
732
735
  if (u) {
733
736
  const D = Math.min(this.currentTime, n) / r;
@@ -735,11 +738,11 @@ var mi = class {
735
738
  !E && D >= 1 && (E = 1), E === 1 && S--, S = Math.min(S, u + 1), S % 2 && (h === "reverse" ? (E = 1 - E, f && (E -= f / r)) : h === "mirror" && (x = o)), T = Q(0, 1, E) * r;
736
739
  }
737
740
  let w;
738
- g ? (this.delayState.value = c[0], w = this.delayState) : w = x.next(T), s && !g && (w.value = s(w.value));
741
+ v ? (this.delayState.value = c[0], w = this.delayState) : w = x.next(T), s && !v && (w.value = s(w.value));
739
742
  let { done: P } = w;
740
- !g && a !== null && (P = this.playbackSpeed >= 0 ? this.currentTime >= n : this.currentTime <= 0);
743
+ !v && a !== null && (P = this.playbackSpeed >= 0 ? this.currentTime >= n : this.currentTime <= 0);
741
744
  const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && P);
742
- return A && p !== Ie && (w.value = fe(c, this.options, m, this.speed)), d && d(w.value), A && this.finish(), w;
745
+ return A && p !== Fe && (w.value = fe(c, this.options, m, this.speed)), d && d(w.value), A && this.finish(), w;
743
746
  }
744
747
  then(t, e) {
745
748
  return this.finished.then(t, e);
@@ -773,7 +776,7 @@ var mi = class {
773
776
  }
774
777
  play() {
775
778
  if (this.isStopped) return;
776
- const { driver: t = Bo, startTime: e } = this.options;
779
+ const { driver: t = Eo, startTime: e } = this.options;
777
780
  this.driver || (this.driver = t((n) => this.tick(n))), this.options.onPlay?.();
778
781
  const i = this.driver.now();
779
782
  this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = e ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
@@ -803,13 +806,13 @@ var mi = class {
803
806
  return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
804
807
  }
805
808
  };
806
- function Jo(t) {
809
+ function Xo(t) {
807
810
  for (let e = 1; e < t.length; e++) t[e] ?? (t[e] = t[e - 1]);
808
811
  }
809
- var pt = (t) => t * 180 / Math.PI, Fe = (t) => {
812
+ var pt = (t) => t * 180 / Math.PI, Ie = (t) => {
810
813
  const e = pt(Math.atan2(t[1], t[0]));
811
814
  return Oe(e);
812
- }, Qo = {
815
+ }, Yo = {
813
816
  x: 4,
814
817
  y: 5,
815
818
  translateX: 4,
@@ -817,12 +820,12 @@ var pt = (t) => t * 180 / Math.PI, Fe = (t) => {
817
820
  scaleX: 0,
818
821
  scaleY: 3,
819
822
  scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
820
- rotate: Fe,
821
- rotateZ: Fe,
823
+ rotate: Ie,
824
+ rotateZ: Ie,
822
825
  skewX: (t) => pt(Math.atan(t[1])),
823
826
  skewY: (t) => pt(Math.atan(t[2])),
824
827
  skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
825
- }, Oe = (t) => (t = t % 360, t < 0 && (t += 360), t), Wi = Fe, $i = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Ki = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), ta = {
828
+ }, Oe = (t) => (t = t % 360, t < 0 && (t += 360), t), Wi = Ie, $i = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Ki = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), qo = {
826
829
  x: 12,
827
830
  y: 13,
828
831
  z: 14,
@@ -848,20 +851,20 @@ function Ne(t, e) {
848
851
  const i = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
849
852
  let n, s;
850
853
  if (i)
851
- n = ta, s = i;
854
+ n = qo, s = i;
852
855
  else {
853
856
  const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
854
- n = Qo, s = a;
857
+ n = Yo, s = a;
855
858
  }
856
859
  if (!s) return je(e);
857
- const o = n[e], r = s[1].split(",").map(ia);
860
+ const o = n[e], r = s[1].split(",").map(Jo);
858
861
  return typeof o == "function" ? o(r) : r[o];
859
862
  }
860
- var ea = (t, e) => {
863
+ var Zo = (t, e) => {
861
864
  const { transform: i = "none" } = getComputedStyle(t);
862
865
  return Ne(i, e);
863
866
  };
864
- function ia(t) {
867
+ function Jo(t) {
865
868
  return parseFloat(t.trim());
866
869
  }
867
870
  var Dt = [
@@ -882,14 +885,14 @@ var Dt = [
882
885
  "skew",
883
886
  "skewX",
884
887
  "skewY"
885
- ], Et = /* @__PURE__ */ new Set([...Dt, "pathRotation"]), _i = (t) => t === Ct || t === y, na = /* @__PURE__ */ new Set([
888
+ ], Et = /* @__PURE__ */ new Set([...Dt, "pathRotation"]), zi = (t) => t === Ct || t === y, Qo = /* @__PURE__ */ new Set([
886
889
  "x",
887
890
  "y",
888
891
  "z"
889
- ]), sa = Dt.filter((t) => !na.has(t));
890
- function ra(t) {
892
+ ]), ta = Dt.filter((t) => !Qo.has(t));
893
+ function ea(t) {
891
894
  const e = [];
892
- return sa.forEach((i) => {
895
+ return ta.forEach((i) => {
893
896
  const n = t.getValue(i);
894
897
  n !== void 0 && (e.push([i, n.get()]), n.set(i.startsWith("scale") ? 1 : 0));
895
898
  }), e;
@@ -917,7 +920,7 @@ function Ds() {
917
920
  if (We) {
918
921
  const t = Array.from(mt).filter((n) => n.needsMeasurement), e = new Set(t.map((n) => n.element)), i = /* @__PURE__ */ new Map();
919
922
  e.forEach((n) => {
920
- const s = ra(n);
923
+ const s = ea(n);
921
924
  s.length && (i.set(n, s), n.render());
922
925
  }), t.forEach((n) => n.measureInitialState()), e.forEach((n) => {
923
926
  n.render();
@@ -936,7 +939,7 @@ function Es() {
936
939
  t.readKeyframes(), t.needsMeasurement && (We = !0);
937
940
  });
938
941
  }
939
- function oa() {
942
+ function ia() {
940
943
  $e = !0, Es(), Ds(), $e = !1;
941
944
  }
942
945
  var vi = class {
@@ -957,7 +960,7 @@ var vi = class {
957
960
  }
958
961
  t[0] === void 0 && (t[0] = o), n && s === void 0 && n.set(t[0]);
959
962
  }
960
- Jo(t);
963
+ Xo(t);
961
964
  }
962
965
  setFinalKeyframe() {
963
966
  }
@@ -976,23 +979,23 @@ var vi = class {
976
979
  resume() {
977
980
  this.state === "pending" && this.scheduleResolve();
978
981
  }
979
- }, aa = (t) => t.startsWith("--");
982
+ }, na = (t) => t.startsWith("--");
980
983
  function Rs(t, e, i) {
981
- aa(e) ? t.style.setProperty(e, i) : t.style[e] = i;
984
+ na(e) ? t.style.setProperty(e, i) : t.style[e] = i;
982
985
  }
983
- var la = {};
986
+ var sa = {};
984
987
  function Ls(t, e) {
985
988
  const i = /* @__PURE__ */ ss(t);
986
- return () => la[e] ?? i();
989
+ return () => sa[e] ?? i();
987
990
  }
988
- var ua = /* @__PURE__ */ Ls(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ks = /* @__PURE__ */ Ls(() => {
991
+ var ra = /* @__PURE__ */ Ls(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ks = /* @__PURE__ */ Ls(() => {
989
992
  try {
990
993
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
991
994
  } catch {
992
995
  return !1;
993
996
  }
994
997
  return !0;
995
- }, "linearEasing"), Lt = ([t, e, i, n]) => `cubic-bezier(${t}, ${e}, ${i}, ${n})`, zi = {
998
+ }, "linearEasing"), Lt = ([t, e, i, n]) => `cubic-bezier(${t}, ${e}, ${i}, ${n})`, Hi = {
996
999
  linear: "linear",
997
1000
  ease: "ease",
998
1001
  easeIn: "ease-in",
@@ -1024,9 +1027,9 @@ var ua = /* @__PURE__ */ Ls(() => window.ScrollTimeline !== void 0, "scrollTimel
1024
1027
  ])
1025
1028
  };
1026
1029
  function Bs(t, e) {
1027
- if (t) return typeof t == "function" ? ks() ? As(t, e) : "ease-out" : ms(t) ? Lt(t) : Array.isArray(t) ? t.map((i) => Bs(i, e) || zi.easeOut) : zi[t];
1030
+ if (t) return typeof t == "function" ? ks() ? As(t, e) : "ease-out" : ms(t) ? Lt(t) : Array.isArray(t) ? t.map((i) => Bs(i, e) || Hi.easeOut) : Hi[t];
1028
1031
  }
1029
- function ca(t, e, i, { delay: n = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1032
+ function oa(t, e, i, { delay: n = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1030
1033
  const u = { [e]: i };
1031
1034
  l && (u.offset = l);
1032
1035
  const h = Bs(a, s);
@@ -1041,19 +1044,19 @@ function ca(t, e, i, { delay: n = 0, duration: s = 300, repeat: o = 0, repeatTyp
1041
1044
  };
1042
1045
  return c && (f.pseudoElement = c), t.animate(u, f);
1043
1046
  }
1044
- function Is(t) {
1047
+ function Fs(t) {
1045
1048
  return typeof t == "function" && "applyToOptions" in t;
1046
1049
  }
1047
- function ha({ type: t, ...e }) {
1048
- return Is(t) && ks() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1050
+ function aa({ type: t, ...e }) {
1051
+ return Fs(t) && ks() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1049
1052
  }
1050
- var Fs = class extends mi {
1053
+ var Is = class extends mi {
1051
1054
  constructor(t) {
1052
1055
  if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t) return;
1053
1056
  const { element: e, name: i, keyframes: n, pseudoElement: s, allowFlatten: o = !1, finalKeyframe: r, onComplete: a } = t;
1054
- this.isPseudoElement = !!s, this.allowFlatten = o, this.options = t, it(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1055
- const l = ha(t);
1056
- this.animation = ca(e, i, n, l, s), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1057
+ this.isPseudoElement = !!s, this.allowFlatten = o, this.options = t, tt(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1058
+ const l = aa(t);
1059
+ this.animation = oa(e, i, n, l, s), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1057
1060
  if (this.finishedTime = this.time, !s) {
1058
1061
  const c = fe(n, this.options, r, this.speed);
1059
1062
  this.updateMotionValue && this.updateMotionValue(c), Rs(e, i, c), this.animation.cancel();
@@ -1117,22 +1120,22 @@ var Fs = class extends mi {
1117
1120
  this.manualStartTime = this.animation.startTime = t;
1118
1121
  }
1119
1122
  attachTimeline({ timeline: t, rangeStart: e, rangeEnd: i, observe: n }) {
1120
- return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && ua() ? (this.animation.timeline = t, e && (this.animation.rangeStart = e), i && (this.animation.rangeEnd = i), _) : n(this);
1123
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && ra() ? (this.animation.timeline = t, e && (this.animation.rangeStart = e), i && (this.animation.rangeEnd = i), z) : n(this);
1121
1124
  }
1122
1125
  }, Os = {
1123
1126
  anticipate: hs,
1124
1127
  backInOut: cs,
1125
1128
  circInOut: ds
1126
1129
  };
1127
- function fa(t) {
1130
+ function la(t) {
1128
1131
  return t in Os;
1129
1132
  }
1130
- function da(t) {
1131
- typeof t.ease == "string" && fa(t.ease) && (t.ease = Os[t.ease]);
1133
+ function ua(t) {
1134
+ typeof t.ease == "string" && la(t.ease) && (t.ease = Os[t.ease]);
1132
1135
  }
1133
- var xe = 10, pa = class extends Fs {
1136
+ var xe = 10, ca = class extends Is {
1134
1137
  constructor(t) {
1135
- da(t), Cs(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
1138
+ ua(t), Cs(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
1136
1139
  }
1137
1140
  updateMotionValue(t) {
1138
1141
  const { motionValue: e, onUpdate: i, onComplete: n, element: s, ...o } = this.options;
@@ -1147,18 +1150,18 @@ var xe = 10, pa = class extends Fs {
1147
1150
  }), a = Math.max(xe, O.now() - this.startTime), l = Q(0, xe, a - xe), c = r.sample(a).value, { name: u } = this.options;
1148
1151
  s && u && Rs(s, u, c), e.setWithVelocity(r.sample(Math.max(0, a - l)).value, c, l), r.stop();
1149
1152
  }
1150
- }, Hi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (G.test(t) || t === "0") && !t.startsWith("url("));
1151
- function ma(t) {
1153
+ }, Gi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (_.test(t) || t === "0") && !t.startsWith("url("));
1154
+ function ha(t) {
1152
1155
  const e = t[0];
1153
1156
  if (t.length === 1) return !0;
1154
1157
  for (let i = 0; i < t.length; i++) if (t[i] !== e) return !0;
1155
1158
  }
1156
- function va(t, e, i, n) {
1159
+ function fa(t, e, i, n) {
1157
1160
  const s = t[0];
1158
1161
  if (s === null) return !1;
1159
1162
  if (e === "display" || e === "visibility") return !0;
1160
- const o = t[t.length - 1], r = Hi(s, e), a = Hi(o, e);
1161
- return Mt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : ma(t) || (i === "spring" || Is(i)) && n;
1163
+ const o = t[t.length - 1], r = Gi(s, e), a = Gi(o, e);
1164
+ return Mt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : ha(t) || (i === "spring" || Fs(i)) && n;
1162
1165
  }
1163
1166
  function Ke(t) {
1164
1167
  t.duration = 0, t.type = "keyframes";
@@ -1167,13 +1170,14 @@ var js = /* @__PURE__ */ new Set([
1167
1170
  "opacity",
1168
1171
  "clipPath",
1169
1172
  "filter",
1170
- "transform"
1171
- ]), ga = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1172
- function ya(t) {
1173
- for (let e = 0; e < t.length; e++) if (typeof t[e] == "string" && ga.test(t[e])) return !0;
1173
+ "transform",
1174
+ "backgroundColor"
1175
+ ]), da = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1176
+ function pa(t) {
1177
+ for (let e = 0; e < t.length; e++) if (typeof t[e] == "string" && da.test(t[e])) return !0;
1174
1178
  return !1;
1175
1179
  }
1176
- var Ta = /* @__PURE__ */ new Set([
1180
+ var ma = /* @__PURE__ */ new Set([
1177
1181
  "color",
1178
1182
  "backgroundColor",
1179
1183
  "outlineColor",
@@ -1184,14 +1188,14 @@ var Ta = /* @__PURE__ */ new Set([
1184
1188
  "borderRightColor",
1185
1189
  "borderBottomColor",
1186
1190
  "borderLeftColor"
1187
- ]), xa = /* @__PURE__ */ ss(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1188
- function wa(t) {
1189
- const { motionValue: e, name: i, repeatDelay: n, repeatType: s, damping: o, type: r, keyframes: a } = t;
1190
- if (!(e?.owner?.current instanceof HTMLElement)) return !1;
1191
- const { onUpdate: l, transformTemplate: c } = e.owner.getProps();
1192
- return xa() && i && (js.has(i) || Ta.has(i) && ya(a)) && (i !== "transform" || !c) && !l && !n && s !== "mirror" && o !== 0 && r !== "inertia";
1193
- }
1194
- var Pa = 40, Sa = class extends mi {
1191
+ ]), va = /* @__PURE__ */ ss(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1192
+ function ga(t) {
1193
+ const { motionValue: e, name: i, repeatDelay: n, repeatType: s, damping: o, type: r, keyframes: a } = t, l = e?.owner?.current;
1194
+ if (!(l instanceof HTMLElement) && !(l instanceof SVGElement)) return !1;
1195
+ const { onUpdate: c, transformTemplate: u } = e.owner.getProps();
1196
+ return va() && i && (js.has(i) || ma.has(i) && pa(a)) && (i !== "transform" || !u) && !c && !n && s !== "mirror" && o !== 0 && r !== "inertia";
1197
+ }
1198
+ var ya = 40, Ta = class extends mi {
1195
1199
  constructor({ autoplay: t = !0, delay: e = 0, type: i = "keyframes", repeat: n = 0, repeatDelay: s = 0, repeatType: o = "loop", keyframes: r, name: a, motionValue: l, element: c, ...u }) {
1196
1200
  super(), this.stop = () => {
1197
1201
  this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
@@ -1215,16 +1219,16 @@ var Pa = 40, Sa = class extends mi {
1215
1219
  const { name: s, type: o, velocity: r, delay: a, isHandoff: l, onUpdate: c } = i;
1216
1220
  this.resolvedAt = O.now();
1217
1221
  let u = !0;
1218
- va(t, s, o, r) || (u = !1, (st.instantAnimations || !a) && c?.(fe(t, i, e)), t[0] = t[t.length - 1], Ke(i), i.repeat = 0);
1222
+ fa(t, s, o, r) || (u = !1, (st.instantAnimations || !a) && c?.(fe(t, i, e)), t[0] = t[t.length - 1], Ke(i), i.repeat = 0);
1219
1223
  const h = {
1220
- startTime: n ? this.resolvedAt ? this.resolvedAt - this.createdAt > Pa ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1224
+ startTime: n ? this.resolvedAt ? this.resolvedAt - this.createdAt > ya ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1221
1225
  finalKeyframe: e,
1222
1226
  ...i,
1223
1227
  keyframes: t
1224
- }, f = u && !l && wa(h), p = h.motionValue?.owner?.current;
1228
+ }, f = u && !l && ga(h), p = h.motionValue?.owner?.current;
1225
1229
  let d;
1226
1230
  if (f) try {
1227
- d = new pa({
1231
+ d = new ca({
1228
1232
  ...h,
1229
1233
  element: p
1230
1234
  });
@@ -1234,7 +1238,7 @@ var Pa = 40, Sa = class extends mi {
1234
1238
  else d = new re(h);
1235
1239
  d.finished.then(() => {
1236
1240
  this.notifyFinished();
1237
- }).catch(_), this.pendingTimeline && (this.stopTimeline = d.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = d;
1241
+ }).catch(z), this.pendingTimeline && (this.stopTimeline = d.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = d;
1238
1242
  }
1239
1243
  get finished() {
1240
1244
  return this._animation ? this.animation.finished : this._finished;
@@ -1244,7 +1248,7 @@ var Pa = 40, Sa = class extends mi {
1244
1248
  });
1245
1249
  }
1246
1250
  get animation() {
1247
- return this._animation || (this.keyframeResolver?.resume(), oa()), this._animation;
1251
+ return this._animation || (this.keyframeResolver?.resume(), ia()), this._animation;
1248
1252
  }
1249
1253
  get duration() {
1250
1254
  return this.animation.duration;
@@ -1290,7 +1294,7 @@ function Ns(t, e, i, n = 0, s = 1) {
1290
1294
  const o = Array.from(t).sort((l, c) => l.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * n;
1291
1295
  return typeof i == "function" ? i(o, r) : s === 1 ? o * n : a - o * n;
1292
1296
  }
1293
- var Gi = 30, ba = (t) => !isNaN(parseFloat(t)), Xi = { current: void 0 }, Aa = class {
1297
+ var _i = 30, xa = (t) => !isNaN(parseFloat(t)), Xi = { current: void 0 }, wa = class {
1294
1298
  constructor(t, e = {}) {
1295
1299
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
1296
1300
  const n = O.now();
@@ -1299,7 +1303,7 @@ var Gi = 30, ba = (t) => !isNaN(parseFloat(t)), Xi = { current: void 0 }, Aa = c
1299
1303
  }, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
1300
1304
  }
1301
1305
  setCurrent(t) {
1302
- this.current = t, this.updatedAt = O.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = ba(this.current));
1306
+ this.current = t, this.updatedAt = O.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = xa(this.current));
1303
1307
  }
1304
1308
  setPrevFrameValue(t = this.current) {
1305
1309
  this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
@@ -1348,8 +1352,8 @@ var Gi = 30, ba = (t) => !isNaN(parseFloat(t)), Xi = { current: void 0 }, Aa = c
1348
1352
  }
1349
1353
  getVelocity() {
1350
1354
  const t = O.now();
1351
- if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Gi) return 0;
1352
- const e = Math.min(this.updatedAt - this.prevUpdatedAt, Gi);
1355
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > _i) return 0;
1356
+ const e = Math.min(this.updatedAt - this.prevUpdatedAt, _i);
1353
1357
  return rs(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
1354
1358
  }
1355
1359
  start(t) {
@@ -1373,7 +1377,7 @@ var Gi = 30, ba = (t) => !isNaN(parseFloat(t)), Xi = { current: void 0 }, Aa = c
1373
1377
  }
1374
1378
  };
1375
1379
  function At(t, e) {
1376
- return new Aa(t, e);
1380
+ return new wa(t, e);
1377
1381
  }
1378
1382
  function Us(t, e) {
1379
1383
  if (t?.inherit && e) {
@@ -1389,20 +1393,20 @@ function gi(t, e) {
1389
1393
  const i = t?.[e] ?? t?.default ?? t;
1390
1394
  return i !== t ? Us(i, t) : i;
1391
1395
  }
1392
- var Va = {
1396
+ var Pa = {
1393
1397
  type: "spring",
1394
1398
  stiffness: 500,
1395
1399
  damping: 25,
1396
1400
  restSpeed: 10
1397
- }, Ma = (t) => ({
1401
+ }, Sa = (t) => ({
1398
1402
  type: "spring",
1399
1403
  stiffness: 550,
1400
1404
  damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1401
1405
  restSpeed: 10
1402
- }), Ca = {
1406
+ }), ba = {
1403
1407
  type: "keyframes",
1404
1408
  duration: 0.8
1405
- }, Da = {
1409
+ }, Aa = {
1406
1410
  type: "keyframes",
1407
1411
  ease: [
1408
1412
  0.25,
@@ -1411,7 +1415,7 @@ var Va = {
1411
1415
  1
1412
1416
  ],
1413
1417
  duration: 0.3
1414
- }, Ea = (t, { keyframes: e }) => e.length > 2 ? Ca : Et.has(t) ? t.startsWith("scale") ? Ma(e[1]) : Va : Da, Ra = /* @__PURE__ */ new Set([
1418
+ }, Va = (t, { keyframes: e }) => e.length > 2 ? ba : Et.has(t) ? t.startsWith("scale") ? Sa(e[1]) : Pa : Aa, Ma = /* @__PURE__ */ new Set([
1415
1419
  "when",
1416
1420
  "delay",
1417
1421
  "delayChildren",
@@ -1423,8 +1427,8 @@ var Va = {
1423
1427
  "from",
1424
1428
  "elapsed"
1425
1429
  ]);
1426
- function La(t) {
1427
- for (const e in t) if (!Ra.has(e)) return !0;
1430
+ function Ca(t) {
1431
+ for (const e in t) if (!Ma.has(e)) return !0;
1428
1432
  return !1;
1429
1433
  }
1430
1434
  var yi = (t, e, i, n = {}, s, o) => (r) => {
@@ -1447,7 +1451,7 @@ var yi = (t, e, i, n = {}, s, o) => (r) => {
1447
1451
  motionValue: e,
1448
1452
  element: o ? void 0 : s
1449
1453
  };
1450
- La(a) || Object.assign(u, Ea(t, u)), u.duration && (u.duration = W(u.duration)), u.repeatDelay && (u.repeatDelay = W(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1454
+ Ca(a) || Object.assign(u, Va(t, u)), u.duration && (u.duration = W(u.duration)), u.repeatDelay && (u.repeatDelay = W(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1451
1455
  let h = !1;
1452
1456
  if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ke(u), u.delay === 0 && (h = !0)), (st.instantAnimations || st.skipAnimations || s?.shouldSkipAnimations || a.skipAnimations) && (h = !0, Ke(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1453
1457
  const f = fe(u.keyframes, a);
@@ -1458,18 +1462,18 @@ var yi = (t, e, i, n = {}, s, o) => (r) => {
1458
1462
  return;
1459
1463
  }
1460
1464
  }
1461
- return a.isSync ? new re(u) : new Sa(u);
1462
- }, ka = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1463
- function Ba(t) {
1464
- const e = ka.exec(t);
1465
+ return a.isSync ? new re(u) : new Ta(u);
1466
+ }, Da = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1467
+ function Ea(t) {
1468
+ const e = Da.exec(t);
1465
1469
  if (!e) return [,];
1466
1470
  const [, i, n, s] = e;
1467
1471
  return [`--${i ?? n}`, s];
1468
1472
  }
1469
- var Ia = 4;
1473
+ var Ra = 4;
1470
1474
  function Ws(t, e, i = 1) {
1471
- it(i <= Ia, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1472
- const [n, s] = Ba(t);
1475
+ tt(i <= Ra, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1476
+ const [n, s] = Ea(t);
1473
1477
  if (!n) return;
1474
1478
  const o = window.getComputedStyle(e).getPropertyValue(n);
1475
1479
  if (o) {
@@ -1507,28 +1511,28 @@ var $s = /* @__PURE__ */ new Set([
1507
1511
  "right",
1508
1512
  "bottom",
1509
1513
  ...Dt
1510
- ]), _e = (t) => Array.isArray(t);
1511
- function Fa(t, e, i) {
1514
+ ]), ze = (t) => Array.isArray(t);
1515
+ function La(t, e, i) {
1512
1516
  t.hasValue(e) ? t.getValue(e).set(i) : t.addValue(e, At(i));
1513
1517
  }
1514
- function Oa(t) {
1515
- return _e(t) ? t[t.length - 1] || 0 : t;
1518
+ function ka(t) {
1519
+ return ze(t) ? t[t.length - 1] || 0 : t;
1516
1520
  }
1517
- function ja(t, e) {
1521
+ function Ba(t, e) {
1518
1522
  let { transitionEnd: i = {}, transition: n = {}, ...s } = vt(t, e) || {};
1519
1523
  s = {
1520
1524
  ...s,
1521
1525
  ...i
1522
1526
  };
1523
- for (const o in s) Fa(t, o, Oa(s[o]));
1527
+ for (const o in s) La(t, o, ka(s[o]));
1524
1528
  }
1525
- var F = (t) => !!(t && t.getVelocity);
1526
- function Na(t) {
1527
- return !!(F(t) && t.add);
1529
+ var I = (t) => !!(t && t.getVelocity);
1530
+ function Fa(t) {
1531
+ return !!(I(t) && t.add);
1528
1532
  }
1529
- function ze(t, e) {
1533
+ function He(t, e) {
1530
1534
  const i = t.getValue("willChange");
1531
- if (Na(i)) return i.add(e);
1535
+ if (Fa(i)) return i.add(e);
1532
1536
  if (!i && st.WillChange) {
1533
1537
  const n = new st.WillChange("auto");
1534
1538
  t.addValue("willChange", n), n.add(e);
@@ -1537,15 +1541,16 @@ function ze(t, e) {
1537
1541
  function xi(t) {
1538
1542
  return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1539
1543
  }
1540
- var Ua = "framerAppearId", Ks = "data-" + xi(Ua);
1541
- function _s(t) {
1544
+ var Ia = "framerAppearId", Ks = "data-" + xi(Ia);
1545
+ function zs(t) {
1542
1546
  return t.props[Ks];
1543
1547
  }
1544
- function Wa({ protectedKeys: t, needsAnimating: e }, i) {
1548
+ var Oa = typeof window < "u";
1549
+ function ja({ protectedKeys: t, needsAnimating: e }, i) {
1545
1550
  const n = t.hasOwnProperty(i) && e[i] !== !0;
1546
1551
  return e[i] = !1, n;
1547
1552
  }
1548
- function zs(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1553
+ function Hs(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1549
1554
  let { transition: o, transitionEnd: r, ...a } = e;
1550
1555
  const l = t.getDefaultTransition();
1551
1556
  o = o ? Us(o, l) : l;
@@ -1554,118 +1559,118 @@ function zs(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1554
1559
  const h = [], f = s && t.animationState && t.animationState.getState()[s], p = o?.path;
1555
1560
  p && p.animateVisualElement(t, a, o, i, h);
1556
1561
  for (const d in a) {
1557
- const m = t.getValue(d, t.latestValues[d] ?? null), v = a[d];
1558
- if (v === void 0 || f && Wa(f, d)) continue;
1559
- const g = {
1562
+ const m = t.getValue(d, t.latestValues[d] ?? null), g = a[d];
1563
+ if (g === void 0 || f && ja(f, d)) continue;
1564
+ const v = {
1560
1565
  delay: i,
1561
1566
  ...gi(o || {}, d)
1562
1567
  };
1563
- u && (g.skipAnimations = !0);
1568
+ u && (v.skipAnimations = !0);
1564
1569
  const T = m.get();
1565
- if (T !== void 0 && !m.isAnimating() && !Array.isArray(v) && v === T && !g.velocity) {
1566
- M.update(() => m.set(v));
1570
+ if (T !== void 0 && !m.isAnimating() && !Array.isArray(g) && g === T && !v.velocity) {
1571
+ M.update(() => m.set(g));
1567
1572
  continue;
1568
1573
  }
1569
1574
  let x = !1;
1570
- if (window.MotionHandoffAnimation) {
1571
- const A = _s(t);
1575
+ if (Oa && window.MotionHandoffAnimation) {
1576
+ const A = zs(t);
1572
1577
  if (A) {
1573
1578
  const D = window.MotionHandoffAnimation(A, d, M);
1574
- D !== null && (g.startTime = D, x = !0);
1579
+ D !== null && (v.startTime = D, x = !0);
1575
1580
  }
1576
1581
  }
1577
- ze(t, d);
1582
+ He(t, d);
1578
1583
  const w = c ?? t.shouldReduceMotion;
1579
- m.start(yi(d, m, v, w && $s.has(d) ? { type: !1 } : g, t, x));
1584
+ m.start(yi(d, m, g, w && $s.has(d) ? { type: !1 } : v, t, x));
1580
1585
  const P = m.animation;
1581
1586
  P && h.push(P);
1582
1587
  }
1583
1588
  if (r) {
1584
1589
  const d = () => M.update(() => {
1585
- r && ja(t, r);
1590
+ r && Ba(t, r);
1586
1591
  });
1587
1592
  h.length ? Promise.all(h).then(d) : d();
1588
1593
  }
1589
1594
  return h;
1590
1595
  }
1591
- function He(t, e, i = {}) {
1596
+ function Ge(t, e, i = {}) {
1592
1597
  const n = vt(t, e, i.type === "exit" ? t.presenceContext?.custom : void 0);
1593
1598
  let { transition: s = t.getDefaultTransition() || {} } = n || {};
1594
1599
  i.transitionOverride && (s = i.transitionOverride);
1595
- const o = n ? () => Promise.all(zs(t, n, i)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1600
+ const o = n ? () => Promise.all(Hs(t, n, i)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1596
1601
  const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = s;
1597
- return $a(t, e, l, c, u, h, i);
1602
+ return Na(t, e, l, c, u, h, i);
1598
1603
  } : () => Promise.resolve(), { when: a } = s;
1599
1604
  if (a) {
1600
1605
  const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
1601
1606
  return l().then(() => c());
1602
1607
  } else return Promise.all([o(), r(i.delay)]);
1603
1608
  }
1604
- function $a(t, e, i = 0, n = 0, s = 0, o = 1, r) {
1609
+ function Na(t, e, i = 0, n = 0, s = 0, o = 1, r) {
1605
1610
  const a = [];
1606
1611
  for (const l of t.variantChildren)
1607
- l.notify("AnimationStart", e), a.push(He(l, e, {
1612
+ l.notify("AnimationStart", e), a.push(Ge(l, e, {
1608
1613
  ...r,
1609
1614
  delay: i + (typeof n == "function" ? 0 : n) + Ns(t.variantChildren, l, n, s, o)
1610
1615
  }).then(() => l.notify("AnimationComplete", e)));
1611
1616
  return Promise.all(a);
1612
1617
  }
1613
- function Ka(t, e, i = {}) {
1618
+ function Ua(t, e, i = {}) {
1614
1619
  t.notify("AnimationStart", e);
1615
1620
  let n;
1616
1621
  if (Array.isArray(e)) {
1617
- const s = e.map((o) => He(t, o, i));
1622
+ const s = e.map((o) => Ge(t, o, i));
1618
1623
  n = Promise.all(s);
1619
- } else if (typeof e == "string") n = He(t, e, i);
1624
+ } else if (typeof e == "string") n = Ge(t, e, i);
1620
1625
  else {
1621
1626
  const s = typeof e == "function" ? vt(t, e, i.custom) : e;
1622
- n = Promise.all(zs(t, s, i));
1627
+ n = Promise.all(Hs(t, s, i));
1623
1628
  }
1624
1629
  return n.then(() => {
1625
1630
  t.notify("AnimationComplete", e);
1626
1631
  });
1627
1632
  }
1628
- var _a = {
1633
+ var Wa = {
1629
1634
  test: (t) => t === "auto",
1630
1635
  parse: (t) => t
1631
- }, Hs = (t) => (e) => e.test(t), Gs = [
1636
+ }, Gs = (t) => (e) => e.test(t), _s = [
1632
1637
  Ct,
1633
1638
  y,
1634
1639
  J,
1635
- et,
1636
- mo,
1637
- po,
1638
- _a
1639
- ], qi = (t) => Gs.find(Hs(t));
1640
- function za(t) {
1640
+ it,
1641
+ co,
1642
+ uo,
1643
+ Wa
1644
+ ], qi = (t) => _s.find(Gs(t));
1645
+ function $a(t) {
1641
1646
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || ns(t) : !0;
1642
1647
  }
1643
- var Ha = /* @__PURE__ */ new Set([
1648
+ var Ka = /* @__PURE__ */ new Set([
1644
1649
  "brightness",
1645
1650
  "contrast",
1646
1651
  "saturate",
1647
1652
  "opacity"
1648
1653
  ]);
1649
- function Ga(t) {
1654
+ function za(t) {
1650
1655
  const [e, i] = t.slice(0, -1).split("(");
1651
1656
  if (e === "drop-shadow") return t;
1652
1657
  const [n] = i.match(hi) || [];
1653
1658
  if (!n) return t;
1654
1659
  const s = i.replace(n, "");
1655
- let o = Ha.has(e) ? 1 : 0;
1660
+ let o = Ka.has(e) ? 1 : 0;
1656
1661
  return n !== i && (o *= 100), e + "(" + o + s + ")";
1657
1662
  }
1658
- var Xa = /\b([a-z-]*)\(.*?\)/gu, Ge = {
1659
- ...G,
1663
+ var Ha = /\b([a-z-]*)\(.*?\)/gu, _e = {
1664
+ ..._,
1660
1665
  getAnimatableNone: (t) => {
1661
- const e = t.match(Xa);
1662
- return e ? e.map(Ga).join(" ") : t;
1666
+ const e = t.match(Ha);
1667
+ return e ? e.map(za).join(" ") : t;
1663
1668
  }
1664
1669
  }, Xe = {
1665
- ...G,
1670
+ ..._,
1666
1671
  getAnimatableNone: (t) => {
1667
- const e = G.parse(t);
1668
- return G.createTransformer(t)(e.map((i) => typeof i == "number" ? 0 : typeof i == "object" ? {
1672
+ const e = _.parse(t);
1673
+ return _.createTransformer(t)(e.map((i) => typeof i == "number" ? 0 : typeof i == "object" ? {
1669
1674
  ...i,
1670
1675
  alpha: 1
1671
1676
  } : i));
@@ -1673,19 +1678,19 @@ var Xa = /\b([a-z-]*)\(.*?\)/gu, Ge = {
1673
1678
  }, Zi = {
1674
1679
  ...Ct,
1675
1680
  transform: Math.round
1676
- }, Ya = {
1677
- rotate: et,
1678
- pathRotation: et,
1679
- rotateX: et,
1680
- rotateY: et,
1681
- rotateZ: et,
1682
- scale: zt,
1683
- scaleX: zt,
1684
- scaleY: zt,
1685
- scaleZ: zt,
1686
- skew: et,
1687
- skewX: et,
1688
- skewY: et,
1681
+ }, Ga = {
1682
+ rotate: it,
1683
+ pathRotation: it,
1684
+ rotateX: it,
1685
+ rotateY: it,
1686
+ rotateZ: it,
1687
+ scale: Ht,
1688
+ scaleX: Ht,
1689
+ scaleY: Ht,
1690
+ scaleZ: Ht,
1691
+ skew: it,
1692
+ skewX: it,
1693
+ skewY: it,
1689
1694
  distance: y,
1690
1695
  translateX: y,
1691
1696
  translateY: y,
@@ -1696,8 +1701,8 @@ var Xa = /\b([a-z-]*)\(.*?\)/gu, Ge = {
1696
1701
  perspective: y,
1697
1702
  transformPerspective: y,
1698
1703
  opacity: Ot,
1699
- originX: Ii,
1700
- originY: Ii,
1704
+ originX: Fi,
1705
+ originY: Fi,
1701
1706
  originZ: y
1702
1707
  }, oe = {
1703
1708
  borderWidth: y,
@@ -1750,12 +1755,12 @@ var Xa = /\b([a-z-]*)\(.*?\)/gu, Ge = {
1750
1755
  fontSize: y,
1751
1756
  backgroundPositionX: y,
1752
1757
  backgroundPositionY: y,
1753
- ...Ya,
1758
+ ...Ga,
1754
1759
  zIndex: Zi,
1755
1760
  fillOpacity: Ot,
1756
1761
  strokeOpacity: Ot,
1757
1762
  numOctaves: Zi
1758
- }, qa = {
1763
+ }, _a = {
1759
1764
  ...oe,
1760
1765
  color: R,
1761
1766
  backgroundColor: R,
@@ -1767,29 +1772,29 @@ var Xa = /\b([a-z-]*)\(.*?\)/gu, Ge = {
1767
1772
  borderRightColor: R,
1768
1773
  borderBottomColor: R,
1769
1774
  borderLeftColor: R,
1770
- filter: Ge,
1771
- WebkitFilter: Ge,
1775
+ filter: _e,
1776
+ WebkitFilter: _e,
1772
1777
  mask: Xe,
1773
1778
  WebkitMask: Xe
1774
- }, Xs = (t) => qa[t], Za = /* @__PURE__ */ new Set([Ge, Xe]);
1779
+ }, Xs = (t) => _a[t], Xa = /* @__PURE__ */ new Set([_e, Xe]);
1775
1780
  function Ys(t, e) {
1776
1781
  let i = Xs(t);
1777
- return Za.has(i) || (i = G), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
1782
+ return Xa.has(i) || (i = _), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
1778
1783
  }
1779
- var Ja = /* @__PURE__ */ new Set([
1784
+ var Ya = /* @__PURE__ */ new Set([
1780
1785
  "auto",
1781
1786
  "none",
1782
1787
  "0"
1783
1788
  ]);
1784
- function Qa(t, e, i) {
1789
+ function qa(t, e, i) {
1785
1790
  let n = 0, s;
1786
1791
  for (; n < t.length && !s; ) {
1787
1792
  const o = t[n];
1788
- typeof o == "string" && !Ja.has(o) && bt(o).values.length && (s = t[n]), n++;
1793
+ typeof o == "string" && !Ya.has(o) && bt(o).values.length && (s = t[n]), n++;
1789
1794
  }
1790
1795
  if (s && i) for (const o of e) t[o] = Ys(i, s);
1791
1796
  }
1792
- var tl = class extends vi {
1797
+ var Za = class extends vi {
1793
1798
  constructor(t, e, i, n, s) {
1794
1799
  super(t, e, i, n, s, !0);
1795
1800
  }
@@ -1811,7 +1816,7 @@ var tl = class extends vi {
1811
1816
  return;
1812
1817
  }
1813
1818
  if (o !== r)
1814
- if (_i(o) && _i(r)) for (let a = 0; a < t.length; a++) {
1819
+ if (zi(o) && zi(r)) for (let a = 0; a < t.length; a++) {
1815
1820
  const l = t[a];
1816
1821
  typeof l == "string" && (t[a] = parseFloat(l));
1817
1822
  }
@@ -1819,8 +1824,8 @@ var tl = class extends vi {
1819
1824
  }
1820
1825
  resolveNoneKeyframes() {
1821
1826
  const { unresolvedKeyframes: t, name: e } = this, i = [];
1822
- for (let n = 0; n < t.length; n++) (t[n] === null || za(t[n])) && i.push(n);
1823
- i.length && Qa(t, i, e);
1827
+ for (let n = 0; n < t.length; n++) (t[n] === null || $a(t[n])) && i.push(n);
1828
+ i.length && qa(t, i, e);
1824
1829
  }
1825
1830
  measureInitialState() {
1826
1831
  const { element: t, unresolvedKeyframes: e, name: i } = this;
@@ -1857,21 +1862,21 @@ function qs(t, e, i) {
1857
1862
  return Array.from(t).filter((n) => n != null);
1858
1863
  }
1859
1864
  var Ye = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1860
- function el(t) {
1865
+ function Ja(t) {
1861
1866
  return is(t) && "offsetHeight" in t && !("ownerSVGElement" in t);
1862
1867
  }
1863
- var { schedule: Pi, cancel: qc } = /* @__PURE__ */ vs(queueMicrotask, !1), H = {
1868
+ var { schedule: Pi, cancel: Kc } = /* @__PURE__ */ vs(queueMicrotask, !1), G = {
1864
1869
  x: !1,
1865
1870
  y: !1
1866
1871
  };
1867
1872
  function Zs() {
1868
- return H.x || H.y;
1873
+ return G.x || G.y;
1869
1874
  }
1870
- function il(t) {
1871
- return t === "x" || t === "y" ? H[t] ? null : (H[t] = !0, () => {
1872
- H[t] = !1;
1873
- }) : H.x || H.y ? null : (H.x = H.y = !0, () => {
1874
- H.x = H.y = !1;
1875
+ function Qa(t) {
1876
+ return t === "x" || t === "y" ? G[t] ? null : (G[t] = !0, () => {
1877
+ G[t] = !1;
1878
+ }) : G.x || G.y ? null : (G.x = G.y = !0, () => {
1879
+ G.x = G.y = !1;
1875
1880
  });
1876
1881
  }
1877
1882
  function Js(t, e) {
@@ -1886,55 +1891,55 @@ function Js(t, e) {
1886
1891
  () => n.abort()
1887
1892
  ];
1888
1893
  }
1889
- function nl(t) {
1894
+ function tl(t) {
1890
1895
  return !(t.pointerType === "touch" || Zs());
1891
1896
  }
1892
- function sl(t, e, i = {}) {
1897
+ function el(t, e, i = {}) {
1893
1898
  const [n, s, o] = Js(t, i);
1894
1899
  return n.forEach((r) => {
1895
1900
  let a = !1, l = !1, c;
1896
1901
  const u = () => {
1897
1902
  r.removeEventListener("pointerleave", d);
1898
- }, h = (v) => {
1899
- c && (c(v), c = void 0), u();
1900
- }, f = (v) => {
1901
- a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, h(v));
1903
+ }, h = (g) => {
1904
+ c && (c(g), c = void 0), u();
1905
+ }, f = (g) => {
1906
+ a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, h(g));
1902
1907
  }, p = () => {
1903
1908
  a = !0, window.addEventListener("pointerup", f, s), window.addEventListener("pointercancel", f, s);
1904
- }, d = (v) => {
1905
- if (v.pointerType !== "touch") {
1909
+ }, d = (g) => {
1910
+ if (g.pointerType !== "touch") {
1906
1911
  if (a) {
1907
1912
  l = !0;
1908
1913
  return;
1909
1914
  }
1910
- h(v);
1915
+ h(g);
1911
1916
  }
1912
- }, m = (v) => {
1913
- if (!nl(v)) return;
1917
+ }, m = (g) => {
1918
+ if (!tl(g)) return;
1914
1919
  l = !1;
1915
- const g = e(r, v);
1916
- typeof g == "function" && (c = g, r.addEventListener("pointerleave", d, s));
1920
+ const v = e(r, g);
1921
+ typeof v == "function" && (c = v, r.addEventListener("pointerleave", d, s));
1917
1922
  };
1918
1923
  r.addEventListener("pointerenter", m, s), r.addEventListener("pointerdown", p, s);
1919
1924
  }), o;
1920
1925
  }
1921
- var Qs = (t, e) => e ? t === e ? !0 : Qs(t, e.parentElement) : !1, Si = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, rl = /* @__PURE__ */ new Set([
1926
+ var Qs = (t, e) => e ? t === e ? !0 : Qs(t, e.parentElement) : !1, Si = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, il = /* @__PURE__ */ new Set([
1922
1927
  "BUTTON",
1923
1928
  "INPUT",
1924
1929
  "SELECT",
1925
1930
  "TEXTAREA",
1926
1931
  "A"
1927
1932
  ]);
1928
- function ol(t) {
1929
- return rl.has(t.tagName) || t.isContentEditable === !0;
1933
+ function nl(t) {
1934
+ return il.has(t.tagName) || t.isContentEditable === !0;
1930
1935
  }
1931
- var al = /* @__PURE__ */ new Set([
1936
+ var sl = /* @__PURE__ */ new Set([
1932
1937
  "INPUT",
1933
1938
  "SELECT",
1934
1939
  "TEXTAREA"
1935
1940
  ]);
1936
- function ll(t) {
1937
- return al.has(t.tagName) || t.isContentEditable === !0;
1941
+ function rl(t) {
1942
+ return sl.has(t.tagName) || t.isContentEditable === !0;
1938
1943
  }
1939
1944
  var Yt = /* @__PURE__ */ new WeakSet();
1940
1945
  function Ji(t) {
@@ -1948,7 +1953,7 @@ function we(t, e) {
1948
1953
  bubbles: !0
1949
1954
  }));
1950
1955
  }
1951
- var ul = (t, e) => {
1956
+ var ol = (t, e) => {
1952
1957
  const i = t.currentTarget;
1953
1958
  if (!i) return;
1954
1959
  const n = Ji(() => {
@@ -1965,7 +1970,7 @@ function Qi(t) {
1965
1970
  return Si(t) && !Zs();
1966
1971
  }
1967
1972
  var tn = /* @__PURE__ */ new WeakSet();
1968
- function cl(t, e, i = {}) {
1973
+ function al(t, e, i = {}) {
1969
1974
  const [n, s, o] = Js(t, i), r = (a) => {
1970
1975
  const l = a.currentTarget;
1971
1976
  if (!Qi(a) || tn.has(a)) return;
@@ -1983,33 +1988,33 @@ function cl(t, e, i = {}) {
1983
1988
  window.addEventListener("pointerup", f, u), window.addEventListener("pointercancel", p, u);
1984
1989
  };
1985
1990
  return n.forEach((a) => {
1986
- (i.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), el(a) && (a.addEventListener("focus", (l) => ul(l, s)), !ol(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1991
+ (i.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), Ja(a) && (a.addEventListener("focus", (l) => ol(l, s)), !nl(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1987
1992
  }), o;
1988
1993
  }
1989
1994
  function bi(t) {
1990
1995
  return is(t) && "ownerSVGElement" in t;
1991
1996
  }
1992
- var qt = /* @__PURE__ */ new WeakMap(), Zt, tr = (t, e, i) => (n, s) => s && s[0] ? s[0][t + "Size"] : bi(n) && "getBBox" in n ? n.getBBox()[e] : n[i], hl = /* @__PURE__ */ tr("inline", "width", "offsetWidth"), fl = /* @__PURE__ */ tr("block", "height", "offsetHeight");
1993
- function dl({ target: t, borderBoxSize: e }) {
1997
+ var qt = /* @__PURE__ */ new WeakMap(), Zt, tr = (t, e, i) => (n, s) => s && s[0] ? s[0][t + "Size"] : bi(n) && "getBBox" in n ? n.getBBox()[e] : n[i], ll = /* @__PURE__ */ tr("inline", "width", "offsetWidth"), ul = /* @__PURE__ */ tr("block", "height", "offsetHeight");
1998
+ function cl({ target: t, borderBoxSize: e }) {
1994
1999
  qt.get(t)?.forEach((i) => {
1995
2000
  i(t, {
1996
2001
  get width() {
1997
- return hl(t, e);
2002
+ return ll(t, e);
1998
2003
  },
1999
2004
  get height() {
2000
- return fl(t, e);
2005
+ return ul(t, e);
2001
2006
  }
2002
2007
  });
2003
2008
  });
2004
2009
  }
2005
- function pl(t) {
2006
- t.forEach(dl);
2010
+ function hl(t) {
2011
+ t.forEach(cl);
2007
2012
  }
2008
- function ml() {
2009
- typeof ResizeObserver > "u" || (Zt = new ResizeObserver(pl));
2013
+ function fl() {
2014
+ typeof ResizeObserver > "u" || (Zt = new ResizeObserver(hl));
2010
2015
  }
2011
- function vl(t, e) {
2012
- Zt || ml();
2016
+ function dl(t, e) {
2017
+ Zt || fl();
2013
2018
  const i = qs(t);
2014
2019
  return i.forEach((n) => {
2015
2020
  let s = qt.get(n);
@@ -2022,7 +2027,7 @@ function vl(t, e) {
2022
2027
  };
2023
2028
  }
2024
2029
  var Jt = /* @__PURE__ */ new Set(), Pt;
2025
- function gl() {
2030
+ function pl() {
2026
2031
  Pt = () => {
2027
2032
  const t = {
2028
2033
  get width() {
@@ -2035,26 +2040,26 @@ function gl() {
2035
2040
  Jt.forEach((e) => e(t));
2036
2041
  }, window.addEventListener("resize", Pt);
2037
2042
  }
2038
- function yl(t) {
2039
- return Jt.add(t), Pt || gl(), () => {
2043
+ function ml(t) {
2044
+ return Jt.add(t), Pt || pl(), () => {
2040
2045
  Jt.delete(t), !Jt.size && typeof Pt == "function" && (window.removeEventListener("resize", Pt), Pt = void 0);
2041
2046
  };
2042
2047
  }
2043
2048
  function en(t, e) {
2044
- return typeof t == "function" ? yl(t) : vl(t, e);
2049
+ return typeof t == "function" ? ml(t) : dl(t, e);
2045
2050
  }
2046
2051
  var yt = {
2047
2052
  value: null,
2048
2053
  addProjectionMetrics: null
2049
2054
  };
2050
- function Tl(t) {
2055
+ function vl(t) {
2051
2056
  return bi(t) && t.tagName === "svg";
2052
2057
  }
2053
- var xl = [
2054
- ...Gs,
2058
+ var gl = [
2059
+ ..._s,
2055
2060
  R,
2056
- G
2057
- ], wl = (t) => xl.find(Hs(t)), nn = () => ({
2061
+ _
2062
+ ], yl = (t) => gl.find(Gs(t)), nn = () => ({
2058
2063
  translate: 0,
2059
2064
  scale: 1,
2060
2065
  origin: 0,
@@ -2068,7 +2073,7 @@ var xl = [
2068
2073
  }), L = () => ({
2069
2074
  x: sn(),
2070
2075
  y: sn()
2071
- }), Pl = /* @__PURE__ */ new WeakMap();
2076
+ }), Tl = /* @__PURE__ */ new WeakMap();
2072
2077
  function de(t) {
2073
2078
  return t !== null && typeof t == "object" && typeof t.start == "function";
2074
2079
  }
@@ -2090,25 +2095,26 @@ function pe(t) {
2090
2095
  function er(t) {
2091
2096
  return !!(pe(t) || t.variants);
2092
2097
  }
2093
- function Sl(t, e, i) {
2098
+ function xl(t, e, i) {
2094
2099
  for (const n in e) {
2095
2100
  const s = e[n], o = i[n];
2096
- if (F(s)) t.addValue(n, s);
2097
- else if (F(o)) t.addValue(n, At(s, { owner: t }));
2098
- else if (o !== s) if (t.hasValue(n)) {
2099
- const r = t.getValue(n);
2100
- r.liveStyle === !0 ? r.jump(s) : r.hasAnimated || r.set(s);
2101
- } else {
2102
- const r = t.getStaticValue(n);
2103
- t.addValue(n, At(r !== void 0 ? r : s, { owner: t }));
2104
- }
2101
+ if (I(s)) t.addValue(n, s);
2102
+ else if (I(o)) t.addValue(n, At(s, { owner: t }));
2103
+ else if (o !== s)
2104
+ if (t.hasValue(n)) {
2105
+ const r = t.getValue(n);
2106
+ r.liveStyle === !0 ? r.jump(s) : r.hasAnimated || r.set(s);
2107
+ } else {
2108
+ const r = t.getStaticValue(n);
2109
+ t.addValue(n, At(r !== void 0 ? r : s, { owner: t }));
2110
+ }
2105
2111
  }
2106
2112
  for (const n in i) e[n] === void 0 && t.removeValue(n);
2107
2113
  return e;
2108
2114
  }
2109
- var qe = { current: null }, ir = { current: !1 }, bl = typeof window < "u";
2110
- function Al() {
2111
- if (ir.current = !0, !!bl)
2115
+ var qe = { current: null }, ir = { current: !1 }, wl = typeof window < "u";
2116
+ function Pl() {
2117
+ if (ir.current = !0, !!wl)
2112
2118
  if (window.matchMedia) {
2113
2119
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => qe.current = t.matches;
2114
2120
  t.addEventListener("change", e), e();
@@ -2126,10 +2132,10 @@ var rn = [
2126
2132
  function nr(t) {
2127
2133
  ae = t;
2128
2134
  }
2129
- function Vl() {
2135
+ function Sl() {
2130
2136
  return ae;
2131
2137
  }
2132
- var Ml = class {
2138
+ var bl = class {
2133
2139
  scrapeMotionValuesFromProps(t, e, i) {
2134
2140
  return {};
2135
2141
  }
@@ -2145,13 +2151,13 @@ var Ml = class {
2145
2151
  const { willChange: u, ...h } = this.scrapeMotionValuesFromProps(e, {}, this);
2146
2152
  for (const f in h) {
2147
2153
  const p = h[f];
2148
- l[f] !== void 0 && F(p) && p.set(l[f]);
2154
+ l[f] !== void 0 && I(p) && p.set(l[f]);
2149
2155
  }
2150
2156
  }
2151
2157
  mount(t) {
2152
2158
  if (this.hasBeenMounted) for (const e in this.initialValues)
2153
2159
  this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
2154
- this.current = t, Pl.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ir.current || Al(), this.shouldReduceMotion = qe.current), process.env.NODE_ENV !== "production" && ai(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2160
+ this.current = t, Tl.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ir.current || Pl(), this.shouldReduceMotion = qe.current), process.env.NODE_ENV !== "production" && ai(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2155
2161
  }
2156
2162
  unmount() {
2157
2163
  this.projection && this.projection.unmount(), rt(this.notifyUpdate), rt(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
@@ -2170,7 +2176,7 @@ var Ml = class {
2170
2176
  }
2171
2177
  bindToMotionValue(t, e) {
2172
2178
  if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), e.accelerate && js.has(t) && this.current instanceof HTMLElement) {
2173
- const { factory: o, keyframes: r, times: a, ease: l, duration: c } = e.accelerate, u = new Fs({
2179
+ const { factory: o, keyframes: r, times: a, ease: l, duration: c } = e.accelerate, u = new Is({
2174
2180
  element: this.current,
2175
2181
  name: t,
2176
2182
  keyframes: r,
@@ -2228,7 +2234,7 @@ var Ml = class {
2228
2234
  const s = t["on" + n];
2229
2235
  s && (this.propEventSubscriptions[n] = this.on(n, s));
2230
2236
  }
2231
- this.prevMotionValues = Sl(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2237
+ this.prevMotionValues = xl(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2232
2238
  }
2233
2239
  getProps() {
2234
2240
  return this.props;
@@ -2269,7 +2275,7 @@ var Ml = class {
2269
2275
  }
2270
2276
  readValue(t, e) {
2271
2277
  let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2272
- return i != null && (typeof i == "string" && (es(i) || ns(i)) ? i = parseFloat(i) : !wl(i) && G.test(e) && (i = Ys(t, e)), this.setBaseTarget(t, F(i) ? i.get() : i)), F(i) ? i.get() : i;
2278
+ return i != null && (typeof i == "string" && (es(i) || ns(i)) ? i = parseFloat(i) : !yl(i) && _.test(e) && (i = Ys(t, e)), this.setBaseTarget(t, I(i) ? i.get() : i)), I(i) ? i.get() : i;
2273
2279
  }
2274
2280
  setBaseTarget(t, e) {
2275
2281
  this.baseTarget[t] = e;
@@ -2283,7 +2289,7 @@ var Ml = class {
2283
2289
  }
2284
2290
  if (e && i !== void 0) return i;
2285
2291
  const n = this.getBaseTargetFromProps(this.props, t);
2286
- return n !== void 0 && !F(n) ? n : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
2292
+ return n !== void 0 && !I(n) ? n : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
2287
2293
  }
2288
2294
  on(t, e) {
2289
2295
  return this.events[t] || (this.events[t] = new oi()), this.events[t].add(e);
@@ -2294,9 +2300,9 @@ var Ml = class {
2294
2300
  scheduleRenderMicrotask() {
2295
2301
  Pi.render(this.render);
2296
2302
  }
2297
- }, sr = class extends Ml {
2303
+ }, sr = class extends bl {
2298
2304
  constructor() {
2299
- super(...arguments), this.KeyframeResolver = tl;
2305
+ super(...arguments), this.KeyframeResolver = Za;
2300
2306
  }
2301
2307
  sortInstanceNodePosition(t, e) {
2302
2308
  return t.compareDocumentPosition(e) & 2 ? 1 : -1;
@@ -2311,7 +2317,7 @@ var Ml = class {
2311
2317
  handleChildMotionValue() {
2312
2318
  this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2313
2319
  const { children: t } = this.props;
2314
- F(t) && (this.childSubscription = t.on("change", (e) => {
2320
+ I(t) && (this.childSubscription = t.on("change", (e) => {
2315
2321
  this.current && (this.current.textContent = `${e}`);
2316
2322
  }));
2317
2323
  }
@@ -2334,7 +2340,7 @@ function rr({ top: t, left: e, right: i, bottom: n }) {
2334
2340
  }
2335
2341
  };
2336
2342
  }
2337
- function Cl({ x: t, y: e }) {
2343
+ function Al({ x: t, y: e }) {
2338
2344
  return {
2339
2345
  top: e.min,
2340
2346
  right: t.max,
@@ -2342,7 +2348,7 @@ function Cl({ x: t, y: e }) {
2342
2348
  left: t.min
2343
2349
  };
2344
2350
  }
2345
- function Dl(t, e) {
2351
+ function Vl(t, e) {
2346
2352
  if (!e) return t;
2347
2353
  const i = e({
2348
2354
  x: t.left,
@@ -2386,7 +2392,7 @@ function ar(t, { x: e, y: i }) {
2386
2392
  Je(t.x, e.translate, e.scale, e.originPoint), Je(t.y, i.translate, i.scale, i.originPoint);
2387
2393
  }
2388
2394
  var ln = 0.999999999999, un = 1.0000000000001;
2389
- function El(t, e, i, n = !1) {
2395
+ function Ml(t, e, i, n = !1) {
2390
2396
  const s = i.length;
2391
2397
  if (!s) return;
2392
2398
  e.x = e.y = 1;
@@ -2412,21 +2418,21 @@ function Qt(t, e, i) {
2412
2418
  cn(t.x, hn(e.x, n.x), e.scaleX, e.scale, e.originX), cn(t.y, hn(e.y, n.y), e.scaleY, e.scale, e.originY);
2413
2419
  }
2414
2420
  function lr(t, e) {
2415
- return rr(Dl(t.getBoundingClientRect(), e));
2421
+ return rr(Vl(t.getBoundingClientRect(), e));
2416
2422
  }
2417
- function Rl(t, e, i) {
2423
+ function Cl(t, e, i) {
2418
2424
  const n = lr(t, i), { scroll: s } = e;
2419
2425
  return s && (Z(n.x, s.offset.x), Z(n.y, s.offset.y)), n;
2420
2426
  }
2421
- var Ll = {
2427
+ var Dl = {
2422
2428
  x: "translateX",
2423
2429
  y: "translateY",
2424
2430
  z: "translateZ",
2425
2431
  transformPerspective: "perspective"
2426
- }, kl = Dt.length;
2427
- function Bl(t, e, i) {
2432
+ }, El = Dt.length;
2433
+ function Rl(t, e, i) {
2428
2434
  let n = "", s = !0;
2429
- for (let r = 0; r < kl; r++) {
2435
+ for (let r = 0; r < El; r++) {
2430
2436
  const a = Dt[r], l = t[a];
2431
2437
  if (l === void 0) continue;
2432
2438
  let c = !0;
@@ -2439,7 +2445,7 @@ function Bl(t, e, i) {
2439
2445
  const u = Ye(l, oe[a]);
2440
2446
  if (!c) {
2441
2447
  s = !1;
2442
- const h = Ll[a] || a;
2448
+ const h = Dl[a] || a;
2443
2449
  n += `${h}(${u}) `;
2444
2450
  }
2445
2451
  i && (e[a] = u);
@@ -2464,7 +2470,7 @@ function Mi(t, e, i) {
2464
2470
  l.startsWith("origin") ? (a = !0, o[l] = u) : n[l] = u;
2465
2471
  }
2466
2472
  }
2467
- if (e.transform || (r || i ? n.transform = Bl(e, t.transform, i) : n.transform && (n.transform = "none")), a) {
2473
+ if (e.transform || (r || i ? n.transform = Rl(e, t.transform, i) : n.transform && (n.transform = "none")), a) {
2468
2474
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
2469
2475
  n.transformOrigin = `${l} ${c} ${u}`;
2470
2476
  }
@@ -2481,13 +2487,14 @@ function fn(t, e) {
2481
2487
  }
2482
2488
  var Rt = { correct: (t, e) => {
2483
2489
  if (!e.target) return t;
2484
- if (typeof t == "string") if (y.test(t)) t = parseFloat(t);
2485
- else return t;
2490
+ if (typeof t == "string")
2491
+ if (y.test(t)) t = parseFloat(t);
2492
+ else return t;
2486
2493
  return `${fn(t, e.target.x)}% ${fn(t, e.target.y)}%`;
2487
- } }, Il = { correct: (t, { treeScale: e, projectionDelta: i }) => {
2488
- const n = t, s = G.parse(t);
2494
+ } }, Ll = { correct: (t, { treeScale: e, projectionDelta: i }) => {
2495
+ const n = t, s = _.parse(t);
2489
2496
  if (s.length > 5) return n;
2490
- const o = G.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
2497
+ const o = _.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
2491
2498
  s[0 + r] /= a, s[1 + r] /= l;
2492
2499
  const c = V(a, l, 0.5);
2493
2500
  return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
@@ -2500,7 +2507,7 @@ var Rt = { correct: (t, e) => {
2500
2507
  borderTopRightRadius: Rt,
2501
2508
  borderBottomLeftRadius: Rt,
2502
2509
  borderBottomRightRadius: Rt,
2503
- boxShadow: Il
2510
+ boxShadow: Ll
2504
2511
  };
2505
2512
  function cr(t, { layout: e, layoutId: i }) {
2506
2513
  return Et.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!Qe[t] || t === "opacity");
@@ -2508,20 +2515,23 @@ function cr(t, { layout: e, layoutId: i }) {
2508
2515
  function Ci(t, e, i) {
2509
2516
  const n = t.style, s = e?.style, o = {};
2510
2517
  if (!n) return o;
2511
- for (const r in n) (F(n[r]) || s && F(s[r]) || cr(r, t) || i?.getValue(r)?.liveStyle !== void 0) && (o[r] = n[r]);
2518
+ for (const r in n) (I(n[r]) || s && I(s[r]) || cr(r, t) || i?.getValue(r)?.liveStyle !== void 0) && (o[r] = n[r]);
2512
2519
  return o;
2513
2520
  }
2514
- function Fl(t) {
2521
+ function kl(t) {
2515
2522
  return window.getComputedStyle(t);
2516
2523
  }
2517
- var Ol = class extends sr {
2524
+ var Bl = class extends sr {
2518
2525
  constructor() {
2519
2526
  super(...arguments), this.type = "html", this.renderInstance = ur;
2520
2527
  }
2528
+ mount(t) {
2529
+ tt(!!t.style, "motion.create() components must forward their ref to a HTML or SVG element", "custom-component-ref"), super.mount(t);
2530
+ }
2521
2531
  readValueFromInstance(t, e) {
2522
- if (Et.has(e)) return this.projection?.isProjecting ? je(e) : ea(t, e);
2532
+ if (Et.has(e)) return this.projection?.isProjecting ? je(e) : Zo(t, e);
2523
2533
  {
2524
- const i = Fl(t), n = (ys(e) ? i.getPropertyValue(e) : i[e]) || 0;
2534
+ const i = kl(t), n = (ys(e) ? i.getPropertyValue(e) : i[e]) || 0;
2525
2535
  return typeof n == "string" ? n.trim() : n;
2526
2536
  }
2527
2537
  }
@@ -2534,36 +2544,37 @@ var Ol = class extends sr {
2534
2544
  scrapeMotionValuesFromProps(t, e, i) {
2535
2545
  return Ci(t, e, i);
2536
2546
  }
2537
- }, jl = {
2547
+ }, Fl = {
2538
2548
  offset: "stroke-dashoffset",
2539
2549
  array: "stroke-dasharray"
2540
- }, Nl = {
2550
+ }, Il = {
2541
2551
  offset: "strokeDashoffset",
2542
2552
  array: "strokeDasharray"
2543
2553
  };
2544
- function Ul(t, e, i = 1, n = 0, s = !0) {
2554
+ function Ol(t, e, i = 1, n = 0, s = !0) {
2545
2555
  t.pathLength = 1;
2546
- const o = s ? jl : Nl;
2556
+ const o = s ? Fl : Il;
2547
2557
  t[o.offset] = `${-n}`, t[o.array] = `${e} ${i}`;
2548
2558
  }
2549
- var Wl = [
2559
+ var hr = [
2560
+ "transform",
2561
+ "opacity",
2550
2562
  "offsetDistance",
2551
2563
  "offsetPath",
2552
2564
  "offsetRotate",
2553
2565
  "offsetAnchor"
2554
2566
  ];
2555
- function hr(t, { attrX: e, attrY: i, attrScale: n, pathLength: s, pathSpacing: o = 1, pathOffset: r = 0, ...a }, l, c, u) {
2567
+ function fr(t, { attrX: e, attrY: i, attrScale: n, pathLength: s, pathSpacing: o = 1, pathOffset: r = 0, ...a }, l, c, u) {
2556
2568
  if (Mi(t, a, c), l) {
2557
2569
  t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
2558
2570
  return;
2559
2571
  }
2560
2572
  t.attrs = t.style, t.style = {};
2561
2573
  const { attrs: h, style: f } = t;
2562
- h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox);
2563
- for (const p of Wl) h[p] !== void 0 && (f[p] = h[p], delete h[p]);
2564
- e !== void 0 && (h.x = e), i !== void 0 && (h.y = i), n !== void 0 && (h.scale = n), s !== void 0 && Ul(h, s, o, r, !1);
2574
+ for (const p of hr) h[p] !== void 0 && (f[p] = h[p], delete h[p]);
2575
+ (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox), e !== void 0 && (h.x = e), i !== void 0 && (h.y = i), n !== void 0 && (h.scale = n), s !== void 0 && Ol(h, s, o, r, !1);
2565
2576
  }
2566
- var fr = /* @__PURE__ */ new Set([
2577
+ var dr = /* @__PURE__ */ new Set([
2567
2578
  "baseFrequency",
2568
2579
  "diffuseConstant",
2569
2580
  "kernelMatrix",
@@ -2587,20 +2598,20 @@ var fr = /* @__PURE__ */ new Set([
2587
2598
  "startOffset",
2588
2599
  "textLength",
2589
2600
  "lengthAdjust"
2590
- ]), dr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2591
- function $l(t, e, i, n) {
2601
+ ]), pr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2602
+ function jl(t, e, i, n) {
2592
2603
  ur(t, e, void 0, n);
2593
- for (const s in e.attrs) t.setAttribute(fr.has(s) ? s : xi(s), e.attrs[s]);
2604
+ for (const s in e.attrs) t.setAttribute(dr.has(s) ? s : xi(s), e.attrs[s]);
2594
2605
  }
2595
- function pr(t, e, i) {
2606
+ function mr(t, e, i) {
2596
2607
  const n = Ci(t, e, i);
2597
- for (const s in t) if (F(t[s]) || F(e[s])) {
2608
+ for (const s in t) if (I(t[s]) || I(e[s])) {
2598
2609
  const o = Dt.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
2599
2610
  n[o] = t[s];
2600
2611
  }
2601
2612
  return n;
2602
2613
  }
2603
- var Kl = class extends sr {
2614
+ var Nl = class extends sr {
2604
2615
  constructor() {
2605
2616
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = L;
2606
2617
  }
@@ -2612,47 +2623,51 @@ var Kl = class extends sr {
2612
2623
  const i = Xs(e);
2613
2624
  return i && i.default || 0;
2614
2625
  }
2615
- return e = fr.has(e) ? e : xi(e), t.getAttribute(e);
2626
+ if (hr.includes(e)) {
2627
+ const i = getComputedStyle(t)[e];
2628
+ if (typeof i == "string" && i) return i.trim();
2629
+ }
2630
+ return e = dr.has(e) ? e : xi(e), t.getAttribute(e);
2616
2631
  }
2617
2632
  scrapeMotionValuesFromProps(t, e, i) {
2618
- return pr(t, e, i);
2633
+ return mr(t, e, i);
2619
2634
  }
2620
2635
  build(t, e, i) {
2621
- hr(t, e, this.isSVGTag, i.transformTemplate, i.style);
2636
+ fr(t, e, this.isSVGTag, i.transformTemplate, i.style);
2622
2637
  }
2623
2638
  renderInstance(t, e, i, n) {
2624
- $l(t, e, i, n);
2639
+ jl(t, e, i, n);
2625
2640
  }
2626
2641
  mount(t) {
2627
- this.isSVGTag = dr(t.tagName), super.mount(t);
2642
+ this.isSVGTag = pr(t.tagName), super.mount(t);
2628
2643
  }
2629
- }, _l = Vi.length;
2630
- function mr(t) {
2644
+ }, Ul = Vi.length;
2645
+ function vr(t) {
2631
2646
  if (!t) return;
2632
2647
  if (!t.isControllingVariants) {
2633
- const i = t.parent ? mr(t.parent) || {} : {};
2648
+ const i = t.parent ? vr(t.parent) || {} : {};
2634
2649
  return t.props.initial !== void 0 && (i.initial = t.props.initial), i;
2635
2650
  }
2636
2651
  const e = {};
2637
- for (let i = 0; i < _l; i++) {
2652
+ for (let i = 0; i < Ul; i++) {
2638
2653
  const n = Vi[i], s = t.props[n];
2639
2654
  (jt(s) || s === !1) && (e[n] = s);
2640
2655
  }
2641
2656
  return e;
2642
2657
  }
2643
- function vr(t, e) {
2658
+ function gr(t, e) {
2644
2659
  if (!Array.isArray(e)) return !1;
2645
2660
  const i = e.length;
2646
2661
  if (i !== t.length) return !1;
2647
2662
  for (let n = 0; n < i; n++) if (e[n] !== t[n]) return !1;
2648
2663
  return !0;
2649
2664
  }
2650
- var zl = [...Ai].reverse(), Hl = Ai.length;
2651
- function Gl(t) {
2652
- return (e) => Promise.all(e.map(({ animation: i, options: n }) => Ka(t, i, n)));
2665
+ var Wl = [...Ai].reverse(), $l = Ai.length;
2666
+ function Kl(t) {
2667
+ return (e) => Promise.all(e.map(({ animation: i, options: n }) => Ua(t, i, n)));
2653
2668
  }
2654
- function Xl(t) {
2655
- let e = Gl(t), i = dn(), n = !0, s = !1;
2669
+ function zl(t) {
2670
+ let e = Kl(t), i = dn(), n = !0, s = !1;
2656
2671
  const o = (c) => (u, h) => {
2657
2672
  const f = vt(t, h, c === "exit" ? t.presenceContext?.custom : void 0);
2658
2673
  if (f) {
@@ -2669,11 +2684,11 @@ function Xl(t) {
2669
2684
  e = c(t);
2670
2685
  }
2671
2686
  function a(c) {
2672
- const { props: u } = t, h = mr(t.parent) || {}, f = [], p = /* @__PURE__ */ new Set();
2687
+ const { props: u } = t, h = vr(t.parent) || {}, f = [], p = /* @__PURE__ */ new Set();
2673
2688
  let d = {}, m = 1 / 0;
2674
- for (let g = 0; g < Hl; g++) {
2675
- const T = zl[g], x = i[T], w = u[T] !== void 0 ? u[T] : h[T], P = jt(w), A = T === c ? x.isActive : null;
2676
- A === !1 && (m = g);
2689
+ for (let v = 0; v < $l; v++) {
2690
+ const T = Wl[v], x = i[T], w = u[T] !== void 0 ? u[T] : h[T], P = jt(w), A = T === c ? x.isActive : null;
2691
+ A === !1 && (m = v);
2677
2692
  let D = w === h[T] && w !== u[T] && P;
2678
2693
  if (D && (n || s) && t.manuallyAnimateOnMount && (D = !1), x.protectedKeys = { ...d }, !x.isActive && A === null || !w && !x.prevProp || de(w) || typeof w == "boolean") continue;
2679
2694
  if (T === "exit" && x.isActive && A !== !0) {
@@ -2683,15 +2698,15 @@ function Xl(t) {
2683
2698
  });
2684
2699
  continue;
2685
2700
  }
2686
- const S = Yl(x.prevProp, w);
2687
- let E = S || T === c && x.isActive && !D && P || g > m && P, b = !1;
2701
+ const S = Hl(x.prevProp, w);
2702
+ let E = S || T === c && x.isActive && !D && P || v > m && P, b = !1;
2688
2703
  const k = Array.isArray(w) ? w : [w];
2689
2704
  let N = k.reduce(o(T), {});
2690
2705
  A === !1 && (N = {});
2691
2706
  const { prevResolvedValues: at = {} } = x, X = {
2692
2707
  ...at,
2693
2708
  ...N
2694
- }, tt = (B) => {
2709
+ }, et = (B) => {
2695
2710
  E = !0, p.has(B) && (b = !0, p.delete(B)), x.needsAnimating[B] = !0;
2696
2711
  const $ = t.getValue(B);
2697
2712
  $ && ($.liveStyle = !1);
@@ -2700,7 +2715,7 @@ function Xl(t) {
2700
2715
  const $ = N[B], lt = at[B];
2701
2716
  if (d.hasOwnProperty(B)) continue;
2702
2717
  let gt = !1;
2703
- _e($) && _e(lt) ? gt = !vr($, lt) || S : gt = $ !== lt, gt ? $ != null ? tt(B) : p.add(B) : $ !== void 0 && p.has(B) ? tt(B) : x.protectedKeys[B] = !0;
2718
+ ze($) && ze(lt) ? gt = !gr($, lt) || S : gt = $ !== lt, gt ? $ != null ? et(B) : p.add(B) : $ !== void 0 && p.has(B) ? et(B) : x.protectedKeys[B] = !0;
2704
2719
  }
2705
2720
  x.prevProp = w, x.prevResolvedValues = N, x.isActive && (d = {
2706
2721
  ...d,
@@ -2712,8 +2727,8 @@ function Xl(t) {
2712
2727
  if (typeof B == "string" && (n || s) && !Y && t.manuallyAnimateOnMount && t.parent) {
2713
2728
  const { parent: lt } = t, gt = vt(lt, B);
2714
2729
  if (lt.enteringChildren && gt) {
2715
- const { delayChildren: jr } = gt.transition || {};
2716
- $.delay = Ns(lt.enteringChildren, t, jr);
2730
+ const { delayChildren: Or } = gt.transition || {};
2731
+ $.delay = Ns(lt.enteringChildren, t, Or);
2717
2732
  }
2718
2733
  }
2719
2734
  return {
@@ -2723,18 +2738,18 @@ function Xl(t) {
2723
2738
  }));
2724
2739
  }
2725
2740
  if (p.size) {
2726
- const g = {};
2741
+ const v = {};
2727
2742
  if (typeof u.initial != "boolean") {
2728
2743
  const T = vt(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
2729
- T && T.transition && (g.transition = T.transition);
2744
+ T && T.transition && (v.transition = T.transition);
2730
2745
  }
2731
2746
  p.forEach((T) => {
2732
2747
  const x = t.getBaseTarget(T), w = t.getValue(T);
2733
- w && (w.liveStyle = !0), g[T] = x ?? null;
2734
- }), f.push({ animation: g });
2748
+ w && (w.liveStyle = !0), v[T] = x ?? null;
2749
+ }), f.push({ animation: v });
2735
2750
  }
2736
- let v = !!f.length;
2737
- return n && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (v = !1), n = !1, s = !1, v ? e(f) : Promise.resolve();
2751
+ let g = !!f.length;
2752
+ return n && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (g = !1), n = !1, s = !1, g ? e(f) : Promise.resolve();
2738
2753
  }
2739
2754
  function l(c, u) {
2740
2755
  if (i[c].isActive === u) return Promise.resolve();
@@ -2753,8 +2768,8 @@ function Xl(t) {
2753
2768
  }
2754
2769
  };
2755
2770
  }
2756
- function Yl(t, e) {
2757
- return typeof e == "string" ? e !== t : Array.isArray(e) ? !vr(e, t) : !1;
2771
+ function Hl(t, e) {
2772
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !gr(e, t) : !1;
2758
2773
  }
2759
2774
  function ut(t = !1) {
2760
2775
  return {
@@ -2778,21 +2793,21 @@ function dn() {
2778
2793
  function ti(t, e) {
2779
2794
  t.min = e.min, t.max = e.max;
2780
2795
  }
2781
- function z(t, e) {
2796
+ function H(t, e) {
2782
2797
  ti(t.x, e.x), ti(t.y, e.y);
2783
2798
  }
2784
2799
  function pn(t, e) {
2785
2800
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2786
2801
  }
2787
- var ql = 0.9999, Zl = 1.0001, Jl = -0.01, Ql = 0.01;
2802
+ var Gl = 0.9999, _l = 1.0001, Xl = -0.01, Yl = 0.01;
2788
2803
  function j(t) {
2789
2804
  return t.max - t.min;
2790
2805
  }
2791
- function tu(t, e, i) {
2806
+ function ql(t, e, i) {
2792
2807
  return Math.abs(t - e) <= i;
2793
2808
  }
2794
2809
  function mn(t, e, i, n = 0.5) {
2795
- t.origin = n, t.originPoint = V(e.min, e.max, t.origin), t.scale = j(i) / j(e), t.translate = V(i.min, i.max, t.origin) - t.originPoint, (t.scale >= ql && t.scale <= Zl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Jl && t.translate <= Ql || isNaN(t.translate)) && (t.translate = 0);
2810
+ t.origin = n, t.originPoint = V(e.min, e.max, t.origin), t.scale = j(i) / j(e), t.translate = V(i.min, i.max, t.origin) - t.originPoint, (t.scale >= Gl && t.scale <= _l || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Xl && t.translate <= Yl || isNaN(t.translate)) && (t.translate = 0);
2796
2811
  }
2797
2812
  function Bt(t, e, i, n) {
2798
2813
  mn(t.x, e.x, i.x, n ? n.originX : void 0), mn(t.y, e.y, i.y, n ? n.originY : void 0);
@@ -2800,7 +2815,7 @@ function Bt(t, e, i, n) {
2800
2815
  function vn(t, e, i, n = 0) {
2801
2816
  t.min = (n ? V(i.min, i.max, n) : i.min) + e.min, t.max = t.min + j(e);
2802
2817
  }
2803
- function eu(t, e, i, n) {
2818
+ function Zl(t, e, i, n) {
2804
2819
  vn(t.x, e.x, i.x, n?.x), vn(t.y, e.y, i.y, n?.y);
2805
2820
  }
2806
2821
  function gn(t, e, i, n = 0) {
@@ -2813,42 +2828,42 @@ function ue(t, e, i, n) {
2813
2828
  function yn(t, e, i, n, s) {
2814
2829
  return t -= e, t = le(t, 1 / i, n), s !== void 0 && (t = le(t, 1 / s, n)), t;
2815
2830
  }
2816
- function iu(t, e = 0, i = 1, n = 0.5, s, o = t, r = t) {
2831
+ function Jl(t, e = 0, i = 1, n = 0.5, s, o = t, r = t) {
2817
2832
  if (J.test(e) && (e = parseFloat(e), e = V(r.min, r.max, e / 100) - r.min), typeof e != "number") return;
2818
2833
  let a = V(o.min, o.max, n);
2819
2834
  t === o && (a -= e), t.min = yn(t.min, e, i, a, s), t.max = yn(t.max, e, i, a, s);
2820
2835
  }
2821
2836
  function Tn(t, e, [i, n, s], o, r) {
2822
- iu(t, e[i], e[n], e[s], e.scale, o, r);
2837
+ Jl(t, e[i], e[n], e[s], e.scale, o, r);
2823
2838
  }
2824
- var nu = [
2839
+ var Ql = [
2825
2840
  "x",
2826
2841
  "scaleX",
2827
2842
  "originX"
2828
- ], su = [
2843
+ ], tu = [
2829
2844
  "y",
2830
2845
  "scaleY",
2831
2846
  "originY"
2832
2847
  ];
2833
2848
  function xn(t, e, i, n) {
2834
- Tn(t.x, e, nu, i ? i.x : void 0, n ? n.x : void 0), Tn(t.y, e, su, i ? i.y : void 0, n ? n.y : void 0);
2849
+ Tn(t.x, e, Ql, i ? i.x : void 0, n ? n.x : void 0), Tn(t.y, e, tu, i ? i.y : void 0, n ? n.y : void 0);
2835
2850
  }
2836
2851
  function wn(t) {
2837
2852
  return t.translate === 0 && t.scale === 1;
2838
2853
  }
2839
- function gr(t) {
2854
+ function yr(t) {
2840
2855
  return wn(t.x) && wn(t.y);
2841
2856
  }
2842
2857
  function Pn(t, e) {
2843
2858
  return t.min === e.min && t.max === e.max;
2844
2859
  }
2845
- function ru(t, e) {
2860
+ function eu(t, e) {
2846
2861
  return Pn(t.x, e.x) && Pn(t.y, e.y);
2847
2862
  }
2848
2863
  function Sn(t, e) {
2849
2864
  return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
2850
2865
  }
2851
- function yr(t, e) {
2866
+ function Tr(t, e) {
2852
2867
  return Sn(t.x, e.x) && Sn(t.y, e.y);
2853
2868
  }
2854
2869
  function bn(t) {
@@ -2860,7 +2875,7 @@ function An(t, e) {
2860
2875
  function q(t) {
2861
2876
  return [t("x"), t("y")];
2862
2877
  }
2863
- function ou(t, e, i) {
2878
+ function iu(t, e, i) {
2864
2879
  let n = "";
2865
2880
  const s = t.x.translate / e.x, o = t.y.translate / e.y, r = i?.z || 0;
2866
2881
  if ((s || o || r) && (n = `translate3d(${s}px, ${o}px, ${r}px) `), (e.x !== 1 || e.y !== 1) && (n += `scale(${1 / e.x}, ${1 / e.y}) `), i) {
@@ -2870,10 +2885,10 @@ function ou(t, e, i) {
2870
2885
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
2871
2886
  return (a !== 1 || l !== 1) && (n += `scale(${a}, ${l})`), n || "none";
2872
2887
  }
2873
- var au = wi.length, Vn = (t) => typeof t == "string" ? parseFloat(t) : t, Mn = (t) => typeof t == "number" || y.test(t);
2874
- function lu(t, e, i, n, s, o) {
2875
- s ? (t.opacity = V(0, i.opacity ?? 1, uu(n)), t.opacityExit = V(e.opacity ?? 1, 0, cu(n))) : o && (t.opacity = V(e.opacity ?? 1, i.opacity ?? 1, n));
2876
- for (let r = 0; r < au; r++) {
2888
+ var nu = wi.length, Vn = (t) => typeof t == "string" ? parseFloat(t) : t, Mn = (t) => typeof t == "number" || y.test(t);
2889
+ function su(t, e, i, n, s, o) {
2890
+ s ? (t.opacity = V(0, i.opacity ?? 1, ru(n)), t.opacityExit = V(e.opacity ?? 1, 0, ou(n))) : o && (t.opacity = V(e.opacity ?? 1, i.opacity ?? 1, n));
2891
+ for (let r = 0; r < nu; r++) {
2877
2892
  const a = wi[r];
2878
2893
  let l = Cn(e, a), c = Cn(i, a);
2879
2894
  l === void 0 && c === void 0 || (l || (l = 0), c || (c = 0), l === 0 || c === 0 || Mn(l) === Mn(c) ? (t[a] = Math.max(V(Vn(l), Vn(c), n), 0), (J.test(c) || J.test(l)) && (t[a] += "%")) : t[a] = c);
@@ -2883,18 +2898,18 @@ function lu(t, e, i, n, s, o) {
2883
2898
  function Cn(t, e) {
2884
2899
  return t[e] !== void 0 ? t[e] : t.borderRadius;
2885
2900
  }
2886
- var uu = /* @__PURE__ */ Tr(0, 0.5, fs), cu = /* @__PURE__ */ Tr(0.5, 0.95, _);
2887
- function Tr(t, e, i) {
2888
- return (n) => n < t ? 0 : n > e ? 1 : i(Ft(t, e, n));
2901
+ var ru = /* @__PURE__ */ xr(0, 0.5, fs), ou = /* @__PURE__ */ xr(0.5, 0.95, z);
2902
+ function xr(t, e, i) {
2903
+ return (n) => n < t ? 0 : n > e ? 1 : i(It(t, e, n));
2889
2904
  }
2890
- function hu(t, e, i) {
2891
- const n = F(t) ? t : At(t);
2905
+ function au(t, e, i) {
2906
+ const n = I(t) ? t : At(t);
2892
2907
  return n.start(yi("", n, e, i)), n.animation;
2893
2908
  }
2894
2909
  function Nt(t, e, i, n = { passive: !0 }) {
2895
2910
  return t.addEventListener(e, i, n), () => t.removeEventListener(e, i, n);
2896
2911
  }
2897
- var fu = (t, e) => t.depth - e.depth, du = class {
2912
+ var lu = (t, e) => t.depth - e.depth, uu = class {
2898
2913
  constructor() {
2899
2914
  this.children = [], this.isDirty = !1;
2900
2915
  }
@@ -2905,10 +2920,10 @@ var fu = (t, e) => t.depth - e.depth, du = class {
2905
2920
  ie(this.children, t), this.isDirty = !0;
2906
2921
  }
2907
2922
  forEach(t) {
2908
- this.isDirty && this.children.sort(fu), this.isDirty = !1, this.children.forEach(t);
2923
+ this.isDirty && this.children.sort(lu), this.isDirty = !1, this.children.forEach(t);
2909
2924
  }
2910
2925
  };
2911
- function pu(t, e) {
2926
+ function cu(t, e) {
2912
2927
  const i = O.now(), n = ({ timestamp: s }) => {
2913
2928
  const o = s - i;
2914
2929
  o >= e && (rt(n), t(o - e));
@@ -2916,9 +2931,9 @@ function pu(t, e) {
2916
2931
  return M.setup(n, !0), () => rt(n);
2917
2932
  }
2918
2933
  function te(t) {
2919
- return F(t) ? t.get() : t;
2934
+ return I(t) ? t.get() : t;
2920
2935
  }
2921
- var mu = class {
2936
+ var hu = class {
2922
2937
  constructor() {
2923
2938
  this.members = [];
2924
2939
  }
@@ -2977,36 +2992,36 @@ var mu = class {
2977
2992
  "X",
2978
2993
  "Y",
2979
2994
  "Z"
2980
- ], vu = 1e3, gu = 0;
2995
+ ], fu = 1e3, du = 0;
2981
2996
  function be(t, e, i, n) {
2982
2997
  const { latestValues: s } = e;
2983
2998
  s[t] && (i[t] = s[t], e.setStaticValue(t, 0), n && (n[t] = 0));
2984
2999
  }
2985
- function xr(t) {
3000
+ function wr(t) {
2986
3001
  if (t.hasCheckedOptimisedAppear = !0, t.root === t) return;
2987
3002
  const { visualElement: e } = t.options;
2988
3003
  if (!e) return;
2989
- const i = _s(e);
3004
+ const i = zs(e);
2990
3005
  if (window.MotionHasOptimisedAnimation(i, "transform")) {
2991
3006
  const { layout: s, layoutId: o } = t.options;
2992
3007
  window.MotionCancelOptimisedAnimation(i, "transform", M, !(s || o));
2993
3008
  }
2994
3009
  const { parent: n } = t;
2995
- n && !n.hasCheckedOptimisedAppear && xr(n);
3010
+ n && !n.hasCheckedOptimisedAppear && wr(n);
2996
3011
  }
2997
- function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: n, resetTransform: s }) {
3012
+ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: n, resetTransform: s }) {
2998
3013
  return class {
2999
3014
  constructor(r = {}, a = e?.()) {
3000
- this.id = gu++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
3015
+ this.id = du++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
3001
3016
  x: 1,
3002
3017
  y: 1
3003
3018
  }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3004
3019
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3005
3020
  }, this.updateProjection = () => {
3006
- this.projectionUpdateScheduled = !1, yt.value && (ht.nodes = ht.calculatedTargetDeltas = ht.calculatedProjections = 0), this.nodes.forEach(xu), this.nodes.forEach(Vu), this.nodes.forEach(Mu), this.nodes.forEach(wu), yt.addProjectionMetrics && yt.addProjectionMetrics(ht);
3021
+ this.projectionUpdateScheduled = !1, yt.value && (ht.nodes = ht.calculatedTargetDeltas = ht.calculatedProjections = 0), this.nodes.forEach(vu), this.nodes.forEach(Pu), this.nodes.forEach(Su), this.nodes.forEach(gu), yt.addProjectionMetrics && yt.addProjectionMetrics(ht);
3007
3022
  }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3008
3023
  for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0;
3009
- this.root === this && (this.nodes = new du());
3024
+ this.root === this && (this.nodes = new uu());
3010
3025
  }
3011
3026
  addEventListener(r, a) {
3012
3027
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new oi()), this.eventHandlers.get(r).add(a);
@@ -3020,7 +3035,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3020
3035
  }
3021
3036
  mount(r) {
3022
3037
  if (this.instance) return;
3023
- this.isSVG = bi(r) && !Tl(r), this.instance = r;
3038
+ this.isSVG = bi(r) && !vl(r), this.instance = r;
3024
3039
  const { layoutId: a, layout: l, visualElement: c } = this.options;
3025
3040
  if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3026
3041
  let u, h = 0;
@@ -3029,7 +3044,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3029
3044
  h = window.innerWidth;
3030
3045
  }), t(r, () => {
3031
3046
  const p = window.innerWidth;
3032
- p !== h && (h = p, this.root.updateBlockedByResize = !0, u && u(), u = pu(f, 250), ee.hasAnimatedSinceResize && (ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Rn)));
3047
+ p !== h && (h = p, this.root.updateBlockedByResize = !0, u && u(), u = cu(f, 250), ee.hasAnimatedSinceResize && (ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Rn)));
3033
3048
  });
3034
3049
  }
3035
3050
  a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: p }) => {
@@ -3037,13 +3052,13 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3037
3052
  this.target = void 0, this.relativeTarget = void 0;
3038
3053
  return;
3039
3054
  }
3040
- const d = this.options.transition || c.getDefaultTransition() || Lu, { onLayoutAnimationStart: m, onLayoutAnimationComplete: v } = c.getProps(), g = !this.targetLayout || !yr(this.targetLayout, p), T = !h && f;
3041
- if (this.options.layoutRoot || this.resumeFrom || T || h && (g || !this.currentAnimation)) {
3055
+ const d = this.options.transition || c.getDefaultTransition() || Cu, { onLayoutAnimationStart: m, onLayoutAnimationComplete: g } = c.getProps(), v = !this.targetLayout || !Tr(this.targetLayout, p), T = !h && f;
3056
+ if (this.options.layoutRoot || this.resumeFrom || T || h && (v || !this.currentAnimation)) {
3042
3057
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3043
3058
  const x = {
3044
3059
  ...gi(d, "layout"),
3045
3060
  onPlay: m,
3046
- onComplete: v
3061
+ onComplete: g
3047
3062
  };
3048
3063
  (c.shouldReduceMotion || this.options.layoutRoot) && (x.delay = 0, x.type = !1), this.startAnimation(x), this.setAnimationOrigin(u, T, x.path);
3049
3064
  } else
@@ -3069,7 +3084,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3069
3084
  return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
3070
3085
  }
3071
3086
  startUpdate() {
3072
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Cu), this.animationId++);
3087
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(bu), this.animationId++);
3073
3088
  }
3074
3089
  getTransformTemplate() {
3075
3090
  const { visualElement: r } = this.options;
@@ -3080,7 +3095,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3080
3095
  this.options.onExitComplete && this.options.onExitComplete();
3081
3096
  return;
3082
3097
  }
3083
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && xr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
3098
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && wr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
3084
3099
  this.isLayoutDirty = !0;
3085
3100
  for (let u = 0; u < this.path.length; u++) {
3086
3101
  const h = this.path[u];
@@ -3094,22 +3109,22 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3094
3109
  update() {
3095
3110
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
3096
3111
  const a = this.updateBlockedByResize;
3097
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), a && this.nodes.forEach(Su), this.nodes.forEach(Dn);
3112
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), a && this.nodes.forEach(Tu), this.nodes.forEach(Dn);
3098
3113
  return;
3099
3114
  }
3100
3115
  if (this.animationId <= this.animationCommitId) {
3101
3116
  this.nodes.forEach(En);
3102
3117
  return;
3103
3118
  }
3104
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(bu), this.nodes.forEach(Au), this.nodes.forEach(yu), this.nodes.forEach(Tu)) : this.nodes.forEach(En), this.clearAllSnapshots();
3119
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(xu), this.nodes.forEach(wu), this.nodes.forEach(pu), this.nodes.forEach(mu)) : this.nodes.forEach(En), this.clearAllSnapshots();
3105
3120
  const r = O.now();
3106
- I.delta = Q(0, 1e3 / 60, r - I.timestamp), I.timestamp = r, I.isProcessing = !0, ve.update.process(I), ve.preRender.process(I), ve.render.process(I), I.isProcessing = !1;
3121
+ F.delta = Q(0, 1e3 / 60, r - F.timestamp), F.timestamp = r, F.isProcessing = !0, ve.update.process(F), ve.preRender.process(F), ve.render.process(F), F.isProcessing = !1;
3107
3122
  }
3108
3123
  didUpdate() {
3109
3124
  this.updateScheduled || (this.updateScheduled = !0, Pi.read(this.scheduleUpdate));
3110
3125
  }
3111
3126
  clearAllSnapshots() {
3112
- this.nodes.forEach(Pu), this.sharedNodes.forEach(Du);
3127
+ this.nodes.forEach(yu), this.sharedNodes.forEach(Au);
3113
3128
  }
3114
3129
  scheduleUpdateProjection() {
3115
3130
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
@@ -3145,13 +3160,13 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3145
3160
  }
3146
3161
  resetTransform() {
3147
3162
  if (!s) return;
3148
- const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !gr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3163
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !yr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3149
3164
  r && this.instance && (a || ct(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3150
3165
  }
3151
3166
  measure(r = !0) {
3152
3167
  const a = this.measurePageBox();
3153
3168
  let l = this.removeElementScroll(a);
3154
- return r && (l = this.removeTransform(l)), ku(l), {
3169
+ return r && (l = this.removeTransform(l)), Du(l), {
3155
3170
  animationId: this.root.animationId,
3156
3171
  measuredBox: a,
3157
3172
  layoutBox: l,
@@ -3163,7 +3178,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3163
3178
  const { visualElement: r } = this.options;
3164
3179
  if (!r) return L();
3165
3180
  const a = r.measureViewportBox();
3166
- if (!(this.scroll?.wasRoot || this.path.some(Bu))) {
3181
+ if (!(this.scroll?.wasRoot || this.path.some(Eu))) {
3167
3182
  const { scroll: l } = this.root;
3168
3183
  l && (Z(a.x, l.offset.x), Z(a.y, l.offset.y));
3169
3184
  }
@@ -3171,16 +3186,16 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3171
3186
  }
3172
3187
  removeElementScroll(r) {
3173
3188
  const a = L();
3174
- if (z(a, r), this.scroll?.wasRoot) return a;
3189
+ if (H(a, r), this.scroll?.wasRoot) return a;
3175
3190
  for (let l = 0; l < this.path.length; l++) {
3176
3191
  const c = this.path[l], { scroll: u, options: h } = c;
3177
- c !== this.root && u && h.layoutScroll && (u.wasRoot && z(a, r), Z(a.x, u.offset.x), Z(a.y, u.offset.y));
3192
+ c !== this.root && u && h.layoutScroll && (u.wasRoot && H(a, r), Z(a.x, u.offset.x), Z(a.y, u.offset.y));
3178
3193
  }
3179
3194
  return a;
3180
3195
  }
3181
3196
  applyTransform(r, a = !1, l) {
3182
3197
  const c = l || L();
3183
- z(c, r);
3198
+ H(c, r);
3184
3199
  for (let u = 0; u < this.path.length; u++) {
3185
3200
  const h = this.path[u];
3186
3201
  !a && h.options.layoutScroll && h.scroll && h !== h.root && (Z(c.x, -h.scroll.offset.x), Z(c.y, -h.scroll.offset.y)), ct(h.latestValues) && Qt(c, h.latestValues, h.layout?.layoutBox);
@@ -3189,12 +3204,12 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3189
3204
  }
3190
3205
  removeTransform(r) {
3191
3206
  const a = L();
3192
- z(a, r);
3207
+ H(a, r);
3193
3208
  for (let l = 0; l < this.path.length; l++) {
3194
3209
  const c = this.path[l];
3195
3210
  if (!ct(c.latestValues)) continue;
3196
3211
  let u;
3197
- c.instance && (Ze(c.latestValues) && c.updateSnapshot(), u = L(), z(u, c.measurePageBox())), xn(a, c.latestValues, c.snapshot?.layoutBox, u);
3212
+ c.instance && (Ze(c.latestValues) && c.updateSnapshot(), u = L(), H(u, c.measurePageBox())), xn(a, c.latestValues, c.snapshot?.layoutBox, u);
3198
3213
  }
3199
3214
  return ct(this.latestValues) && xn(a, this.latestValues), a;
3200
3215
  }
@@ -3212,7 +3227,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3212
3227
  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;
3213
3228
  }
3214
3229
  forceRelativeParentToResolveTarget() {
3215
- this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== I.timestamp && this.relativeParent.resolveTargetDelta(!0);
3230
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== F.timestamp && this.relativeParent.resolveTargetDelta(!0);
3216
3231
  }
3217
3232
  resolveTargetDelta(r = !1) {
3218
3233
  const a = this.getLead();
@@ -3221,9 +3236,9 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3221
3236
  if (!(r || l && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
3222
3237
  const { layout: c, layoutId: u } = this.options;
3223
3238
  if (!this.layout || !(c || u)) return;
3224
- this.resolvedRelativeTargetAt = I.timestamp;
3239
+ this.resolvedRelativeTargetAt = F.timestamp;
3225
3240
  const h = this.getClosestProjectingParent();
3226
- h && this.linkedParentVersion !== h.layoutVersion && !h.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), eu(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : z(this.target, this.layout.layoutBox), ar(this.target, this.targetDelta)) : z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0), yt.value && ht.calculatedTargetDeltas++);
3241
+ h && this.linkedParentVersion !== h.layoutVersion && !h.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Zl(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : H(this.target, this.layout.layoutBox), ar(this.target, this.targetDelta)) : H(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0), yt.value && ht.calculatedTargetDeltas++);
3227
3242
  }
3228
3243
  getClosestProjectingParent() {
3229
3244
  if (!(!this.parent || Ze(this.parent.latestValues) || or(this.parent.latestValues)))
@@ -3233,7 +3248,7 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3233
3248
  return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
3234
3249
  }
3235
3250
  createRelativeTarget(r, a, l) {
3236
- this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), ue(this.relativeTargetOrigin, a, l, this.options.layoutAnchor || void 0), z(this.relativeTarget, this.relativeTargetOrigin);
3251
+ this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), ue(this.relativeTargetOrigin, a, l, this.options.layoutAnchor || void 0), H(this.relativeTarget, this.relativeTargetOrigin);
3237
3252
  }
3238
3253
  removeRelativeTarget() {
3239
3254
  this.relativeParent = this.relativeTarget = void 0;
@@ -3241,12 +3256,12 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3241
3256
  calcProjection() {
3242
3257
  const r = this.getLead(), a = !!this.resumingFrom || this !== r;
3243
3258
  let l = !0;
3244
- if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === I.timestamp && (l = !1), l) return;
3259
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === F.timestamp && (l = !1), l) return;
3245
3260
  const { layout: c, layoutId: u } = this.options;
3246
3261
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u)) return;
3247
- z(this.layoutCorrected, this.layout.layoutBox);
3262
+ H(this.layoutCorrected, this.layout.layoutBox);
3248
3263
  const h = this.treeScale.x, f = this.treeScale.y;
3249
- El(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = L());
3264
+ Ml(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = L());
3250
3265
  const { target: p } = r;
3251
3266
  if (!p) {
3252
3267
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -3273,18 +3288,18 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3273
3288
  setAnimationOrigin(r, a = !1, l) {
3274
3289
  const c = this.snapshot, u = c ? c.latestValues : {}, h = { ...this.latestValues }, f = St();
3275
3290
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3276
- const p = L(), d = (c ? c.source : void 0) !== (this.layout ? this.layout.source : void 0), m = this.getStack(), v = !m || m.members.length <= 1, g = !!(d && !v && this.options.crossfade === !0 && !this.path.some(Ru));
3291
+ const p = L(), d = (c ? c.source : void 0) !== (this.layout ? this.layout.source : void 0), m = this.getStack(), g = !m || m.members.length <= 1, v = !!(d && !g && this.options.crossfade === !0 && !this.path.some(Mu));
3277
3292
  this.animationProgress = 0;
3278
3293
  let T;
3279
3294
  const x = l?.interpolateProjection(r);
3280
3295
  this.mixTargetDelta = (w) => {
3281
3296
  const P = w / 1e3, A = x?.(P);
3282
- A ? (f.x.translate = A.x, f.x.scale = V(r.x.scale, 1, P), f.x.origin = r.x.origin, f.x.originPoint = r.x.originPoint, f.y.translate = A.y, f.y.scale = V(r.y.scale, 1, P), f.y.origin = r.y.origin, f.y.originPoint = r.y.originPoint) : (Ln(f.x, r.x, P), Ln(f.y, r.y, P)), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ue(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Eu(this.relativeTarget, this.relativeTargetOrigin, p, P), T && ru(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = L()), z(T, this.relativeTarget)), d && (this.animationValues = h, lu(h, u, this.latestValues, P, g, v)), A && A.rotate !== void 0 && (this.animationValues || (this.animationValues = h), this.animationValues.pathRotation = A.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
3297
+ A ? (f.x.translate = A.x, f.x.scale = V(r.x.scale, 1, P), f.x.origin = r.x.origin, f.x.originPoint = r.x.originPoint, f.y.translate = A.y, f.y.scale = V(r.y.scale, 1, P), f.y.origin = r.y.origin, f.y.originPoint = r.y.originPoint) : (Ln(f.x, r.x, P), Ln(f.y, r.y, P)), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ue(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Vu(this.relativeTarget, this.relativeTargetOrigin, p, P), T && eu(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = L()), H(T, this.relativeTarget)), d && (this.animationValues = h, su(h, u, this.latestValues, P, v, g)), A && A.rotate !== void 0 && (this.animationValues || (this.animationValues = h), this.animationValues.pathRotation = A.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
3283
3298
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3284
3299
  }
3285
3300
  startAnimation(r) {
3286
3301
  this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (rt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
3287
- ee.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = At(0)), this.motionValue.jump(0, !1), this.currentAnimation = hu(this.motionValue, [0, 1e3], {
3302
+ ee.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = At(0)), this.motionValue.jump(0, !1), this.currentAnimation = au(this.motionValue, [0, 1e3], {
3288
3303
  ...r,
3289
3304
  velocity: 0,
3290
3305
  isSync: !0,
@@ -3303,24 +3318,24 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3303
3318
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3304
3319
  }
3305
3320
  finishAnimation() {
3306
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(vu), this.currentAnimation.stop()), this.completeAnimation();
3321
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(fu), this.currentAnimation.stop()), this.completeAnimation();
3307
3322
  }
3308
3323
  applyTransformsToTarget() {
3309
3324
  const r = this.getLead();
3310
3325
  let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
3311
3326
  if (!(!a || !l || !c)) {
3312
- if (this !== r && this.layout && c && Pr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3327
+ if (this !== r && this.layout && c && Sr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3313
3328
  l = this.target || L();
3314
3329
  const h = j(this.layout.layoutBox.x);
3315
3330
  l.x.min = r.target.x.min, l.x.max = l.x.min + h;
3316
3331
  const f = j(this.layout.layoutBox.y);
3317
3332
  l.y.min = r.target.y.min, l.y.max = l.y.min + f;
3318
3333
  }
3319
- z(a, l), Qt(a, u), Bt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3334
+ H(a, l), Qt(a, u), Bt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3320
3335
  }
3321
3336
  }
3322
3337
  registerSharedNode(r, a) {
3323
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new mu()), this.sharedNodes.get(r).add(a);
3338
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new hu()), this.sharedNodes.get(r).add(a);
3324
3339
  const l = a.options.initialPromotionConfig;
3325
3340
  a.promote({
3326
3341
  transition: l ? l.transition : void 0,
@@ -3385,17 +3400,17 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3385
3400
  r.visibility = "";
3386
3401
  const u = c.animationValues || c.latestValues;
3387
3402
  this.applyTransformsToTarget();
3388
- let h = ou(this.projectionDeltaWithTransform, this.treeScale, u);
3403
+ let h = iu(this.projectionDeltaWithTransform, this.treeScale, u);
3389
3404
  l && (h = l(u, h)), r.transform = h;
3390
3405
  const { x: f, y: p } = this.projectionDelta;
3391
3406
  r.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
3392
3407
  for (const d in Qe) {
3393
3408
  if (u[d] === void 0) continue;
3394
- const { correct: m, applyTo: v, isCSSVariable: g } = Qe[d], T = h === "none" ? u[d] : m(u[d], c);
3395
- if (v) {
3396
- const x = v.length;
3397
- for (let w = 0; w < x; w++) r[v[w]] = T;
3398
- } else g ? this.options.visualElement.renderState.vars[d] = T : r[d] = T;
3409
+ const { correct: m, applyTo: g, isCSSVariable: v } = Qe[d], T = h === "none" ? u[d] : m(u[d], c);
3410
+ if (g) {
3411
+ const x = g.length;
3412
+ for (let w = 0; w < x; w++) r[g[w]] = T;
3413
+ } else v ? this.options.visualElement.renderState.vars[d] = T : r[d] = T;
3399
3414
  }
3400
3415
  this.options.layoutId && (r.pointerEvents = c === this ? te(a?.pointerEvents) || "" : "none");
3401
3416
  }
@@ -3407,10 +3422,10 @@ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3407
3422
  }
3408
3423
  };
3409
3424
  }
3410
- function yu(t) {
3425
+ function pu(t) {
3411
3426
  t.updateLayout();
3412
3427
  }
3413
- function Tu(t) {
3428
+ function mu(t) {
3414
3429
  const e = t.resumeFrom?.snapshot || t.snapshot;
3415
3430
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3416
3431
  const { layoutBox: i, measuredBox: n } = t.layout, { animationType: s } = t.options, o = e.source !== t.layout.source;
@@ -3421,7 +3436,7 @@ function Tu(t) {
3421
3436
  else if (s === "x" || s === "y") {
3422
3437
  const u = s === "x" ? "y" : "x";
3423
3438
  ti(o ? e.measuredBox[u] : e.layoutBox[u], i[u]);
3424
- } else Pr(s, e.layoutBox, i) && q((u) => {
3439
+ } else Sr(s, e.layoutBox, i) && q((u) => {
3425
3440
  const h = o ? e.measuredBox[u] : e.layoutBox[u], f = j(i[u]);
3426
3441
  h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + f);
3427
3442
  });
@@ -3429,7 +3444,7 @@ function Tu(t) {
3429
3444
  Bt(r, i, e.layoutBox);
3430
3445
  const a = St();
3431
3446
  o ? Bt(a, t.applyTransform(n, !0), e.measuredBox) : Bt(a, i, e.layoutBox);
3432
- const l = !gr(r);
3447
+ const l = !yr(r);
3433
3448
  let c = !1;
3434
3449
  if (!t.resumeFrom) {
3435
3450
  const u = t.getClosestProjectingParent();
@@ -3439,7 +3454,7 @@ function Tu(t) {
3439
3454
  const p = t.options.layoutAnchor || void 0, d = L();
3440
3455
  ue(d, e.layoutBox, h.layoutBox, p);
3441
3456
  const m = L();
3442
- ue(m, i, f.layoutBox, p), yr(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3457
+ ue(m, i, f.layoutBox, p), Tr(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3443
3458
  }
3444
3459
  }
3445
3460
  }
@@ -3457,44 +3472,44 @@ function Tu(t) {
3457
3472
  }
3458
3473
  t.options.transition = void 0;
3459
3474
  }
3460
- function xu(t) {
3475
+ function vu(t) {
3461
3476
  yt.value && ht.nodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
3462
3477
  }
3463
- function wu(t) {
3478
+ function gu(t) {
3464
3479
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3465
3480
  }
3466
- function Pu(t) {
3481
+ function yu(t) {
3467
3482
  t.clearSnapshot();
3468
3483
  }
3469
3484
  function Dn(t) {
3470
3485
  t.clearMeasurements();
3471
3486
  }
3472
- function Su(t) {
3487
+ function Tu(t) {
3473
3488
  t.isLayoutDirty = !0, t.updateLayout();
3474
3489
  }
3475
3490
  function En(t) {
3476
3491
  t.isLayoutDirty = !1;
3477
3492
  }
3478
- function bu(t) {
3493
+ function xu(t) {
3479
3494
  t.isAnimationBlocked && t.layout && !t.isLayoutDirty && (t.snapshot = t.layout, t.isLayoutDirty = !0);
3480
3495
  }
3481
- function Au(t) {
3496
+ function wu(t) {
3482
3497
  const { visualElement: e } = t.options;
3483
3498
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3484
3499
  }
3485
3500
  function Rn(t) {
3486
3501
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3487
3502
  }
3488
- function Vu(t) {
3503
+ function Pu(t) {
3489
3504
  t.resolveTargetDelta();
3490
3505
  }
3491
- function Mu(t) {
3506
+ function Su(t) {
3492
3507
  t.calcProjection();
3493
3508
  }
3494
- function Cu(t) {
3509
+ function bu(t) {
3495
3510
  t.resetSkewAndRotation();
3496
3511
  }
3497
- function Du(t) {
3512
+ function Au(t) {
3498
3513
  t.removeLeadSnapshot();
3499
3514
  }
3500
3515
  function Ln(t, e, i) {
@@ -3503,13 +3518,13 @@ function Ln(t, e, i) {
3503
3518
  function kn(t, e, i, n) {
3504
3519
  t.min = V(e.min, i.min, n), t.max = V(e.max, i.max, n);
3505
3520
  }
3506
- function Eu(t, e, i, n) {
3521
+ function Vu(t, e, i, n) {
3507
3522
  kn(t.x, e.x, i.x, n), kn(t.y, e.y, i.y, n);
3508
3523
  }
3509
- function Ru(t) {
3524
+ function Mu(t) {
3510
3525
  return t.animationValues && t.animationValues.opacityExit !== void 0;
3511
3526
  }
3512
- var Lu = {
3527
+ var Cu = {
3513
3528
  duration: 0.45,
3514
3529
  ease: [
3515
3530
  0.4,
@@ -3517,34 +3532,34 @@ var Lu = {
3517
3532
  0.1,
3518
3533
  1
3519
3534
  ]
3520
- }, Bn = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), In = Bn("applewebkit/") && !Bn("chrome/") ? Math.round : _;
3521
- function Fn(t) {
3522
- t.min = In(t.min), t.max = In(t.max);
3535
+ }, Bn = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Fn = Bn("applewebkit/") && !Bn("chrome/") ? Math.round : z;
3536
+ function In(t) {
3537
+ t.min = Fn(t.min), t.max = Fn(t.max);
3523
3538
  }
3524
- function ku(t) {
3525
- Fn(t.x), Fn(t.y);
3539
+ function Du(t) {
3540
+ In(t.x), In(t.y);
3526
3541
  }
3527
- function Pr(t, e, i) {
3528
- return t === "position" || t === "preserve-aspect" && !tu(bn(e), bn(i), 0.2);
3542
+ function Sr(t, e, i) {
3543
+ return t === "position" || t === "preserve-aspect" && !ql(bn(e), bn(i), 0.2);
3529
3544
  }
3530
- function Bu(t) {
3545
+ function Eu(t) {
3531
3546
  return t !== t.root && t.scroll?.wasRoot;
3532
3547
  }
3533
- var Iu = wr({
3548
+ var Ru = Pr({
3534
3549
  attachResizeListener: (t, e) => Nt(t, "resize", e),
3535
3550
  measureScroll: () => ({
3536
3551
  x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
3537
3552
  y: document.documentElement.scrollTop || document.body?.scrollTop || 0
3538
3553
  }),
3539
3554
  checkIsScrollRoot: () => !0
3540
- }), Ae = { current: void 0 }, Sr = wr({
3555
+ }), Ae = { current: void 0 }, br = Pr({
3541
3556
  measureScroll: (t) => ({
3542
3557
  x: t.scrollLeft,
3543
3558
  y: t.scrollTop
3544
3559
  }),
3545
3560
  defaultParent: () => {
3546
3561
  if (!Ae.current) {
3547
- const t = new Iu({});
3562
+ const t = new Ru({});
3548
3563
  t.mount(window), t.setOptions({ layoutScroll: !0 }), Ae.current = t;
3549
3564
  }
3550
3565
  return Ae.current;
@@ -3553,15 +3568,15 @@ var Iu = wr({
3553
3568
  t.style.transform = e !== void 0 ? e : "none";
3554
3569
  },
3555
3570
  checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3556
- }), br = Vt({
3571
+ }), Ar = Vt({
3557
3572
  transformPagePoint: (t) => t,
3558
3573
  isStatic: !1,
3559
3574
  reducedMotion: "never"
3560
3575
  });
3561
- function Fu(t = !0) {
3576
+ function Lu(t = !0) {
3562
3577
  const e = U(si);
3563
3578
  if (e === null) return [!0, null];
3564
- const { isPresent: i, onExitComplete: n, register: s } = e, o = zr();
3579
+ const { isPresent: i, onExitComplete: n, register: s } = e, o = Wr();
3565
3580
  ni(() => {
3566
3581
  if (t) return s(o);
3567
3582
  }, [t]);
@@ -3572,7 +3587,7 @@ function Fu(t = !0) {
3572
3587
  ]);
3573
3588
  return !i && n ? [!1, r] : [!0];
3574
3589
  }
3575
- var Ar = Vt({ strict: !1 }), On = {
3590
+ var Vr = Vt({ strict: !1 }), On = {
3576
3591
  animation: [
3577
3592
  "animate",
3578
3593
  "variants",
@@ -3610,77 +3625,25 @@ var Ar = Vt({ strict: !1 }), On = {
3610
3625
  ],
3611
3626
  layout: ["layout", "layoutId"]
3612
3627
  }, jn = !1;
3613
- function Ou() {
3628
+ function ku() {
3614
3629
  if (jn) return;
3615
3630
  const t = {};
3616
3631
  for (const e in On) t[e] = { isEnabled: (i) => On[e].some((n) => !!i[n]) };
3617
3632
  nr(t), jn = !0;
3618
3633
  }
3619
- function Vr() {
3620
- return Ou(), Vl();
3634
+ function Mr() {
3635
+ return ku(), Sl();
3621
3636
  }
3622
- function ju(t) {
3623
- const e = Vr();
3637
+ function Bu(t) {
3638
+ const e = Mr();
3624
3639
  for (const i in t) e[i] = {
3625
3640
  ...e[i],
3626
3641
  ...t[i]
3627
3642
  };
3628
3643
  nr(e);
3629
3644
  }
3630
- var Nu = /* @__PURE__ */ new Set([
3631
- "animate",
3632
- "exit",
3633
- "variants",
3634
- "initial",
3635
- "style",
3636
- "values",
3637
- "variants",
3638
- "transition",
3639
- "transformTemplate",
3640
- "custom",
3641
- "inherit",
3642
- "onBeforeLayoutMeasure",
3643
- "onAnimationStart",
3644
- "onAnimationComplete",
3645
- "onUpdate",
3646
- "onDragStart",
3647
- "onDrag",
3648
- "onDragEnd",
3649
- "onMeasureDragConstraints",
3650
- "onDirectionLock",
3651
- "onDragTransitionEnd",
3652
- "_dragX",
3653
- "_dragY",
3654
- "onHoverStart",
3655
- "onHoverEnd",
3656
- "onViewportEnter",
3657
- "onViewportLeave",
3658
- "globalTapTarget",
3659
- "propagate",
3660
- "ignoreStrict",
3661
- "viewport"
3662
- ]);
3663
- function ce(t) {
3664
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Nu.has(t);
3665
- }
3666
- var Uu = /* @__PURE__ */ Wr({ default: () => Mr }), Mr, Wu = Ur((() => {
3667
- throw Mr = {}, new Error('Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?');
3668
- })), Cr = (t) => !ce(t);
3669
- function $u(t) {
3670
- typeof t == "function" && (Cr = (e) => e.startsWith("on") ? !ce(e) : t(e));
3671
- }
3672
- try {
3673
- $u((Wu(), Nr(Uu)).default);
3674
- } catch {
3675
- }
3676
- function Ku(t, e, i) {
3677
- const n = {};
3678
- for (const s in t)
3679
- s === "values" && typeof t.values == "object" || F(t[s]) || (Cr(s) || i === !0 && ce(s) || !e && !ce(s) || t.draggable && s.startsWith("onDrag")) && (n[s] = t[s]);
3680
- return n;
3681
- }
3682
3645
  var me = /* @__PURE__ */ Vt({});
3683
- function _u(t, e) {
3646
+ function Fu(t, e) {
3684
3647
  if (pe(t)) {
3685
3648
  const { initial: i, animate: n } = t;
3686
3649
  return {
@@ -3690,8 +3653,8 @@ function _u(t, e) {
3690
3653
  }
3691
3654
  return t.inherit !== !1 ? e : {};
3692
3655
  }
3693
- function zu(t) {
3694
- const { initial: e, animate: i } = _u(t, U(me));
3656
+ function Iu(t) {
3657
+ const { initial: e, animate: i } = Fu(t, U(me));
3695
3658
  return he(() => ({
3696
3659
  initial: e,
3697
3660
  animate: i
@@ -3706,45 +3669,90 @@ var Di = () => ({
3706
3669
  transformOrigin: {},
3707
3670
  vars: {}
3708
3671
  });
3709
- function Dr(t, e, i) {
3710
- for (const n in e) !F(e[n]) && !cr(n, i) && (t[n] = e[n]);
3672
+ function Cr(t, e, i) {
3673
+ for (const n in e) !I(e[n]) && !cr(n, i) && (t[n] = e[n]);
3711
3674
  }
3712
- function Hu({ transformTemplate: t }, e) {
3675
+ function Ou({ transformTemplate: t }, e) {
3713
3676
  return he(() => {
3714
3677
  const i = Di();
3715
3678
  return Mi(i, e, t), Object.assign({}, i.vars, i.style);
3716
3679
  }, [e]);
3717
3680
  }
3718
- function Gu(t, e) {
3681
+ function ju(t, e) {
3719
3682
  const i = t.style || {}, n = {};
3720
- return Dr(n, i, t), Object.assign(n, Hu(t, e)), n;
3683
+ return Cr(n, i, t), Object.assign(n, Ou(t, e)), n;
3721
3684
  }
3722
- function Xu(t, e) {
3723
- const i = {}, n = Gu(t, e);
3685
+ function Nu(t, e) {
3686
+ const i = {}, n = ju(t, e);
3724
3687
  return t.drag && t.dragListener !== !1 && (i.draggable = !1, n.userSelect = n.WebkitUserSelect = n.WebkitTouchCallout = "none", n.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (i.tabIndex = 0), i.style = n, i;
3725
3688
  }
3726
- var Er = () => ({
3689
+ var Dr = () => ({
3727
3690
  ...Di(),
3728
3691
  attrs: {}
3729
3692
  });
3730
- function Yu(t, e, i, n) {
3693
+ function Uu(t, e, i, n) {
3731
3694
  const s = he(() => {
3732
- const o = Er();
3733
- return hr(o, e, dr(n), t.transformTemplate, t.style), {
3695
+ const o = Dr();
3696
+ return fr(o, e, pr(n), t.transformTemplate, t.style), {
3734
3697
  ...o.attrs,
3735
3698
  style: { ...o.style }
3736
3699
  };
3737
3700
  }, [e]);
3738
3701
  if (t.style) {
3739
3702
  const o = {};
3740
- Dr(o, t.style, t), s.style = {
3703
+ Cr(o, t.style, t), s.style = {
3741
3704
  ...o,
3742
3705
  ...s.style
3743
3706
  };
3744
3707
  }
3745
3708
  return s;
3746
3709
  }
3747
- var qu = [
3710
+ var Wu = /* @__PURE__ */ new Set([
3711
+ "animate",
3712
+ "exit",
3713
+ "variants",
3714
+ "initial",
3715
+ "style",
3716
+ "values",
3717
+ "variants",
3718
+ "transition",
3719
+ "transformTemplate",
3720
+ "custom",
3721
+ "inherit",
3722
+ "onBeforeLayoutMeasure",
3723
+ "onAnimationStart",
3724
+ "onAnimationComplete",
3725
+ "onUpdate",
3726
+ "onDragStart",
3727
+ "onDrag",
3728
+ "onDragEnd",
3729
+ "onMeasureDragConstraints",
3730
+ "onDirectionLock",
3731
+ "onDragTransitionEnd",
3732
+ "_dragX",
3733
+ "_dragY",
3734
+ "onHoverStart",
3735
+ "onHoverEnd",
3736
+ "onViewportEnter",
3737
+ "onViewportLeave",
3738
+ "globalTapTarget",
3739
+ "propagate",
3740
+ "ignoreStrict",
3741
+ "viewport"
3742
+ ]);
3743
+ function ce(t) {
3744
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Wu.has(t);
3745
+ }
3746
+ function $u(t, e) {
3747
+ return t.startsWith("on") ? !ce(t) : e?.(t) ?? !ce(t);
3748
+ }
3749
+ function Ku(t, e, i, n) {
3750
+ const s = {};
3751
+ for (const o in t)
3752
+ o === "values" && typeof t.values == "object" || I(t[o]) || ($u(o, n) || i === !0 && ce(o) || !e && !ce(o) || t.draggable && o.startsWith("onDrag")) && (s[o] = t[o]);
3753
+ return s;
3754
+ }
3755
+ var zu = [
3748
3756
  "animate",
3749
3757
  "circle",
3750
3758
  "defs",
@@ -3772,26 +3780,26 @@ var qu = [
3772
3780
  "view"
3773
3781
  ];
3774
3782
  function Ei(t) {
3775
- return typeof t != "string" || t.includes("-") ? !1 : !!(qu.indexOf(t) > -1 || /[A-Z]/u.test(t));
3783
+ return typeof t != "string" || t.includes("-") ? !1 : !!(zu.indexOf(t) > -1 || /[A-Z]/u.test(t));
3776
3784
  }
3777
- function Zu(t, e, i, { latestValues: n }, s, o = !1, r) {
3778
- const a = (r ?? Ei(t) ? Yu : Xu)(e, n, s, t), l = Ku(e, typeof t == "string", o), c = t !== qn ? {
3785
+ function Hu(t, e, i, { latestValues: n }, s, o = !1, r, a) {
3786
+ const l = (r ?? Ei(t) ? Uu : Nu)(e, n, s, t), c = Ku(e, typeof t == "string", o, a), u = t !== qn ? {
3787
+ ...c,
3779
3788
  ...l,
3780
- ...a,
3781
3789
  ref: i
3782
- } : {}, { children: u } = e, h = he(() => F(u) ? u.get() : u, [u]);
3783
- return Kr(t, {
3784
- ...c,
3785
- children: h
3790
+ } : {}, { children: h } = e, f = he(() => I(h) ? h.get() : h, [h]);
3791
+ return Nr(t, {
3792
+ ...u,
3793
+ children: f
3786
3794
  });
3787
3795
  }
3788
- function Ju({ scrapeMotionValuesFromProps: t, createRenderState: e }, i, n, s) {
3796
+ function Gu({ scrapeMotionValuesFromProps: t, createRenderState: e }, i, n, s) {
3789
3797
  return {
3790
- latestValues: Qu(i, n, s, t),
3798
+ latestValues: _u(i, n, s, t),
3791
3799
  renderState: e()
3792
3800
  };
3793
3801
  }
3794
- function Qu(t, e, i, n) {
3802
+ function _u(t, e, i, n) {
3795
3803
  const s = {}, o = n(t, {});
3796
3804
  for (const f in o) s[f] = te(o[f]);
3797
3805
  let { initial: r, animate: a } = t;
@@ -3805,9 +3813,9 @@ function Qu(t, e, i, n) {
3805
3813
  for (let p = 0; p < f.length; p++) {
3806
3814
  const d = Ti(t, f[p]);
3807
3815
  if (d) {
3808
- const { transitionEnd: m, transition: v, ...g } = d;
3809
- for (const T in g) {
3810
- let x = g[T];
3816
+ const { transitionEnd: m, transition: g, ...v } = d;
3817
+ for (const T in v) {
3818
+ let x = v[T];
3811
3819
  if (Array.isArray(x)) {
3812
3820
  const w = u ? x.length - 1 : 0;
3813
3821
  x = x[w];
@@ -3820,17 +3828,17 @@ function Qu(t, e, i, n) {
3820
3828
  }
3821
3829
  return s;
3822
3830
  }
3823
- var Rr = (t) => (e, i) => {
3824
- const n = U(me), s = U(si), o = () => Ju(t, e, n, s);
3825
- return i ? o() : Xr(o);
3826
- }, tc = /* @__PURE__ */ Rr({
3831
+ var Er = (t) => (e, i) => {
3832
+ const n = U(me), s = U(si), o = () => Gu(t, e, n, s);
3833
+ return i ? o() : zr(o);
3834
+ }, Xu = /* @__PURE__ */ Er({
3827
3835
  scrapeMotionValuesFromProps: Ci,
3828
3836
  createRenderState: Di
3829
- }), ec = /* @__PURE__ */ Rr({
3830
- scrapeMotionValuesFromProps: pr,
3831
- createRenderState: Er
3832
- }), ic = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3833
- function nc(t, e, i) {
3837
+ }), Yu = /* @__PURE__ */ Er({
3838
+ scrapeMotionValuesFromProps: mr,
3839
+ createRenderState: Dr
3840
+ }), qu = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3841
+ function Zu(t, e, i) {
3834
3842
  const n = ft(i);
3835
3843
  Jn(() => {
3836
3844
  n.current = i;
@@ -3839,19 +3847,20 @@ function nc(t, e, i) {
3839
3847
  return Zn((o) => {
3840
3848
  o && t.onMount?.(o), e && (o ? e.mount(o) : e.unmount());
3841
3849
  const r = n.current;
3842
- if (typeof r == "function") if (o) {
3843
- const a = r(o);
3844
- typeof a == "function" && (s.current = a);
3845
- } else s.current ? (s.current(), s.current = null) : r(o);
3850
+ if (typeof r == "function")
3851
+ if (o) {
3852
+ const a = r(o);
3853
+ typeof a == "function" && (s.current = a);
3854
+ } else s.current ? (s.current(), s.current = null) : r(o);
3846
3855
  else r && (r.current = o);
3847
3856
  }, [e]);
3848
3857
  }
3849
- var Lr = Vt({});
3858
+ var Rr = Vt({});
3850
3859
  function Tt(t) {
3851
3860
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
3852
3861
  }
3853
- function sc(t, e, i, n, s, o) {
3854
- const { visualElement: r } = U(me), a = U(Ar), l = U(si), c = U(br), u = c.reducedMotion, h = c.skipAnimations, f = ft(null), p = ft(!1);
3862
+ function Ju(t, e, i, n, s, o) {
3863
+ const { visualElement: r } = U(me), a = U(Vr), l = U(si), c = U(Ar), u = c.reducedMotion, h = c.skipAnimations, f = ft(null), p = ft(!1);
3855
3864
  n = n || a.renderer, !f.current && n && (f.current = n(t, {
3856
3865
  visualState: e,
3857
3866
  parent: r,
@@ -3862,24 +3871,24 @@ function sc(t, e, i, n, s, o) {
3862
3871
  skipAnimations: h,
3863
3872
  isSVG: o
3864
3873
  }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3865
- const d = f.current, m = U(Lr);
3866
- d && !d.projection && s && (d.type === "html" || d.type === "svg") && rc(f.current, i, s, m);
3867
- const v = ft(!1);
3874
+ const d = f.current, m = U(Rr);
3875
+ d && !d.projection && s && (d.type === "html" || d.type === "svg") && Qu(f.current, i, s, m);
3876
+ const g = ft(!1);
3868
3877
  Jn(() => {
3869
- d && v.current && d.update(i, l);
3878
+ d && g.current && d.update(i, l);
3870
3879
  });
3871
- const g = i[Ks], T = ft(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
3872
- return qr(() => {
3873
- p.current = !0, d && (v.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), T.current && d.animationState && d.animationState.animateChanges());
3880
+ const v = i[Ks], T = ft(!!v && typeof window < "u" && !window.MotionHandoffIsComplete?.(v) && window.MotionHasOptimisedAnimation?.(v));
3881
+ return Gr(() => {
3882
+ p.current = !0, d && (g.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), T.current && d.animationState && d.animationState.animateChanges());
3874
3883
  }), ni(() => {
3875
3884
  d && (!T.current && d.animationState && d.animationState.animateChanges(), T.current && (queueMicrotask(() => {
3876
- window.MotionHandoffMarkAsComplete?.(g);
3885
+ window.MotionHandoffMarkAsComplete?.(v);
3877
3886
  }), T.current = !1), d.enteringChildren = void 0);
3878
3887
  }), d;
3879
3888
  }
3880
- function rc(t, e, i, n) {
3889
+ function Qu(t, e, i, n) {
3881
3890
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutAnchor: u, layoutCrossfade: h } = e;
3882
- t.projection = new i(t.latestValues, e["data-framer-portal-id"] ? void 0 : kr(t.parent)), t.projection.setOptions({
3891
+ t.projection = new i(t.latestValues, e["data-framer-portal-id"] ? void 0 : Lr(t.parent)), t.projection.setOptions({
3883
3892
  layoutId: s,
3884
3893
  layout: o,
3885
3894
  alwaysMeasureLayout: !!r || a && Tt(a),
@@ -3892,50 +3901,50 @@ function rc(t, e, i, n) {
3892
3901
  layoutAnchor: u
3893
3902
  });
3894
3903
  }
3895
- function kr(t) {
3904
+ function Lr(t) {
3896
3905
  if (t)
3897
- return t.options.allowProjection !== !1 ? t.projection : kr(t.parent);
3906
+ return t.options.allowProjection !== !1 ? t.projection : Lr(t.parent);
3898
3907
  }
3899
3908
  function Ve(t, { forwardMotionProps: e = !1, type: i } = {}, n, s) {
3900
- n && ju(n);
3901
- const o = i ? i === "svg" : Ei(t), r = o ? ec : tc;
3909
+ n && Bu(n);
3910
+ const o = i ? i === "svg" : Ei(t), r = o ? Yu : Xu;
3902
3911
  function a(c, u) {
3903
3912
  let h;
3904
3913
  const f = {
3905
- ...U(br),
3914
+ ...U(Ar),
3906
3915
  ...c,
3907
- layoutId: oc(c)
3908
- }, { isStatic: p } = f, d = zu(c), m = r(c, p);
3916
+ layoutId: tc(c)
3917
+ }, { isStatic: p, isValidProp: d } = f, m = Iu(c), g = r(c, p);
3909
3918
  if (!p && typeof window < "u") {
3910
- ac(f, n);
3911
- const v = lc(f);
3912
- h = v.MeasureLayout, d.visualElement = sc(t, m, f, s, v.ProjectionNode, o);
3919
+ ec(f, n);
3920
+ const v = ic(f);
3921
+ h = v.MeasureLayout, m.visualElement = Ju(t, g, f, s, v.ProjectionNode, o);
3913
3922
  }
3914
- return Gr(me.Provider, {
3915
- value: d,
3916
- children: [h && d.visualElement ? Qn(h, {
3917
- visualElement: d.visualElement,
3923
+ return Kr(me.Provider, {
3924
+ value: m,
3925
+ children: [h && m.visualElement ? Qn(h, {
3926
+ visualElement: m.visualElement,
3918
3927
  ...f
3919
- }) : null, Zu(t, c, nc(m, d.visualElement, u), m, p, e, o)]
3928
+ }) : null, Hu(t, c, Zu(g, m.visualElement, u), g, p, e, o, d)]
3920
3929
  });
3921
3930
  }
3922
3931
  a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3923
- const l = _r(a);
3924
- return l[ic] = t, l;
3932
+ const l = Ur(a);
3933
+ return l[qu] = t, l;
3925
3934
  }
3926
- function oc({ layoutId: t }) {
3935
+ function tc({ layoutId: t }) {
3927
3936
  const e = U(ts).id;
3928
3937
  return e && t !== void 0 ? e + "-" + t : t;
3929
3938
  }
3930
- function ac(t, e) {
3931
- const i = U(Ar).strict;
3939
+ function ec(t, e) {
3940
+ const i = U(Vr).strict;
3932
3941
  if (process.env.NODE_ENV !== "production" && e && i) {
3933
3942
  const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3934
- t.ignoreStrict ? Mt(!1, n, "lazy-strict-mode") : it(!1, n, "lazy-strict-mode");
3943
+ t.ignoreStrict ? Mt(!1, n, "lazy-strict-mode") : tt(!1, n, "lazy-strict-mode");
3935
3944
  }
3936
3945
  }
3937
- function lc(t) {
3938
- const { drag: e, layout: i } = Vr();
3946
+ function ic(t) {
3947
+ const { drag: e, layout: i } = Mr();
3939
3948
  if (!e && !i) return {};
3940
3949
  const n = {
3941
3950
  ...e,
@@ -3946,14 +3955,14 @@ function lc(t) {
3946
3955
  ProjectionNode: n.ProjectionNode
3947
3956
  };
3948
3957
  }
3949
- function uc(t, e) {
3958
+ function nc(t, e) {
3950
3959
  if (typeof Proxy > "u") return Ve;
3951
3960
  const i = /* @__PURE__ */ new Map(), n = (o, r) => Ve(o, r, t, e), s = (o, r) => (process.env.NODE_ENV !== "production" && ai(!1, "motion() is deprecated. Use motion.create() instead."), n(o, r));
3952
3961
  return new Proxy(s, { get: (o, r) => r === "create" ? n : (i.has(r) || i.set(r, Ve(r, void 0, t, e)), i.get(r)) });
3953
3962
  }
3954
- var cc = (t, e) => e.isSVG ?? Ei(t) ? new Kl(e) : new Ol(e, { allowProjection: t !== qn }), hc = class extends ot {
3963
+ var sc = (t, e) => e.isSVG ?? Ei(t) ? new Nl(e) : new Bl(e, { allowProjection: t !== qn }), rc = class extends ot {
3955
3964
  constructor(t) {
3956
- super(t), t.animationState || (t.animationState = Xl(t));
3965
+ super(t), t.animationState || (t.animationState = zl(t));
3957
3966
  }
3958
3967
  updateAnimationControlsSubscription() {
3959
3968
  const { animate: t } = this.node.getProps();
@@ -3969,9 +3978,9 @@ var cc = (t, e) => e.isSVG ?? Ei(t) ? new Kl(e) : new Ol(e, { allowProjection: t
3969
3978
  unmount() {
3970
3979
  this.node.animationState.reset(), this.unmountControls?.();
3971
3980
  }
3972
- }, fc = 0, dc = class extends ot {
3981
+ }, oc = 0, ac = class extends ot {
3973
3982
  constructor() {
3974
- super(...arguments), this.id = fc++, this.isExitComplete = !1;
3983
+ super(...arguments), this.id = oc++, this.isExitComplete = !1;
3975
3984
  }
3976
3985
  update() {
3977
3986
  if (!this.node.presenceContext) return;
@@ -4003,9 +4012,9 @@ var cc = (t, e) => e.isSVG ?? Ei(t) ? new Kl(e) : new Ol(e, { allowProjection: t
4003
4012
  }
4004
4013
  unmount() {
4005
4014
  }
4006
- }, pc = {
4007
- animation: { Feature: hc },
4008
- exit: { Feature: dc }
4015
+ }, lc = {
4016
+ animation: { Feature: rc },
4017
+ exit: { Feature: ac }
4009
4018
  };
4010
4019
  function Kt(t) {
4011
4020
  return { point: {
@@ -4013,16 +4022,16 @@ function Kt(t) {
4013
4022
  y: t.pageY
4014
4023
  } };
4015
4024
  }
4016
- var mc = (t) => (e) => Si(e) && t(e, Kt(e));
4017
- function It(t, e, i, n) {
4018
- return Nt(t, e, mc(i), n);
4025
+ var uc = (t) => (e) => Si(e) && t(e, Kt(e));
4026
+ function Ft(t, e, i, n) {
4027
+ return Nt(t, e, uc(i), n);
4019
4028
  }
4020
- var Br = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Un = (t, e) => Math.abs(t - e);
4021
- function vc(t, e) {
4029
+ var kr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Un = (t, e) => Math.abs(t - e);
4030
+ function cc(t, e) {
4022
4031
  const i = Un(t.x, e.x), n = Un(t.y, e.y);
4023
4032
  return Math.sqrt(i ** 2 + n ** 2);
4024
4033
  }
4025
- var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Ir = class {
4034
+ var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Br = class {
4026
4035
  constructor(t, e, { transformPagePoint: i, contextWindow: n = window, dragSnapToOrigin: s = !1, distanceThreshold: o = 3, element: r } = {}) {
4027
4036
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (f) => {
4028
4037
  this.handleScroll(f.target);
@@ -4030,30 +4039,30 @@ var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Ir = class {
4030
4039
  this.handleScroll(window);
4031
4040
  }, this.updatePoint = () => {
4032
4041
  if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4033
- this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ht(this.lastRawMoveEventInfo, this.transformPagePoint));
4034
- const f = Me(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, d = vc(f.offset, {
4042
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gt(this.lastRawMoveEventInfo, this.transformPagePoint));
4043
+ const f = Me(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, d = cc(f.offset, {
4035
4044
  x: 0,
4036
4045
  y: 0
4037
4046
  }) >= this.distanceThreshold;
4038
4047
  if (!p && !d) return;
4039
- const { point: m } = f, { timestamp: v } = I;
4048
+ const { point: m } = f, { timestamp: g } = F;
4040
4049
  this.history.push({
4041
4050
  ...m,
4042
- timestamp: v
4051
+ timestamp: g
4043
4052
  });
4044
- const { onStart: g, onMove: T } = this.handlers;
4045
- p || (g && g(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
4053
+ const { onStart: v, onMove: T } = this.handlers;
4054
+ p || (v && v(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
4046
4055
  }, this.handlePointerMove = (f, p) => {
4047
- this.lastMoveEvent = f, this.lastRawMoveEventInfo = p, this.lastMoveEventInfo = Ht(p, this.transformPagePoint), M.update(this.updatePoint, !0);
4056
+ this.lastMoveEvent = f, this.lastRawMoveEventInfo = p, this.lastMoveEventInfo = Gt(p, this.transformPagePoint), M.update(this.updatePoint, !0);
4048
4057
  }, this.handlePointerUp = (f, p) => {
4049
4058
  this.end();
4050
- const { onEnd: d, onSessionEnd: m, resumeAnimation: v } = this.handlers;
4051
- if ((this.dragSnapToOrigin || !this.startEvent) && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4052
- const g = Me(f.type === "pointercancel" ? this.lastMoveEventInfo : Ht(p, this.transformPagePoint), this.history);
4053
- this.startEvent && d && d(f, g), m && m(f, g);
4059
+ const { onEnd: d, onSessionEnd: m, resumeAnimation: g } = this.handlers;
4060
+ if ((this.dragSnapToOrigin || !this.startEvent) && g && g(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4061
+ const v = Me(f.type === "pointercancel" ? this.lastMoveEventInfo : Gt(p, this.transformPagePoint), this.history);
4062
+ this.startEvent && d && d(f, v), m && m(f, v);
4054
4063
  }, !Si(t)) return;
4055
4064
  this.dragSnapToOrigin = s, this.handlers = e, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = n || window;
4056
- const a = Ht(Kt(t), this.transformPagePoint), { point: l } = a, { timestamp: c } = I;
4065
+ const a = Gt(Kt(t), this.transformPagePoint), { point: l } = a, { timestamp: c } = F;
4057
4066
  this.history = [{
4058
4067
  ...l,
4059
4068
  timestamp: c
@@ -4064,7 +4073,7 @@ var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Ir = class {
4064
4073
  passive: !0,
4065
4074
  capture: !0
4066
4075
  };
4067
- this.removeListeners = Ut(It(this.contextWindow, "pointermove", this.handlePointerMove, h), It(this.contextWindow, "pointerup", this.handlePointerUp, h), It(this.contextWindow, "pointercancel", this.handlePointerUp, h)), r && this.startScrollTracking(r);
4076
+ this.removeListeners = Ut(Ft(this.contextWindow, "pointermove", this.handlePointerMove, h), Ft(this.contextWindow, "pointerup", this.handlePointerUp, h), Ft(this.contextWindow, "pointercancel", this.handlePointerUp, h)), r && this.startScrollTracking(r);
4068
4077
  }
4069
4078
  startScrollTracking(t) {
4070
4079
  let e = t.parentElement;
@@ -4104,7 +4113,7 @@ var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Ir = class {
4104
4113
  this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), rt(this.updatePoint);
4105
4114
  }
4106
4115
  };
4107
- function Ht(t, e) {
4116
+ function Gt(t, e) {
4108
4117
  return e ? { point: e(t.point) } : t;
4109
4118
  }
4110
4119
  function $n(t, e) {
@@ -4117,17 +4126,17 @@ function Me({ point: t }, e) {
4117
4126
  return {
4118
4127
  point: t,
4119
4128
  delta: $n(t, Fr(e)),
4120
- offset: $n(t, gc(e)),
4121
- velocity: yc(e, 0.1)
4129
+ offset: $n(t, hc(e)),
4130
+ velocity: fc(e, 0.1)
4122
4131
  };
4123
4132
  }
4124
- function gc(t) {
4133
+ function hc(t) {
4125
4134
  return t[0];
4126
4135
  }
4127
4136
  function Fr(t) {
4128
4137
  return t[t.length - 1];
4129
4138
  }
4130
- function yc(t, e) {
4139
+ function fc(t, e) {
4131
4140
  if (t.length < 2) return {
4132
4141
  x: 0,
4133
4142
  y: 0
@@ -4152,7 +4161,7 @@ function yc(t, e) {
4152
4161
  };
4153
4162
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4154
4163
  }
4155
- function Tc(t, { min: e, max: i }, n) {
4164
+ function dc(t, { min: e, max: i }, n) {
4156
4165
  return e !== void 0 && t < e ? t = n ? V(e, t, n.min) : Math.max(t, e) : i !== void 0 && t > i && (t = n ? V(i, t, n.max) : Math.min(t, i)), t;
4157
4166
  }
4158
4167
  function Kn(t, e, i) {
@@ -4161,51 +4170,51 @@ function Kn(t, e, i) {
4161
4170
  max: i !== void 0 ? t.max + i - (t.max - t.min) : void 0
4162
4171
  };
4163
4172
  }
4164
- function xc(t, { top: e, left: i, bottom: n, right: s }) {
4173
+ function pc(t, { top: e, left: i, bottom: n, right: s }) {
4165
4174
  return {
4166
4175
  x: Kn(t.x, i, s),
4167
4176
  y: Kn(t.y, e, n)
4168
4177
  };
4169
4178
  }
4170
- function _n(t, e) {
4179
+ function zn(t, e) {
4171
4180
  let i = e.min - t.min, n = e.max - t.max;
4172
4181
  return e.max - e.min < t.max - t.min && ([i, n] = [n, i]), {
4173
4182
  min: i,
4174
4183
  max: n
4175
4184
  };
4176
4185
  }
4177
- function wc(t, e) {
4186
+ function mc(t, e) {
4178
4187
  return {
4179
- x: _n(t.x, e.x),
4180
- y: _n(t.y, e.y)
4188
+ x: zn(t.x, e.x),
4189
+ y: zn(t.y, e.y)
4181
4190
  };
4182
4191
  }
4183
- function Pc(t, e) {
4192
+ function vc(t, e) {
4184
4193
  let i = 0.5;
4185
4194
  const n = j(t), s = j(e);
4186
- return s > n ? i = Ft(e.min, e.max - n, t.min) : n > s && (i = Ft(t.min, t.max - s, e.min)), Q(0, 1, i);
4195
+ return s > n ? i = It(e.min, e.max - n, t.min) : n > s && (i = It(t.min, t.max - s, e.min)), Q(0, 1, i);
4187
4196
  }
4188
- function Sc(t, e) {
4197
+ function gc(t, e) {
4189
4198
  const i = {};
4190
4199
  return e.min !== void 0 && (i.min = e.min - t.min), e.max !== void 0 && (i.max = e.max - t.min), i;
4191
4200
  }
4192
4201
  var ei = 0.35;
4193
- function bc(t = ei) {
4202
+ function yc(t = ei) {
4194
4203
  return t === !1 ? t = 0 : t === !0 && (t = ei), {
4195
- x: zn(t, "left", "right"),
4196
- y: zn(t, "top", "bottom")
4204
+ x: Hn(t, "left", "right"),
4205
+ y: Hn(t, "top", "bottom")
4197
4206
  };
4198
4207
  }
4199
- function zn(t, e, i) {
4208
+ function Hn(t, e, i) {
4200
4209
  return {
4201
- min: Hn(t, e),
4202
- max: Hn(t, i)
4210
+ min: Gn(t, e),
4211
+ max: Gn(t, i)
4203
4212
  };
4204
4213
  }
4205
- function Hn(t, e) {
4214
+ function Gn(t, e) {
4206
4215
  return typeof t == "number" ? t : t[e] || 0;
4207
4216
  }
4208
- var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4217
+ var Tc = /* @__PURE__ */ new WeakMap(), xc = class {
4209
4218
  constructor(t) {
4210
4219
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
4211
4220
  x: 0,
@@ -4219,31 +4228,31 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4219
4228
  e && this.snapToCursor(Kt(u).point), this.stopAnimation();
4220
4229
  }, o = (u, h) => {
4221
4230
  const { drag: f, dragPropagation: p, onDragStart: d } = this.getProps();
4222
- if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = il(f), !this.openDragLock))
4231
+ if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Qa(f), !this.openDragLock))
4223
4232
  return;
4224
- this.latestPointerEvent = u, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), q((v) => {
4225
- let g = this.getAxisMotionValue(v).get() || 0;
4226
- if (J.test(g)) {
4233
+ this.latestPointerEvent = u, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), q((g) => {
4234
+ let v = this.getAxisMotionValue(g).get() || 0;
4235
+ if (J.test(v)) {
4227
4236
  const { projection: T } = this.visualElement;
4228
4237
  if (T && T.layout) {
4229
- const x = T.layout.layoutBox[v];
4230
- x && (g = j(x) * (parseFloat(g) / 100));
4238
+ const x = T.layout.layoutBox[g];
4239
+ x && (v = j(x) * (parseFloat(v) / 100));
4231
4240
  }
4232
4241
  }
4233
- this.originPoint[v] = g;
4234
- }), d && M.update(() => d(u, h), !1, !0), ze(this.visualElement, "transform");
4242
+ this.originPoint[g] = v;
4243
+ }), d && M.update(() => d(u, h), !1, !0), He(this.visualElement, "transform");
4235
4244
  const { animationState: m } = this.visualElement;
4236
4245
  m && m.setActive("whileDrag", !0);
4237
4246
  }, r = (u, h) => {
4238
4247
  this.latestPointerEvent = u, this.latestPanInfo = h;
4239
4248
  const { dragPropagation: f, dragDirectionLock: p, onDirectionLock: d, onDrag: m } = this.getProps();
4240
4249
  if (!f && !this.openDragLock) return;
4241
- const { offset: v } = h;
4250
+ const { offset: g } = h;
4242
4251
  if (p && this.currentDirection === null) {
4243
- this.currentDirection = Cc(v), this.currentDirection !== null && d && d(this.currentDirection);
4252
+ this.currentDirection = Pc(g), this.currentDirection !== null && d && d(this.currentDirection);
4244
4253
  return;
4245
4254
  }
4246
- this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), m && M.update(() => m(u, h), !1, !0);
4255
+ this.updateAxis("x", h.point, g), this.updateAxis("y", h.point, g), this.visualElement.render(), m && M.update(() => m(u, h), !1, !0);
4247
4256
  }, a = (u, h) => {
4248
4257
  this.latestPointerEvent = u, this.latestPanInfo = h, this.stop(u, h), this.latestPointerEvent = null, this.latestPanInfo = null;
4249
4258
  }, l = () => {
@@ -4253,7 +4262,7 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4253
4262
  y: 0
4254
4263
  });
4255
4264
  }, { dragSnapToOrigin: c } = this.getProps();
4256
- this.panSession = new Ir(t, {
4265
+ this.panSession = new Br(t, {
4257
4266
  onSessionStart: s,
4258
4267
  onStart: o,
4259
4268
  onMove: r,
@@ -4263,7 +4272,7 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4263
4272
  transformPagePoint: this.visualElement.getTransformPagePoint(),
4264
4273
  dragSnapToOrigin: c,
4265
4274
  distanceThreshold: i,
4266
- contextWindow: Br(this.visualElement),
4275
+ contextWindow: kr(this.visualElement),
4267
4276
  element: this.visualElement.current
4268
4277
  });
4269
4278
  }
@@ -4287,36 +4296,36 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4287
4296
  }
4288
4297
  updateAxis(t, e, i) {
4289
4298
  const { drag: n } = this.getProps();
4290
- if (!i || !Gt(t, n, this.currentDirection)) return;
4299
+ if (!i || !_t(t, n, this.currentDirection)) return;
4291
4300
  const s = this.getAxisMotionValue(t);
4292
4301
  let o = this.originPoint[t] + i[t];
4293
- this.constraints && this.constraints[t] && (o = Tc(o, this.constraints[t], this.elastic[t])), s.set(o);
4302
+ this.constraints && this.constraints[t] && (o = dc(o, this.constraints[t], this.elastic[t])), s.set(o);
4294
4303
  }
4295
4304
  resolveConstraints() {
4296
4305
  const { dragConstraints: t, dragElastic: e } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, n = this.constraints;
4297
- t && Tt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = xc(i.layoutBox, t) : this.constraints = !1, this.elastic = bc(e), n !== this.constraints && !Tt(t) && i && this.constraints && !this.hasMutatedConstraints && q((s) => {
4298
- this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Sc(i.layoutBox[s], this.constraints[s]));
4306
+ t && Tt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = pc(i.layoutBox, t) : this.constraints = !1, this.elastic = yc(e), n !== this.constraints && !Tt(t) && i && this.constraints && !this.hasMutatedConstraints && q((s) => {
4307
+ this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = gc(i.layoutBox[s], this.constraints[s]));
4299
4308
  });
4300
4309
  }
4301
4310
  resolveRefConstraints() {
4302
4311
  const { dragConstraints: t, onMeasureDragConstraints: e } = this.getProps();
4303
4312
  if (!t || !Tt(t)) return !1;
4304
4313
  const i = t.current;
4305
- it(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4314
+ tt(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4306
4315
  const { projection: n } = this.visualElement;
4307
4316
  if (!n || !n.layout) return !1;
4308
4317
  n.root && (n.root.scroll = void 0, n.root.updateScroll());
4309
- const s = Rl(i, n.root, this.visualElement.getTransformPagePoint());
4310
- let o = wc(n.layout.layoutBox, s);
4318
+ const s = Cl(i, n.root, this.visualElement.getTransformPagePoint());
4319
+ let o = mc(n.layout.layoutBox, s);
4311
4320
  if (e) {
4312
- const r = e(Cl(o));
4321
+ const r = e(Al(o));
4313
4322
  this.hasMutatedConstraints = !!r, r && (o = rr(r));
4314
4323
  }
4315
4324
  return o;
4316
4325
  }
4317
4326
  startAnimation(t) {
4318
4327
  const { drag: e, dragMomentum: i, dragElastic: n, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: r } = this.getProps(), a = this.constraints || {}, l = q((c) => {
4319
- if (!Gt(c, e, this.currentDirection)) return;
4328
+ if (!_t(c, e, this.currentDirection)) return;
4320
4329
  let u = a && a[c] || {};
4321
4330
  (o === !0 || o === c) && (u = {
4322
4331
  min: 0,
@@ -4339,7 +4348,7 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4339
4348
  }
4340
4349
  startAxisValueAnimation(t, e) {
4341
4350
  const i = this.getAxisMotionValue(t);
4342
- return ze(this.visualElement, t), i.start(yi(t, i, 0, e, this.visualElement, !1));
4351
+ return He(this.visualElement, t), i.start(yi(t, i, 0, e, this.visualElement, !1));
4343
4352
  }
4344
4353
  stopAnimation() {
4345
4354
  q((t) => this.getAxisMotionValue(t).stop());
@@ -4351,7 +4360,7 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4351
4360
  snapToCursor(t) {
4352
4361
  q((e) => {
4353
4362
  const { drag: i } = this.getProps();
4354
- if (!Gt(e, i, this.currentDirection)) return;
4363
+ if (!_t(e, i, this.currentDirection)) return;
4355
4364
  const { projection: n } = this.visualElement, s = this.getAxisMotionValue(e);
4356
4365
  if (n && n.layout) {
4357
4366
  const { min: o, max: r } = n.layout.layoutBox[e], a = s.get() || 0;
@@ -4372,7 +4381,7 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4372
4381
  const r = this.getAxisMotionValue(o);
4373
4382
  if (r && this.constraints !== !1) {
4374
4383
  const a = r.get();
4375
- n[o] = Pc({
4384
+ n[o] = vc({
4376
4385
  min: a,
4377
4386
  max: a
4378
4387
  }, this.constraints[o]);
@@ -4380,22 +4389,22 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4380
4389
  });
4381
4390
  const { transformTemplate: s } = this.visualElement.getProps();
4382
4391
  this.visualElement.current.style.transform = s ? s({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.constraints = !1, this.resolveConstraints(), q((o) => {
4383
- if (!Gt(o, t, null)) return;
4392
+ if (!_t(o, t, null)) return;
4384
4393
  const r = this.getAxisMotionValue(o), { min: a, max: l } = this.constraints[o];
4385
4394
  r.set(V(a, l, n[o]));
4386
4395
  }), this.visualElement.render();
4387
4396
  }
4388
4397
  addListeners() {
4389
4398
  if (!this.visualElement.current) return;
4390
- Ac.set(this.visualElement, this);
4391
- const t = this.visualElement.current, e = It(t, "pointerdown", (l) => {
4392
- const { drag: c, dragListener: u = !0 } = this.getProps(), h = l.target, f = h !== t && ll(h);
4399
+ Tc.set(this.visualElement, this);
4400
+ const t = this.visualElement.current, e = Ft(t, "pointerdown", (l) => {
4401
+ const { drag: c, dragListener: u = !0 } = this.getProps(), h = l.target, f = h !== t && rl(h);
4393
4402
  c && u && !f && this.start(l);
4394
4403
  });
4395
4404
  let i;
4396
4405
  const n = () => {
4397
4406
  const { dragConstraints: l } = this.getProps();
4398
- Tt(l) && l.current && (this.constraints = this.resolveRefConstraints(), i || (i = Mc(t, l.current, () => this.scalePositionWithinConstraints())));
4407
+ Tt(l) && l.current && (this.constraints = this.resolveRefConstraints(), i || (i = wc(t, l.current, () => this.scalePositionWithinConstraints())));
4399
4408
  }, { projection: s } = this.visualElement, o = s.addEventListener("measure", n);
4400
4409
  s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(n);
4401
4410
  const r = Nt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: c }) => {
@@ -4421,7 +4430,7 @@ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4421
4430
  };
4422
4431
  }
4423
4432
  };
4424
- function Gn(t) {
4433
+ function _n(t) {
4425
4434
  let e = !0;
4426
4435
  return () => {
4427
4436
  if (e) {
@@ -4431,26 +4440,26 @@ function Gn(t) {
4431
4440
  t();
4432
4441
  };
4433
4442
  }
4434
- function Mc(t, e, i) {
4435
- const n = en(t, Gn(i)), s = en(e, Gn(i));
4443
+ function wc(t, e, i) {
4444
+ const n = en(t, _n(i)), s = en(e, _n(i));
4436
4445
  return () => {
4437
4446
  n(), s();
4438
4447
  };
4439
4448
  }
4440
- function Gt(t, e, i) {
4449
+ function _t(t, e, i) {
4441
4450
  return (e === !0 || e === t) && (i === null || i === t);
4442
4451
  }
4443
- function Cc(t, e = 10) {
4452
+ function Pc(t, e = 10) {
4444
4453
  let i = null;
4445
4454
  return Math.abs(t.y) > e ? i = "y" : Math.abs(t.x) > e && (i = "x"), i;
4446
4455
  }
4447
- var Dc = class extends ot {
4456
+ var Sc = class extends ot {
4448
4457
  constructor(t) {
4449
- super(t), this.removeGroupControls = _, this.removeListeners = _, this.controls = new Vc(t);
4458
+ super(t), this.removeGroupControls = z, this.removeListeners = z, this.controls = new xc(t);
4450
4459
  }
4451
4460
  mount() {
4452
4461
  const { dragControls: t } = this.node.getProps();
4453
- t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || _;
4462
+ t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || z;
4454
4463
  }
4455
4464
  update() {
4456
4465
  const { dragControls: t } = this.node.getProps(), { dragControls: e } = this.node.prevProps || {};
@@ -4461,14 +4470,14 @@ var Dc = class extends ot {
4461
4470
  }
4462
4471
  }, Ce = (t) => (e, i) => {
4463
4472
  t && M.update(() => t(e, i), !1, !0);
4464
- }, Ec = class extends ot {
4473
+ }, bc = class extends ot {
4465
4474
  constructor() {
4466
- super(...arguments), this.removePointerDownListener = _;
4475
+ super(...arguments), this.removePointerDownListener = z;
4467
4476
  }
4468
4477
  onPointerDown(t) {
4469
- this.session = new Ir(t, this.createPanHandlers(), {
4478
+ this.session = new Br(t, this.createPanHandlers(), {
4470
4479
  transformPagePoint: this.node.getTransformPagePoint(),
4471
- contextWindow: Br(this.node)
4480
+ contextWindow: kr(this.node)
4472
4481
  });
4473
4482
  }
4474
4483
  createPanHandlers() {
@@ -4483,7 +4492,7 @@ var Dc = class extends ot {
4483
4492
  };
4484
4493
  }
4485
4494
  mount() {
4486
- this.removePointerDownListener = It(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
4495
+ this.removePointerDownListener = Ft(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
4487
4496
  }
4488
4497
  update() {
4489
4498
  this.session && this.session.updateHandlers(this.createPanHandlers());
@@ -4491,7 +4500,7 @@ var Dc = class extends ot {
4491
4500
  unmount() {
4492
4501
  this.removePointerDownListener(), this.session && this.session.end();
4493
4502
  }
4494
- }, De = !1, Rc = class extends $r {
4503
+ }, De = !1, Ac = class extends jr {
4495
4504
  componentDidMount() {
4496
4505
  const { visualElement: t, layoutGroup: e, switchLayoutGroup: i, layoutId: n } = this.props, { projection: s } = t;
4497
4506
  s && (e.group && e.group.add(s), i && i.register && n && i.register(s), De && s.root.didUpdate(), s.addEventListener("animationComplete", () => {
@@ -4530,22 +4539,22 @@ var Dc = class extends ot {
4530
4539
  return null;
4531
4540
  }
4532
4541
  };
4533
- function Or(t) {
4534
- const [e, i] = Fu(), n = U(ts);
4535
- return Qn(Rc, {
4542
+ function Ir(t) {
4543
+ const [e, i] = Lu(), n = U(ts);
4544
+ return Qn(Ac, {
4536
4545
  ...t,
4537
4546
  layoutGroup: n,
4538
- switchLayoutGroup: U(Lr),
4547
+ switchLayoutGroup: U(Rr),
4539
4548
  isPresent: e,
4540
4549
  safeToRemove: i
4541
4550
  });
4542
4551
  }
4543
- var Lc = {
4544
- pan: { Feature: Ec },
4552
+ var Vc = {
4553
+ pan: { Feature: bc },
4545
4554
  drag: {
4546
- Feature: Dc,
4547
- ProjectionNode: Sr,
4548
- MeasureLayout: Or
4555
+ Feature: Sc,
4556
+ ProjectionNode: br,
4557
+ MeasureLayout: Ir
4549
4558
  }
4550
4559
  };
4551
4560
  function Xn(t, e, i) {
@@ -4554,14 +4563,14 @@ function Xn(t, e, i) {
4554
4563
  const s = n["onHover" + i];
4555
4564
  s && M.postRender(() => s(e, Kt(e)));
4556
4565
  }
4557
- var kc = class extends ot {
4566
+ var Mc = class extends ot {
4558
4567
  mount() {
4559
4568
  const { current: t } = this.node;
4560
- t && (this.unmount = sl(t, (e, i) => (Xn(this.node, i, "Start"), (n) => Xn(this.node, n, "End"))));
4569
+ t && (this.unmount = el(t, (e, i) => (Xn(this.node, i, "Start"), (n) => Xn(this.node, n, "End"))));
4561
4570
  }
4562
4571
  unmount() {
4563
4572
  }
4564
- }, Bc = class extends ot {
4573
+ }, Cc = class extends ot {
4565
4574
  constructor() {
4566
4575
  super(...arguments), this.isActive = !1;
4567
4576
  }
@@ -4590,43 +4599,43 @@ function Yn(t, e, i) {
4590
4599
  const s = n["onTap" + (i === "End" ? "" : i)];
4591
4600
  s && M.postRender(() => s(e, Kt(e)));
4592
4601
  }
4593
- var Ic = class extends ot {
4602
+ var Dc = class extends ot {
4594
4603
  mount() {
4595
4604
  const { current: t } = this.node;
4596
4605
  if (!t) return;
4597
4606
  const { globalTapTarget: e, propagate: i } = this.node.props;
4598
- this.unmount = cl(t, (n, s) => (Yn(this.node, s, "Start"), (o, { success: r }) => Yn(this.node, o, r ? "End" : "Cancel")), {
4607
+ this.unmount = al(t, (n, s) => (Yn(this.node, s, "Start"), (o, { success: r }) => Yn(this.node, o, r ? "End" : "Cancel")), {
4599
4608
  useGlobalTarget: e,
4600
4609
  stopPropagation: i?.tap === !1
4601
4610
  });
4602
4611
  }
4603
4612
  unmount() {
4604
4613
  }
4605
- }, ii = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Fc = (t) => {
4614
+ }, ii = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ec = (t) => {
4606
4615
  const e = ii.get(t.target);
4607
4616
  e && e(t);
4608
- }, Oc = (t) => {
4609
- t.forEach(Fc);
4617
+ }, Rc = (t) => {
4618
+ t.forEach(Ec);
4610
4619
  };
4611
- function jc({ root: t, ...e }) {
4620
+ function Lc({ root: t, ...e }) {
4612
4621
  const i = t || document;
4613
4622
  Ee.has(i) || Ee.set(i, {});
4614
4623
  const n = Ee.get(i), s = JSON.stringify(e);
4615
- return n[s] || (n[s] = new IntersectionObserver(Oc, {
4624
+ return n[s] || (n[s] = new IntersectionObserver(Rc, {
4616
4625
  root: t,
4617
4626
  ...e
4618
4627
  })), n[s];
4619
4628
  }
4620
- function Nc(t, e, i) {
4621
- const n = jc(e);
4629
+ function kc(t, e, i) {
4630
+ const n = Lc(e);
4622
4631
  return ii.set(t, i), n.observe(t), () => {
4623
4632
  ii.delete(t), n.unobserve(t);
4624
4633
  };
4625
4634
  }
4626
- var Uc = {
4635
+ var Bc = {
4627
4636
  some: 0,
4628
4637
  all: 1
4629
- }, Wc = class extends ot {
4638
+ }, Fc = class extends ot {
4630
4639
  constructor() {
4631
4640
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4632
4641
  }
@@ -4635,7 +4644,7 @@ var Uc = {
4635
4644
  const { viewport: t = {} } = this.node.getProps(), { root: e, margin: i, amount: n = "some", once: s } = t, o = {
4636
4645
  root: e ? e.current : void 0,
4637
4646
  rootMargin: i,
4638
- threshold: typeof n == "number" ? n : Uc[n]
4647
+ threshold: typeof n == "number" ? n : Bc[n]
4639
4648
  }, r = (a) => {
4640
4649
  const { isIntersecting: l } = a;
4641
4650
  if (this.isInView === l || (this.isInView = l, s && !l && this.hasEnteredView)) return;
@@ -4643,7 +4652,7 @@ var Uc = {
4643
4652
  const { onViewportEnter: c, onViewportLeave: u } = this.node.getProps(), h = l ? c : u;
4644
4653
  h && h(a);
4645
4654
  };
4646
- this.stopObserver = Nc(this.node.current, o, r);
4655
+ this.stopObserver = kc(this.node.current, o, r);
4647
4656
  }
4648
4657
  mount() {
4649
4658
  this.startObserver();
@@ -4655,29 +4664,29 @@ var Uc = {
4655
4664
  "amount",
4656
4665
  "margin",
4657
4666
  "root"
4658
- ].some($c(t, e)) && this.startObserver();
4667
+ ].some(Ic(t, e)) && this.startObserver();
4659
4668
  }
4660
4669
  unmount() {
4661
4670
  this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
4662
4671
  }
4663
4672
  };
4664
- function $c({ viewport: t = {} }, { viewport: e = {} } = {}) {
4673
+ function Ic({ viewport: t = {} }, { viewport: e = {} } = {}) {
4665
4674
  return (i) => t[i] !== e[i];
4666
4675
  }
4667
- var Kc = {
4668
- inView: { Feature: Wc },
4669
- tap: { Feature: Ic },
4670
- focus: { Feature: Bc },
4671
- hover: { Feature: kc }
4672
- }, _c = { layout: {
4673
- ProjectionNode: Sr,
4674
- MeasureLayout: Or
4675
- } }, zc = {
4676
- ...pc,
4677
- ...Kc,
4678
- ...Lc,
4679
- ..._c
4680
- }, Hc = /* @__PURE__ */ uc(zc, cc), Jc = Hc;
4676
+ var Oc = {
4677
+ inView: { Feature: Fc },
4678
+ tap: { Feature: Dc },
4679
+ focus: { Feature: Cc },
4680
+ hover: { Feature: Mc }
4681
+ }, jc = { layout: {
4682
+ ProjectionNode: br,
4683
+ MeasureLayout: Ir
4684
+ } }, Nc = {
4685
+ ...lc,
4686
+ ...Oc,
4687
+ ...Vc,
4688
+ ...jc
4689
+ }, Uc = /* @__PURE__ */ nc(Nc, sc), Hc = Uc;
4681
4690
  export {
4682
- Jc as t
4691
+ Hc as t
4683
4692
  };