@konstructio/ui 0.1.2-alpha.106 → 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 (228) hide show
  1. package/README.md +118 -31
  2. package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
  3. package/dist/{AlertDialogTrigger-BOrb536P.js → AlertDialogTrigger-ouMGAlJW.js} +1 -1
  4. package/dist/{Breadcrumb-DVBxqgW_.js → Breadcrumb-MrF1Z6w2.js} +1 -1
  5. package/dist/{Checkbox-B20uoUKD.js → Checkbox-8KnRLpQG.js} +86 -87
  6. package/dist/{CommandInput-BWt6-vUK.js → CommandInput-CGnqfudl.js} +1 -1
  7. package/dist/{Counter-DiQb-he2.js → Counter-CDXdP1Af.js} +1 -1
  8. package/dist/{DropdownButton-hCVYZ1LA.js → DropdownButton-D4QlKGg7.js} +5 -5
  9. package/dist/{FlagSelectorList-CnJjnsp6.js → FlagSelectorList-tYZNl-tz.js} +22 -18
  10. package/dist/{HamburgerTrigger-BT2yUUJ-.js → HamburgerTrigger-B_NGSZ2r.js} +19 -19
  11. package/dist/{ImageUpload-DgCBCa5X.js → ImageUpload-D7HKSXK8.js} +71 -66
  12. package/dist/Input-is8n7emP.js +195 -0
  13. package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
  14. package/dist/{Modal-CkAf9UY7.js → Modal-Dq9BHD_9.js} +2 -2
  15. package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
  16. package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
  17. package/dist/{Switch-CyJXptgc.js → Switch-C7286Bcu.js} +2 -2
  18. package/dist/{Toast-DLJDExxw.js → Toast-jSx3Lao8.js} +2 -2
  19. package/dist/Wrapper-2AUlYAHQ.js +195 -0
  20. package/dist/{Wrapper-CvDRHgN4.js → Wrapper-CyHxGs4E.js} +1 -1
  21. package/dist/{Wrapper-B8Ja3k4j.js → Wrapper-a7RVCcrn.js} +238 -232
  22. package/dist/components/Alert/Alert.js +1 -1
  23. package/dist/components/AlertDialog/AlertDialog.js +2 -2
  24. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  25. package/dist/components/AlertDialog/components/index.js +1 -1
  26. package/dist/components/Autocomplete/Autocomplete.js +1 -1
  27. package/dist/components/Autocomplete/components/List/List.js +1 -1
  28. package/dist/components/Autocomplete/hooks/useAutocomplete.js +1 -1
  29. package/dist/components/Badge/Badge.js +2 -2
  30. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  31. package/dist/components/Breadcrumb/components/BackButton/BackButton.js +1 -1
  32. package/dist/components/Breadcrumb/components/Item/Item.js +1 -1
  33. package/dist/components/Button/Button.js +1 -1
  34. package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
  35. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
  36. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
  37. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
  38. package/dist/components/Card/Card.js +25 -22
  39. package/dist/components/Checkbox/Checkbox.js +1 -1
  40. package/dist/components/Command/Command.js +1 -1
  41. package/dist/components/Command/components/CommandGroup.js +1 -1
  42. package/dist/components/Command/components/CommandInput.js +1 -1
  43. package/dist/components/Command/components/CommandItem.js +1 -1
  44. package/dist/components/Command/components/CommandList.js +1 -1
  45. package/dist/components/Command/components/CommandSeparator.js +1 -1
  46. package/dist/components/Command/components/CommandShortcut.js +1 -1
  47. package/dist/components/Command/components/DialogContent.js +1 -1
  48. package/dist/components/Command/components/DialogOverlay.js +1 -1
  49. package/dist/components/Command/components/index.js +1 -1
  50. package/dist/components/Counter/Counter.js +1 -1
  51. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  52. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
  53. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +2 -2
  54. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
  55. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
  56. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
  57. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  58. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  59. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  60. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
  61. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
  62. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  63. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
  64. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
  65. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
  66. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
  67. package/dist/components/Datepicker/DatePicker.js +1 -1
  68. package/dist/components/Divider/Divider.js +7 -7
  69. package/dist/components/Drawer/Drawer.js +1 -1
  70. package/dist/components/Drawer/components/Body/Body.js +1 -1
  71. package/dist/components/Drawer/components/Footer/Footer.js +1 -1
  72. package/dist/components/Drawer/components/Header/Header.js +1 -1
  73. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  74. package/dist/components/Filter/Filter.js +1 -1
  75. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +2 -2
  76. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  77. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
  78. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
  79. package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
  80. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +2 -2
  81. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +1 -1
  82. package/dist/components/ImageUpload/ImageUpload.js +1 -1
  83. package/dist/components/Input/Input.js +1 -1
  84. package/dist/components/LineChart/LineChart.js +1 -1
  85. package/dist/components/Loading/Loading.js +1 -1
  86. package/dist/components/Modal/Modal.js +1 -1
  87. package/dist/components/Modal/components/Body/Body.js +1 -1
  88. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  89. package/dist/components/Modal/components/Header/Header.js +1 -1
  90. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  91. package/dist/components/Modal/components/index.js +1 -1
  92. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  93. package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
  94. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  95. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  96. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  97. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
  98. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
  99. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  100. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
  101. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  102. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
  103. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  104. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  105. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  106. package/dist/components/PieChart/PieChart.js +1 -1
  107. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  108. package/dist/components/Radio/Radio.js +1 -1
  109. package/dist/components/RadioCard/RadioCard.js +1 -1
  110. package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
  111. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  112. package/dist/components/Range/Range.js +2 -2
  113. package/dist/components/Select/Select.js +32 -28
  114. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  115. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
  116. package/dist/components/Select/components/List/List.js +78 -67
  117. package/dist/components/Select/components/ListItem/ListItem.js +1 -1
  118. package/dist/components/Select/components/Wrapper.js +1 -1
  119. package/dist/components/Select/components/index.js +2 -2
  120. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
  121. package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
  122. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  123. package/dist/components/Sidebar/components/Label/Label.js +1 -1
  124. package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
  125. package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
  126. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
  127. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
  128. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
  129. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
  130. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
  131. package/dist/components/Sidebar/components/index.js +1 -1
  132. package/dist/components/Slider/Slider.js +2 -2
  133. package/dist/components/Spinner/Spinner.js +1 -1
  134. package/dist/components/Stepper/Stepper.js +1 -1
  135. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
  136. package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
  137. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
  138. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
  139. package/dist/components/Switch/Switch.js +1 -1
  140. package/dist/components/Table/Table.js +1 -1
  141. package/dist/components/Table/components/Body.js +1 -1
  142. package/dist/components/Table/components/Filter.js +1 -1
  143. package/dist/components/Table/components/Head.js +1 -1
  144. package/dist/components/Table/components/Row.js +1 -1
  145. package/dist/components/Tabs/Tabs.js +2 -2
  146. package/dist/components/Tabs/components/Content.js +2 -2
  147. package/dist/components/Tabs/components/List.js +2 -2
  148. package/dist/components/Tabs/components/Trigger.js +2 -2
  149. package/dist/components/Tag/Tag.js +8 -8
  150. package/dist/components/TagSelect/TagSelect.js +1 -1
  151. package/dist/components/TagSelect/components/Item/Item.js +1 -1
  152. package/dist/components/TagSelect/components/List/List.js +1 -1
  153. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  154. package/dist/components/TagSelect/components/index.js +1 -1
  155. package/dist/components/TextArea/TextArea.js +71 -26
  156. package/dist/components/TextArea/TextArea.variants.js +49 -13
  157. package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
  158. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
  159. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
  160. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +113 -98
  161. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
  162. package/dist/components/Toast/Toast.js +1 -1
  163. package/dist/components/Tooltip/Tooltip.js +2 -2
  164. package/dist/components/Typography/Typography.js +1 -1
  165. package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
  166. package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
  167. package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
  168. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
  169. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
  170. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
  171. package/dist/components/VirtualizedTable/components/Filter/Filter.js +2 -2
  172. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  173. package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
  174. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
  175. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  176. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  177. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
  178. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  179. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  180. package/dist/components/index.js +12 -12
  181. package/dist/{components-MnxnhLqM.js → components-CaEW5ge4.js} +32 -32
  182. package/dist/{constants-CSsr7_YV.js → constants-HQIXhj2t.js} +1 -1
  183. package/dist/contexts/index.js +1 -1
  184. package/dist/contexts/theme.provider.js +1 -1
  185. package/dist/{dist-Z0F27ATp2.js → dist-9WbMf_jT.js} +1 -1
  186. package/dist/{dist-oJzmvhAb.js → dist-AxOGvL82.js} +1 -1
  187. package/dist/{dist-CqNOgbfR.js → dist-BIBFLVt1.js} +3 -3
  188. package/dist/{dist-B6ExqXM_2.js → dist-BnCbAI-c.js} +1 -1
  189. package/dist/{dist-C87gsBDM.js → dist-CszFjHAP.js} +2 -2
  190. package/dist/{dist-ut_BEHii.js → dist-pxvIAJzo.js} +2 -2
  191. package/dist/hooks/useMediaQuery.js +1 -1
  192. package/dist/index.js +14 -14
  193. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
  194. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
  195. package/dist/lib/components/Card/Card.types.d.ts +1 -0
  196. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
  197. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
  198. package/dist/lib/components/Divider/Divider.d.ts +3 -2
  199. package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
  200. package/dist/lib/components/Input/Input.types.d.ts +4 -0
  201. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
  202. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
  203. package/dist/lib/components/Select/Select.types.d.ts +2 -0
  204. package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
  205. package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
  206. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
  207. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
  208. package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
  209. package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
  210. package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
  211. package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
  212. package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
  213. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
  214. package/dist/lib/utils/index.d.ts +1 -0
  215. package/dist/package.json +21 -21
  216. package/dist/{react-B6Nc0Fib.js → react-7zQ6bvbE.js} +290 -289
  217. package/dist/styles.css +1 -1
  218. package/dist/{table.provider-DfZ74xMZ.js → table.provider-CWzODR1t.js} +1 -1
  219. package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
  220. package/dist/utils/index.js +6 -5
  221. package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
  222. package/package.json +21 -21
  223. package/dist/Input-wp-rsCmX.js +0 -188
  224. package/dist/Wrapper-R8fik3ah.js +0 -182
  225. /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
  226. /package/dist/{dist-DwxO2RoR2.js → dist-DwxO2RoR.js} +0 -0
  227. /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
  228. /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
@@ -1545,7 +1545,8 @@ var Ia = "framerAppearId", Ks = "data-" + xi(Ia);
1545
1545
  function zs(t) {
1546
1546
  return t.props[Ks];
1547
1547
  }
1548
- function Oa({ protectedKeys: t, needsAnimating: e }, i) {
1548
+ var Oa = typeof window < "u";
1549
+ function ja({ protectedKeys: t, needsAnimating: e }, i) {
1549
1550
  const n = t.hasOwnProperty(i) && e[i] !== !0;
1550
1551
  return e[i] = !1, n;
1551
1552
  }
@@ -1559,7 +1560,7 @@ function Hs(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1559
1560
  p && p.animateVisualElement(t, a, o, i, h);
1560
1561
  for (const d in a) {
1561
1562
  const m = t.getValue(d, t.latestValues[d] ?? null), g = a[d];
1562
- if (g === void 0 || f && Oa(f, d)) continue;
1563
+ if (g === void 0 || f && ja(f, d)) continue;
1563
1564
  const v = {
1564
1565
  delay: i,
1565
1566
  ...gi(o || {}, d)
@@ -1571,7 +1572,7 @@ function Hs(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1571
1572
  continue;
1572
1573
  }
1573
1574
  let x = !1;
1574
- if (window.MotionHandoffAnimation) {
1575
+ if (Oa && window.MotionHandoffAnimation) {
1575
1576
  const A = zs(t);
1576
1577
  if (A) {
1577
1578
  const D = window.MotionHandoffAnimation(A, d, M);
@@ -1598,14 +1599,14 @@ function Ge(t, e, i = {}) {
1598
1599
  i.transitionOverride && (s = i.transitionOverride);
1599
1600
  const o = n ? () => Promise.all(Hs(t, n, i)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1600
1601
  const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = s;
1601
- return ja(t, e, l, c, u, h, i);
1602
+ return Na(t, e, l, c, u, h, i);
1602
1603
  } : () => Promise.resolve(), { when: a } = s;
1603
1604
  if (a) {
1604
1605
  const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
1605
1606
  return l().then(() => c());
1606
1607
  } else return Promise.all([o(), r(i.delay)]);
1607
1608
  }
1608
- function ja(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) {
1609
1610
  const a = [];
1610
1611
  for (const l of t.variantChildren)
1611
1612
  l.notify("AnimationStart", e), a.push(Ge(l, e, {
@@ -1614,7 +1615,7 @@ function ja(t, e, i = 0, n = 0, s = 0, o = 1, r) {
1614
1615
  }).then(() => l.notify("AnimationComplete", e)));
1615
1616
  return Promise.all(a);
1616
1617
  }
1617
- function Na(t, e, i = {}) {
1618
+ function Ua(t, e, i = {}) {
1618
1619
  t.notify("AnimationStart", e);
1619
1620
  let n;
1620
1621
  if (Array.isArray(e)) {
@@ -1629,7 +1630,7 @@ function Na(t, e, i = {}) {
1629
1630
  t.notify("AnimationComplete", e);
1630
1631
  });
1631
1632
  }
1632
- var Ua = {
1633
+ var Wa = {
1633
1634
  test: (t) => t === "auto",
1634
1635
  parse: (t) => t
1635
1636
  }, Gs = (t) => (e) => e.test(t), _s = [
@@ -1639,31 +1640,31 @@ var Ua = {
1639
1640
  it,
1640
1641
  co,
1641
1642
  uo,
1642
- Ua
1643
+ Wa
1643
1644
  ], qi = (t) => _s.find(Gs(t));
1644
- function Wa(t) {
1645
+ function $a(t) {
1645
1646
  return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || ns(t) : !0;
1646
1647
  }
1647
- var $a = /* @__PURE__ */ new Set([
1648
+ var Ka = /* @__PURE__ */ new Set([
1648
1649
  "brightness",
1649
1650
  "contrast",
1650
1651
  "saturate",
1651
1652
  "opacity"
1652
1653
  ]);
1653
- function Ka(t) {
1654
+ function za(t) {
1654
1655
  const [e, i] = t.slice(0, -1).split("(");
1655
1656
  if (e === "drop-shadow") return t;
1656
1657
  const [n] = i.match(hi) || [];
1657
1658
  if (!n) return t;
1658
1659
  const s = i.replace(n, "");
1659
- let o = $a.has(e) ? 1 : 0;
1660
+ let o = Ka.has(e) ? 1 : 0;
1660
1661
  return n !== i && (o *= 100), e + "(" + o + s + ")";
1661
1662
  }
1662
- var za = /\b([a-z-]*)\(.*?\)/gu, _e = {
1663
+ var Ha = /\b([a-z-]*)\(.*?\)/gu, _e = {
1663
1664
  ..._,
1664
1665
  getAnimatableNone: (t) => {
1665
- const e = t.match(za);
1666
- return e ? e.map(Ka).join(" ") : t;
1666
+ const e = t.match(Ha);
1667
+ return e ? e.map(za).join(" ") : t;
1667
1668
  }
1668
1669
  }, Xe = {
1669
1670
  ..._,
@@ -1677,7 +1678,7 @@ var za = /\b([a-z-]*)\(.*?\)/gu, _e = {
1677
1678
  }, Zi = {
1678
1679
  ...Ct,
1679
1680
  transform: Math.round
1680
- }, Ha = {
1681
+ }, Ga = {
1681
1682
  rotate: it,
1682
1683
  pathRotation: it,
1683
1684
  rotateX: it,
@@ -1754,12 +1755,12 @@ var za = /\b([a-z-]*)\(.*?\)/gu, _e = {
1754
1755
  fontSize: y,
1755
1756
  backgroundPositionX: y,
1756
1757
  backgroundPositionY: y,
1757
- ...Ha,
1758
+ ...Ga,
1758
1759
  zIndex: Zi,
1759
1760
  fillOpacity: Ot,
1760
1761
  strokeOpacity: Ot,
1761
1762
  numOctaves: Zi
1762
- }, Ga = {
1763
+ }, _a = {
1763
1764
  ...oe,
1764
1765
  color: R,
1765
1766
  backgroundColor: R,
@@ -1775,25 +1776,25 @@ var za = /\b([a-z-]*)\(.*?\)/gu, _e = {
1775
1776
  WebkitFilter: _e,
1776
1777
  mask: Xe,
1777
1778
  WebkitMask: Xe
1778
- }, Xs = (t) => Ga[t], _a = /* @__PURE__ */ new Set([_e, Xe]);
1779
+ }, Xs = (t) => _a[t], Xa = /* @__PURE__ */ new Set([_e, Xe]);
1779
1780
  function Ys(t, e) {
1780
1781
  let i = Xs(t);
1781
- return _a.has(i) || (i = _), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
1782
+ return Xa.has(i) || (i = _), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
1782
1783
  }
1783
- var Xa = /* @__PURE__ */ new Set([
1784
+ var Ya = /* @__PURE__ */ new Set([
1784
1785
  "auto",
1785
1786
  "none",
1786
1787
  "0"
1787
1788
  ]);
1788
- function Ya(t, e, i) {
1789
+ function qa(t, e, i) {
1789
1790
  let n = 0, s;
1790
1791
  for (; n < t.length && !s; ) {
1791
1792
  const o = t[n];
1792
- typeof o == "string" && !Xa.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++;
1793
1794
  }
1794
1795
  if (s && i) for (const o of e) t[o] = Ys(i, s);
1795
1796
  }
1796
- var qa = class extends vi {
1797
+ var Za = class extends vi {
1797
1798
  constructor(t, e, i, n, s) {
1798
1799
  super(t, e, i, n, s, !0);
1799
1800
  }
@@ -1823,8 +1824,8 @@ var qa = class extends vi {
1823
1824
  }
1824
1825
  resolveNoneKeyframes() {
1825
1826
  const { unresolvedKeyframes: t, name: e } = this, i = [];
1826
- for (let n = 0; n < t.length; n++) (t[n] === null || Wa(t[n])) && i.push(n);
1827
- i.length && Ya(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);
1828
1829
  }
1829
1830
  measureInitialState() {
1830
1831
  const { element: t, unresolvedKeyframes: e, name: i } = this;
@@ -1861,17 +1862,17 @@ function qs(t, e, i) {
1861
1862
  return Array.from(t).filter((n) => n != null);
1862
1863
  }
1863
1864
  var Ye = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1864
- function Za(t) {
1865
+ function Ja(t) {
1865
1866
  return is(t) && "offsetHeight" in t && !("ownerSVGElement" in t);
1866
1867
  }
1867
- var { schedule: Pi, cancel: $c } = /* @__PURE__ */ vs(queueMicrotask, !1), G = {
1868
+ var { schedule: Pi, cancel: Kc } = /* @__PURE__ */ vs(queueMicrotask, !1), G = {
1868
1869
  x: !1,
1869
1870
  y: !1
1870
1871
  };
1871
1872
  function Zs() {
1872
1873
  return G.x || G.y;
1873
1874
  }
1874
- function Ja(t) {
1875
+ function Qa(t) {
1875
1876
  return t === "x" || t === "y" ? G[t] ? null : (G[t] = !0, () => {
1876
1877
  G[t] = !1;
1877
1878
  }) : G.x || G.y ? null : (G.x = G.y = !0, () => {
@@ -1890,10 +1891,10 @@ function Js(t, e) {
1890
1891
  () => n.abort()
1891
1892
  ];
1892
1893
  }
1893
- function Qa(t) {
1894
+ function tl(t) {
1894
1895
  return !(t.pointerType === "touch" || Zs());
1895
1896
  }
1896
- function tl(t, e, i = {}) {
1897
+ function el(t, e, i = {}) {
1897
1898
  const [n, s, o] = Js(t, i);
1898
1899
  return n.forEach((r) => {
1899
1900
  let a = !1, l = !1, c;
@@ -1914,7 +1915,7 @@ function tl(t, e, i = {}) {
1914
1915
  h(g);
1915
1916
  }
1916
1917
  }, m = (g) => {
1917
- if (!Qa(g)) return;
1918
+ if (!tl(g)) return;
1918
1919
  l = !1;
1919
1920
  const v = e(r, g);
1920
1921
  typeof v == "function" && (c = v, r.addEventListener("pointerleave", d, s));
@@ -1922,23 +1923,23 @@ function tl(t, e, i = {}) {
1922
1923
  r.addEventListener("pointerenter", m, s), r.addEventListener("pointerdown", p, s);
1923
1924
  }), o;
1924
1925
  }
1925
- 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, el = /* @__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([
1926
1927
  "BUTTON",
1927
1928
  "INPUT",
1928
1929
  "SELECT",
1929
1930
  "TEXTAREA",
1930
1931
  "A"
1931
1932
  ]);
1932
- function il(t) {
1933
- return el.has(t.tagName) || t.isContentEditable === !0;
1933
+ function nl(t) {
1934
+ return il.has(t.tagName) || t.isContentEditable === !0;
1934
1935
  }
1935
- var nl = /* @__PURE__ */ new Set([
1936
+ var sl = /* @__PURE__ */ new Set([
1936
1937
  "INPUT",
1937
1938
  "SELECT",
1938
1939
  "TEXTAREA"
1939
1940
  ]);
1940
- function sl(t) {
1941
- return nl.has(t.tagName) || t.isContentEditable === !0;
1941
+ function rl(t) {
1942
+ return sl.has(t.tagName) || t.isContentEditable === !0;
1942
1943
  }
1943
1944
  var Yt = /* @__PURE__ */ new WeakSet();
1944
1945
  function Ji(t) {
@@ -1952,7 +1953,7 @@ function we(t, e) {
1952
1953
  bubbles: !0
1953
1954
  }));
1954
1955
  }
1955
- var rl = (t, e) => {
1956
+ var ol = (t, e) => {
1956
1957
  const i = t.currentTarget;
1957
1958
  if (!i) return;
1958
1959
  const n = Ji(() => {
@@ -1969,7 +1970,7 @@ function Qi(t) {
1969
1970
  return Si(t) && !Zs();
1970
1971
  }
1971
1972
  var tn = /* @__PURE__ */ new WeakSet();
1972
- function ol(t, e, i = {}) {
1973
+ function al(t, e, i = {}) {
1973
1974
  const [n, s, o] = Js(t, i), r = (a) => {
1974
1975
  const l = a.currentTarget;
1975
1976
  if (!Qi(a) || tn.has(a)) return;
@@ -1987,33 +1988,33 @@ function ol(t, e, i = {}) {
1987
1988
  window.addEventListener("pointerup", f, u), window.addEventListener("pointercancel", p, u);
1988
1989
  };
1989
1990
  return n.forEach((a) => {
1990
- (i.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), Za(a) && (a.addEventListener("focus", (l) => rl(l, s)), !il(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));
1991
1992
  }), o;
1992
1993
  }
1993
1994
  function bi(t) {
1994
1995
  return is(t) && "ownerSVGElement" in t;
1995
1996
  }
1996
- 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], al = /* @__PURE__ */ tr("inline", "width", "offsetWidth"), ll = /* @__PURE__ */ tr("block", "height", "offsetHeight");
1997
- function ul({ 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 }) {
1998
1999
  qt.get(t)?.forEach((i) => {
1999
2000
  i(t, {
2000
2001
  get width() {
2001
- return al(t, e);
2002
+ return ll(t, e);
2002
2003
  },
2003
2004
  get height() {
2004
- return ll(t, e);
2005
+ return ul(t, e);
2005
2006
  }
2006
2007
  });
2007
2008
  });
2008
2009
  }
2009
- function cl(t) {
2010
- t.forEach(ul);
2010
+ function hl(t) {
2011
+ t.forEach(cl);
2011
2012
  }
2012
- function hl() {
2013
- typeof ResizeObserver > "u" || (Zt = new ResizeObserver(cl));
2013
+ function fl() {
2014
+ typeof ResizeObserver > "u" || (Zt = new ResizeObserver(hl));
2014
2015
  }
2015
- function fl(t, e) {
2016
- Zt || hl();
2016
+ function dl(t, e) {
2017
+ Zt || fl();
2017
2018
  const i = qs(t);
2018
2019
  return i.forEach((n) => {
2019
2020
  let s = qt.get(n);
@@ -2026,7 +2027,7 @@ function fl(t, e) {
2026
2027
  };
2027
2028
  }
2028
2029
  var Jt = /* @__PURE__ */ new Set(), Pt;
2029
- function dl() {
2030
+ function pl() {
2030
2031
  Pt = () => {
2031
2032
  const t = {
2032
2033
  get width() {
@@ -2039,26 +2040,26 @@ function dl() {
2039
2040
  Jt.forEach((e) => e(t));
2040
2041
  }, window.addEventListener("resize", Pt);
2041
2042
  }
2042
- function pl(t) {
2043
- return Jt.add(t), Pt || dl(), () => {
2043
+ function ml(t) {
2044
+ return Jt.add(t), Pt || pl(), () => {
2044
2045
  Jt.delete(t), !Jt.size && typeof Pt == "function" && (window.removeEventListener("resize", Pt), Pt = void 0);
2045
2046
  };
2046
2047
  }
2047
2048
  function en(t, e) {
2048
- return typeof t == "function" ? pl(t) : fl(t, e);
2049
+ return typeof t == "function" ? ml(t) : dl(t, e);
2049
2050
  }
2050
2051
  var yt = {
2051
2052
  value: null,
2052
2053
  addProjectionMetrics: null
2053
2054
  };
2054
- function ml(t) {
2055
+ function vl(t) {
2055
2056
  return bi(t) && t.tagName === "svg";
2056
2057
  }
2057
- var vl = [
2058
+ var gl = [
2058
2059
  ..._s,
2059
2060
  R,
2060
2061
  _
2061
- ], gl = (t) => vl.find(Gs(t)), nn = () => ({
2062
+ ], yl = (t) => gl.find(Gs(t)), nn = () => ({
2062
2063
  translate: 0,
2063
2064
  scale: 1,
2064
2065
  origin: 0,
@@ -2072,7 +2073,7 @@ var vl = [
2072
2073
  }), L = () => ({
2073
2074
  x: sn(),
2074
2075
  y: sn()
2075
- }), yl = /* @__PURE__ */ new WeakMap();
2076
+ }), Tl = /* @__PURE__ */ new WeakMap();
2076
2077
  function de(t) {
2077
2078
  return t !== null && typeof t == "object" && typeof t.start == "function";
2078
2079
  }
@@ -2094,7 +2095,7 @@ function pe(t) {
2094
2095
  function er(t) {
2095
2096
  return !!(pe(t) || t.variants);
2096
2097
  }
2097
- function Tl(t, e, i) {
2098
+ function xl(t, e, i) {
2098
2099
  for (const n in e) {
2099
2100
  const s = e[n], o = i[n];
2100
2101
  if (I(s)) t.addValue(n, s);
@@ -2111,9 +2112,9 @@ function Tl(t, e, i) {
2111
2112
  for (const n in i) e[n] === void 0 && t.removeValue(n);
2112
2113
  return e;
2113
2114
  }
2114
- var qe = { current: null }, ir = { current: !1 }, xl = typeof window < "u";
2115
- function wl() {
2116
- if (ir.current = !0, !!xl)
2115
+ var qe = { current: null }, ir = { current: !1 }, wl = typeof window < "u";
2116
+ function Pl() {
2117
+ if (ir.current = !0, !!wl)
2117
2118
  if (window.matchMedia) {
2118
2119
  const t = window.matchMedia("(prefers-reduced-motion)"), e = () => qe.current = t.matches;
2119
2120
  t.addEventListener("change", e), e();
@@ -2131,10 +2132,10 @@ var rn = [
2131
2132
  function nr(t) {
2132
2133
  ae = t;
2133
2134
  }
2134
- function Pl() {
2135
+ function Sl() {
2135
2136
  return ae;
2136
2137
  }
2137
- var Sl = class {
2138
+ var bl = class {
2138
2139
  scrapeMotionValuesFromProps(t, e, i) {
2139
2140
  return {};
2140
2141
  }
@@ -2156,7 +2157,7 @@ var Sl = class {
2156
2157
  mount(t) {
2157
2158
  if (this.hasBeenMounted) for (const e in this.initialValues)
2158
2159
  this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
2159
- this.current = t, yl.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 || wl(), 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;
2160
2161
  }
2161
2162
  unmount() {
2162
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);
@@ -2233,7 +2234,7 @@ var Sl = class {
2233
2234
  const s = t["on" + n];
2234
2235
  s && (this.propEventSubscriptions[n] = this.on(n, s));
2235
2236
  }
2236
- this.prevMotionValues = Tl(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();
2237
2238
  }
2238
2239
  getProps() {
2239
2240
  return this.props;
@@ -2274,7 +2275,7 @@ var Sl = class {
2274
2275
  }
2275
2276
  readValue(t, e) {
2276
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);
2277
- return i != null && (typeof i == "string" && (es(i) || ns(i)) ? i = parseFloat(i) : !gl(i) && _.test(e) && (i = Ys(t, e)), this.setBaseTarget(t, I(i) ? i.get() : i)), I(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;
2278
2279
  }
2279
2280
  setBaseTarget(t, e) {
2280
2281
  this.baseTarget[t] = e;
@@ -2299,9 +2300,9 @@ var Sl = class {
2299
2300
  scheduleRenderMicrotask() {
2300
2301
  Pi.render(this.render);
2301
2302
  }
2302
- }, sr = class extends Sl {
2303
+ }, sr = class extends bl {
2303
2304
  constructor() {
2304
- super(...arguments), this.KeyframeResolver = qa;
2305
+ super(...arguments), this.KeyframeResolver = Za;
2305
2306
  }
2306
2307
  sortInstanceNodePosition(t, e) {
2307
2308
  return t.compareDocumentPosition(e) & 2 ? 1 : -1;
@@ -2339,7 +2340,7 @@ function rr({ top: t, left: e, right: i, bottom: n }) {
2339
2340
  }
2340
2341
  };
2341
2342
  }
2342
- function bl({ x: t, y: e }) {
2343
+ function Al({ x: t, y: e }) {
2343
2344
  return {
2344
2345
  top: e.min,
2345
2346
  right: t.max,
@@ -2347,7 +2348,7 @@ function bl({ x: t, y: e }) {
2347
2348
  left: t.min
2348
2349
  };
2349
2350
  }
2350
- function Al(t, e) {
2351
+ function Vl(t, e) {
2351
2352
  if (!e) return t;
2352
2353
  const i = e({
2353
2354
  x: t.left,
@@ -2391,7 +2392,7 @@ function ar(t, { x: e, y: i }) {
2391
2392
  Je(t.x, e.translate, e.scale, e.originPoint), Je(t.y, i.translate, i.scale, i.originPoint);
2392
2393
  }
2393
2394
  var ln = 0.999999999999, un = 1.0000000000001;
2394
- function Vl(t, e, i, n = !1) {
2395
+ function Ml(t, e, i, n = !1) {
2395
2396
  const s = i.length;
2396
2397
  if (!s) return;
2397
2398
  e.x = e.y = 1;
@@ -2417,21 +2418,21 @@ function Qt(t, e, i) {
2417
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);
2418
2419
  }
2419
2420
  function lr(t, e) {
2420
- return rr(Al(t.getBoundingClientRect(), e));
2421
+ return rr(Vl(t.getBoundingClientRect(), e));
2421
2422
  }
2422
- function Ml(t, e, i) {
2423
+ function Cl(t, e, i) {
2423
2424
  const n = lr(t, i), { scroll: s } = e;
2424
2425
  return s && (Z(n.x, s.offset.x), Z(n.y, s.offset.y)), n;
2425
2426
  }
2426
- var Cl = {
2427
+ var Dl = {
2427
2428
  x: "translateX",
2428
2429
  y: "translateY",
2429
2430
  z: "translateZ",
2430
2431
  transformPerspective: "perspective"
2431
- }, Dl = Dt.length;
2432
- function El(t, e, i) {
2432
+ }, El = Dt.length;
2433
+ function Rl(t, e, i) {
2433
2434
  let n = "", s = !0;
2434
- for (let r = 0; r < Dl; r++) {
2435
+ for (let r = 0; r < El; r++) {
2435
2436
  const a = Dt[r], l = t[a];
2436
2437
  if (l === void 0) continue;
2437
2438
  let c = !0;
@@ -2444,7 +2445,7 @@ function El(t, e, i) {
2444
2445
  const u = Ye(l, oe[a]);
2445
2446
  if (!c) {
2446
2447
  s = !1;
2447
- const h = Cl[a] || a;
2448
+ const h = Dl[a] || a;
2448
2449
  n += `${h}(${u}) `;
2449
2450
  }
2450
2451
  i && (e[a] = u);
@@ -2469,7 +2470,7 @@ function Mi(t, e, i) {
2469
2470
  l.startsWith("origin") ? (a = !0, o[l] = u) : n[l] = u;
2470
2471
  }
2471
2472
  }
2472
- if (e.transform || (r || i ? n.transform = El(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) {
2473
2474
  const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
2474
2475
  n.transformOrigin = `${l} ${c} ${u}`;
2475
2476
  }
@@ -2490,7 +2491,7 @@ var Rt = { correct: (t, e) => {
2490
2491
  if (y.test(t)) t = parseFloat(t);
2491
2492
  else return t;
2492
2493
  return `${fn(t, e.target.x)}% ${fn(t, e.target.y)}%`;
2493
- } }, Rl = { correct: (t, { treeScale: e, projectionDelta: i }) => {
2494
+ } }, Ll = { correct: (t, { treeScale: e, projectionDelta: i }) => {
2494
2495
  const n = t, s = _.parse(t);
2495
2496
  if (s.length > 5) return n;
2496
2497
  const o = _.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
@@ -2506,7 +2507,7 @@ var Rt = { correct: (t, e) => {
2506
2507
  borderTopRightRadius: Rt,
2507
2508
  borderBottomLeftRadius: Rt,
2508
2509
  borderBottomRightRadius: Rt,
2509
- boxShadow: Rl
2510
+ boxShadow: Ll
2510
2511
  };
2511
2512
  function cr(t, { layout: e, layoutId: i }) {
2512
2513
  return Et.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!Qe[t] || t === "opacity");
@@ -2517,10 +2518,10 @@ function Ci(t, e, i) {
2517
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]);
2518
2519
  return o;
2519
2520
  }
2520
- function Ll(t) {
2521
+ function kl(t) {
2521
2522
  return window.getComputedStyle(t);
2522
2523
  }
2523
- var kl = class extends sr {
2524
+ var Bl = class extends sr {
2524
2525
  constructor() {
2525
2526
  super(...arguments), this.type = "html", this.renderInstance = ur;
2526
2527
  }
@@ -2530,7 +2531,7 @@ var kl = class extends sr {
2530
2531
  readValueFromInstance(t, e) {
2531
2532
  if (Et.has(e)) return this.projection?.isProjecting ? je(e) : Zo(t, e);
2532
2533
  {
2533
- const i = Ll(t), n = (ys(e) ? i.getPropertyValue(e) : i[e]) || 0;
2534
+ const i = kl(t), n = (ys(e) ? i.getPropertyValue(e) : i[e]) || 0;
2534
2535
  return typeof n == "string" ? n.trim() : n;
2535
2536
  }
2536
2537
  }
@@ -2543,16 +2544,16 @@ var kl = class extends sr {
2543
2544
  scrapeMotionValuesFromProps(t, e, i) {
2544
2545
  return Ci(t, e, i);
2545
2546
  }
2546
- }, Bl = {
2547
+ }, Fl = {
2547
2548
  offset: "stroke-dashoffset",
2548
2549
  array: "stroke-dasharray"
2549
- }, Fl = {
2550
+ }, Il = {
2550
2551
  offset: "strokeDashoffset",
2551
2552
  array: "strokeDasharray"
2552
2553
  };
2553
- function Il(t, e, i = 1, n = 0, s = !0) {
2554
+ function Ol(t, e, i = 1, n = 0, s = !0) {
2554
2555
  t.pathLength = 1;
2555
- const o = s ? Bl : Fl;
2556
+ const o = s ? Fl : Il;
2556
2557
  t[o.offset] = `${-n}`, t[o.array] = `${e} ${i}`;
2557
2558
  }
2558
2559
  var hr = [
@@ -2571,7 +2572,7 @@ function fr(t, { attrX: e, attrY: i, attrScale: n, pathLength: s, pathSpacing: o
2571
2572
  t.attrs = t.style, t.style = {};
2572
2573
  const { attrs: h, style: f } = t;
2573
2574
  for (const p of hr) h[p] !== void 0 && (f[p] = h[p], delete h[p]);
2574
- (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 && Il(h, s, o, r, !1);
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);
2575
2576
  }
2576
2577
  var dr = /* @__PURE__ */ new Set([
2577
2578
  "baseFrequency",
@@ -2598,7 +2599,7 @@ var dr = /* @__PURE__ */ new Set([
2598
2599
  "textLength",
2599
2600
  "lengthAdjust"
2600
2601
  ]), pr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2601
- function Ol(t, e, i, n) {
2602
+ function jl(t, e, i, n) {
2602
2603
  ur(t, e, void 0, n);
2603
2604
  for (const s in e.attrs) t.setAttribute(dr.has(s) ? s : xi(s), e.attrs[s]);
2604
2605
  }
@@ -2610,7 +2611,7 @@ function mr(t, e, i) {
2610
2611
  }
2611
2612
  return n;
2612
2613
  }
2613
- var jl = class extends sr {
2614
+ var Nl = class extends sr {
2614
2615
  constructor() {
2615
2616
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = L;
2616
2617
  }
@@ -2635,12 +2636,12 @@ var jl = class extends sr {
2635
2636
  fr(t, e, this.isSVGTag, i.transformTemplate, i.style);
2636
2637
  }
2637
2638
  renderInstance(t, e, i, n) {
2638
- Ol(t, e, i, n);
2639
+ jl(t, e, i, n);
2639
2640
  }
2640
2641
  mount(t) {
2641
2642
  this.isSVGTag = pr(t.tagName), super.mount(t);
2642
2643
  }
2643
- }, Nl = Vi.length;
2644
+ }, Ul = Vi.length;
2644
2645
  function vr(t) {
2645
2646
  if (!t) return;
2646
2647
  if (!t.isControllingVariants) {
@@ -2648,7 +2649,7 @@ function vr(t) {
2648
2649
  return t.props.initial !== void 0 && (i.initial = t.props.initial), i;
2649
2650
  }
2650
2651
  const e = {};
2651
- for (let i = 0; i < Nl; i++) {
2652
+ for (let i = 0; i < Ul; i++) {
2652
2653
  const n = Vi[i], s = t.props[n];
2653
2654
  (jt(s) || s === !1) && (e[n] = s);
2654
2655
  }
@@ -2661,12 +2662,12 @@ function gr(t, e) {
2661
2662
  for (let n = 0; n < i; n++) if (e[n] !== t[n]) return !1;
2662
2663
  return !0;
2663
2664
  }
2664
- var Ul = [...Ai].reverse(), Wl = Ai.length;
2665
- function $l(t) {
2666
- return (e) => Promise.all(e.map(({ animation: i, options: n }) => Na(t, i, n)));
2667
- }
2665
+ var Wl = [...Ai].reverse(), $l = Ai.length;
2668
2666
  function Kl(t) {
2669
- let e = $l(t), i = dn(), n = !0, s = !1;
2667
+ return (e) => Promise.all(e.map(({ animation: i, options: n }) => Ua(t, i, n)));
2668
+ }
2669
+ function zl(t) {
2670
+ let e = Kl(t), i = dn(), n = !0, s = !1;
2670
2671
  const o = (c) => (u, h) => {
2671
2672
  const f = vt(t, h, c === "exit" ? t.presenceContext?.custom : void 0);
2672
2673
  if (f) {
@@ -2685,8 +2686,8 @@ function Kl(t) {
2685
2686
  function a(c) {
2686
2687
  const { props: u } = t, h = vr(t.parent) || {}, f = [], p = /* @__PURE__ */ new Set();
2687
2688
  let d = {}, m = 1 / 0;
2688
- for (let v = 0; v < Wl; v++) {
2689
- const T = Ul[v], x = i[T], w = u[T] !== void 0 ? u[T] : h[T], P = jt(w), A = T === c ? x.isActive : null;
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;
2690
2691
  A === !1 && (m = v);
2691
2692
  let D = w === h[T] && w !== u[T] && P;
2692
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;
@@ -2697,7 +2698,7 @@ function Kl(t) {
2697
2698
  });
2698
2699
  continue;
2699
2700
  }
2700
- const S = zl(x.prevProp, w);
2701
+ const S = Hl(x.prevProp, w);
2701
2702
  let E = S || T === c && x.isActive && !D && P || v > m && P, b = !1;
2702
2703
  const k = Array.isArray(w) ? w : [w];
2703
2704
  let N = k.reduce(o(T), {});
@@ -2767,7 +2768,7 @@ function Kl(t) {
2767
2768
  }
2768
2769
  };
2769
2770
  }
2770
- function zl(t, e) {
2771
+ function Hl(t, e) {
2771
2772
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !gr(e, t) : !1;
2772
2773
  }
2773
2774
  function ut(t = !1) {
@@ -2798,15 +2799,15 @@ function H(t, e) {
2798
2799
  function pn(t, e) {
2799
2800
  t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2800
2801
  }
2801
- var Hl = 0.9999, Gl = 1.0001, _l = -0.01, Xl = 0.01;
2802
+ var Gl = 0.9999, _l = 1.0001, Xl = -0.01, Yl = 0.01;
2802
2803
  function j(t) {
2803
2804
  return t.max - t.min;
2804
2805
  }
2805
- function Yl(t, e, i) {
2806
+ function ql(t, e, i) {
2806
2807
  return Math.abs(t - e) <= i;
2807
2808
  }
2808
2809
  function mn(t, e, i, n = 0.5) {
2809
- 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 >= Hl && t.scale <= Gl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= _l && t.translate <= Xl || 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);
2810
2811
  }
2811
2812
  function Bt(t, e, i, n) {
2812
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);
@@ -2814,7 +2815,7 @@ function Bt(t, e, i, n) {
2814
2815
  function vn(t, e, i, n = 0) {
2815
2816
  t.min = (n ? V(i.min, i.max, n) : i.min) + e.min, t.max = t.min + j(e);
2816
2817
  }
2817
- function ql(t, e, i, n) {
2818
+ function Zl(t, e, i, n) {
2818
2819
  vn(t.x, e.x, i.x, n?.x), vn(t.y, e.y, i.y, n?.y);
2819
2820
  }
2820
2821
  function gn(t, e, i, n = 0) {
@@ -2827,25 +2828,25 @@ function ue(t, e, i, n) {
2827
2828
  function yn(t, e, i, n, s) {
2828
2829
  return t -= e, t = le(t, 1 / i, n), s !== void 0 && (t = le(t, 1 / s, n)), t;
2829
2830
  }
2830
- function Zl(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) {
2831
2832
  if (J.test(e) && (e = parseFloat(e), e = V(r.min, r.max, e / 100) - r.min), typeof e != "number") return;
2832
2833
  let a = V(o.min, o.max, n);
2833
2834
  t === o && (a -= e), t.min = yn(t.min, e, i, a, s), t.max = yn(t.max, e, i, a, s);
2834
2835
  }
2835
2836
  function Tn(t, e, [i, n, s], o, r) {
2836
- Zl(t, e[i], e[n], e[s], e.scale, o, r);
2837
+ Jl(t, e[i], e[n], e[s], e.scale, o, r);
2837
2838
  }
2838
- var Jl = [
2839
+ var Ql = [
2839
2840
  "x",
2840
2841
  "scaleX",
2841
2842
  "originX"
2842
- ], Ql = [
2843
+ ], tu = [
2843
2844
  "y",
2844
2845
  "scaleY",
2845
2846
  "originY"
2846
2847
  ];
2847
2848
  function xn(t, e, i, n) {
2848
- Tn(t.x, e, Jl, i ? i.x : void 0, n ? n.x : void 0), Tn(t.y, e, Ql, 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);
2849
2850
  }
2850
2851
  function wn(t) {
2851
2852
  return t.translate === 0 && t.scale === 1;
@@ -2856,7 +2857,7 @@ function yr(t) {
2856
2857
  function Pn(t, e) {
2857
2858
  return t.min === e.min && t.max === e.max;
2858
2859
  }
2859
- function tu(t, e) {
2860
+ function eu(t, e) {
2860
2861
  return Pn(t.x, e.x) && Pn(t.y, e.y);
2861
2862
  }
2862
2863
  function Sn(t, e) {
@@ -2874,7 +2875,7 @@ function An(t, e) {
2874
2875
  function q(t) {
2875
2876
  return [t("x"), t("y")];
2876
2877
  }
2877
- function eu(t, e, i) {
2878
+ function iu(t, e, i) {
2878
2879
  let n = "";
2879
2880
  const s = t.x.translate / e.x, o = t.y.translate / e.y, r = i?.z || 0;
2880
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) {
@@ -2884,10 +2885,10 @@ function eu(t, e, i) {
2884
2885
  const a = t.x.scale * e.x, l = t.y.scale * e.y;
2885
2886
  return (a !== 1 || l !== 1) && (n += `scale(${a}, ${l})`), n || "none";
2886
2887
  }
2887
- var iu = wi.length, Vn = (t) => typeof t == "string" ? parseFloat(t) : t, Mn = (t) => typeof t == "number" || y.test(t);
2888
- function nu(t, e, i, n, s, o) {
2889
- s ? (t.opacity = V(0, i.opacity ?? 1, su(n)), t.opacityExit = V(e.opacity ?? 1, 0, ru(n))) : o && (t.opacity = V(e.opacity ?? 1, i.opacity ?? 1, n));
2890
- for (let r = 0; r < iu; 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++) {
2891
2892
  const a = wi[r];
2892
2893
  let l = Cn(e, a), c = Cn(i, a);
2893
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);
@@ -2897,18 +2898,18 @@ function nu(t, e, i, n, s, o) {
2897
2898
  function Cn(t, e) {
2898
2899
  return t[e] !== void 0 ? t[e] : t.borderRadius;
2899
2900
  }
2900
- var su = /* @__PURE__ */ xr(0, 0.5, fs), ru = /* @__PURE__ */ xr(0.5, 0.95, z);
2901
+ var ru = /* @__PURE__ */ xr(0, 0.5, fs), ou = /* @__PURE__ */ xr(0.5, 0.95, z);
2901
2902
  function xr(t, e, i) {
2902
2903
  return (n) => n < t ? 0 : n > e ? 1 : i(It(t, e, n));
2903
2904
  }
2904
- function ou(t, e, i) {
2905
+ function au(t, e, i) {
2905
2906
  const n = I(t) ? t : At(t);
2906
2907
  return n.start(yi("", n, e, i)), n.animation;
2907
2908
  }
2908
2909
  function Nt(t, e, i, n = { passive: !0 }) {
2909
2910
  return t.addEventListener(e, i, n), () => t.removeEventListener(e, i, n);
2910
2911
  }
2911
- var au = (t, e) => t.depth - e.depth, lu = class {
2912
+ var lu = (t, e) => t.depth - e.depth, uu = class {
2912
2913
  constructor() {
2913
2914
  this.children = [], this.isDirty = !1;
2914
2915
  }
@@ -2919,10 +2920,10 @@ var au = (t, e) => t.depth - e.depth, lu = class {
2919
2920
  ie(this.children, t), this.isDirty = !0;
2920
2921
  }
2921
2922
  forEach(t) {
2922
- this.isDirty && this.children.sort(au), this.isDirty = !1, this.children.forEach(t);
2923
+ this.isDirty && this.children.sort(lu), this.isDirty = !1, this.children.forEach(t);
2923
2924
  }
2924
2925
  };
2925
- function uu(t, e) {
2926
+ function cu(t, e) {
2926
2927
  const i = O.now(), n = ({ timestamp: s }) => {
2927
2928
  const o = s - i;
2928
2929
  o >= e && (rt(n), t(o - e));
@@ -2932,7 +2933,7 @@ function uu(t, e) {
2932
2933
  function te(t) {
2933
2934
  return I(t) ? t.get() : t;
2934
2935
  }
2935
- var cu = class {
2936
+ var hu = class {
2936
2937
  constructor() {
2937
2938
  this.members = [];
2938
2939
  }
@@ -2991,7 +2992,7 @@ var cu = class {
2991
2992
  "X",
2992
2993
  "Y",
2993
2994
  "Z"
2994
- ], hu = 1e3, fu = 0;
2995
+ ], fu = 1e3, du = 0;
2995
2996
  function be(t, e, i, n) {
2996
2997
  const { latestValues: s } = e;
2997
2998
  s[t] && (i[t] = s[t], e.setStaticValue(t, 0), n && (n[t] = 0));
@@ -3011,16 +3012,16 @@ function wr(t) {
3011
3012
  function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: n, resetTransform: s }) {
3012
3013
  return class {
3013
3014
  constructor(r = {}, a = e?.()) {
3014
- this.id = fu++, 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 = {
3015
3016
  x: 1,
3016
3017
  y: 1
3017
3018
  }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3018
3019
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3019
3020
  }, this.updateProjection = () => {
3020
- this.projectionUpdateScheduled = !1, yt.value && (ht.nodes = ht.calculatedTargetDeltas = ht.calculatedProjections = 0), this.nodes.forEach(mu), this.nodes.forEach(wu), this.nodes.forEach(Pu), this.nodes.forEach(vu), 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);
3021
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;
3022
3023
  for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0;
3023
- this.root === this && (this.nodes = new lu());
3024
+ this.root === this && (this.nodes = new uu());
3024
3025
  }
3025
3026
  addEventListener(r, a) {
3026
3027
  return this.eventHandlers.has(r) || this.eventHandlers.set(r, new oi()), this.eventHandlers.get(r).add(a);
@@ -3034,7 +3035,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3034
3035
  }
3035
3036
  mount(r) {
3036
3037
  if (this.instance) return;
3037
- this.isSVG = bi(r) && !ml(r), this.instance = r;
3038
+ this.isSVG = bi(r) && !vl(r), this.instance = r;
3038
3039
  const { layoutId: a, layout: l, visualElement: c } = this.options;
3039
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) {
3040
3041
  let u, h = 0;
@@ -3043,7 +3044,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3043
3044
  h = window.innerWidth;
3044
3045
  }), t(r, () => {
3045
3046
  const p = window.innerWidth;
3046
- p !== h && (h = p, this.root.updateBlockedByResize = !0, u && u(), u = uu(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)));
3047
3048
  });
3048
3049
  }
3049
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 }) => {
@@ -3051,7 +3052,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3051
3052
  this.target = void 0, this.relativeTarget = void 0;
3052
3053
  return;
3053
3054
  }
3054
- const d = this.options.transition || c.getDefaultTransition() || Mu, { onLayoutAnimationStart: m, onLayoutAnimationComplete: g } = c.getProps(), v = !this.targetLayout || !Tr(this.targetLayout, p), T = !h && f;
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;
3055
3056
  if (this.options.layoutRoot || this.resumeFrom || T || h && (v || !this.currentAnimation)) {
3056
3057
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3057
3058
  const x = {
@@ -3083,7 +3084,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3083
3084
  return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
3084
3085
  }
3085
3086
  startUpdate() {
3086
- this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Su), this.animationId++);
3087
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(bu), this.animationId++);
3087
3088
  }
3088
3089
  getTransformTemplate() {
3089
3090
  const { visualElement: r } = this.options;
@@ -3108,14 +3109,14 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3108
3109
  update() {
3109
3110
  if (this.updateScheduled = !1, this.isUpdateBlocked()) {
3110
3111
  const a = this.updateBlockedByResize;
3111
- this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), a && this.nodes.forEach(yu), this.nodes.forEach(Dn);
3112
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), a && this.nodes.forEach(Tu), this.nodes.forEach(Dn);
3112
3113
  return;
3113
3114
  }
3114
3115
  if (this.animationId <= this.animationCommitId) {
3115
3116
  this.nodes.forEach(En);
3116
3117
  return;
3117
3118
  }
3118
- this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Tu), this.nodes.forEach(xu), this.nodes.forEach(du), this.nodes.forEach(pu)) : 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();
3119
3120
  const r = O.now();
3120
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;
3121
3122
  }
@@ -3123,7 +3124,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3123
3124
  this.updateScheduled || (this.updateScheduled = !0, Pi.read(this.scheduleUpdate));
3124
3125
  }
3125
3126
  clearAllSnapshots() {
3126
- this.nodes.forEach(gu), this.sharedNodes.forEach(bu);
3127
+ this.nodes.forEach(yu), this.sharedNodes.forEach(Au);
3127
3128
  }
3128
3129
  scheduleUpdateProjection() {
3129
3130
  this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
@@ -3165,7 +3166,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3165
3166
  measure(r = !0) {
3166
3167
  const a = this.measurePageBox();
3167
3168
  let l = this.removeElementScroll(a);
3168
- return r && (l = this.removeTransform(l)), Cu(l), {
3169
+ return r && (l = this.removeTransform(l)), Du(l), {
3169
3170
  animationId: this.root.animationId,
3170
3171
  measuredBox: a,
3171
3172
  layoutBox: l,
@@ -3177,7 +3178,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3177
3178
  const { visualElement: r } = this.options;
3178
3179
  if (!r) return L();
3179
3180
  const a = r.measureViewportBox();
3180
- if (!(this.scroll?.wasRoot || this.path.some(Du))) {
3181
+ if (!(this.scroll?.wasRoot || this.path.some(Eu))) {
3181
3182
  const { scroll: l } = this.root;
3182
3183
  l && (Z(a.x, l.offset.x), Z(a.y, l.offset.y));
3183
3184
  }
@@ -3237,7 +3238,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3237
3238
  if (!this.layout || !(c || u)) return;
3238
3239
  this.resolvedRelativeTargetAt = F.timestamp;
3239
3240
  const h = this.getClosestProjectingParent();
3240
- 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(), ql(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++);
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++);
3241
3242
  }
3242
3243
  getClosestProjectingParent() {
3243
3244
  if (!(!this.parent || Ze(this.parent.latestValues) || or(this.parent.latestValues)))
@@ -3260,7 +3261,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3260
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;
3261
3262
  H(this.layoutCorrected, this.layout.layoutBox);
3262
3263
  const h = this.treeScale.x, f = this.treeScale.y;
3263
- Vl(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());
3264
3265
  const { target: p } = r;
3265
3266
  if (!p) {
3266
3267
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
@@ -3287,18 +3288,18 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3287
3288
  setAnimationOrigin(r, a = !1, l) {
3288
3289
  const c = this.snapshot, u = c ? c.latestValues : {}, h = { ...this.latestValues }, f = St();
3289
3290
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3290
- 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(Vu));
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));
3291
3292
  this.animationProgress = 0;
3292
3293
  let T;
3293
3294
  const x = l?.interpolateProjection(r);
3294
3295
  this.mixTargetDelta = (w) => {
3295
3296
  const P = w / 1e3, A = x?.(P);
3296
- 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), Au(this.relativeTarget, this.relativeTargetOrigin, p, P), T && tu(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = L()), H(T, this.relativeTarget)), d && (this.animationValues = h, nu(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;
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;
3297
3298
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3298
3299
  }
3299
3300
  startAnimation(r) {
3300
3301
  this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (rt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
3301
- ee.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = At(0)), this.motionValue.jump(0, !1), this.currentAnimation = ou(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], {
3302
3303
  ...r,
3303
3304
  velocity: 0,
3304
3305
  isSync: !0,
@@ -3317,7 +3318,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3317
3318
  r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3318
3319
  }
3319
3320
  finishAnimation() {
3320
- this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(hu), this.currentAnimation.stop()), this.completeAnimation();
3321
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(fu), this.currentAnimation.stop()), this.completeAnimation();
3321
3322
  }
3322
3323
  applyTransformsToTarget() {
3323
3324
  const r = this.getLead();
@@ -3334,7 +3335,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3334
3335
  }
3335
3336
  }
3336
3337
  registerSharedNode(r, a) {
3337
- this.sharedNodes.has(r) || this.sharedNodes.set(r, new cu()), this.sharedNodes.get(r).add(a);
3338
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new hu()), this.sharedNodes.get(r).add(a);
3338
3339
  const l = a.options.initialPromotionConfig;
3339
3340
  a.promote({
3340
3341
  transition: l ? l.transition : void 0,
@@ -3399,7 +3400,7 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3399
3400
  r.visibility = "";
3400
3401
  const u = c.animationValues || c.latestValues;
3401
3402
  this.applyTransformsToTarget();
3402
- let h = eu(this.projectionDeltaWithTransform, this.treeScale, u);
3403
+ let h = iu(this.projectionDeltaWithTransform, this.treeScale, u);
3403
3404
  l && (h = l(u, h)), r.transform = h;
3404
3405
  const { x: f, y: p } = this.projectionDelta;
3405
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;
@@ -3421,10 +3422,10 @@ function Pr({ attachResizeListener: t, defaultParent: e, measureScroll: i, check
3421
3422
  }
3422
3423
  };
3423
3424
  }
3424
- function du(t) {
3425
+ function pu(t) {
3425
3426
  t.updateLayout();
3426
3427
  }
3427
- function pu(t) {
3428
+ function mu(t) {
3428
3429
  const e = t.resumeFrom?.snapshot || t.snapshot;
3429
3430
  if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3430
3431
  const { layoutBox: i, measuredBox: n } = t.layout, { animationType: s } = t.options, o = e.source !== t.layout.source;
@@ -3471,44 +3472,44 @@ function pu(t) {
3471
3472
  }
3472
3473
  t.options.transition = void 0;
3473
3474
  }
3474
- function mu(t) {
3475
+ function vu(t) {
3475
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));
3476
3477
  }
3477
- function vu(t) {
3478
+ function gu(t) {
3478
3479
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3479
3480
  }
3480
- function gu(t) {
3481
+ function yu(t) {
3481
3482
  t.clearSnapshot();
3482
3483
  }
3483
3484
  function Dn(t) {
3484
3485
  t.clearMeasurements();
3485
3486
  }
3486
- function yu(t) {
3487
+ function Tu(t) {
3487
3488
  t.isLayoutDirty = !0, t.updateLayout();
3488
3489
  }
3489
3490
  function En(t) {
3490
3491
  t.isLayoutDirty = !1;
3491
3492
  }
3492
- function Tu(t) {
3493
+ function xu(t) {
3493
3494
  t.isAnimationBlocked && t.layout && !t.isLayoutDirty && (t.snapshot = t.layout, t.isLayoutDirty = !0);
3494
3495
  }
3495
- function xu(t) {
3496
+ function wu(t) {
3496
3497
  const { visualElement: e } = t.options;
3497
3498
  e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3498
3499
  }
3499
3500
  function Rn(t) {
3500
3501
  t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3501
3502
  }
3502
- function wu(t) {
3503
+ function Pu(t) {
3503
3504
  t.resolveTargetDelta();
3504
3505
  }
3505
- function Pu(t) {
3506
+ function Su(t) {
3506
3507
  t.calcProjection();
3507
3508
  }
3508
- function Su(t) {
3509
+ function bu(t) {
3509
3510
  t.resetSkewAndRotation();
3510
3511
  }
3511
- function bu(t) {
3512
+ function Au(t) {
3512
3513
  t.removeLeadSnapshot();
3513
3514
  }
3514
3515
  function Ln(t, e, i) {
@@ -3517,13 +3518,13 @@ function Ln(t, e, i) {
3517
3518
  function kn(t, e, i, n) {
3518
3519
  t.min = V(e.min, i.min, n), t.max = V(e.max, i.max, n);
3519
3520
  }
3520
- function Au(t, e, i, n) {
3521
+ function Vu(t, e, i, n) {
3521
3522
  kn(t.x, e.x, i.x, n), kn(t.y, e.y, i.y, n);
3522
3523
  }
3523
- function Vu(t) {
3524
+ function Mu(t) {
3524
3525
  return t.animationValues && t.animationValues.opacityExit !== void 0;
3525
3526
  }
3526
- var Mu = {
3527
+ var Cu = {
3527
3528
  duration: 0.45,
3528
3529
  ease: [
3529
3530
  0.4,
@@ -3535,16 +3536,16 @@ var Mu = {
3535
3536
  function In(t) {
3536
3537
  t.min = Fn(t.min), t.max = Fn(t.max);
3537
3538
  }
3538
- function Cu(t) {
3539
+ function Du(t) {
3539
3540
  In(t.x), In(t.y);
3540
3541
  }
3541
3542
  function Sr(t, e, i) {
3542
- return t === "position" || t === "preserve-aspect" && !Yl(bn(e), bn(i), 0.2);
3543
+ return t === "position" || t === "preserve-aspect" && !ql(bn(e), bn(i), 0.2);
3543
3544
  }
3544
- function Du(t) {
3545
+ function Eu(t) {
3545
3546
  return t !== t.root && t.scroll?.wasRoot;
3546
3547
  }
3547
- var Eu = Pr({
3548
+ var Ru = Pr({
3548
3549
  attachResizeListener: (t, e) => Nt(t, "resize", e),
3549
3550
  measureScroll: () => ({
3550
3551
  x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
@@ -3558,7 +3559,7 @@ var Eu = Pr({
3558
3559
  }),
3559
3560
  defaultParent: () => {
3560
3561
  if (!Ae.current) {
3561
- const t = new Eu({});
3562
+ const t = new Ru({});
3562
3563
  t.mount(window), t.setOptions({ layoutScroll: !0 }), Ae.current = t;
3563
3564
  }
3564
3565
  return Ae.current;
@@ -3572,7 +3573,7 @@ var Eu = Pr({
3572
3573
  isStatic: !1,
3573
3574
  reducedMotion: "never"
3574
3575
  });
3575
- function Ru(t = !0) {
3576
+ function Lu(t = !0) {
3576
3577
  const e = U(si);
3577
3578
  if (e === null) return [!0, null];
3578
3579
  const { isPresent: i, onExitComplete: n, register: s } = e, o = Wr();
@@ -3624,16 +3625,16 @@ var Vr = Vt({ strict: !1 }), On = {
3624
3625
  ],
3625
3626
  layout: ["layout", "layoutId"]
3626
3627
  }, jn = !1;
3627
- function Lu() {
3628
+ function ku() {
3628
3629
  if (jn) return;
3629
3630
  const t = {};
3630
3631
  for (const e in On) t[e] = { isEnabled: (i) => On[e].some((n) => !!i[n]) };
3631
3632
  nr(t), jn = !0;
3632
3633
  }
3633
3634
  function Mr() {
3634
- return Lu(), Pl();
3635
+ return ku(), Sl();
3635
3636
  }
3636
- function ku(t) {
3637
+ function Bu(t) {
3637
3638
  const e = Mr();
3638
3639
  for (const i in t) e[i] = {
3639
3640
  ...e[i],
@@ -3642,7 +3643,7 @@ function ku(t) {
3642
3643
  nr(e);
3643
3644
  }
3644
3645
  var me = /* @__PURE__ */ Vt({});
3645
- function Bu(t, e) {
3646
+ function Fu(t, e) {
3646
3647
  if (pe(t)) {
3647
3648
  const { initial: i, animate: n } = t;
3648
3649
  return {
@@ -3652,8 +3653,8 @@ function Bu(t, e) {
3652
3653
  }
3653
3654
  return t.inherit !== !1 ? e : {};
3654
3655
  }
3655
- function Fu(t) {
3656
- const { initial: e, animate: i } = Bu(t, U(me));
3656
+ function Iu(t) {
3657
+ const { initial: e, animate: i } = Fu(t, U(me));
3657
3658
  return he(() => ({
3658
3659
  initial: e,
3659
3660
  animate: i
@@ -3671,25 +3672,25 @@ var Di = () => ({
3671
3672
  function Cr(t, e, i) {
3672
3673
  for (const n in e) !I(e[n]) && !cr(n, i) && (t[n] = e[n]);
3673
3674
  }
3674
- function Iu({ transformTemplate: t }, e) {
3675
+ function Ou({ transformTemplate: t }, e) {
3675
3676
  return he(() => {
3676
3677
  const i = Di();
3677
3678
  return Mi(i, e, t), Object.assign({}, i.vars, i.style);
3678
3679
  }, [e]);
3679
3680
  }
3680
- function Ou(t, e) {
3681
+ function ju(t, e) {
3681
3682
  const i = t.style || {}, n = {};
3682
- return Cr(n, i, t), Object.assign(n, Iu(t, e)), n;
3683
+ return Cr(n, i, t), Object.assign(n, Ou(t, e)), n;
3683
3684
  }
3684
- function ju(t, e) {
3685
- const i = {}, n = Ou(t, e);
3685
+ function Nu(t, e) {
3686
+ const i = {}, n = ju(t, e);
3686
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;
3687
3688
  }
3688
3689
  var Dr = () => ({
3689
3690
  ...Di(),
3690
3691
  attrs: {}
3691
3692
  });
3692
- function Nu(t, e, i, n) {
3693
+ function Uu(t, e, i, n) {
3693
3694
  const s = he(() => {
3694
3695
  const o = Dr();
3695
3696
  return fr(o, e, pr(n), t.transformTemplate, t.style), {
@@ -3706,7 +3707,7 @@ function Nu(t, e, i, n) {
3706
3707
  }
3707
3708
  return s;
3708
3709
  }
3709
- var Uu = /* @__PURE__ */ new Set([
3710
+ var Wu = /* @__PURE__ */ new Set([
3710
3711
  "animate",
3711
3712
  "exit",
3712
3713
  "variants",
@@ -3740,18 +3741,18 @@ var Uu = /* @__PURE__ */ new Set([
3740
3741
  "viewport"
3741
3742
  ]);
3742
3743
  function ce(t) {
3743
- return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Uu.has(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);
3744
3745
  }
3745
- function Wu(t, e) {
3746
+ function $u(t, e) {
3746
3747
  return t.startsWith("on") ? !ce(t) : e?.(t) ?? !ce(t);
3747
3748
  }
3748
- function $u(t, e, i, n) {
3749
+ function Ku(t, e, i, n) {
3749
3750
  const s = {};
3750
3751
  for (const o in t)
3751
- o === "values" && typeof t.values == "object" || I(t[o]) || (Wu(o, n) || i === !0 && ce(o) || !e && !ce(o) || t.draggable && o.startsWith("onDrag")) && (s[o] = t[o]);
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]);
3752
3753
  return s;
3753
3754
  }
3754
- var Ku = [
3755
+ var zu = [
3755
3756
  "animate",
3756
3757
  "circle",
3757
3758
  "defs",
@@ -3779,10 +3780,10 @@ var Ku = [
3779
3780
  "view"
3780
3781
  ];
3781
3782
  function Ei(t) {
3782
- return typeof t != "string" || t.includes("-") ? !1 : !!(Ku.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));
3783
3784
  }
3784
- function zu(t, e, i, { latestValues: n }, s, o = !1, r, a) {
3785
- const l = (r ?? Ei(t) ? Nu : ju)(e, n, s, t), c = $u(e, typeof t == "string", o, a), u = 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 ? {
3786
3787
  ...c,
3787
3788
  ...l,
3788
3789
  ref: i
@@ -3792,13 +3793,13 @@ function zu(t, e, i, { latestValues: n }, s, o = !1, r, a) {
3792
3793
  children: f
3793
3794
  });
3794
3795
  }
3795
- function Hu({ scrapeMotionValuesFromProps: t, createRenderState: e }, i, n, s) {
3796
+ function Gu({ scrapeMotionValuesFromProps: t, createRenderState: e }, i, n, s) {
3796
3797
  return {
3797
- latestValues: Gu(i, n, s, t),
3798
+ latestValues: _u(i, n, s, t),
3798
3799
  renderState: e()
3799
3800
  };
3800
3801
  }
3801
- function Gu(t, e, i, n) {
3802
+ function _u(t, e, i, n) {
3802
3803
  const s = {}, o = n(t, {});
3803
3804
  for (const f in o) s[f] = te(o[f]);
3804
3805
  let { initial: r, animate: a } = t;
@@ -3828,16 +3829,16 @@ function Gu(t, e, i, n) {
3828
3829
  return s;
3829
3830
  }
3830
3831
  var Er = (t) => (e, i) => {
3831
- const n = U(me), s = U(si), o = () => Hu(t, e, n, s);
3832
+ const n = U(me), s = U(si), o = () => Gu(t, e, n, s);
3832
3833
  return i ? o() : zr(o);
3833
- }, _u = /* @__PURE__ */ Er({
3834
+ }, Xu = /* @__PURE__ */ Er({
3834
3835
  scrapeMotionValuesFromProps: Ci,
3835
3836
  createRenderState: Di
3836
- }), Xu = /* @__PURE__ */ Er({
3837
+ }), Yu = /* @__PURE__ */ Er({
3837
3838
  scrapeMotionValuesFromProps: mr,
3838
3839
  createRenderState: Dr
3839
- }), Yu = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3840
- function qu(t, e, i) {
3840
+ }), qu = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3841
+ function Zu(t, e, i) {
3841
3842
  const n = ft(i);
3842
3843
  Jn(() => {
3843
3844
  n.current = i;
@@ -3858,7 +3859,7 @@ var Rr = Vt({});
3858
3859
  function Tt(t) {
3859
3860
  return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
3860
3861
  }
3861
- function Zu(t, e, i, n, s, o) {
3862
+ function Ju(t, e, i, n, s, o) {
3862
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);
3863
3864
  n = n || a.renderer, !f.current && n && (f.current = n(t, {
3864
3865
  visualState: e,
@@ -3871,7 +3872,7 @@ function Zu(t, e, i, n, s, o) {
3871
3872
  isSVG: o
3872
3873
  }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3873
3874
  const d = f.current, m = U(Rr);
3874
- d && !d.projection && s && (d.type === "html" || d.type === "svg") && Ju(f.current, i, s, m);
3875
+ d && !d.projection && s && (d.type === "html" || d.type === "svg") && Qu(f.current, i, s, m);
3875
3876
  const g = ft(!1);
3876
3877
  Jn(() => {
3877
3878
  d && g.current && d.update(i, l);
@@ -3885,7 +3886,7 @@ function Zu(t, e, i, n, s, o) {
3885
3886
  }), T.current = !1), d.enteringChildren = void 0);
3886
3887
  }), d;
3887
3888
  }
3888
- function Ju(t, e, i, n) {
3889
+ function Qu(t, e, i, n) {
3889
3890
  const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutAnchor: u, layoutCrossfade: h } = e;
3890
3891
  t.projection = new i(t.latestValues, e["data-framer-portal-id"] ? void 0 : Lr(t.parent)), t.projection.setOptions({
3891
3892
  layoutId: s,
@@ -3905,44 +3906,44 @@ function Lr(t) {
3905
3906
  return t.options.allowProjection !== !1 ? t.projection : Lr(t.parent);
3906
3907
  }
3907
3908
  function Ve(t, { forwardMotionProps: e = !1, type: i } = {}, n, s) {
3908
- n && ku(n);
3909
- const o = i ? i === "svg" : Ei(t), r = o ? Xu : _u;
3909
+ n && Bu(n);
3910
+ const o = i ? i === "svg" : Ei(t), r = o ? Yu : Xu;
3910
3911
  function a(c, u) {
3911
3912
  let h;
3912
3913
  const f = {
3913
3914
  ...U(Ar),
3914
3915
  ...c,
3915
- layoutId: Qu(c)
3916
- }, { isStatic: p, isValidProp: d } = f, m = Fu(c), g = r(c, p);
3916
+ layoutId: tc(c)
3917
+ }, { isStatic: p, isValidProp: d } = f, m = Iu(c), g = r(c, p);
3917
3918
  if (!p && typeof window < "u") {
3918
- tc(f, n);
3919
- const v = ec(f);
3920
- h = v.MeasureLayout, m.visualElement = Zu(t, g, 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);
3921
3922
  }
3922
3923
  return Kr(me.Provider, {
3923
3924
  value: m,
3924
3925
  children: [h && m.visualElement ? Qn(h, {
3925
3926
  visualElement: m.visualElement,
3926
3927
  ...f
3927
- }) : null, zu(t, c, qu(g, m.visualElement, u), g, p, e, o, d)]
3928
+ }) : null, Hu(t, c, Zu(g, m.visualElement, u), g, p, e, o, d)]
3928
3929
  });
3929
3930
  }
3930
3931
  a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3931
3932
  const l = Ur(a);
3932
- return l[Yu] = t, l;
3933
+ return l[qu] = t, l;
3933
3934
  }
3934
- function Qu({ layoutId: t }) {
3935
+ function tc({ layoutId: t }) {
3935
3936
  const e = U(ts).id;
3936
3937
  return e && t !== void 0 ? e + "-" + t : t;
3937
3938
  }
3938
- function tc(t, e) {
3939
+ function ec(t, e) {
3939
3940
  const i = U(Vr).strict;
3940
3941
  if (process.env.NODE_ENV !== "production" && e && i) {
3941
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.";
3942
3943
  t.ignoreStrict ? Mt(!1, n, "lazy-strict-mode") : tt(!1, n, "lazy-strict-mode");
3943
3944
  }
3944
3945
  }
3945
- function ec(t) {
3946
+ function ic(t) {
3946
3947
  const { drag: e, layout: i } = Mr();
3947
3948
  if (!e && !i) return {};
3948
3949
  const n = {
@@ -3954,14 +3955,14 @@ function ec(t) {
3954
3955
  ProjectionNode: n.ProjectionNode
3955
3956
  };
3956
3957
  }
3957
- function ic(t, e) {
3958
+ function nc(t, e) {
3958
3959
  if (typeof Proxy > "u") return Ve;
3959
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));
3960
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)) });
3961
3962
  }
3962
- var nc = (t, e) => e.isSVG ?? Ei(t) ? new jl(e) : new kl(e, { allowProjection: t !== qn }), sc = 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 {
3963
3964
  constructor(t) {
3964
- super(t), t.animationState || (t.animationState = Kl(t));
3965
+ super(t), t.animationState || (t.animationState = zl(t));
3965
3966
  }
3966
3967
  updateAnimationControlsSubscription() {
3967
3968
  const { animate: t } = this.node.getProps();
@@ -3977,9 +3978,9 @@ var nc = (t, e) => e.isSVG ?? Ei(t) ? new jl(e) : new kl(e, { allowProjection: t
3977
3978
  unmount() {
3978
3979
  this.node.animationState.reset(), this.unmountControls?.();
3979
3980
  }
3980
- }, rc = 0, oc = class extends ot {
3981
+ }, oc = 0, ac = class extends ot {
3981
3982
  constructor() {
3982
- super(...arguments), this.id = rc++, this.isExitComplete = !1;
3983
+ super(...arguments), this.id = oc++, this.isExitComplete = !1;
3983
3984
  }
3984
3985
  update() {
3985
3986
  if (!this.node.presenceContext) return;
@@ -4011,9 +4012,9 @@ var nc = (t, e) => e.isSVG ?? Ei(t) ? new jl(e) : new kl(e, { allowProjection: t
4011
4012
  }
4012
4013
  unmount() {
4013
4014
  }
4014
- }, ac = {
4015
- animation: { Feature: sc },
4016
- exit: { Feature: oc }
4015
+ }, lc = {
4016
+ animation: { Feature: rc },
4017
+ exit: { Feature: ac }
4017
4018
  };
4018
4019
  function Kt(t) {
4019
4020
  return { point: {
@@ -4021,12 +4022,12 @@ function Kt(t) {
4021
4022
  y: t.pageY
4022
4023
  } };
4023
4024
  }
4024
- var lc = (t) => (e) => Si(e) && t(e, Kt(e));
4025
+ var uc = (t) => (e) => Si(e) && t(e, Kt(e));
4025
4026
  function Ft(t, e, i, n) {
4026
- return Nt(t, e, lc(i), n);
4027
+ return Nt(t, e, uc(i), n);
4027
4028
  }
4028
4029
  var kr = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Un = (t, e) => Math.abs(t - e);
4029
- function uc(t, e) {
4030
+ function cc(t, e) {
4030
4031
  const i = Un(t.x, e.x), n = Un(t.y, e.y);
4031
4032
  return Math.sqrt(i ** 2 + n ** 2);
4032
4033
  }
@@ -4039,7 +4040,7 @@ var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Br = class {
4039
4040
  }, this.updatePoint = () => {
4040
4041
  if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4041
4042
  this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Gt(this.lastRawMoveEventInfo, this.transformPagePoint));
4042
- const f = Me(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, d = uc(f.offset, {
4043
+ const f = Me(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, d = cc(f.offset, {
4043
4044
  x: 0,
4044
4045
  y: 0
4045
4046
  }) >= this.distanceThreshold;
@@ -4125,17 +4126,17 @@ function Me({ point: t }, e) {
4125
4126
  return {
4126
4127
  point: t,
4127
4128
  delta: $n(t, Fr(e)),
4128
- offset: $n(t, cc(e)),
4129
- velocity: hc(e, 0.1)
4129
+ offset: $n(t, hc(e)),
4130
+ velocity: fc(e, 0.1)
4130
4131
  };
4131
4132
  }
4132
- function cc(t) {
4133
+ function hc(t) {
4133
4134
  return t[0];
4134
4135
  }
4135
4136
  function Fr(t) {
4136
4137
  return t[t.length - 1];
4137
4138
  }
4138
- function hc(t, e) {
4139
+ function fc(t, e) {
4139
4140
  if (t.length < 2) return {
4140
4141
  x: 0,
4141
4142
  y: 0
@@ -4160,7 +4161,7 @@ function hc(t, e) {
4160
4161
  };
4161
4162
  return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4162
4163
  }
4163
- function fc(t, { min: e, max: i }, n) {
4164
+ function dc(t, { min: e, max: i }, n) {
4164
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;
4165
4166
  }
4166
4167
  function Kn(t, e, i) {
@@ -4169,7 +4170,7 @@ function Kn(t, e, i) {
4169
4170
  max: i !== void 0 ? t.max + i - (t.max - t.min) : void 0
4170
4171
  };
4171
4172
  }
4172
- function dc(t, { top: e, left: i, bottom: n, right: s }) {
4173
+ function pc(t, { top: e, left: i, bottom: n, right: s }) {
4173
4174
  return {
4174
4175
  x: Kn(t.x, i, s),
4175
4176
  y: Kn(t.y, e, n)
@@ -4182,23 +4183,23 @@ function zn(t, e) {
4182
4183
  max: n
4183
4184
  };
4184
4185
  }
4185
- function pc(t, e) {
4186
+ function mc(t, e) {
4186
4187
  return {
4187
4188
  x: zn(t.x, e.x),
4188
4189
  y: zn(t.y, e.y)
4189
4190
  };
4190
4191
  }
4191
- function mc(t, e) {
4192
+ function vc(t, e) {
4192
4193
  let i = 0.5;
4193
4194
  const n = j(t), s = j(e);
4194
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);
4195
4196
  }
4196
- function vc(t, e) {
4197
+ function gc(t, e) {
4197
4198
  const i = {};
4198
4199
  return e.min !== void 0 && (i.min = e.min - t.min), e.max !== void 0 && (i.max = e.max - t.min), i;
4199
4200
  }
4200
4201
  var ei = 0.35;
4201
- function gc(t = ei) {
4202
+ function yc(t = ei) {
4202
4203
  return t === !1 ? t = 0 : t === !0 && (t = ei), {
4203
4204
  x: Hn(t, "left", "right"),
4204
4205
  y: Hn(t, "top", "bottom")
@@ -4213,7 +4214,7 @@ function Hn(t, e, i) {
4213
4214
  function Gn(t, e) {
4214
4215
  return typeof t == "number" ? t : t[e] || 0;
4215
4216
  }
4216
- var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4217
+ var Tc = /* @__PURE__ */ new WeakMap(), xc = class {
4217
4218
  constructor(t) {
4218
4219
  this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
4219
4220
  x: 0,
@@ -4227,7 +4228,7 @@ var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4227
4228
  e && this.snapToCursor(Kt(u).point), this.stopAnimation();
4228
4229
  }, o = (u, h) => {
4229
4230
  const { drag: f, dragPropagation: p, onDragStart: d } = this.getProps();
4230
- if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Ja(f), !this.openDragLock))
4231
+ if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = Qa(f), !this.openDragLock))
4231
4232
  return;
4232
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) => {
4233
4234
  let v = this.getAxisMotionValue(g).get() || 0;
@@ -4248,7 +4249,7 @@ var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4248
4249
  if (!f && !this.openDragLock) return;
4249
4250
  const { offset: g } = h;
4250
4251
  if (p && this.currentDirection === null) {
4251
- this.currentDirection = wc(g), this.currentDirection !== null && d && d(this.currentDirection);
4252
+ this.currentDirection = Pc(g), this.currentDirection !== null && d && d(this.currentDirection);
4252
4253
  return;
4253
4254
  }
4254
4255
  this.updateAxis("x", h.point, g), this.updateAxis("y", h.point, g), this.visualElement.render(), m && M.update(() => m(u, h), !1, !0);
@@ -4298,12 +4299,12 @@ var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4298
4299
  if (!i || !_t(t, n, this.currentDirection)) return;
4299
4300
  const s = this.getAxisMotionValue(t);
4300
4301
  let o = this.originPoint[t] + i[t];
4301
- this.constraints && this.constraints[t] && (o = fc(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);
4302
4303
  }
4303
4304
  resolveConstraints() {
4304
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;
4305
- t && Tt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = dc(i.layoutBox, t) : this.constraints = !1, this.elastic = gc(e), n !== this.constraints && !Tt(t) && i && this.constraints && !this.hasMutatedConstraints && q((s) => {
4306
- this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = vc(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]));
4307
4308
  });
4308
4309
  }
4309
4310
  resolveRefConstraints() {
@@ -4314,10 +4315,10 @@ var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4314
4315
  const { projection: n } = this.visualElement;
4315
4316
  if (!n || !n.layout) return !1;
4316
4317
  n.root && (n.root.scroll = void 0, n.root.updateScroll());
4317
- const s = Ml(i, n.root, this.visualElement.getTransformPagePoint());
4318
- let o = pc(n.layout.layoutBox, s);
4318
+ const s = Cl(i, n.root, this.visualElement.getTransformPagePoint());
4319
+ let o = mc(n.layout.layoutBox, s);
4319
4320
  if (e) {
4320
- const r = e(bl(o));
4321
+ const r = e(Al(o));
4321
4322
  this.hasMutatedConstraints = !!r, r && (o = rr(r));
4322
4323
  }
4323
4324
  return o;
@@ -4380,7 +4381,7 @@ var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4380
4381
  const r = this.getAxisMotionValue(o);
4381
4382
  if (r && this.constraints !== !1) {
4382
4383
  const a = r.get();
4383
- n[o] = mc({
4384
+ n[o] = vc({
4384
4385
  min: a,
4385
4386
  max: a
4386
4387
  }, this.constraints[o]);
@@ -4395,15 +4396,15 @@ var yc = /* @__PURE__ */ new WeakMap(), Tc = class {
4395
4396
  }
4396
4397
  addListeners() {
4397
4398
  if (!this.visualElement.current) return;
4398
- yc.set(this.visualElement, this);
4399
+ Tc.set(this.visualElement, this);
4399
4400
  const t = this.visualElement.current, e = Ft(t, "pointerdown", (l) => {
4400
- const { drag: c, dragListener: u = !0 } = this.getProps(), h = l.target, f = h !== t && sl(h);
4401
+ const { drag: c, dragListener: u = !0 } = this.getProps(), h = l.target, f = h !== t && rl(h);
4401
4402
  c && u && !f && this.start(l);
4402
4403
  });
4403
4404
  let i;
4404
4405
  const n = () => {
4405
4406
  const { dragConstraints: l } = this.getProps();
4406
- Tt(l) && l.current && (this.constraints = this.resolveRefConstraints(), i || (i = xc(t, l.current, () => this.scalePositionWithinConstraints())));
4407
+ Tt(l) && l.current && (this.constraints = this.resolveRefConstraints(), i || (i = wc(t, l.current, () => this.scalePositionWithinConstraints())));
4407
4408
  }, { projection: s } = this.visualElement, o = s.addEventListener("measure", n);
4408
4409
  s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(n);
4409
4410
  const r = Nt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: c }) => {
@@ -4439,7 +4440,7 @@ function _n(t) {
4439
4440
  t();
4440
4441
  };
4441
4442
  }
4442
- function xc(t, e, i) {
4443
+ function wc(t, e, i) {
4443
4444
  const n = en(t, _n(i)), s = en(e, _n(i));
4444
4445
  return () => {
4445
4446
  n(), s();
@@ -4448,13 +4449,13 @@ function xc(t, e, i) {
4448
4449
  function _t(t, e, i) {
4449
4450
  return (e === !0 || e === t) && (i === null || i === t);
4450
4451
  }
4451
- function wc(t, e = 10) {
4452
+ function Pc(t, e = 10) {
4452
4453
  let i = null;
4453
4454
  return Math.abs(t.y) > e ? i = "y" : Math.abs(t.x) > e && (i = "x"), i;
4454
4455
  }
4455
- var Pc = class extends ot {
4456
+ var Sc = class extends ot {
4456
4457
  constructor(t) {
4457
- super(t), this.removeGroupControls = z, this.removeListeners = z, this.controls = new Tc(t);
4458
+ super(t), this.removeGroupControls = z, this.removeListeners = z, this.controls = new xc(t);
4458
4459
  }
4459
4460
  mount() {
4460
4461
  const { dragControls: t } = this.node.getProps();
@@ -4469,7 +4470,7 @@ var Pc = class extends ot {
4469
4470
  }
4470
4471
  }, Ce = (t) => (e, i) => {
4471
4472
  t && M.update(() => t(e, i), !1, !0);
4472
- }, Sc = class extends ot {
4473
+ }, bc = class extends ot {
4473
4474
  constructor() {
4474
4475
  super(...arguments), this.removePointerDownListener = z;
4475
4476
  }
@@ -4499,7 +4500,7 @@ var Pc = class extends ot {
4499
4500
  unmount() {
4500
4501
  this.removePointerDownListener(), this.session && this.session.end();
4501
4502
  }
4502
- }, De = !1, bc = class extends jr {
4503
+ }, De = !1, Ac = class extends jr {
4503
4504
  componentDidMount() {
4504
4505
  const { visualElement: t, layoutGroup: e, switchLayoutGroup: i, layoutId: n } = this.props, { projection: s } = t;
4505
4506
  s && (e.group && e.group.add(s), i && i.register && n && i.register(s), De && s.root.didUpdate(), s.addEventListener("animationComplete", () => {
@@ -4539,8 +4540,8 @@ var Pc = class extends ot {
4539
4540
  }
4540
4541
  };
4541
4542
  function Ir(t) {
4542
- const [e, i] = Ru(), n = U(ts);
4543
- return Qn(bc, {
4543
+ const [e, i] = Lu(), n = U(ts);
4544
+ return Qn(Ac, {
4544
4545
  ...t,
4545
4546
  layoutGroup: n,
4546
4547
  switchLayoutGroup: U(Rr),
@@ -4548,10 +4549,10 @@ function Ir(t) {
4548
4549
  safeToRemove: i
4549
4550
  });
4550
4551
  }
4551
- var Ac = {
4552
- pan: { Feature: Sc },
4552
+ var Vc = {
4553
+ pan: { Feature: bc },
4553
4554
  drag: {
4554
- Feature: Pc,
4555
+ Feature: Sc,
4555
4556
  ProjectionNode: br,
4556
4557
  MeasureLayout: Ir
4557
4558
  }
@@ -4562,14 +4563,14 @@ function Xn(t, e, i) {
4562
4563
  const s = n["onHover" + i];
4563
4564
  s && M.postRender(() => s(e, Kt(e)));
4564
4565
  }
4565
- var Vc = class extends ot {
4566
+ var Mc = class extends ot {
4566
4567
  mount() {
4567
4568
  const { current: t } = this.node;
4568
- t && (this.unmount = tl(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"))));
4569
4570
  }
4570
4571
  unmount() {
4571
4572
  }
4572
- }, Mc = class extends ot {
4573
+ }, Cc = class extends ot {
4573
4574
  constructor() {
4574
4575
  super(...arguments), this.isActive = !1;
4575
4576
  }
@@ -4598,43 +4599,43 @@ function Yn(t, e, i) {
4598
4599
  const s = n["onTap" + (i === "End" ? "" : i)];
4599
4600
  s && M.postRender(() => s(e, Kt(e)));
4600
4601
  }
4601
- var Cc = class extends ot {
4602
+ var Dc = class extends ot {
4602
4603
  mount() {
4603
4604
  const { current: t } = this.node;
4604
4605
  if (!t) return;
4605
4606
  const { globalTapTarget: e, propagate: i } = this.node.props;
4606
- this.unmount = ol(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")), {
4607
4608
  useGlobalTarget: e,
4608
4609
  stopPropagation: i?.tap === !1
4609
4610
  });
4610
4611
  }
4611
4612
  unmount() {
4612
4613
  }
4613
- }, ii = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Dc = (t) => {
4614
+ }, ii = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ec = (t) => {
4614
4615
  const e = ii.get(t.target);
4615
4616
  e && e(t);
4616
- }, Ec = (t) => {
4617
- t.forEach(Dc);
4617
+ }, Rc = (t) => {
4618
+ t.forEach(Ec);
4618
4619
  };
4619
- function Rc({ root: t, ...e }) {
4620
+ function Lc({ root: t, ...e }) {
4620
4621
  const i = t || document;
4621
4622
  Ee.has(i) || Ee.set(i, {});
4622
4623
  const n = Ee.get(i), s = JSON.stringify(e);
4623
- return n[s] || (n[s] = new IntersectionObserver(Ec, {
4624
+ return n[s] || (n[s] = new IntersectionObserver(Rc, {
4624
4625
  root: t,
4625
4626
  ...e
4626
4627
  })), n[s];
4627
4628
  }
4628
- function Lc(t, e, i) {
4629
- const n = Rc(e);
4629
+ function kc(t, e, i) {
4630
+ const n = Lc(e);
4630
4631
  return ii.set(t, i), n.observe(t), () => {
4631
4632
  ii.delete(t), n.unobserve(t);
4632
4633
  };
4633
4634
  }
4634
- var kc = {
4635
+ var Bc = {
4635
4636
  some: 0,
4636
4637
  all: 1
4637
- }, Bc = class extends ot {
4638
+ }, Fc = class extends ot {
4638
4639
  constructor() {
4639
4640
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4640
4641
  }
@@ -4643,7 +4644,7 @@ var kc = {
4643
4644
  const { viewport: t = {} } = this.node.getProps(), { root: e, margin: i, amount: n = "some", once: s } = t, o = {
4644
4645
  root: e ? e.current : void 0,
4645
4646
  rootMargin: i,
4646
- threshold: typeof n == "number" ? n : kc[n]
4647
+ threshold: typeof n == "number" ? n : Bc[n]
4647
4648
  }, r = (a) => {
4648
4649
  const { isIntersecting: l } = a;
4649
4650
  if (this.isInView === l || (this.isInView = l, s && !l && this.hasEnteredView)) return;
@@ -4651,7 +4652,7 @@ var kc = {
4651
4652
  const { onViewportEnter: c, onViewportLeave: u } = this.node.getProps(), h = l ? c : u;
4652
4653
  h && h(a);
4653
4654
  };
4654
- this.stopObserver = Lc(this.node.current, o, r);
4655
+ this.stopObserver = kc(this.node.current, o, r);
4655
4656
  }
4656
4657
  mount() {
4657
4658
  this.startObserver();
@@ -4663,29 +4664,29 @@ var kc = {
4663
4664
  "amount",
4664
4665
  "margin",
4665
4666
  "root"
4666
- ].some(Fc(t, e)) && this.startObserver();
4667
+ ].some(Ic(t, e)) && this.startObserver();
4667
4668
  }
4668
4669
  unmount() {
4669
4670
  this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
4670
4671
  }
4671
4672
  };
4672
- function Fc({ viewport: t = {} }, { viewport: e = {} } = {}) {
4673
+ function Ic({ viewport: t = {} }, { viewport: e = {} } = {}) {
4673
4674
  return (i) => t[i] !== e[i];
4674
4675
  }
4675
- var Ic = {
4676
- inView: { Feature: Bc },
4677
- tap: { Feature: Cc },
4678
- focus: { Feature: Mc },
4679
- hover: { Feature: Vc }
4680
- }, Oc = { layout: {
4676
+ var Oc = {
4677
+ inView: { Feature: Fc },
4678
+ tap: { Feature: Dc },
4679
+ focus: { Feature: Cc },
4680
+ hover: { Feature: Mc }
4681
+ }, jc = { layout: {
4681
4682
  ProjectionNode: br,
4682
4683
  MeasureLayout: Ir
4683
- } }, jc = {
4684
- ...ac,
4685
- ...Ic,
4686
- ...Ac,
4687
- ...Oc
4688
- }, Nc = /* @__PURE__ */ ic(jc, nc), zc = Nc;
4684
+ } }, Nc = {
4685
+ ...lc,
4686
+ ...Oc,
4687
+ ...Vc,
4688
+ ...jc
4689
+ }, Uc = /* @__PURE__ */ nc(Nc, sc), Hc = Uc;
4689
4690
  export {
4690
- zc as t
4691
+ Hc as t
4691
4692
  };