@kommo-crm/crm-react-ui-kit 1.1.1-beta.3 → 1.1.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/dist/Accordion.module-0NEfElzm.mjs +6 -0
  2. package/dist/ItemRoot.module-DaaOqYPx.mjs +7 -0
  3. package/dist/ItemRoot.module-fiKLca_h.mjs +7 -0
  4. package/dist/List-AX0nB9Ji.mjs +141 -0
  5. package/dist/Tab.module-Bh4dewE1.mjs +7 -0
  6. package/dist/assets/Accordion.css +1 -0
  7. package/dist/assets/Arrow.css +1 -0
  8. package/dist/assets/Arrow2.css +1 -0
  9. package/dist/assets/BaseClasses.css +1 -0
  10. package/dist/assets/BaseInput.css +1 -0
  11. package/dist/assets/Button.css +1 -0
  12. package/dist/assets/Callout.css +1 -0
  13. package/dist/assets/Checkbox.css +1 -0
  14. package/dist/assets/CheckboxGroup.css +1 -0
  15. package/dist/assets/CheckboxItem.css +1 -0
  16. package/dist/assets/ContentBlock.css +1 -0
  17. package/dist/assets/FilterTabs.css +1 -0
  18. package/dist/assets/Icon.css +1 -0
  19. package/dist/assets/InlineInput.css +1 -0
  20. package/dist/assets/Input.css +1 -0
  21. package/dist/assets/Item.css +1 -0
  22. package/dist/assets/Item2.css +1 -0
  23. package/dist/assets/Item3.css +1 -0
  24. package/dist/assets/ItemIcon.css +1 -0
  25. package/dist/assets/ItemIndicator.css +1 -0
  26. package/dist/assets/ItemRightSlot.css +1 -0
  27. package/dist/assets/ItemRoot.css +1 -0
  28. package/dist/assets/ItemRoot2.css +1 -0
  29. package/dist/assets/ItemRoot3.css +1 -0
  30. package/dist/assets/Label.css +1 -0
  31. package/dist/assets/Label2.css +1 -0
  32. package/dist/assets/Link.css +1 -0
  33. package/dist/assets/List.css +1 -0
  34. package/dist/assets/Option.css +1 -0
  35. package/dist/assets/Radio.css +1 -0
  36. package/dist/assets/RadioGroup.css +1 -0
  37. package/dist/assets/RadioItem.css +1 -0
  38. package/dist/assets/Select.css +1 -0
  39. package/dist/assets/SelectButton.css +1 -0
  40. package/dist/assets/Separator.css +1 -0
  41. package/dist/assets/Spinner.css +1 -0
  42. package/dist/assets/SubContent.css +1 -0
  43. package/dist/assets/SubTrigger.css +1 -0
  44. package/dist/assets/Switcher.css +1 -0
  45. package/dist/assets/Tab.css +1 -0
  46. package/dist/assets/Text.css +1 -0
  47. package/dist/assets/TextArea.css +1 -0
  48. package/dist/assets/VisuallyHiddenInput.css +1 -0
  49. package/dist/assets/icons.css +1 -0
  50. package/dist/assets/theme.css +1 -0
  51. package/dist/assets/useContentPositioning.css +1 -0
  52. package/dist/components/Accordion/Accordion.context.d.ts +1 -1
  53. package/dist/components/Accordion/Accordion.context.js +7 -4
  54. package/dist/components/Accordion/Accordion.js +14 -12
  55. package/dist/components/Accordion/Accordion.props.js +1 -1
  56. package/dist/components/Accordion/Accordion.themes.js +5 -2
  57. package/dist/components/Accordion/components/AccordionMultiple/AccordionMultiple.d.ts +1 -1
  58. package/dist/components/Accordion/components/AccordionMultiple/AccordionMultiple.js +44 -30
  59. package/dist/components/Accordion/components/AccordionMultiple/AccordionMultiple.props.js +1 -1
  60. package/dist/components/Accordion/components/AccordionSingle/AccordionSingle.d.ts +1 -1
  61. package/dist/components/Accordion/components/AccordionSingle/AccordionSingle.js +45 -30
  62. package/dist/components/Accordion/components/AccordionSingle/AccordionSingle.props.js +1 -1
  63. package/dist/components/Accordion/components/Item/Item.d.ts +2 -2
  64. package/dist/components/Accordion/components/Item/Item.js +58 -30
  65. package/dist/components/Accordion/components/Item/Item.props.js +1 -1
  66. package/dist/components/Accordion/components/Item/Item.themes.js +11 -8
  67. package/dist/components/Accordion/index.js +8 -3
  68. package/dist/components/BaseInput/BaseInput.d.ts +2 -2
  69. package/dist/components/BaseInput/BaseInput.js +34 -9
  70. package/dist/components/BaseInput/BaseInput.props.js +1 -1
  71. package/dist/components/BaseInput/index.js +4 -1
  72. package/dist/components/Button/Button.d.ts +2 -2
  73. package/dist/components/Button/Button.js +91 -55
  74. package/dist/components/Button/Button.props.d.ts +2 -2
  75. package/dist/components/Button/Button.props.js +1 -1
  76. package/dist/components/Button/Button.themes.js +66 -64
  77. package/dist/components/Button/hooks/index.js +6 -2
  78. package/dist/components/Button/hooks/useShowInvalidAnimation/useShowInvalidAnimation.js +15 -17
  79. package/dist/components/Button/hooks/useShowSuccessfulState/useShowSuccessfulState.js +15 -17
  80. package/dist/components/Button/index.js +8 -2
  81. package/dist/components/Callout/Callout.d.ts +2 -2
  82. package/dist/components/Callout/Callout.js +32 -14
  83. package/dist/components/Callout/Callout.props.js +1 -1
  84. package/dist/components/Callout/index.js +12 -5
  85. package/dist/components/Callout/themes/CalloutBase.theme.js +7 -4
  86. package/dist/components/Callout/themes/CalloutError.theme.js +9 -6
  87. package/dist/components/Callout/themes/CalloutInfo.theme.js +9 -6
  88. package/dist/components/Callout/themes/CalloutSuccess.theme.js +9 -6
  89. package/dist/components/Callout/themes/CalloutWarning.theme.js +9 -6
  90. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  91. package/dist/components/Checkbox/Checkbox.js +55 -20
  92. package/dist/components/Checkbox/Checkbox.props.d.ts +3 -3
  93. package/dist/components/Checkbox/Checkbox.props.js +1 -1
  94. package/dist/components/Checkbox/Checkbox.themes.d.ts +1 -1
  95. package/dist/components/Checkbox/Checkbox.themes.js +44 -40
  96. package/dist/components/Checkbox/index.js +10 -2
  97. package/dist/components/CheckboxGroup/CheckboxGroup.context.d.ts +2 -2
  98. package/dist/components/CheckboxGroup/CheckboxGroup.context.js +7 -4
  99. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  100. package/dist/components/CheckboxGroup/CheckboxGroup.js +52 -24
  101. package/dist/components/CheckboxGroup/CheckboxGroup.props.d.ts +6 -6
  102. package/dist/components/CheckboxGroup/CheckboxGroup.props.js +1 -1
  103. package/dist/components/CheckboxGroup/CheckboxGroup.themes.js +5 -2
  104. package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.d.ts +2 -2
  105. package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.js +33 -16
  106. package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.props.d.ts +1 -1
  107. package/dist/components/CheckboxGroup/components/Checkbox/Checkbox.props.js +1 -1
  108. package/dist/components/CheckboxGroup/components/Checkbox/index.js +4 -1
  109. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/CheckboxSelectAll.d.ts +2 -2
  110. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/CheckboxSelectAll.js +34 -23
  111. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.context.d.ts +2 -2
  112. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.context.js +7 -4
  113. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.d.ts +2 -2
  114. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.js +40 -21
  115. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.props.d.ts +2 -2
  116. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/ItemRootSelectAll.props.js +1 -1
  117. package/dist/components/CheckboxGroup/components/CheckboxSelectAll/index.js +6 -2
  118. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.context.d.ts +2 -2
  119. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.context.js +7 -4
  120. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.d.ts +2 -2
  121. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.js +35 -21
  122. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.props.d.ts +2 -2
  123. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.props.js +1 -1
  124. package/dist/components/CheckboxGroup/components/ItemRoot/ItemRoot.themes.js +5 -2
  125. package/dist/components/CheckboxGroup/components/ItemRoot/index.js +6 -2
  126. package/dist/components/CheckboxGroup/hooks/index.js +4 -1
  127. package/dist/components/CheckboxGroup/hooks/useCheckboxGroupState.d.ts +1 -1
  128. package/dist/components/CheckboxGroup/hooks/useCheckboxGroupState.js +47 -57
  129. package/dist/components/CheckboxGroup/index.js +12 -4
  130. package/dist/components/ConfigProvider/ConfigProvider.d.ts +2 -2
  131. package/dist/components/ConfigProvider/ConfigProvider.js +13 -7
  132. package/dist/components/ConfigProvider/ConfigProvider.props.d.ts +1 -1
  133. package/dist/components/ConfigProvider/ConfigProvider.props.js +1 -1
  134. package/dist/components/ConfigProvider/index.js +4 -1
  135. package/dist/components/ContentBlock/ContentBlock.d.ts +2 -2
  136. package/dist/components/ContentBlock/ContentBlock.js +13 -9
  137. package/dist/components/ContentBlock/ContentBlock.props.js +1 -1
  138. package/dist/components/ContentBlock/ContentBlock.themes.js +9 -6
  139. package/dist/components/ContentBlock/index.js +6 -2
  140. package/dist/components/ContextMenu/ContextMenu.context.d.ts +1 -1
  141. package/dist/components/ContextMenu/ContextMenu.context.js +7 -4
  142. package/dist/components/ContextMenu/ContextMenu.enums.js +4 -11
  143. package/dist/components/ContextMenu/ContextMenu.js +106 -63
  144. package/dist/components/ContextMenu/ContextMenu.props.d.ts +1 -1
  145. package/dist/components/ContextMenu/ContextMenu.props.js +1 -1
  146. package/dist/components/ContextMenu/ContextMenu.types.d.ts +1 -1
  147. package/dist/components/ContextMenu/ContextMenu.types.js +1 -1
  148. package/dist/components/ContextMenu/components/Arrow/Arrow.d.ts +2 -2
  149. package/dist/components/ContextMenu/components/Arrow/Arrow.js +37 -15
  150. package/dist/components/ContextMenu/components/Arrow/Arrow.props.js +1 -1
  151. package/dist/components/ContextMenu/components/Arrow/index.js +4 -1
  152. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.d.ts +1 -1
  153. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.d.ts.map +1 -1
  154. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.js +78 -44
  155. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.props.d.ts +2 -2
  156. package/dist/components/ContextMenu/components/CheckboxItem/CheckboxItem.props.js +1 -1
  157. package/dist/components/ContextMenu/components/CheckboxItem/index.js +4 -1
  158. package/dist/components/ContextMenu/components/Content/Content.d.ts +2 -2
  159. package/dist/components/ContextMenu/components/Content/Content.enums.js +4 -43
  160. package/dist/components/ContextMenu/components/Content/Content.js +15 -54
  161. package/dist/components/ContextMenu/components/Content/Content.props.js +1 -1
  162. package/dist/components/ContextMenu/components/Content/Content.types.js +1 -1
  163. package/dist/components/ContextMenu/components/Content/Content.utils.js +13 -10
  164. package/dist/components/ContextMenu/components/Content/index.js +8 -3
  165. package/dist/components/ContextMenu/components/Group/Group.d.ts +1 -1
  166. package/dist/components/ContextMenu/components/Group/Group.js +6 -4
  167. package/dist/components/ContextMenu/components/Group/index.js +4 -1
  168. package/dist/components/ContextMenu/components/Item/Item.context.d.ts +1 -1
  169. package/dist/components/ContextMenu/components/Item/Item.context.js +7 -4
  170. package/dist/components/ContextMenu/components/Item/Item.d.ts +3 -3
  171. package/dist/components/ContextMenu/components/Item/Item.js +112 -73
  172. package/dist/components/ContextMenu/components/Item/Item.props.d.ts +1 -1
  173. package/dist/components/ContextMenu/components/Item/Item.props.js +1 -1
  174. package/dist/components/ContextMenu/components/Item/index.js +4 -1
  175. package/dist/components/ContextMenu/components/ItemIcon/ItemIcon.d.ts +1 -1
  176. package/dist/components/ContextMenu/components/ItemIcon/ItemIcon.js +25 -21
  177. package/dist/components/ContextMenu/components/ItemIcon/ItemIcon.props.js +1 -1
  178. package/dist/components/ContextMenu/components/ItemIcon/index.js +4 -1
  179. package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.d.ts +2 -2
  180. package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.js +29 -19
  181. package/dist/components/ContextMenu/components/ItemIndicator/ItemIndicator.props.js +1 -1
  182. package/dist/components/ContextMenu/components/ItemIndicator/index.js +4 -1
  183. package/dist/components/ContextMenu/components/ItemRightSlot/ItemRightSlot.d.ts +2 -2
  184. package/dist/components/ContextMenu/components/ItemRightSlot/ItemRightSlot.js +57 -32
  185. package/dist/components/ContextMenu/components/ItemRightSlot/ItemRightSlot.props.js +1 -1
  186. package/dist/components/ContextMenu/components/ItemRightSlot/index.js +4 -1
  187. package/dist/components/ContextMenu/components/Label/Label.d.ts +2 -2
  188. package/dist/components/ContextMenu/components/Label/Label.js +28 -12
  189. package/dist/components/ContextMenu/components/Label/Label.props.d.ts +2 -2
  190. package/dist/components/ContextMenu/components/Label/Label.props.js +1 -1
  191. package/dist/components/ContextMenu/components/Label/index.js +4 -1
  192. package/dist/components/ContextMenu/components/Portal/Portal.d.ts +1 -1
  193. package/dist/components/ContextMenu/components/Portal/Portal.js +6 -4
  194. package/dist/components/ContextMenu/components/Portal/index.js +4 -1
  195. package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.js +13 -14
  196. package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.props.d.ts +2 -2
  197. package/dist/components/ContextMenu/components/RadioGroup/RadioGroup.props.js +1 -1
  198. package/dist/components/ContextMenu/components/RadioGroup/index.js +4 -1
  199. package/dist/components/ContextMenu/components/RadioItem/RadioItem.d.ts +1 -1
  200. package/dist/components/ContextMenu/components/RadioItem/RadioItem.d.ts.map +1 -1
  201. package/dist/components/ContextMenu/components/RadioItem/RadioItem.js +70 -37
  202. package/dist/components/ContextMenu/components/RadioItem/RadioItem.props.d.ts +2 -2
  203. package/dist/components/ContextMenu/components/RadioItem/RadioItem.props.js +1 -1
  204. package/dist/components/ContextMenu/components/RadioItem/index.js +4 -1
  205. package/dist/components/ContextMenu/components/Separator/Separator.d.ts +2 -2
  206. package/dist/components/ContextMenu/components/Separator/Separator.js +21 -9
  207. package/dist/components/ContextMenu/components/Separator/Separator.props.js +1 -1
  208. package/dist/components/ContextMenu/components/Separator/index.js +4 -1
  209. package/dist/components/ContextMenu/components/Sub/Sub.context.d.ts +1 -1
  210. package/dist/components/ContextMenu/components/Sub/Sub.context.js +7 -4
  211. package/dist/components/ContextMenu/components/Sub/Sub.d.ts +1 -1
  212. package/dist/components/ContextMenu/components/Sub/Sub.js +58 -14
  213. package/dist/components/ContextMenu/components/Sub/Sub.props.js +1 -1
  214. package/dist/components/ContextMenu/components/Sub/index.js +4 -1
  215. package/dist/components/ContextMenu/components/SubContent/SubContent.d.ts +2 -2
  216. package/dist/components/ContextMenu/components/SubContent/SubContent.js +83 -58
  217. package/dist/components/ContextMenu/components/SubContent/SubContent.props.js +1 -1
  218. package/dist/components/ContextMenu/components/SubContent/index.js +4 -1
  219. package/dist/components/ContextMenu/components/SubRoot/SubRoot.js +93 -36
  220. package/dist/components/ContextMenu/components/SubRoot/SubRoot.props.d.ts +1 -1
  221. package/dist/components/ContextMenu/components/SubRoot/SubRoot.props.js +1 -1
  222. package/dist/components/ContextMenu/components/SubRoot/SubRoot.types.d.ts +1 -1
  223. package/dist/components/ContextMenu/components/SubRoot/SubRoot.types.js +1 -1
  224. package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.d.ts +2 -2
  225. package/dist/components/ContextMenu/components/SubRoot/components/Content/Content.js +104 -63
  226. package/dist/components/ContextMenu/components/SubRoot/components/Content/index.js +4 -1
  227. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.d.ts +2 -2
  228. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.js +71 -38
  229. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/Trigger.props.js +1 -1
  230. package/dist/components/ContextMenu/components/SubRoot/components/Trigger/index.js +4 -1
  231. package/dist/components/ContextMenu/components/SubRoot/index.js +4 -1
  232. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.d.ts +1 -1
  233. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.js +98 -76
  234. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.props.d.ts +2 -2
  235. package/dist/components/ContextMenu/components/SubTrigger/SubTrigger.props.js +1 -1
  236. package/dist/components/ContextMenu/components/SubTrigger/index.js +4 -1
  237. package/dist/components/ContextMenu/components/Trigger/Trigger.d.ts +2 -2
  238. package/dist/components/ContextMenu/components/Trigger/Trigger.js +51 -35
  239. package/dist/components/ContextMenu/components/Trigger/Trigger.props.js +1 -1
  240. package/dist/components/ContextMenu/components/Trigger/index.js +4 -1
  241. package/dist/components/ContextMenu/hooks/index.js +16 -7
  242. package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.js +7 -198
  243. package/dist/components/ContextMenu/hooks/useContentPositioning/useContentPositioning.types.js +1 -1
  244. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.d.ts +2 -2
  245. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.js +72 -209
  246. package/dist/components/ContextMenu/hooks/useContextMenu/useContextMenu.types.js +1 -1
  247. package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.js +38 -42
  248. package/dist/components/ContextMenu/hooks/useContextMenuItemFocus/useContextMenuItemFocus.types.js +1 -1
  249. package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.d.ts +1 -1
  250. package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.js +65 -186
  251. package/dist/components/ContextMenu/hooks/useContextMenuSub/useContextMenuSub.types.js +1 -1
  252. package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.d.ts +2 -2
  253. package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.js +71 -215
  254. package/dist/components/ContextMenu/hooks/useContextMenuSubMenu/useContextMenuSubMenu.types.js +1 -1
  255. package/dist/components/ContextMenu/hooks/useInheritedArrowColor/useInheritedArrowColor.js +57 -110
  256. package/dist/components/ContextMenu/hooks/useIsTouchDevice/useIsTouchDevice.js +15 -26
  257. package/dist/components/ContextMenu/hooks/useStopContextMenuEvents/useStopContextMenuEvents.d.ts +9 -9
  258. package/dist/components/ContextMenu/hooks/useStopContextMenuEvents/useStopContextMenuEvents.js +21 -20
  259. package/dist/components/ContextMenu/hooks/useStopContextMenuEvents/useStopContextMenuEvents.types.js +1 -1
  260. package/dist/components/ContextMenu/index.js +10 -3
  261. package/dist/components/ContextMenu/providers/LevelProvider/LevelProvider.d.ts +1 -1
  262. package/dist/components/ContextMenu/providers/LevelProvider/LevelProvider.js +6 -9
  263. package/dist/components/ContextMenu/providers/LevelProvider/LevelProvider.props.js +1 -1
  264. package/dist/components/ContextMenu/providers/LevelProvider/index.js +5 -1
  265. package/dist/components/ContextMenu/providers/index.js +5 -1
  266. package/dist/components/ContextMenu/utils/contextMenuBus/contextMenuBus.js +19 -12
  267. package/dist/components/ContextMenu/utils/contextMenuBus/contextMenuBus.types.js +1 -1
  268. package/dist/components/ContextMenu/utils/focusParentItem/focusParentItem.js +11 -8
  269. package/dist/components/ContextMenu/utils/hasItemIcon/hasItemIcon.d.ts +1 -1
  270. package/dist/components/ContextMenu/utils/hasItemIcon/hasItemIcon.js +8 -8
  271. package/dist/components/ContextMenu/utils/index.js +10 -4
  272. package/dist/components/ContextMenu/utils/isFirstElement/isFirstElement.d.ts +1 -1
  273. package/dist/components/ContextMenu/utils/isFirstElement/isFirstElement.js +9 -13
  274. package/dist/components/FilterTabs/FilterTabs.context.d.ts +2 -2
  275. package/dist/components/FilterTabs/FilterTabs.context.js +7 -4
  276. package/dist/components/FilterTabs/FilterTabs.d.ts +1 -1
  277. package/dist/components/FilterTabs/FilterTabs.js +61 -52
  278. package/dist/components/FilterTabs/FilterTabs.props.d.ts +5 -5
  279. package/dist/components/FilterTabs/FilterTabs.props.js +1 -1
  280. package/dist/components/FilterTabs/FilterTabs.themes.js +5 -2
  281. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.context.d.ts +2 -2
  282. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.context.js +7 -4
  283. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.d.ts +2 -2
  284. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.js +37 -26
  285. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.props.d.ts +2 -2
  286. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.props.js +1 -1
  287. package/dist/components/FilterTabs/components/ItemRoot/ItemRoot.themes.js +5 -2
  288. package/dist/components/FilterTabs/components/ItemRoot/index.js +6 -2
  289. package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.context.d.ts +1 -1
  290. package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.context.js +7 -4
  291. package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.d.ts +2 -2
  292. package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.js +33 -21
  293. package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.props.d.ts +2 -2
  294. package/dist/components/FilterTabs/components/ItemRootReset/ItemRootReset.props.js +1 -1
  295. package/dist/components/FilterTabs/components/ItemRootReset/TabReset.d.ts +2 -2
  296. package/dist/components/FilterTabs/components/ItemRootReset/TabReset.js +27 -17
  297. package/dist/components/FilterTabs/components/ItemRootReset/index.js +6 -2
  298. package/dist/components/FilterTabs/components/Tab/Tab.d.ts +2 -2
  299. package/dist/components/FilterTabs/components/Tab/Tab.js +34 -20
  300. package/dist/components/FilterTabs/components/Tab/Tab.props.d.ts +1 -1
  301. package/dist/components/FilterTabs/components/Tab/Tab.props.js +1 -1
  302. package/dist/components/FilterTabs/components/Tab/Tab.themes.js +16 -13
  303. package/dist/components/FilterTabs/components/Tab/index.js +6 -2
  304. package/dist/components/FilterTabs/index.js +14 -4
  305. package/dist/components/InlineInput/InlineInput.d.ts +2 -2
  306. package/dist/components/InlineInput/InlineInput.js +63 -23
  307. package/dist/components/InlineInput/InlineInput.props.d.ts +2 -2
  308. package/dist/components/InlineInput/InlineInput.props.js +1 -1
  309. package/dist/components/InlineInput/InlineInput.themes.d.ts +1 -1
  310. package/dist/components/InlineInput/InlineInput.themes.js +42 -39
  311. package/dist/components/InlineInput/index.js +7 -2
  312. package/dist/components/Input/Input.d.ts +2 -2
  313. package/dist/components/Input/Input.js +76 -25
  314. package/dist/components/Input/Input.props.d.ts +2 -2
  315. package/dist/components/Input/Input.props.js +1 -1
  316. package/dist/components/Input/Input.themes.d.ts +1 -1
  317. package/dist/components/Input/Input.themes.js +59 -56
  318. package/dist/components/Input/index.js +7 -2
  319. package/dist/components/Label/Label.d.ts +1 -1
  320. package/dist/components/Label/Label.js +60 -30
  321. package/dist/components/Label/Label.props.d.ts +1 -1
  322. package/dist/components/Label/Label.props.js +1 -1
  323. package/dist/components/Label/Label.theme.js +9 -6
  324. package/dist/components/Label/index.js +7 -2
  325. package/dist/components/Link/Link.d.ts +1 -1
  326. package/dist/components/Link/Link.js +13 -9
  327. package/dist/components/Link/Link.props.js +1 -1
  328. package/dist/components/Link/Link.themes.js +12 -9
  329. package/dist/components/Link/index.js +6 -2
  330. package/dist/components/List/List.d.ts +1 -1
  331. package/dist/components/List/List.js +10 -24
  332. package/dist/components/List/List.props.js +1 -1
  333. package/dist/components/List/List.theme.js +18 -15
  334. package/dist/components/List/index.js +6 -2
  335. package/dist/components/Portal/Portal.d.ts +2 -2
  336. package/dist/components/Portal/Portal.js +10 -8
  337. package/dist/components/Portal/Portal.props.js +1 -1
  338. package/dist/components/Portal/index.js +4 -1
  339. package/dist/components/RadioGroup/RadioGroup.context.d.ts +2 -2
  340. package/dist/components/RadioGroup/RadioGroup.context.js +7 -4
  341. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  342. package/dist/components/RadioGroup/RadioGroup.js +55 -22
  343. package/dist/components/RadioGroup/RadioGroup.props.d.ts +5 -5
  344. package/dist/components/RadioGroup/RadioGroup.props.js +1 -1
  345. package/dist/components/RadioGroup/RadioGroup.themes.js +5 -2
  346. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.context.d.ts +2 -2
  347. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.context.js +7 -4
  348. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.d.ts +2 -2
  349. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.js +33 -20
  350. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.props.d.ts +2 -2
  351. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.props.js +1 -1
  352. package/dist/components/RadioGroup/components/ItemRoot/ItemRoot.themes.js +5 -2
  353. package/dist/components/RadioGroup/components/ItemRoot/index.js +6 -2
  354. package/dist/components/RadioGroup/components/Radio/Radio.d.ts +2 -2
  355. package/dist/components/RadioGroup/components/Radio/Radio.js +48 -29
  356. package/dist/components/RadioGroup/components/Radio/Radio.props.d.ts +1 -1
  357. package/dist/components/RadioGroup/components/Radio/Radio.props.js +1 -1
  358. package/dist/components/RadioGroup/components/Radio/Radio.themes.js +18 -15
  359. package/dist/components/RadioGroup/components/Radio/index.js +6 -2
  360. package/dist/components/RadioGroup/index.js +14 -4
  361. package/dist/components/Select/Select.context.d.ts +1 -1
  362. package/dist/components/Select/Select.context.js +7 -4
  363. package/dist/components/Select/Select.js +77 -52
  364. package/dist/components/Select/Select.props.d.ts +1 -1
  365. package/dist/components/Select/Select.props.js +1 -1
  366. package/dist/components/Select/Select.theme.js +6 -3
  367. package/dist/components/Select/Select.types.js +1 -1
  368. package/dist/components/Select/components/Arrow/Arrow.d.ts +1 -1
  369. package/dist/components/Select/components/Arrow/Arrow.js +18 -13
  370. package/dist/components/Select/components/Arrow/Arrow.props.js +1 -1
  371. package/dist/components/Select/components/Arrow/Arrow.theme.js +7 -4
  372. package/dist/components/Select/components/Arrow/index.js +4 -1
  373. package/dist/components/Select/components/Button/Button.d.ts +2 -2
  374. package/dist/components/Select/components/Button/Button.js +27 -25
  375. package/dist/components/Select/components/Button/index.js +4 -1
  376. package/dist/components/Select/components/Icon/Icon.d.ts +1 -1
  377. package/dist/components/Select/components/Icon/Icon.js +13 -10
  378. package/dist/components/Select/components/Icon/Icon.props.js +1 -1
  379. package/dist/components/Select/components/Icon/Icon.theme.js +7 -4
  380. package/dist/components/Select/components/Icon/index.js +4 -1
  381. package/dist/components/Select/components/Item/Item.d.ts +1 -1
  382. package/dist/components/Select/components/Item/Item.js +45 -25
  383. package/dist/components/Select/components/Item/Item.props.js +1 -1
  384. package/dist/components/Select/components/Item/Item.theme.js +12 -9
  385. package/dist/components/Select/components/Item/index.js +6 -2
  386. package/dist/components/Select/components/List/List.d.ts +2 -2
  387. package/dist/components/Select/components/List/List.js +64 -56
  388. package/dist/components/Select/components/List/List.props.d.ts +1 -1
  389. package/dist/components/Select/components/List/List.props.js +1 -1
  390. package/dist/components/Select/components/List/index.js +4 -1
  391. package/dist/components/Select/components/Option/Option.d.ts +1 -1
  392. package/dist/components/Select/components/Option/Option.js +15 -12
  393. package/dist/components/Select/components/Option/Option.props.js +1 -1
  394. package/dist/components/Select/components/Option/Option.theme.d.ts +1 -1
  395. package/dist/components/Select/components/Option/Option.theme.js +8 -4
  396. package/dist/components/Select/components/Value/Value.d.ts +1 -1
  397. package/dist/components/Select/components/Value/Value.js +15 -21
  398. package/dist/components/Select/components/Value/Value.props.js +1 -1
  399. package/dist/components/Select/index.js +20 -7
  400. package/dist/components/SelectButton/SelectButton.d.ts +1 -1
  401. package/dist/components/SelectButton/SelectButton.js +48 -24
  402. package/dist/components/SelectButton/SelectButton.props.js +1 -1
  403. package/dist/components/SelectButton/SelectButton.theme.js +28 -26
  404. package/dist/components/SelectButton/index.js +7 -2
  405. package/dist/components/Spinner/Spinner.d.ts +1 -1
  406. package/dist/components/Spinner/Spinner.js +28 -11
  407. package/dist/components/Spinner/Spinner.props.js +1 -1
  408. package/dist/components/Spinner/Spinner.themes.js +8 -5
  409. package/dist/components/Spinner/index.js +6 -2
  410. package/dist/components/Switcher/Switcher.js +35 -14
  411. package/dist/components/Switcher/Switcher.props.d.ts +3 -3
  412. package/dist/components/Switcher/Switcher.props.js +1 -1
  413. package/dist/components/Switcher/Switcher.themes.js +16 -13
  414. package/dist/components/Switcher/index.js +6 -2
  415. package/dist/components/Text/Text.d.ts +2 -2
  416. package/dist/components/Text/Text.js +58 -32
  417. package/dist/components/Text/Text.props.d.ts +1 -1
  418. package/dist/components/Text/Text.props.js +1 -1
  419. package/dist/components/Text/Text.themes.js +33 -30
  420. package/dist/components/Text/index.js +9 -2
  421. package/dist/components/TextArea/TextArea.d.ts +2 -2
  422. package/dist/components/TextArea/TextArea.js +74 -27
  423. package/dist/components/TextArea/TextArea.props.js +1 -1
  424. package/dist/components/TextArea/TextArea.themes.js +34 -32
  425. package/dist/components/TextArea/hooks/index.js +4 -1
  426. package/dist/components/TextArea/hooks/useResizeTextArea.d.ts +1 -1
  427. package/dist/components/TextArea/hooks/useResizeTextArea.js +15 -23
  428. package/dist/components/TextArea/index.js +7 -2
  429. package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.d.ts +2 -2
  430. package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.js +27 -22
  431. package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.props.d.ts +1 -1
  432. package/dist/components/VisuallyHiddenInput/VisuallyHiddenInput.props.js +1 -1
  433. package/dist/components/VisuallyHiddenInput/index.js +4 -1
  434. package/dist/fonts/PTS55F_W.woff +0 -0
  435. package/dist/fonts/PTS56F_W.woff +0 -0
  436. package/dist/fonts/PTS75F_W.woff +0 -0
  437. package/dist/fonts/PTS76F_W.woff +0 -0
  438. package/dist/fonts/ptsans.css +34 -0
  439. package/dist/hooks/useThemeClassName/index.js +4 -1
  440. package/dist/hooks/useThemeClassName/useThemeClassName.d.ts +1 -1
  441. package/dist/hooks/useThemeClassName/useThemeClassName.js +21 -27
  442. package/dist/img/logoDark.svg +17 -0
  443. package/dist/img/logoLight.svg +17 -0
  444. package/dist/index-BA3njR2k.mjs +3636 -0
  445. package/dist/index-L8X2o7IH.mjs +44 -0
  446. package/dist/index.js +4 -4
  447. package/dist/lib/appearance/index.js +7 -13
  448. package/dist/lib/platform/index.js +4 -15
  449. package/dist/lib/react/createComponentContext/createComponentContext.d.ts +1 -1
  450. package/dist/lib/react/createComponentContext/createComponentContext.js +18 -16
  451. package/dist/lib/react/createComponentContext/createComponentContext.props.js +1 -1
  452. package/dist/lib/react/createComponentContext/index.js +4 -1
  453. package/dist/lib/react/index.js +4 -1
  454. package/dist/lib/theme/index.js +1 -1
  455. package/dist/lib/theme/type.js +1 -1
  456. package/dist/lib/utils.d.ts +1 -1
  457. package/dist/lib/utils.js +12 -22
  458. package/dist/react-spring_web.modern-Dnq1lqN5.mjs +2144 -0
  459. package/dist/stylesheets/utils/BaseClasses/BaseClasses.js +6 -2
  460. package/dist/stylesheets/utils/BaseClasses/index.js +4 -1
  461. package/dist/useContentPositioning-BLCC-Xty.mjs +213 -0
  462. package/dist/utils/index.js +6 -2
  463. package/dist/utils/noop/noop.js +5 -2
  464. package/dist/utils/omit/omit.js +8 -6
  465. package/package.json +1 -1
  466. package/dist/components/CheckboxGroup/hooks/useCheckboxGroupState.test.js +0 -123
@@ -0,0 +1,2144 @@
1
+ import * as Tt from "react";
2
+ import { useEffect as Ie, useLayoutEffect as pi, useState as gi, useRef as M, forwardRef as vi, useCallback as yi, useMemo as _e, useContext as _i } from "react";
3
+ import { unstable_batchedUpdates as bi } from "react-dom";
4
+ var Ze = ve(), g = (e) => ge(e, Ze), Je = ve();
5
+ g.write = (e) => ge(e, Je);
6
+ var ke = ve();
7
+ g.onStart = (e) => ge(e, ke);
8
+ var Xe = ve();
9
+ g.onFrame = (e) => ge(e, Xe);
10
+ var Ye = ve();
11
+ g.onFinish = (e) => ge(e, Ye);
12
+ var K = [];
13
+ g.setTimeout = (e, t) => {
14
+ const i = g.now() + t, n = () => {
15
+ const r = K.findIndex((a) => a.cancel == n);
16
+ ~r && K.splice(r, 1), z -= ~r ? 1 : 0;
17
+ }, s = { time: i, handler: e, cancel: n };
18
+ return K.splice(Ct(i), 0, s), z += 1, Et(), s;
19
+ };
20
+ var Ct = (e) => ~(~K.findIndex((t) => t.time > e) || ~K.length);
21
+ g.cancel = (e) => {
22
+ ke.delete(e), Xe.delete(e), Ye.delete(e), Ze.delete(e), Je.delete(e);
23
+ };
24
+ g.sync = (e) => {
25
+ Qe = !0, g.batchedUpdates(e), Qe = !1;
26
+ };
27
+ g.throttle = (e) => {
28
+ let t;
29
+ function i() {
30
+ try {
31
+ e(...t);
32
+ } finally {
33
+ t = null;
34
+ }
35
+ }
36
+ function n(...s) {
37
+ t = s, g.onStart(i);
38
+ }
39
+ return n.handler = e, n.cancel = () => {
40
+ ke.delete(i), t = null;
41
+ }, n;
42
+ };
43
+ var et = typeof window < "u" ? window.requestAnimationFrame : (
44
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
45
+ () => {
46
+ }
47
+ );
48
+ g.use = (e) => et = e;
49
+ g.now = typeof performance < "u" ? () => performance.now() : Date.now;
50
+ g.batchedUpdates = (e) => e();
51
+ g.catch = console.error;
52
+ g.frameLoop = "always";
53
+ g.advance = () => {
54
+ g.frameLoop !== "demand" ? console.warn(
55
+ "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"
56
+ ) : Ut();
57
+ };
58
+ var N = -1, z = 0, Qe = !1;
59
+ function ge(e, t) {
60
+ Qe ? (t.delete(e), e(0)) : (t.add(e), Et());
61
+ }
62
+ function Et() {
63
+ N < 0 && (N = 0, g.frameLoop !== "demand" && et(Ot));
64
+ }
65
+ function wi() {
66
+ N = -1;
67
+ }
68
+ function Ot() {
69
+ ~N && (et(Ot), g.batchedUpdates(Ut));
70
+ }
71
+ function Ut() {
72
+ const e = N;
73
+ N = g.now();
74
+ const t = Ct(N);
75
+ if (t && (qt(K.splice(0, t), (i) => i.handler()), z -= t), !z) {
76
+ wi();
77
+ return;
78
+ }
79
+ ke.flush(), Ze.flush(e ? Math.min(64, N - e) : 16.667), Xe.flush(), Je.flush(), Ye.flush();
80
+ }
81
+ function ve() {
82
+ let e = /* @__PURE__ */ new Set(), t = e;
83
+ return {
84
+ add(i) {
85
+ z += t == e && !e.has(i) ? 1 : 0, e.add(i);
86
+ },
87
+ delete(i) {
88
+ return z -= t == e && e.has(i) ? 1 : 0, e.delete(i);
89
+ },
90
+ flush(i) {
91
+ t.size && (e = /* @__PURE__ */ new Set(), z -= t.size, qt(t, (n) => n(i) && e.add(n)), z += e.size, t = e);
92
+ }
93
+ };
94
+ }
95
+ function qt(e, t) {
96
+ e.forEach((i) => {
97
+ try {
98
+ t(i);
99
+ } catch (n) {
100
+ g.catch(n);
101
+ }
102
+ });
103
+ }
104
+ var Si = Object.defineProperty, Ai = (e, t) => {
105
+ for (var i in t)
106
+ Si(e, i, { get: t[i], enumerable: !0 });
107
+ }, O = {};
108
+ Ai(O, {
109
+ assign: () => xi,
110
+ colors: () => D,
111
+ createStringInterpolator: () => it,
112
+ skipAnimation: () => jt,
113
+ to: () => $t,
114
+ willAdvance: () => nt
115
+ });
116
+ function Le() {
117
+ }
118
+ var Pi = (e, t, i) => Object.defineProperty(e, t, { value: i, writable: !0, configurable: !0 }), o = {
119
+ arr: Array.isArray,
120
+ obj: (e) => !!e && e.constructor.name === "Object",
121
+ fun: (e) => typeof e == "function",
122
+ str: (e) => typeof e == "string",
123
+ num: (e) => typeof e == "number",
124
+ und: (e) => e === void 0
125
+ };
126
+ function $(e, t) {
127
+ if (o.arr(e)) {
128
+ if (!o.arr(t) || e.length !== t.length) return !1;
129
+ for (let i = 0; i < e.length; i++)
130
+ if (e[i] !== t[i]) return !1;
131
+ return !0;
132
+ }
133
+ return e === t;
134
+ }
135
+ var S = (e, t) => e.forEach(t);
136
+ function q(e, t, i) {
137
+ if (o.arr(e)) {
138
+ for (let n = 0; n < e.length; n++)
139
+ t.call(i, e[n], `${n}`);
140
+ return;
141
+ }
142
+ for (const n in e)
143
+ e.hasOwnProperty(n) && t.call(i, e[n], n);
144
+ }
145
+ var R = (e) => o.und(e) ? [] : o.arr(e) ? e : [e];
146
+ function se(e, t) {
147
+ if (e.size) {
148
+ const i = Array.from(e);
149
+ e.clear(), S(i, t);
150
+ }
151
+ }
152
+ var ne = (e, ...t) => se(e, (i) => i(...t)), tt = () => typeof window > "u" || !window.navigator || /ServerSideRendering|^Deno\//.test(window.navigator.userAgent), it, $t, D = null, jt = !1, nt = Le, xi = (e) => {
153
+ e.to && ($t = e.to), e.now && (g.now = e.now), e.colors !== void 0 && (D = e.colors), e.skipAnimation != null && (jt = e.skipAnimation), e.createStringInterpolator && (it = e.createStringInterpolator), e.requestAnimationFrame && g.use(e.requestAnimationFrame), e.batchedUpdates && (g.batchedUpdates = e.batchedUpdates), e.willAdvance && (nt = e.willAdvance), e.frameLoop && (g.frameLoop = e.frameLoop);
154
+ }, re = /* @__PURE__ */ new Set(), F = [], qe = [], Ae = 0, Ve = {
155
+ get idle() {
156
+ return !re.size && !F.length;
157
+ },
158
+ /** Advance the given animation on every frame until idle. */
159
+ start(e) {
160
+ Ae > e.priority ? (re.add(e), g.onStart(Ri)) : (Nt(e), g(Me));
161
+ },
162
+ /** Advance all animations by the given time. */
163
+ advance: Me,
164
+ /** Call this when an animation's priority changes. */
165
+ sort(e) {
166
+ if (Ae)
167
+ g.onFrame(() => Ve.sort(e));
168
+ else {
169
+ const t = F.indexOf(e);
170
+ ~t && (F.splice(t, 1), zt(e));
171
+ }
172
+ },
173
+ /**
174
+ * Clear all animations. For testing purposes.
175
+ *
176
+ * ☠️ Never call this from within the frameloop.
177
+ */
178
+ clear() {
179
+ F = [], re.clear();
180
+ }
181
+ };
182
+ function Ri() {
183
+ re.forEach(Nt), re.clear(), g(Me);
184
+ }
185
+ function Nt(e) {
186
+ F.includes(e) || zt(e);
187
+ }
188
+ function zt(e) {
189
+ F.splice(
190
+ Ii(F, (t) => t.priority > e.priority),
191
+ 0,
192
+ e
193
+ );
194
+ }
195
+ function Me(e) {
196
+ const t = qe;
197
+ for (let i = 0; i < F.length; i++) {
198
+ const n = F[i];
199
+ Ae = n.priority, n.idle || (nt(n), n.advance(e), n.idle || t.push(n));
200
+ }
201
+ return Ae = 0, qe = F, qe.length = 0, F = t, F.length > 0;
202
+ }
203
+ function Ii(e, t) {
204
+ const i = e.findIndex(t);
205
+ return i < 0 ? e.length : i;
206
+ }
207
+ var ki = {
208
+ transparent: 0,
209
+ aliceblue: 4042850303,
210
+ antiquewhite: 4209760255,
211
+ aqua: 16777215,
212
+ aquamarine: 2147472639,
213
+ azure: 4043309055,
214
+ beige: 4126530815,
215
+ bisque: 4293182719,
216
+ black: 255,
217
+ blanchedalmond: 4293643775,
218
+ blue: 65535,
219
+ blueviolet: 2318131967,
220
+ brown: 2771004159,
221
+ burlywood: 3736635391,
222
+ burntsienna: 3934150143,
223
+ cadetblue: 1604231423,
224
+ chartreuse: 2147418367,
225
+ chocolate: 3530104575,
226
+ coral: 4286533887,
227
+ cornflowerblue: 1687547391,
228
+ cornsilk: 4294499583,
229
+ crimson: 3692313855,
230
+ cyan: 16777215,
231
+ darkblue: 35839,
232
+ darkcyan: 9145343,
233
+ darkgoldenrod: 3095792639,
234
+ darkgray: 2846468607,
235
+ darkgreen: 6553855,
236
+ darkgrey: 2846468607,
237
+ darkkhaki: 3182914559,
238
+ darkmagenta: 2332068863,
239
+ darkolivegreen: 1433087999,
240
+ darkorange: 4287365375,
241
+ darkorchid: 2570243327,
242
+ darkred: 2332033279,
243
+ darksalmon: 3918953215,
244
+ darkseagreen: 2411499519,
245
+ darkslateblue: 1211993087,
246
+ darkslategray: 793726975,
247
+ darkslategrey: 793726975,
248
+ darkturquoise: 13554175,
249
+ darkviolet: 2483082239,
250
+ deeppink: 4279538687,
251
+ deepskyblue: 12582911,
252
+ dimgray: 1768516095,
253
+ dimgrey: 1768516095,
254
+ dodgerblue: 512819199,
255
+ firebrick: 2988581631,
256
+ floralwhite: 4294635775,
257
+ forestgreen: 579543807,
258
+ fuchsia: 4278255615,
259
+ gainsboro: 3705462015,
260
+ ghostwhite: 4177068031,
261
+ gold: 4292280575,
262
+ goldenrod: 3668254975,
263
+ gray: 2155905279,
264
+ green: 8388863,
265
+ greenyellow: 2919182335,
266
+ grey: 2155905279,
267
+ honeydew: 4043305215,
268
+ hotpink: 4285117695,
269
+ indianred: 3445382399,
270
+ indigo: 1258324735,
271
+ ivory: 4294963455,
272
+ khaki: 4041641215,
273
+ lavender: 3873897215,
274
+ lavenderblush: 4293981695,
275
+ lawngreen: 2096890111,
276
+ lemonchiffon: 4294626815,
277
+ lightblue: 2916673279,
278
+ lightcoral: 4034953471,
279
+ lightcyan: 3774873599,
280
+ lightgoldenrodyellow: 4210742015,
281
+ lightgray: 3553874943,
282
+ lightgreen: 2431553791,
283
+ lightgrey: 3553874943,
284
+ lightpink: 4290167295,
285
+ lightsalmon: 4288707327,
286
+ lightseagreen: 548580095,
287
+ lightskyblue: 2278488831,
288
+ lightslategray: 2005441023,
289
+ lightslategrey: 2005441023,
290
+ lightsteelblue: 2965692159,
291
+ lightyellow: 4294959359,
292
+ lime: 16711935,
293
+ limegreen: 852308735,
294
+ linen: 4210091775,
295
+ magenta: 4278255615,
296
+ maroon: 2147483903,
297
+ mediumaquamarine: 1724754687,
298
+ mediumblue: 52735,
299
+ mediumorchid: 3126187007,
300
+ mediumpurple: 2473647103,
301
+ mediumseagreen: 1018393087,
302
+ mediumslateblue: 2070474495,
303
+ mediumspringgreen: 16423679,
304
+ mediumturquoise: 1221709055,
305
+ mediumvioletred: 3340076543,
306
+ midnightblue: 421097727,
307
+ mintcream: 4127193855,
308
+ mistyrose: 4293190143,
309
+ moccasin: 4293178879,
310
+ navajowhite: 4292783615,
311
+ navy: 33023,
312
+ oldlace: 4260751103,
313
+ olive: 2155872511,
314
+ olivedrab: 1804477439,
315
+ orange: 4289003775,
316
+ orangered: 4282712319,
317
+ orchid: 3664828159,
318
+ palegoldenrod: 4008225535,
319
+ palegreen: 2566625535,
320
+ paleturquoise: 2951671551,
321
+ palevioletred: 3681588223,
322
+ papayawhip: 4293907967,
323
+ peachpuff: 4292524543,
324
+ peru: 3448061951,
325
+ pink: 4290825215,
326
+ plum: 3718307327,
327
+ powderblue: 2967529215,
328
+ purple: 2147516671,
329
+ rebeccapurple: 1714657791,
330
+ red: 4278190335,
331
+ rosybrown: 3163525119,
332
+ royalblue: 1097458175,
333
+ saddlebrown: 2336560127,
334
+ salmon: 4202722047,
335
+ sandybrown: 4104413439,
336
+ seagreen: 780883967,
337
+ seashell: 4294307583,
338
+ sienna: 2689740287,
339
+ silver: 3233857791,
340
+ skyblue: 2278484991,
341
+ slateblue: 1784335871,
342
+ slategray: 1887473919,
343
+ slategrey: 1887473919,
344
+ snow: 4294638335,
345
+ springgreen: 16744447,
346
+ steelblue: 1182971135,
347
+ tan: 3535047935,
348
+ teal: 8421631,
349
+ thistle: 3636451583,
350
+ tomato: 4284696575,
351
+ turquoise: 1088475391,
352
+ violet: 4001558271,
353
+ wheat: 4125012991,
354
+ white: 4294967295,
355
+ whitesmoke: 4126537215,
356
+ yellow: 4294902015,
357
+ yellowgreen: 2597139199
358
+ }, E = "[-+]?\\d*\\.?\\d+", Pe = E + "%";
359
+ function Fe(...e) {
360
+ return "\\(\\s*(" + e.join(")\\s*,\\s*(") + ")\\s*\\)";
361
+ }
362
+ var Vi = new RegExp("rgb" + Fe(E, E, E)), Fi = new RegExp("rgba" + Fe(E, E, E, E)), Ti = new RegExp("hsl" + Fe(E, Pe, Pe)), Ci = new RegExp(
363
+ "hsla" + Fe(E, Pe, Pe, E)
364
+ ), Ei = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Oi = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, Ui = /^#([0-9a-fA-F]{6})$/, qi = /^#([0-9a-fA-F]{8})$/;
365
+ function $i(e) {
366
+ let t;
367
+ return typeof e == "number" ? e >>> 0 === e && e >= 0 && e <= 4294967295 ? e : null : (t = Ui.exec(e)) ? parseInt(t[1] + "ff", 16) >>> 0 : D && D[e] !== void 0 ? D[e] : (t = Vi.exec(e)) ? (W(t[1]) << 24 | // r
368
+ W(t[2]) << 16 | // g
369
+ W(t[3]) << 8 | // b
370
+ 255) >>> // a
371
+ 0 : (t = Fi.exec(e)) ? (W(t[1]) << 24 | // r
372
+ W(t[2]) << 16 | // g
373
+ W(t[3]) << 8 | // b
374
+ ft(t[4])) >>> // a
375
+ 0 : (t = Ei.exec(e)) ? parseInt(
376
+ t[1] + t[1] + // r
377
+ t[2] + t[2] + // g
378
+ t[3] + t[3] + // b
379
+ "ff",
380
+ // a
381
+ 16
382
+ ) >>> 0 : (t = qi.exec(e)) ? parseInt(t[1], 16) >>> 0 : (t = Oi.exec(e)) ? parseInt(
383
+ t[1] + t[1] + // r
384
+ t[2] + t[2] + // g
385
+ t[3] + t[3] + // b
386
+ t[4] + t[4],
387
+ // a
388
+ 16
389
+ ) >>> 0 : (t = Ti.exec(e)) ? (ct(
390
+ dt(t[1]),
391
+ // h
392
+ be(t[2]),
393
+ // s
394
+ be(t[3])
395
+ // l
396
+ ) | 255) >>> // a
397
+ 0 : (t = Ci.exec(e)) ? (ct(
398
+ dt(t[1]),
399
+ // h
400
+ be(t[2]),
401
+ // s
402
+ be(t[3])
403
+ // l
404
+ ) | ft(t[4])) >>> // a
405
+ 0 : null;
406
+ }
407
+ function $e(e, t, i) {
408
+ return i < 0 && (i += 1), i > 1 && (i -= 1), i < 1 / 6 ? e + (t - e) * 6 * i : i < 1 / 2 ? t : i < 2 / 3 ? e + (t - e) * (2 / 3 - i) * 6 : e;
409
+ }
410
+ function ct(e, t, i) {
411
+ const n = i < 0.5 ? i * (1 + t) : i + t - i * t, s = 2 * i - n, r = $e(s, n, e + 1 / 3), a = $e(s, n, e), u = $e(s, n, e - 1 / 3);
412
+ return Math.round(r * 255) << 24 | Math.round(a * 255) << 16 | Math.round(u * 255) << 8;
413
+ }
414
+ function W(e) {
415
+ const t = parseInt(e, 10);
416
+ return t < 0 ? 0 : t > 255 ? 255 : t;
417
+ }
418
+ function dt(e) {
419
+ return (parseFloat(e) % 360 + 360) % 360 / 360;
420
+ }
421
+ function ft(e) {
422
+ const t = parseFloat(e);
423
+ return t < 0 ? 0 : t > 1 ? 255 : Math.round(t * 255);
424
+ }
425
+ function be(e) {
426
+ const t = parseFloat(e);
427
+ return t < 0 ? 0 : t > 100 ? 1 : t / 100;
428
+ }
429
+ function ht(e) {
430
+ let t = $i(e);
431
+ if (t === null) return e;
432
+ t = t || 0;
433
+ const i = (t & 4278190080) >>> 24, n = (t & 16711680) >>> 16, s = (t & 65280) >>> 8, r = (t & 255) / 255;
434
+ return `rgba(${i}, ${n}, ${s}, ${r})`;
435
+ }
436
+ var ue = (e, t, i) => {
437
+ if (o.fun(e))
438
+ return e;
439
+ if (o.arr(e))
440
+ return ue({
441
+ range: e,
442
+ output: t,
443
+ extrapolate: i
444
+ });
445
+ if (o.str(e.output[0]))
446
+ return it(e);
447
+ const n = e, s = n.output, r = n.range || [0, 1], a = n.extrapolateLeft || n.extrapolate || "extend", u = n.extrapolateRight || n.extrapolate || "extend", c = n.easing || ((l) => l);
448
+ return (l) => {
449
+ const m = Ni(l, r);
450
+ return ji(
451
+ l,
452
+ r[m],
453
+ r[m + 1],
454
+ s[m],
455
+ s[m + 1],
456
+ c,
457
+ a,
458
+ u,
459
+ n.map
460
+ );
461
+ };
462
+ };
463
+ function ji(e, t, i, n, s, r, a, u, c) {
464
+ let l = c ? c(e) : e;
465
+ if (l < t) {
466
+ if (a === "identity") return l;
467
+ a === "clamp" && (l = t);
468
+ }
469
+ if (l > i) {
470
+ if (u === "identity") return l;
471
+ u === "clamp" && (l = i);
472
+ }
473
+ return n === s ? n : t === i ? e <= t ? n : s : (t === -1 / 0 ? l = -l : i === 1 / 0 ? l = l - t : l = (l - t) / (i - t), l = r(l), n === -1 / 0 ? l = -l : s === 1 / 0 ? l = l + n : l = l * (s - n) + n, l);
474
+ }
475
+ function Ni(e, t) {
476
+ for (var i = 1; i < t.length - 1 && !(t[i] >= e); ++i)
477
+ ;
478
+ return i - 1;
479
+ }
480
+ var zi = {
481
+ linear: (e) => e,
482
+ easeInOutCubic: (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2
483
+ }, le = Symbol.for("FluidValue.get"), J = Symbol.for("FluidValue.observers"), V = (e) => !!(e && e[le]), x = (e) => e && e[le] ? e[le]() : e, mt = (e) => e[J] || null;
484
+ function Di(e, t) {
485
+ e.eventObserved ? e.eventObserved(t) : e(t);
486
+ }
487
+ function ce(e, t) {
488
+ const i = e[J];
489
+ i && i.forEach((n) => {
490
+ Di(n, t);
491
+ });
492
+ }
493
+ var Dt = class {
494
+ constructor(e) {
495
+ if (!e && !(e = this.get))
496
+ throw Error("Unknown getter");
497
+ Qi(this, e);
498
+ }
499
+ }, Qi = (e, t) => Qt(e, le, t);
500
+ function X(e, t) {
501
+ if (e[le]) {
502
+ let i = e[J];
503
+ i || Qt(e, J, i = /* @__PURE__ */ new Set()), i.has(t) || (i.add(t), e.observerAdded && e.observerAdded(i.size, t));
504
+ }
505
+ return t;
506
+ }
507
+ function de(e, t) {
508
+ const i = e[J];
509
+ if (i && i.has(t)) {
510
+ const n = i.size - 1;
511
+ n ? i.delete(t) : e[J] = null, e.observerRemoved && e.observerRemoved(n, t);
512
+ }
513
+ }
514
+ var Qt = (e, t, i) => Object.defineProperty(e, t, {
515
+ value: i,
516
+ writable: !0,
517
+ configurable: !0
518
+ }), we = /[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Li = /(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi, pt = new RegExp(`(${we.source})(%|[a-z]+)`, "i"), Mi = /rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi, Te = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/, Lt = (e) => {
519
+ const [t, i] = Bi(e);
520
+ if (!t || tt())
521
+ return e;
522
+ const n = window.getComputedStyle(document.documentElement).getPropertyValue(t);
523
+ if (n)
524
+ return n.trim();
525
+ if (i && i.startsWith("--")) {
526
+ const s = window.getComputedStyle(document.documentElement).getPropertyValue(i);
527
+ return s || e;
528
+ } else {
529
+ if (i && Te.test(i))
530
+ return Lt(i);
531
+ if (i)
532
+ return i;
533
+ }
534
+ return e;
535
+ }, Bi = (e) => {
536
+ const t = Te.exec(e);
537
+ if (!t) return [,];
538
+ const [, i, n] = t;
539
+ return [i, n];
540
+ }, je, Gi = (e, t, i, n, s) => `rgba(${Math.round(t)}, ${Math.round(i)}, ${Math.round(n)}, ${s})`, Mt = (e) => {
541
+ je || (je = D ? (
542
+ // match color names, ignore partial matches
543
+ new RegExp(`(${Object.keys(D).join("|")})(?!\\w)`, "g")
544
+ ) : (
545
+ // never match
546
+ /^\b$/
547
+ ));
548
+ const t = e.output.map((r) => x(r).replace(Te, Lt).replace(Li, ht).replace(je, ht)), i = t.map((r) => r.match(we).map(Number)), s = i[0].map(
549
+ (r, a) => i.map((u) => {
550
+ if (!(a in u))
551
+ throw Error('The arity of each "output" value must be equal');
552
+ return u[a];
553
+ })
554
+ ).map(
555
+ (r) => ue({ ...e, output: r })
556
+ );
557
+ return (r) => {
558
+ var c;
559
+ const a = !pt.test(t[0]) && ((c = t.find((l) => pt.test(l))) == null ? void 0 : c.replace(we, ""));
560
+ let u = 0;
561
+ return t[0].replace(
562
+ we,
563
+ () => `${s[u++](r)}${a || ""}`
564
+ ).replace(Mi, Gi);
565
+ };
566
+ }, st = "react-spring: ", Bt = (e) => {
567
+ const t = e;
568
+ let i = !1;
569
+ if (typeof t != "function")
570
+ throw new TypeError(`${st}once requires a function parameter`);
571
+ return (...n) => {
572
+ i || (t(...n), i = !0);
573
+ };
574
+ }, Hi = Bt(console.warn);
575
+ function Wi() {
576
+ Hi(
577
+ `${st}The "interpolate" function is deprecated in v9 (use "to" instead)`
578
+ );
579
+ }
580
+ var Ki = Bt(console.warn);
581
+ function Zi() {
582
+ Ki(
583
+ `${st}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`
584
+ );
585
+ }
586
+ function Ce(e) {
587
+ return o.str(e) && (e[0] == "#" || /\d/.test(e) || // Do not identify a CSS variable as an AnimatedString if its SSR
588
+ !tt() && Te.test(e) || e in (D || {}));
589
+ }
590
+ var rt = tt() ? Ie : pi, Ji = () => {
591
+ const e = M(!1);
592
+ return rt(() => (e.current = !0, () => {
593
+ e.current = !1;
594
+ }), []), e;
595
+ };
596
+ function Gt() {
597
+ const e = gi()[1], t = Ji();
598
+ return () => {
599
+ t.current && e(Math.random());
600
+ };
601
+ }
602
+ var Ht = (e) => Ie(e, Xi), Xi = [];
603
+ function gt(e) {
604
+ const t = M(void 0);
605
+ return Ie(() => {
606
+ t.current = e;
607
+ }), t.current;
608
+ }
609
+ var fe = Symbol.for("Animated:node"), Yi = (e) => !!e && e[fe] === e, U = (e) => e && e[fe], at = (e, t) => Pi(e, fe, t), Ee = (e) => e && e[fe] && e[fe].getPayload(), Wt = class {
610
+ constructor() {
611
+ at(this, this);
612
+ }
613
+ /** Get every `AnimatedValue` used by this node. */
614
+ getPayload() {
615
+ return this.payload || [];
616
+ }
617
+ }, Oe = class Kt extends Wt {
618
+ constructor(t) {
619
+ super(), this._value = t, this.done = !0, this.durationProgress = 0, o.num(this._value) && (this.lastPosition = this._value);
620
+ }
621
+ /** @internal */
622
+ static create(t) {
623
+ return new Kt(t);
624
+ }
625
+ getPayload() {
626
+ return [this];
627
+ }
628
+ getValue() {
629
+ return this._value;
630
+ }
631
+ setValue(t, i) {
632
+ return o.num(t) && (this.lastPosition = t, i && (t = Math.round(t / i) * i, this.done && (this.lastPosition = t))), this._value === t ? !1 : (this._value = t, !0);
633
+ }
634
+ reset() {
635
+ const { done: t } = this;
636
+ this.done = !1, o.num(this._value) && (this.elapsedTime = 0, this.durationProgress = 0, this.lastPosition = this._value, t && (this.lastVelocity = null), this.v0 = null);
637
+ }
638
+ }, xe = class Zt extends Oe {
639
+ constructor(t) {
640
+ super(0), this._string = null, this._toString = ue({
641
+ output: [t, t]
642
+ });
643
+ }
644
+ /** @internal */
645
+ static create(t) {
646
+ return new Zt(t);
647
+ }
648
+ getValue() {
649
+ const t = this._string;
650
+ return t ?? (this._string = this._toString(this._value));
651
+ }
652
+ setValue(t) {
653
+ if (o.str(t)) {
654
+ if (t == this._string)
655
+ return !1;
656
+ this._string = t, this._value = 1;
657
+ } else if (super.setValue(t))
658
+ this._string = null;
659
+ else
660
+ return !1;
661
+ return !0;
662
+ }
663
+ reset(t) {
664
+ t && (this._toString = ue({
665
+ output: [this.getValue(), t]
666
+ })), this._value = 0, super.reset();
667
+ }
668
+ }, Re = { dependencies: null }, Ue = class extends Wt {
669
+ constructor(e) {
670
+ super(), this.source = e, this.setValue(e);
671
+ }
672
+ getValue(e) {
673
+ const t = {};
674
+ return q(this.source, (i, n) => {
675
+ Yi(i) ? t[n] = i.getValue(e) : V(i) ? t[n] = x(i) : e || (t[n] = i);
676
+ }), t;
677
+ }
678
+ /** Replace the raw object data */
679
+ setValue(e) {
680
+ this.source = e, this.payload = this._makePayload(e);
681
+ }
682
+ reset() {
683
+ this.payload && S(this.payload, (e) => e.reset());
684
+ }
685
+ /** Create a payload set. */
686
+ _makePayload(e) {
687
+ if (e) {
688
+ const t = /* @__PURE__ */ new Set();
689
+ return q(e, this._addToPayload, t), Array.from(t);
690
+ }
691
+ }
692
+ /** Add to a payload set. */
693
+ _addToPayload(e) {
694
+ Re.dependencies && V(e) && Re.dependencies.add(e);
695
+ const t = Ee(e);
696
+ t && S(t, (i) => this.add(i));
697
+ }
698
+ }, en = class Jt extends Ue {
699
+ constructor(t) {
700
+ super(t);
701
+ }
702
+ /** @internal */
703
+ static create(t) {
704
+ return new Jt(t);
705
+ }
706
+ getValue() {
707
+ return this.source.map((t) => t.getValue());
708
+ }
709
+ setValue(t) {
710
+ const i = this.getPayload();
711
+ return t.length == i.length ? i.map((n, s) => n.setValue(t[s])).some(Boolean) : (super.setValue(t.map(tn)), !0);
712
+ }
713
+ };
714
+ function tn(e) {
715
+ return (Ce(e) ? xe : Oe).create(e);
716
+ }
717
+ function Be(e) {
718
+ const t = U(e);
719
+ return t ? t.constructor : o.arr(e) ? en : Ce(e) ? xe : Oe;
720
+ }
721
+ var vt = (e, t) => {
722
+ const i = (
723
+ // Function components must use "forwardRef" to avoid being
724
+ // re-rendered on every animation frame.
725
+ !o.fun(e) || e.prototype && e.prototype.isReactComponent
726
+ );
727
+ return vi((n, s) => {
728
+ const r = M(null), a = i && // eslint-disable-next-line react-hooks/rules-of-hooks
729
+ yi(
730
+ (_) => {
731
+ r.current = rn(s, _);
732
+ },
733
+ [s]
734
+ ), [u, c] = sn(n, t), l = Gt(), m = () => {
735
+ const _ = r.current;
736
+ if (i && !_)
737
+ return;
738
+ (_ ? t.applyAnimatedValues(_, u.getValue(!0)) : !1) === !1 && l();
739
+ }, d = new nn(m, c), f = M(void 0);
740
+ rt(() => (f.current = d, S(c, (_) => X(_, d)), () => {
741
+ f.current && (S(
742
+ f.current.deps,
743
+ (_) => de(_, f.current)
744
+ ), g.cancel(f.current.update));
745
+ })), Ie(m, []), Ht(() => () => {
746
+ const _ = f.current;
747
+ S(_.deps, (v) => de(v, _));
748
+ });
749
+ const p = t.getComponentProps(u.getValue());
750
+ return /* @__PURE__ */ Tt.createElement(e, { ...p, ref: a });
751
+ });
752
+ }, nn = class {
753
+ constructor(e, t) {
754
+ this.update = e, this.deps = t;
755
+ }
756
+ eventObserved(e) {
757
+ e.type == "change" && g.write(this.update);
758
+ }
759
+ };
760
+ function sn(e, t) {
761
+ const i = /* @__PURE__ */ new Set();
762
+ return Re.dependencies = i, e.style && (e = {
763
+ ...e,
764
+ style: t.createAnimatedStyle(e.style)
765
+ }), e = new Ue(e), Re.dependencies = null, [e, i];
766
+ }
767
+ function rn(e, t) {
768
+ return e && (o.fun(e) ? e(t) : e.current = t), t;
769
+ }
770
+ var yt = Symbol.for("AnimatedComponent"), an = (e, {
771
+ applyAnimatedValues: t = () => !1,
772
+ createAnimatedStyle: i = (s) => new Ue(s),
773
+ getComponentProps: n = (s) => s
774
+ } = {}) => {
775
+ const s = {
776
+ applyAnimatedValues: t,
777
+ createAnimatedStyle: i,
778
+ getComponentProps: n
779
+ }, r = (a) => {
780
+ const u = _t(a) || "Anonymous";
781
+ return o.str(a) ? a = r[a] || (r[a] = vt(a, s)) : a = a[yt] || (a[yt] = vt(a, s)), a.displayName = `Animated(${u})`, a;
782
+ };
783
+ return q(e, (a, u) => {
784
+ o.arr(e) && (u = _t(a)), r[u] = r(a);
785
+ }), {
786
+ animated: r
787
+ };
788
+ }, _t = (e) => o.str(e) ? e : e && o.str(e.displayName) ? e.displayName : o.fun(e) && e.name || null;
789
+ function L(e, ...t) {
790
+ return o.fun(e) ? e(...t) : e;
791
+ }
792
+ var ae = (e, t) => e === !0 || !!(t && e && (o.fun(e) ? e(t) : R(e).includes(t))), Xt = (e, t) => o.obj(e) ? t && e[t] : e, Yt = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, on = (e) => e, ot = (e, t = on) => {
793
+ let i = un;
794
+ e.default && e.default !== !0 && (e = e.default, i = Object.keys(e));
795
+ const n = {};
796
+ for (const s of i) {
797
+ const r = t(e[s], s);
798
+ o.und(r) || (n[s] = r);
799
+ }
800
+ return n;
801
+ }, un = [
802
+ "config",
803
+ "onProps",
804
+ "onStart",
805
+ "onChange",
806
+ "onPause",
807
+ "onResume",
808
+ "onRest"
809
+ ], ln = {
810
+ config: 1,
811
+ from: 1,
812
+ to: 1,
813
+ ref: 1,
814
+ loop: 1,
815
+ reset: 1,
816
+ pause: 1,
817
+ cancel: 1,
818
+ reverse: 1,
819
+ immediate: 1,
820
+ default: 1,
821
+ delay: 1,
822
+ onProps: 1,
823
+ onStart: 1,
824
+ onChange: 1,
825
+ onPause: 1,
826
+ onResume: 1,
827
+ onRest: 1,
828
+ onResolve: 1,
829
+ // Transition props
830
+ items: 1,
831
+ trail: 1,
832
+ sort: 1,
833
+ expires: 1,
834
+ initial: 1,
835
+ enter: 1,
836
+ update: 1,
837
+ leave: 1,
838
+ children: 1,
839
+ onDestroyed: 1,
840
+ // Internal props
841
+ keys: 1,
842
+ callId: 1,
843
+ parentId: 1
844
+ };
845
+ function cn(e) {
846
+ const t = {};
847
+ let i = 0;
848
+ if (q(e, (n, s) => {
849
+ ln[s] || (t[s] = n, i++);
850
+ }), i)
851
+ return t;
852
+ }
853
+ function ei(e) {
854
+ const t = cn(e);
855
+ if (t) {
856
+ const i = { to: t };
857
+ return q(e, (n, s) => s in t || (i[s] = n)), i;
858
+ }
859
+ return { ...e };
860
+ }
861
+ function he(e) {
862
+ return e = x(e), o.arr(e) ? e.map(he) : Ce(e) ? O.createStringInterpolator({
863
+ range: [0, 1],
864
+ output: [e, e]
865
+ })(1) : e;
866
+ }
867
+ function dn(e) {
868
+ for (const t in e) return !0;
869
+ return !1;
870
+ }
871
+ function Ge(e) {
872
+ return o.fun(e) || o.arr(e) && o.obj(e[0]);
873
+ }
874
+ function fn(e, t) {
875
+ var i;
876
+ (i = e.ref) == null || i.delete(e), t == null || t.delete(e);
877
+ }
878
+ function hn(e, t) {
879
+ var i;
880
+ t && e.ref !== t && ((i = e.ref) == null || i.delete(e), t.add(e), e.ref = t);
881
+ }
882
+ var mn = {
883
+ default: { tension: 170, friction: 26 }
884
+ }, He = {
885
+ ...mn.default,
886
+ mass: 1,
887
+ damping: 1,
888
+ easing: zi.linear,
889
+ clamp: !1
890
+ }, pn = class {
891
+ constructor() {
892
+ this.velocity = 0, Object.assign(this, He);
893
+ }
894
+ };
895
+ function gn(e, t, i) {
896
+ i && (i = { ...i }, bt(i, t), t = { ...i, ...t }), bt(e, t), Object.assign(e, t);
897
+ for (const a in He)
898
+ e[a] == null && (e[a] = He[a]);
899
+ let { frequency: n, damping: s } = e;
900
+ const { mass: r } = e;
901
+ return o.und(n) || (n < 0.01 && (n = 0.01), s < 0 && (s = 0), e.tension = Math.pow(2 * Math.PI / n, 2) * r, e.friction = 4 * Math.PI * s * r / n), e;
902
+ }
903
+ function bt(e, t) {
904
+ if (!o.und(t.decay))
905
+ e.duration = void 0;
906
+ else {
907
+ const i = !o.und(t.tension) || !o.und(t.friction);
908
+ (i || !o.und(t.frequency) || !o.und(t.damping) || !o.und(t.mass)) && (e.duration = void 0, e.decay = void 0), i && (e.frequency = void 0);
909
+ }
910
+ }
911
+ var wt = [], vn = class {
912
+ constructor() {
913
+ this.changed = !1, this.values = wt, this.toValues = null, this.fromValues = wt, this.config = new pn(), this.immediate = !1;
914
+ }
915
+ };
916
+ function ti(e, { key: t, props: i, defaultProps: n, state: s, actions: r }) {
917
+ return new Promise((a, u) => {
918
+ let c, l, m = ae(i.cancel ?? (n == null ? void 0 : n.cancel), t);
919
+ if (m)
920
+ p();
921
+ else {
922
+ o.und(i.pause) || (s.paused = ae(i.pause, t));
923
+ let _ = n == null ? void 0 : n.pause;
924
+ _ !== !0 && (_ = s.paused || ae(_, t)), c = L(i.delay || 0, t), _ ? (s.resumeQueue.add(f), r.pause()) : (r.resume(), f());
925
+ }
926
+ function d() {
927
+ s.resumeQueue.add(f), s.timeouts.delete(l), l.cancel(), c = l.time - g.now();
928
+ }
929
+ function f() {
930
+ c > 0 && !O.skipAnimation ? (s.delayed = !0, l = g.setTimeout(p, c), s.pauseQueue.add(d), s.timeouts.add(l)) : p();
931
+ }
932
+ function p() {
933
+ s.delayed && (s.delayed = !1), s.pauseQueue.delete(d), s.timeouts.delete(l), e <= (s.cancelId || 0) && (m = !0);
934
+ try {
935
+ r.start({ ...i, callId: e, cancel: m }, a);
936
+ } catch (_) {
937
+ u(_);
938
+ }
939
+ }
940
+ });
941
+ }
942
+ var ut = (e, t) => t.length == 1 ? t[0] : t.some((i) => i.cancelled) ? Z(e.get()) : t.every((i) => i.noop) ? ii(e.get()) : C(
943
+ e.get(),
944
+ t.every((i) => i.finished)
945
+ ), ii = (e) => ({
946
+ value: e,
947
+ noop: !0,
948
+ finished: !0,
949
+ cancelled: !1
950
+ }), C = (e, t, i = !1) => ({
951
+ value: e,
952
+ finished: t,
953
+ cancelled: i
954
+ }), Z = (e) => ({
955
+ value: e,
956
+ cancelled: !0,
957
+ finished: !1
958
+ });
959
+ function ni(e, t, i, n) {
960
+ const { callId: s, parentId: r, onRest: a } = t, { asyncTo: u, promise: c } = i;
961
+ return !r && e === u && !t.reset ? c : i.promise = (async () => {
962
+ i.asyncId = s, i.asyncTo = e;
963
+ const l = ot(
964
+ t,
965
+ (b, h) => (
966
+ // The `onRest` prop is only called when the `runAsync` promise is resolved.
967
+ h === "onRest" ? void 0 : b
968
+ )
969
+ );
970
+ let m, d;
971
+ const f = new Promise(
972
+ (b, h) => (m = b, d = h)
973
+ ), p = (b) => {
974
+ const h = (
975
+ // The `cancel` prop or `stop` method was used.
976
+ s <= (i.cancelId || 0) && Z(n) || // The async `to` prop was replaced.
977
+ s !== i.asyncId && C(n, !1)
978
+ );
979
+ if (h)
980
+ throw b.result = h, d(b), b;
981
+ }, _ = (b, h) => {
982
+ const w = new St(), y = new At();
983
+ return (async () => {
984
+ if (O.skipAnimation)
985
+ throw me(i), y.result = C(n, !1), d(y), y;
986
+ p(w);
987
+ const A = o.obj(b) ? { ...b } : { ...h, to: b };
988
+ A.parentId = s, q(l, (Q, I) => {
989
+ o.und(A[I]) && (A[I] = Q);
990
+ });
991
+ const P = await n.start(A);
992
+ return p(w), i.paused && await new Promise((Q) => {
993
+ i.resumeQueue.add(Q);
994
+ }), P;
995
+ })();
996
+ };
997
+ let v;
998
+ if (O.skipAnimation)
999
+ return me(i), C(n, !1);
1000
+ try {
1001
+ let b;
1002
+ o.arr(e) ? b = (async (h) => {
1003
+ for (const w of h)
1004
+ await _(w);
1005
+ })(e) : b = Promise.resolve(e(_, n.stop.bind(n))), await Promise.all([b.then(m), f]), v = C(n.get(), !0, !1);
1006
+ } catch (b) {
1007
+ if (b instanceof St)
1008
+ v = b.result;
1009
+ else if (b instanceof At)
1010
+ v = b.result;
1011
+ else
1012
+ throw b;
1013
+ } finally {
1014
+ s == i.asyncId && (i.asyncId = r, i.asyncTo = r ? u : void 0, i.promise = r ? c : void 0);
1015
+ }
1016
+ return o.fun(a) && g.batchedUpdates(() => {
1017
+ a(v, n, n.item);
1018
+ }), v;
1019
+ })();
1020
+ }
1021
+ function me(e, t) {
1022
+ se(e.timeouts, (i) => i.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
1023
+ }
1024
+ var St = class extends Error {
1025
+ constructor() {
1026
+ super(
1027
+ "An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."
1028
+ );
1029
+ }
1030
+ }, At = class extends Error {
1031
+ constructor() {
1032
+ super("SkipAnimationSignal");
1033
+ }
1034
+ }, We = (e) => e instanceof lt, yn = 1, lt = class extends Dt {
1035
+ constructor() {
1036
+ super(...arguments), this.id = yn++, this._priority = 0;
1037
+ }
1038
+ get priority() {
1039
+ return this._priority;
1040
+ }
1041
+ set priority(e) {
1042
+ this._priority != e && (this._priority = e, this._onPriorityChange(e));
1043
+ }
1044
+ /** Get the current value */
1045
+ get() {
1046
+ const e = U(this);
1047
+ return e && e.getValue();
1048
+ }
1049
+ /** Create a spring that maps our value to another value */
1050
+ to(...e) {
1051
+ return O.to(this, e);
1052
+ }
1053
+ /** @deprecated Use the `to` method instead. */
1054
+ interpolate(...e) {
1055
+ return Wi(), O.to(this, e);
1056
+ }
1057
+ toJSON() {
1058
+ return this.get();
1059
+ }
1060
+ observerAdded(e) {
1061
+ e == 1 && this._attach();
1062
+ }
1063
+ observerRemoved(e) {
1064
+ e == 0 && this._detach();
1065
+ }
1066
+ /** Called when the first child is added. */
1067
+ _attach() {
1068
+ }
1069
+ /** Called when the last child is removed. */
1070
+ _detach() {
1071
+ }
1072
+ /** Tell our children about our new value */
1073
+ _onChange(e, t = !1) {
1074
+ ce(this, {
1075
+ type: "change",
1076
+ parent: this,
1077
+ value: e,
1078
+ idle: t
1079
+ });
1080
+ }
1081
+ /** Tell our children about our new priority */
1082
+ _onPriorityChange(e) {
1083
+ this.idle || Ve.sort(this), ce(this, {
1084
+ type: "priority",
1085
+ parent: this,
1086
+ priority: e
1087
+ });
1088
+ }
1089
+ }, B = Symbol.for("SpringPhase"), si = 1, ri = 2, ai = 4, Ne = (e) => (e[B] & si) > 0, j = (e) => (e[B] & ri) > 0, ee = (e) => (e[B] & ai) > 0, Pt = (e, t) => t ? e[B] |= ri | si : e[B] &= -3, xt = (e, t) => t ? e[B] |= ai : e[B] &= -5, _n = class extends lt {
1090
+ constructor(e, t) {
1091
+ if (super(), this.animation = new vn(), this.defaultProps = {}, this._state = {
1092
+ paused: !1,
1093
+ delayed: !1,
1094
+ pauseQueue: /* @__PURE__ */ new Set(),
1095
+ resumeQueue: /* @__PURE__ */ new Set(),
1096
+ timeouts: /* @__PURE__ */ new Set()
1097
+ }, this._pendingCalls = /* @__PURE__ */ new Set(), this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !o.und(e) || !o.und(t)) {
1098
+ const i = o.obj(e) ? { ...e } : { ...t, from: e };
1099
+ o.und(i.default) && (i.default = !0), this.start(i);
1100
+ }
1101
+ }
1102
+ /** Equals true when not advancing on each frame. */
1103
+ get idle() {
1104
+ return !(j(this) || this._state.asyncTo) || ee(this);
1105
+ }
1106
+ get goal() {
1107
+ return x(this.animation.to);
1108
+ }
1109
+ get velocity() {
1110
+ const e = U(this);
1111
+ return e instanceof Oe ? e.lastVelocity || 0 : e.getPayload().map((t) => t.lastVelocity || 0);
1112
+ }
1113
+ /**
1114
+ * When true, this value has been animated at least once.
1115
+ */
1116
+ get hasAnimated() {
1117
+ return Ne(this);
1118
+ }
1119
+ /**
1120
+ * When true, this value has an unfinished animation,
1121
+ * which is either active or paused.
1122
+ */
1123
+ get isAnimating() {
1124
+ return j(this);
1125
+ }
1126
+ /**
1127
+ * When true, all current and future animations are paused.
1128
+ */
1129
+ get isPaused() {
1130
+ return ee(this);
1131
+ }
1132
+ /**
1133
+ *
1134
+ *
1135
+ */
1136
+ get isDelayed() {
1137
+ return this._state.delayed;
1138
+ }
1139
+ /** Advance the current animation by a number of milliseconds */
1140
+ advance(e) {
1141
+ let t = !0, i = !1;
1142
+ const n = this.animation;
1143
+ let { toValues: s } = n;
1144
+ const { config: r } = n, a = Ee(n.to);
1145
+ !a && V(n.to) && (s = R(x(n.to))), n.values.forEach((l, m) => {
1146
+ if (l.done) return;
1147
+ const d = (
1148
+ // Animated strings always go from 0 to 1.
1149
+ l.constructor == xe ? 1 : a ? a[m].lastPosition : s[m]
1150
+ );
1151
+ let f = n.immediate, p = d;
1152
+ if (!f) {
1153
+ if (p = l.lastPosition, r.tension <= 0) {
1154
+ l.done = !0;
1155
+ return;
1156
+ }
1157
+ let _ = l.elapsedTime += e;
1158
+ const v = n.fromValues[m], b = l.v0 != null ? l.v0 : l.v0 = o.arr(r.velocity) ? r.velocity[m] : r.velocity;
1159
+ let h;
1160
+ const w = r.precision || (v == d ? 5e-3 : Math.min(1, Math.abs(d - v) * 1e-3));
1161
+ if (o.und(r.duration))
1162
+ if (r.decay) {
1163
+ const y = r.decay === !0 ? 0.998 : r.decay, A = Math.exp(-(1 - y) * _);
1164
+ p = v + b / (1 - y) * (1 - A), f = Math.abs(l.lastPosition - p) <= w, h = b * A;
1165
+ } else {
1166
+ h = l.lastVelocity == null ? b : l.lastVelocity;
1167
+ const y = r.restVelocity || w / 10, A = r.clamp ? 0 : r.bounce, P = !o.und(A), Q = v == d ? l.v0 > 0 : v < d;
1168
+ let I, ye = !1;
1169
+ const k = 1, Y = Math.ceil(e / k);
1170
+ for (let T = 0; T < Y && (I = Math.abs(h) > y, !(!I && (f = Math.abs(d - p) <= w, f))); ++T) {
1171
+ P && (ye = p == d || p > d == Q, ye && (h = -h * A, p = d));
1172
+ const G = -r.tension * 1e-6 * (p - d), H = -r.friction * 1e-3 * h, mi = (G + H) / r.mass;
1173
+ h = h + mi * k, p = p + h * k;
1174
+ }
1175
+ }
1176
+ else {
1177
+ let y = 1;
1178
+ r.duration > 0 && (this._memoizedDuration !== r.duration && (this._memoizedDuration = r.duration, l.durationProgress > 0 && (l.elapsedTime = r.duration * l.durationProgress, _ = l.elapsedTime += e)), y = (r.progress || 0) + _ / this._memoizedDuration, y = y > 1 ? 1 : y < 0 ? 0 : y, l.durationProgress = y), p = v + r.easing(y) * (d - v), h = (p - l.lastPosition) / e, f = y == 1;
1179
+ }
1180
+ l.lastVelocity = h, Number.isNaN(p) && (console.warn("Got NaN while animating:", this), f = !0);
1181
+ }
1182
+ a && !a[m].done && (f = !1), f ? l.done = !0 : t = !1, l.setValue(p, r.round) && (i = !0);
1183
+ });
1184
+ const u = U(this), c = u.getValue();
1185
+ if (t) {
1186
+ const l = x(n.to);
1187
+ (c !== l || i) && !r.decay ? (u.setValue(l), this._onChange(l)) : i && r.decay && this._onChange(c), this._stop();
1188
+ } else i && this._onChange(c);
1189
+ }
1190
+ /** Set the current value, while stopping the current animation */
1191
+ set(e) {
1192
+ return g.batchedUpdates(() => {
1193
+ this._stop(), this._focus(e), this._set(e);
1194
+ }), this;
1195
+ }
1196
+ /**
1197
+ * Freeze the active animation in time, as well as any updates merged
1198
+ * before `resume` is called.
1199
+ */
1200
+ pause() {
1201
+ this._update({ pause: !0 });
1202
+ }
1203
+ /** Resume the animation if paused. */
1204
+ resume() {
1205
+ this._update({ pause: !1 });
1206
+ }
1207
+ /** Skip to the end of the current animation. */
1208
+ finish() {
1209
+ if (j(this)) {
1210
+ const { to: e, config: t } = this.animation;
1211
+ g.batchedUpdates(() => {
1212
+ this._onStart(), t.decay || this._set(e, !1), this._stop();
1213
+ });
1214
+ }
1215
+ return this;
1216
+ }
1217
+ /** Push props into the pending queue. */
1218
+ update(e) {
1219
+ return (this.queue || (this.queue = [])).push(e), this;
1220
+ }
1221
+ start(e, t) {
1222
+ let i;
1223
+ return o.und(e) ? (i = this.queue || [], this.queue = []) : i = [o.obj(e) ? e : { ...t, to: e }], Promise.all(
1224
+ i.map((n) => this._update(n))
1225
+ ).then((n) => ut(this, n));
1226
+ }
1227
+ /**
1228
+ * Stop the current animation, and cancel any delayed updates.
1229
+ *
1230
+ * Pass `true` to call `onRest` with `cancelled: true`.
1231
+ */
1232
+ stop(e) {
1233
+ const { to: t } = this.animation;
1234
+ return this._focus(this.get()), me(this._state, e && this._lastCallId), g.batchedUpdates(() => this._stop(t, e)), this;
1235
+ }
1236
+ /** Restart the animation. */
1237
+ reset() {
1238
+ this._update({ reset: !0 });
1239
+ }
1240
+ /** @internal */
1241
+ eventObserved(e) {
1242
+ e.type == "change" ? this._start() : e.type == "priority" && (this.priority = e.priority + 1);
1243
+ }
1244
+ /**
1245
+ * Parse the `to` and `from` range from the given `props` object.
1246
+ *
1247
+ * This also ensures the initial value is available to animated components
1248
+ * during the render phase.
1249
+ */
1250
+ _prepareNode(e) {
1251
+ const t = this.key || "";
1252
+ let { to: i, from: n } = e;
1253
+ i = o.obj(i) ? i[t] : i, (i == null || Ge(i)) && (i = void 0), n = o.obj(n) ? n[t] : n, n == null && (n = void 0);
1254
+ const s = { to: i, from: n };
1255
+ return Ne(this) || (e.reverse && ([i, n] = [n, i]), n = x(n), o.und(n) ? U(this) || this._set(i) : this._set(n)), s;
1256
+ }
1257
+ /** Every update is processed by this method before merging. */
1258
+ _update({ ...e }, t) {
1259
+ const { key: i, defaultProps: n } = this;
1260
+ e.default && Object.assign(
1261
+ n,
1262
+ ot(
1263
+ e,
1264
+ (a, u) => /^on/.test(u) ? Xt(a, i) : a
1265
+ )
1266
+ ), It(this, e, "onProps"), ie(this, "onProps", e, this);
1267
+ const s = this._prepareNode(e);
1268
+ if (Object.isFrozen(this))
1269
+ throw Error(
1270
+ "Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?"
1271
+ );
1272
+ const r = this._state;
1273
+ return ti(++this._lastCallId, {
1274
+ key: i,
1275
+ props: e,
1276
+ defaultProps: n,
1277
+ state: r,
1278
+ actions: {
1279
+ pause: () => {
1280
+ ee(this) || (xt(this, !0), ne(r.pauseQueue), ie(
1281
+ this,
1282
+ "onPause",
1283
+ C(this, te(this, this.animation.to)),
1284
+ this
1285
+ ));
1286
+ },
1287
+ resume: () => {
1288
+ ee(this) && (xt(this, !1), j(this) && this._resume(), ne(r.resumeQueue), ie(
1289
+ this,
1290
+ "onResume",
1291
+ C(this, te(this, this.animation.to)),
1292
+ this
1293
+ ));
1294
+ },
1295
+ start: this._merge.bind(this, s)
1296
+ }
1297
+ }).then((a) => {
1298
+ if (e.loop && a.finished && !(t && a.noop)) {
1299
+ const u = oi(e);
1300
+ if (u)
1301
+ return this._update(u, !0);
1302
+ }
1303
+ return a;
1304
+ });
1305
+ }
1306
+ /** Merge props into the current animation */
1307
+ _merge(e, t, i) {
1308
+ if (t.cancel)
1309
+ return this.stop(!0), i(Z(this));
1310
+ const n = !o.und(e.to), s = !o.und(e.from);
1311
+ if (n || s)
1312
+ if (t.callId > this._lastToId)
1313
+ this._lastToId = t.callId;
1314
+ else
1315
+ return i(Z(this));
1316
+ const { key: r, defaultProps: a, animation: u } = this, { to: c, from: l } = u;
1317
+ let { to: m = c, from: d = l } = e;
1318
+ s && !n && (!t.default || o.und(m)) && (m = d), t.reverse && ([m, d] = [d, m]);
1319
+ const f = !$(d, l);
1320
+ f && (u.from = d), d = x(d);
1321
+ const p = !$(m, c);
1322
+ p && this._focus(m);
1323
+ const _ = Ge(t.to), { config: v } = u, { decay: b, velocity: h } = v;
1324
+ (n || s) && (v.velocity = 0), t.config && !_ && gn(
1325
+ v,
1326
+ L(t.config, r),
1327
+ // Avoid calling the same "config" prop twice.
1328
+ t.config !== a.config ? L(a.config, r) : void 0
1329
+ );
1330
+ let w = U(this);
1331
+ if (!w || o.und(m))
1332
+ return i(C(this, !0));
1333
+ const y = (
1334
+ // When `reset` is undefined, the `from` prop implies `reset: true`,
1335
+ // except for declarative updates. When `reset` is defined, there
1336
+ // must exist a value to animate from.
1337
+ o.und(t.reset) ? s && !t.default : !o.und(d) && ae(t.reset, r)
1338
+ ), A = y ? d : this.get(), P = he(m), Q = o.num(P) || o.arr(P) || Ce(P), I = !_ && (!Q || ae(a.immediate || t.immediate, r));
1339
+ if (p) {
1340
+ const T = Be(m);
1341
+ if (T !== w.constructor)
1342
+ if (I)
1343
+ w = this._set(P);
1344
+ else
1345
+ throw Error(
1346
+ `Cannot animate between ${w.constructor.name} and ${T.name}, as the "to" prop suggests`
1347
+ );
1348
+ }
1349
+ const ye = w.constructor;
1350
+ let k = V(m), Y = !1;
1351
+ if (!k) {
1352
+ const T = y || !Ne(this) && f;
1353
+ (p || T) && (Y = $(he(A), P), k = !Y), (!$(u.immediate, I) && !I || !$(v.decay, b) || !$(v.velocity, h)) && (k = !0);
1354
+ }
1355
+ if (Y && j(this) && (u.changed && !y ? k = !0 : k || this._stop(c)), !_ && ((k || V(c)) && (u.values = w.getPayload(), u.toValues = V(m) ? null : ye == xe ? [1] : R(P)), u.immediate != I && (u.immediate = I, !I && !y && this._set(c)), k)) {
1356
+ const { onRest: T } = u;
1357
+ S(wn, (H) => It(this, t, H));
1358
+ const G = C(this, te(this, c));
1359
+ ne(this._pendingCalls, G), this._pendingCalls.add(i), u.changed && g.batchedUpdates(() => {
1360
+ var H;
1361
+ u.changed = !y, T == null || T(G, this), y ? L(a.onRest, G) : (H = u.onStart) == null || H.call(u, G, this);
1362
+ });
1363
+ }
1364
+ y && this._set(A), _ ? i(ni(t.to, t, this._state, this)) : k ? this._start() : j(this) && !p ? this._pendingCalls.add(i) : i(ii(A));
1365
+ }
1366
+ /** Update the `animation.to` value, which might be a `FluidValue` */
1367
+ _focus(e) {
1368
+ const t = this.animation;
1369
+ e !== t.to && (mt(this) && this._detach(), t.to = e, mt(this) && this._attach());
1370
+ }
1371
+ _attach() {
1372
+ let e = 0;
1373
+ const { to: t } = this.animation;
1374
+ V(t) && (X(t, this), We(t) && (e = t.priority + 1)), this.priority = e;
1375
+ }
1376
+ _detach() {
1377
+ const { to: e } = this.animation;
1378
+ V(e) && de(e, this);
1379
+ }
1380
+ /**
1381
+ * Update the current value from outside the frameloop,
1382
+ * and return the `Animated` node.
1383
+ */
1384
+ _set(e, t = !0) {
1385
+ const i = x(e);
1386
+ if (!o.und(i)) {
1387
+ const n = U(this);
1388
+ if (!n || !$(i, n.getValue())) {
1389
+ const s = Be(i);
1390
+ !n || n.constructor != s ? at(this, s.create(i)) : n.setValue(i), n && g.batchedUpdates(() => {
1391
+ this._onChange(i, t);
1392
+ });
1393
+ }
1394
+ }
1395
+ return U(this);
1396
+ }
1397
+ _onStart() {
1398
+ const e = this.animation;
1399
+ e.changed || (e.changed = !0, ie(
1400
+ this,
1401
+ "onStart",
1402
+ C(this, te(this, e.to)),
1403
+ this
1404
+ ));
1405
+ }
1406
+ _onChange(e, t) {
1407
+ t || (this._onStart(), L(this.animation.onChange, e, this)), L(this.defaultProps.onChange, e, this), super._onChange(e, t);
1408
+ }
1409
+ // This method resets the animation state (even if already animating) to
1410
+ // ensure the latest from/to range is used, and it also ensures this spring
1411
+ // is added to the frameloop.
1412
+ _start() {
1413
+ const e = this.animation;
1414
+ U(this).reset(x(e.to)), e.immediate || (e.fromValues = e.values.map((t) => t.lastPosition)), j(this) || (Pt(this, !0), ee(this) || this._resume());
1415
+ }
1416
+ _resume() {
1417
+ O.skipAnimation ? this.finish() : Ve.start(this);
1418
+ }
1419
+ /**
1420
+ * Exit the frameloop and notify `onRest` listeners.
1421
+ *
1422
+ * Always wrap `_stop` calls with `batchedUpdates`.
1423
+ */
1424
+ _stop(e, t) {
1425
+ if (j(this)) {
1426
+ Pt(this, !1);
1427
+ const i = this.animation;
1428
+ S(i.values, (s) => {
1429
+ s.done = !0;
1430
+ }), i.toValues && (i.onChange = i.onPause = i.onResume = void 0), ce(this, {
1431
+ type: "idle",
1432
+ parent: this
1433
+ });
1434
+ const n = t ? Z(this.get()) : C(this.get(), te(this, e ?? i.to));
1435
+ ne(this._pendingCalls, n), i.changed && (i.changed = !1, ie(this, "onRest", n, this));
1436
+ }
1437
+ }
1438
+ };
1439
+ function te(e, t) {
1440
+ const i = he(t), n = he(e.get());
1441
+ return $(n, i);
1442
+ }
1443
+ function oi(e, t = e.loop, i = e.to) {
1444
+ const n = L(t);
1445
+ if (n) {
1446
+ const s = n !== !0 && ei(n), r = (s || e).reverse, a = !s || s.reset;
1447
+ return pe({
1448
+ ...e,
1449
+ loop: t,
1450
+ // Avoid updating default props when looping.
1451
+ default: !1,
1452
+ // Never loop the `pause` prop.
1453
+ pause: void 0,
1454
+ // For the "reverse" prop to loop as expected, the "to" prop
1455
+ // must be undefined. The "reverse" prop is ignored when the
1456
+ // "to" prop is an array or function.
1457
+ to: !r || Ge(i) ? i : void 0,
1458
+ // Ignore the "from" prop except on reset.
1459
+ from: a ? e.from : void 0,
1460
+ reset: a,
1461
+ // The "loop" prop can return a "useSpring" props object to
1462
+ // override any of the original props.
1463
+ ...s
1464
+ });
1465
+ }
1466
+ }
1467
+ function pe(e) {
1468
+ const { to: t, from: i } = e = ei(e), n = /* @__PURE__ */ new Set();
1469
+ return o.obj(t) && Rt(t, n), o.obj(i) && Rt(i, n), e.keys = n.size ? Array.from(n) : null, e;
1470
+ }
1471
+ function bn(e) {
1472
+ const t = pe(e);
1473
+ return o.und(t.default) && (t.default = ot(t)), t;
1474
+ }
1475
+ function Rt(e, t) {
1476
+ q(e, (i, n) => i != null && t.add(n));
1477
+ }
1478
+ var wn = [
1479
+ "onStart",
1480
+ "onRest",
1481
+ "onChange",
1482
+ "onPause",
1483
+ "onResume"
1484
+ ];
1485
+ function It(e, t, i) {
1486
+ e.animation[i] = t[i] !== Yt(t, i) ? Xt(t[i], e.key) : void 0;
1487
+ }
1488
+ function ie(e, t, ...i) {
1489
+ var n, s, r, a;
1490
+ (s = (n = e.animation)[t]) == null || s.call(n, ...i), (a = (r = e.defaultProps)[t]) == null || a.call(r, ...i);
1491
+ }
1492
+ var Sn = ["onStart", "onChange", "onRest"], An = 1, Pn = class {
1493
+ constructor(e, t) {
1494
+ this.id = An++, this.springs = {}, this.queue = [], this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._state = {
1495
+ paused: !1,
1496
+ pauseQueue: /* @__PURE__ */ new Set(),
1497
+ resumeQueue: /* @__PURE__ */ new Set(),
1498
+ timeouts: /* @__PURE__ */ new Set()
1499
+ }, this._events = {
1500
+ onStart: /* @__PURE__ */ new Map(),
1501
+ onChange: /* @__PURE__ */ new Map(),
1502
+ onRest: /* @__PURE__ */ new Map()
1503
+ }, this._onFrame = this._onFrame.bind(this), t && (this._flush = t), e && this.start({ default: !0, ...e });
1504
+ }
1505
+ /**
1506
+ * Equals `true` when no spring values are in the frameloop, and
1507
+ * no async animation is currently active.
1508
+ */
1509
+ get idle() {
1510
+ return !this._state.asyncTo && Object.values(this.springs).every((e) => e.idle && !e.isDelayed && !e.isPaused);
1511
+ }
1512
+ get item() {
1513
+ return this._item;
1514
+ }
1515
+ set item(e) {
1516
+ this._item = e;
1517
+ }
1518
+ /** Get the current values of our springs */
1519
+ get() {
1520
+ const e = {};
1521
+ return this.each((t, i) => e[i] = t.get()), e;
1522
+ }
1523
+ /** Set the current values without animating. */
1524
+ set(e) {
1525
+ for (const t in e) {
1526
+ const i = e[t];
1527
+ o.und(i) || this.springs[t].set(i);
1528
+ }
1529
+ }
1530
+ /** Push an update onto the queue of each value. */
1531
+ update(e) {
1532
+ return e && this.queue.push(pe(e)), this;
1533
+ }
1534
+ /**
1535
+ * Start the queued animations for every spring, and resolve the returned
1536
+ * promise once all queued animations have finished or been cancelled.
1537
+ *
1538
+ * When you pass a queue (instead of nothing), that queue is used instead of
1539
+ * the queued animations added with the `update` method, which are left alone.
1540
+ */
1541
+ start(e) {
1542
+ let { queue: t } = this;
1543
+ return e ? t = R(e).map(pe) : this.queue = [], this._flush ? this._flush(this, t) : (fi(this, t), Ke(this, t));
1544
+ }
1545
+ /** @internal */
1546
+ stop(e, t) {
1547
+ if (e !== !!e && (t = e), t) {
1548
+ const i = this.springs;
1549
+ S(R(t), (n) => i[n].stop(!!e));
1550
+ } else
1551
+ me(this._state, this._lastAsyncId), this.each((i) => i.stop(!!e));
1552
+ return this;
1553
+ }
1554
+ /** Freeze the active animation in time */
1555
+ pause(e) {
1556
+ if (o.und(e))
1557
+ this.start({ pause: !0 });
1558
+ else {
1559
+ const t = this.springs;
1560
+ S(R(e), (i) => t[i].pause());
1561
+ }
1562
+ return this;
1563
+ }
1564
+ /** Resume the animation if paused. */
1565
+ resume(e) {
1566
+ if (o.und(e))
1567
+ this.start({ pause: !1 });
1568
+ else {
1569
+ const t = this.springs;
1570
+ S(R(e), (i) => t[i].resume());
1571
+ }
1572
+ return this;
1573
+ }
1574
+ /** Call a function once per spring value */
1575
+ each(e) {
1576
+ q(this.springs, e);
1577
+ }
1578
+ /** @internal Called at the end of every animation frame */
1579
+ _onFrame() {
1580
+ const { onStart: e, onChange: t, onRest: i } = this._events, n = this._active.size > 0, s = this._changed.size > 0;
1581
+ (n && !this._started || s && !this._started) && (this._started = !0, se(e, ([u, c]) => {
1582
+ c.value = this.get(), u(c, this, this._item);
1583
+ }));
1584
+ const r = !n && this._started, a = s || r && i.size ? this.get() : null;
1585
+ s && t.size && se(t, ([u, c]) => {
1586
+ c.value = a, u(c, this, this._item);
1587
+ }), r && (this._started = !1, se(i, ([u, c]) => {
1588
+ c.value = a, u(c, this, this._item);
1589
+ }));
1590
+ }
1591
+ /** @internal */
1592
+ eventObserved(e) {
1593
+ if (e.type == "change")
1594
+ this._changed.add(e.parent), e.idle || this._active.add(e.parent);
1595
+ else if (e.type == "idle")
1596
+ this._active.delete(e.parent);
1597
+ else return;
1598
+ g.onFrame(this._onFrame);
1599
+ }
1600
+ };
1601
+ function Ke(e, t) {
1602
+ return Promise.all(t.map((i) => ui(e, i))).then(
1603
+ (i) => ut(e, i)
1604
+ );
1605
+ }
1606
+ async function ui(e, t, i) {
1607
+ const { keys: n, to: s, from: r, loop: a, onRest: u, onResolve: c } = t, l = o.obj(t.default) && t.default;
1608
+ a && (t.loop = !1), s === !1 && (t.to = null), r === !1 && (t.from = null);
1609
+ const m = o.arr(s) || o.fun(s) ? s : void 0;
1610
+ m ? (t.to = void 0, t.onRest = void 0, l && (l.onRest = void 0)) : S(Sn, (v) => {
1611
+ const b = t[v];
1612
+ if (o.fun(b)) {
1613
+ const h = e._events[v];
1614
+ t[v] = ({ finished: w, cancelled: y }) => {
1615
+ const A = h.get(b);
1616
+ A ? (w || (A.finished = !1), y && (A.cancelled = !0)) : h.set(b, {
1617
+ value: null,
1618
+ finished: w || !1,
1619
+ cancelled: y || !1
1620
+ });
1621
+ }, l && (l[v] = t[v]);
1622
+ }
1623
+ });
1624
+ const d = e._state;
1625
+ t.pause === !d.paused ? (d.paused = t.pause, ne(t.pause ? d.pauseQueue : d.resumeQueue)) : d.paused && (t.pause = !0);
1626
+ const f = (n || Object.keys(e.springs)).map(
1627
+ (v) => e.springs[v].start(t)
1628
+ ), p = t.cancel === !0 || Yt(t, "cancel") === !0;
1629
+ (m || p && d.asyncId) && f.push(
1630
+ ti(++e._lastAsyncId, {
1631
+ props: t,
1632
+ state: d,
1633
+ actions: {
1634
+ pause: Le,
1635
+ resume: Le,
1636
+ start(v, b) {
1637
+ p ? (me(d, e._lastAsyncId), b(Z(e))) : (v.onRest = u, b(
1638
+ ni(
1639
+ m,
1640
+ v,
1641
+ d,
1642
+ e
1643
+ )
1644
+ ));
1645
+ }
1646
+ }
1647
+ })
1648
+ ), d.paused && await new Promise((v) => {
1649
+ d.resumeQueue.add(v);
1650
+ });
1651
+ const _ = ut(e, await Promise.all(f));
1652
+ if (a && _.finished && !(i && _.noop)) {
1653
+ const v = oi(t, a, s);
1654
+ if (v)
1655
+ return fi(e, [v]), ui(e, v, !0);
1656
+ }
1657
+ return c && g.batchedUpdates(() => c(_, e, e.item)), _;
1658
+ }
1659
+ function kt(e, t) {
1660
+ const i = { ...e.springs };
1661
+ return t && S(R(t), (n) => {
1662
+ o.und(n.keys) && (n = pe(n)), o.obj(n.to) || (n = { ...n, to: void 0 }), di(i, n, (s) => ci(s));
1663
+ }), li(e, i), i;
1664
+ }
1665
+ function li(e, t) {
1666
+ q(t, (i, n) => {
1667
+ e.springs[n] || (e.springs[n] = i, X(i, e));
1668
+ });
1669
+ }
1670
+ function ci(e, t) {
1671
+ const i = new _n();
1672
+ return i.key = e, t && X(i, t), i;
1673
+ }
1674
+ function di(e, t, i) {
1675
+ t.keys && S(t.keys, (n) => {
1676
+ (e[n] || (e[n] = i(n)))._prepareNode(t);
1677
+ });
1678
+ }
1679
+ function fi(e, t) {
1680
+ S(t, (i) => {
1681
+ di(e.springs, i, (n) => ci(n, e));
1682
+ });
1683
+ }
1684
+ var xn = Tt.createContext({
1685
+ pause: !1,
1686
+ immediate: !1
1687
+ }), Rn = () => {
1688
+ const e = [], t = function(n) {
1689
+ Zi();
1690
+ const s = [];
1691
+ return S(e, (r, a) => {
1692
+ if (o.und(n))
1693
+ s.push(r.start());
1694
+ else {
1695
+ const u = i(n, r, a);
1696
+ u && s.push(r.start(u));
1697
+ }
1698
+ }), s;
1699
+ };
1700
+ t.current = e, t.add = function(n) {
1701
+ e.includes(n) || e.push(n);
1702
+ }, t.delete = function(n) {
1703
+ const s = e.indexOf(n);
1704
+ ~s && e.splice(s, 1);
1705
+ }, t.pause = function() {
1706
+ return S(e, (n) => n.pause(...arguments)), this;
1707
+ }, t.resume = function() {
1708
+ return S(e, (n) => n.resume(...arguments)), this;
1709
+ }, t.set = function(n) {
1710
+ S(e, (s, r) => {
1711
+ const a = o.fun(n) ? n(r, s) : n;
1712
+ a && s.set(a);
1713
+ });
1714
+ }, t.start = function(n) {
1715
+ const s = [];
1716
+ return S(e, (r, a) => {
1717
+ if (o.und(n))
1718
+ s.push(r.start());
1719
+ else {
1720
+ const u = this._getProps(n, r, a);
1721
+ u && s.push(r.start(u));
1722
+ }
1723
+ }), s;
1724
+ }, t.stop = function() {
1725
+ return S(e, (n) => n.stop(...arguments)), this;
1726
+ }, t.update = function(n) {
1727
+ return S(e, (s, r) => s.update(this._getProps(n, s, r))), this;
1728
+ };
1729
+ const i = function(n, s, r) {
1730
+ return o.fun(n) ? n(r, s) : n;
1731
+ };
1732
+ return t._getProps = i, t;
1733
+ };
1734
+ function In(e, t, i) {
1735
+ const n = o.fun(t) && t;
1736
+ n && !i && (i = []);
1737
+ const s = _e(
1738
+ () => n || arguments.length == 3 ? Rn() : void 0,
1739
+ []
1740
+ ), r = M(0), a = Gt(), u = _e(
1741
+ () => ({
1742
+ ctrls: [],
1743
+ queue: [],
1744
+ flush(h, w) {
1745
+ const y = kt(h, w);
1746
+ return r.current > 0 && !u.queue.length && !Object.keys(y).some((P) => !h.springs[P]) ? Ke(h, w) : new Promise((P) => {
1747
+ li(h, y), u.queue.push(() => {
1748
+ P(Ke(h, w));
1749
+ }), a();
1750
+ });
1751
+ }
1752
+ }),
1753
+ []
1754
+ ), c = M([...u.ctrls]), l = M([]), m = gt(e) || 0;
1755
+ _e(() => {
1756
+ S(c.current.slice(e, m), (h) => {
1757
+ fn(h, s), h.stop(!0);
1758
+ }), c.current.length = e, d(m, e);
1759
+ }, [e]), _e(() => {
1760
+ d(0, Math.min(m, e));
1761
+ }, i);
1762
+ function d(h, w) {
1763
+ for (let y = h; y < w; y++) {
1764
+ const A = c.current[y] || (c.current[y] = new Pn(null, u.flush)), P = n ? n(y, A) : t[y];
1765
+ P && (l.current[y] = bn(P));
1766
+ }
1767
+ }
1768
+ const f = c.current.map(
1769
+ (h, w) => kt(h, l.current[w])
1770
+ ), p = _i(xn), _ = gt(p), v = p !== _ && dn(p);
1771
+ rt(() => {
1772
+ r.current++, u.ctrls = c.current;
1773
+ const { queue: h } = u;
1774
+ h.length && (u.queue = [], S(h, (w) => w())), S(c.current, (w, y) => {
1775
+ s == null || s.add(w), v && w.start({ default: p });
1776
+ const A = l.current[y];
1777
+ A && (hn(w, A.ref), w.ref ? w.queue.push(A) : w.start(A));
1778
+ });
1779
+ }), Ht(() => () => {
1780
+ S(u.ctrls, (h) => h.stop(!0));
1781
+ });
1782
+ const b = f.map((h) => ({ ...h }));
1783
+ return s ? [b, s] : b;
1784
+ }
1785
+ function Ln(e, t) {
1786
+ const i = o.fun(e), [[n], s] = In(
1787
+ 1,
1788
+ i ? e : [e],
1789
+ i ? [] : t
1790
+ );
1791
+ return i || arguments.length == 2 ? [n, s] : n;
1792
+ }
1793
+ var kn = class extends lt {
1794
+ constructor(e, t) {
1795
+ super(), this.source = e, this.idle = !0, this._active = /* @__PURE__ */ new Set(), this.calc = ue(...t);
1796
+ const i = this._get(), n = Be(i);
1797
+ at(this, n.create(i));
1798
+ }
1799
+ advance(e) {
1800
+ const t = this._get(), i = this.get();
1801
+ $(t, i) || (U(this).setValue(t), this._onChange(t, this.idle)), !this.idle && Vt(this._active) && ze(this);
1802
+ }
1803
+ _get() {
1804
+ const e = o.arr(this.source) ? this.source.map(x) : R(x(this.source));
1805
+ return this.calc(...e);
1806
+ }
1807
+ _start() {
1808
+ this.idle && !Vt(this._active) && (this.idle = !1, S(Ee(this), (e) => {
1809
+ e.done = !1;
1810
+ }), O.skipAnimation ? (g.batchedUpdates(() => this.advance()), ze(this)) : Ve.start(this));
1811
+ }
1812
+ // Observe our sources only when we're observed.
1813
+ _attach() {
1814
+ let e = 1;
1815
+ S(R(this.source), (t) => {
1816
+ V(t) && X(t, this), We(t) && (t.idle || this._active.add(t), e = Math.max(e, t.priority + 1));
1817
+ }), this.priority = e, this._start();
1818
+ }
1819
+ // Stop observing our sources once we have no observers.
1820
+ _detach() {
1821
+ S(R(this.source), (e) => {
1822
+ V(e) && de(e, this);
1823
+ }), this._active.clear(), ze(this);
1824
+ }
1825
+ /** @internal */
1826
+ eventObserved(e) {
1827
+ e.type == "change" ? e.idle ? this.advance() : (this._active.add(e.parent), this._start()) : e.type == "idle" ? this._active.delete(e.parent) : e.type == "priority" && (this.priority = R(this.source).reduce(
1828
+ (t, i) => Math.max(t, (We(i) ? i.priority : 0) + 1),
1829
+ 0
1830
+ ));
1831
+ }
1832
+ };
1833
+ function Vn(e) {
1834
+ return e.idle !== !1;
1835
+ }
1836
+ function Vt(e) {
1837
+ return !e.size || Array.from(e).every(Vn);
1838
+ }
1839
+ function ze(e) {
1840
+ e.idle || (e.idle = !0, S(Ee(e), (t) => {
1841
+ t.done = !0;
1842
+ }), ce(e, {
1843
+ type: "idle",
1844
+ parent: e
1845
+ }));
1846
+ }
1847
+ O.assign({
1848
+ createStringInterpolator: Mt,
1849
+ to: (e, t) => new kn(e, t)
1850
+ });
1851
+ var hi = /^--/;
1852
+ function Fn(e, t) {
1853
+ return t == null || typeof t == "boolean" || t === "" ? "" : typeof t == "number" && t !== 0 && !hi.test(e) && !(oe.hasOwnProperty(e) && oe[e]) ? t + "px" : ("" + t).trim();
1854
+ }
1855
+ var Ft = {};
1856
+ function Tn(e, t) {
1857
+ if (!e.nodeType || !e.setAttribute)
1858
+ return !1;
1859
+ const i = e.nodeName === "filter" || e.parentNode && e.parentNode.nodeName === "filter", {
1860
+ className: n,
1861
+ style: s,
1862
+ children: r,
1863
+ scrollTop: a,
1864
+ scrollLeft: u,
1865
+ viewBox: c,
1866
+ ...l
1867
+ } = t, m = Object.values(l), d = Object.keys(l).map(
1868
+ (f) => i || e.hasAttribute(f) ? f : Ft[f] || (Ft[f] = f.replace(
1869
+ /([A-Z])/g,
1870
+ // Attributes are written in dash case
1871
+ (p) => "-" + p.toLowerCase()
1872
+ ))
1873
+ );
1874
+ r !== void 0 && (e.textContent = r);
1875
+ for (const f in s)
1876
+ if (s.hasOwnProperty(f)) {
1877
+ const p = Fn(f, s[f]);
1878
+ hi.test(f) ? e.style.setProperty(f, p) : e.style[f] = p;
1879
+ }
1880
+ d.forEach((f, p) => {
1881
+ e.setAttribute(f, m[p]);
1882
+ }), n !== void 0 && (e.className = n), a !== void 0 && (e.scrollTop = a), u !== void 0 && (e.scrollLeft = u), c !== void 0 && e.setAttribute("viewBox", c);
1883
+ }
1884
+ var oe = {
1885
+ animationIterationCount: !0,
1886
+ borderImageOutset: !0,
1887
+ borderImageSlice: !0,
1888
+ borderImageWidth: !0,
1889
+ boxFlex: !0,
1890
+ boxFlexGroup: !0,
1891
+ boxOrdinalGroup: !0,
1892
+ columnCount: !0,
1893
+ columns: !0,
1894
+ flex: !0,
1895
+ flexGrow: !0,
1896
+ flexPositive: !0,
1897
+ flexShrink: !0,
1898
+ flexNegative: !0,
1899
+ flexOrder: !0,
1900
+ gridRow: !0,
1901
+ gridRowEnd: !0,
1902
+ gridRowSpan: !0,
1903
+ gridRowStart: !0,
1904
+ gridColumn: !0,
1905
+ gridColumnEnd: !0,
1906
+ gridColumnSpan: !0,
1907
+ gridColumnStart: !0,
1908
+ fontWeight: !0,
1909
+ lineClamp: !0,
1910
+ lineHeight: !0,
1911
+ opacity: !0,
1912
+ order: !0,
1913
+ orphans: !0,
1914
+ tabSize: !0,
1915
+ widows: !0,
1916
+ zIndex: !0,
1917
+ zoom: !0,
1918
+ // SVG-related properties
1919
+ fillOpacity: !0,
1920
+ floodOpacity: !0,
1921
+ stopOpacity: !0,
1922
+ strokeDasharray: !0,
1923
+ strokeDashoffset: !0,
1924
+ strokeMiterlimit: !0,
1925
+ strokeOpacity: !0,
1926
+ strokeWidth: !0
1927
+ }, Cn = (e, t) => e + t.charAt(0).toUpperCase() + t.substring(1), En = ["Webkit", "Ms", "Moz", "O"];
1928
+ oe = Object.keys(oe).reduce((e, t) => (En.forEach((i) => e[Cn(i, t)] = e[t]), e), oe);
1929
+ var On = /^(matrix|translate|scale|rotate|skew)/, Un = /^(translate)/, qn = /^(rotate|skew)/, De = (e, t) => o.num(e) && e !== 0 ? e + t : e, Se = (e, t) => o.arr(e) ? e.every((i) => Se(i, t)) : o.num(e) ? e === t : parseFloat(e) === t, $n = class extends Ue {
1930
+ constructor({ x: e, y: t, z: i, ...n }) {
1931
+ const s = [], r = [];
1932
+ (e || t || i) && (s.push([e || 0, t || 0, i || 0]), r.push((a) => [
1933
+ `translate3d(${a.map((u) => De(u, "px")).join(",")})`,
1934
+ // prettier-ignore
1935
+ Se(a, 0)
1936
+ ])), q(n, (a, u) => {
1937
+ if (u === "transform")
1938
+ s.push([a || ""]), r.push((c) => [c, c === ""]);
1939
+ else if (On.test(u)) {
1940
+ if (delete n[u], o.und(a)) return;
1941
+ const c = Un.test(u) ? "px" : qn.test(u) ? "deg" : "";
1942
+ s.push(R(a)), r.push(
1943
+ u === "rotate3d" ? ([l, m, d, f]) => [
1944
+ `rotate3d(${l},${m},${d},${De(f, c)})`,
1945
+ Se(f, 0)
1946
+ ] : (l) => [
1947
+ `${u}(${l.map((m) => De(m, c)).join(",")})`,
1948
+ Se(l, u.startsWith("scale") ? 1 : 0)
1949
+ ]
1950
+ );
1951
+ }
1952
+ }), s.length && (n.transform = new jn(s, r)), super(n);
1953
+ }
1954
+ }, jn = class extends Dt {
1955
+ constructor(e, t) {
1956
+ super(), this.inputs = e, this.transforms = t, this._value = null;
1957
+ }
1958
+ get() {
1959
+ return this._value || (this._value = this._get());
1960
+ }
1961
+ _get() {
1962
+ let e = "", t = !0;
1963
+ return S(this.inputs, (i, n) => {
1964
+ const s = x(i[0]), [r, a] = this.transforms[n](
1965
+ o.arr(s) ? s : i.map(x)
1966
+ );
1967
+ e += " " + r, t = t && a;
1968
+ }), t ? "none" : e;
1969
+ }
1970
+ // Start observing our inputs once we have an observer.
1971
+ observerAdded(e) {
1972
+ e == 1 && S(
1973
+ this.inputs,
1974
+ (t) => S(
1975
+ t,
1976
+ (i) => V(i) && X(i, this)
1977
+ )
1978
+ );
1979
+ }
1980
+ // Stop observing our inputs once we have no observers.
1981
+ observerRemoved(e) {
1982
+ e == 0 && S(
1983
+ this.inputs,
1984
+ (t) => S(
1985
+ t,
1986
+ (i) => V(i) && de(i, this)
1987
+ )
1988
+ );
1989
+ }
1990
+ eventObserved(e) {
1991
+ e.type == "change" && (this._value = null), ce(this, e);
1992
+ }
1993
+ }, Nn = [
1994
+ "a",
1995
+ "abbr",
1996
+ "address",
1997
+ "area",
1998
+ "article",
1999
+ "aside",
2000
+ "audio",
2001
+ "b",
2002
+ "base",
2003
+ "bdi",
2004
+ "bdo",
2005
+ "big",
2006
+ "blockquote",
2007
+ "body",
2008
+ "br",
2009
+ "button",
2010
+ "canvas",
2011
+ "caption",
2012
+ "cite",
2013
+ "code",
2014
+ "col",
2015
+ "colgroup",
2016
+ "data",
2017
+ "datalist",
2018
+ "dd",
2019
+ "del",
2020
+ "details",
2021
+ "dfn",
2022
+ "dialog",
2023
+ "div",
2024
+ "dl",
2025
+ "dt",
2026
+ "em",
2027
+ "embed",
2028
+ "fieldset",
2029
+ "figcaption",
2030
+ "figure",
2031
+ "footer",
2032
+ "form",
2033
+ "h1",
2034
+ "h2",
2035
+ "h3",
2036
+ "h4",
2037
+ "h5",
2038
+ "h6",
2039
+ "head",
2040
+ "header",
2041
+ "hgroup",
2042
+ "hr",
2043
+ "html",
2044
+ "i",
2045
+ "iframe",
2046
+ "img",
2047
+ "input",
2048
+ "ins",
2049
+ "kbd",
2050
+ "keygen",
2051
+ "label",
2052
+ "legend",
2053
+ "li",
2054
+ "link",
2055
+ "main",
2056
+ "map",
2057
+ "mark",
2058
+ "menu",
2059
+ "menuitem",
2060
+ "meta",
2061
+ "meter",
2062
+ "nav",
2063
+ "noscript",
2064
+ "object",
2065
+ "ol",
2066
+ "optgroup",
2067
+ "option",
2068
+ "output",
2069
+ "p",
2070
+ "param",
2071
+ "picture",
2072
+ "pre",
2073
+ "progress",
2074
+ "q",
2075
+ "rp",
2076
+ "rt",
2077
+ "ruby",
2078
+ "s",
2079
+ "samp",
2080
+ "script",
2081
+ "section",
2082
+ "select",
2083
+ "small",
2084
+ "source",
2085
+ "span",
2086
+ "strong",
2087
+ "style",
2088
+ "sub",
2089
+ "summary",
2090
+ "sup",
2091
+ "table",
2092
+ "tbody",
2093
+ "td",
2094
+ "textarea",
2095
+ "tfoot",
2096
+ "th",
2097
+ "thead",
2098
+ "time",
2099
+ "title",
2100
+ "tr",
2101
+ "track",
2102
+ "u",
2103
+ "ul",
2104
+ "var",
2105
+ "video",
2106
+ "wbr",
2107
+ // SVG
2108
+ "circle",
2109
+ "clipPath",
2110
+ "defs",
2111
+ "ellipse",
2112
+ "foreignObject",
2113
+ "g",
2114
+ "image",
2115
+ "line",
2116
+ "linearGradient",
2117
+ "mask",
2118
+ "path",
2119
+ "pattern",
2120
+ "polygon",
2121
+ "polyline",
2122
+ "radialGradient",
2123
+ "rect",
2124
+ "stop",
2125
+ "svg",
2126
+ "text",
2127
+ "tspan"
2128
+ ];
2129
+ O.assign({
2130
+ batchedUpdates: bi,
2131
+ createStringInterpolator: Mt,
2132
+ colors: ki
2133
+ });
2134
+ var zn = an(Nn, {
2135
+ applyAnimatedValues: Tn,
2136
+ createAnimatedStyle: (e) => new $n(e),
2137
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2138
+ getComponentProps: ({ scrollTop: e, scrollLeft: t, ...i }) => i
2139
+ }), Mn = zn.animated;
2140
+ export {
2141
+ Mn as a,
2142
+ zi as e,
2143
+ Ln as u
2144
+ };