@konstructio/ui 0.1.2-alpha.10 → 0.1.2-alpha.101

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 (1154) hide show
  1. package/dist/AdditionalOptions-Cj29eeMF.js +37 -0
  2. package/dist/AlertDialogTrigger-HhbFOOUE.js +124 -0
  3. package/dist/Breadcrumb-Bmv0vzgt.js +82 -0
  4. package/dist/CalendarPanel.css +1 -0
  5. package/dist/Checkbox-B1rTwzR3.js +240 -0
  6. package/dist/Combination-cjXRJS03.js +486 -0
  7. package/dist/CommandInput-CYYsk_31.js +76 -0
  8. package/dist/Counter-DWKyr569.js +208 -0
  9. package/dist/DayPicker-CwO8Zff5.js +2901 -0
  10. package/dist/DropdownButton-Beel5_gN.js +92 -0
  11. package/dist/FlagSelectorList-BARhzfj2.js +848 -0
  12. package/dist/HamburgerTrigger-7a4POUaM.js +85 -0
  13. package/dist/ImageUpload-DZTm4SBB.js +181 -0
  14. package/dist/Input-DG3snJf_.js +188 -0
  15. package/dist/Loading-fD0Xiyeq.js +16 -0
  16. package/dist/Modal-Bcu6LLAp.js +76 -0
  17. package/dist/Sidebar.css +1 -0
  18. package/dist/Spinner-BegZ5yd7.js +41 -0
  19. package/dist/StepIndicatorContent-CjbjVjS1.js +30 -0
  20. package/dist/Switch-1RGhhTtg.js +178 -0
  21. package/dist/Toast-CS-igZor.js +467 -0
  22. package/dist/Wrapper-DNEn4fef.js +161 -0
  23. package/dist/Wrapper-DtT29fc5.js +1057 -0
  24. package/dist/Wrapper-DwxJAkNQ.js +110 -0
  25. package/dist/assets/icons/components/Accounts.js +23 -0
  26. package/dist/assets/icons/components/Activity.js +23 -0
  27. package/dist/assets/icons/components/AddChart.js +20 -0
  28. package/dist/assets/icons/components/AlertOutline.js +20 -0
  29. package/dist/assets/icons/components/ApiKey.js +31 -0
  30. package/dist/assets/icons/components/AppRepo.js +20 -0
  31. package/dist/assets/icons/components/Apps.js +20 -0
  32. package/dist/assets/icons/components/Archives.js +20 -0
  33. package/dist/assets/icons/components/ArrowBack.js +20 -0
  34. package/dist/assets/icons/components/ArrowDown.js +20 -0
  35. package/dist/assets/icons/components/ArrowLeft.js +20 -0
  36. package/dist/assets/icons/components/ArrowRight.js +20 -0
  37. package/dist/assets/icons/components/ArrowUp.js +20 -0
  38. package/dist/assets/icons/components/BarChart.js +30 -0
  39. package/dist/assets/icons/components/Billing.js +36 -0
  40. package/dist/assets/icons/components/BookOpen.js +24 -0
  41. package/dist/assets/icons/components/CalendarMonth.js +20 -0
  42. package/dist/assets/icons/components/Check.js +20 -0
  43. package/dist/assets/icons/components/CheckAlt.js +24 -0
  44. package/dist/assets/icons/components/CheckCircleFilled.js +30 -0
  45. package/dist/assets/icons/components/CheckCircleOutline.js +20 -0
  46. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +20 -0
  47. package/dist/assets/icons/components/CircumGlobe.js +20 -0
  48. package/dist/assets/icons/components/ClockAlert.js +20 -0
  49. package/dist/assets/icons/components/ClockOutline.js +20 -0
  50. package/dist/assets/icons/components/Close.js +20 -0
  51. package/dist/assets/icons/components/Cloud.js +17 -0
  52. package/dist/assets/icons/components/CloudLockOutline.js +20 -0
  53. package/dist/assets/icons/components/Clusters.js +30 -0
  54. package/dist/assets/icons/components/CogOutline.js +20 -0
  55. package/dist/assets/icons/components/Compute.js +20 -0
  56. package/dist/assets/icons/components/Configure.js +41 -0
  57. package/dist/assets/icons/components/Copy.js +20 -0
  58. package/dist/assets/icons/components/Cpu.js +27 -0
  59. package/dist/assets/icons/components/CpuAlt.js +33 -0
  60. package/dist/assets/icons/components/Cube.js +20 -0
  61. package/dist/assets/icons/components/Dashboard.js +23 -0
  62. package/dist/assets/icons/components/Database.js +33 -0
  63. package/dist/assets/icons/components/Datacenter.js +20 -0
  64. package/dist/assets/icons/components/Delete.js +20 -0
  65. package/dist/assets/icons/components/Deploy.js +41 -0
  66. package/dist/assets/icons/components/Dns.js +23 -0
  67. package/dist/assets/icons/components/Docs.js +40 -0
  68. package/dist/assets/icons/components/DollarSign.js +22 -0
  69. package/dist/assets/icons/components/Download.js +20 -0
  70. package/dist/assets/icons/components/Edit.js +20 -0
  71. package/dist/assets/icons/components/Ellipses.js +20 -0
  72. package/dist/assets/icons/components/Environments.js +22 -0
  73. package/dist/assets/icons/components/Error.js +20 -0
  74. package/dist/assets/icons/components/ErrorOutline.js +20 -0
  75. package/dist/assets/icons/components/Exclamation.js +23 -0
  76. package/dist/assets/icons/components/Firewall.js +23 -0
  77. package/dist/assets/icons/components/FirewallAlt.js +23 -0
  78. package/dist/assets/icons/components/Git.js +20 -0
  79. package/dist/assets/icons/components/GitOpsCatalog.js +27 -0
  80. package/dist/assets/icons/components/Github.js +34 -0
  81. package/dist/assets/icons/components/GridView.js +17 -0
  82. package/dist/assets/icons/components/Help.js +26 -0
  83. package/dist/assets/icons/components/HideOutline.js +23 -0
  84. package/dist/assets/icons/components/Home.js +20 -0
  85. package/dist/assets/icons/components/Home2.js +23 -0
  86. package/dist/assets/icons/components/Id.js +20 -0
  87. package/dist/assets/icons/components/InfoCircle.js +30 -0
  88. package/dist/assets/icons/components/InformationOutline.js +20 -0
  89. package/dist/assets/icons/components/Inventory.js +23 -0
  90. package/dist/assets/icons/components/InvoiceList.js +20 -0
  91. package/dist/assets/icons/components/Key.js +20 -0
  92. package/dist/assets/icons/components/Konstruct.js +23 -0
  93. package/dist/assets/icons/components/Kubernetes.js +29 -0
  94. package/dist/assets/icons/components/LightBulb.js +29 -0
  95. package/dist/assets/icons/components/LoadBalancer.js +20 -0
  96. package/dist/assets/icons/components/LoadBalancerAlt.js +20 -0
  97. package/dist/assets/icons/components/Loader.js +20 -0
  98. package/dist/assets/icons/components/Lock.js +20 -0
  99. package/dist/assets/icons/components/LockAlt.js +21 -0
  100. package/dist/assets/icons/components/LogOut.js +23 -0
  101. package/dist/assets/icons/components/Network.js +20 -0
  102. package/dist/assets/icons/components/NetworkAlt.js +30 -0
  103. package/dist/assets/icons/components/ObjectStorage.js +23 -0
  104. package/dist/assets/icons/components/OrgSettings.js +20 -0
  105. package/dist/assets/icons/components/Organization.js +20 -0
  106. package/dist/assets/icons/components/PagesStack.js +26 -0
  107. package/dist/assets/icons/components/Pageview.js +20 -0
  108. package/dist/assets/icons/components/People.js +20 -0
  109. package/dist/assets/icons/components/PhotoLibrary.js +20 -0
  110. package/dist/assets/icons/components/Pipeline.js +22 -0
  111. package/dist/assets/icons/components/Plus.js +20 -0
  112. package/dist/assets/icons/components/PowerSettings.js +20 -0
  113. package/dist/assets/icons/components/Preview.js +20 -0
  114. package/dist/assets/icons/components/PrivateRegion.js +20 -0
  115. package/dist/assets/icons/components/Profile.js +20 -0
  116. package/dist/assets/icons/components/Quota.js +23 -0
  117. package/dist/assets/icons/components/ReceiptLong.js +17 -0
  118. package/dist/assets/icons/components/Refresh.js +20 -0
  119. package/dist/assets/icons/components/ReservedIp.js +20 -0
  120. package/dist/assets/icons/components/ScatterPlot.js +17 -0
  121. package/dist/assets/icons/components/Search.js +30 -24
  122. package/dist/assets/icons/components/Server.js +20 -0
  123. package/dist/assets/icons/components/SshKey.js +23 -0
  124. package/dist/assets/icons/components/Start.js +20 -0
  125. package/dist/assets/icons/components/TabNew.js +36 -0
  126. package/dist/assets/icons/components/TeamMembers.js +23 -0
  127. package/dist/assets/icons/components/Teams.js +20 -0
  128. package/dist/assets/icons/components/Upload.js +20 -0
  129. package/dist/assets/icons/components/Volume.js +60 -0
  130. package/dist/assets/icons/components/Warning.js +16 -18
  131. package/dist/assets/icons/components/WarningTriangle.js +20 -0
  132. package/dist/assets/icons/components/Webhook.js +44 -0
  133. package/dist/assets/icons/components/X.js +20 -0
  134. package/dist/assets/icons/components/index.js +218 -4
  135. package/dist/assets/icons/components/types.js +0 -0
  136. package/dist/assets/icons/index.js +220 -0
  137. package/dist/chevron-down-DNP-OOAQ.js +8 -0
  138. package/dist/chevron-left-DxGDBBKA.js +8 -0
  139. package/dist/chevron-right-CDwgDdp-.js +8 -0
  140. package/dist/chevron-up-Bjpvg6ui.js +8 -0
  141. package/dist/{clsx-OuTLNxxd.js → clsx-Cf23UI1w.js} +1 -1
  142. package/dist/components/Alert/Alert.js +55 -45
  143. package/dist/components/Alert/Alert.variants.js +96 -66
  144. package/dist/components/AlertDialog/AlertDialog.js +70 -81
  145. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +2 -5
  146. package/dist/components/AlertDialog/components/index.js +2 -2
  147. package/dist/components/AlertDialog/hooks/useAlertDialog.js +12 -7
  148. package/dist/components/Autocomplete/Autocomplete.js +58 -81
  149. package/dist/components/Autocomplete/Autocomplete.variants.js +2 -3
  150. package/dist/components/Autocomplete/components/List/List.js +30 -42
  151. package/dist/components/Autocomplete/components/List/List.variants.js +7 -7
  152. package/dist/components/Autocomplete/components/index.js +2 -2
  153. package/dist/components/Autocomplete/hooks/useAutocomplete.js +30 -57
  154. package/dist/components/Autocomplete/hooks/useNavigationList.js +42 -54
  155. package/dist/components/Badge/Badge.js +61 -73
  156. package/dist/components/Badge/Badge.variants.js +90 -61
  157. package/dist/components/Breadcrumb/Breadcrumb.js +2 -89
  158. package/dist/components/Breadcrumb/Breadcrumb.variants.js +10 -6
  159. package/dist/components/Breadcrumb/components/BackButton/BackButton.js +41 -0
  160. package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +19 -0
  161. package/dist/components/Breadcrumb/components/Item/Item.js +49 -47
  162. package/dist/components/Breadcrumb/components/Item/Item.variants.js +52 -54
  163. package/dist/components/Breadcrumb/components/index.js +4 -2
  164. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +2 -2
  165. package/dist/components/Button/Button.js +21 -39
  166. package/dist/components/Button/Button.variants.js +315 -270
  167. package/dist/components/ButtonGroup/ButtonGroup.js +88 -0
  168. package/dist/components/ButtonGroup/ButtonGroup.variants.js +32 -0
  169. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +60 -0
  170. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +98 -0
  171. package/dist/components/ButtonGroup/components/ButtonGroupItem/index.js +4 -0
  172. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +23 -0
  173. package/dist/components/ButtonGroup/components/ButtonGroupLabel/index.js +4 -0
  174. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +18 -0
  175. package/dist/components/ButtonGroup/components/ButtonGroupMessage/index.js +4 -0
  176. package/dist/components/ButtonGroup/components/index.js +8 -0
  177. package/dist/components/ButtonGroup/hooks/index.js +4 -0
  178. package/dist/components/ButtonGroup/hooks/useButtonGroup.js +54 -0
  179. package/dist/components/Card/Card.js +20 -32
  180. package/dist/components/Card/Card.variants.js +42 -46
  181. package/dist/components/Checkbox/Checkbox.js +2 -353
  182. package/dist/components/Checkbox/Checkbox.variants.js +60 -43
  183. package/dist/components/Command/Command.js +28 -37
  184. package/dist/components/Command/Command.variants.js +3 -3
  185. package/dist/components/Command/components/Command.js +13 -5
  186. package/dist/components/Command/components/CommandEmpty.js +10 -13
  187. package/dist/components/Command/components/CommandGroup.js +8 -14
  188. package/dist/components/Command/components/CommandInput.js +2 -82
  189. package/dist/components/Command/components/CommandItem.js +16 -25
  190. package/dist/components/Command/components/CommandList.js +9 -12
  191. package/dist/components/Command/components/CommandSeparator.js +9 -12
  192. package/dist/components/Command/components/CommandShortcut.js +8 -17
  193. package/dist/components/Command/components/DialogContent.js +19 -28
  194. package/dist/components/Command/components/DialogOverlay.js +10 -16
  195. package/dist/components/Command/components/index.js +16 -16
  196. package/dist/components/Command/contexts/Command.context.js +1 -1
  197. package/dist/components/Command/contexts/Command.provider.js +15 -21
  198. package/dist/components/Command/contexts/index.js +2 -2
  199. package/dist/components/Counter/Counter.js +5 -0
  200. package/dist/components/Counter/Counter.variants.js +57 -0
  201. package/dist/components/DateRangePicker/DateRangePicker.js +79 -0
  202. package/dist/components/DateRangePicker/DateRangePicker.variants.js +25 -0
  203. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +80 -0
  204. package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.js +56 -0
  205. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +10 -0
  206. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +38 -0
  207. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +185 -0
  208. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +22 -0
  209. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +88 -0
  210. package/dist/components/DateRangePicker/components/CalendarPanel/components/index.js +12 -0
  211. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +4 -0
  212. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +12 -0
  213. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +21 -0
  214. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +144 -0
  215. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +108 -0
  216. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +11 -0
  217. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +64 -0
  218. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.js +35 -0
  219. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +45 -0
  220. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +45 -0
  221. package/dist/components/DateRangePicker/components/DateTimeInputs/components/index.js +6 -0
  222. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/index.js +4 -0
  223. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.js +181 -0
  224. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +47 -0
  225. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.js +24 -0
  226. package/dist/components/DateRangePicker/components/index.js +8 -0
  227. package/dist/components/DateRangePicker/constants/index.js +4 -0
  228. package/dist/components/DateRangePicker/constants/presets.js +25 -0
  229. package/dist/components/DateRangePicker/contexts/date-range-picker.context.js +5 -0
  230. package/dist/components/DateRangePicker/contexts/date-range-picker.hook.js +10 -0
  231. package/dist/components/DateRangePicker/contexts/date-range-picker.provider.js +119 -0
  232. package/dist/components/DateRangePicker/contexts/index.js +8 -0
  233. package/dist/components/DateRangePicker/utils/disabled-dates.js +31 -0
  234. package/dist/components/DateRangePicker/utils/index.js +22 -0
  235. package/dist/components/DateRangePicker/utils/presets.js +34 -0
  236. package/dist/components/DateRangePicker/utils/validation.js +67 -0
  237. package/dist/components/Datepicker/DatePicker.js +47 -2687
  238. package/dist/components/Datepicker/DatePicker.variants.js +3 -3
  239. package/dist/components/Divider/Divider.js +6 -6
  240. package/dist/components/Divider/Divider.variants.js +9 -11
  241. package/dist/components/Drawer/Drawer.js +76 -0
  242. package/dist/components/Drawer/Drawer.variants.js +78 -0
  243. package/dist/components/Drawer/components/Body/Body.js +15 -0
  244. package/dist/components/Drawer/components/Body/index.js +4 -0
  245. package/dist/components/Drawer/components/Footer/Footer.js +15 -0
  246. package/dist/components/Drawer/components/Footer/index.js +4 -0
  247. package/dist/components/Drawer/components/Header/Header.js +16 -0
  248. package/dist/components/Drawer/components/Header/index.js +4 -0
  249. package/dist/components/Drawer/components/index.js +8 -0
  250. package/dist/components/Drawer/constants/index.js +9 -0
  251. package/dist/components/Drawer/contexts/Drawer.context.js +6 -0
  252. package/dist/components/Drawer/contexts/index.js +5 -0
  253. package/dist/components/Drawer/hooks/index.js +4 -0
  254. package/dist/components/Drawer/hooks/useDrawer.js +62 -0
  255. package/dist/components/DropdownButton/DropdownButton.js +2 -133
  256. package/dist/components/Filter/Filter.js +32 -18
  257. package/dist/components/Filter/Filter.variants.js +14 -9
  258. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +52 -70
  259. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +73 -92
  260. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +42 -70
  261. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +49 -84
  262. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +63 -0
  263. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +58 -0
  264. package/dist/components/Filter/components/ResetButton/ResetButton.js +19 -27
  265. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +76 -0
  266. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +54 -0
  267. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +84 -0
  268. package/dist/components/Filter/components/index.js +11 -5
  269. package/dist/components/Filter/contexts/filter.context.js +5 -0
  270. package/dist/components/Filter/contexts/filter.hook.js +10 -0
  271. package/dist/components/Filter/contexts/filter.provider.js +9 -0
  272. package/dist/components/Filter/contexts/index.js +8 -0
  273. package/dist/components/Filter/events/index.js +4 -8
  274. package/dist/components/Filter/utils/index.js +4 -0
  275. package/dist/components/ImageUpload/ImageUpload.js +4 -0
  276. package/dist/components/ImageUpload/ImageUpload.variants.js +92 -0
  277. package/dist/components/Input/Input.js +2 -205
  278. package/dist/components/Input/Input.variants.js +48 -50
  279. package/dist/components/LineChart/LineChart.js +127 -0
  280. package/dist/components/Loading/Loading.js +2 -24
  281. package/dist/components/Loading/Loading.variants.js +2 -2
  282. package/dist/components/Modal/Modal.js +3 -8
  283. package/dist/components/Modal/components/Body/Body.js +8 -5
  284. package/dist/components/Modal/components/Footer/Footer.js +8 -5
  285. package/dist/components/Modal/components/Header/Header.js +7 -4
  286. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -9
  287. package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +16 -13
  288. package/dist/components/Modal/components/index.js +8 -8
  289. package/dist/components/Modal/contexts/Modal.context.js +2 -4
  290. package/dist/components/Modal/contexts/Modal.provider.js +17 -20
  291. package/dist/components/Modal/contexts/index.js +2 -2
  292. package/dist/components/Modal/hooks/useModal.js +10 -10
  293. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +4 -0
  294. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +31 -0
  295. package/dist/components/MultiSelectDropdown/components/Item/Item.js +22 -0
  296. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +29 -0
  297. package/dist/components/MultiSelectDropdown/components/List/List.js +4 -0
  298. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
  299. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +4 -0
  300. package/dist/components/MultiSelectDropdown/components/index.js +7 -0
  301. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
  302. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +10 -0
  303. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +109 -0
  304. package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
  305. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +23 -0
  306. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +14 -0
  307. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +39 -0
  308. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +19 -0
  309. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +4 -0
  310. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +28 -0
  311. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +52 -0
  312. package/dist/components/PhoneNumberInput/components/Wrapper.js +4 -0
  313. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  314. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  315. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  316. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +10 -0
  317. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +4 -0
  318. package/dist/components/PhoneNumberInput/utils/index.js +10 -0
  319. package/dist/components/PieChart/PieChart.js +41 -5130
  320. package/dist/components/ProgressBar/ProgressBar.js +30 -60
  321. package/dist/components/ProgressBar/ProgressBar.variants.js +25 -33
  322. package/dist/components/Radio/Radio.js +51 -92
  323. package/dist/components/Radio/Radio.variants.js +82 -84
  324. package/dist/components/RadioCard/RadioCard.js +14 -31
  325. package/dist/components/RadioCard/RadioCard.variants.js +3 -3
  326. package/dist/components/RadioCardGroup/RadioCardGroup.js +24 -42
  327. package/dist/components/RadioCardGroup/RadioCardGroup.variants.js +8 -12
  328. package/dist/components/RadioGroup/RadioGroup.js +26 -47
  329. package/dist/components/RadioGroup/RadioGroup.variants.js +8 -12
  330. package/dist/components/Range/Range.js +48 -58
  331. package/dist/components/Range/Range.variants.js +35 -44
  332. package/dist/components/Select/Select.js +38 -0
  333. package/dist/components/Select/Select.variants.js +76 -0
  334. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +4 -0
  335. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +5 -0
  336. package/dist/components/Select/components/EmptyList.js +5 -0
  337. package/dist/components/Select/components/List/List.js +130 -0
  338. package/dist/components/Select/components/List/List.variants.js +46 -0
  339. package/dist/components/Select/components/ListItem/ListItem.js +64 -0
  340. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +8 -7
  341. package/dist/components/Select/components/Wrapper.js +4 -0
  342. package/dist/components/Select/components/index.js +10 -0
  343. package/dist/components/Select/constants/index.js +6 -0
  344. package/dist/components/Select/constants/list.js +4 -0
  345. package/dist/components/Select/constants/pagination.js +4 -0
  346. package/dist/components/Select/contexts/index.js +6 -0
  347. package/dist/components/Select/contexts/select.context.js +36 -0
  348. package/dist/components/Select/contexts/select.hook.js +10 -0
  349. package/dist/components/Select/contexts/select.provider.js +48 -0
  350. package/dist/components/Select/hooks/useNavigationList.js +41 -0
  351. package/dist/components/Select/hooks/useSelect.js +67 -0
  352. package/dist/components/Sidebar/Sidebar.js +22 -18
  353. package/dist/components/Sidebar/Sidebar.variants.js +11 -11
  354. package/dist/components/Sidebar/components/Footer/Footer.js +9 -6
  355. package/dist/components/Sidebar/components/Footer/Footer.variants.js +2 -2
  356. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +4 -0
  357. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +22 -0
  358. package/dist/components/Sidebar/components/Label/Label.js +34 -0
  359. package/dist/components/Sidebar/components/Logo/Logo.js +15 -6
  360. package/dist/components/Sidebar/components/Logo/Logo.variants.js +10 -6
  361. package/dist/components/Sidebar/components/Navigation/Navigation.js +29 -16
  362. package/dist/components/Sidebar/components/Navigation/Navigation.variants.js +10 -3
  363. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +18 -24
  364. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.js +7 -2
  365. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.context.js +6 -0
  366. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +51 -24
  367. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +37 -41
  368. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +9 -4
  369. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.js +8 -6
  370. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +9 -10
  371. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +3 -3
  372. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +109 -81
  373. package/dist/components/Sidebar/components/index.js +20 -16
  374. package/dist/components/Sidebar/contexts/SidebarContext.js +13 -0
  375. package/dist/components/Sidebar/contexts/index.js +5 -0
  376. package/dist/components/Sidebar/hooks/index.js +6 -0
  377. package/dist/components/Sidebar/hooks/useSidebarMode.js +10 -0
  378. package/dist/components/Slider/Slider.js +38 -46
  379. package/dist/components/Slider/Slider.variants.js +36 -45
  380. package/dist/components/Spinner/Spinner.js +4 -0
  381. package/dist/components/Spinner/Spinner.variants.js +40 -0
  382. package/dist/components/Stepper/Stepper.js +48 -0
  383. package/dist/components/Stepper/Stepper.variants.js +319 -0
  384. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +123 -0
  385. package/dist/components/Stepper/components/StepConnector/StepConnector.js +17 -0
  386. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +4 -0
  387. package/dist/components/Stepper/components/StepItem/StepItem.js +8 -0
  388. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +72 -0
  389. package/dist/components/Stepper/constants/index.js +13 -0
  390. package/dist/components/Stepper/hooks/index.js +4 -0
  391. package/dist/components/Stepper/hooks/useStepItemLogic.js +24 -0
  392. package/dist/components/Stepper/utils/index.js +12 -0
  393. package/dist/components/Switch/Switch.js +2 -199
  394. package/dist/components/Switch/Switch.variants.js +20 -11
  395. package/dist/components/Table/Table.js +17 -24
  396. package/dist/components/Table/Table.variants.js +17 -24
  397. package/dist/components/Table/components/Body.js +8 -15
  398. package/dist/components/Table/components/Filter.js +13 -7
  399. package/dist/components/Table/components/Head.js +9 -16
  400. package/dist/components/Table/components/Row.js +14 -26
  401. package/dist/components/Table/components/index.js +6 -6
  402. package/dist/components/Tabs/Tabs.js +20 -20
  403. package/dist/components/Tabs/Tabs.variants.js +55 -71
  404. package/dist/components/Tabs/components/Content.js +12 -12
  405. package/dist/components/Tabs/components/List.js +16 -18
  406. package/dist/components/Tabs/components/Trigger.js +13 -15
  407. package/dist/components/Tabs/components/index.js +4 -4
  408. package/dist/components/Tag/Tag.js +25 -16
  409. package/dist/components/Tag/Tag.variants.js +32 -38
  410. package/dist/components/TagSelect/TagSelect.js +13 -5
  411. package/dist/components/TagSelect/TagSelect.variants.js +7 -6
  412. package/dist/components/TagSelect/components/Item/Item.js +13 -16
  413. package/dist/components/TagSelect/components/Item/Item.variants.js +21 -30
  414. package/dist/components/TagSelect/components/List/List.js +15 -7
  415. package/dist/components/TagSelect/components/List/List.variants.js +3 -3
  416. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -133
  417. package/dist/components/TagSelect/components/index.js +6 -6
  418. package/dist/components/TagSelect/contexts/TagSelect.context.js +1 -1
  419. package/dist/components/TagSelect/contexts/TagSelect.hook.js +6 -7
  420. package/dist/components/TagSelect/contexts/TagSelect.provider.js +43 -59
  421. package/dist/components/TagSelect/contexts/index.js +4 -4
  422. package/dist/components/TagSelect/hooks/useTagSelect.js +13 -22
  423. package/dist/components/TextArea/TextArea.js +28 -34
  424. package/dist/components/TextArea/TextArea.variants.js +3 -3
  425. package/dist/components/TimePicker/TimePicker.js +14 -5
  426. package/dist/components/TimePicker/TimePicker.variants.js +32 -22
  427. package/dist/components/TimePicker/components/HoursList/HoursList.js +94 -81
  428. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +52 -63
  429. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +68 -51
  430. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +140 -89
  431. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +35 -45
  432. package/dist/components/TimePicker/components/index.js +2 -2
  433. package/dist/components/TimePicker/contexts/index.js +6 -6
  434. package/dist/components/TimePicker/contexts/time-picker.context.js +9 -2
  435. package/dist/components/TimePicker/contexts/time-picker.hook.js +4 -7
  436. package/dist/components/TimePicker/contexts/time-picker.provider.js +55 -42
  437. package/dist/components/TimePicker/utils/index.js +27 -4
  438. package/dist/components/Toast/Toast.js +3 -478
  439. package/dist/components/Toast/Toast.variants.js +21 -16
  440. package/dist/components/Tooltip/Tooltip.js +16 -32
  441. package/dist/components/Typography/Typography.js +15 -25
  442. package/dist/components/Typography/Typography.variants.js +72 -54
  443. package/dist/components/VirtualizedTable/VirtualizedTable.js +102 -115
  444. package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +2 -2
  445. package/dist/components/VirtualizedTable/assets/chevron-down.js +13 -22
  446. package/dist/components/VirtualizedTable/assets/chevron-up.js +13 -22
  447. package/dist/components/VirtualizedTable/assets/index.js +4 -4
  448. package/dist/components/VirtualizedTable/components/Actions/Actions.js +58 -41
  449. package/dist/components/VirtualizedTable/components/Body/Body.js +70 -22
  450. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +97 -159
  451. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +23 -31
  452. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +31 -0
  453. package/dist/components/VirtualizedTable/components/Filter/Filter.js +119 -81
  454. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +42 -45
  455. package/dist/components/VirtualizedTable/components/Header/Header.js +36 -78
  456. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +29 -42
  457. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +43 -0
  458. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +38 -1866
  459. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +14 -0
  460. package/dist/components/VirtualizedTable/components/index.js +12 -10
  461. package/dist/components/VirtualizedTable/constants/index.js +3 -3
  462. package/dist/components/VirtualizedTable/constants/pagination.js +6 -1
  463. package/dist/components/VirtualizedTable/contexts/index.js +6 -6
  464. package/dist/components/VirtualizedTable/contexts/table.context.js +13 -3
  465. package/dist/components/VirtualizedTable/contexts/table.hook.js +7 -8
  466. package/dist/components/VirtualizedTable/contexts/table.provider.js +2 -80
  467. package/dist/components/VirtualizedTable/events/index.js +27 -0
  468. package/dist/components/VirtualizedTable/utils/index.js +4 -0
  469. package/dist/components/VirtualizedTable/utils/pagination.js +5 -0
  470. package/dist/components/index.js +141 -96
  471. package/dist/components-CYt24H4n.js +120 -0
  472. package/dist/constants-DXrF9vV4.js +31 -0
  473. package/dist/contexts/index.js +6 -6
  474. package/dist/contexts/theme.context.js +2 -2
  475. package/dist/contexts/theme.hook.js +2 -2
  476. package/dist/contexts/theme.provider.js +2 -85
  477. package/dist/createLucideIcon-MbzNWCaI.js +42 -0
  478. package/dist/debounce-KoeGNmnW.js +86 -0
  479. package/dist/dist-7edduNXi.js +398 -0
  480. package/dist/dist-AihTpWdF2.js +7484 -0
  481. package/dist/dist-B-Aoze_D.js +10 -0
  482. package/dist/dist-B9GE4SXf.js +34 -0
  483. package/dist/dist-BkYHh2kH.js +408 -0
  484. package/dist/dist-C6Cif8-U.js +28 -0
  485. package/dist/dist-C8NWUTUh.js +62 -0
  486. package/dist/dist-CVy-ulDZ.js +42 -0
  487. package/dist/dist-CeuUxVmT.js +13 -0
  488. package/dist/dist-CfYOvauX.js +125 -0
  489. package/dist/dist-CktbIsHq.js +264 -0
  490. package/dist/dist-DGO9opgu.js +469 -0
  491. package/dist/dist-DGqWMRtc.js +183 -0
  492. package/dist/{index-BZPx6jYI.js → dist-DdFwUrO22.js} +5 -2
  493. package/dist/dist-DnGj9MTf.js +1692 -0
  494. package/dist/dist-DqKFpce5.js +98 -0
  495. package/dist/dist-DvoMuWKO2.js +31 -0
  496. package/dist/dist-eAwtFCCA.js +87 -0
  497. package/dist/dist-ppXKUlVt.js +10 -0
  498. package/dist/ellipsis-vertical-BBmhzIXn.js +24 -0
  499. package/dist/hooks/index.js +4 -2
  500. package/dist/hooks/useMediaQuery.js +17 -0
  501. package/dist/hooks/useToggle.js +5 -8
  502. package/dist/icons.d.ts +1 -0
  503. package/dist/icons.js +220 -0
  504. package/dist/index.d.ts +1 -954
  505. package/dist/index.js +155 -104
  506. package/dist/isObject-1ZmdWuhC.js +62 -0
  507. package/dist/lib/assets/icons/components/Accounts.d.ts +3 -0
  508. package/dist/lib/assets/icons/components/Activity.d.ts +3 -0
  509. package/dist/lib/assets/icons/components/AddChart.d.ts +3 -0
  510. package/dist/lib/assets/icons/components/AlertOutline.d.ts +3 -0
  511. package/dist/lib/assets/icons/components/ApiKey.d.ts +3 -0
  512. package/dist/lib/assets/icons/components/AppRepo.d.ts +3 -0
  513. package/dist/lib/assets/icons/components/Apps.d.ts +3 -0
  514. package/dist/lib/assets/icons/components/Archives.d.ts +3 -0
  515. package/dist/lib/assets/icons/components/ArrowBack.d.ts +3 -0
  516. package/dist/lib/assets/icons/components/ArrowDown.d.ts +3 -0
  517. package/dist/lib/assets/icons/components/ArrowLeft.d.ts +3 -0
  518. package/dist/lib/assets/icons/components/ArrowRight.d.ts +3 -0
  519. package/dist/lib/assets/icons/components/ArrowUp.d.ts +3 -0
  520. package/dist/lib/assets/icons/components/BarChart.d.ts +3 -0
  521. package/dist/lib/assets/icons/components/Billing.d.ts +3 -0
  522. package/dist/lib/assets/icons/components/BookOpen.d.ts +3 -0
  523. package/dist/lib/assets/icons/components/CalendarMonth.d.ts +3 -0
  524. package/dist/lib/assets/icons/components/Check.d.ts +3 -0
  525. package/dist/lib/assets/icons/components/CheckAlt.d.ts +3 -0
  526. package/dist/lib/assets/icons/components/CheckCircleFilled.d.ts +3 -0
  527. package/dist/lib/assets/icons/components/CheckCircleOutline.d.ts +3 -0
  528. package/dist/lib/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
  529. package/dist/lib/assets/icons/components/CircumGlobe.d.ts +3 -0
  530. package/dist/lib/assets/icons/components/ClockAlert.d.ts +3 -0
  531. package/dist/lib/assets/icons/components/ClockOutline.d.ts +3 -0
  532. package/dist/lib/assets/icons/components/Close.d.ts +3 -0
  533. package/dist/lib/assets/icons/components/Cloud.d.ts +3 -0
  534. package/dist/lib/assets/icons/components/CloudLockOutline.d.ts +3 -0
  535. package/dist/lib/assets/icons/components/Clusters.d.ts +3 -0
  536. package/dist/lib/assets/icons/components/CogOutline.d.ts +3 -0
  537. package/dist/lib/assets/icons/components/Compute.d.ts +3 -0
  538. package/dist/lib/assets/icons/components/Configure.d.ts +3 -0
  539. package/dist/lib/assets/icons/components/Copy.d.ts +3 -0
  540. package/dist/lib/assets/icons/components/Cpu.d.ts +3 -0
  541. package/dist/lib/assets/icons/components/CpuAlt.d.ts +3 -0
  542. package/dist/lib/assets/icons/components/Cube.d.ts +3 -0
  543. package/dist/lib/assets/icons/components/Dashboard.d.ts +3 -0
  544. package/dist/lib/assets/icons/components/Database.d.ts +3 -0
  545. package/dist/lib/assets/icons/components/Datacenter.d.ts +3 -0
  546. package/dist/lib/assets/icons/components/Delete.d.ts +3 -0
  547. package/dist/lib/assets/icons/components/Deploy.d.ts +3 -0
  548. package/dist/lib/assets/icons/components/Dns.d.ts +3 -0
  549. package/dist/lib/assets/icons/components/Docs.d.ts +3 -0
  550. package/dist/lib/assets/icons/components/DollarSign.d.ts +3 -0
  551. package/dist/lib/assets/icons/components/Download.d.ts +3 -0
  552. package/dist/lib/assets/icons/components/Edit.d.ts +3 -0
  553. package/dist/lib/assets/icons/components/Ellipses.d.ts +3 -0
  554. package/dist/lib/assets/icons/components/Environments.d.ts +3 -0
  555. package/dist/lib/assets/icons/components/Error.d.ts +3 -0
  556. package/dist/lib/assets/icons/components/ErrorOutline.d.ts +3 -0
  557. package/dist/lib/assets/icons/components/Exclamation.d.ts +3 -0
  558. package/dist/lib/assets/icons/components/Firewall.d.ts +3 -0
  559. package/dist/lib/assets/icons/components/FirewallAlt.d.ts +3 -0
  560. package/dist/lib/assets/icons/components/Git.d.ts +3 -0
  561. package/dist/lib/assets/icons/components/GitOpsCatalog.d.ts +3 -0
  562. package/dist/lib/assets/icons/components/Github.d.ts +3 -0
  563. package/dist/lib/assets/icons/components/GridView.d.ts +3 -0
  564. package/dist/lib/assets/icons/components/Help.d.ts +3 -0
  565. package/dist/lib/assets/icons/components/HideOutline.d.ts +3 -0
  566. package/dist/lib/assets/icons/components/Home.d.ts +3 -0
  567. package/dist/lib/assets/icons/components/Home2.d.ts +3 -0
  568. package/dist/lib/assets/icons/components/Id.d.ts +3 -0
  569. package/dist/lib/assets/icons/components/InfoCircle.d.ts +3 -0
  570. package/dist/lib/assets/icons/components/InformationOutline.d.ts +3 -0
  571. package/dist/lib/assets/icons/components/Inventory.d.ts +3 -0
  572. package/dist/lib/assets/icons/components/InvoiceList.d.ts +3 -0
  573. package/dist/lib/assets/icons/components/Key.d.ts +3 -0
  574. package/dist/lib/assets/icons/components/Konstruct.d.ts +3 -0
  575. package/dist/lib/assets/icons/components/Kubernetes.d.ts +3 -0
  576. package/dist/lib/assets/icons/components/LightBulb.d.ts +3 -0
  577. package/dist/lib/assets/icons/components/LoadBalancer.d.ts +3 -0
  578. package/dist/lib/assets/icons/components/LoadBalancerAlt.d.ts +3 -0
  579. package/dist/lib/assets/icons/components/Loader.d.ts +3 -0
  580. package/dist/lib/assets/icons/components/Lock.d.ts +3 -0
  581. package/dist/lib/assets/icons/components/LockAlt.d.ts +3 -0
  582. package/dist/lib/assets/icons/components/LogOut.d.ts +3 -0
  583. package/dist/lib/assets/icons/components/Network.d.ts +3 -0
  584. package/dist/lib/assets/icons/components/NetworkAlt.d.ts +3 -0
  585. package/dist/lib/assets/icons/components/ObjectStorage.d.ts +3 -0
  586. package/dist/lib/assets/icons/components/OrgSettings.d.ts +3 -0
  587. package/dist/lib/assets/icons/components/Organization.d.ts +3 -0
  588. package/dist/lib/assets/icons/components/PagesStack.d.ts +3 -0
  589. package/dist/lib/assets/icons/components/Pageview.d.ts +3 -0
  590. package/dist/lib/assets/icons/components/People.d.ts +3 -0
  591. package/dist/lib/assets/icons/components/PhotoLibrary.d.ts +3 -0
  592. package/dist/lib/assets/icons/components/Pipeline.d.ts +3 -0
  593. package/dist/lib/assets/icons/components/Plus.d.ts +3 -0
  594. package/dist/lib/assets/icons/components/PowerSettings.d.ts +3 -0
  595. package/dist/lib/assets/icons/components/Preview.d.ts +3 -0
  596. package/dist/lib/assets/icons/components/PrivateRegion.d.ts +3 -0
  597. package/dist/lib/assets/icons/components/Profile.d.ts +3 -0
  598. package/dist/lib/assets/icons/components/Quota.d.ts +3 -0
  599. package/dist/lib/assets/icons/components/ReceiptLong.d.ts +3 -0
  600. package/dist/lib/assets/icons/components/Refresh.d.ts +3 -0
  601. package/dist/lib/assets/icons/components/ReservedIp.d.ts +3 -0
  602. package/dist/lib/assets/icons/components/ScatterPlot.d.ts +3 -0
  603. package/dist/lib/assets/icons/components/Search.d.ts +3 -0
  604. package/dist/lib/assets/icons/components/Server.d.ts +3 -0
  605. package/dist/lib/assets/icons/components/SshKey.d.ts +3 -0
  606. package/dist/lib/assets/icons/components/Start.d.ts +3 -0
  607. package/dist/lib/assets/icons/components/TabNew.d.ts +3 -0
  608. package/dist/lib/assets/icons/components/TeamMembers.d.ts +3 -0
  609. package/dist/lib/assets/icons/components/Teams.d.ts +3 -0
  610. package/dist/lib/assets/icons/components/Upload.d.ts +3 -0
  611. package/dist/lib/assets/icons/components/Volume.d.ts +3 -0
  612. package/dist/lib/assets/icons/components/Warning.d.ts +3 -0
  613. package/dist/lib/assets/icons/components/WarningTriangle.d.ts +3 -0
  614. package/dist/lib/assets/icons/components/Webhook.d.ts +3 -0
  615. package/dist/lib/assets/icons/components/X.d.ts +3 -0
  616. package/dist/lib/assets/icons/components/index.d.ts +110 -0
  617. package/dist/lib/assets/icons/components/types.d.ts +5 -0
  618. package/dist/lib/assets/icons/index.d.ts +1 -0
  619. package/dist/lib/components/Alert/Alert.d.ts +21 -0
  620. package/dist/lib/components/Alert/Alert.types.d.ts +43 -0
  621. package/dist/lib/components/Alert/Alert.variants.d.ts +16 -0
  622. package/dist/lib/components/AlertDialog/AlertDialog.d.ts +32 -0
  623. package/dist/lib/components/AlertDialog/AlertDialog.types.d.ts +60 -0
  624. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -0
  625. package/dist/lib/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +12 -0
  626. package/dist/lib/components/AlertDialog/components/index.d.ts +1 -0
  627. package/dist/lib/components/AlertDialog/hooks/index.d.ts +1 -0
  628. package/dist/lib/components/AlertDialog/hooks/useAlertDialog.d.ts +7 -0
  629. package/dist/lib/components/Autocomplete/Autocomplete.d.ts +31 -0
  630. package/dist/lib/components/Autocomplete/Autocomplete.types.d.ts +52 -0
  631. package/dist/lib/components/Autocomplete/Autocomplete.variants.d.ts +2 -0
  632. package/dist/lib/components/Autocomplete/components/List/List.d.ts +3 -0
  633. package/dist/lib/components/Autocomplete/components/List/List.types.d.ts +13 -0
  634. package/dist/lib/components/Autocomplete/components/List/List.variants.d.ts +4 -0
  635. package/dist/lib/components/Autocomplete/components/index.d.ts +1 -0
  636. package/dist/lib/components/Autocomplete/hooks/index.d.ts +2 -0
  637. package/dist/lib/components/Autocomplete/hooks/useAutocomplete.d.ts +17 -0
  638. package/dist/lib/components/Autocomplete/hooks/useNavigationList.d.ts +10 -0
  639. package/dist/lib/components/Badge/Badge.d.ts +34 -0
  640. package/dist/lib/components/Badge/Badge.types.d.ts +36 -0
  641. package/dist/lib/components/Badge/Badge.variants.d.ts +8 -0
  642. package/dist/lib/components/Breadcrumb/Breadcrumb.d.ts +38 -0
  643. package/dist/lib/components/Breadcrumb/Breadcrumb.types.d.ts +69 -0
  644. package/dist/lib/components/Breadcrumb/Breadcrumb.variants.d.ts +2 -0
  645. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.d.ts +3 -0
  646. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.types.d.ts +7 -0
  647. package/dist/lib/components/Breadcrumb/components/BackButton/BackButton.variants.d.ts +1 -0
  648. package/dist/lib/components/Breadcrumb/components/Item/Item.d.ts +3 -0
  649. package/dist/lib/components/Breadcrumb/components/Item/Item.types.d.ts +8 -0
  650. package/dist/lib/components/Breadcrumb/components/Item/Item.variants.d.ts +6 -0
  651. package/dist/lib/components/Breadcrumb/components/index.d.ts +2 -0
  652. package/dist/lib/components/Breadcrumb/hooks/useBreadcrumb.d.ts +3 -0
  653. package/dist/lib/components/Button/Button.d.ts +33 -0
  654. package/dist/lib/components/Button/Button.types.d.ts +26 -0
  655. package/dist/lib/components/Button/Button.variants.d.ts +8 -0
  656. package/dist/lib/components/ButtonGroup/ButtonGroup.d.ts +34 -0
  657. package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +100 -0
  658. package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +14 -0
  659. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.d.ts +3 -0
  660. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +23 -0
  661. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +27 -0
  662. package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/index.d.ts +2 -0
  663. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.d.ts +3 -0
  664. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +8 -0
  665. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/index.d.ts +2 -0
  666. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.d.ts +3 -0
  667. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +6 -0
  668. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/index.d.ts +2 -0
  669. package/dist/lib/components/ButtonGroup/components/index.d.ts +3 -0
  670. package/dist/lib/components/ButtonGroup/hooks/index.d.ts +2 -0
  671. package/dist/lib/components/ButtonGroup/hooks/useButtonGroup.d.ts +3 -0
  672. package/dist/lib/components/ButtonGroup/hooks/useButtonGroup.types.d.ts +18 -0
  673. package/dist/lib/components/Card/Card.d.ts +28 -0
  674. package/dist/lib/components/Card/Card.types.d.ts +26 -0
  675. package/dist/lib/components/Card/Card.variants.d.ts +8 -0
  676. package/dist/lib/components/Checkbox/Checkbox.d.ts +26 -0
  677. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +40 -0
  678. package/dist/lib/components/Checkbox/Checkbox.variants.d.ts +5 -0
  679. package/dist/lib/components/Command/Command.d.ts +27 -0
  680. package/dist/lib/components/Command/Command.types.d.ts +33 -0
  681. package/dist/lib/components/Command/Command.variants.d.ts +3 -0
  682. package/dist/lib/components/Command/components/Command.d.ts +18 -0
  683. package/dist/lib/components/Command/components/CommandEmpty.d.ts +8 -0
  684. package/dist/lib/components/Command/components/CommandGroup.d.ts +12 -0
  685. package/dist/lib/components/Command/components/CommandInput.d.ts +9 -0
  686. package/dist/lib/components/Command/components/CommandItem.d.ts +14 -0
  687. package/dist/lib/components/Command/components/CommandList.d.ts +10 -0
  688. package/dist/lib/components/Command/components/CommandSeparator.d.ts +8 -0
  689. package/dist/lib/components/Command/components/CommandShortcut.d.ts +6 -0
  690. package/dist/lib/components/Command/components/DialogContent.d.ts +2 -0
  691. package/dist/lib/components/Command/components/DialogOverlay.d.ts +2 -0
  692. package/dist/lib/components/Command/components/index.d.ts +9 -0
  693. package/dist/lib/components/Command/contexts/Command.context.d.ts +2 -0
  694. package/dist/lib/components/Command/contexts/Command.provider.d.ts +2 -0
  695. package/dist/lib/components/Command/contexts/Command.types.d.ts +5 -0
  696. package/dist/lib/components/Command/contexts/index.d.ts +3 -0
  697. package/dist/lib/components/Counter/Counter.d.ts +36 -0
  698. package/dist/lib/components/Counter/Counter.types.d.ts +57 -0
  699. package/dist/lib/components/Counter/Counter.variants.d.ts +7 -0
  700. package/dist/lib/components/DateRangePicker/DateRangePicker.d.ts +31 -0
  701. package/dist/lib/components/DateRangePicker/DateRangePicker.types.d.ts +127 -0
  702. package/dist/lib/components/DateRangePicker/DateRangePicker.variants.d.ts +2 -0
  703. package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.d.ts +3 -0
  704. package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.types.d.ts +79 -0
  705. package/dist/lib/components/DateRangePicker/components/CalendarPanel/CalendarPanel.variants.d.ts +8 -0
  706. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.d.ts +3 -0
  707. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.types.d.ts +3 -0
  708. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.d.ts +3 -0
  709. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.types.d.ts +17 -0
  710. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.d.ts +3 -0
  711. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.types.d.ts +34 -0
  712. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.d.ts +3 -0
  713. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.types.d.ts +12 -0
  714. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.d.ts +3 -0
  715. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.types.d.ts +26 -0
  716. package/dist/lib/components/DateRangePicker/components/CalendarPanel/components/index.d.ts +5 -0
  717. package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.d.ts +22 -0
  718. package/dist/lib/components/DateRangePicker/components/CalendarPanel/constants/index.d.ts +8 -0
  719. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/index.d.ts +4 -0
  720. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.d.ts +24 -0
  721. package/dist/lib/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.d.ts +22 -0
  722. package/dist/lib/components/DateRangePicker/components/CalendarPanel/utils/index.d.ts +16 -0
  723. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.d.ts +3 -0
  724. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.types.d.ts +37 -0
  725. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.variants.d.ts +5 -0
  726. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.d.ts +3 -0
  727. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +23 -0
  728. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.d.ts +3 -0
  729. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +23 -0
  730. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/index.d.ts +2 -0
  731. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/index.d.ts +1 -0
  732. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +29 -0
  733. package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.d.ts +3 -0
  734. package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.types.d.ts +31 -0
  735. package/dist/lib/components/DateRangePicker/components/PresetPanel/PresetPanel.variants.d.ts +2 -0
  736. package/dist/lib/components/DateRangePicker/components/index.d.ts +3 -0
  737. package/dist/lib/components/DateRangePicker/constants/index.d.ts +1 -0
  738. package/dist/lib/components/DateRangePicker/constants/presets.d.ts +6 -0
  739. package/dist/lib/components/DateRangePicker/contexts/date-range-picker.context.d.ts +81 -0
  740. package/dist/lib/components/DateRangePicker/contexts/date-range-picker.hook.d.ts +1 -0
  741. package/dist/lib/components/DateRangePicker/contexts/date-range-picker.provider.d.ts +24 -0
  742. package/dist/lib/components/DateRangePicker/contexts/index.d.ts +4 -0
  743. package/dist/lib/components/DateRangePicker/utils/disabled-dates.d.ts +26 -0
  744. package/dist/lib/components/DateRangePicker/utils/index.d.ts +6 -0
  745. package/dist/lib/components/DateRangePicker/utils/presets.d.ts +5 -0
  746. package/dist/lib/components/DateRangePicker/utils/validation.d.ts +43 -0
  747. package/dist/lib/components/Datepicker/DatePicker.d.ts +26 -0
  748. package/dist/lib/components/Datepicker/DatePicker.types.d.ts +31 -0
  749. package/dist/lib/components/Datepicker/DatePicker.variants.d.ts +1 -0
  750. package/dist/lib/components/Divider/Divider.d.ts +17 -0
  751. package/dist/lib/components/Divider/Divider.variants.d.ts +3 -0
  752. package/dist/lib/components/Drawer/Drawer.d.ts +36 -0
  753. package/dist/lib/components/Drawer/Drawer.types.d.ts +67 -0
  754. package/dist/lib/components/Drawer/Drawer.variants.d.ts +8 -0
  755. package/dist/lib/components/Drawer/components/Body/Body.d.ts +3 -0
  756. package/dist/lib/components/Drawer/components/Body/Body.types.d.ts +7 -0
  757. package/dist/lib/components/Drawer/components/Body/index.d.ts +2 -0
  758. package/dist/lib/components/Drawer/components/Footer/Footer.d.ts +3 -0
  759. package/dist/lib/components/Drawer/components/Footer/Footer.types.d.ts +7 -0
  760. package/dist/lib/components/Drawer/components/Footer/index.d.ts +2 -0
  761. package/dist/lib/components/Drawer/components/Header/Header.d.ts +3 -0
  762. package/dist/lib/components/Drawer/components/Header/Header.types.d.ts +9 -0
  763. package/dist/lib/components/Drawer/components/Header/index.d.ts +2 -0
  764. package/dist/lib/components/Drawer/components/index.d.ts +3 -0
  765. package/dist/lib/components/Drawer/constants/index.d.ts +6 -0
  766. package/dist/lib/components/Drawer/contexts/Drawer.context.d.ts +7 -0
  767. package/dist/lib/components/Drawer/contexts/index.d.ts +2 -0
  768. package/dist/lib/components/Drawer/hooks/index.d.ts +2 -0
  769. package/dist/lib/components/Drawer/hooks/useDrawer.d.ts +2 -0
  770. package/dist/lib/components/Drawer/hooks/useDrawer.types.d.ts +30 -0
  771. package/dist/lib/components/DropdownButton/DropdownButton.d.ts +20 -0
  772. package/dist/lib/components/DropdownButton/DropdownButton.types.d.ts +36 -0
  773. package/dist/lib/components/Filter/Filter.d.ts +26 -0
  774. package/dist/lib/components/Filter/Filter.types.d.ts +65 -0
  775. package/dist/lib/components/Filter/Filter.variants.d.ts +3 -0
  776. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.d.ts +3 -0
  777. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +14 -0
  778. package/dist/lib/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +13 -0
  779. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.d.ts +3 -0
  780. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.d.ts +12 -0
  781. package/dist/lib/components/Filter/components/DateFilterDropdown/DateFilterDropdown.types.d.ts +7 -0
  782. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.d.ts +3 -0
  783. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.d.ts +13 -0
  784. package/dist/lib/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.types.d.ts +25 -0
  785. package/dist/lib/components/Filter/components/ResetButton/ResetButton.d.ts +3 -0
  786. package/dist/lib/components/Filter/components/ResetButton/ResetButton.types.d.ts +5 -0
  787. package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +3 -0
  788. package/dist/lib/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +9 -0
  789. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
  790. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
  791. package/dist/lib/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
  792. package/dist/lib/components/Filter/components/index.d.ts +12 -0
  793. package/dist/lib/components/Filter/contexts/filter.context.d.ts +4 -0
  794. package/dist/lib/components/Filter/contexts/filter.hook.d.ts +2 -0
  795. package/dist/lib/components/Filter/contexts/filter.provider.d.ts +5 -0
  796. package/dist/lib/components/Filter/contexts/index.d.ts +3 -0
  797. package/dist/lib/components/Filter/events/index.d.ts +6 -0
  798. package/dist/lib/components/Filter/utils/index.d.ts +1 -0
  799. package/dist/lib/components/ImageUpload/ImageUpload.d.ts +25 -0
  800. package/dist/lib/components/ImageUpload/ImageUpload.types.d.ts +71 -0
  801. package/dist/lib/components/ImageUpload/ImageUpload.variants.d.ts +13 -0
  802. package/dist/lib/components/Input/Input.d.ts +35 -0
  803. package/dist/lib/components/Input/Input.types.d.ts +38 -0
  804. package/dist/lib/components/Input/Input.variants.d.ts +3 -0
  805. package/dist/lib/components/LineChart/LineChart.d.ts +17 -0
  806. package/dist/lib/components/LineChart/LineChart.types.d.ts +58 -0
  807. package/dist/lib/components/Loading/Loading.d.ts +24 -0
  808. package/dist/lib/components/Loading/Loading.types.d.ts +19 -0
  809. package/dist/lib/components/Loading/Loading.variants.d.ts +1 -0
  810. package/dist/lib/components/Modal/Modal.d.ts +34 -0
  811. package/dist/lib/components/Modal/Modal.types.d.ts +50 -0
  812. package/dist/lib/components/Modal/components/Body/Body.d.ts +3 -0
  813. package/dist/lib/components/Modal/components/Body/Body.types.d.ts +5 -0
  814. package/dist/lib/components/Modal/components/Footer/Footer.d.ts +3 -0
  815. package/dist/lib/components/Modal/components/Footer/Footer.types.d.ts +5 -0
  816. package/dist/lib/components/Modal/components/Header/Header.d.ts +3 -0
  817. package/dist/lib/components/Modal/components/Header/Header.types.d.ts +5 -0
  818. package/dist/lib/components/Modal/components/Wrapper/Wrapper.d.ts +3 -0
  819. package/dist/lib/components/Modal/components/Wrapper/Wrapper.types.d.ts +14 -0
  820. package/dist/lib/components/Modal/components/Wrapper/Wrapper.variants.d.ts +2 -0
  821. package/dist/lib/components/Modal/components/index.d.ts +4 -0
  822. package/dist/lib/components/Modal/contexts/Modal.context.d.ts +2 -0
  823. package/dist/lib/components/Modal/contexts/Modal.provider.d.ts +4 -0
  824. package/dist/lib/components/Modal/contexts/Modal.types.d.ts +9 -0
  825. package/dist/lib/components/Modal/contexts/index.d.ts +1 -0
  826. package/dist/lib/components/Modal/hooks/index.d.ts +1 -0
  827. package/dist/lib/components/Modal/hooks/useModal.d.ts +9 -0
  828. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +23 -0
  829. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +78 -0
  830. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.variants.d.ts +3 -0
  831. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.d.ts +3 -0
  832. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.types.d.ts +8 -0
  833. package/dist/lib/components/MultiSelectDropdown/components/Item/Item.variants.d.ts +3 -0
  834. package/dist/lib/components/MultiSelectDropdown/components/List/List.d.ts +3 -0
  835. package/dist/lib/components/MultiSelectDropdown/components/List/List.types.d.ts +4 -0
  836. package/dist/lib/components/MultiSelectDropdown/components/List/List.variants.d.ts +1 -0
  837. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.d.ts +3 -0
  838. package/dist/lib/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +7 -0
  839. package/dist/lib/components/MultiSelectDropdown/components/index.d.ts +3 -0
  840. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.d.ts +2 -0
  841. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.d.ts +1 -0
  842. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.d.ts +3 -0
  843. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +31 -0
  844. package/dist/lib/components/MultiSelectDropdown/contexts/index.d.ts +2 -0
  845. package/dist/lib/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.d.ts +4 -0
  846. package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.d.ts +21 -0
  847. package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.types.d.ts +51 -0
  848. package/dist/lib/components/PhoneNumberInput/PhoneNumberInput.variants.d.ts +4 -0
  849. package/dist/lib/components/PhoneNumberInput/components/FlagContent/FlagContent.d.ts +2 -0
  850. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.d.ts +3 -0
  851. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.types.d.ts +5 -0
  852. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.d.ts +3 -0
  853. package/dist/lib/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.types.d.ts +8 -0
  854. package/dist/lib/components/PhoneNumberInput/components/TruncateText/TruncateText.d.ts +3 -0
  855. package/dist/lib/components/PhoneNumberInput/components/TruncateText/TruncateText.types.d.ts +4 -0
  856. package/dist/lib/components/PhoneNumberInput/components/Wrapper.d.ts +3 -0
  857. package/dist/lib/components/PhoneNumberInput/components/index.d.ts +2 -0
  858. package/dist/lib/components/PhoneNumberInput/contexts/index.d.ts +3 -0
  859. package/dist/lib/components/PhoneNumberInput/contexts/phone-number.context.d.ts +20 -0
  860. package/dist/lib/components/PhoneNumberInput/contexts/phone-number.hook.d.ts +2 -0
  861. package/dist/lib/components/PhoneNumberInput/contexts/phone-number.provider.d.ts +6 -0
  862. package/dist/lib/components/PhoneNumberInput/utils/index.d.ts +2 -0
  863. package/dist/lib/components/PieChart/PieChart.d.ts +20 -0
  864. package/dist/lib/components/PieChart/PieChart.types.d.ts +90 -0
  865. package/dist/lib/components/ProgressBar/ProgressBar.d.ts +3 -0
  866. package/dist/lib/components/ProgressBar/ProgressBar.types.d.ts +22 -0
  867. package/dist/lib/components/ProgressBar/ProgressBar.variants.d.ts +4 -0
  868. package/dist/lib/components/Radio/Radio.d.ts +22 -0
  869. package/dist/lib/components/Radio/Radio.types.d.ts +46 -0
  870. package/dist/lib/components/Radio/Radio.variants.d.ts +8 -0
  871. package/dist/lib/components/RadioCard/RadioCard.d.ts +22 -0
  872. package/dist/lib/components/RadioCard/RadioCard.types.d.ts +25 -0
  873. package/dist/lib/components/RadioCard/RadioCard.variants.d.ts +1 -0
  874. package/dist/lib/components/RadioCardGroup/RadioCardGroup.d.ts +23 -0
  875. package/dist/lib/components/RadioCardGroup/RadioCardGroup.types.d.ts +32 -0
  876. package/dist/lib/components/RadioCardGroup/RadioCardGroup.variants.d.ts +3 -0
  877. package/dist/lib/components/RadioGroup/RadioGroup.d.ts +34 -0
  878. package/dist/lib/components/RadioGroup/RadioGroup.types.d.ts +46 -0
  879. package/dist/lib/components/RadioGroup/RadioGroup.variants.d.ts +3 -0
  880. package/dist/lib/components/Range/Range.d.ts +21 -0
  881. package/dist/lib/components/Range/Range.types.d.ts +44 -0
  882. package/dist/lib/components/Range/Range.variants.d.ts +8 -0
  883. package/dist/lib/components/Select/Select.d.ts +37 -0
  884. package/dist/lib/components/Select/Select.types.d.ts +140 -0
  885. package/dist/lib/components/Select/Select.variants.d.ts +6 -0
  886. package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.d.ts +3 -0
  887. package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +4 -0
  888. package/dist/lib/components/Select/components/AdditionalOptions/AdditionalOptions.variants.d.ts +1 -0
  889. package/dist/lib/components/Select/components/EmptyList.d.ts +2 -0
  890. package/dist/lib/components/Select/components/List/List.d.ts +3 -0
  891. package/dist/lib/components/Select/components/List/List.types.d.ts +16 -0
  892. package/dist/lib/components/Select/components/List/List.variants.d.ts +2 -0
  893. package/dist/lib/components/Select/components/ListItem/ListItem.d.ts +3 -0
  894. package/dist/lib/components/Select/components/ListItem/ListItem.types.d.ts +9 -0
  895. package/dist/lib/components/Select/components/ListItem/ListItem.variants.d.ts +1 -0
  896. package/dist/lib/components/Select/components/Wrapper.d.ts +5 -0
  897. package/dist/lib/components/Select/components/index.d.ts +4 -0
  898. package/dist/lib/components/Select/constants/index.d.ts +2 -0
  899. package/dist/lib/components/Select/constants/list.d.ts +1 -0
  900. package/dist/lib/components/Select/constants/pagination.d.ts +1 -0
  901. package/dist/lib/components/Select/contexts/index.d.ts +2 -0
  902. package/dist/lib/components/Select/contexts/select.context.d.ts +21 -0
  903. package/dist/lib/components/Select/contexts/select.hook.d.ts +2 -0
  904. package/dist/lib/components/Select/contexts/select.provider.d.ts +10 -0
  905. package/dist/lib/components/Select/hooks/useNavigationList.d.ts +11 -0
  906. package/dist/lib/components/Select/hooks/useSelect.d.ts +15 -0
  907. package/dist/lib/components/Sidebar/Sidebar.d.ts +28 -0
  908. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +129 -0
  909. package/dist/lib/components/Sidebar/Sidebar.variants.d.ts +4 -0
  910. package/dist/lib/components/Sidebar/components/Footer/Footer.d.ts +4 -0
  911. package/dist/lib/components/Sidebar/components/Footer/Footer.types.d.ts +8 -0
  912. package/dist/lib/components/Sidebar/components/Footer/Footer.variants.d.ts +1 -0
  913. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.d.ts +4 -0
  914. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +7 -0
  915. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.d.ts +1 -0
  916. package/dist/lib/components/Sidebar/components/Label/Label.d.ts +4 -0
  917. package/dist/lib/components/Sidebar/components/Label/Label.types.d.ts +9 -0
  918. package/dist/lib/components/Sidebar/components/Logo/Logo.d.ts +4 -0
  919. package/dist/lib/components/Sidebar/components/Logo/Logo.types.d.ts +8 -0
  920. package/dist/lib/components/Sidebar/components/Logo/Logo.variants.d.ts +1 -0
  921. package/dist/lib/components/Sidebar/components/Navigation/Navigation.d.ts +4 -0
  922. package/dist/lib/components/Sidebar/components/Navigation/Navigation.types.d.ts +18 -0
  923. package/dist/lib/components/Sidebar/components/Navigation/Navigation.variants.d.ts +1 -0
  924. package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +4 -0
  925. package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +10 -0
  926. package/dist/lib/components/Sidebar/components/NavigationGroup/NavigationGroup.variants.d.ts +1 -0
  927. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.context.d.ts +18 -0
  928. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +4 -0
  929. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +50 -0
  930. package/dist/lib/components/Sidebar/components/NavigationOption/NavigationOption.variants.d.ts +3 -0
  931. package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +4 -0
  932. package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +7 -0
  933. package/dist/lib/components/Sidebar/components/NavigationSeparator/NavigationSeparator.variants.d.ts +1 -0
  934. package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +4 -0
  935. package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +10 -0
  936. package/dist/lib/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.d.ts +1 -0
  937. package/dist/lib/components/Sidebar/components/Wrapper/Wrapper.d.ts +4 -0
  938. package/dist/lib/components/Sidebar/components/index.d.ts +19 -0
  939. package/dist/lib/components/Sidebar/contexts/SidebarContext.d.ts +16 -0
  940. package/dist/lib/components/Sidebar/contexts/index.d.ts +1 -0
  941. package/dist/lib/components/Sidebar/hooks/index.d.ts +1 -0
  942. package/dist/lib/components/Sidebar/hooks/useSidebarMode.d.ts +5 -0
  943. package/dist/lib/components/Slider/Slider.d.ts +21 -0
  944. package/dist/lib/components/Slider/Slider.types.d.ts +44 -0
  945. package/dist/lib/components/Slider/Slider.variants.d.ts +7 -0
  946. package/dist/lib/components/Spinner/Spinner.d.ts +4 -0
  947. package/dist/lib/components/Spinner/Spinner.types.d.ts +15 -0
  948. package/dist/lib/components/Spinner/Spinner.variants.d.ts +6 -0
  949. package/dist/lib/components/Stepper/Stepper.d.ts +51 -0
  950. package/dist/lib/components/Stepper/Stepper.types.d.ts +75 -0
  951. package/dist/lib/components/Stepper/Stepper.variants.d.ts +40 -0
  952. package/dist/lib/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.d.ts +2 -0
  953. package/dist/lib/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.types.d.ts +1 -0
  954. package/dist/lib/components/Stepper/components/StepConnector/StepConnector.d.ts +2 -0
  955. package/dist/lib/components/Stepper/components/StepConnector/StepConnector.types.d.ts +13 -0
  956. package/dist/lib/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.d.ts +2 -0
  957. package/dist/lib/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.types.d.ts +13 -0
  958. package/dist/lib/components/Stepper/components/StepItem/StepItem.d.ts +2 -0
  959. package/dist/lib/components/Stepper/components/StepItem/StepItem.types.d.ts +32 -0
  960. package/dist/lib/components/Stepper/components/VerticalStepItem/VerticalStepItem.d.ts +2 -0
  961. package/dist/lib/components/Stepper/components/VerticalStepItem/VerticalStepItem.types.d.ts +1 -0
  962. package/dist/lib/components/Stepper/constants/index.d.ts +3 -0
  963. package/dist/lib/components/Stepper/hooks/index.d.ts +1 -0
  964. package/dist/lib/components/Stepper/hooks/useStepItemLogic.d.ts +2 -0
  965. package/dist/lib/components/Stepper/hooks/useStepItemLogic.types.d.ts +16 -0
  966. package/dist/lib/components/Stepper/utils/index.d.ts +3 -0
  967. package/dist/lib/components/Switch/Switch.d.ts +29 -0
  968. package/dist/lib/components/Switch/Switch.types.d.ts +45 -0
  969. package/dist/lib/components/Switch/Switch.variants.d.ts +2 -0
  970. package/dist/lib/components/Table/Table.d.ts +38 -0
  971. package/dist/lib/components/Table/Table.types.d.ts +59 -0
  972. package/dist/lib/components/Table/Table.variants.d.ts +6 -0
  973. package/dist/lib/components/Table/components/Body.d.ts +3 -0
  974. package/dist/lib/components/Table/components/Filter.d.ts +3 -0
  975. package/dist/lib/components/Table/components/Head.d.ts +3 -0
  976. package/dist/lib/components/Table/components/Row.d.ts +3 -0
  977. package/dist/lib/components/Table/components/index.d.ts +4 -0
  978. package/dist/lib/components/Tabs/Tabs.d.ts +37 -0
  979. package/dist/lib/components/Tabs/Tabs.types.d.ts +44 -0
  980. package/dist/lib/components/Tabs/Tabs.variants.d.ts +12 -0
  981. package/dist/lib/components/Tabs/components/Content.d.ts +4 -0
  982. package/dist/lib/components/Tabs/components/List.d.ts +4 -0
  983. package/dist/lib/components/Tabs/components/Trigger.d.ts +4 -0
  984. package/dist/lib/components/Tabs/components/index.d.ts +3 -0
  985. package/dist/lib/components/Tag/Tag.d.ts +16 -0
  986. package/dist/lib/components/Tag/Tag.types.d.ts +35 -0
  987. package/dist/lib/components/Tag/Tag.variants.d.ts +3 -0
  988. package/dist/lib/components/TagSelect/TagSelect.d.ts +23 -0
  989. package/dist/lib/components/TagSelect/TagSelect.types.d.ts +41 -0
  990. package/dist/lib/components/TagSelect/TagSelect.variants.d.ts +3 -0
  991. package/dist/lib/components/TagSelect/components/Item/Item.d.ts +3 -0
  992. package/dist/lib/components/TagSelect/components/Item/Item.types.d.ts +6 -0
  993. package/dist/lib/components/TagSelect/components/Item/Item.variants.d.ts +3 -0
  994. package/dist/lib/components/TagSelect/components/List/List.d.ts +3 -0
  995. package/dist/lib/components/TagSelect/components/List/List.types.d.ts +4 -0
  996. package/dist/lib/components/TagSelect/components/List/List.variants.d.ts +1 -0
  997. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.d.ts +3 -0
  998. package/dist/lib/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +7 -0
  999. package/dist/lib/components/TagSelect/components/index.d.ts +3 -0
  1000. package/dist/lib/components/TagSelect/contexts/TagSelect.context.d.ts +2 -0
  1001. package/dist/lib/components/TagSelect/contexts/TagSelect.hook.d.ts +1 -0
  1002. package/dist/lib/components/TagSelect/contexts/TagSelect.provider.d.ts +3 -0
  1003. package/dist/lib/components/TagSelect/contexts/TagSelect.types.d.ts +15 -0
  1004. package/dist/lib/components/TagSelect/contexts/index.d.ts +2 -0
  1005. package/dist/lib/components/TagSelect/hooks/useTagSelect.d.ts +4 -0
  1006. package/dist/lib/components/TextArea/TextArea.d.ts +24 -0
  1007. package/dist/lib/components/TextArea/TextArea.types.d.ts +30 -0
  1008. package/dist/lib/components/TextArea/TextArea.variants.d.ts +1 -0
  1009. package/dist/lib/components/TimePicker/TimePicker.d.ts +21 -0
  1010. package/dist/lib/components/TimePicker/TimePicker.types.d.ts +55 -0
  1011. package/dist/lib/components/TimePicker/TimePicker.variants.d.ts +4 -0
  1012. package/dist/lib/components/TimePicker/components/HoursList/HoursList.d.ts +4 -0
  1013. package/dist/lib/components/TimePicker/components/HoursList/HoursList.types.d.ts +8 -0
  1014. package/dist/lib/components/TimePicker/components/MeridianList/MeridianList.d.ts +4 -0
  1015. package/dist/lib/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +7 -0
  1016. package/dist/lib/components/TimePicker/components/MinutesList/MinutesList.d.ts +4 -0
  1017. package/dist/lib/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +9 -0
  1018. package/dist/lib/components/TimePicker/components/Wrapper/Wrapper.d.ts +3 -0
  1019. package/dist/lib/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +6 -0
  1020. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.d.ts +3 -0
  1021. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +9 -0
  1022. package/dist/lib/components/TimePicker/components/index.d.ts +1 -0
  1023. package/dist/lib/components/TimePicker/contexts/index.d.ts +3 -0
  1024. package/dist/lib/components/TimePicker/contexts/time-picker.context.d.ts +15 -0
  1025. package/dist/lib/components/TimePicker/contexts/time-picker.hook.d.ts +2 -0
  1026. package/dist/lib/components/TimePicker/contexts/time-picker.provider.d.ts +7 -0
  1027. package/dist/lib/components/TimePicker/utils/index.d.ts +8 -0
  1028. package/dist/lib/components/Toast/Toast.d.ts +25 -0
  1029. package/dist/lib/components/Toast/Toast.types.d.ts +48 -0
  1030. package/dist/lib/components/Toast/Toast.variants.d.ts +5 -0
  1031. package/dist/lib/components/Tooltip/Tooltip.d.ts +22 -0
  1032. package/dist/lib/components/Tooltip/Tooltip.types.d.ts +41 -0
  1033. package/dist/lib/components/Typography/Typography.d.ts +18 -0
  1034. package/dist/lib/components/Typography/Typography.types.d.ts +31 -0
  1035. package/dist/lib/components/Typography/Typography.variants.d.ts +3 -0
  1036. package/dist/lib/components/VirtualizedTable/VirtualizedTable.d.ts +17 -0
  1037. package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +230 -0
  1038. package/dist/lib/components/VirtualizedTable/VirtualizedTable.variants.d.ts +1 -0
  1039. package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +6 -0
  1040. package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +6 -0
  1041. package/dist/lib/components/VirtualizedTable/assets/index.d.ts +3 -0
  1042. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.d.ts +3 -0
  1043. package/dist/lib/components/VirtualizedTable/components/Actions/Actions.types.d.ts +24 -0
  1044. package/dist/lib/components/VirtualizedTable/components/Body/Body.d.ts +3 -0
  1045. package/dist/lib/components/VirtualizedTable/components/Body/Body.types.d.ts +7 -0
  1046. package/dist/lib/components/VirtualizedTable/components/DotPaginate/DotPaginate.d.ts +1 -0
  1047. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.d.ts +3 -0
  1048. package/dist/lib/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.types.d.ts +3 -0
  1049. package/dist/lib/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.d.ts +3 -0
  1050. package/dist/lib/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.types.d.ts +10 -0
  1051. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.d.ts +3 -0
  1052. package/dist/lib/components/VirtualizedTable/components/Filter/Filter.types.d.ts +17 -0
  1053. package/dist/lib/components/VirtualizedTable/components/FormPaginate/FormPaginate.d.ts +1 -0
  1054. package/dist/lib/components/VirtualizedTable/components/Header/Header.d.ts +3 -0
  1055. package/dist/lib/components/VirtualizedTable/components/Header/Header.types.d.ts +5 -0
  1056. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.d.ts +3 -0
  1057. package/dist/lib/components/VirtualizedTable/components/Pagination/Pagination.types.d.ts +9 -0
  1058. package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.d.ts +2 -0
  1059. package/dist/lib/components/VirtualizedTable/components/Skeleton/Skeleton.types.d.ts +5 -0
  1060. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +2 -0
  1061. package/dist/lib/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +8 -0
  1062. package/dist/lib/components/VirtualizedTable/components/WrapperBody/WrapperBody.d.ts +3 -0
  1063. package/dist/lib/components/VirtualizedTable/components/WrapperBody/WrapperBody.types.d.ts +6 -0
  1064. package/dist/lib/components/VirtualizedTable/components/index.d.ts +7 -0
  1065. package/dist/lib/components/VirtualizedTable/constants/index.d.ts +1 -0
  1066. package/dist/lib/components/VirtualizedTable/constants/pagination.d.ts +2 -0
  1067. package/dist/lib/components/VirtualizedTable/contexts/index.d.ts +3 -0
  1068. package/dist/lib/components/VirtualizedTable/contexts/table.context.d.ts +44 -0
  1069. package/dist/lib/components/VirtualizedTable/contexts/table.hook.d.ts +3 -0
  1070. package/dist/lib/components/VirtualizedTable/contexts/table.provider.d.ts +3 -0
  1071. package/dist/lib/components/VirtualizedTable/contexts/table.types.d.ts +29 -0
  1072. package/dist/lib/components/VirtualizedTable/events/index.d.ts +14 -0
  1073. package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
  1074. package/dist/lib/components/VirtualizedTable/utils/pagination.d.ts +1 -0
  1075. package/dist/lib/components/index.d.ts +56 -0
  1076. package/dist/lib/contexts/index.d.ts +3 -0
  1077. package/dist/lib/contexts/theme.context.d.ts +6 -0
  1078. package/dist/lib/contexts/theme.hook.d.ts +7 -0
  1079. package/dist/lib/contexts/theme.provider.d.ts +38 -0
  1080. package/dist/lib/domain/theme.d.ts +1 -0
  1081. package/dist/lib/hooks/index.d.ts +2 -0
  1082. package/dist/lib/hooks/useMediaQuery.d.ts +1 -0
  1083. package/dist/lib/hooks/useToggle.d.ts +1 -0
  1084. package/dist/lib/icons.d.ts +2 -0
  1085. package/dist/lib/index.d.ts +4 -0
  1086. package/dist/lib/styles.d.ts +0 -0
  1087. package/dist/lib/utils/index.d.ts +5 -0
  1088. package/dist/libphonenumber-hGupNnJu.js +81977 -0
  1089. package/dist/package.json +86 -52
  1090. package/dist/phone-number.provider-CJJOFYk-.js +6689 -0
  1091. package/dist/prop-types-CaJpPVsa.js +547 -0
  1092. package/dist/react-CvUtBTMg.js +4683 -0
  1093. package/dist/rolldown-runtime-Ck3dxwZt.js +38 -0
  1094. package/dist/style.css +1 -0
  1095. package/dist/styles.css +1 -1
  1096. package/dist/{index-Dx2grAuN.js → table.provider-9uUt5a-s.js} +806 -694
  1097. package/dist/theme.provider-Dw4O3ocC.js +75 -0
  1098. package/dist/ui/civo-theme.css +194 -168
  1099. package/dist/ui/theme.css +27 -0
  1100. package/dist/useBreadcrumb-DYfZL_2p.js +1562 -0
  1101. package/dist/utils/index.js +5 -2729
  1102. package/dist/utils-B6A9pnrH.js +2022 -0
  1103. package/dist/utils-Cx-WzRZF.js +1734 -0
  1104. package/dist/x-CESTrenk.js +63 -0
  1105. package/dist/x-a_LpoXzG.js +11 -0
  1106. package/package.json +86 -52
  1107. package/dist/Combination-VYaRRJBZ.js +0 -477
  1108. package/dist/DatePicker.css +0 -1
  1109. package/dist/Modal-B8jrP02v.js +0 -98
  1110. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  1111. package/dist/chevron-down-MZvQoT2F.js +0 -11
  1112. package/dist/chevron-right-VYBOBhRt.js +0 -19
  1113. package/dist/components/Dropdown/Dropdown.js +0 -42
  1114. package/dist/components/Dropdown/Dropdown.variants.js +0 -69
  1115. package/dist/components/Dropdown/components/EmptyList.js +0 -5
  1116. package/dist/components/Dropdown/components/List/List.js +0 -79
  1117. package/dist/components/Dropdown/components/List/List.variants.js +0 -28
  1118. package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
  1119. package/dist/components/Dropdown/components/Wrapper.js +0 -205
  1120. package/dist/components/Dropdown/components/index.js +0 -8
  1121. package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
  1122. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  1123. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
  1124. package/dist/components/Dropdown/contexts/index.js +0 -6
  1125. package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
  1126. package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
  1127. package/dist/components/NumberInput/NumberInput.js +0 -179
  1128. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  1129. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
  1130. package/dist/components/Tooltip/Tooltip.variants.js +0 -85
  1131. package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
  1132. package/dist/createLucideIcon-D2CN7Ma9.js +0 -94
  1133. package/dist/debounce-BFejQm9P.js +0 -200
  1134. package/dist/index-0XtjXVpJ.js +0 -314
  1135. package/dist/index-0ioNhtNM.js +0 -10
  1136. package/dist/index-BAEWsOG1.js +0 -27
  1137. package/dist/index-BVRIAMfe.js +0 -36
  1138. package/dist/index-BdMNhZnh.js +0 -9
  1139. package/dist/index-BfXxHr_2.js +0 -125
  1140. package/dist/index-Bn4c-gww.js +0 -131
  1141. package/dist/index-C1g_chDT.js +0 -70
  1142. package/dist/index-CffpTFMi.js +0 -137
  1143. package/dist/index-Cvx4lqTq.js +0 -47
  1144. package/dist/index-D29mdTf5.js +0 -34
  1145. package/dist/index-DQH6odE9.js +0 -82
  1146. package/dist/index-DQJhMz8c.js +0 -323
  1147. package/dist/index-DdXGVVBv.js +0 -15
  1148. package/dist/index-N2OStZoU.js +0 -667
  1149. package/dist/index-amYX3uxF.js +0 -436
  1150. package/dist/index-bwWKd82e.js +0 -13
  1151. package/dist/index-l3NwplN0.js +0 -432
  1152. package/dist/index-sp5ZfG6g.js +0 -31
  1153. package/dist/useBreadcrumb-B8DnuqkR.js +0 -1273
  1154. package/dist/x-4F_5p77m.js +0 -62
@@ -0,0 +1,4683 @@
1
+ import { a as Nr, n as Ur, r as Wr } from "./rolldown-runtime-Ck3dxwZt.js";
2
+ import { Component as $r, Fragment as qn, createContext as Vt, createElement as Kr, forwardRef as _r, useCallback as Zn, useContext as U, useEffect as ni, useId as zr, useInsertionEffect as Jn, useLayoutEffect as Hr, useMemo as he, useRef as ft } from "react";
3
+ import { jsx as Qn, jsxs as Gr } from "react/jsx-runtime";
4
+ var ts = Vt({});
5
+ function Xr(t) {
6
+ const e = ft(null);
7
+ return e.current === null && (e.current = t()), e.current;
8
+ }
9
+ var Yr = typeof window < "u", qr = Yr ? Hr : ni, si = /* @__PURE__ */ Vt(null);
10
+ function ri(t, e) {
11
+ t.indexOf(e) === -1 && t.push(e);
12
+ }
13
+ function ie(t, e) {
14
+ const i = t.indexOf(e);
15
+ i > -1 && t.splice(i, 1);
16
+ }
17
+ var Q = (t, e, i) => i > e ? e : i < t ? t : i;
18
+ function Re(t, e) {
19
+ return e ? `${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}` : t;
20
+ }
21
+ var Mt = () => {
22
+ }, it = () => {
23
+ };
24
+ typeof process < "u" && process.env.NODE_ENV !== "production" && (Mt = (t, e, i) => {
25
+ !t && typeof console < "u" && console.warn(Re(e, i));
26
+ }, it = (t, e, i) => {
27
+ if (!t) throw new Error(Re(e, i));
28
+ });
29
+ var st = {}, es = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), is = (t) => typeof t == "object" && t !== null, ns = (t) => /^0[^.\s]+$/u.test(t);
30
+ // @__NO_SIDE_EFFECTS__
31
+ function ss(t) {
32
+ let e;
33
+ return () => (e === void 0 && (e = t()), e);
34
+ }
35
+ var _ = /* @__NO_SIDE_EFFECTS__ */ (t) => t, Ut = (...t) => t.reduce((e, i) => (n) => i(e(n))), Ft = /* @__NO_SIDE_EFFECTS__ */ (t, e, i) => {
36
+ const n = e - t;
37
+ return n ? (i - t) / n : 1;
38
+ }, oi = class {
39
+ constructor() {
40
+ this.subscriptions = [];
41
+ }
42
+ add(t) {
43
+ return ri(this.subscriptions, t), () => ie(this.subscriptions, t);
44
+ }
45
+ notify(t, e, i) {
46
+ const n = this.subscriptions.length;
47
+ if (n)
48
+ if (n === 1) this.subscriptions[0](t, e, i);
49
+ else for (let s = 0; s < n; s++) {
50
+ const o = this.subscriptions[s];
51
+ o && o(t, e, i);
52
+ }
53
+ }
54
+ getSize() {
55
+ return this.subscriptions.length;
56
+ }
57
+ clear() {
58
+ this.subscriptions.length = 0;
59
+ }
60
+ }, W = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, K = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, rs = /* @__NO_SIDE_EFFECTS__ */ (t, e) => e ? t * (1e3 / e) : 0, Ri = /* @__PURE__ */ new Set();
61
+ function ai(t, e, i) {
62
+ t || Ri.has(e) || (console.warn(Re(e, i)), Ri.add(e));
63
+ }
64
+ var os = (t, e, i) => (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t, Zr = 1e-7, Jr = 12;
65
+ function Qr(t, e, i, n, s) {
66
+ let o, r, a = 0;
67
+ do
68
+ r = e + (i - e) / 2, o = os(r, n, s) - t, o > 0 ? i = r : e = r;
69
+ while (Math.abs(o) > Zr && ++a < Jr);
70
+ return r;
71
+ }
72
+ // @__NO_SIDE_EFFECTS__
73
+ function Wt(t, e, i, n) {
74
+ if (t === e && i === n) return _;
75
+ const s = (o) => Qr(o, 0, 1, t, i);
76
+ return (o) => o === 0 || o === 1 ? o : os(s(o), e, n);
77
+ }
78
+ var as = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ls = /* @__NO_SIDE_EFFECTS__ */ (t) => (e) => 1 - t(1 - e), us = /* @__PURE__ */ Wt(0.33, 1.53, 0.69, 0.99), li = /* @__PURE__ */ ls(us), cs = /* @__PURE__ */ as(li), hs = (t) => t >= 1 ? 1 : (t *= 2) < 1 ? 0.5 * li(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ui = (t) => 1 - Math.sin(Math.acos(t)), fs = ls(ui), ds = as(ui), to = /* @__PURE__ */ Wt(0.42, 0, 1, 1), eo = /* @__PURE__ */ Wt(0, 0, 0.58, 1), ps = /* @__PURE__ */ Wt(0.42, 0, 0.58, 1), io = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] != "number", ms = /* @__NO_SIDE_EFFECTS__ */ (t) => Array.isArray(t) && typeof t[0] == "number", Li = {
79
+ linear: _,
80
+ easeIn: to,
81
+ easeInOut: ps,
82
+ easeOut: eo,
83
+ circIn: ui,
84
+ circInOut: ds,
85
+ circOut: fs,
86
+ backIn: li,
87
+ backInOut: cs,
88
+ backOut: us,
89
+ anticipate: hs
90
+ }, no = (t) => typeof t == "string", ki = (t) => {
91
+ if (ms(t)) {
92
+ it(t.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
93
+ const [e, i, n, s] = t;
94
+ return /* @__PURE__ */ Wt(e, i, n, s);
95
+ } else if (no(t))
96
+ return it(Li[t] !== void 0, `Invalid easing type '${t}'`, "invalid-easing-type"), Li[t];
97
+ return t;
98
+ }, _t = [
99
+ "setup",
100
+ "read",
101
+ "resolveKeyframes",
102
+ "preUpdate",
103
+ "update",
104
+ "preRender",
105
+ "render",
106
+ "postRender"
107
+ ];
108
+ function so(t) {
109
+ let e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = !1, s = !1;
110
+ const o = /* @__PURE__ */ new WeakSet();
111
+ let r = {
112
+ delta: 0,
113
+ timestamp: 0,
114
+ isProcessing: !1
115
+ };
116
+ function a(c) {
117
+ o.has(c) && (l.schedule(c), t()), c(r);
118
+ }
119
+ const l = {
120
+ schedule: (c, u = !1, h = !1) => {
121
+ const f = h && n ? e : i;
122
+ return u && o.add(c), f.add(c), c;
123
+ },
124
+ cancel: (c) => {
125
+ i.delete(c), o.delete(c);
126
+ },
127
+ process: (c) => {
128
+ if (r = c, n) {
129
+ s = !0;
130
+ return;
131
+ }
132
+ n = !0;
133
+ const u = e;
134
+ e = i, i = u, e.forEach(a), e.clear(), n = !1, s && (s = !1, l.process(c));
135
+ }
136
+ };
137
+ return l;
138
+ }
139
+ var ro = 40;
140
+ function vs(t, e) {
141
+ let i = !1, n = !0;
142
+ const s = {
143
+ delta: 0,
144
+ timestamp: 0,
145
+ isProcessing: !1
146
+ }, o = () => i = !0, r = _t.reduce((x, w) => (x[w] = so(o), x), {}), { setup: a, read: l, resolveKeyframes: c, preUpdate: u, update: h, preRender: f, render: p, postRender: d } = r, m = () => {
147
+ const x = st.useManualTiming, w = x ? s.timestamp : performance.now();
148
+ i = !1, x || (s.delta = n ? 1e3 / 60 : Math.max(Math.min(w - s.timestamp, ro), 1)), s.timestamp = w, s.isProcessing = !0, a.process(s), l.process(s), c.process(s), u.process(s), h.process(s), f.process(s), p.process(s), d.process(s), s.isProcessing = !1, i && e && (n = !1, t(m));
149
+ }, v = () => {
150
+ i = !0, n = !0, s.isProcessing || t(m);
151
+ };
152
+ return {
153
+ schedule: _t.reduce((x, w) => {
154
+ const P = r[w];
155
+ return x[w] = (A, D = !1, S = !1) => (i || v(), P.schedule(A, D, S)), x;
156
+ }, {}),
157
+ cancel: (x) => {
158
+ for (let w = 0; w < _t.length; w++) r[_t[w]].cancel(x);
159
+ },
160
+ state: s,
161
+ steps: r
162
+ };
163
+ }
164
+ var { schedule: M, cancel: rt, state: I, steps: ve } = /* @__PURE__ */ vs(typeof requestAnimationFrame < "u" ? requestAnimationFrame : _, !0), Xt;
165
+ function oo() {
166
+ Xt = void 0;
167
+ }
168
+ var O = {
169
+ now: () => (Xt === void 0 && O.set(I.isProcessing || st.useManualTiming ? I.timestamp : performance.now()), Xt),
170
+ set: (t) => {
171
+ Xt = t, queueMicrotask(oo);
172
+ }
173
+ }, gs = (t) => (e) => typeof e == "string" && e.startsWith(t), ys = /* @__PURE__ */ gs("--"), ao = /* @__PURE__ */ gs("var(--"), ci = (t) => ao(t) ? lo.test(t.split("/*")[0].trim()) : !1, lo = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
174
+ function Bi(t) {
175
+ return typeof t != "string" ? !1 : t.split("/*")[0].includes("var(--");
176
+ }
177
+ var Ct = {
178
+ test: (t) => typeof t == "number",
179
+ parse: parseFloat,
180
+ transform: (t) => t
181
+ }, Ot = {
182
+ ...Ct,
183
+ transform: (t) => Q(0, 1, t)
184
+ }, zt = {
185
+ ...Ct,
186
+ default: 1
187
+ }, kt = (t) => Math.round(t * 1e5) / 1e5, hi = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
188
+ function uo(t) {
189
+ return t == null;
190
+ }
191
+ var co = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, fi = (t, e) => (i) => !!(typeof i == "string" && co.test(i) && i.startsWith(t) || e && !uo(i) && Object.prototype.hasOwnProperty.call(i, e)), Ts = (t, e, i) => (n) => {
192
+ if (typeof n != "string") return n;
193
+ const [s, o, r, a] = n.match(hi);
194
+ return {
195
+ [t]: parseFloat(s),
196
+ [e]: parseFloat(o),
197
+ [i]: parseFloat(r),
198
+ alpha: a !== void 0 ? parseFloat(a) : 1
199
+ };
200
+ }, ho = (t) => Q(0, 255, t), ge = {
201
+ ...Ct,
202
+ transform: (t) => Math.round(ho(t))
203
+ }, dt = {
204
+ test: /* @__PURE__ */ fi("rgb", "red"),
205
+ parse: /* @__PURE__ */ Ts("red", "green", "blue"),
206
+ transform: ({ red: t, green: e, blue: i, alpha: n = 1 }) => "rgba(" + ge.transform(t) + ", " + ge.transform(e) + ", " + ge.transform(i) + ", " + kt(Ot.transform(n)) + ")"
207
+ };
208
+ function fo(t) {
209
+ let e = "", i = "", n = "", s = "";
210
+ return t.length > 5 ? (e = t.substring(1, 3), i = t.substring(3, 5), n = t.substring(5, 7), s = t.substring(7, 9)) : (e = t.substring(1, 2), i = t.substring(2, 3), n = t.substring(3, 4), s = t.substring(4, 5), e += e, i += i, n += n, s += s), {
211
+ red: parseInt(e, 16),
212
+ green: parseInt(i, 16),
213
+ blue: parseInt(n, 16),
214
+ alpha: s ? parseInt(s, 16) / 255 : 1
215
+ };
216
+ }
217
+ var Le = {
218
+ test: /* @__PURE__ */ fi("#"),
219
+ parse: fo,
220
+ transform: dt.transform
221
+ }, $t = /* @__NO_SIDE_EFFECTS__ */ (t) => ({
222
+ test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
223
+ parse: parseFloat,
224
+ transform: (e) => `${e}${t}`
225
+ }), et = /* @__PURE__ */ $t("deg"), J = /* @__PURE__ */ $t("%"), y = /* @__PURE__ */ $t("px"), po = /* @__PURE__ */ $t("vh"), mo = /* @__PURE__ */ $t("vw"), Ii = {
226
+ ...J,
227
+ parse: (t) => J.parse(t) / 100,
228
+ transform: (t) => J.transform(t * 100)
229
+ }, xt = {
230
+ test: /* @__PURE__ */ fi("hsl", "hue"),
231
+ parse: /* @__PURE__ */ Ts("hue", "saturation", "lightness"),
232
+ transform: ({ hue: t, saturation: e, lightness: i, alpha: n = 1 }) => "hsla(" + Math.round(t) + ", " + J.transform(kt(e)) + ", " + J.transform(kt(i)) + ", " + kt(Ot.transform(n)) + ")"
233
+ }, R = {
234
+ test: (t) => dt.test(t) || Le.test(t) || xt.test(t),
235
+ parse: (t) => dt.test(t) ? dt.parse(t) : xt.test(t) ? xt.parse(t) : Le.parse(t),
236
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? dt.transform(t) : xt.transform(t),
237
+ getAnimatableNone: (t) => {
238
+ const e = R.parse(t);
239
+ return e.alpha = 0, R.transform(e);
240
+ }
241
+ }, vo = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
242
+ function go(t) {
243
+ return isNaN(t) && typeof t == "string" && (t.match(hi)?.length || 0) + (t.match(vo)?.length || 0) > 0;
244
+ }
245
+ var xs = "number", ws = "color", yo = "var", To = "var(", Fi = "${}", xo = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
246
+ function bt(t) {
247
+ const e = t.toString(), i = [], n = {
248
+ color: [],
249
+ number: [],
250
+ var: []
251
+ }, s = [];
252
+ let o = 0;
253
+ return {
254
+ values: i,
255
+ split: e.replace(xo, (r) => (R.test(r) ? (n.color.push(o), s.push(ws), i.push(R.parse(r))) : r.startsWith(To) ? (n.var.push(o), s.push(yo), i.push(r)) : (n.number.push(o), s.push(xs), i.push(parseFloat(r))), ++o, Fi)).split(Fi),
256
+ indexes: n,
257
+ types: s
258
+ };
259
+ }
260
+ function wo(t) {
261
+ return bt(t).values;
262
+ }
263
+ function Ps({ split: t, types: e }) {
264
+ const i = t.length;
265
+ return (n) => {
266
+ let s = "";
267
+ for (let o = 0; o < i; o++)
268
+ if (s += t[o], n[o] !== void 0) {
269
+ const r = e[o];
270
+ r === xs ? s += kt(n[o]) : r === ws ? s += R.transform(n[o]) : s += n[o];
271
+ }
272
+ return s;
273
+ };
274
+ }
275
+ function Po(t) {
276
+ return Ps(bt(t));
277
+ }
278
+ var So = (t) => typeof t == "number" ? 0 : R.test(t) ? R.getAnimatableNone(t) : t, bo = (t, e) => typeof t == "number" ? e?.trim().endsWith("/") ? t : 0 : So(t);
279
+ function Ao(t) {
280
+ const e = bt(t);
281
+ return Ps(e)(e.values.map((i, n) => bo(i, e.split[n])));
282
+ }
283
+ var G = {
284
+ test: go,
285
+ parse: wo,
286
+ createTransformer: Po,
287
+ getAnimatableNone: Ao
288
+ };
289
+ function ye(t, e, i) {
290
+ return i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? t + (e - t) * 6 * i : i < 1 / 2 ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t;
291
+ }
292
+ function Vo({ hue: t, saturation: e, lightness: i, alpha: n }) {
293
+ t /= 360, e /= 100, i /= 100;
294
+ let s = 0, o = 0, r = 0;
295
+ if (!e) s = o = r = i;
296
+ else {
297
+ const a = i < 0.5 ? i * (1 + e) : i + e - i * e, l = 2 * i - a;
298
+ s = ye(l, a, t + 1 / 3), o = ye(l, a, t), r = ye(l, a, t - 1 / 3);
299
+ }
300
+ return {
301
+ red: Math.round(s * 255),
302
+ green: Math.round(o * 255),
303
+ blue: Math.round(r * 255),
304
+ alpha: n
305
+ };
306
+ }
307
+ function ne(t, e) {
308
+ return (i) => i > 0 ? e : t;
309
+ }
310
+ var V = (t, e, i) => t + (e - t) * i, Te = (t, e, i) => {
311
+ const n = t * t, s = i * (e * e - n) + n;
312
+ return s < 0 ? 0 : Math.sqrt(s);
313
+ }, Mo = [
314
+ Le,
315
+ dt,
316
+ xt
317
+ ], Co = (t) => Mo.find((e) => e.test(t));
318
+ function Oi(t) {
319
+ const e = Co(t);
320
+ if (Mt(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !e) return !1;
321
+ let i = e.parse(t);
322
+ return e === xt && (i = Vo(i)), i;
323
+ }
324
+ var ji = (t, e) => {
325
+ const i = Oi(t), n = Oi(e);
326
+ if (!i || !n) return ne(t, e);
327
+ const s = { ...i };
328
+ return (o) => (s.red = Te(i.red, n.red, o), s.green = Te(i.green, n.green, o), s.blue = Te(i.blue, n.blue, o), s.alpha = V(i.alpha, n.alpha, o), dt.transform(s));
329
+ }, ke = /* @__PURE__ */ new Set(["none", "hidden"]);
330
+ function Do(t, e) {
331
+ return ke.has(t) ? (i) => i <= 0 ? t : e : (i) => i >= 1 ? e : t;
332
+ }
333
+ function Eo(t, e) {
334
+ return (i) => V(t, e, i);
335
+ }
336
+ function di(t) {
337
+ return typeof t == "number" ? Eo : typeof t == "string" ? ci(t) ? ne : R.test(t) ? ji : ko : Array.isArray(t) ? Ss : typeof t == "object" ? R.test(t) ? ji : Ro : ne;
338
+ }
339
+ function Ss(t, e) {
340
+ const i = [...t], n = i.length, s = t.map((o, r) => di(o)(o, e[r]));
341
+ return (o) => {
342
+ for (let r = 0; r < n; r++) i[r] = s[r](o);
343
+ return i;
344
+ };
345
+ }
346
+ function Ro(t, e) {
347
+ const i = {
348
+ ...t,
349
+ ...e
350
+ }, n = {};
351
+ for (const s in i) t[s] !== void 0 && e[s] !== void 0 && (n[s] = di(t[s])(t[s], e[s]));
352
+ return (s) => {
353
+ for (const o in n) i[o] = n[o](s);
354
+ return i;
355
+ };
356
+ }
357
+ function Lo(t, e) {
358
+ const i = [], n = {
359
+ color: 0,
360
+ var: 0,
361
+ number: 0
362
+ };
363
+ for (let s = 0; s < e.values.length; s++) {
364
+ const o = e.types[s], r = t.indexes[o][n[o]];
365
+ i[s] = t.values[r] ?? 0, n[o]++;
366
+ }
367
+ return i;
368
+ }
369
+ var ko = (t, e) => {
370
+ const i = G.createTransformer(e), n = bt(t), s = bt(e);
371
+ return n.indexes.var.length === s.indexes.var.length && n.indexes.color.length === s.indexes.color.length && n.indexes.number.length >= s.indexes.number.length ? ke.has(t) && !s.values.length || ke.has(e) && !n.values.length ? Do(t, e) : Ut(Ss(Lo(n, s), s.values), i) : (Mt(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), ne(t, e));
372
+ };
373
+ function bs(t, e, i) {
374
+ return typeof t == "number" && typeof e == "number" && typeof i == "number" ? V(t, e, i) : di(t)(t, e);
375
+ }
376
+ var Bo = (t) => {
377
+ const e = ({ timestamp: i }) => t(i);
378
+ return {
379
+ start: (i = !0) => M.update(e, i),
380
+ stop: () => rt(e),
381
+ now: () => I.isProcessing ? I.timestamp : O.now()
382
+ };
383
+ }, As = (t, e, i = 10) => {
384
+ let n = "";
385
+ const s = Math.max(Math.round(e / i), 2);
386
+ for (let o = 0; o < s; o++) n += Math.round(t(o / (s - 1)) * 1e4) / 1e4 + ", ";
387
+ return `linear(${n.substring(0, n.length - 2)})`;
388
+ }, Vs = 2e4;
389
+ function pi(t) {
390
+ let e = 0;
391
+ const i = 50;
392
+ let n = t.next(e);
393
+ for (; !n.done && e < 2e4; )
394
+ e += i, n = t.next(e);
395
+ return e >= 2e4 ? 1 / 0 : e;
396
+ }
397
+ function Io(t, e = 100, i) {
398
+ const n = i({
399
+ ...t,
400
+ keyframes: [0, e]
401
+ }), s = Math.min(pi(n), Vs);
402
+ return {
403
+ type: "keyframes",
404
+ ease: (o) => n.next(s * o).value / e,
405
+ duration: K(s)
406
+ };
407
+ }
408
+ var C = {
409
+ stiffness: 100,
410
+ damping: 10,
411
+ mass: 1,
412
+ velocity: 0,
413
+ duration: 800,
414
+ bounce: 0.3,
415
+ visualDuration: 0.3,
416
+ restSpeed: {
417
+ granular: 0.01,
418
+ default: 2
419
+ },
420
+ restDelta: {
421
+ granular: 5e-3,
422
+ default: 0.5
423
+ },
424
+ minDuration: 0.01,
425
+ maxDuration: 10,
426
+ minDamping: 0.05,
427
+ maxDamping: 1
428
+ };
429
+ function Be(t, e) {
430
+ return t * Math.sqrt(1 - e * e);
431
+ }
432
+ var Fo = 12;
433
+ function Oo(t, e, i) {
434
+ let n = i;
435
+ for (let s = 1; s < Fo; s++) n = n - t(n) / e(n);
436
+ return n;
437
+ }
438
+ var Ni = 1e-3;
439
+ function jo({ duration: t = C.duration, bounce: e = C.bounce, velocity: i = C.velocity, mass: n = C.mass }) {
440
+ let s, o;
441
+ Mt(t <= W(C.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
442
+ let r = 1 - e;
443
+ r = Q(C.minDamping, C.maxDamping, r), t = Q(C.minDuration, C.maxDuration, K(t)), r < 1 ? (s = (c) => {
444
+ const u = c * r, h = u * t, f = u - i, p = Be(c, r), d = Math.exp(-h);
445
+ return Ni - f / p * d;
446
+ }, o = (c) => {
447
+ const u = c * r * t, h = u * i + i, f = Math.pow(r, 2) * Math.pow(c, 2) * t, p = Math.exp(-u), d = Be(Math.pow(c, 2), r);
448
+ return (-s(c) + Ni > 0 ? -1 : 1) * ((h - f) * p) / d;
449
+ }) : (s = (c) => -1e-3 + Math.exp(-c * t) * ((c - i) * t + 1), o = (c) => Math.exp(-c * t) * ((i - c) * (t * t)));
450
+ const a = 5 / t, l = Oo(s, o, a);
451
+ if (t = W(t), isNaN(l)) return {
452
+ stiffness: C.stiffness,
453
+ damping: C.damping,
454
+ duration: t
455
+ };
456
+ {
457
+ const c = Math.pow(l, 2) * n;
458
+ return {
459
+ stiffness: c,
460
+ damping: r * 2 * Math.sqrt(n * c),
461
+ duration: t
462
+ };
463
+ }
464
+ }
465
+ var No = ["duration", "bounce"], Uo = [
466
+ "stiffness",
467
+ "damping",
468
+ "mass"
469
+ ];
470
+ function Ui(t, e) {
471
+ return e.some((i) => t[i] !== void 0);
472
+ }
473
+ function Wo(t) {
474
+ let e = {
475
+ velocity: C.velocity,
476
+ stiffness: C.stiffness,
477
+ damping: C.damping,
478
+ mass: C.mass,
479
+ isResolvedFromDuration: !1,
480
+ ...t
481
+ };
482
+ if (!Ui(t, Uo) && Ui(t, No))
483
+ if (e.velocity = 0, t.visualDuration) {
484
+ const i = t.visualDuration, n = 2 * Math.PI / (i * 1.2), s = n * n, o = 2 * Q(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(s);
485
+ e = {
486
+ ...e,
487
+ mass: C.mass,
488
+ stiffness: s,
489
+ damping: o
490
+ };
491
+ } else {
492
+ const i = jo({
493
+ ...t,
494
+ velocity: 0
495
+ });
496
+ e = {
497
+ ...e,
498
+ ...i,
499
+ mass: C.mass
500
+ }, e.isResolvedFromDuration = !0;
501
+ }
502
+ return e;
503
+ }
504
+ function se(t = C.visualDuration, e = C.bounce) {
505
+ const i = typeof t != "object" ? {
506
+ visualDuration: t,
507
+ keyframes: [0, 1],
508
+ bounce: e
509
+ } : t;
510
+ let { restSpeed: n, restDelta: s } = i;
511
+ const o = i.keyframes[0], r = i.keyframes[i.keyframes.length - 1], a = {
512
+ done: !1,
513
+ value: o
514
+ }, { stiffness: l, damping: c, mass: u, duration: h, velocity: f, isResolvedFromDuration: p } = Wo({
515
+ ...i,
516
+ velocity: -K(i.velocity || 0)
517
+ }), d = f || 0, m = c / (2 * Math.sqrt(l * u)), v = r - o, g = K(Math.sqrt(l / u)), T = Math.abs(v) < 5;
518
+ n || (n = T ? C.restSpeed.granular : C.restSpeed.default), s || (s = T ? C.restDelta.granular : C.restDelta.default);
519
+ let x, w, P, A, D, S;
520
+ if (m < 1)
521
+ P = Be(g, m), A = (d + m * g * v) / P, x = (b) => {
522
+ const k = Math.exp(-m * g * b);
523
+ return r - k * (A * Math.sin(P * b) + v * Math.cos(P * b));
524
+ }, D = m * g * A + v * P, S = m * g * v - A * P, w = (b) => Math.exp(-m * g * b) * (D * Math.sin(P * b) + S * Math.cos(P * b));
525
+ else if (m === 1) {
526
+ x = (k) => r - Math.exp(-g * k) * (v + (d + g * v) * k);
527
+ const b = d + g * v;
528
+ w = (k) => Math.exp(-g * k) * (g * b * k - d);
529
+ } else {
530
+ const b = g * Math.sqrt(m * m - 1);
531
+ x = (X) => {
532
+ const tt = Math.exp(-m * g * X), Y = Math.min(b * X, 300);
533
+ return r - tt * ((d + m * g * v) * Math.sinh(Y) + b * v * Math.cosh(Y)) / b;
534
+ };
535
+ const k = (d + m * g * v) / b, N = m * g * k - v * b, at = m * g * v - k * b;
536
+ w = (X) => {
537
+ const tt = Math.exp(-m * g * X), Y = Math.min(b * X, 300);
538
+ return tt * (N * Math.sinh(Y) + at * Math.cosh(Y));
539
+ };
540
+ }
541
+ const E = {
542
+ calculatedDuration: p && h || null,
543
+ velocity: (b) => W(w(b)),
544
+ next: (b) => {
545
+ if (!p && m < 1) {
546
+ const N = Math.exp(-m * g * b), at = Math.sin(P * b), X = Math.cos(P * b), tt = r - N * (A * at + v * X), Y = W(N * (D * at + S * X));
547
+ return a.done = Math.abs(Y) <= n && Math.abs(r - tt) <= s, a.value = a.done ? r : tt, a;
548
+ }
549
+ const k = x(b);
550
+ if (p)
551
+ a.done = b >= h;
552
+ else {
553
+ const N = W(w(b));
554
+ a.done = Math.abs(N) <= n && Math.abs(r - k) <= s;
555
+ }
556
+ return a.value = a.done ? r : k, a;
557
+ },
558
+ toString: () => {
559
+ const b = Math.min(pi(E), Vs), k = As((N) => E.next(b * N).value, b, 30);
560
+ return b + "ms " + k;
561
+ },
562
+ toTransition: () => {
563
+ }
564
+ };
565
+ return E;
566
+ }
567
+ se.applyToOptions = (t) => {
568
+ const e = Io(t, 100, se);
569
+ return t.ease = e.ease, t.duration = W(e.duration), t.type = "keyframes", t;
570
+ };
571
+ var $o = 5;
572
+ function Ms(t, e, i) {
573
+ const n = Math.max(e - $o, 0);
574
+ return rs(i - t(n), e - n);
575
+ }
576
+ function Ie({ keyframes: t, velocity: e = 0, power: i = 0.8, timeConstant: n = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: r, min: a, max: l, restDelta: c = 0.5, restSpeed: u }) {
577
+ const h = t[0], f = {
578
+ done: !1,
579
+ value: h
580
+ }, p = (S) => a !== void 0 && S < a || l !== void 0 && S > l, d = (S) => a === void 0 ? l : l === void 0 || Math.abs(a - S) < Math.abs(l - S) ? a : l;
581
+ let m = i * e;
582
+ const v = h + m, g = r === void 0 ? v : r(v);
583
+ g !== v && (m = g - h);
584
+ const T = (S) => -m * Math.exp(-S / n), x = (S) => g + T(S), w = (S) => {
585
+ const E = T(S), b = x(S);
586
+ f.done = Math.abs(E) <= c, f.value = f.done ? g : b;
587
+ };
588
+ let P, A;
589
+ const D = (S) => {
590
+ p(f.value) && (P = S, A = se({
591
+ keyframes: [f.value, d(f.value)],
592
+ velocity: Ms(x, S, f.value),
593
+ damping: s,
594
+ stiffness: o,
595
+ restDelta: c,
596
+ restSpeed: u
597
+ }));
598
+ };
599
+ return D(0), {
600
+ calculatedDuration: null,
601
+ next: (S) => {
602
+ let E = !1;
603
+ return !A && P === void 0 && (E = !0, w(S), D(S)), P !== void 0 && S >= P ? A.next(S - P) : (!E && w(S), f);
604
+ }
605
+ };
606
+ }
607
+ function Ko(t, e, i) {
608
+ const n = [], s = i || st.mix || bs, o = t.length - 1;
609
+ for (let r = 0; r < o; r++) {
610
+ let a = s(t[r], t[r + 1]);
611
+ e && (a = Ut(Array.isArray(e) ? e[r] || _ : e, a)), n.push(a);
612
+ }
613
+ return n;
614
+ }
615
+ function _o(t, e, { clamp: i = !0, ease: n, mixer: s } = {}) {
616
+ const o = t.length;
617
+ if (it(o === e.length, "Both input and output ranges must be the same length", "range-length"), o === 1) return () => e[0];
618
+ if (o === 2 && e[0] === e[1]) return () => e[1];
619
+ const r = t[0] === t[1];
620
+ t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
621
+ const a = Ko(e, n, s), l = a.length, c = (u) => {
622
+ if (r && u < t[0]) return e[0];
623
+ let h = 0;
624
+ if (l > 1)
625
+ for (; h < t.length - 2 && !(u < t[h + 1]); h++) ;
626
+ const f = Ft(t[h], t[h + 1], u);
627
+ return a[h](f);
628
+ };
629
+ return i ? (u) => c(Q(t[0], t[o - 1], u)) : c;
630
+ }
631
+ function zo(t, e) {
632
+ const i = t[t.length - 1];
633
+ for (let n = 1; n <= e; n++) {
634
+ const s = Ft(0, e, n);
635
+ t.push(V(i, 1, s));
636
+ }
637
+ }
638
+ function Ho(t) {
639
+ const e = [0];
640
+ return zo(e, t.length - 1), e;
641
+ }
642
+ function Go(t, e) {
643
+ return t.map((i) => i * e);
644
+ }
645
+ function Xo(t, e) {
646
+ return t.map(() => e || ps).splice(0, t.length - 1);
647
+ }
648
+ function wt({ duration: t = 300, keyframes: e, times: i, ease: n = "easeInOut" }) {
649
+ const s = io(n) ? n.map(ki) : ki(n), o = {
650
+ done: !1,
651
+ value: e[0]
652
+ }, r = _o(Go(i && i.length === e.length ? i : Ho(e), t), e, { ease: Array.isArray(s) ? s : Xo(e, s) });
653
+ return {
654
+ calculatedDuration: t,
655
+ next: (a) => (o.value = r(a), o.done = a >= t, o)
656
+ };
657
+ }
658
+ var Yo = (t) => t !== null;
659
+ function fe(t, { repeat: e, repeatType: i = "loop" }, n, s = 1) {
660
+ const o = t.filter(Yo), r = s < 0 || e && i !== "loop" && e % 2 === 1 ? 0 : o.length - 1;
661
+ return !r || n === void 0 ? o[r] : n;
662
+ }
663
+ var qo = {
664
+ decay: Ie,
665
+ inertia: Ie,
666
+ tween: wt,
667
+ keyframes: wt,
668
+ spring: se
669
+ };
670
+ function Cs(t) {
671
+ typeof t.type == "string" && (t.type = qo[t.type]);
672
+ }
673
+ var mi = class {
674
+ constructor() {
675
+ this.updateFinished();
676
+ }
677
+ get finished() {
678
+ return this._finished;
679
+ }
680
+ updateFinished() {
681
+ this._finished = new Promise((t) => {
682
+ this.resolve = t;
683
+ });
684
+ }
685
+ notifyFinished() {
686
+ this.resolve();
687
+ }
688
+ then(t, e) {
689
+ return this.finished.then(t, e);
690
+ }
691
+ }, Zo = (t) => t / 100, re = class extends mi {
692
+ constructor(t) {
693
+ super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
694
+ done: !1,
695
+ value: void 0
696
+ }, this.stop = () => {
697
+ const { motionValue: e } = this.options;
698
+ e && e.updatedAt !== O.now() && this.tick(O.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
699
+ }, this.options = t, this.initAnimation(), this.play(), t.autoplay === !1 && this.pause();
700
+ }
701
+ initAnimation() {
702
+ const { options: t } = this;
703
+ Cs(t);
704
+ const { type: e = wt, repeat: i = 0, repeatDelay: n = 0, repeatType: s, velocity: o = 0 } = t;
705
+ let { keyframes: r } = t;
706
+ const a = e || wt;
707
+ process.env.NODE_ENV !== "production" && a !== wt && it(r.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`, "spring-two-frames"), a !== wt && typeof r[0] != "number" && (this.mixKeyframes = Ut(Zo, bs(r[0], r[1])), r = [0, 100]);
708
+ const l = a({
709
+ ...t,
710
+ keyframes: r
711
+ });
712
+ s === "mirror" && (this.mirroredGenerator = a({
713
+ ...t,
714
+ keyframes: [...r].reverse(),
715
+ velocity: -o
716
+ })), l.calculatedDuration === null && (l.calculatedDuration = pi(l));
717
+ const { calculatedDuration: c } = l;
718
+ this.calculatedDuration = c, this.resolvedDuration = c + n, this.totalDuration = this.resolvedDuration * (i + 1) - n, this.generator = l;
719
+ }
720
+ updateTime(t) {
721
+ const e = Math.round(t - this.startTime) * this.playbackSpeed;
722
+ this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = e;
723
+ }
724
+ tick(t, e = !1) {
725
+ const { generator: i, totalDuration: n, mixKeyframes: s, mirroredGenerator: o, resolvedDuration: r, calculatedDuration: a } = this;
726
+ if (this.startTime === null) return i.next(0);
727
+ const { delay: l = 0, keyframes: c, repeat: u, repeatType: h, repeatDelay: f, type: p, onUpdate: d, finalKeyframe: m } = this.options;
728
+ this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - n / this.speed, this.startTime)), e ? this.currentTime = t : this.updateTime(t);
729
+ const v = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), g = this.playbackSpeed >= 0 ? v < 0 : v > n;
730
+ this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = n);
731
+ let T = this.currentTime, x = i;
732
+ if (u) {
733
+ const D = Math.min(this.currentTime, n) / r;
734
+ let S = Math.floor(D), E = D % 1;
735
+ !E && D >= 1 && (E = 1), E === 1 && S--, S = Math.min(S, u + 1), S % 2 && (h === "reverse" ? (E = 1 - E, f && (E -= f / r)) : h === "mirror" && (x = o)), T = Q(0, 1, E) * r;
736
+ }
737
+ let w;
738
+ g ? (this.delayState.value = c[0], w = this.delayState) : w = x.next(T), s && !g && (w.value = s(w.value));
739
+ let { done: P } = w;
740
+ !g && a !== null && (P = this.playbackSpeed >= 0 ? this.currentTime >= n : this.currentTime <= 0);
741
+ const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && P);
742
+ return A && p !== Ie && (w.value = fe(c, this.options, m, this.speed)), d && d(w.value), A && this.finish(), w;
743
+ }
744
+ then(t, e) {
745
+ return this.finished.then(t, e);
746
+ }
747
+ get duration() {
748
+ return K(this.calculatedDuration);
749
+ }
750
+ get iterationDuration() {
751
+ const { delay: t = 0 } = this.options || {};
752
+ return this.duration + K(t);
753
+ }
754
+ get time() {
755
+ return K(this.currentTime);
756
+ }
757
+ set time(t) {
758
+ t = W(t), this.currentTime = t, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = t, this.tick(t));
759
+ }
760
+ getGeneratorVelocity() {
761
+ const t = this.currentTime;
762
+ if (t <= 0) return this.options.velocity || 0;
763
+ if (this.generator.velocity) return this.generator.velocity(t);
764
+ const e = this.generator.next(t).value;
765
+ return Ms((i) => this.generator.next(i).value, t, e);
766
+ }
767
+ get speed() {
768
+ return this.playbackSpeed;
769
+ }
770
+ set speed(t) {
771
+ const e = this.playbackSpeed !== t;
772
+ e && this.driver && this.updateTime(O.now()), this.playbackSpeed = t, e && this.driver && (this.time = K(this.currentTime));
773
+ }
774
+ play() {
775
+ if (this.isStopped) return;
776
+ const { driver: t = Bo, startTime: e } = this.options;
777
+ this.driver || (this.driver = t((n) => this.tick(n))), this.options.onPlay?.();
778
+ const i = this.driver.now();
779
+ this.state === "finished" ? (this.updateFinished(), this.startTime = i) : this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime || (this.startTime = e ?? i), this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
780
+ }
781
+ pause() {
782
+ this.state = "paused", this.updateTime(O.now()), this.holdTime = this.currentTime;
783
+ }
784
+ complete() {
785
+ this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
786
+ }
787
+ finish() {
788
+ this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
789
+ }
790
+ cancel() {
791
+ this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
792
+ }
793
+ teardown() {
794
+ this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null;
795
+ }
796
+ stopDriver() {
797
+ this.driver && (this.driver.stop(), this.driver = void 0);
798
+ }
799
+ sample(t) {
800
+ return this.startTime = 0, this.tick(t, !0);
801
+ }
802
+ attachTimeline(t) {
803
+ return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), t.observe(this);
804
+ }
805
+ };
806
+ function Jo(t) {
807
+ for (let e = 1; e < t.length; e++) t[e] ?? (t[e] = t[e - 1]);
808
+ }
809
+ var pt = (t) => t * 180 / Math.PI, Fe = (t) => {
810
+ const e = pt(Math.atan2(t[1], t[0]));
811
+ return Oe(e);
812
+ }, Qo = {
813
+ x: 4,
814
+ y: 5,
815
+ translateX: 4,
816
+ translateY: 5,
817
+ scaleX: 0,
818
+ scaleY: 3,
819
+ scale: (t) => (Math.abs(t[0]) + Math.abs(t[3])) / 2,
820
+ rotate: Fe,
821
+ rotateZ: Fe,
822
+ skewX: (t) => pt(Math.atan(t[1])),
823
+ skewY: (t) => pt(Math.atan(t[2])),
824
+ skew: (t) => (Math.abs(t[1]) + Math.abs(t[2])) / 2
825
+ }, Oe = (t) => (t = t % 360, t < 0 && (t += 360), t), Wi = Fe, $i = (t) => Math.sqrt(t[0] * t[0] + t[1] * t[1]), Ki = (t) => Math.sqrt(t[4] * t[4] + t[5] * t[5]), ta = {
826
+ x: 12,
827
+ y: 13,
828
+ z: 14,
829
+ translateX: 12,
830
+ translateY: 13,
831
+ translateZ: 14,
832
+ scaleX: $i,
833
+ scaleY: Ki,
834
+ scale: (t) => ($i(t) + Ki(t)) / 2,
835
+ rotateX: (t) => Oe(pt(Math.atan2(t[6], t[5]))),
836
+ rotateY: (t) => Oe(pt(Math.atan2(-t[2], t[0]))),
837
+ rotateZ: Wi,
838
+ rotate: Wi,
839
+ skewX: (t) => pt(Math.atan(t[4])),
840
+ skewY: (t) => pt(Math.atan(t[1])),
841
+ skew: (t) => (Math.abs(t[1]) + Math.abs(t[4])) / 2
842
+ };
843
+ function je(t) {
844
+ return t.includes("scale") ? 1 : 0;
845
+ }
846
+ function Ne(t, e) {
847
+ if (!t || t === "none") return je(e);
848
+ const i = t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);
849
+ let n, s;
850
+ if (i)
851
+ n = ta, s = i;
852
+ else {
853
+ const a = t.match(/^matrix\(([-\d.e\s,]+)\)$/u);
854
+ n = Qo, s = a;
855
+ }
856
+ if (!s) return je(e);
857
+ const o = n[e], r = s[1].split(",").map(ia);
858
+ return typeof o == "function" ? o(r) : r[o];
859
+ }
860
+ var ea = (t, e) => {
861
+ const { transform: i = "none" } = getComputedStyle(t);
862
+ return Ne(i, e);
863
+ };
864
+ function ia(t) {
865
+ return parseFloat(t.trim());
866
+ }
867
+ var Dt = [
868
+ "transformPerspective",
869
+ "x",
870
+ "y",
871
+ "z",
872
+ "translateX",
873
+ "translateY",
874
+ "translateZ",
875
+ "scale",
876
+ "scaleX",
877
+ "scaleY",
878
+ "rotate",
879
+ "rotateX",
880
+ "rotateY",
881
+ "rotateZ",
882
+ "skew",
883
+ "skewX",
884
+ "skewY"
885
+ ], Et = /* @__PURE__ */ new Set([...Dt, "pathRotation"]), _i = (t) => t === Ct || t === y, na = /* @__PURE__ */ new Set([
886
+ "x",
887
+ "y",
888
+ "z"
889
+ ]), sa = Dt.filter((t) => !na.has(t));
890
+ function ra(t) {
891
+ const e = [];
892
+ return sa.forEach((i) => {
893
+ const n = t.getValue(i);
894
+ n !== void 0 && (e.push([i, n.get()]), n.set(i.startsWith("scale") ? 1 : 0));
895
+ }), e;
896
+ }
897
+ var nt = {
898
+ width: ({ x: t }, { paddingLeft: e = "0", paddingRight: i = "0", boxSizing: n }) => {
899
+ const s = t.max - t.min;
900
+ return n === "border-box" ? s : s - parseFloat(e) - parseFloat(i);
901
+ },
902
+ height: ({ y: t }, { paddingTop: e = "0", paddingBottom: i = "0", boxSizing: n }) => {
903
+ const s = t.max - t.min;
904
+ return n === "border-box" ? s : s - parseFloat(e) - parseFloat(i);
905
+ },
906
+ top: (t, { top: e }) => parseFloat(e),
907
+ left: (t, { left: e }) => parseFloat(e),
908
+ bottom: ({ y: t }, { top: e }) => parseFloat(e) + (t.max - t.min),
909
+ right: ({ x: t }, { left: e }) => parseFloat(e) + (t.max - t.min),
910
+ x: (t, { transform: e }) => Ne(e, "x"),
911
+ y: (t, { transform: e }) => Ne(e, "y")
912
+ };
913
+ nt.translateX = nt.x;
914
+ nt.translateY = nt.y;
915
+ var mt = /* @__PURE__ */ new Set(), Ue = !1, We = !1, $e = !1;
916
+ function Ds() {
917
+ if (We) {
918
+ const t = Array.from(mt).filter((n) => n.needsMeasurement), e = new Set(t.map((n) => n.element)), i = /* @__PURE__ */ new Map();
919
+ e.forEach((n) => {
920
+ const s = ra(n);
921
+ s.length && (i.set(n, s), n.render());
922
+ }), t.forEach((n) => n.measureInitialState()), e.forEach((n) => {
923
+ n.render();
924
+ const s = i.get(n);
925
+ s && s.forEach(([o, r]) => {
926
+ n.getValue(o)?.set(r);
927
+ });
928
+ }), t.forEach((n) => n.measureEndState()), t.forEach((n) => {
929
+ n.suspendedScrollY !== void 0 && window.scrollTo(0, n.suspendedScrollY);
930
+ });
931
+ }
932
+ We = !1, Ue = !1, mt.forEach((t) => t.complete($e)), mt.clear();
933
+ }
934
+ function Es() {
935
+ mt.forEach((t) => {
936
+ t.readKeyframes(), t.needsMeasurement && (We = !0);
937
+ });
938
+ }
939
+ function oa() {
940
+ $e = !0, Es(), Ds(), $e = !1;
941
+ }
942
+ var vi = class {
943
+ constructor(t, e, i, n, s, o = !1) {
944
+ this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = e, this.name = i, this.motionValue = n, this.element = s, this.isAsync = o;
945
+ }
946
+ scheduleResolve() {
947
+ this.state = "scheduled", this.isAsync ? (mt.add(this), Ue || (Ue = !0, M.read(Es), M.resolveKeyframes(Ds))) : (this.readKeyframes(), this.complete());
948
+ }
949
+ readKeyframes() {
950
+ const { unresolvedKeyframes: t, name: e, element: i, motionValue: n } = this;
951
+ if (t[0] === null) {
952
+ const s = n?.get(), o = t[t.length - 1];
953
+ if (s !== void 0) t[0] = s;
954
+ else if (i && e) {
955
+ const r = i.readValue(e, o);
956
+ r != null && (t[0] = r);
957
+ }
958
+ t[0] === void 0 && (t[0] = o), n && s === void 0 && n.set(t[0]);
959
+ }
960
+ Jo(t);
961
+ }
962
+ setFinalKeyframe() {
963
+ }
964
+ measureInitialState() {
965
+ }
966
+ renderEndStyles() {
967
+ }
968
+ measureEndState() {
969
+ }
970
+ complete(t = !1) {
971
+ this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, t), mt.delete(this);
972
+ }
973
+ cancel() {
974
+ this.state === "scheduled" && (mt.delete(this), this.state = "pending");
975
+ }
976
+ resume() {
977
+ this.state === "pending" && this.scheduleResolve();
978
+ }
979
+ }, aa = (t) => t.startsWith("--");
980
+ function Rs(t, e, i) {
981
+ aa(e) ? t.style.setProperty(e, i) : t.style[e] = i;
982
+ }
983
+ var la = {};
984
+ function Ls(t, e) {
985
+ const i = /* @__PURE__ */ ss(t);
986
+ return () => la[e] ?? i();
987
+ }
988
+ var ua = /* @__PURE__ */ Ls(() => window.ScrollTimeline !== void 0, "scrollTimeline"), ks = /* @__PURE__ */ Ls(() => {
989
+ try {
990
+ document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
991
+ } catch {
992
+ return !1;
993
+ }
994
+ return !0;
995
+ }, "linearEasing"), Lt = ([t, e, i, n]) => `cubic-bezier(${t}, ${e}, ${i}, ${n})`, zi = {
996
+ linear: "linear",
997
+ ease: "ease",
998
+ easeIn: "ease-in",
999
+ easeOut: "ease-out",
1000
+ easeInOut: "ease-in-out",
1001
+ circIn: /* @__PURE__ */ Lt([
1002
+ 0,
1003
+ 0.65,
1004
+ 0.55,
1005
+ 1
1006
+ ]),
1007
+ circOut: /* @__PURE__ */ Lt([
1008
+ 0.55,
1009
+ 0,
1010
+ 1,
1011
+ 0.45
1012
+ ]),
1013
+ backIn: /* @__PURE__ */ Lt([
1014
+ 0.31,
1015
+ 0.01,
1016
+ 0.66,
1017
+ -0.59
1018
+ ]),
1019
+ backOut: /* @__PURE__ */ Lt([
1020
+ 0.33,
1021
+ 1.53,
1022
+ 0.69,
1023
+ 0.99
1024
+ ])
1025
+ };
1026
+ function Bs(t, e) {
1027
+ if (t) return typeof t == "function" ? ks() ? As(t, e) : "ease-out" : ms(t) ? Lt(t) : Array.isArray(t) ? t.map((i) => Bs(i, e) || zi.easeOut) : zi[t];
1028
+ }
1029
+ function ca(t, e, i, { delay: n = 0, duration: s = 300, repeat: o = 0, repeatType: r = "loop", ease: a = "easeOut", times: l } = {}, c = void 0) {
1030
+ const u = { [e]: i };
1031
+ l && (u.offset = l);
1032
+ const h = Bs(a, s);
1033
+ Array.isArray(h) && (u.easing = h);
1034
+ const f = {
1035
+ delay: n,
1036
+ duration: s,
1037
+ easing: Array.isArray(h) ? "linear" : h,
1038
+ fill: "both",
1039
+ iterations: o + 1,
1040
+ direction: r === "reverse" ? "alternate" : "normal"
1041
+ };
1042
+ return c && (f.pseudoElement = c), t.animate(u, f);
1043
+ }
1044
+ function Is(t) {
1045
+ return typeof t == "function" && "applyToOptions" in t;
1046
+ }
1047
+ function ha({ type: t, ...e }) {
1048
+ return Is(t) && ks() ? t.applyToOptions(e) : (e.duration ?? (e.duration = 300), e.ease ?? (e.ease = "easeOut"), e);
1049
+ }
1050
+ var Fs = class extends mi {
1051
+ constructor(t) {
1052
+ if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !t) return;
1053
+ const { element: e, name: i, keyframes: n, pseudoElement: s, allowFlatten: o = !1, finalKeyframe: r, onComplete: a } = t;
1054
+ this.isPseudoElement = !!s, this.allowFlatten = o, this.options = t, it(typeof t.type != "string", `Mini animate() doesn't support "type" as a string.`, "mini-spring");
1055
+ const l = ha(t);
1056
+ this.animation = ca(e, i, n, l, s), l.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
1057
+ if (this.finishedTime = this.time, !s) {
1058
+ const c = fe(n, this.options, r, this.speed);
1059
+ this.updateMotionValue && this.updateMotionValue(c), Rs(e, i, c), this.animation.cancel();
1060
+ }
1061
+ a?.(), this.notifyFinished();
1062
+ };
1063
+ }
1064
+ play() {
1065
+ this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
1066
+ }
1067
+ pause() {
1068
+ this.animation.pause();
1069
+ }
1070
+ complete() {
1071
+ this.animation.finish?.();
1072
+ }
1073
+ cancel() {
1074
+ try {
1075
+ this.animation.cancel();
1076
+ } catch {
1077
+ }
1078
+ }
1079
+ stop() {
1080
+ if (this.isStopped) return;
1081
+ this.isStopped = !0;
1082
+ const { state: t } = this;
1083
+ t === "idle" || t === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
1084
+ }
1085
+ commitStyles() {
1086
+ const t = this.options?.element;
1087
+ !this.isPseudoElement && t?.isConnected && this.animation.commitStyles?.();
1088
+ }
1089
+ get duration() {
1090
+ const t = this.animation.effect?.getComputedTiming?.().duration || 0;
1091
+ return K(Number(t));
1092
+ }
1093
+ get iterationDuration() {
1094
+ const { delay: t = 0 } = this.options || {};
1095
+ return this.duration + K(t);
1096
+ }
1097
+ get time() {
1098
+ return K(Number(this.animation.currentTime) || 0);
1099
+ }
1100
+ set time(t) {
1101
+ const e = this.finishedTime !== null;
1102
+ this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = W(t), e && this.animation.pause();
1103
+ }
1104
+ get speed() {
1105
+ return this.animation.playbackRate;
1106
+ }
1107
+ set speed(t) {
1108
+ t < 0 && (this.finishedTime = null), this.animation.playbackRate = t;
1109
+ }
1110
+ get state() {
1111
+ return this.finishedTime !== null ? "finished" : this.animation.playState;
1112
+ }
1113
+ get startTime() {
1114
+ return this.manualStartTime ?? Number(this.animation.startTime);
1115
+ }
1116
+ set startTime(t) {
1117
+ this.manualStartTime = this.animation.startTime = t;
1118
+ }
1119
+ attachTimeline({ timeline: t, rangeStart: e, rangeEnd: i, observe: n }) {
1120
+ return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && ua() ? (this.animation.timeline = t, e && (this.animation.rangeStart = e), i && (this.animation.rangeEnd = i), _) : n(this);
1121
+ }
1122
+ }, Os = {
1123
+ anticipate: hs,
1124
+ backInOut: cs,
1125
+ circInOut: ds
1126
+ };
1127
+ function fa(t) {
1128
+ return t in Os;
1129
+ }
1130
+ function da(t) {
1131
+ typeof t.ease == "string" && fa(t.ease) && (t.ease = Os[t.ease]);
1132
+ }
1133
+ var xe = 10, pa = class extends Fs {
1134
+ constructor(t) {
1135
+ da(t), Cs(t), super(t), t.startTime !== void 0 && t.autoplay !== !1 && (this.startTime = t.startTime), this.options = t;
1136
+ }
1137
+ updateMotionValue(t) {
1138
+ const { motionValue: e, onUpdate: i, onComplete: n, element: s, ...o } = this.options;
1139
+ if (!e) return;
1140
+ if (t !== void 0) {
1141
+ e.set(t);
1142
+ return;
1143
+ }
1144
+ const r = new re({
1145
+ ...o,
1146
+ autoplay: !1
1147
+ }), a = Math.max(xe, O.now() - this.startTime), l = Q(0, xe, a - xe), c = r.sample(a).value, { name: u } = this.options;
1148
+ s && u && Rs(s, u, c), e.setWithVelocity(r.sample(Math.max(0, a - l)).value, c, l), r.stop();
1149
+ }
1150
+ }, Hi = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && (G.test(t) || t === "0") && !t.startsWith("url("));
1151
+ function ma(t) {
1152
+ const e = t[0];
1153
+ if (t.length === 1) return !0;
1154
+ for (let i = 0; i < t.length; i++) if (t[i] !== e) return !0;
1155
+ }
1156
+ function va(t, e, i, n) {
1157
+ const s = t[0];
1158
+ if (s === null) return !1;
1159
+ if (e === "display" || e === "visibility") return !0;
1160
+ const o = t[t.length - 1], r = Hi(s, e), a = Hi(o, e);
1161
+ return Mt(r === a, `You are trying to animate ${e} from "${s}" to "${o}". "${r ? o : s}" is not an animatable value.`, "value-not-animatable"), !r || !a ? !1 : ma(t) || (i === "spring" || Is(i)) && n;
1162
+ }
1163
+ function Ke(t) {
1164
+ t.duration = 0, t.type = "keyframes";
1165
+ }
1166
+ var js = /* @__PURE__ */ new Set([
1167
+ "opacity",
1168
+ "clipPath",
1169
+ "filter",
1170
+ "transform"
1171
+ ]), ga = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
1172
+ function ya(t) {
1173
+ for (let e = 0; e < t.length; e++) if (typeof t[e] == "string" && ga.test(t[e])) return !0;
1174
+ return !1;
1175
+ }
1176
+ var Ta = /* @__PURE__ */ new Set([
1177
+ "color",
1178
+ "backgroundColor",
1179
+ "outlineColor",
1180
+ "fill",
1181
+ "stroke",
1182
+ "borderColor",
1183
+ "borderTopColor",
1184
+ "borderRightColor",
1185
+ "borderBottomColor",
1186
+ "borderLeftColor"
1187
+ ]), xa = /* @__PURE__ */ ss(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
1188
+ function wa(t) {
1189
+ const { motionValue: e, name: i, repeatDelay: n, repeatType: s, damping: o, type: r, keyframes: a } = t;
1190
+ if (!(e?.owner?.current instanceof HTMLElement)) return !1;
1191
+ const { onUpdate: l, transformTemplate: c } = e.owner.getProps();
1192
+ return xa() && i && (js.has(i) || Ta.has(i) && ya(a)) && (i !== "transform" || !c) && !l && !n && s !== "mirror" && o !== 0 && r !== "inertia";
1193
+ }
1194
+ var Pa = 40, Sa = class extends mi {
1195
+ constructor({ autoplay: t = !0, delay: e = 0, type: i = "keyframes", repeat: n = 0, repeatDelay: s = 0, repeatType: o = "loop", keyframes: r, name: a, motionValue: l, element: c, ...u }) {
1196
+ super(), this.stop = () => {
1197
+ this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
1198
+ }, this.createdAt = O.now();
1199
+ const h = {
1200
+ autoplay: t,
1201
+ delay: e,
1202
+ type: i,
1203
+ repeat: n,
1204
+ repeatDelay: s,
1205
+ repeatType: o,
1206
+ name: a,
1207
+ motionValue: l,
1208
+ element: c,
1209
+ ...u
1210
+ }, f = c?.KeyframeResolver || vi;
1211
+ this.keyframeResolver = new f(r, (p, d, m) => this.onKeyframesResolved(p, d, h, !m), a, l, c), this.keyframeResolver?.scheduleResolve();
1212
+ }
1213
+ onKeyframesResolved(t, e, i, n) {
1214
+ this.keyframeResolver = void 0;
1215
+ const { name: s, type: o, velocity: r, delay: a, isHandoff: l, onUpdate: c } = i;
1216
+ this.resolvedAt = O.now();
1217
+ let u = !0;
1218
+ va(t, s, o, r) || (u = !1, (st.instantAnimations || !a) && c?.(fe(t, i, e)), t[0] = t[t.length - 1], Ke(i), i.repeat = 0);
1219
+ const h = {
1220
+ startTime: n ? this.resolvedAt ? this.resolvedAt - this.createdAt > Pa ? this.resolvedAt : this.createdAt : this.createdAt : void 0,
1221
+ finalKeyframe: e,
1222
+ ...i,
1223
+ keyframes: t
1224
+ }, f = u && !l && wa(h), p = h.motionValue?.owner?.current;
1225
+ let d;
1226
+ if (f) try {
1227
+ d = new pa({
1228
+ ...h,
1229
+ element: p
1230
+ });
1231
+ } catch {
1232
+ d = new re(h);
1233
+ }
1234
+ else d = new re(h);
1235
+ d.finished.then(() => {
1236
+ this.notifyFinished();
1237
+ }).catch(_), this.pendingTimeline && (this.stopTimeline = d.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = d;
1238
+ }
1239
+ get finished() {
1240
+ return this._animation ? this.animation.finished : this._finished;
1241
+ }
1242
+ then(t, e) {
1243
+ return this.finished.finally(t).then(() => {
1244
+ });
1245
+ }
1246
+ get animation() {
1247
+ return this._animation || (this.keyframeResolver?.resume(), oa()), this._animation;
1248
+ }
1249
+ get duration() {
1250
+ return this.animation.duration;
1251
+ }
1252
+ get iterationDuration() {
1253
+ return this.animation.iterationDuration;
1254
+ }
1255
+ get time() {
1256
+ return this.animation.time;
1257
+ }
1258
+ set time(t) {
1259
+ this.animation.time = t;
1260
+ }
1261
+ get speed() {
1262
+ return this.animation.speed;
1263
+ }
1264
+ get state() {
1265
+ return this.animation.state;
1266
+ }
1267
+ set speed(t) {
1268
+ this.animation.speed = t;
1269
+ }
1270
+ get startTime() {
1271
+ return this.animation.startTime;
1272
+ }
1273
+ attachTimeline(t) {
1274
+ return this._animation ? this.stopTimeline = this.animation.attachTimeline(t) : this.pendingTimeline = t, () => this.stop();
1275
+ }
1276
+ play() {
1277
+ this.animation.play();
1278
+ }
1279
+ pause() {
1280
+ this.animation.pause();
1281
+ }
1282
+ complete() {
1283
+ this.animation.complete();
1284
+ }
1285
+ cancel() {
1286
+ this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
1287
+ }
1288
+ };
1289
+ function Ns(t, e, i, n = 0, s = 1) {
1290
+ const o = Array.from(t).sort((l, c) => l.sortNodePosition(c)).indexOf(e), r = t.size, a = (r - 1) * n;
1291
+ return typeof i == "function" ? i(o, r) : s === 1 ? o * n : a - o * n;
1292
+ }
1293
+ var Gi = 30, ba = (t) => !isNaN(parseFloat(t)), Xi = { current: void 0 }, Aa = class {
1294
+ constructor(t, e = {}) {
1295
+ this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (i) => {
1296
+ const n = O.now();
1297
+ if (this.updatedAt !== n && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(i), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents))
1298
+ for (const s of this.dependents) s.dirty();
1299
+ }, this.hasAnimated = !1, this.setCurrent(t), this.owner = e.owner;
1300
+ }
1301
+ setCurrent(t) {
1302
+ this.current = t, this.updatedAt = O.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = ba(this.current));
1303
+ }
1304
+ setPrevFrameValue(t = this.current) {
1305
+ this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
1306
+ }
1307
+ onChange(t) {
1308
+ return process.env.NODE_ENV !== "production" && ai(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
1309
+ }
1310
+ on(t, e) {
1311
+ this.events[t] || (this.events[t] = new oi());
1312
+ const i = this.events[t].add(e);
1313
+ return t === "change" ? () => {
1314
+ i(), M.read(() => {
1315
+ this.events.change.getSize() || this.stop();
1316
+ });
1317
+ } : i;
1318
+ }
1319
+ clearListeners() {
1320
+ for (const t in this.events) this.events[t].clear();
1321
+ }
1322
+ attach(t, e) {
1323
+ this.passiveEffect = t, this.stopPassiveEffect = e;
1324
+ }
1325
+ set(t) {
1326
+ this.passiveEffect ? this.passiveEffect(t, this.updateAndNotify) : this.updateAndNotify(t);
1327
+ }
1328
+ setWithVelocity(t, e, i) {
1329
+ this.set(e), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - i;
1330
+ }
1331
+ jump(t, e = !0) {
1332
+ this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, e && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1333
+ }
1334
+ dirty() {
1335
+ this.events.change?.notify(this.current);
1336
+ }
1337
+ addDependent(t) {
1338
+ this.dependents || (this.dependents = /* @__PURE__ */ new Set()), this.dependents.add(t);
1339
+ }
1340
+ removeDependent(t) {
1341
+ this.dependents && this.dependents.delete(t);
1342
+ }
1343
+ get() {
1344
+ return Xi.current && Xi.current.push(this), this.current;
1345
+ }
1346
+ getPrevious() {
1347
+ return this.prev;
1348
+ }
1349
+ getVelocity() {
1350
+ const t = O.now();
1351
+ if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > Gi) return 0;
1352
+ const e = Math.min(this.updatedAt - this.prevUpdatedAt, Gi);
1353
+ return rs(parseFloat(this.current) - parseFloat(this.prevFrameValue), e);
1354
+ }
1355
+ start(t) {
1356
+ return this.stop(), new Promise((e) => {
1357
+ this.hasAnimated = !0, this.animation = t(e), this.events.animationStart && this.events.animationStart.notify();
1358
+ }).then(() => {
1359
+ this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
1360
+ });
1361
+ }
1362
+ stop() {
1363
+ this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
1364
+ }
1365
+ isAnimating() {
1366
+ return !!this.animation;
1367
+ }
1368
+ clearAnimation() {
1369
+ delete this.animation;
1370
+ }
1371
+ destroy() {
1372
+ this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
1373
+ }
1374
+ };
1375
+ function At(t, e) {
1376
+ return new Aa(t, e);
1377
+ }
1378
+ function Us(t, e) {
1379
+ if (t?.inherit && e) {
1380
+ const { inherit: i, ...n } = t;
1381
+ return {
1382
+ ...e,
1383
+ ...n
1384
+ };
1385
+ }
1386
+ return t;
1387
+ }
1388
+ function gi(t, e) {
1389
+ const i = t?.[e] ?? t?.default ?? t;
1390
+ return i !== t ? Us(i, t) : i;
1391
+ }
1392
+ var Va = {
1393
+ type: "spring",
1394
+ stiffness: 500,
1395
+ damping: 25,
1396
+ restSpeed: 10
1397
+ }, Ma = (t) => ({
1398
+ type: "spring",
1399
+ stiffness: 550,
1400
+ damping: t === 0 ? 2 * Math.sqrt(550) : 30,
1401
+ restSpeed: 10
1402
+ }), Ca = {
1403
+ type: "keyframes",
1404
+ duration: 0.8
1405
+ }, Da = {
1406
+ type: "keyframes",
1407
+ ease: [
1408
+ 0.25,
1409
+ 0.1,
1410
+ 0.35,
1411
+ 1
1412
+ ],
1413
+ duration: 0.3
1414
+ }, Ea = (t, { keyframes: e }) => e.length > 2 ? Ca : Et.has(t) ? t.startsWith("scale") ? Ma(e[1]) : Va : Da, Ra = /* @__PURE__ */ new Set([
1415
+ "when",
1416
+ "delay",
1417
+ "delayChildren",
1418
+ "staggerChildren",
1419
+ "staggerDirection",
1420
+ "repeat",
1421
+ "repeatType",
1422
+ "repeatDelay",
1423
+ "from",
1424
+ "elapsed"
1425
+ ]);
1426
+ function La(t) {
1427
+ for (const e in t) if (!Ra.has(e)) return !0;
1428
+ return !1;
1429
+ }
1430
+ var yi = (t, e, i, n = {}, s, o) => (r) => {
1431
+ const a = gi(n, t) || {}, l = a.delay || n.delay || 0;
1432
+ let { elapsed: c = 0 } = n;
1433
+ c = c - W(l);
1434
+ const u = {
1435
+ keyframes: Array.isArray(i) ? i : [null, i],
1436
+ ease: "easeOut",
1437
+ velocity: e.getVelocity(),
1438
+ ...a,
1439
+ delay: -c,
1440
+ onUpdate: (f) => {
1441
+ e.set(f), a.onUpdate && a.onUpdate(f);
1442
+ },
1443
+ onComplete: () => {
1444
+ r(), a.onComplete && a.onComplete();
1445
+ },
1446
+ name: t,
1447
+ motionValue: e,
1448
+ element: o ? void 0 : s
1449
+ };
1450
+ La(a) || Object.assign(u, Ea(t, u)), u.duration && (u.duration = W(u.duration)), u.repeatDelay && (u.repeatDelay = W(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
1451
+ let h = !1;
1452
+ if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Ke(u), u.delay === 0 && (h = !0)), (st.instantAnimations || st.skipAnimations || s?.shouldSkipAnimations || a.skipAnimations) && (h = !0, Ke(u), u.delay = 0), u.allowFlatten = !a.type && !a.ease, h && !o && e.get() !== void 0) {
1453
+ const f = fe(u.keyframes, a);
1454
+ if (f !== void 0) {
1455
+ M.update(() => {
1456
+ u.onUpdate(f), u.onComplete();
1457
+ });
1458
+ return;
1459
+ }
1460
+ }
1461
+ return a.isSync ? new re(u) : new Sa(u);
1462
+ }, ka = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
1463
+ function Ba(t) {
1464
+ const e = ka.exec(t);
1465
+ if (!e) return [,];
1466
+ const [, i, n, s] = e;
1467
+ return [`--${i ?? n}`, s];
1468
+ }
1469
+ var Ia = 4;
1470
+ function Ws(t, e, i = 1) {
1471
+ it(i <= Ia, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
1472
+ const [n, s] = Ba(t);
1473
+ if (!n) return;
1474
+ const o = window.getComputedStyle(e).getPropertyValue(n);
1475
+ if (o) {
1476
+ const r = o.trim();
1477
+ return es(r) ? parseFloat(r) : r;
1478
+ }
1479
+ return ci(s) ? Ws(s, e, i + 1) : s;
1480
+ }
1481
+ function Yi(t) {
1482
+ const e = [{}, {}];
1483
+ return t?.values.forEach((i, n) => {
1484
+ e[0][n] = i.get(), e[1][n] = i.getVelocity();
1485
+ }), e;
1486
+ }
1487
+ function Ti(t, e, i, n) {
1488
+ if (typeof e == "function") {
1489
+ const [s, o] = Yi(n);
1490
+ e = e(i !== void 0 ? i : t.custom, s, o);
1491
+ }
1492
+ if (typeof e == "string" && (e = t.variants && t.variants[e]), typeof e == "function") {
1493
+ const [s, o] = Yi(n);
1494
+ e = e(i !== void 0 ? i : t.custom, s, o);
1495
+ }
1496
+ return e;
1497
+ }
1498
+ function vt(t, e, i) {
1499
+ const n = t.getProps();
1500
+ return Ti(n, e, i !== void 0 ? i : n.custom, t);
1501
+ }
1502
+ var $s = /* @__PURE__ */ new Set([
1503
+ "width",
1504
+ "height",
1505
+ "top",
1506
+ "left",
1507
+ "right",
1508
+ "bottom",
1509
+ ...Dt
1510
+ ]), _e = (t) => Array.isArray(t);
1511
+ function Fa(t, e, i) {
1512
+ t.hasValue(e) ? t.getValue(e).set(i) : t.addValue(e, At(i));
1513
+ }
1514
+ function Oa(t) {
1515
+ return _e(t) ? t[t.length - 1] || 0 : t;
1516
+ }
1517
+ function ja(t, e) {
1518
+ let { transitionEnd: i = {}, transition: n = {}, ...s } = vt(t, e) || {};
1519
+ s = {
1520
+ ...s,
1521
+ ...i
1522
+ };
1523
+ for (const o in s) Fa(t, o, Oa(s[o]));
1524
+ }
1525
+ var F = (t) => !!(t && t.getVelocity);
1526
+ function Na(t) {
1527
+ return !!(F(t) && t.add);
1528
+ }
1529
+ function ze(t, e) {
1530
+ const i = t.getValue("willChange");
1531
+ if (Na(i)) return i.add(e);
1532
+ if (!i && st.WillChange) {
1533
+ const n = new st.WillChange("auto");
1534
+ t.addValue("willChange", n), n.add(e);
1535
+ }
1536
+ }
1537
+ function xi(t) {
1538
+ return t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
1539
+ }
1540
+ var Ua = "framerAppearId", Ks = "data-" + xi(Ua);
1541
+ function _s(t) {
1542
+ return t.props[Ks];
1543
+ }
1544
+ function Wa({ protectedKeys: t, needsAnimating: e }, i) {
1545
+ const n = t.hasOwnProperty(i) && e[i] !== !0;
1546
+ return e[i] = !1, n;
1547
+ }
1548
+ function zs(t, e, { delay: i = 0, transitionOverride: n, type: s } = {}) {
1549
+ let { transition: o, transitionEnd: r, ...a } = e;
1550
+ const l = t.getDefaultTransition();
1551
+ o = o ? Us(o, l) : l;
1552
+ const c = o?.reduceMotion, u = o?.skipAnimations;
1553
+ n && (o = n);
1554
+ const h = [], f = s && t.animationState && t.animationState.getState()[s], p = o?.path;
1555
+ p && p.animateVisualElement(t, a, o, i, h);
1556
+ for (const d in a) {
1557
+ const m = t.getValue(d, t.latestValues[d] ?? null), v = a[d];
1558
+ if (v === void 0 || f && Wa(f, d)) continue;
1559
+ const g = {
1560
+ delay: i,
1561
+ ...gi(o || {}, d)
1562
+ };
1563
+ u && (g.skipAnimations = !0);
1564
+ const T = m.get();
1565
+ if (T !== void 0 && !m.isAnimating() && !Array.isArray(v) && v === T && !g.velocity) {
1566
+ M.update(() => m.set(v));
1567
+ continue;
1568
+ }
1569
+ let x = !1;
1570
+ if (window.MotionHandoffAnimation) {
1571
+ const A = _s(t);
1572
+ if (A) {
1573
+ const D = window.MotionHandoffAnimation(A, d, M);
1574
+ D !== null && (g.startTime = D, x = !0);
1575
+ }
1576
+ }
1577
+ ze(t, d);
1578
+ const w = c ?? t.shouldReduceMotion;
1579
+ m.start(yi(d, m, v, w && $s.has(d) ? { type: !1 } : g, t, x));
1580
+ const P = m.animation;
1581
+ P && h.push(P);
1582
+ }
1583
+ if (r) {
1584
+ const d = () => M.update(() => {
1585
+ r && ja(t, r);
1586
+ });
1587
+ h.length ? Promise.all(h).then(d) : d();
1588
+ }
1589
+ return h;
1590
+ }
1591
+ function He(t, e, i = {}) {
1592
+ const n = vt(t, e, i.type === "exit" ? t.presenceContext?.custom : void 0);
1593
+ let { transition: s = t.getDefaultTransition() || {} } = n || {};
1594
+ i.transitionOverride && (s = i.transitionOverride);
1595
+ const o = n ? () => Promise.all(zs(t, n, i)) : () => Promise.resolve(), r = t.variantChildren && t.variantChildren.size ? (l = 0) => {
1596
+ const { delayChildren: c = 0, staggerChildren: u, staggerDirection: h } = s;
1597
+ return $a(t, e, l, c, u, h, i);
1598
+ } : () => Promise.resolve(), { when: a } = s;
1599
+ if (a) {
1600
+ const [l, c] = a === "beforeChildren" ? [o, r] : [r, o];
1601
+ return l().then(() => c());
1602
+ } else return Promise.all([o(), r(i.delay)]);
1603
+ }
1604
+ function $a(t, e, i = 0, n = 0, s = 0, o = 1, r) {
1605
+ const a = [];
1606
+ for (const l of t.variantChildren)
1607
+ l.notify("AnimationStart", e), a.push(He(l, e, {
1608
+ ...r,
1609
+ delay: i + (typeof n == "function" ? 0 : n) + Ns(t.variantChildren, l, n, s, o)
1610
+ }).then(() => l.notify("AnimationComplete", e)));
1611
+ return Promise.all(a);
1612
+ }
1613
+ function Ka(t, e, i = {}) {
1614
+ t.notify("AnimationStart", e);
1615
+ let n;
1616
+ if (Array.isArray(e)) {
1617
+ const s = e.map((o) => He(t, o, i));
1618
+ n = Promise.all(s);
1619
+ } else if (typeof e == "string") n = He(t, e, i);
1620
+ else {
1621
+ const s = typeof e == "function" ? vt(t, e, i.custom) : e;
1622
+ n = Promise.all(zs(t, s, i));
1623
+ }
1624
+ return n.then(() => {
1625
+ t.notify("AnimationComplete", e);
1626
+ });
1627
+ }
1628
+ var _a = {
1629
+ test: (t) => t === "auto",
1630
+ parse: (t) => t
1631
+ }, Hs = (t) => (e) => e.test(t), Gs = [
1632
+ Ct,
1633
+ y,
1634
+ J,
1635
+ et,
1636
+ mo,
1637
+ po,
1638
+ _a
1639
+ ], qi = (t) => Gs.find(Hs(t));
1640
+ function za(t) {
1641
+ return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || ns(t) : !0;
1642
+ }
1643
+ var Ha = /* @__PURE__ */ new Set([
1644
+ "brightness",
1645
+ "contrast",
1646
+ "saturate",
1647
+ "opacity"
1648
+ ]);
1649
+ function Ga(t) {
1650
+ const [e, i] = t.slice(0, -1).split("(");
1651
+ if (e === "drop-shadow") return t;
1652
+ const [n] = i.match(hi) || [];
1653
+ if (!n) return t;
1654
+ const s = i.replace(n, "");
1655
+ let o = Ha.has(e) ? 1 : 0;
1656
+ return n !== i && (o *= 100), e + "(" + o + s + ")";
1657
+ }
1658
+ var Xa = /\b([a-z-]*)\(.*?\)/gu, Ge = {
1659
+ ...G,
1660
+ getAnimatableNone: (t) => {
1661
+ const e = t.match(Xa);
1662
+ return e ? e.map(Ga).join(" ") : t;
1663
+ }
1664
+ }, Xe = {
1665
+ ...G,
1666
+ getAnimatableNone: (t) => {
1667
+ const e = G.parse(t);
1668
+ return G.createTransformer(t)(e.map((i) => typeof i == "number" ? 0 : typeof i == "object" ? {
1669
+ ...i,
1670
+ alpha: 1
1671
+ } : i));
1672
+ }
1673
+ }, Zi = {
1674
+ ...Ct,
1675
+ transform: Math.round
1676
+ }, Ya = {
1677
+ rotate: et,
1678
+ pathRotation: et,
1679
+ rotateX: et,
1680
+ rotateY: et,
1681
+ rotateZ: et,
1682
+ scale: zt,
1683
+ scaleX: zt,
1684
+ scaleY: zt,
1685
+ scaleZ: zt,
1686
+ skew: et,
1687
+ skewX: et,
1688
+ skewY: et,
1689
+ distance: y,
1690
+ translateX: y,
1691
+ translateY: y,
1692
+ translateZ: y,
1693
+ x: y,
1694
+ y,
1695
+ z: y,
1696
+ perspective: y,
1697
+ transformPerspective: y,
1698
+ opacity: Ot,
1699
+ originX: Ii,
1700
+ originY: Ii,
1701
+ originZ: y
1702
+ }, oe = {
1703
+ borderWidth: y,
1704
+ borderTopWidth: y,
1705
+ borderRightWidth: y,
1706
+ borderBottomWidth: y,
1707
+ borderLeftWidth: y,
1708
+ borderRadius: y,
1709
+ borderTopLeftRadius: y,
1710
+ borderTopRightRadius: y,
1711
+ borderBottomRightRadius: y,
1712
+ borderBottomLeftRadius: y,
1713
+ width: y,
1714
+ maxWidth: y,
1715
+ height: y,
1716
+ maxHeight: y,
1717
+ top: y,
1718
+ right: y,
1719
+ bottom: y,
1720
+ left: y,
1721
+ inset: y,
1722
+ insetBlock: y,
1723
+ insetBlockStart: y,
1724
+ insetBlockEnd: y,
1725
+ insetInline: y,
1726
+ insetInlineStart: y,
1727
+ insetInlineEnd: y,
1728
+ padding: y,
1729
+ paddingTop: y,
1730
+ paddingRight: y,
1731
+ paddingBottom: y,
1732
+ paddingLeft: y,
1733
+ paddingBlock: y,
1734
+ paddingBlockStart: y,
1735
+ paddingBlockEnd: y,
1736
+ paddingInline: y,
1737
+ paddingInlineStart: y,
1738
+ paddingInlineEnd: y,
1739
+ margin: y,
1740
+ marginTop: y,
1741
+ marginRight: y,
1742
+ marginBottom: y,
1743
+ marginLeft: y,
1744
+ marginBlock: y,
1745
+ marginBlockStart: y,
1746
+ marginBlockEnd: y,
1747
+ marginInline: y,
1748
+ marginInlineStart: y,
1749
+ marginInlineEnd: y,
1750
+ fontSize: y,
1751
+ backgroundPositionX: y,
1752
+ backgroundPositionY: y,
1753
+ ...Ya,
1754
+ zIndex: Zi,
1755
+ fillOpacity: Ot,
1756
+ strokeOpacity: Ot,
1757
+ numOctaves: Zi
1758
+ }, qa = {
1759
+ ...oe,
1760
+ color: R,
1761
+ backgroundColor: R,
1762
+ outlineColor: R,
1763
+ fill: R,
1764
+ stroke: R,
1765
+ borderColor: R,
1766
+ borderTopColor: R,
1767
+ borderRightColor: R,
1768
+ borderBottomColor: R,
1769
+ borderLeftColor: R,
1770
+ filter: Ge,
1771
+ WebkitFilter: Ge,
1772
+ mask: Xe,
1773
+ WebkitMask: Xe
1774
+ }, Xs = (t) => qa[t], Za = /* @__PURE__ */ new Set([Ge, Xe]);
1775
+ function Ys(t, e) {
1776
+ let i = Xs(t);
1777
+ return Za.has(i) || (i = G), i.getAnimatableNone ? i.getAnimatableNone(e) : void 0;
1778
+ }
1779
+ var Ja = /* @__PURE__ */ new Set([
1780
+ "auto",
1781
+ "none",
1782
+ "0"
1783
+ ]);
1784
+ function Qa(t, e, i) {
1785
+ let n = 0, s;
1786
+ for (; n < t.length && !s; ) {
1787
+ const o = t[n];
1788
+ typeof o == "string" && !Ja.has(o) && bt(o).values.length && (s = t[n]), n++;
1789
+ }
1790
+ if (s && i) for (const o of e) t[o] = Ys(i, s);
1791
+ }
1792
+ var tl = class extends vi {
1793
+ constructor(t, e, i, n, s) {
1794
+ super(t, e, i, n, s, !0);
1795
+ }
1796
+ readKeyframes() {
1797
+ const { unresolvedKeyframes: t, element: e, name: i } = this;
1798
+ if (!e || !e.current) return;
1799
+ super.readKeyframes();
1800
+ for (let a = 0; a < t.length; a++) {
1801
+ let l = t[a];
1802
+ if (typeof l == "string" && (l = l.trim(), ci(l))) {
1803
+ const c = Ws(l, e.current);
1804
+ c !== void 0 && (t[a] = c), a === t.length - 1 && (this.finalKeyframe = l);
1805
+ }
1806
+ }
1807
+ if (this.resolveNoneKeyframes(), !$s.has(i) || t.length !== 2) return;
1808
+ const [n, s] = t, o = qi(n), r = qi(s);
1809
+ if (Bi(n) !== Bi(s) && nt[i]) {
1810
+ this.needsMeasurement = !0;
1811
+ return;
1812
+ }
1813
+ if (o !== r)
1814
+ if (_i(o) && _i(r)) for (let a = 0; a < t.length; a++) {
1815
+ const l = t[a];
1816
+ typeof l == "string" && (t[a] = parseFloat(l));
1817
+ }
1818
+ else nt[i] && (this.needsMeasurement = !0);
1819
+ }
1820
+ resolveNoneKeyframes() {
1821
+ const { unresolvedKeyframes: t, name: e } = this, i = [];
1822
+ for (let n = 0; n < t.length; n++) (t[n] === null || za(t[n])) && i.push(n);
1823
+ i.length && Qa(t, i, e);
1824
+ }
1825
+ measureInitialState() {
1826
+ const { element: t, unresolvedKeyframes: e, name: i } = this;
1827
+ if (!t || !t.current) return;
1828
+ i === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = nt[i](t.measureViewportBox(), window.getComputedStyle(t.current)), e[0] = this.measuredOrigin;
1829
+ const n = e[e.length - 1];
1830
+ n !== void 0 && t.getValue(i, n).jump(n, !1);
1831
+ }
1832
+ measureEndState() {
1833
+ const { element: t, name: e, unresolvedKeyframes: i } = this;
1834
+ if (!t || !t.current) return;
1835
+ const n = t.getValue(e);
1836
+ n && n.jump(this.measuredOrigin, !1);
1837
+ const s = i.length - 1, o = i[s];
1838
+ i[s] = nt[e](t.measureViewportBox(), window.getComputedStyle(t.current)), o !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = o), this.removedTransforms?.length && this.removedTransforms.forEach(([r, a]) => {
1839
+ t.getValue(r).set(a);
1840
+ }), this.resolveNoneKeyframes();
1841
+ }
1842
+ }, wi = [
1843
+ "borderTopLeftRadius",
1844
+ "borderTopRightRadius",
1845
+ "borderBottomRightRadius",
1846
+ "borderBottomLeftRadius"
1847
+ ];
1848
+ function qs(t, e, i) {
1849
+ if (t == null) return [];
1850
+ if (t instanceof EventTarget) return [t];
1851
+ if (typeof t == "string") {
1852
+ let n = document;
1853
+ e && (n = e.current);
1854
+ const s = i?.[t] ?? n.querySelectorAll(t);
1855
+ return s ? Array.from(s) : [];
1856
+ }
1857
+ return Array.from(t).filter((n) => n != null);
1858
+ }
1859
+ var Ye = (t, e) => e && typeof t == "number" ? e.transform(t) : t;
1860
+ function el(t) {
1861
+ return is(t) && "offsetHeight" in t && !("ownerSVGElement" in t);
1862
+ }
1863
+ var { schedule: Pi, cancel: qc } = /* @__PURE__ */ vs(queueMicrotask, !1), H = {
1864
+ x: !1,
1865
+ y: !1
1866
+ };
1867
+ function Zs() {
1868
+ return H.x || H.y;
1869
+ }
1870
+ function il(t) {
1871
+ return t === "x" || t === "y" ? H[t] ? null : (H[t] = !0, () => {
1872
+ H[t] = !1;
1873
+ }) : H.x || H.y ? null : (H.x = H.y = !0, () => {
1874
+ H.x = H.y = !1;
1875
+ });
1876
+ }
1877
+ function Js(t, e) {
1878
+ const i = qs(t), n = new AbortController(), s = {
1879
+ passive: !0,
1880
+ ...e,
1881
+ signal: n.signal
1882
+ };
1883
+ return [
1884
+ i,
1885
+ s,
1886
+ () => n.abort()
1887
+ ];
1888
+ }
1889
+ function nl(t) {
1890
+ return !(t.pointerType === "touch" || Zs());
1891
+ }
1892
+ function sl(t, e, i = {}) {
1893
+ const [n, s, o] = Js(t, i);
1894
+ return n.forEach((r) => {
1895
+ let a = !1, l = !1, c;
1896
+ const u = () => {
1897
+ r.removeEventListener("pointerleave", d);
1898
+ }, h = (v) => {
1899
+ c && (c(v), c = void 0), u();
1900
+ }, f = (v) => {
1901
+ a = !1, window.removeEventListener("pointerup", f), window.removeEventListener("pointercancel", f), l && (l = !1, h(v));
1902
+ }, p = () => {
1903
+ a = !0, window.addEventListener("pointerup", f, s), window.addEventListener("pointercancel", f, s);
1904
+ }, d = (v) => {
1905
+ if (v.pointerType !== "touch") {
1906
+ if (a) {
1907
+ l = !0;
1908
+ return;
1909
+ }
1910
+ h(v);
1911
+ }
1912
+ }, m = (v) => {
1913
+ if (!nl(v)) return;
1914
+ l = !1;
1915
+ const g = e(r, v);
1916
+ typeof g == "function" && (c = g, r.addEventListener("pointerleave", d, s));
1917
+ };
1918
+ r.addEventListener("pointerenter", m, s), r.addEventListener("pointerdown", p, s);
1919
+ }), o;
1920
+ }
1921
+ var Qs = (t, e) => e ? t === e ? !0 : Qs(t, e.parentElement) : !1, Si = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, rl = /* @__PURE__ */ new Set([
1922
+ "BUTTON",
1923
+ "INPUT",
1924
+ "SELECT",
1925
+ "TEXTAREA",
1926
+ "A"
1927
+ ]);
1928
+ function ol(t) {
1929
+ return rl.has(t.tagName) || t.isContentEditable === !0;
1930
+ }
1931
+ var al = /* @__PURE__ */ new Set([
1932
+ "INPUT",
1933
+ "SELECT",
1934
+ "TEXTAREA"
1935
+ ]);
1936
+ function ll(t) {
1937
+ return al.has(t.tagName) || t.isContentEditable === !0;
1938
+ }
1939
+ var Yt = /* @__PURE__ */ new WeakSet();
1940
+ function Ji(t) {
1941
+ return (e) => {
1942
+ e.key === "Enter" && t(e);
1943
+ };
1944
+ }
1945
+ function we(t, e) {
1946
+ t.dispatchEvent(new PointerEvent("pointer" + e, {
1947
+ isPrimary: !0,
1948
+ bubbles: !0
1949
+ }));
1950
+ }
1951
+ var ul = (t, e) => {
1952
+ const i = t.currentTarget;
1953
+ if (!i) return;
1954
+ const n = Ji(() => {
1955
+ if (Yt.has(i)) return;
1956
+ we(i, "down");
1957
+ const s = Ji(() => {
1958
+ we(i, "up");
1959
+ }), o = () => we(i, "cancel");
1960
+ i.addEventListener("keyup", s, e), i.addEventListener("blur", o, e);
1961
+ });
1962
+ i.addEventListener("keydown", n, e), i.addEventListener("blur", () => i.removeEventListener("keydown", n), e);
1963
+ };
1964
+ function Qi(t) {
1965
+ return Si(t) && !Zs();
1966
+ }
1967
+ var tn = /* @__PURE__ */ new WeakSet();
1968
+ function cl(t, e, i = {}) {
1969
+ const [n, s, o] = Js(t, i), r = (a) => {
1970
+ const l = a.currentTarget;
1971
+ if (!Qi(a) || tn.has(a)) return;
1972
+ Yt.add(l), i.stopPropagation && tn.add(a);
1973
+ const c = e(l, a), u = {
1974
+ ...s,
1975
+ capture: !0
1976
+ }, h = (d, m) => {
1977
+ window.removeEventListener("pointerup", f, u), window.removeEventListener("pointercancel", p, u), Yt.has(l) && Yt.delete(l), Qi(d) && typeof c == "function" && c(d, { success: m });
1978
+ }, f = (d) => {
1979
+ h(d, l === window || l === document || i.useGlobalTarget || Qs(l, d.target));
1980
+ }, p = (d) => {
1981
+ h(d, !1);
1982
+ };
1983
+ window.addEventListener("pointerup", f, u), window.addEventListener("pointercancel", p, u);
1984
+ };
1985
+ return n.forEach((a) => {
1986
+ (i.useGlobalTarget ? window : a).addEventListener("pointerdown", r, s), el(a) && (a.addEventListener("focus", (l) => ul(l, s)), !ol(a) && !a.hasAttribute("tabindex") && (a.tabIndex = 0));
1987
+ }), o;
1988
+ }
1989
+ function bi(t) {
1990
+ return is(t) && "ownerSVGElement" in t;
1991
+ }
1992
+ var qt = /* @__PURE__ */ new WeakMap(), Zt, tr = (t, e, i) => (n, s) => s && s[0] ? s[0][t + "Size"] : bi(n) && "getBBox" in n ? n.getBBox()[e] : n[i], hl = /* @__PURE__ */ tr("inline", "width", "offsetWidth"), fl = /* @__PURE__ */ tr("block", "height", "offsetHeight");
1993
+ function dl({ target: t, borderBoxSize: e }) {
1994
+ qt.get(t)?.forEach((i) => {
1995
+ i(t, {
1996
+ get width() {
1997
+ return hl(t, e);
1998
+ },
1999
+ get height() {
2000
+ return fl(t, e);
2001
+ }
2002
+ });
2003
+ });
2004
+ }
2005
+ function pl(t) {
2006
+ t.forEach(dl);
2007
+ }
2008
+ function ml() {
2009
+ typeof ResizeObserver > "u" || (Zt = new ResizeObserver(pl));
2010
+ }
2011
+ function vl(t, e) {
2012
+ Zt || ml();
2013
+ const i = qs(t);
2014
+ return i.forEach((n) => {
2015
+ let s = qt.get(n);
2016
+ s || (s = /* @__PURE__ */ new Set(), qt.set(n, s)), s.add(e), Zt?.observe(n);
2017
+ }), () => {
2018
+ i.forEach((n) => {
2019
+ const s = qt.get(n);
2020
+ s?.delete(e), s?.size || Zt?.unobserve(n);
2021
+ });
2022
+ };
2023
+ }
2024
+ var Jt = /* @__PURE__ */ new Set(), Pt;
2025
+ function gl() {
2026
+ Pt = () => {
2027
+ const t = {
2028
+ get width() {
2029
+ return window.innerWidth;
2030
+ },
2031
+ get height() {
2032
+ return window.innerHeight;
2033
+ }
2034
+ };
2035
+ Jt.forEach((e) => e(t));
2036
+ }, window.addEventListener("resize", Pt);
2037
+ }
2038
+ function yl(t) {
2039
+ return Jt.add(t), Pt || gl(), () => {
2040
+ Jt.delete(t), !Jt.size && typeof Pt == "function" && (window.removeEventListener("resize", Pt), Pt = void 0);
2041
+ };
2042
+ }
2043
+ function en(t, e) {
2044
+ return typeof t == "function" ? yl(t) : vl(t, e);
2045
+ }
2046
+ var yt = {
2047
+ value: null,
2048
+ addProjectionMetrics: null
2049
+ };
2050
+ function Tl(t) {
2051
+ return bi(t) && t.tagName === "svg";
2052
+ }
2053
+ var xl = [
2054
+ ...Gs,
2055
+ R,
2056
+ G
2057
+ ], wl = (t) => xl.find(Hs(t)), nn = () => ({
2058
+ translate: 0,
2059
+ scale: 1,
2060
+ origin: 0,
2061
+ originPoint: 0
2062
+ }), St = () => ({
2063
+ x: nn(),
2064
+ y: nn()
2065
+ }), sn = () => ({
2066
+ min: 0,
2067
+ max: 0
2068
+ }), L = () => ({
2069
+ x: sn(),
2070
+ y: sn()
2071
+ }), Pl = /* @__PURE__ */ new WeakMap();
2072
+ function de(t) {
2073
+ return t !== null && typeof t == "object" && typeof t.start == "function";
2074
+ }
2075
+ function jt(t) {
2076
+ return typeof t == "string" || Array.isArray(t);
2077
+ }
2078
+ var Ai = [
2079
+ "animate",
2080
+ "whileInView",
2081
+ "whileFocus",
2082
+ "whileHover",
2083
+ "whileTap",
2084
+ "whileDrag",
2085
+ "exit"
2086
+ ], Vi = ["initial", ...Ai];
2087
+ function pe(t) {
2088
+ return de(t.animate) || Vi.some((e) => jt(t[e]));
2089
+ }
2090
+ function er(t) {
2091
+ return !!(pe(t) || t.variants);
2092
+ }
2093
+ function Sl(t, e, i) {
2094
+ for (const n in e) {
2095
+ const s = e[n], o = i[n];
2096
+ if (F(s)) t.addValue(n, s);
2097
+ else if (F(o)) t.addValue(n, At(s, { owner: t }));
2098
+ else if (o !== s) if (t.hasValue(n)) {
2099
+ const r = t.getValue(n);
2100
+ r.liveStyle === !0 ? r.jump(s) : r.hasAnimated || r.set(s);
2101
+ } else {
2102
+ const r = t.getStaticValue(n);
2103
+ t.addValue(n, At(r !== void 0 ? r : s, { owner: t }));
2104
+ }
2105
+ }
2106
+ for (const n in i) e[n] === void 0 && t.removeValue(n);
2107
+ return e;
2108
+ }
2109
+ var qe = { current: null }, ir = { current: !1 }, bl = typeof window < "u";
2110
+ function Al() {
2111
+ if (ir.current = !0, !!bl)
2112
+ if (window.matchMedia) {
2113
+ const t = window.matchMedia("(prefers-reduced-motion)"), e = () => qe.current = t.matches;
2114
+ t.addEventListener("change", e), e();
2115
+ } else qe.current = !1;
2116
+ }
2117
+ var rn = [
2118
+ "AnimationStart",
2119
+ "AnimationComplete",
2120
+ "Update",
2121
+ "BeforeLayoutMeasure",
2122
+ "LayoutMeasure",
2123
+ "LayoutAnimationStart",
2124
+ "LayoutAnimationComplete"
2125
+ ], ae = {};
2126
+ function nr(t) {
2127
+ ae = t;
2128
+ }
2129
+ function Vl() {
2130
+ return ae;
2131
+ }
2132
+ var Ml = class {
2133
+ scrapeMotionValuesFromProps(t, e, i) {
2134
+ return {};
2135
+ }
2136
+ constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: n, skipAnimations: s, blockInitialAnimation: o, visualState: r }, a = {}) {
2137
+ this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = vi, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
2138
+ this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
2139
+ }, this.renderScheduledAt = 0, this.scheduleRender = () => {
2140
+ const f = O.now();
2141
+ this.renderScheduledAt < f && (this.renderScheduledAt = f, M.render(this.render, !1, !0));
2142
+ };
2143
+ const { latestValues: l, renderState: c } = r;
2144
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = e.initial ? { ...l } : {}, this.renderState = c, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = n, this.skipAnimationsConfig = s, this.options = a, this.blockInitialAnimation = !!o, this.isControllingVariants = pe(e), this.isVariantNode = er(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
2145
+ const { willChange: u, ...h } = this.scrapeMotionValuesFromProps(e, {}, this);
2146
+ for (const f in h) {
2147
+ const p = h[f];
2148
+ l[f] !== void 0 && F(p) && p.set(l[f]);
2149
+ }
2150
+ }
2151
+ mount(t) {
2152
+ if (this.hasBeenMounted) for (const e in this.initialValues)
2153
+ this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
2154
+ this.current = t, Pl.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ir.current || Al(), this.shouldReduceMotion = qe.current), process.env.NODE_ENV !== "production" && ai(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
2155
+ }
2156
+ unmount() {
2157
+ 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);
2158
+ for (const t in this.events) this.events[t].clear();
2159
+ for (const t in this.features) {
2160
+ const e = this.features[t];
2161
+ e && (e.unmount(), e.isMounted = !1);
2162
+ }
2163
+ this.current = null;
2164
+ }
2165
+ addChild(t) {
2166
+ this.children.add(t), this.enteringChildren ?? (this.enteringChildren = /* @__PURE__ */ new Set()), this.enteringChildren.add(t);
2167
+ }
2168
+ removeChild(t) {
2169
+ this.children.delete(t), this.enteringChildren && this.enteringChildren.delete(t);
2170
+ }
2171
+ bindToMotionValue(t, e) {
2172
+ if (this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(), e.accelerate && js.has(t) && this.current instanceof HTMLElement) {
2173
+ const { factory: o, keyframes: r, times: a, ease: l, duration: c } = e.accelerate, u = new Fs({
2174
+ element: this.current,
2175
+ name: t,
2176
+ keyframes: r,
2177
+ times: a,
2178
+ ease: l,
2179
+ duration: W(c)
2180
+ }), h = o(u);
2181
+ this.valueSubscriptions.set(t, () => {
2182
+ h(), u.cancel();
2183
+ });
2184
+ return;
2185
+ }
2186
+ const i = Et.has(t);
2187
+ i && this.onBindTransform && this.onBindTransform();
2188
+ const n = e.on("change", (o) => {
2189
+ this.latestValues[t] = o, this.props.onUpdate && M.preRender(this.notifyUpdate), i && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
2190
+ });
2191
+ let s;
2192
+ typeof window < "u" && window.MotionCheckAppearSync && (s = window.MotionCheckAppearSync(this, t, e)), this.valueSubscriptions.set(t, () => {
2193
+ n(), s && s();
2194
+ });
2195
+ }
2196
+ sortNodePosition(t) {
2197
+ return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
2198
+ }
2199
+ updateFeatures() {
2200
+ let t = "animation";
2201
+ for (t in ae) {
2202
+ const e = ae[t];
2203
+ if (!e) continue;
2204
+ const { isEnabled: i, Feature: n } = e;
2205
+ if (!this.features[t] && n && i(this.props) && (this.features[t] = new n(this)), this.features[t]) {
2206
+ const s = this.features[t];
2207
+ s.isMounted ? s.update() : (s.mount(), s.isMounted = !0);
2208
+ }
2209
+ }
2210
+ }
2211
+ triggerBuild() {
2212
+ this.build(this.renderState, this.latestValues, this.props);
2213
+ }
2214
+ measureViewportBox() {
2215
+ return this.current ? this.measureInstanceViewportBox(this.current, this.props) : L();
2216
+ }
2217
+ getStaticValue(t) {
2218
+ return this.latestValues[t];
2219
+ }
2220
+ setStaticValue(t, e) {
2221
+ this.latestValues[t] = e;
2222
+ }
2223
+ update(t, e) {
2224
+ (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
2225
+ for (let i = 0; i < rn.length; i++) {
2226
+ const n = rn[i];
2227
+ this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
2228
+ const s = t["on" + n];
2229
+ s && (this.propEventSubscriptions[n] = this.on(n, s));
2230
+ }
2231
+ this.prevMotionValues = Sl(this, this.scrapeMotionValuesFromProps(t, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
2232
+ }
2233
+ getProps() {
2234
+ return this.props;
2235
+ }
2236
+ getVariant(t) {
2237
+ return this.props.variants ? this.props.variants[t] : void 0;
2238
+ }
2239
+ getDefaultTransition() {
2240
+ return this.props.transition;
2241
+ }
2242
+ getTransformPagePoint() {
2243
+ return this.props.transformPagePoint;
2244
+ }
2245
+ getClosestVariantNode() {
2246
+ return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
2247
+ }
2248
+ addVariantChild(t) {
2249
+ const e = this.getClosestVariantNode();
2250
+ if (e)
2251
+ return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
2252
+ }
2253
+ addValue(t, e) {
2254
+ const i = this.values.get(t);
2255
+ e !== i && (i && this.removeValue(t), this.bindToMotionValue(t, e), this.values.set(t, e), this.latestValues[t] = e.get());
2256
+ }
2257
+ removeValue(t) {
2258
+ this.values.delete(t);
2259
+ const e = this.valueSubscriptions.get(t);
2260
+ e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
2261
+ }
2262
+ hasValue(t) {
2263
+ return this.values.has(t);
2264
+ }
2265
+ getValue(t, e) {
2266
+ if (this.props.values && this.props.values[t]) return this.props.values[t];
2267
+ let i = this.values.get(t);
2268
+ return i === void 0 && e !== void 0 && (i = At(e === null ? void 0 : e, { owner: this }), this.addValue(t, i)), i;
2269
+ }
2270
+ readValue(t, e) {
2271
+ let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
2272
+ return i != null && (typeof i == "string" && (es(i) || ns(i)) ? i = parseFloat(i) : !wl(i) && G.test(e) && (i = Ys(t, e)), this.setBaseTarget(t, F(i) ? i.get() : i)), F(i) ? i.get() : i;
2273
+ }
2274
+ setBaseTarget(t, e) {
2275
+ this.baseTarget[t] = e;
2276
+ }
2277
+ getBaseTarget(t) {
2278
+ const { initial: e } = this.props;
2279
+ let i;
2280
+ if (typeof e == "string" || typeof e == "object") {
2281
+ const s = Ti(this.props, e, this.presenceContext?.custom);
2282
+ s && (i = s[t]);
2283
+ }
2284
+ if (e && i !== void 0) return i;
2285
+ const n = this.getBaseTargetFromProps(this.props, t);
2286
+ return n !== void 0 && !F(n) ? n : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t];
2287
+ }
2288
+ on(t, e) {
2289
+ return this.events[t] || (this.events[t] = new oi()), this.events[t].add(e);
2290
+ }
2291
+ notify(t, ...e) {
2292
+ this.events[t] && this.events[t].notify(...e);
2293
+ }
2294
+ scheduleRenderMicrotask() {
2295
+ Pi.render(this.render);
2296
+ }
2297
+ }, sr = class extends Ml {
2298
+ constructor() {
2299
+ super(...arguments), this.KeyframeResolver = tl;
2300
+ }
2301
+ sortInstanceNodePosition(t, e) {
2302
+ return t.compareDocumentPosition(e) & 2 ? 1 : -1;
2303
+ }
2304
+ getBaseTargetFromProps(t, e) {
2305
+ const i = t.style;
2306
+ return i ? i[e] : void 0;
2307
+ }
2308
+ removeValueFromRenderState(t, { vars: e, style: i }) {
2309
+ delete e[t], delete i[t];
2310
+ }
2311
+ handleChildMotionValue() {
2312
+ this.childSubscription && (this.childSubscription(), delete this.childSubscription);
2313
+ const { children: t } = this.props;
2314
+ F(t) && (this.childSubscription = t.on("change", (e) => {
2315
+ this.current && (this.current.textContent = `${e}`);
2316
+ }));
2317
+ }
2318
+ }, ot = class {
2319
+ constructor(t) {
2320
+ this.isMounted = !1, this.node = t;
2321
+ }
2322
+ update() {
2323
+ }
2324
+ };
2325
+ function rr({ top: t, left: e, right: i, bottom: n }) {
2326
+ return {
2327
+ x: {
2328
+ min: e,
2329
+ max: i
2330
+ },
2331
+ y: {
2332
+ min: t,
2333
+ max: n
2334
+ }
2335
+ };
2336
+ }
2337
+ function Cl({ x: t, y: e }) {
2338
+ return {
2339
+ top: e.min,
2340
+ right: t.max,
2341
+ bottom: e.max,
2342
+ left: t.min
2343
+ };
2344
+ }
2345
+ function Dl(t, e) {
2346
+ if (!e) return t;
2347
+ const i = e({
2348
+ x: t.left,
2349
+ y: t.top
2350
+ }), n = e({
2351
+ x: t.right,
2352
+ y: t.bottom
2353
+ });
2354
+ return {
2355
+ top: i.y,
2356
+ left: i.x,
2357
+ bottom: n.y,
2358
+ right: n.x
2359
+ };
2360
+ }
2361
+ function Pe(t) {
2362
+ return t === void 0 || t === 1;
2363
+ }
2364
+ function Ze({ scale: t, scaleX: e, scaleY: i }) {
2365
+ return !Pe(t) || !Pe(e) || !Pe(i);
2366
+ }
2367
+ function ct(t) {
2368
+ return Ze(t) || or(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
2369
+ }
2370
+ function or(t) {
2371
+ return on(t.x) || on(t.y);
2372
+ }
2373
+ function on(t) {
2374
+ return t && t !== "0%";
2375
+ }
2376
+ function le(t, e, i) {
2377
+ return i + e * (t - i);
2378
+ }
2379
+ function an(t, e, i, n, s) {
2380
+ return s !== void 0 && (t = le(t, s, n)), le(t, i, n) + e;
2381
+ }
2382
+ function Je(t, e = 0, i = 1, n, s) {
2383
+ t.min = an(t.min, e, i, n, s), t.max = an(t.max, e, i, n, s);
2384
+ }
2385
+ function ar(t, { x: e, y: i }) {
2386
+ Je(t.x, e.translate, e.scale, e.originPoint), Je(t.y, i.translate, i.scale, i.originPoint);
2387
+ }
2388
+ var ln = 0.999999999999, un = 1.0000000000001;
2389
+ function El(t, e, i, n = !1) {
2390
+ const s = i.length;
2391
+ if (!s) return;
2392
+ e.x = e.y = 1;
2393
+ let o, r;
2394
+ for (let a = 0; a < s; a++) {
2395
+ o = i[a], r = o.projectionDelta;
2396
+ const { visualElement: l } = o.options;
2397
+ l && l.props.style && l.props.style.display === "contents" || (n && o.options.layoutScroll && o.scroll && o !== o.root && (Z(t.x, -o.scroll.offset.x), Z(t.y, -o.scroll.offset.y)), r && (e.x *= r.x.scale, e.y *= r.y.scale, ar(t, r)), n && ct(o.latestValues) && Qt(t, o.latestValues, o.layout?.layoutBox));
2398
+ }
2399
+ e.x < un && e.x > ln && (e.x = 1), e.y < un && e.y > ln && (e.y = 1);
2400
+ }
2401
+ function Z(t, e) {
2402
+ t.min += e, t.max += e;
2403
+ }
2404
+ function cn(t, e, i, n, s = 0.5) {
2405
+ Je(t, e, i, V(t.min, t.max, s), n);
2406
+ }
2407
+ function hn(t, e) {
2408
+ return typeof t == "string" ? parseFloat(t) / 100 * (e.max - e.min) : t;
2409
+ }
2410
+ function Qt(t, e, i) {
2411
+ const n = i ?? t;
2412
+ cn(t.x, hn(e.x, n.x), e.scaleX, e.scale, e.originX), cn(t.y, hn(e.y, n.y), e.scaleY, e.scale, e.originY);
2413
+ }
2414
+ function lr(t, e) {
2415
+ return rr(Dl(t.getBoundingClientRect(), e));
2416
+ }
2417
+ function Rl(t, e, i) {
2418
+ const n = lr(t, i), { scroll: s } = e;
2419
+ return s && (Z(n.x, s.offset.x), Z(n.y, s.offset.y)), n;
2420
+ }
2421
+ var Ll = {
2422
+ x: "translateX",
2423
+ y: "translateY",
2424
+ z: "translateZ",
2425
+ transformPerspective: "perspective"
2426
+ }, kl = Dt.length;
2427
+ function Bl(t, e, i) {
2428
+ let n = "", s = !0;
2429
+ for (let r = 0; r < kl; r++) {
2430
+ const a = Dt[r], l = t[a];
2431
+ if (l === void 0) continue;
2432
+ let c = !0;
2433
+ if (typeof l == "number") c = l === (a.startsWith("scale") ? 1 : 0);
2434
+ else {
2435
+ const u = parseFloat(l);
2436
+ c = a.startsWith("scale") ? u === 1 : u === 0;
2437
+ }
2438
+ if (!c || i) {
2439
+ const u = Ye(l, oe[a]);
2440
+ if (!c) {
2441
+ s = !1;
2442
+ const h = Ll[a] || a;
2443
+ n += `${h}(${u}) `;
2444
+ }
2445
+ i && (e[a] = u);
2446
+ }
2447
+ }
2448
+ const o = t.pathRotation;
2449
+ return o && (s = !1, n += `rotate(${Ye(o, oe.pathRotation)}) `), n = n.trim(), i ? n = i(e, s ? "" : n) : s && (n = "none"), n;
2450
+ }
2451
+ function Mi(t, e, i) {
2452
+ const { style: n, vars: s, transformOrigin: o } = t;
2453
+ let r = !1, a = !1;
2454
+ for (const l in e) {
2455
+ const c = e[l];
2456
+ if (Et.has(l)) {
2457
+ r = !0;
2458
+ continue;
2459
+ } else if (ys(l)) {
2460
+ s[l] = c;
2461
+ continue;
2462
+ } else {
2463
+ const u = Ye(c, oe[l]);
2464
+ l.startsWith("origin") ? (a = !0, o[l] = u) : n[l] = u;
2465
+ }
2466
+ }
2467
+ if (e.transform || (r || i ? n.transform = Bl(e, t.transform, i) : n.transform && (n.transform = "none")), a) {
2468
+ const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
2469
+ n.transformOrigin = `${l} ${c} ${u}`;
2470
+ }
2471
+ }
2472
+ function ur(t, { style: e, vars: i }, n, s) {
2473
+ const o = t.style;
2474
+ let r;
2475
+ for (r in e) o[r] = e[r];
2476
+ s?.applyProjectionStyles(o, n);
2477
+ for (r in i) o.setProperty(r, i[r]);
2478
+ }
2479
+ function fn(t, e) {
2480
+ return e.max === e.min ? 0 : t / (e.max - e.min) * 100;
2481
+ }
2482
+ var Rt = { correct: (t, e) => {
2483
+ if (!e.target) return t;
2484
+ if (typeof t == "string") if (y.test(t)) t = parseFloat(t);
2485
+ else return t;
2486
+ return `${fn(t, e.target.x)}% ${fn(t, e.target.y)}%`;
2487
+ } }, Il = { correct: (t, { treeScale: e, projectionDelta: i }) => {
2488
+ const n = t, s = G.parse(t);
2489
+ if (s.length > 5) return n;
2490
+ const o = G.createTransformer(t), r = typeof s[0] != "number" ? 1 : 0, a = i.x.scale * e.x, l = i.y.scale * e.y;
2491
+ s[0 + r] /= a, s[1 + r] /= l;
2492
+ const c = V(a, l, 0.5);
2493
+ return typeof s[2 + r] == "number" && (s[2 + r] /= c), typeof s[3 + r] == "number" && (s[3 + r] /= c), o(s);
2494
+ } }, Qe = {
2495
+ borderRadius: {
2496
+ ...Rt,
2497
+ applyTo: [...wi]
2498
+ },
2499
+ borderTopLeftRadius: Rt,
2500
+ borderTopRightRadius: Rt,
2501
+ borderBottomLeftRadius: Rt,
2502
+ borderBottomRightRadius: Rt,
2503
+ boxShadow: Il
2504
+ };
2505
+ function cr(t, { layout: e, layoutId: i }) {
2506
+ return Et.has(t) || t.startsWith("origin") || (e || i !== void 0) && (!!Qe[t] || t === "opacity");
2507
+ }
2508
+ function Ci(t, e, i) {
2509
+ const n = t.style, s = e?.style, o = {};
2510
+ if (!n) return o;
2511
+ for (const r in n) (F(n[r]) || s && F(s[r]) || cr(r, t) || i?.getValue(r)?.liveStyle !== void 0) && (o[r] = n[r]);
2512
+ return o;
2513
+ }
2514
+ function Fl(t) {
2515
+ return window.getComputedStyle(t);
2516
+ }
2517
+ var Ol = class extends sr {
2518
+ constructor() {
2519
+ super(...arguments), this.type = "html", this.renderInstance = ur;
2520
+ }
2521
+ readValueFromInstance(t, e) {
2522
+ if (Et.has(e)) return this.projection?.isProjecting ? je(e) : ea(t, e);
2523
+ {
2524
+ const i = Fl(t), n = (ys(e) ? i.getPropertyValue(e) : i[e]) || 0;
2525
+ return typeof n == "string" ? n.trim() : n;
2526
+ }
2527
+ }
2528
+ measureInstanceViewportBox(t, { transformPagePoint: e }) {
2529
+ return lr(t, e);
2530
+ }
2531
+ build(t, e, i) {
2532
+ Mi(t, e, i.transformTemplate);
2533
+ }
2534
+ scrapeMotionValuesFromProps(t, e, i) {
2535
+ return Ci(t, e, i);
2536
+ }
2537
+ }, jl = {
2538
+ offset: "stroke-dashoffset",
2539
+ array: "stroke-dasharray"
2540
+ }, Nl = {
2541
+ offset: "strokeDashoffset",
2542
+ array: "strokeDasharray"
2543
+ };
2544
+ function Ul(t, e, i = 1, n = 0, s = !0) {
2545
+ t.pathLength = 1;
2546
+ const o = s ? jl : Nl;
2547
+ t[o.offset] = `${-n}`, t[o.array] = `${e} ${i}`;
2548
+ }
2549
+ var Wl = [
2550
+ "offsetDistance",
2551
+ "offsetPath",
2552
+ "offsetRotate",
2553
+ "offsetAnchor"
2554
+ ];
2555
+ function hr(t, { attrX: e, attrY: i, attrScale: n, pathLength: s, pathSpacing: o = 1, pathOffset: r = 0, ...a }, l, c, u) {
2556
+ if (Mi(t, a, c), l) {
2557
+ t.style.viewBox && (t.attrs.viewBox = t.style.viewBox);
2558
+ return;
2559
+ }
2560
+ t.attrs = t.style, t.style = {};
2561
+ const { attrs: h, style: f } = t;
2562
+ h.transform && (f.transform = h.transform, delete h.transform), (f.transform || h.transformOrigin) && (f.transformOrigin = h.transformOrigin ?? "50% 50%", delete h.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete h.transformBox);
2563
+ for (const p of Wl) h[p] !== void 0 && (f[p] = h[p], delete h[p]);
2564
+ e !== void 0 && (h.x = e), i !== void 0 && (h.y = i), n !== void 0 && (h.scale = n), s !== void 0 && Ul(h, s, o, r, !1);
2565
+ }
2566
+ var fr = /* @__PURE__ */ new Set([
2567
+ "baseFrequency",
2568
+ "diffuseConstant",
2569
+ "kernelMatrix",
2570
+ "kernelUnitLength",
2571
+ "keySplines",
2572
+ "keyTimes",
2573
+ "limitingConeAngle",
2574
+ "markerHeight",
2575
+ "markerWidth",
2576
+ "numOctaves",
2577
+ "targetX",
2578
+ "targetY",
2579
+ "surfaceScale",
2580
+ "specularConstant",
2581
+ "specularExponent",
2582
+ "stdDeviation",
2583
+ "tableValues",
2584
+ "viewBox",
2585
+ "gradientTransform",
2586
+ "pathLength",
2587
+ "startOffset",
2588
+ "textLength",
2589
+ "lengthAdjust"
2590
+ ]), dr = (t) => typeof t == "string" && t.toLowerCase() === "svg";
2591
+ function $l(t, e, i, n) {
2592
+ ur(t, e, void 0, n);
2593
+ for (const s in e.attrs) t.setAttribute(fr.has(s) ? s : xi(s), e.attrs[s]);
2594
+ }
2595
+ function pr(t, e, i) {
2596
+ const n = Ci(t, e, i);
2597
+ for (const s in t) if (F(t[s]) || F(e[s])) {
2598
+ const o = Dt.indexOf(s) !== -1 ? "attr" + s.charAt(0).toUpperCase() + s.substring(1) : s;
2599
+ n[o] = t[s];
2600
+ }
2601
+ return n;
2602
+ }
2603
+ var Kl = class extends sr {
2604
+ constructor() {
2605
+ super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = L;
2606
+ }
2607
+ getBaseTargetFromProps(t, e) {
2608
+ return t[e];
2609
+ }
2610
+ readValueFromInstance(t, e) {
2611
+ if (Et.has(e)) {
2612
+ const i = Xs(e);
2613
+ return i && i.default || 0;
2614
+ }
2615
+ return e = fr.has(e) ? e : xi(e), t.getAttribute(e);
2616
+ }
2617
+ scrapeMotionValuesFromProps(t, e, i) {
2618
+ return pr(t, e, i);
2619
+ }
2620
+ build(t, e, i) {
2621
+ hr(t, e, this.isSVGTag, i.transformTemplate, i.style);
2622
+ }
2623
+ renderInstance(t, e, i, n) {
2624
+ $l(t, e, i, n);
2625
+ }
2626
+ mount(t) {
2627
+ this.isSVGTag = dr(t.tagName), super.mount(t);
2628
+ }
2629
+ }, _l = Vi.length;
2630
+ function mr(t) {
2631
+ if (!t) return;
2632
+ if (!t.isControllingVariants) {
2633
+ const i = t.parent ? mr(t.parent) || {} : {};
2634
+ return t.props.initial !== void 0 && (i.initial = t.props.initial), i;
2635
+ }
2636
+ const e = {};
2637
+ for (let i = 0; i < _l; i++) {
2638
+ const n = Vi[i], s = t.props[n];
2639
+ (jt(s) || s === !1) && (e[n] = s);
2640
+ }
2641
+ return e;
2642
+ }
2643
+ function vr(t, e) {
2644
+ if (!Array.isArray(e)) return !1;
2645
+ const i = e.length;
2646
+ if (i !== t.length) return !1;
2647
+ for (let n = 0; n < i; n++) if (e[n] !== t[n]) return !1;
2648
+ return !0;
2649
+ }
2650
+ var zl = [...Ai].reverse(), Hl = Ai.length;
2651
+ function Gl(t) {
2652
+ return (e) => Promise.all(e.map(({ animation: i, options: n }) => Ka(t, i, n)));
2653
+ }
2654
+ function Xl(t) {
2655
+ let e = Gl(t), i = dn(), n = !0, s = !1;
2656
+ const o = (c) => (u, h) => {
2657
+ const f = vt(t, h, c === "exit" ? t.presenceContext?.custom : void 0);
2658
+ if (f) {
2659
+ const { transition: p, transitionEnd: d, ...m } = f;
2660
+ u = {
2661
+ ...u,
2662
+ ...m,
2663
+ ...d
2664
+ };
2665
+ }
2666
+ return u;
2667
+ };
2668
+ function r(c) {
2669
+ e = c(t);
2670
+ }
2671
+ function a(c) {
2672
+ const { props: u } = t, h = mr(t.parent) || {}, f = [], p = /* @__PURE__ */ new Set();
2673
+ let d = {}, m = 1 / 0;
2674
+ for (let g = 0; g < Hl; g++) {
2675
+ const T = zl[g], x = i[T], w = u[T] !== void 0 ? u[T] : h[T], P = jt(w), A = T === c ? x.isActive : null;
2676
+ A === !1 && (m = g);
2677
+ let D = w === h[T] && w !== u[T] && P;
2678
+ if (D && (n || s) && t.manuallyAnimateOnMount && (D = !1), x.protectedKeys = { ...d }, !x.isActive && A === null || !w && !x.prevProp || de(w) || typeof w == "boolean") continue;
2679
+ if (T === "exit" && x.isActive && A !== !0) {
2680
+ x.prevResolvedValues && (d = {
2681
+ ...d,
2682
+ ...x.prevResolvedValues
2683
+ });
2684
+ continue;
2685
+ }
2686
+ const S = Yl(x.prevProp, w);
2687
+ let E = S || T === c && x.isActive && !D && P || g > m && P, b = !1;
2688
+ const k = Array.isArray(w) ? w : [w];
2689
+ let N = k.reduce(o(T), {});
2690
+ A === !1 && (N = {});
2691
+ const { prevResolvedValues: at = {} } = x, X = {
2692
+ ...at,
2693
+ ...N
2694
+ }, tt = (B) => {
2695
+ E = !0, p.has(B) && (b = !0, p.delete(B)), x.needsAnimating[B] = !0;
2696
+ const $ = t.getValue(B);
2697
+ $ && ($.liveStyle = !1);
2698
+ };
2699
+ for (const B in X) {
2700
+ const $ = N[B], lt = at[B];
2701
+ if (d.hasOwnProperty(B)) continue;
2702
+ let gt = !1;
2703
+ _e($) && _e(lt) ? gt = !vr($, lt) || S : gt = $ !== lt, gt ? $ != null ? tt(B) : p.add(B) : $ !== void 0 && p.has(B) ? tt(B) : x.protectedKeys[B] = !0;
2704
+ }
2705
+ x.prevProp = w, x.prevResolvedValues = N, x.isActive && (d = {
2706
+ ...d,
2707
+ ...N
2708
+ }), (n || s) && t.blockInitialAnimation && (E = !1);
2709
+ const Y = D && S;
2710
+ E && (!Y || b) && f.push(...k.map((B) => {
2711
+ const $ = { type: T };
2712
+ if (typeof B == "string" && (n || s) && !Y && t.manuallyAnimateOnMount && t.parent) {
2713
+ const { parent: lt } = t, gt = vt(lt, B);
2714
+ if (lt.enteringChildren && gt) {
2715
+ const { delayChildren: jr } = gt.transition || {};
2716
+ $.delay = Ns(lt.enteringChildren, t, jr);
2717
+ }
2718
+ }
2719
+ return {
2720
+ animation: B,
2721
+ options: $
2722
+ };
2723
+ }));
2724
+ }
2725
+ if (p.size) {
2726
+ const g = {};
2727
+ if (typeof u.initial != "boolean") {
2728
+ const T = vt(t, Array.isArray(u.initial) ? u.initial[0] : u.initial);
2729
+ T && T.transition && (g.transition = T.transition);
2730
+ }
2731
+ p.forEach((T) => {
2732
+ const x = t.getBaseTarget(T), w = t.getValue(T);
2733
+ w && (w.liveStyle = !0), g[T] = x ?? null;
2734
+ }), f.push({ animation: g });
2735
+ }
2736
+ let v = !!f.length;
2737
+ return n && (u.initial === !1 || u.initial === u.animate) && !t.manuallyAnimateOnMount && (v = !1), n = !1, s = !1, v ? e(f) : Promise.resolve();
2738
+ }
2739
+ function l(c, u) {
2740
+ if (i[c].isActive === u) return Promise.resolve();
2741
+ t.variantChildren?.forEach((f) => f.animationState?.setActive(c, u)), i[c].isActive = u;
2742
+ const h = a(c);
2743
+ for (const f in i) i[f].protectedKeys = {};
2744
+ return h;
2745
+ }
2746
+ return {
2747
+ animateChanges: a,
2748
+ setActive: l,
2749
+ setAnimateFunction: r,
2750
+ getState: () => i,
2751
+ reset: () => {
2752
+ i = dn(), s = !0;
2753
+ }
2754
+ };
2755
+ }
2756
+ function Yl(t, e) {
2757
+ return typeof e == "string" ? e !== t : Array.isArray(e) ? !vr(e, t) : !1;
2758
+ }
2759
+ function ut(t = !1) {
2760
+ return {
2761
+ isActive: t,
2762
+ protectedKeys: {},
2763
+ needsAnimating: {},
2764
+ prevResolvedValues: {}
2765
+ };
2766
+ }
2767
+ function dn() {
2768
+ return {
2769
+ animate: ut(!0),
2770
+ whileInView: ut(),
2771
+ whileHover: ut(),
2772
+ whileTap: ut(),
2773
+ whileDrag: ut(),
2774
+ whileFocus: ut(),
2775
+ exit: ut()
2776
+ };
2777
+ }
2778
+ function ti(t, e) {
2779
+ t.min = e.min, t.max = e.max;
2780
+ }
2781
+ function z(t, e) {
2782
+ ti(t.x, e.x), ti(t.y, e.y);
2783
+ }
2784
+ function pn(t, e) {
2785
+ t.translate = e.translate, t.scale = e.scale, t.originPoint = e.originPoint, t.origin = e.origin;
2786
+ }
2787
+ var ql = 0.9999, Zl = 1.0001, Jl = -0.01, Ql = 0.01;
2788
+ function j(t) {
2789
+ return t.max - t.min;
2790
+ }
2791
+ function tu(t, e, i) {
2792
+ return Math.abs(t - e) <= i;
2793
+ }
2794
+ function mn(t, e, i, n = 0.5) {
2795
+ t.origin = n, t.originPoint = V(e.min, e.max, t.origin), t.scale = j(i) / j(e), t.translate = V(i.min, i.max, t.origin) - t.originPoint, (t.scale >= ql && t.scale <= Zl || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Jl && t.translate <= Ql || isNaN(t.translate)) && (t.translate = 0);
2796
+ }
2797
+ function Bt(t, e, i, n) {
2798
+ mn(t.x, e.x, i.x, n ? n.originX : void 0), mn(t.y, e.y, i.y, n ? n.originY : void 0);
2799
+ }
2800
+ function vn(t, e, i, n = 0) {
2801
+ t.min = (n ? V(i.min, i.max, n) : i.min) + e.min, t.max = t.min + j(e);
2802
+ }
2803
+ function eu(t, e, i, n) {
2804
+ vn(t.x, e.x, i.x, n?.x), vn(t.y, e.y, i.y, n?.y);
2805
+ }
2806
+ function gn(t, e, i, n = 0) {
2807
+ const s = n ? V(i.min, i.max, n) : i.min;
2808
+ t.min = e.min - s, t.max = t.min + j(e);
2809
+ }
2810
+ function ue(t, e, i, n) {
2811
+ gn(t.x, e.x, i.x, n?.x), gn(t.y, e.y, i.y, n?.y);
2812
+ }
2813
+ function yn(t, e, i, n, s) {
2814
+ return t -= e, t = le(t, 1 / i, n), s !== void 0 && (t = le(t, 1 / s, n)), t;
2815
+ }
2816
+ function iu(t, e = 0, i = 1, n = 0.5, s, o = t, r = t) {
2817
+ if (J.test(e) && (e = parseFloat(e), e = V(r.min, r.max, e / 100) - r.min), typeof e != "number") return;
2818
+ let a = V(o.min, o.max, n);
2819
+ t === o && (a -= e), t.min = yn(t.min, e, i, a, s), t.max = yn(t.max, e, i, a, s);
2820
+ }
2821
+ function Tn(t, e, [i, n, s], o, r) {
2822
+ iu(t, e[i], e[n], e[s], e.scale, o, r);
2823
+ }
2824
+ var nu = [
2825
+ "x",
2826
+ "scaleX",
2827
+ "originX"
2828
+ ], su = [
2829
+ "y",
2830
+ "scaleY",
2831
+ "originY"
2832
+ ];
2833
+ function xn(t, e, i, n) {
2834
+ Tn(t.x, e, nu, i ? i.x : void 0, n ? n.x : void 0), Tn(t.y, e, su, i ? i.y : void 0, n ? n.y : void 0);
2835
+ }
2836
+ function wn(t) {
2837
+ return t.translate === 0 && t.scale === 1;
2838
+ }
2839
+ function gr(t) {
2840
+ return wn(t.x) && wn(t.y);
2841
+ }
2842
+ function Pn(t, e) {
2843
+ return t.min === e.min && t.max === e.max;
2844
+ }
2845
+ function ru(t, e) {
2846
+ return Pn(t.x, e.x) && Pn(t.y, e.y);
2847
+ }
2848
+ function Sn(t, e) {
2849
+ return Math.round(t.min) === Math.round(e.min) && Math.round(t.max) === Math.round(e.max);
2850
+ }
2851
+ function yr(t, e) {
2852
+ return Sn(t.x, e.x) && Sn(t.y, e.y);
2853
+ }
2854
+ function bn(t) {
2855
+ return j(t.x) / j(t.y);
2856
+ }
2857
+ function An(t, e) {
2858
+ return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
2859
+ }
2860
+ function q(t) {
2861
+ return [t("x"), t("y")];
2862
+ }
2863
+ function ou(t, e, i) {
2864
+ let n = "";
2865
+ const s = t.x.translate / e.x, o = t.y.translate / e.y, r = i?.z || 0;
2866
+ 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) {
2867
+ const { transformPerspective: c, rotate: u, pathRotation: h, rotateX: f, rotateY: p, skewX: d, skewY: m } = i;
2868
+ c && (n = `perspective(${c}px) ${n}`), u && (n += `rotate(${u}deg) `), h && (n += `rotate(${h}deg) `), f && (n += `rotateX(${f}deg) `), p && (n += `rotateY(${p}deg) `), d && (n += `skewX(${d}deg) `), m && (n += `skewY(${m}deg) `);
2869
+ }
2870
+ const a = t.x.scale * e.x, l = t.y.scale * e.y;
2871
+ return (a !== 1 || l !== 1) && (n += `scale(${a}, ${l})`), n || "none";
2872
+ }
2873
+ var au = wi.length, Vn = (t) => typeof t == "string" ? parseFloat(t) : t, Mn = (t) => typeof t == "number" || y.test(t);
2874
+ function lu(t, e, i, n, s, o) {
2875
+ s ? (t.opacity = V(0, i.opacity ?? 1, uu(n)), t.opacityExit = V(e.opacity ?? 1, 0, cu(n))) : o && (t.opacity = V(e.opacity ?? 1, i.opacity ?? 1, n));
2876
+ for (let r = 0; r < au; r++) {
2877
+ const a = wi[r];
2878
+ let l = Cn(e, a), c = Cn(i, a);
2879
+ 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);
2880
+ }
2881
+ (e.rotate || i.rotate) && (t.rotate = V(e.rotate || 0, i.rotate || 0, n));
2882
+ }
2883
+ function Cn(t, e) {
2884
+ return t[e] !== void 0 ? t[e] : t.borderRadius;
2885
+ }
2886
+ var uu = /* @__PURE__ */ Tr(0, 0.5, fs), cu = /* @__PURE__ */ Tr(0.5, 0.95, _);
2887
+ function Tr(t, e, i) {
2888
+ return (n) => n < t ? 0 : n > e ? 1 : i(Ft(t, e, n));
2889
+ }
2890
+ function hu(t, e, i) {
2891
+ const n = F(t) ? t : At(t);
2892
+ return n.start(yi("", n, e, i)), n.animation;
2893
+ }
2894
+ function Nt(t, e, i, n = { passive: !0 }) {
2895
+ return t.addEventListener(e, i, n), () => t.removeEventListener(e, i, n);
2896
+ }
2897
+ var fu = (t, e) => t.depth - e.depth, du = class {
2898
+ constructor() {
2899
+ this.children = [], this.isDirty = !1;
2900
+ }
2901
+ add(t) {
2902
+ ri(this.children, t), this.isDirty = !0;
2903
+ }
2904
+ remove(t) {
2905
+ ie(this.children, t), this.isDirty = !0;
2906
+ }
2907
+ forEach(t) {
2908
+ this.isDirty && this.children.sort(fu), this.isDirty = !1, this.children.forEach(t);
2909
+ }
2910
+ };
2911
+ function pu(t, e) {
2912
+ const i = O.now(), n = ({ timestamp: s }) => {
2913
+ const o = s - i;
2914
+ o >= e && (rt(n), t(o - e));
2915
+ };
2916
+ return M.setup(n, !0), () => rt(n);
2917
+ }
2918
+ function te(t) {
2919
+ return F(t) ? t.get() : t;
2920
+ }
2921
+ var mu = class {
2922
+ constructor() {
2923
+ this.members = [];
2924
+ }
2925
+ add(t) {
2926
+ ri(this.members, t);
2927
+ for (let e = this.members.length - 1; e >= 0; e--) {
2928
+ const i = this.members[e];
2929
+ if (i === t || i === this.lead || i === this.prevLead) continue;
2930
+ const n = i.instance;
2931
+ (!n || n.isConnected === !1) && !i.snapshot && (ie(this.members, i), i.unmount());
2932
+ }
2933
+ t.scheduleRender();
2934
+ }
2935
+ remove(t) {
2936
+ if (ie(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
2937
+ const e = this.members[this.members.length - 1];
2938
+ e && this.promote(e);
2939
+ }
2940
+ }
2941
+ relegate(t) {
2942
+ for (let e = this.members.indexOf(t) - 1; e >= 0; e--) {
2943
+ const i = this.members[e];
2944
+ if (i.isPresent !== !1 && i.instance?.isConnected !== !1)
2945
+ return this.promote(i), !0;
2946
+ }
2947
+ return !1;
2948
+ }
2949
+ promote(t, e) {
2950
+ const i = this.lead;
2951
+ if (t !== i && (this.prevLead = i, this.lead = t, t.show(), i)) {
2952
+ i.updateSnapshot(), t.scheduleRender();
2953
+ const { layoutDependency: n } = i.options, { layoutDependency: s } = t.options;
2954
+ (n === void 0 || n !== s) && (t.resumeFrom = i, e && (i.preserveOpacity = !0), i.snapshot && (t.snapshot = i.snapshot, t.snapshot.latestValues = i.animationValues || i.latestValues), t.root?.isUpdating && (t.isLayoutDirty = !0)), t.options.crossfade === !1 && i.hide();
2955
+ }
2956
+ }
2957
+ exitAnimationComplete() {
2958
+ this.members.forEach((t) => {
2959
+ t.options.onExitComplete?.(), t.resumingFrom?.options.onExitComplete?.();
2960
+ });
2961
+ }
2962
+ scheduleRender() {
2963
+ this.members.forEach((t) => t.instance && t.scheduleRender(!1));
2964
+ }
2965
+ removeLeadSnapshot() {
2966
+ this.lead?.snapshot && (this.lead.snapshot = void 0);
2967
+ }
2968
+ }, ee = {
2969
+ hasAnimatedSinceResize: !0,
2970
+ hasEverUpdated: !1
2971
+ }, ht = {
2972
+ nodes: 0,
2973
+ calculatedTargetDeltas: 0,
2974
+ calculatedProjections: 0
2975
+ }, Se = [
2976
+ "",
2977
+ "X",
2978
+ "Y",
2979
+ "Z"
2980
+ ], vu = 1e3, gu = 0;
2981
+ function be(t, e, i, n) {
2982
+ const { latestValues: s } = e;
2983
+ s[t] && (i[t] = s[t], e.setStaticValue(t, 0), n && (n[t] = 0));
2984
+ }
2985
+ function xr(t) {
2986
+ if (t.hasCheckedOptimisedAppear = !0, t.root === t) return;
2987
+ const { visualElement: e } = t.options;
2988
+ if (!e) return;
2989
+ const i = _s(e);
2990
+ if (window.MotionHasOptimisedAnimation(i, "transform")) {
2991
+ const { layout: s, layoutId: o } = t.options;
2992
+ window.MotionCancelOptimisedAnimation(i, "transform", M, !(s || o));
2993
+ }
2994
+ const { parent: n } = t;
2995
+ n && !n.hasCheckedOptimisedAppear && xr(n);
2996
+ }
2997
+ function wr({ attachResizeListener: t, defaultParent: e, measureScroll: i, checkIsScrollRoot: n, resetTransform: s }) {
2998
+ return class {
2999
+ constructor(r = {}, a = e?.()) {
3000
+ this.id = gu++, this.animationId = 0, this.animationCommitId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = {
3001
+ x: 1,
3002
+ y: 1
3003
+ }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
3004
+ this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
3005
+ }, this.updateProjection = () => {
3006
+ this.projectionUpdateScheduled = !1, yt.value && (ht.nodes = ht.calculatedTargetDeltas = ht.calculatedProjections = 0), this.nodes.forEach(xu), this.nodes.forEach(Vu), this.nodes.forEach(Mu), this.nodes.forEach(wu), yt.addProjectionMetrics && yt.addProjectionMetrics(ht);
3007
+ }, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = r, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
3008
+ for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0;
3009
+ this.root === this && (this.nodes = new du());
3010
+ }
3011
+ addEventListener(r, a) {
3012
+ return this.eventHandlers.has(r) || this.eventHandlers.set(r, new oi()), this.eventHandlers.get(r).add(a);
3013
+ }
3014
+ notifyListeners(r, ...a) {
3015
+ const l = this.eventHandlers.get(r);
3016
+ l && l.notify(...a);
3017
+ }
3018
+ hasListeners(r) {
3019
+ return this.eventHandlers.has(r);
3020
+ }
3021
+ mount(r) {
3022
+ if (this.instance) return;
3023
+ this.isSVG = bi(r) && !Tl(r), this.instance = r;
3024
+ const { layoutId: a, layout: l, visualElement: c } = this.options;
3025
+ if (c && !c.current && c.mount(r), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || a) && (this.isLayoutDirty = !0), t) {
3026
+ let u, h = 0;
3027
+ const f = () => this.root.updateBlockedByResize = !1;
3028
+ M.read(() => {
3029
+ h = window.innerWidth;
3030
+ }), t(r, () => {
3031
+ const p = window.innerWidth;
3032
+ p !== h && (h = p, this.root.updateBlockedByResize = !0, u && u(), u = pu(f, 250), ee.hasAnimatedSinceResize && (ee.hasAnimatedSinceResize = !1, this.nodes.forEach(Rn)));
3033
+ });
3034
+ }
3035
+ a && this.root.registerSharedNode(a, this), this.options.animate !== !1 && c && (a || l) && this.addEventListener("didUpdate", ({ delta: u, hasLayoutChanged: h, hasRelativeLayoutChanged: f, layout: p }) => {
3036
+ if (this.isTreeAnimationBlocked()) {
3037
+ this.target = void 0, this.relativeTarget = void 0;
3038
+ return;
3039
+ }
3040
+ const d = this.options.transition || c.getDefaultTransition() || Lu, { onLayoutAnimationStart: m, onLayoutAnimationComplete: v } = c.getProps(), g = !this.targetLayout || !yr(this.targetLayout, p), T = !h && f;
3041
+ if (this.options.layoutRoot || this.resumeFrom || T || h && (g || !this.currentAnimation)) {
3042
+ this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
3043
+ const x = {
3044
+ ...gi(d, "layout"),
3045
+ onPlay: m,
3046
+ onComplete: v
3047
+ };
3048
+ (c.shouldReduceMotion || this.options.layoutRoot) && (x.delay = 0, x.type = !1), this.startAnimation(x), this.setAnimationOrigin(u, T, x.path);
3049
+ } else
3050
+ h || Rn(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
3051
+ this.targetLayout = p;
3052
+ });
3053
+ }
3054
+ unmount() {
3055
+ this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
3056
+ const r = this.getStack();
3057
+ r && r.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), rt(this.updateProjection);
3058
+ }
3059
+ blockUpdate() {
3060
+ this.updateManuallyBlocked = !0;
3061
+ }
3062
+ unblockUpdate() {
3063
+ this.updateManuallyBlocked = !1;
3064
+ }
3065
+ isUpdateBlocked() {
3066
+ return this.updateManuallyBlocked || this.updateBlockedByResize;
3067
+ }
3068
+ isTreeAnimationBlocked() {
3069
+ return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
3070
+ }
3071
+ startUpdate() {
3072
+ this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Cu), this.animationId++);
3073
+ }
3074
+ getTransformTemplate() {
3075
+ const { visualElement: r } = this.options;
3076
+ return r && r.getProps().transformTemplate;
3077
+ }
3078
+ willUpdate(r = !0) {
3079
+ if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) {
3080
+ this.options.onExitComplete && this.options.onExitComplete();
3081
+ return;
3082
+ }
3083
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && xr(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
3084
+ this.isLayoutDirty = !0;
3085
+ for (let u = 0; u < this.path.length; u++) {
3086
+ const h = this.path[u];
3087
+ h.shouldResetTransform = !0, (typeof h.latestValues.x == "string" || typeof h.latestValues.y == "string") && (h.isLayoutDirty = !0), h.updateScroll("snapshot"), h.options.layoutRoot && h.willUpdate(!1);
3088
+ }
3089
+ const { layoutId: a, layout: l } = this.options;
3090
+ if (a === void 0 && !l) return;
3091
+ const c = this.getTransformTemplate();
3092
+ this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0, this.updateSnapshot(), r && this.notifyListeners("willUpdate");
3093
+ }
3094
+ update() {
3095
+ if (this.updateScheduled = !1, this.isUpdateBlocked()) {
3096
+ const a = this.updateBlockedByResize;
3097
+ this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), a && this.nodes.forEach(Su), this.nodes.forEach(Dn);
3098
+ return;
3099
+ }
3100
+ if (this.animationId <= this.animationCommitId) {
3101
+ this.nodes.forEach(En);
3102
+ return;
3103
+ }
3104
+ this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(bu), this.nodes.forEach(Au), this.nodes.forEach(yu), this.nodes.forEach(Tu)) : this.nodes.forEach(En), this.clearAllSnapshots();
3105
+ const r = O.now();
3106
+ I.delta = Q(0, 1e3 / 60, r - I.timestamp), I.timestamp = r, I.isProcessing = !0, ve.update.process(I), ve.preRender.process(I), ve.render.process(I), I.isProcessing = !1;
3107
+ }
3108
+ didUpdate() {
3109
+ this.updateScheduled || (this.updateScheduled = !0, Pi.read(this.scheduleUpdate));
3110
+ }
3111
+ clearAllSnapshots() {
3112
+ this.nodes.forEach(Pu), this.sharedNodes.forEach(Du);
3113
+ }
3114
+ scheduleUpdateProjection() {
3115
+ this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, M.preRender(this.updateProjection, !1, !0));
3116
+ }
3117
+ scheduleCheckAfterUnmount() {
3118
+ M.postRender(() => {
3119
+ this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
3120
+ });
3121
+ }
3122
+ updateSnapshot() {
3123
+ this.snapshot || !this.instance || (this.snapshot = this.measure(), this.snapshot && !j(this.snapshot.measuredBox.x) && !j(this.snapshot.measuredBox.y) && (this.snapshot = void 0));
3124
+ }
3125
+ updateLayout() {
3126
+ if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
3127
+ if (this.resumeFrom && !this.resumeFrom.instance) for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll();
3128
+ const r = this.layout;
3129
+ this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected || (this.layoutCorrected = L()), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
3130
+ const { visualElement: a } = this.options;
3131
+ a && a.notify("LayoutMeasure", this.layout.layoutBox, r ? r.layoutBox : void 0);
3132
+ }
3133
+ updateScroll(r = "measure") {
3134
+ let a = !!(this.options.layoutScroll && this.instance);
3135
+ if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === r && (a = !1), a && this.instance) {
3136
+ const l = n(this.instance);
3137
+ this.scroll = {
3138
+ animationId: this.root.animationId,
3139
+ phase: r,
3140
+ isRoot: l,
3141
+ offset: i(this.instance),
3142
+ wasRoot: this.scroll ? this.scroll.isRoot : l
3143
+ };
3144
+ }
3145
+ }
3146
+ resetTransform() {
3147
+ if (!s) return;
3148
+ const r = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, a = this.projectionDelta && !gr(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
3149
+ r && this.instance && (a || ct(this.latestValues) || u) && (s(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
3150
+ }
3151
+ measure(r = !0) {
3152
+ const a = this.measurePageBox();
3153
+ let l = this.removeElementScroll(a);
3154
+ return r && (l = this.removeTransform(l)), ku(l), {
3155
+ animationId: this.root.animationId,
3156
+ measuredBox: a,
3157
+ layoutBox: l,
3158
+ latestValues: {},
3159
+ source: this.id
3160
+ };
3161
+ }
3162
+ measurePageBox() {
3163
+ const { visualElement: r } = this.options;
3164
+ if (!r) return L();
3165
+ const a = r.measureViewportBox();
3166
+ if (!(this.scroll?.wasRoot || this.path.some(Bu))) {
3167
+ const { scroll: l } = this.root;
3168
+ l && (Z(a.x, l.offset.x), Z(a.y, l.offset.y));
3169
+ }
3170
+ return a;
3171
+ }
3172
+ removeElementScroll(r) {
3173
+ const a = L();
3174
+ if (z(a, r), this.scroll?.wasRoot) return a;
3175
+ for (let l = 0; l < this.path.length; l++) {
3176
+ const c = this.path[l], { scroll: u, options: h } = c;
3177
+ c !== this.root && u && h.layoutScroll && (u.wasRoot && z(a, r), Z(a.x, u.offset.x), Z(a.y, u.offset.y));
3178
+ }
3179
+ return a;
3180
+ }
3181
+ applyTransform(r, a = !1, l) {
3182
+ const c = l || L();
3183
+ z(c, r);
3184
+ for (let u = 0; u < this.path.length; u++) {
3185
+ const h = this.path[u];
3186
+ !a && h.options.layoutScroll && h.scroll && h !== h.root && (Z(c.x, -h.scroll.offset.x), Z(c.y, -h.scroll.offset.y)), ct(h.latestValues) && Qt(c, h.latestValues, h.layout?.layoutBox);
3187
+ }
3188
+ return ct(this.latestValues) && Qt(c, this.latestValues, this.layout?.layoutBox), c;
3189
+ }
3190
+ removeTransform(r) {
3191
+ const a = L();
3192
+ z(a, r);
3193
+ for (let l = 0; l < this.path.length; l++) {
3194
+ const c = this.path[l];
3195
+ if (!ct(c.latestValues)) continue;
3196
+ let u;
3197
+ c.instance && (Ze(c.latestValues) && c.updateSnapshot(), u = L(), z(u, c.measurePageBox())), xn(a, c.latestValues, c.snapshot?.layoutBox, u);
3198
+ }
3199
+ return ct(this.latestValues) && xn(a, this.latestValues), a;
3200
+ }
3201
+ setTargetDelta(r) {
3202
+ this.targetDelta = r, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
3203
+ }
3204
+ setOptions(r) {
3205
+ this.options = {
3206
+ ...this.options,
3207
+ ...r,
3208
+ crossfade: r.crossfade !== void 0 ? r.crossfade : !0
3209
+ };
3210
+ }
3211
+ clearMeasurements() {
3212
+ this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
3213
+ }
3214
+ forceRelativeParentToResolveTarget() {
3215
+ this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== I.timestamp && this.relativeParent.resolveTargetDelta(!0);
3216
+ }
3217
+ resolveTargetDelta(r = !1) {
3218
+ const a = this.getLead();
3219
+ this.isProjectionDirty || (this.isProjectionDirty = a.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = a.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = a.isSharedProjectionDirty);
3220
+ const l = !!this.resumingFrom || this !== a;
3221
+ if (!(r || l && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
3222
+ const { layout: c, layoutId: u } = this.options;
3223
+ if (!this.layout || !(c || u)) return;
3224
+ this.resolvedRelativeTargetAt = I.timestamp;
3225
+ const h = this.getClosestProjectingParent();
3226
+ h && this.linkedParentVersion !== h.layoutVersion && !h.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && h && h.layout ? this.createRelativeTarget(h, this.layout.layoutBox, h.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = L(), this.targetWithTransforms = L()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), eu(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : z(this.target, this.layout.layoutBox), ar(this.target, this.targetDelta)) : z(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? this.createRelativeTarget(h, this.target, h.target) : this.relativeParent = this.relativeTarget = void 0), yt.value && ht.calculatedTargetDeltas++);
3227
+ }
3228
+ getClosestProjectingParent() {
3229
+ if (!(!this.parent || Ze(this.parent.latestValues) || or(this.parent.latestValues)))
3230
+ return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
3231
+ }
3232
+ isProjecting() {
3233
+ return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
3234
+ }
3235
+ createRelativeTarget(r, a, l) {
3236
+ this.relativeParent = r, this.linkedParentVersion = r.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = L(), this.relativeTargetOrigin = L(), ue(this.relativeTargetOrigin, a, l, this.options.layoutAnchor || void 0), z(this.relativeTarget, this.relativeTargetOrigin);
3237
+ }
3238
+ removeRelativeTarget() {
3239
+ this.relativeParent = this.relativeTarget = void 0;
3240
+ }
3241
+ calcProjection() {
3242
+ const r = this.getLead(), a = !!this.resumingFrom || this !== r;
3243
+ let l = !0;
3244
+ if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (l = !1), a && (this.isSharedProjectionDirty || this.isTransformDirty) && (l = !1), this.resolvedRelativeTargetAt === I.timestamp && (l = !1), l) return;
3245
+ const { layout: c, layoutId: u } = this.options;
3246
+ if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(c || u)) return;
3247
+ z(this.layoutCorrected, this.layout.layoutBox);
3248
+ const h = this.treeScale.x, f = this.treeScale.y;
3249
+ El(this.layoutCorrected, this.treeScale, this.path, a), r.layout && !r.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (r.target = r.layout.layoutBox, r.targetWithTransforms = L());
3250
+ const { target: p } = r;
3251
+ if (!p) {
3252
+ this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
3253
+ return;
3254
+ }
3255
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (pn(this.prevProjectionDelta.x, this.projectionDelta.x), pn(this.prevProjectionDelta.y, this.projectionDelta.y)), Bt(this.projectionDelta, this.layoutCorrected, p, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== f || !An(this.projectionDelta.x, this.prevProjectionDelta.x) || !An(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", p)), yt.value && ht.calculatedProjections++;
3256
+ }
3257
+ hide() {
3258
+ this.isVisible = !1;
3259
+ }
3260
+ show() {
3261
+ this.isVisible = !0;
3262
+ }
3263
+ scheduleRender(r = !0) {
3264
+ if (this.options.visualElement?.scheduleRender(), r) {
3265
+ const a = this.getStack();
3266
+ a && a.scheduleRender();
3267
+ }
3268
+ this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
3269
+ }
3270
+ createProjectionDeltas() {
3271
+ this.prevProjectionDelta = St(), this.projectionDelta = St(), this.projectionDeltaWithTransform = St();
3272
+ }
3273
+ setAnimationOrigin(r, a = !1, l) {
3274
+ const c = this.snapshot, u = c ? c.latestValues : {}, h = { ...this.latestValues }, f = St();
3275
+ (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
3276
+ const p = L(), d = (c ? c.source : void 0) !== (this.layout ? this.layout.source : void 0), m = this.getStack(), v = !m || m.members.length <= 1, g = !!(d && !v && this.options.crossfade === !0 && !this.path.some(Ru));
3277
+ this.animationProgress = 0;
3278
+ let T;
3279
+ const x = l?.interpolateProjection(r);
3280
+ this.mixTargetDelta = (w) => {
3281
+ const P = w / 1e3, A = x?.(P);
3282
+ A ? (f.x.translate = A.x, f.x.scale = V(r.x.scale, 1, P), f.x.origin = r.x.origin, f.x.originPoint = r.x.originPoint, f.y.translate = A.y, f.y.scale = V(r.y.scale, 1, P), f.y.origin = r.y.origin, f.y.originPoint = r.y.originPoint) : (Ln(f.x, r.x, P), Ln(f.y, r.y, P)), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ue(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), Eu(this.relativeTarget, this.relativeTargetOrigin, p, P), T && ru(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = L()), z(T, this.relativeTarget)), d && (this.animationValues = h, lu(h, u, this.latestValues, P, g, v)), A && A.rotate !== void 0 && (this.animationValues || (this.animationValues = h), this.animationValues.pathRotation = A.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
3283
+ }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
3284
+ }
3285
+ startAnimation(r) {
3286
+ this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation && (rt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = M.update(() => {
3287
+ ee.hasAnimatedSinceResize = !0, this.motionValue || (this.motionValue = At(0)), this.motionValue.jump(0, !1), this.currentAnimation = hu(this.motionValue, [0, 1e3], {
3288
+ ...r,
3289
+ velocity: 0,
3290
+ isSync: !0,
3291
+ onUpdate: (a) => {
3292
+ this.mixTargetDelta(a), r.onUpdate && r.onUpdate(a);
3293
+ },
3294
+ onComplete: () => {
3295
+ r.onComplete && r.onComplete(), this.completeAnimation();
3296
+ }
3297
+ }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
3298
+ });
3299
+ }
3300
+ completeAnimation() {
3301
+ this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0);
3302
+ const r = this.getStack();
3303
+ r && r.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
3304
+ }
3305
+ finishAnimation() {
3306
+ this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(vu), this.currentAnimation.stop()), this.completeAnimation();
3307
+ }
3308
+ applyTransformsToTarget() {
3309
+ const r = this.getLead();
3310
+ let { targetWithTransforms: a, target: l, layout: c, latestValues: u } = r;
3311
+ if (!(!a || !l || !c)) {
3312
+ if (this !== r && this.layout && c && Pr(this.options.animationType, this.layout.layoutBox, c.layoutBox)) {
3313
+ l = this.target || L();
3314
+ const h = j(this.layout.layoutBox.x);
3315
+ l.x.min = r.target.x.min, l.x.max = l.x.min + h;
3316
+ const f = j(this.layout.layoutBox.y);
3317
+ l.y.min = r.target.y.min, l.y.max = l.y.min + f;
3318
+ }
3319
+ z(a, l), Qt(a, u), Bt(this.projectionDeltaWithTransform, this.layoutCorrected, a, u);
3320
+ }
3321
+ }
3322
+ registerSharedNode(r, a) {
3323
+ this.sharedNodes.has(r) || this.sharedNodes.set(r, new mu()), this.sharedNodes.get(r).add(a);
3324
+ const l = a.options.initialPromotionConfig;
3325
+ a.promote({
3326
+ transition: l ? l.transition : void 0,
3327
+ preserveFollowOpacity: l && l.shouldPreserveFollowOpacity ? l.shouldPreserveFollowOpacity(a) : void 0
3328
+ });
3329
+ }
3330
+ isLead() {
3331
+ const r = this.getStack();
3332
+ return r ? r.lead === this : !0;
3333
+ }
3334
+ getLead() {
3335
+ const { layoutId: r } = this.options;
3336
+ return r ? this.getStack()?.lead || this : this;
3337
+ }
3338
+ getPrevLead() {
3339
+ const { layoutId: r } = this.options;
3340
+ return r ? this.getStack()?.prevLead : void 0;
3341
+ }
3342
+ getStack() {
3343
+ const { layoutId: r } = this.options;
3344
+ if (r) return this.root.sharedNodes.get(r);
3345
+ }
3346
+ promote({ needsReset: r, transition: a, preserveFollowOpacity: l } = {}) {
3347
+ const c = this.getStack();
3348
+ c && c.promote(this, l), r && (this.projectionDelta = void 0, this.needsReset = !0), a && this.setOptions({ transition: a });
3349
+ }
3350
+ relegate() {
3351
+ const r = this.getStack();
3352
+ return r ? r.relegate(this) : !1;
3353
+ }
3354
+ resetSkewAndRotation() {
3355
+ const { visualElement: r } = this.options;
3356
+ if (!r) return;
3357
+ let a = !1;
3358
+ const { latestValues: l } = r;
3359
+ if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (a = !0), !a) return;
3360
+ const c = {};
3361
+ l.z && be("z", r, c, this.animationValues);
3362
+ for (let u = 0; u < Se.length; u++)
3363
+ be(`rotate${Se[u]}`, r, c, this.animationValues), be(`skew${Se[u]}`, r, c, this.animationValues);
3364
+ r.render();
3365
+ for (const u in c)
3366
+ r.setStaticValue(u, c[u]), this.animationValues && (this.animationValues[u] = c[u]);
3367
+ r.scheduleRender();
3368
+ }
3369
+ applyProjectionStyles(r, a) {
3370
+ if (!this.instance || this.isSVG) return;
3371
+ if (!this.isVisible) {
3372
+ r.visibility = "hidden";
3373
+ return;
3374
+ }
3375
+ const l = this.getTransformTemplate();
3376
+ if (this.needsReset) {
3377
+ this.needsReset = !1, r.visibility = "", r.opacity = "", r.pointerEvents = te(a?.pointerEvents) || "", r.transform = l ? l(this.latestValues, "") : "none";
3378
+ return;
3379
+ }
3380
+ const c = this.getLead();
3381
+ if (!this.projectionDelta || !this.layout || !c.target) {
3382
+ this.options.layoutId && (r.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, r.pointerEvents = te(a?.pointerEvents) || ""), this.hasProjected && !ct(this.latestValues) && (r.transform = l ? l({}, "") : "none", this.hasProjected = !1);
3383
+ return;
3384
+ }
3385
+ r.visibility = "";
3386
+ const u = c.animationValues || c.latestValues;
3387
+ this.applyTransformsToTarget();
3388
+ let h = ou(this.projectionDeltaWithTransform, this.treeScale, u);
3389
+ l && (h = l(u, h)), r.transform = h;
3390
+ const { x: f, y: p } = this.projectionDelta;
3391
+ r.transformOrigin = `${f.origin * 100}% ${p.origin * 100}% 0`, c.animationValues ? r.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : r.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
3392
+ for (const d in Qe) {
3393
+ if (u[d] === void 0) continue;
3394
+ const { correct: m, applyTo: v, isCSSVariable: g } = Qe[d], T = h === "none" ? u[d] : m(u[d], c);
3395
+ if (v) {
3396
+ const x = v.length;
3397
+ for (let w = 0; w < x; w++) r[v[w]] = T;
3398
+ } else g ? this.options.visualElement.renderState.vars[d] = T : r[d] = T;
3399
+ }
3400
+ this.options.layoutId && (r.pointerEvents = c === this ? te(a?.pointerEvents) || "" : "none");
3401
+ }
3402
+ clearSnapshot() {
3403
+ this.resumeFrom = this.snapshot = void 0;
3404
+ }
3405
+ resetTree() {
3406
+ this.root.nodes.forEach((r) => r.currentAnimation?.stop()), this.root.nodes.forEach(Dn), this.root.sharedNodes.clear();
3407
+ }
3408
+ };
3409
+ }
3410
+ function yu(t) {
3411
+ t.updateLayout();
3412
+ }
3413
+ function Tu(t) {
3414
+ const e = t.resumeFrom?.snapshot || t.snapshot;
3415
+ if (t.isLead() && t.layout && e && t.hasListeners("didUpdate")) {
3416
+ const { layoutBox: i, measuredBox: n } = t.layout, { animationType: s } = t.options, o = e.source !== t.layout.source;
3417
+ if (s === "size") q((u) => {
3418
+ const h = o ? e.measuredBox[u] : e.layoutBox[u], f = j(h);
3419
+ h.min = i[u].min, h.max = h.min + f;
3420
+ });
3421
+ else if (s === "x" || s === "y") {
3422
+ const u = s === "x" ? "y" : "x";
3423
+ ti(o ? e.measuredBox[u] : e.layoutBox[u], i[u]);
3424
+ } else Pr(s, e.layoutBox, i) && q((u) => {
3425
+ const h = o ? e.measuredBox[u] : e.layoutBox[u], f = j(i[u]);
3426
+ h.max = h.min + f, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[u].max = t.relativeTarget[u].min + f);
3427
+ });
3428
+ const r = St();
3429
+ Bt(r, i, e.layoutBox);
3430
+ const a = St();
3431
+ o ? Bt(a, t.applyTransform(n, !0), e.measuredBox) : Bt(a, i, e.layoutBox);
3432
+ const l = !gr(r);
3433
+ let c = !1;
3434
+ if (!t.resumeFrom) {
3435
+ const u = t.getClosestProjectingParent();
3436
+ if (u && !u.resumeFrom) {
3437
+ const { snapshot: h, layout: f } = u;
3438
+ if (h && f) {
3439
+ const p = t.options.layoutAnchor || void 0, d = L();
3440
+ ue(d, e.layoutBox, h.layoutBox, p);
3441
+ const m = L();
3442
+ ue(m, i, f.layoutBox, p), yr(d, m) || (c = !0), u.options.layoutRoot && (t.relativeTarget = m, t.relativeTargetOrigin = d, t.relativeParent = u);
3443
+ }
3444
+ }
3445
+ }
3446
+ t.notifyListeners("didUpdate", {
3447
+ layout: i,
3448
+ snapshot: e,
3449
+ delta: a,
3450
+ layoutDelta: r,
3451
+ hasLayoutChanged: l,
3452
+ hasRelativeLayoutChanged: c
3453
+ });
3454
+ } else if (t.isLead()) {
3455
+ const { onExitComplete: i } = t.options;
3456
+ i && i();
3457
+ }
3458
+ t.options.transition = void 0;
3459
+ }
3460
+ function xu(t) {
3461
+ yt.value && ht.nodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
3462
+ }
3463
+ function wu(t) {
3464
+ t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
3465
+ }
3466
+ function Pu(t) {
3467
+ t.clearSnapshot();
3468
+ }
3469
+ function Dn(t) {
3470
+ t.clearMeasurements();
3471
+ }
3472
+ function Su(t) {
3473
+ t.isLayoutDirty = !0, t.updateLayout();
3474
+ }
3475
+ function En(t) {
3476
+ t.isLayoutDirty = !1;
3477
+ }
3478
+ function bu(t) {
3479
+ t.isAnimationBlocked && t.layout && !t.isLayoutDirty && (t.snapshot = t.layout, t.isLayoutDirty = !0);
3480
+ }
3481
+ function Au(t) {
3482
+ const { visualElement: e } = t.options;
3483
+ e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
3484
+ }
3485
+ function Rn(t) {
3486
+ t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
3487
+ }
3488
+ function Vu(t) {
3489
+ t.resolveTargetDelta();
3490
+ }
3491
+ function Mu(t) {
3492
+ t.calcProjection();
3493
+ }
3494
+ function Cu(t) {
3495
+ t.resetSkewAndRotation();
3496
+ }
3497
+ function Du(t) {
3498
+ t.removeLeadSnapshot();
3499
+ }
3500
+ function Ln(t, e, i) {
3501
+ t.translate = V(e.translate, 0, i), t.scale = V(e.scale, 1, i), t.origin = e.origin, t.originPoint = e.originPoint;
3502
+ }
3503
+ function kn(t, e, i, n) {
3504
+ t.min = V(e.min, i.min, n), t.max = V(e.max, i.max, n);
3505
+ }
3506
+ function Eu(t, e, i, n) {
3507
+ kn(t.x, e.x, i.x, n), kn(t.y, e.y, i.y, n);
3508
+ }
3509
+ function Ru(t) {
3510
+ return t.animationValues && t.animationValues.opacityExit !== void 0;
3511
+ }
3512
+ var Lu = {
3513
+ duration: 0.45,
3514
+ ease: [
3515
+ 0.4,
3516
+ 0,
3517
+ 0.1,
3518
+ 1
3519
+ ]
3520
+ }, Bn = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), In = Bn("applewebkit/") && !Bn("chrome/") ? Math.round : _;
3521
+ function Fn(t) {
3522
+ t.min = In(t.min), t.max = In(t.max);
3523
+ }
3524
+ function ku(t) {
3525
+ Fn(t.x), Fn(t.y);
3526
+ }
3527
+ function Pr(t, e, i) {
3528
+ return t === "position" || t === "preserve-aspect" && !tu(bn(e), bn(i), 0.2);
3529
+ }
3530
+ function Bu(t) {
3531
+ return t !== t.root && t.scroll?.wasRoot;
3532
+ }
3533
+ var Iu = wr({
3534
+ attachResizeListener: (t, e) => Nt(t, "resize", e),
3535
+ measureScroll: () => ({
3536
+ x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
3537
+ y: document.documentElement.scrollTop || document.body?.scrollTop || 0
3538
+ }),
3539
+ checkIsScrollRoot: () => !0
3540
+ }), Ae = { current: void 0 }, Sr = wr({
3541
+ measureScroll: (t) => ({
3542
+ x: t.scrollLeft,
3543
+ y: t.scrollTop
3544
+ }),
3545
+ defaultParent: () => {
3546
+ if (!Ae.current) {
3547
+ const t = new Iu({});
3548
+ t.mount(window), t.setOptions({ layoutScroll: !0 }), Ae.current = t;
3549
+ }
3550
+ return Ae.current;
3551
+ },
3552
+ resetTransform: (t, e) => {
3553
+ t.style.transform = e !== void 0 ? e : "none";
3554
+ },
3555
+ checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
3556
+ }), br = Vt({
3557
+ transformPagePoint: (t) => t,
3558
+ isStatic: !1,
3559
+ reducedMotion: "never"
3560
+ });
3561
+ function Fu(t = !0) {
3562
+ const e = U(si);
3563
+ if (e === null) return [!0, null];
3564
+ const { isPresent: i, onExitComplete: n, register: s } = e, o = zr();
3565
+ ni(() => {
3566
+ if (t) return s(o);
3567
+ }, [t]);
3568
+ const r = Zn(() => t && n && n(o), [
3569
+ o,
3570
+ n,
3571
+ t
3572
+ ]);
3573
+ return !i && n ? [!1, r] : [!0];
3574
+ }
3575
+ var Ar = Vt({ strict: !1 }), On = {
3576
+ animation: [
3577
+ "animate",
3578
+ "variants",
3579
+ "whileHover",
3580
+ "whileTap",
3581
+ "exit",
3582
+ "whileInView",
3583
+ "whileFocus",
3584
+ "whileDrag"
3585
+ ],
3586
+ exit: ["exit"],
3587
+ drag: ["drag", "dragControls"],
3588
+ focus: ["whileFocus"],
3589
+ hover: [
3590
+ "whileHover",
3591
+ "onHoverStart",
3592
+ "onHoverEnd"
3593
+ ],
3594
+ tap: [
3595
+ "whileTap",
3596
+ "onTap",
3597
+ "onTapStart",
3598
+ "onTapCancel"
3599
+ ],
3600
+ pan: [
3601
+ "onPan",
3602
+ "onPanStart",
3603
+ "onPanSessionStart",
3604
+ "onPanEnd"
3605
+ ],
3606
+ inView: [
3607
+ "whileInView",
3608
+ "onViewportEnter",
3609
+ "onViewportLeave"
3610
+ ],
3611
+ layout: ["layout", "layoutId"]
3612
+ }, jn = !1;
3613
+ function Ou() {
3614
+ if (jn) return;
3615
+ const t = {};
3616
+ for (const e in On) t[e] = { isEnabled: (i) => On[e].some((n) => !!i[n]) };
3617
+ nr(t), jn = !0;
3618
+ }
3619
+ function Vr() {
3620
+ return Ou(), Vl();
3621
+ }
3622
+ function ju(t) {
3623
+ const e = Vr();
3624
+ for (const i in t) e[i] = {
3625
+ ...e[i],
3626
+ ...t[i]
3627
+ };
3628
+ nr(e);
3629
+ }
3630
+ var Nu = /* @__PURE__ */ new Set([
3631
+ "animate",
3632
+ "exit",
3633
+ "variants",
3634
+ "initial",
3635
+ "style",
3636
+ "values",
3637
+ "variants",
3638
+ "transition",
3639
+ "transformTemplate",
3640
+ "custom",
3641
+ "inherit",
3642
+ "onBeforeLayoutMeasure",
3643
+ "onAnimationStart",
3644
+ "onAnimationComplete",
3645
+ "onUpdate",
3646
+ "onDragStart",
3647
+ "onDrag",
3648
+ "onDragEnd",
3649
+ "onMeasureDragConstraints",
3650
+ "onDirectionLock",
3651
+ "onDragTransitionEnd",
3652
+ "_dragX",
3653
+ "_dragY",
3654
+ "onHoverStart",
3655
+ "onHoverEnd",
3656
+ "onViewportEnter",
3657
+ "onViewportLeave",
3658
+ "globalTapTarget",
3659
+ "propagate",
3660
+ "ignoreStrict",
3661
+ "viewport"
3662
+ ]);
3663
+ function ce(t) {
3664
+ return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Nu.has(t);
3665
+ }
3666
+ var Uu = /* @__PURE__ */ Wr({ default: () => Mr }), Mr, Wu = Ur((() => {
3667
+ throw Mr = {}, new Error('Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?');
3668
+ })), Cr = (t) => !ce(t);
3669
+ function $u(t) {
3670
+ typeof t == "function" && (Cr = (e) => e.startsWith("on") ? !ce(e) : t(e));
3671
+ }
3672
+ try {
3673
+ $u((Wu(), Nr(Uu)).default);
3674
+ } catch {
3675
+ }
3676
+ function Ku(t, e, i) {
3677
+ const n = {};
3678
+ for (const s in t)
3679
+ s === "values" && typeof t.values == "object" || F(t[s]) || (Cr(s) || i === !0 && ce(s) || !e && !ce(s) || t.draggable && s.startsWith("onDrag")) && (n[s] = t[s]);
3680
+ return n;
3681
+ }
3682
+ var me = /* @__PURE__ */ Vt({});
3683
+ function _u(t, e) {
3684
+ if (pe(t)) {
3685
+ const { initial: i, animate: n } = t;
3686
+ return {
3687
+ initial: i === !1 || jt(i) ? i : void 0,
3688
+ animate: jt(n) ? n : void 0
3689
+ };
3690
+ }
3691
+ return t.inherit !== !1 ? e : {};
3692
+ }
3693
+ function zu(t) {
3694
+ const { initial: e, animate: i } = _u(t, U(me));
3695
+ return he(() => ({
3696
+ initial: e,
3697
+ animate: i
3698
+ }), [Nn(e), Nn(i)]);
3699
+ }
3700
+ function Nn(t) {
3701
+ return Array.isArray(t) ? t.join(" ") : t;
3702
+ }
3703
+ var Di = () => ({
3704
+ style: {},
3705
+ transform: {},
3706
+ transformOrigin: {},
3707
+ vars: {}
3708
+ });
3709
+ function Dr(t, e, i) {
3710
+ for (const n in e) !F(e[n]) && !cr(n, i) && (t[n] = e[n]);
3711
+ }
3712
+ function Hu({ transformTemplate: t }, e) {
3713
+ return he(() => {
3714
+ const i = Di();
3715
+ return Mi(i, e, t), Object.assign({}, i.vars, i.style);
3716
+ }, [e]);
3717
+ }
3718
+ function Gu(t, e) {
3719
+ const i = t.style || {}, n = {};
3720
+ return Dr(n, i, t), Object.assign(n, Hu(t, e)), n;
3721
+ }
3722
+ function Xu(t, e) {
3723
+ const i = {}, n = Gu(t, e);
3724
+ return t.drag && t.dragListener !== !1 && (i.draggable = !1, n.userSelect = n.WebkitUserSelect = n.WebkitTouchCallout = "none", n.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (i.tabIndex = 0), i.style = n, i;
3725
+ }
3726
+ var Er = () => ({
3727
+ ...Di(),
3728
+ attrs: {}
3729
+ });
3730
+ function Yu(t, e, i, n) {
3731
+ const s = he(() => {
3732
+ const o = Er();
3733
+ return hr(o, e, dr(n), t.transformTemplate, t.style), {
3734
+ ...o.attrs,
3735
+ style: { ...o.style }
3736
+ };
3737
+ }, [e]);
3738
+ if (t.style) {
3739
+ const o = {};
3740
+ Dr(o, t.style, t), s.style = {
3741
+ ...o,
3742
+ ...s.style
3743
+ };
3744
+ }
3745
+ return s;
3746
+ }
3747
+ var qu = [
3748
+ "animate",
3749
+ "circle",
3750
+ "defs",
3751
+ "desc",
3752
+ "ellipse",
3753
+ "g",
3754
+ "image",
3755
+ "line",
3756
+ "filter",
3757
+ "marker",
3758
+ "mask",
3759
+ "metadata",
3760
+ "path",
3761
+ "pattern",
3762
+ "polygon",
3763
+ "polyline",
3764
+ "rect",
3765
+ "stop",
3766
+ "switch",
3767
+ "symbol",
3768
+ "svg",
3769
+ "text",
3770
+ "tspan",
3771
+ "use",
3772
+ "view"
3773
+ ];
3774
+ function Ei(t) {
3775
+ return typeof t != "string" || t.includes("-") ? !1 : !!(qu.indexOf(t) > -1 || /[A-Z]/u.test(t));
3776
+ }
3777
+ function Zu(t, e, i, { latestValues: n }, s, o = !1, r) {
3778
+ const a = (r ?? Ei(t) ? Yu : Xu)(e, n, s, t), l = Ku(e, typeof t == "string", o), c = t !== qn ? {
3779
+ ...l,
3780
+ ...a,
3781
+ ref: i
3782
+ } : {}, { children: u } = e, h = he(() => F(u) ? u.get() : u, [u]);
3783
+ return Kr(t, {
3784
+ ...c,
3785
+ children: h
3786
+ });
3787
+ }
3788
+ function Ju({ scrapeMotionValuesFromProps: t, createRenderState: e }, i, n, s) {
3789
+ return {
3790
+ latestValues: Qu(i, n, s, t),
3791
+ renderState: e()
3792
+ };
3793
+ }
3794
+ function Qu(t, e, i, n) {
3795
+ const s = {}, o = n(t, {});
3796
+ for (const f in o) s[f] = te(o[f]);
3797
+ let { initial: r, animate: a } = t;
3798
+ const l = pe(t), c = er(t);
3799
+ e && c && !l && t.inherit !== !1 && (r === void 0 && (r = e.initial), a === void 0 && (a = e.animate));
3800
+ let u = i ? i.initial === !1 : !1;
3801
+ u = u || r === !1;
3802
+ const h = u ? a : r;
3803
+ if (h && typeof h != "boolean" && !de(h)) {
3804
+ const f = Array.isArray(h) ? h : [h];
3805
+ for (let p = 0; p < f.length; p++) {
3806
+ const d = Ti(t, f[p]);
3807
+ if (d) {
3808
+ const { transitionEnd: m, transition: v, ...g } = d;
3809
+ for (const T in g) {
3810
+ let x = g[T];
3811
+ if (Array.isArray(x)) {
3812
+ const w = u ? x.length - 1 : 0;
3813
+ x = x[w];
3814
+ }
3815
+ x !== null && (s[T] = x);
3816
+ }
3817
+ for (const T in m) s[T] = m[T];
3818
+ }
3819
+ }
3820
+ }
3821
+ return s;
3822
+ }
3823
+ var Rr = (t) => (e, i) => {
3824
+ const n = U(me), s = U(si), o = () => Ju(t, e, n, s);
3825
+ return i ? o() : Xr(o);
3826
+ }, tc = /* @__PURE__ */ Rr({
3827
+ scrapeMotionValuesFromProps: Ci,
3828
+ createRenderState: Di
3829
+ }), ec = /* @__PURE__ */ Rr({
3830
+ scrapeMotionValuesFromProps: pr,
3831
+ createRenderState: Er
3832
+ }), ic = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
3833
+ function nc(t, e, i) {
3834
+ const n = ft(i);
3835
+ Jn(() => {
3836
+ n.current = i;
3837
+ });
3838
+ const s = ft(null);
3839
+ return Zn((o) => {
3840
+ o && t.onMount?.(o), e && (o ? e.mount(o) : e.unmount());
3841
+ const r = n.current;
3842
+ if (typeof r == "function") if (o) {
3843
+ const a = r(o);
3844
+ typeof a == "function" && (s.current = a);
3845
+ } else s.current ? (s.current(), s.current = null) : r(o);
3846
+ else r && (r.current = o);
3847
+ }, [e]);
3848
+ }
3849
+ var Lr = Vt({});
3850
+ function Tt(t) {
3851
+ return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
3852
+ }
3853
+ function sc(t, e, i, n, s, o) {
3854
+ const { visualElement: r } = U(me), a = U(Ar), l = U(si), c = U(br), u = c.reducedMotion, h = c.skipAnimations, f = ft(null), p = ft(!1);
3855
+ n = n || a.renderer, !f.current && n && (f.current = n(t, {
3856
+ visualState: e,
3857
+ parent: r,
3858
+ props: i,
3859
+ presenceContext: l,
3860
+ blockInitialAnimation: l ? l.initial === !1 : !1,
3861
+ reducedMotionConfig: u,
3862
+ skipAnimations: h,
3863
+ isSVG: o
3864
+ }), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
3865
+ const d = f.current, m = U(Lr);
3866
+ d && !d.projection && s && (d.type === "html" || d.type === "svg") && rc(f.current, i, s, m);
3867
+ const v = ft(!1);
3868
+ Jn(() => {
3869
+ d && v.current && d.update(i, l);
3870
+ });
3871
+ const g = i[Ks], T = ft(!!g && typeof window < "u" && !window.MotionHandoffIsComplete?.(g) && window.MotionHasOptimisedAnimation?.(g));
3872
+ return qr(() => {
3873
+ p.current = !0, d && (v.current = !0, window.MotionIsMounted = !0, d.updateFeatures(), d.scheduleRenderMicrotask(), T.current && d.animationState && d.animationState.animateChanges());
3874
+ }), ni(() => {
3875
+ d && (!T.current && d.animationState && d.animationState.animateChanges(), T.current && (queueMicrotask(() => {
3876
+ window.MotionHandoffMarkAsComplete?.(g);
3877
+ }), T.current = !1), d.enteringChildren = void 0);
3878
+ }), d;
3879
+ }
3880
+ function rc(t, e, i, n) {
3881
+ const { layoutId: s, layout: o, drag: r, dragConstraints: a, layoutScroll: l, layoutRoot: c, layoutAnchor: u, layoutCrossfade: h } = e;
3882
+ t.projection = new i(t.latestValues, e["data-framer-portal-id"] ? void 0 : kr(t.parent)), t.projection.setOptions({
3883
+ layoutId: s,
3884
+ layout: o,
3885
+ alwaysMeasureLayout: !!r || a && Tt(a),
3886
+ visualElement: t,
3887
+ animationType: typeof o == "string" ? o : "both",
3888
+ initialPromotionConfig: n,
3889
+ crossfade: h,
3890
+ layoutScroll: l,
3891
+ layoutRoot: c,
3892
+ layoutAnchor: u
3893
+ });
3894
+ }
3895
+ function kr(t) {
3896
+ if (t)
3897
+ return t.options.allowProjection !== !1 ? t.projection : kr(t.parent);
3898
+ }
3899
+ function Ve(t, { forwardMotionProps: e = !1, type: i } = {}, n, s) {
3900
+ n && ju(n);
3901
+ const o = i ? i === "svg" : Ei(t), r = o ? ec : tc;
3902
+ function a(c, u) {
3903
+ let h;
3904
+ const f = {
3905
+ ...U(br),
3906
+ ...c,
3907
+ layoutId: oc(c)
3908
+ }, { isStatic: p } = f, d = zu(c), m = r(c, p);
3909
+ if (!p && typeof window < "u") {
3910
+ ac(f, n);
3911
+ const v = lc(f);
3912
+ h = v.MeasureLayout, d.visualElement = sc(t, m, f, s, v.ProjectionNode, o);
3913
+ }
3914
+ return Gr(me.Provider, {
3915
+ value: d,
3916
+ children: [h && d.visualElement ? Qn(h, {
3917
+ visualElement: d.visualElement,
3918
+ ...f
3919
+ }) : null, Zu(t, c, nc(m, d.visualElement, u), m, p, e, o)]
3920
+ });
3921
+ }
3922
+ a.displayName = `motion.${typeof t == "string" ? t : `create(${t.displayName ?? t.name ?? ""})`}`;
3923
+ const l = _r(a);
3924
+ return l[ic] = t, l;
3925
+ }
3926
+ function oc({ layoutId: t }) {
3927
+ const e = U(ts).id;
3928
+ return e && t !== void 0 ? e + "-" + t : t;
3929
+ }
3930
+ function ac(t, e) {
3931
+ const i = U(Ar).strict;
3932
+ if (process.env.NODE_ENV !== "production" && e && i) {
3933
+ const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
3934
+ t.ignoreStrict ? Mt(!1, n, "lazy-strict-mode") : it(!1, n, "lazy-strict-mode");
3935
+ }
3936
+ }
3937
+ function lc(t) {
3938
+ const { drag: e, layout: i } = Vr();
3939
+ if (!e && !i) return {};
3940
+ const n = {
3941
+ ...e,
3942
+ ...i
3943
+ };
3944
+ return {
3945
+ MeasureLayout: e?.isEnabled(t) || i?.isEnabled(t) ? n.MeasureLayout : void 0,
3946
+ ProjectionNode: n.ProjectionNode
3947
+ };
3948
+ }
3949
+ function uc(t, e) {
3950
+ if (typeof Proxy > "u") return Ve;
3951
+ const i = /* @__PURE__ */ new Map(), n = (o, r) => Ve(o, r, t, e), s = (o, r) => (process.env.NODE_ENV !== "production" && ai(!1, "motion() is deprecated. Use motion.create() instead."), n(o, r));
3952
+ return new Proxy(s, { get: (o, r) => r === "create" ? n : (i.has(r) || i.set(r, Ve(r, void 0, t, e)), i.get(r)) });
3953
+ }
3954
+ var cc = (t, e) => e.isSVG ?? Ei(t) ? new Kl(e) : new Ol(e, { allowProjection: t !== qn }), hc = class extends ot {
3955
+ constructor(t) {
3956
+ super(t), t.animationState || (t.animationState = Xl(t));
3957
+ }
3958
+ updateAnimationControlsSubscription() {
3959
+ const { animate: t } = this.node.getProps();
3960
+ de(t) && (this.unmountControls = t.subscribe(this.node));
3961
+ }
3962
+ mount() {
3963
+ this.updateAnimationControlsSubscription();
3964
+ }
3965
+ update() {
3966
+ const { animate: t } = this.node.getProps(), { animate: e } = this.node.prevProps || {};
3967
+ t !== e && this.updateAnimationControlsSubscription();
3968
+ }
3969
+ unmount() {
3970
+ this.node.animationState.reset(), this.unmountControls?.();
3971
+ }
3972
+ }, fc = 0, dc = class extends ot {
3973
+ constructor() {
3974
+ super(...arguments), this.id = fc++, this.isExitComplete = !1;
3975
+ }
3976
+ update() {
3977
+ if (!this.node.presenceContext) return;
3978
+ const { isPresent: t, onExitComplete: e } = this.node.presenceContext, { isPresent: i } = this.node.prevPresenceContext || {};
3979
+ if (!this.node.animationState || t === i) return;
3980
+ if (t && i === !1) {
3981
+ if (this.isExitComplete) {
3982
+ const { initial: s, custom: o } = this.node.getProps();
3983
+ if (typeof s == "string" || typeof s == "object" && s !== null && !Array.isArray(s)) {
3984
+ const r = vt(this.node, s, o);
3985
+ if (r) {
3986
+ const { transition: a, transitionEnd: l, ...c } = r;
3987
+ for (const u in c) this.node.getValue(u)?.jump(c[u]);
3988
+ }
3989
+ }
3990
+ this.node.animationState.reset(), this.node.animationState.animateChanges();
3991
+ } else this.node.animationState.setActive("exit", !1);
3992
+ this.isExitComplete = !1;
3993
+ return;
3994
+ }
3995
+ const n = this.node.animationState.setActive("exit", !t);
3996
+ e && !t && n.then(() => {
3997
+ this.isExitComplete = !0, e(this.id);
3998
+ });
3999
+ }
4000
+ mount() {
4001
+ const { register: t, onExitComplete: e } = this.node.presenceContext || {};
4002
+ e && e(this.id), t && (this.unmount = t(this.id));
4003
+ }
4004
+ unmount() {
4005
+ }
4006
+ }, pc = {
4007
+ animation: { Feature: hc },
4008
+ exit: { Feature: dc }
4009
+ };
4010
+ function Kt(t) {
4011
+ return { point: {
4012
+ x: t.pageX,
4013
+ y: t.pageY
4014
+ } };
4015
+ }
4016
+ var mc = (t) => (e) => Si(e) && t(e, Kt(e));
4017
+ function It(t, e, i, n) {
4018
+ return Nt(t, e, mc(i), n);
4019
+ }
4020
+ var Br = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Un = (t, e) => Math.abs(t - e);
4021
+ function vc(t, e) {
4022
+ const i = Un(t.x, e.x), n = Un(t.y, e.y);
4023
+ return Math.sqrt(i ** 2 + n ** 2);
4024
+ }
4025
+ var Wn = /* @__PURE__ */ new Set(["auto", "scroll"]), Ir = class {
4026
+ constructor(t, e, { transformPagePoint: i, contextWindow: n = window, dragSnapToOrigin: s = !1, distanceThreshold: o = 3, element: r } = {}) {
4027
+ if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (f) => {
4028
+ this.handleScroll(f.target);
4029
+ }, this.onWindowScroll = () => {
4030
+ this.handleScroll(window);
4031
+ }, this.updatePoint = () => {
4032
+ if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4033
+ this.lastRawMoveEventInfo && (this.lastMoveEventInfo = Ht(this.lastRawMoveEventInfo, this.transformPagePoint));
4034
+ const f = Me(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, d = vc(f.offset, {
4035
+ x: 0,
4036
+ y: 0
4037
+ }) >= this.distanceThreshold;
4038
+ if (!p && !d) return;
4039
+ const { point: m } = f, { timestamp: v } = I;
4040
+ this.history.push({
4041
+ ...m,
4042
+ timestamp: v
4043
+ });
4044
+ const { onStart: g, onMove: T } = this.handlers;
4045
+ p || (g && g(this.lastMoveEvent, f), this.startEvent = this.lastMoveEvent), T && T(this.lastMoveEvent, f);
4046
+ }, this.handlePointerMove = (f, p) => {
4047
+ this.lastMoveEvent = f, this.lastRawMoveEventInfo = p, this.lastMoveEventInfo = Ht(p, this.transformPagePoint), M.update(this.updatePoint, !0);
4048
+ }, this.handlePointerUp = (f, p) => {
4049
+ this.end();
4050
+ const { onEnd: d, onSessionEnd: m, resumeAnimation: v } = this.handlers;
4051
+ if ((this.dragSnapToOrigin || !this.startEvent) && v && v(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
4052
+ const g = Me(f.type === "pointercancel" ? this.lastMoveEventInfo : Ht(p, this.transformPagePoint), this.history);
4053
+ this.startEvent && d && d(f, g), m && m(f, g);
4054
+ }, !Si(t)) return;
4055
+ this.dragSnapToOrigin = s, this.handlers = e, this.transformPagePoint = i, this.distanceThreshold = o, this.contextWindow = n || window;
4056
+ const a = Ht(Kt(t), this.transformPagePoint), { point: l } = a, { timestamp: c } = I;
4057
+ this.history = [{
4058
+ ...l,
4059
+ timestamp: c
4060
+ }];
4061
+ const { onSessionStart: u } = e;
4062
+ u && u(t, Me(a, this.history));
4063
+ const h = {
4064
+ passive: !0,
4065
+ capture: !0
4066
+ };
4067
+ this.removeListeners = Ut(It(this.contextWindow, "pointermove", this.handlePointerMove, h), It(this.contextWindow, "pointerup", this.handlePointerUp, h), It(this.contextWindow, "pointercancel", this.handlePointerUp, h)), r && this.startScrollTracking(r);
4068
+ }
4069
+ startScrollTracking(t) {
4070
+ let e = t.parentElement;
4071
+ for (; e; ) {
4072
+ const i = getComputedStyle(e);
4073
+ (Wn.has(i.overflowX) || Wn.has(i.overflowY)) && this.scrollPositions.set(e, {
4074
+ x: e.scrollLeft,
4075
+ y: e.scrollTop
4076
+ }), e = e.parentElement;
4077
+ }
4078
+ this.scrollPositions.set(window, {
4079
+ x: window.scrollX,
4080
+ y: window.scrollY
4081
+ }), window.addEventListener("scroll", this.onElementScroll, { capture: !0 }), window.addEventListener("scroll", this.onWindowScroll), this.removeScrollListeners = () => {
4082
+ window.removeEventListener("scroll", this.onElementScroll, { capture: !0 }), window.removeEventListener("scroll", this.onWindowScroll);
4083
+ };
4084
+ }
4085
+ handleScroll(t) {
4086
+ const e = this.scrollPositions.get(t);
4087
+ if (!e) return;
4088
+ const i = t === window, n = i ? {
4089
+ x: window.scrollX,
4090
+ y: window.scrollY
4091
+ } : {
4092
+ x: t.scrollLeft,
4093
+ y: t.scrollTop
4094
+ }, s = {
4095
+ x: n.x - e.x,
4096
+ y: n.y - e.y
4097
+ };
4098
+ s.x === 0 && s.y === 0 || (i ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += s.x, this.lastMoveEventInfo.point.y += s.y) : this.history.length > 0 && (this.history[0].x -= s.x, this.history[0].y -= s.y), this.scrollPositions.set(t, n), M.update(this.updatePoint, !0));
4099
+ }
4100
+ updateHandlers(t) {
4101
+ this.handlers = t;
4102
+ }
4103
+ end() {
4104
+ this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), rt(this.updatePoint);
4105
+ }
4106
+ };
4107
+ function Ht(t, e) {
4108
+ return e ? { point: e(t.point) } : t;
4109
+ }
4110
+ function $n(t, e) {
4111
+ return {
4112
+ x: t.x - e.x,
4113
+ y: t.y - e.y
4114
+ };
4115
+ }
4116
+ function Me({ point: t }, e) {
4117
+ return {
4118
+ point: t,
4119
+ delta: $n(t, Fr(e)),
4120
+ offset: $n(t, gc(e)),
4121
+ velocity: yc(e, 0.1)
4122
+ };
4123
+ }
4124
+ function gc(t) {
4125
+ return t[0];
4126
+ }
4127
+ function Fr(t) {
4128
+ return t[t.length - 1];
4129
+ }
4130
+ function yc(t, e) {
4131
+ if (t.length < 2) return {
4132
+ x: 0,
4133
+ y: 0
4134
+ };
4135
+ let i = t.length - 1, n = null;
4136
+ const s = Fr(t);
4137
+ for (; i >= 0 && (n = t[i], !(s.timestamp - n.timestamp > W(e))); )
4138
+ i--;
4139
+ if (!n) return {
4140
+ x: 0,
4141
+ y: 0
4142
+ };
4143
+ n === t[0] && t.length > 2 && s.timestamp - n.timestamp > W(e) * 2 && (n = t[1]);
4144
+ const o = K(s.timestamp - n.timestamp);
4145
+ if (o === 0) return {
4146
+ x: 0,
4147
+ y: 0
4148
+ };
4149
+ const r = {
4150
+ x: (s.x - n.x) / o,
4151
+ y: (s.y - n.y) / o
4152
+ };
4153
+ return r.x === 1 / 0 && (r.x = 0), r.y === 1 / 0 && (r.y = 0), r;
4154
+ }
4155
+ function Tc(t, { min: e, max: i }, n) {
4156
+ return e !== void 0 && t < e ? t = n ? V(e, t, n.min) : Math.max(t, e) : i !== void 0 && t > i && (t = n ? V(i, t, n.max) : Math.min(t, i)), t;
4157
+ }
4158
+ function Kn(t, e, i) {
4159
+ return {
4160
+ min: e !== void 0 ? t.min + e : void 0,
4161
+ max: i !== void 0 ? t.max + i - (t.max - t.min) : void 0
4162
+ };
4163
+ }
4164
+ function xc(t, { top: e, left: i, bottom: n, right: s }) {
4165
+ return {
4166
+ x: Kn(t.x, i, s),
4167
+ y: Kn(t.y, e, n)
4168
+ };
4169
+ }
4170
+ function _n(t, e) {
4171
+ let i = e.min - t.min, n = e.max - t.max;
4172
+ return e.max - e.min < t.max - t.min && ([i, n] = [n, i]), {
4173
+ min: i,
4174
+ max: n
4175
+ };
4176
+ }
4177
+ function wc(t, e) {
4178
+ return {
4179
+ x: _n(t.x, e.x),
4180
+ y: _n(t.y, e.y)
4181
+ };
4182
+ }
4183
+ function Pc(t, e) {
4184
+ let i = 0.5;
4185
+ const n = j(t), s = j(e);
4186
+ return s > n ? i = Ft(e.min, e.max - n, t.min) : n > s && (i = Ft(t.min, t.max - s, e.min)), Q(0, 1, i);
4187
+ }
4188
+ function Sc(t, e) {
4189
+ const i = {};
4190
+ return e.min !== void 0 && (i.min = e.min - t.min), e.max !== void 0 && (i.max = e.max - t.min), i;
4191
+ }
4192
+ var ei = 0.35;
4193
+ function bc(t = ei) {
4194
+ return t === !1 ? t = 0 : t === !0 && (t = ei), {
4195
+ x: zn(t, "left", "right"),
4196
+ y: zn(t, "top", "bottom")
4197
+ };
4198
+ }
4199
+ function zn(t, e, i) {
4200
+ return {
4201
+ min: Hn(t, e),
4202
+ max: Hn(t, i)
4203
+ };
4204
+ }
4205
+ function Hn(t, e) {
4206
+ return typeof t == "number" ? t : t[e] || 0;
4207
+ }
4208
+ var Ac = /* @__PURE__ */ new WeakMap(), Vc = class {
4209
+ constructor(t) {
4210
+ this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
4211
+ x: 0,
4212
+ y: 0
4213
+ }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = L(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = t;
4214
+ }
4215
+ start(t, { snapToCursor: e = !1, distanceThreshold: i } = {}) {
4216
+ const { presenceContext: n } = this.visualElement;
4217
+ if (n && n.isPresent === !1) return;
4218
+ const s = (u) => {
4219
+ e && this.snapToCursor(Kt(u).point), this.stopAnimation();
4220
+ }, o = (u, h) => {
4221
+ const { drag: f, dragPropagation: p, onDragStart: d } = this.getProps();
4222
+ if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = il(f), !this.openDragLock))
4223
+ return;
4224
+ this.latestPointerEvent = u, this.latestPanInfo = h, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), q((v) => {
4225
+ let g = this.getAxisMotionValue(v).get() || 0;
4226
+ if (J.test(g)) {
4227
+ const { projection: T } = this.visualElement;
4228
+ if (T && T.layout) {
4229
+ const x = T.layout.layoutBox[v];
4230
+ x && (g = j(x) * (parseFloat(g) / 100));
4231
+ }
4232
+ }
4233
+ this.originPoint[v] = g;
4234
+ }), d && M.update(() => d(u, h), !1, !0), ze(this.visualElement, "transform");
4235
+ const { animationState: m } = this.visualElement;
4236
+ m && m.setActive("whileDrag", !0);
4237
+ }, r = (u, h) => {
4238
+ this.latestPointerEvent = u, this.latestPanInfo = h;
4239
+ const { dragPropagation: f, dragDirectionLock: p, onDirectionLock: d, onDrag: m } = this.getProps();
4240
+ if (!f && !this.openDragLock) return;
4241
+ const { offset: v } = h;
4242
+ if (p && this.currentDirection === null) {
4243
+ this.currentDirection = Cc(v), this.currentDirection !== null && d && d(this.currentDirection);
4244
+ return;
4245
+ }
4246
+ this.updateAxis("x", h.point, v), this.updateAxis("y", h.point, v), this.visualElement.render(), m && M.update(() => m(u, h), !1, !0);
4247
+ }, a = (u, h) => {
4248
+ this.latestPointerEvent = u, this.latestPanInfo = h, this.stop(u, h), this.latestPointerEvent = null, this.latestPanInfo = null;
4249
+ }, l = () => {
4250
+ const { dragSnapToOrigin: u } = this.getProps();
4251
+ (u || this.constraints) && this.startAnimation({
4252
+ x: 0,
4253
+ y: 0
4254
+ });
4255
+ }, { dragSnapToOrigin: c } = this.getProps();
4256
+ this.panSession = new Ir(t, {
4257
+ onSessionStart: s,
4258
+ onStart: o,
4259
+ onMove: r,
4260
+ onSessionEnd: a,
4261
+ resumeAnimation: l
4262
+ }, {
4263
+ transformPagePoint: this.visualElement.getTransformPagePoint(),
4264
+ dragSnapToOrigin: c,
4265
+ distanceThreshold: i,
4266
+ contextWindow: Br(this.visualElement),
4267
+ element: this.visualElement.current
4268
+ });
4269
+ }
4270
+ stop(t, e) {
4271
+ const i = t || this.latestPointerEvent, n = e || this.latestPanInfo, s = this.isDragging;
4272
+ if (this.cancel(), !s || !n || !i) return;
4273
+ const { velocity: o } = n;
4274
+ this.startAnimation(o);
4275
+ const { onDragEnd: r } = this.getProps();
4276
+ r && M.postRender(() => r(i, n));
4277
+ }
4278
+ cancel() {
4279
+ this.isDragging = !1;
4280
+ const { projection: t, animationState: e } = this.visualElement;
4281
+ t && (t.isAnimationBlocked = !1), this.endPanSession();
4282
+ const { dragPropagation: i } = this.getProps();
4283
+ !i && this.openDragLock && (this.openDragLock(), this.openDragLock = null), e && e.setActive("whileDrag", !1);
4284
+ }
4285
+ endPanSession() {
4286
+ this.panSession && this.panSession.end(), this.panSession = void 0;
4287
+ }
4288
+ updateAxis(t, e, i) {
4289
+ const { drag: n } = this.getProps();
4290
+ if (!i || !Gt(t, n, this.currentDirection)) return;
4291
+ const s = this.getAxisMotionValue(t);
4292
+ let o = this.originPoint[t] + i[t];
4293
+ this.constraints && this.constraints[t] && (o = Tc(o, this.constraints[t], this.elastic[t])), s.set(o);
4294
+ }
4295
+ resolveConstraints() {
4296
+ const { dragConstraints: t, dragElastic: e } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, n = this.constraints;
4297
+ t && Tt(t) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : t && i ? this.constraints = xc(i.layoutBox, t) : this.constraints = !1, this.elastic = bc(e), n !== this.constraints && !Tt(t) && i && this.constraints && !this.hasMutatedConstraints && q((s) => {
4298
+ this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Sc(i.layoutBox[s], this.constraints[s]));
4299
+ });
4300
+ }
4301
+ resolveRefConstraints() {
4302
+ const { dragConstraints: t, onMeasureDragConstraints: e } = this.getProps();
4303
+ if (!t || !Tt(t)) return !1;
4304
+ const i = t.current;
4305
+ it(i !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
4306
+ const { projection: n } = this.visualElement;
4307
+ if (!n || !n.layout) return !1;
4308
+ n.root && (n.root.scroll = void 0, n.root.updateScroll());
4309
+ const s = Rl(i, n.root, this.visualElement.getTransformPagePoint());
4310
+ let o = wc(n.layout.layoutBox, s);
4311
+ if (e) {
4312
+ const r = e(Cl(o));
4313
+ this.hasMutatedConstraints = !!r, r && (o = rr(r));
4314
+ }
4315
+ return o;
4316
+ }
4317
+ startAnimation(t) {
4318
+ const { drag: e, dragMomentum: i, dragElastic: n, dragTransition: s, dragSnapToOrigin: o, onDragTransitionEnd: r } = this.getProps(), a = this.constraints || {}, l = q((c) => {
4319
+ if (!Gt(c, e, this.currentDirection)) return;
4320
+ let u = a && a[c] || {};
4321
+ (o === !0 || o === c) && (u = {
4322
+ min: 0,
4323
+ max: 0
4324
+ });
4325
+ const h = n ? 200 : 1e6, f = n ? 40 : 1e7, p = {
4326
+ type: "inertia",
4327
+ velocity: i ? t[c] : 0,
4328
+ bounceStiffness: h,
4329
+ bounceDamping: f,
4330
+ timeConstant: 750,
4331
+ restDelta: 1,
4332
+ restSpeed: 10,
4333
+ ...s,
4334
+ ...u
4335
+ };
4336
+ return this.startAxisValueAnimation(c, p);
4337
+ });
4338
+ return Promise.all(l).then(r);
4339
+ }
4340
+ startAxisValueAnimation(t, e) {
4341
+ const i = this.getAxisMotionValue(t);
4342
+ return ze(this.visualElement, t), i.start(yi(t, i, 0, e, this.visualElement, !1));
4343
+ }
4344
+ stopAnimation() {
4345
+ q((t) => this.getAxisMotionValue(t).stop());
4346
+ }
4347
+ getAxisMotionValue(t) {
4348
+ const e = `_drag${t.toUpperCase()}`, i = this.visualElement.getProps()[e];
4349
+ return i || this.visualElement.getValue(t, this.visualElement.latestValues[t] ?? 0);
4350
+ }
4351
+ snapToCursor(t) {
4352
+ q((e) => {
4353
+ const { drag: i } = this.getProps();
4354
+ if (!Gt(e, i, this.currentDirection)) return;
4355
+ const { projection: n } = this.visualElement, s = this.getAxisMotionValue(e);
4356
+ if (n && n.layout) {
4357
+ const { min: o, max: r } = n.layout.layoutBox[e], a = s.get() || 0;
4358
+ s.set(t[e] - V(o, r, 0.5) + a);
4359
+ }
4360
+ });
4361
+ }
4362
+ scalePositionWithinConstraints() {
4363
+ if (!this.visualElement.current) return;
4364
+ const { drag: t, dragConstraints: e } = this.getProps(), { projection: i } = this.visualElement;
4365
+ if (!Tt(e) || !i || !this.constraints) return;
4366
+ this.stopAnimation();
4367
+ const n = {
4368
+ x: 0,
4369
+ y: 0
4370
+ };
4371
+ q((o) => {
4372
+ const r = this.getAxisMotionValue(o);
4373
+ if (r && this.constraints !== !1) {
4374
+ const a = r.get();
4375
+ n[o] = Pc({
4376
+ min: a,
4377
+ max: a
4378
+ }, this.constraints[o]);
4379
+ }
4380
+ });
4381
+ const { transformTemplate: s } = this.visualElement.getProps();
4382
+ this.visualElement.current.style.transform = s ? s({}, "") : "none", i.root && i.root.updateScroll(), i.updateLayout(), this.constraints = !1, this.resolveConstraints(), q((o) => {
4383
+ if (!Gt(o, t, null)) return;
4384
+ const r = this.getAxisMotionValue(o), { min: a, max: l } = this.constraints[o];
4385
+ r.set(V(a, l, n[o]));
4386
+ }), this.visualElement.render();
4387
+ }
4388
+ addListeners() {
4389
+ if (!this.visualElement.current) return;
4390
+ Ac.set(this.visualElement, this);
4391
+ const t = this.visualElement.current, e = It(t, "pointerdown", (l) => {
4392
+ const { drag: c, dragListener: u = !0 } = this.getProps(), h = l.target, f = h !== t && ll(h);
4393
+ c && u && !f && this.start(l);
4394
+ });
4395
+ let i;
4396
+ const n = () => {
4397
+ const { dragConstraints: l } = this.getProps();
4398
+ Tt(l) && l.current && (this.constraints = this.resolveRefConstraints(), i || (i = Mc(t, l.current, () => this.scalePositionWithinConstraints())));
4399
+ }, { projection: s } = this.visualElement, o = s.addEventListener("measure", n);
4400
+ s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), M.read(n);
4401
+ const r = Nt(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", (({ delta: l, hasLayoutChanged: c }) => {
4402
+ this.isDragging && c && (q((u) => {
4403
+ const h = this.getAxisMotionValue(u);
4404
+ h && (this.originPoint[u] += l[u].translate, h.set(h.get() + l[u].translate));
4405
+ }), this.visualElement.render());
4406
+ }));
4407
+ return () => {
4408
+ r(), e(), o(), a && a(), i && i();
4409
+ };
4410
+ }
4411
+ getProps() {
4412
+ const t = this.visualElement.getProps(), { drag: e = !1, dragDirectionLock: i = !1, dragPropagation: n = !1, dragConstraints: s = !1, dragElastic: o = ei, dragMomentum: r = !0 } = t;
4413
+ return {
4414
+ ...t,
4415
+ drag: e,
4416
+ dragDirectionLock: i,
4417
+ dragPropagation: n,
4418
+ dragConstraints: s,
4419
+ dragElastic: o,
4420
+ dragMomentum: r
4421
+ };
4422
+ }
4423
+ };
4424
+ function Gn(t) {
4425
+ let e = !0;
4426
+ return () => {
4427
+ if (e) {
4428
+ e = !1;
4429
+ return;
4430
+ }
4431
+ t();
4432
+ };
4433
+ }
4434
+ function Mc(t, e, i) {
4435
+ const n = en(t, Gn(i)), s = en(e, Gn(i));
4436
+ return () => {
4437
+ n(), s();
4438
+ };
4439
+ }
4440
+ function Gt(t, e, i) {
4441
+ return (e === !0 || e === t) && (i === null || i === t);
4442
+ }
4443
+ function Cc(t, e = 10) {
4444
+ let i = null;
4445
+ return Math.abs(t.y) > e ? i = "y" : Math.abs(t.x) > e && (i = "x"), i;
4446
+ }
4447
+ var Dc = class extends ot {
4448
+ constructor(t) {
4449
+ super(t), this.removeGroupControls = _, this.removeListeners = _, this.controls = new Vc(t);
4450
+ }
4451
+ mount() {
4452
+ const { dragControls: t } = this.node.getProps();
4453
+ t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || _;
4454
+ }
4455
+ update() {
4456
+ const { dragControls: t } = this.node.getProps(), { dragControls: e } = this.node.prevProps || {};
4457
+ t !== e && (this.removeGroupControls(), t && (this.removeGroupControls = t.subscribe(this.controls)));
4458
+ }
4459
+ unmount() {
4460
+ this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
4461
+ }
4462
+ }, Ce = (t) => (e, i) => {
4463
+ t && M.update(() => t(e, i), !1, !0);
4464
+ }, Ec = class extends ot {
4465
+ constructor() {
4466
+ super(...arguments), this.removePointerDownListener = _;
4467
+ }
4468
+ onPointerDown(t) {
4469
+ this.session = new Ir(t, this.createPanHandlers(), {
4470
+ transformPagePoint: this.node.getTransformPagePoint(),
4471
+ contextWindow: Br(this.node)
4472
+ });
4473
+ }
4474
+ createPanHandlers() {
4475
+ const { onPanSessionStart: t, onPanStart: e, onPan: i, onPanEnd: n } = this.node.getProps();
4476
+ return {
4477
+ onSessionStart: Ce(t),
4478
+ onStart: Ce(e),
4479
+ onMove: Ce(i),
4480
+ onEnd: (s, o) => {
4481
+ delete this.session, n && M.postRender(() => n(s, o));
4482
+ }
4483
+ };
4484
+ }
4485
+ mount() {
4486
+ this.removePointerDownListener = It(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
4487
+ }
4488
+ update() {
4489
+ this.session && this.session.updateHandlers(this.createPanHandlers());
4490
+ }
4491
+ unmount() {
4492
+ this.removePointerDownListener(), this.session && this.session.end();
4493
+ }
4494
+ }, De = !1, Rc = class extends $r {
4495
+ componentDidMount() {
4496
+ const { visualElement: t, layoutGroup: e, switchLayoutGroup: i, layoutId: n } = this.props, { projection: s } = t;
4497
+ s && (e.group && e.group.add(s), i && i.register && n && i.register(s), De && s.root.didUpdate(), s.addEventListener("animationComplete", () => {
4498
+ this.safeToRemove();
4499
+ }), s.setOptions({
4500
+ ...s.options,
4501
+ layoutDependency: this.props.layoutDependency,
4502
+ onExitComplete: () => this.safeToRemove()
4503
+ })), ee.hasEverUpdated = !0;
4504
+ }
4505
+ getSnapshotBeforeUpdate(t) {
4506
+ const { layoutDependency: e, visualElement: i, drag: n, isPresent: s } = this.props, { projection: o } = i;
4507
+ return o && (o.isPresent = s, t.layoutDependency !== e && o.setOptions({
4508
+ ...o.options,
4509
+ layoutDependency: e
4510
+ }), De = !0, n || t.layoutDependency !== e || e === void 0 || t.isPresent !== s ? o.willUpdate() : this.safeToRemove(), t.isPresent !== s && (s ? o.promote() : o.relegate() || M.postRender(() => {
4511
+ const r = o.getStack();
4512
+ (!r || !r.members.length) && this.safeToRemove();
4513
+ }))), null;
4514
+ }
4515
+ componentDidUpdate() {
4516
+ const { visualElement: t, layoutAnchor: e } = this.props, { projection: i } = t;
4517
+ i && (i.options.layoutAnchor = e, i.root.didUpdate(), Pi.postRender(() => {
4518
+ !i.currentAnimation && i.isLead() && this.safeToRemove();
4519
+ }));
4520
+ }
4521
+ componentWillUnmount() {
4522
+ const { visualElement: t, layoutGroup: e, switchLayoutGroup: i } = this.props, { projection: n } = t;
4523
+ De = !0, n && (n.scheduleCheckAfterUnmount(), e && e.group && e.group.remove(n), i && i.deregister && i.deregister(n));
4524
+ }
4525
+ safeToRemove() {
4526
+ const { safeToRemove: t } = this.props;
4527
+ t && t();
4528
+ }
4529
+ render() {
4530
+ return null;
4531
+ }
4532
+ };
4533
+ function Or(t) {
4534
+ const [e, i] = Fu(), n = U(ts);
4535
+ return Qn(Rc, {
4536
+ ...t,
4537
+ layoutGroup: n,
4538
+ switchLayoutGroup: U(Lr),
4539
+ isPresent: e,
4540
+ safeToRemove: i
4541
+ });
4542
+ }
4543
+ var Lc = {
4544
+ pan: { Feature: Ec },
4545
+ drag: {
4546
+ Feature: Dc,
4547
+ ProjectionNode: Sr,
4548
+ MeasureLayout: Or
4549
+ }
4550
+ };
4551
+ function Xn(t, e, i) {
4552
+ const { props: n } = t;
4553
+ t.animationState && n.whileHover && t.animationState.setActive("whileHover", i === "Start");
4554
+ const s = n["onHover" + i];
4555
+ s && M.postRender(() => s(e, Kt(e)));
4556
+ }
4557
+ var kc = class extends ot {
4558
+ mount() {
4559
+ const { current: t } = this.node;
4560
+ t && (this.unmount = sl(t, (e, i) => (Xn(this.node, i, "Start"), (n) => Xn(this.node, n, "End"))));
4561
+ }
4562
+ unmount() {
4563
+ }
4564
+ }, Bc = class extends ot {
4565
+ constructor() {
4566
+ super(...arguments), this.isActive = !1;
4567
+ }
4568
+ onFocus() {
4569
+ let t = !1;
4570
+ try {
4571
+ t = this.node.current.matches(":focus-visible");
4572
+ } catch {
4573
+ t = !0;
4574
+ }
4575
+ !t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0);
4576
+ }
4577
+ onBlur() {
4578
+ !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
4579
+ }
4580
+ mount() {
4581
+ this.unmount = Ut(Nt(this.node.current, "focus", () => this.onFocus()), Nt(this.node.current, "blur", () => this.onBlur()));
4582
+ }
4583
+ unmount() {
4584
+ }
4585
+ };
4586
+ function Yn(t, e, i) {
4587
+ const { props: n } = t;
4588
+ if (t.current instanceof HTMLButtonElement && t.current.disabled) return;
4589
+ t.animationState && n.whileTap && t.animationState.setActive("whileTap", i === "Start");
4590
+ const s = n["onTap" + (i === "End" ? "" : i)];
4591
+ s && M.postRender(() => s(e, Kt(e)));
4592
+ }
4593
+ var Ic = class extends ot {
4594
+ mount() {
4595
+ const { current: t } = this.node;
4596
+ if (!t) return;
4597
+ const { globalTapTarget: e, propagate: i } = this.node.props;
4598
+ this.unmount = cl(t, (n, s) => (Yn(this.node, s, "Start"), (o, { success: r }) => Yn(this.node, o, r ? "End" : "Cancel")), {
4599
+ useGlobalTarget: e,
4600
+ stopPropagation: i?.tap === !1
4601
+ });
4602
+ }
4603
+ unmount() {
4604
+ }
4605
+ }, ii = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Fc = (t) => {
4606
+ const e = ii.get(t.target);
4607
+ e && e(t);
4608
+ }, Oc = (t) => {
4609
+ t.forEach(Fc);
4610
+ };
4611
+ function jc({ root: t, ...e }) {
4612
+ const i = t || document;
4613
+ Ee.has(i) || Ee.set(i, {});
4614
+ const n = Ee.get(i), s = JSON.stringify(e);
4615
+ return n[s] || (n[s] = new IntersectionObserver(Oc, {
4616
+ root: t,
4617
+ ...e
4618
+ })), n[s];
4619
+ }
4620
+ function Nc(t, e, i) {
4621
+ const n = jc(e);
4622
+ return ii.set(t, i), n.observe(t), () => {
4623
+ ii.delete(t), n.unobserve(t);
4624
+ };
4625
+ }
4626
+ var Uc = {
4627
+ some: 0,
4628
+ all: 1
4629
+ }, Wc = class extends ot {
4630
+ constructor() {
4631
+ super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
4632
+ }
4633
+ startObserver() {
4634
+ this.stopObserver?.();
4635
+ const { viewport: t = {} } = this.node.getProps(), { root: e, margin: i, amount: n = "some", once: s } = t, o = {
4636
+ root: e ? e.current : void 0,
4637
+ rootMargin: i,
4638
+ threshold: typeof n == "number" ? n : Uc[n]
4639
+ }, r = (a) => {
4640
+ const { isIntersecting: l } = a;
4641
+ if (this.isInView === l || (this.isInView = l, s && !l && this.hasEnteredView)) return;
4642
+ l && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", l);
4643
+ const { onViewportEnter: c, onViewportLeave: u } = this.node.getProps(), h = l ? c : u;
4644
+ h && h(a);
4645
+ };
4646
+ this.stopObserver = Nc(this.node.current, o, r);
4647
+ }
4648
+ mount() {
4649
+ this.startObserver();
4650
+ }
4651
+ update() {
4652
+ if (typeof IntersectionObserver > "u") return;
4653
+ const { props: t, prevProps: e } = this.node;
4654
+ [
4655
+ "amount",
4656
+ "margin",
4657
+ "root"
4658
+ ].some($c(t, e)) && this.startObserver();
4659
+ }
4660
+ unmount() {
4661
+ this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
4662
+ }
4663
+ };
4664
+ function $c({ viewport: t = {} }, { viewport: e = {} } = {}) {
4665
+ return (i) => t[i] !== e[i];
4666
+ }
4667
+ var Kc = {
4668
+ inView: { Feature: Wc },
4669
+ tap: { Feature: Ic },
4670
+ focus: { Feature: Bc },
4671
+ hover: { Feature: kc }
4672
+ }, _c = { layout: {
4673
+ ProjectionNode: Sr,
4674
+ MeasureLayout: Or
4675
+ } }, zc = {
4676
+ ...pc,
4677
+ ...Kc,
4678
+ ...Lc,
4679
+ ..._c
4680
+ }, Hc = /* @__PURE__ */ uc(zc, cc), Jc = Hc;
4681
+ export {
4682
+ Jc as t
4683
+ };