@servicetitan/anvil2 1.4.1 → 1.4.2

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 (633) hide show
  1. package/Alert-BULbyuJn-DqOjuyVU.js +90 -0
  2. package/{Alert-BULbyuJn-6bc0372f.js.map → Alert-BULbyuJn-DqOjuyVU.js.map} +1 -1
  3. package/Alert-BULbyuJn-DtcpE2Su.cjs +2 -0
  4. package/{Alert-BULbyuJn-85b8cba4.cjs.map → Alert-BULbyuJn-DtcpE2Su.cjs.map} +1 -1
  5. package/Alert-D_69_gcf.cjs +2 -0
  6. package/Alert-D_69_gcf.cjs.map +1 -0
  7. package/Alert-JeOimQWm.js +21 -0
  8. package/Alert-JeOimQWm.js.map +1 -0
  9. package/Alert.cjs +1 -1
  10. package/Alert.cjs.map +1 -1
  11. package/Alert.js +3 -19
  12. package/Alert.js.map +1 -1
  13. package/Announcement-IlD6OmM0.cjs +2 -0
  14. package/Announcement-IlD6OmM0.cjs.map +1 -0
  15. package/Announcement-QfqrN5aB.js +104 -0
  16. package/Announcement-QfqrN5aB.js.map +1 -0
  17. package/Announcement.cjs +1 -1
  18. package/Announcement.cjs.map +1 -1
  19. package/Announcement.js +3 -103
  20. package/Announcement.js.map +1 -1
  21. package/AnvilProvider.cjs +1 -1
  22. package/AnvilProvider.js +1 -1
  23. package/Avatar-BDwEQ8hH.cjs +2 -0
  24. package/Avatar-BDwEQ8hH.cjs.map +1 -0
  25. package/Avatar-BFOOEO8X.js +128 -0
  26. package/Avatar-BFOOEO8X.js.map +1 -0
  27. package/Avatar.cjs +1 -1
  28. package/Avatar.cjs.map +1 -1
  29. package/Avatar.js +4 -128
  30. package/Avatar.js.map +1 -1
  31. package/Badge-DWw7IIKq.js +49 -0
  32. package/Badge-DWw7IIKq.js.map +1 -0
  33. package/Badge-DxxLTYx9.cjs +2 -0
  34. package/Badge-DxxLTYx9.cjs.map +1 -0
  35. package/Badge.cjs +1 -1
  36. package/Badge.cjs.map +1 -1
  37. package/Badge.js +3 -48
  38. package/Badge.js.map +1 -1
  39. package/Button-DYLXgQSy.cjs +2 -0
  40. package/Button-DYLXgQSy.cjs.map +1 -0
  41. package/Button-L7SXWFDV.js +25 -0
  42. package/Button-L7SXWFDV.js.map +1 -0
  43. package/Button.cjs +1 -1
  44. package/Button.cjs.map +1 -1
  45. package/Button.js +3 -23
  46. package/Button.js.map +1 -1
  47. package/ButtonCompound-Bi2-W4up.js +23 -0
  48. package/ButtonCompound-Bi2-W4up.js.map +1 -0
  49. package/ButtonCompound-CVUEA-bx.cjs +2 -0
  50. package/ButtonCompound-CVUEA-bx.cjs.map +1 -0
  51. package/ButtonCompound.cjs +1 -1
  52. package/ButtonCompound.cjs.map +1 -1
  53. package/ButtonCompound.js +3 -21
  54. package/ButtonCompound.js.map +1 -1
  55. package/ButtonLink-Cy45uV3f.cjs +2 -0
  56. package/ButtonLink-Cy45uV3f.cjs.map +1 -0
  57. package/ButtonLink-VjKaxm0L.js +26 -0
  58. package/ButtonLink-VjKaxm0L.js.map +1 -0
  59. package/ButtonLink.cjs +1 -1
  60. package/ButtonLink.cjs.map +1 -1
  61. package/ButtonLink.js +3 -24
  62. package/ButtonLink.js.map +1 -1
  63. package/ButtonToggle-BrPAceZx.cjs +2 -0
  64. package/ButtonToggle-BrPAceZx.cjs.map +1 -0
  65. package/ButtonToggle-D6dIggMM.js +25 -0
  66. package/ButtonToggle-D6dIggMM.js.map +1 -0
  67. package/ButtonToggle-uOhiLjZh-BfKVd23q.cjs +2 -0
  68. package/{ButtonToggle-uOhiLjZh-7f18dd4f.cjs.map → ButtonToggle-uOhiLjZh-BfKVd23q.cjs.map} +1 -1
  69. package/{ButtonToggle-uOhiLjZh-d38c2b9a.js → ButtonToggle-uOhiLjZh-Glk0YZBt.js} +69 -70
  70. package/{ButtonToggle-uOhiLjZh-d38c2b9a.js.map → ButtonToggle-uOhiLjZh-Glk0YZBt.js.map} +1 -1
  71. package/ButtonToggle.cjs +1 -1
  72. package/ButtonToggle.cjs.map +1 -1
  73. package/ButtonToggle.js +3 -23
  74. package/ButtonToggle.js.map +1 -1
  75. package/Calendar-CwhnJB5t.js +5783 -0
  76. package/Calendar-CwhnJB5t.js.map +1 -0
  77. package/Calendar-DRDZGdY3.cjs +2 -0
  78. package/Calendar-DRDZGdY3.cjs.map +1 -0
  79. package/Calendar.cjs +1 -1
  80. package/Calendar.cjs.map +1 -1
  81. package/Calendar.js +7 -5812
  82. package/Calendar.js.map +1 -1
  83. package/Card-CP6A2pl4.js +53 -0
  84. package/Card-CP6A2pl4.js.map +1 -0
  85. package/Card-gCXNp8nX.cjs +2 -0
  86. package/Card-gCXNp8nX.cjs.map +1 -0
  87. package/Card.cjs +1 -1
  88. package/Card.cjs.map +1 -1
  89. package/Card.js +3 -52
  90. package/Card.js.map +1 -1
  91. package/Checkbox-Bac2nQzq-B0QfJX4j.cjs +2 -0
  92. package/{Checkbox-Bac2nQzq-03b67a48.cjs.map → Checkbox-Bac2nQzq-B0QfJX4j.cjs.map} +1 -1
  93. package/{Checkbox-Bac2nQzq-bbc3e1a5.js → Checkbox-Bac2nQzq-Cgv2fvTw.js} +27 -28
  94. package/{Checkbox-Bac2nQzq-bbc3e1a5.js.map → Checkbox-Bac2nQzq-Cgv2fvTw.js.map} +1 -1
  95. package/Checkbox-C47xqAOJ.cjs +2 -0
  96. package/Checkbox-C47xqAOJ.cjs.map +1 -0
  97. package/Checkbox-CgbabMX0.js +29 -0
  98. package/Checkbox-CgbabMX0.js.map +1 -0
  99. package/Checkbox.cjs +1 -1
  100. package/Checkbox.cjs.map +1 -1
  101. package/Checkbox.js +4 -27
  102. package/Checkbox.js.map +1 -1
  103. package/Chip-BFHfEIaC.cjs +2 -0
  104. package/Chip-BFHfEIaC.cjs.map +1 -0
  105. package/Chip-BVUDQYeX-BOPqql7F.cjs +2 -0
  106. package/{Chip-BVUDQYeX-5eb1e24c.cjs.map → Chip-BVUDQYeX-BOPqql7F.cjs.map} +1 -1
  107. package/{Chip-BVUDQYeX-4690b0bb.js → Chip-BVUDQYeX-yyDtbgnF.js} +24 -25
  108. package/{Chip-BVUDQYeX-4690b0bb.js.map → Chip-BVUDQYeX-yyDtbgnF.js.map} +1 -1
  109. package/Chip-tEtfL-sa.js +18 -0
  110. package/Chip-tEtfL-sa.js.map +1 -0
  111. package/Chip.cjs +1 -1
  112. package/Chip.cjs.map +1 -1
  113. package/Chip.js +3 -16
  114. package/Chip.js.map +1 -1
  115. package/Combobox-CZ4F6ltk.js +4167 -0
  116. package/Combobox-CZ4F6ltk.js.map +1 -0
  117. package/Combobox-CasGz9XO.cjs +42 -0
  118. package/Combobox-CasGz9XO.cjs.map +1 -0
  119. package/Combobox.cjs +1 -41
  120. package/Combobox.cjs.map +1 -1
  121. package/Combobox.css +1 -0
  122. package/Combobox.js +9 -4182
  123. package/Combobox.js.map +1 -1
  124. package/Details-Co3AewyC.js +158 -0
  125. package/Details-Co3AewyC.js.map +1 -0
  126. package/Details-ZNq5IaAy.cjs +2 -0
  127. package/Details-ZNq5IaAy.cjs.map +1 -0
  128. package/Details.cjs +1 -1
  129. package/Details.cjs.map +1 -1
  130. package/Details.js +5 -157
  131. package/Details.js.map +1 -1
  132. package/Dialog-CG-wbEyw.cjs +2 -0
  133. package/Dialog-CG-wbEyw.cjs.map +1 -0
  134. package/Dialog-Cry6xVIB.js +57 -0
  135. package/Dialog-Cry6xVIB.js.map +1 -0
  136. package/{Dialog-LF_eUywW-1b46959f.js → Dialog-LF_eUywW-B10H8cDN.js} +36 -40
  137. package/{Dialog-LF_eUywW-1b46959f.js.map → Dialog-LF_eUywW-B10H8cDN.js.map} +1 -1
  138. package/Dialog-LF_eUywW-erqPCF5m.cjs +2 -0
  139. package/{Dialog-LF_eUywW-bdbb253d.cjs.map → Dialog-LF_eUywW-erqPCF5m.cjs.map} +1 -1
  140. package/Dialog.cjs +1 -1
  141. package/Dialog.cjs.map +1 -1
  142. package/Dialog.js +7 -55
  143. package/Dialog.js.map +1 -1
  144. package/Divider-4Fewd-uO.cjs +2 -0
  145. package/Divider-4Fewd-uO.cjs.map +1 -0
  146. package/Divider-DR4ofzvR.js +77 -0
  147. package/Divider-DR4ofzvR.js.map +1 -0
  148. package/Divider.cjs +1 -1
  149. package/Divider.cjs.map +1 -1
  150. package/Divider.js +3 -77
  151. package/Divider.js.map +1 -1
  152. package/Drawer-BCciOZWo.js +252 -0
  153. package/Drawer-BCciOZWo.js.map +1 -0
  154. package/Drawer-uwlBIgLN.cjs +2 -0
  155. package/Drawer-uwlBIgLN.cjs.map +1 -0
  156. package/Drawer.cjs +1 -1
  157. package/Drawer.cjs.map +1 -1
  158. package/Drawer.js +7 -253
  159. package/Drawer.js.map +1 -1
  160. package/Flex-BTesi1i4.cjs +2 -0
  161. package/Flex-BTesi1i4.cjs.map +1 -0
  162. package/{Flex-D-uYVS9I-8b9c305e.js → Flex-D-uYVS9I-0ycvf8JF.js} +10 -11
  163. package/{Flex-D-uYVS9I-8b9c305e.js.map → Flex-D-uYVS9I-0ycvf8JF.js.map} +1 -1
  164. package/Flex-D-uYVS9I-TzzE4xHJ.cjs +2 -0
  165. package/{Flex-D-uYVS9I-b172b22b.cjs.map → Flex-D-uYVS9I-TzzE4xHJ.cjs.map} +1 -1
  166. package/Flex-DhbcOtER.js +8 -0
  167. package/Flex-DhbcOtER.js.map +1 -0
  168. package/Flex.cjs +1 -1
  169. package/Flex.cjs.map +1 -1
  170. package/Flex.js +3 -6
  171. package/Flex.js.map +1 -1
  172. package/Grid-Sm16wJN3.js +91 -0
  173. package/Grid-Sm16wJN3.js.map +1 -0
  174. package/Grid-hgEPwdMM.cjs +2 -0
  175. package/Grid-hgEPwdMM.cjs.map +1 -0
  176. package/Grid.cjs +1 -1
  177. package/Grid.cjs.map +1 -1
  178. package/Grid.js +3 -90
  179. package/Grid.js.map +1 -1
  180. package/HammerProvider-CWIhk1CR-C9q7tn1p.cjs +5 -0
  181. package/HammerProvider-CWIhk1CR-C9q7tn1p.cjs.map +1 -0
  182. package/{index-e38aed53.js → HammerProvider-CWIhk1CR-D4ToJaAz.js} +130 -157
  183. package/HammerProvider-CWIhk1CR-D4ToJaAz.js.map +1 -0
  184. package/{Helper-CicCRgpB-584bc8e1.js → Helper-CicCRgpB-CRl7ybcQ.js} +9 -10
  185. package/{Helper-CicCRgpB-584bc8e1.js.map → Helper-CicCRgpB-CRl7ybcQ.js.map} +1 -1
  186. package/Helper-CicCRgpB-P-DtzpXg.cjs +2 -0
  187. package/{Helper-CicCRgpB-cc748e80.cjs.map → Helper-CicCRgpB-P-DtzpXg.cjs.map} +1 -1
  188. package/Icon-BcLI32jH-CZUwsst4.cjs +2 -0
  189. package/{Icon-BcLI32jH-090788b5.cjs.map → Icon-BcLI32jH-CZUwsst4.cjs.map} +1 -1
  190. package/Icon-BcLI32jH-Dq2p5h4f.js +47 -0
  191. package/{Icon-BcLI32jH-6c61a1d4.js.map → Icon-BcLI32jH-Dq2p5h4f.js.map} +1 -1
  192. package/Icon-BgtpOVhD.js +10 -0
  193. package/Icon-BgtpOVhD.js.map +1 -0
  194. package/Icon-BsM86ff0.cjs +2 -0
  195. package/Icon-BsM86ff0.cjs.map +1 -0
  196. package/Icon.cjs +1 -1
  197. package/Icon.cjs.map +1 -1
  198. package/Icon.js +3 -8
  199. package/Icon.js.map +1 -1
  200. package/InputMask-CDk4133D.js +125 -0
  201. package/InputMask-CDk4133D.js.map +1 -0
  202. package/InputMask-ygiupqo0.cjs +2 -0
  203. package/InputMask-ygiupqo0.cjs.map +1 -0
  204. package/InputMask.cjs +1 -1
  205. package/InputMask.cjs.map +1 -1
  206. package/InputMask.js +3 -123
  207. package/InputMask.js.map +1 -1
  208. package/Label-CkY8ldc9-Bo6kvWpn.cjs +2 -0
  209. package/{Label-CkY8ldc9-f9a4ff73.cjs.map → Label-CkY8ldc9-Bo6kvWpn.cjs.map} +1 -1
  210. package/{Label-CkY8ldc9-c896ed38.js → Label-CkY8ldc9-D2wJaQlN.js} +12 -13
  211. package/{Label-CkY8ldc9-c896ed38.js.map → Label-CkY8ldc9-D2wJaQlN.js.map} +1 -1
  212. package/Layout-B2yAER6P.js +141 -0
  213. package/Layout-B2yAER6P.js.map +1 -0
  214. package/Layout-DX6uXo_t.cjs +2 -0
  215. package/Layout-DX6uXo_t.cjs.map +1 -0
  216. package/Layout.cjs +1 -1
  217. package/Layout.cjs.map +1 -1
  218. package/Layout.js +5 -140
  219. package/Layout.js.map +1 -1
  220. package/{index-17ecb2bb.js → Link-BbiA85bl-BAi5qDoN.js} +20 -21
  221. package/Link-BbiA85bl-BAi5qDoN.js.map +1 -0
  222. package/Link-BbiA85bl-BwWdpg2U.cjs +2 -0
  223. package/Link-BbiA85bl-BwWdpg2U.cjs.map +1 -0
  224. package/Link-C3a2G6_I.js +23 -0
  225. package/Link-C3a2G6_I.js.map +1 -0
  226. package/Link-v2erQ9Rm.cjs +2 -0
  227. package/Link-v2erQ9Rm.cjs.map +1 -0
  228. package/Link.cjs +1 -1
  229. package/Link.cjs.map +1 -1
  230. package/Link.js +3 -21
  231. package/Link.js.map +1 -1
  232. package/ListView-BaOIPjv3.cjs +2 -0
  233. package/ListView-BaOIPjv3.cjs.map +1 -0
  234. package/ListView-Cqp9QcP2.js +416 -0
  235. package/ListView-Cqp9QcP2.js.map +1 -0
  236. package/ListView.cjs +1 -1
  237. package/ListView.cjs.map +1 -1
  238. package/ListView.js +5 -419
  239. package/ListView.js.map +1 -1
  240. package/ListView.module-Hib8oMK_-D1tjyIVv.js +10 -0
  241. package/{ListView.module-Hib8oMK_-e8806d56.js.map → ListView.module-Hib8oMK_-D1tjyIVv.js.map} +1 -1
  242. package/ListView.module-Hib8oMK_-DpNO6Zxm.cjs +2 -0
  243. package/{ListView.module-Hib8oMK_-eb6a2b5b.cjs.map → ListView.module-Hib8oMK_-DpNO6Zxm.cjs.map} +1 -1
  244. package/Listbox-C316Nb3v.js +409 -0
  245. package/Listbox-C316Nb3v.js.map +1 -0
  246. package/Listbox-CjuJ_ngQ.cjs +2 -0
  247. package/Listbox-CjuJ_ngQ.cjs.map +1 -0
  248. package/Listbox.cjs +1 -1
  249. package/Listbox.cjs.map +1 -1
  250. package/Listbox.js +5 -409
  251. package/Listbox.js.map +1 -1
  252. package/Listbox.module-6bX97NDI-KQUI3vJl.cjs +2 -0
  253. package/{Listbox.module-6bX97NDI-d18843c8.cjs.map → Listbox.module-6bX97NDI-KQUI3vJl.cjs.map} +1 -1
  254. package/Listbox.module-6bX97NDI-h-n7TCMZ.js +12 -0
  255. package/{Listbox.module-6bX97NDI-56b35452.js.map → Listbox.module-6bX97NDI-h-n7TCMZ.js.map} +1 -1
  256. package/LocalizationProvider-DUpcgOpg-BcV208mm.cjs +2 -0
  257. package/LocalizationProvider-DUpcgOpg-BcV208mm.cjs.map +1 -0
  258. package/LocalizationProvider-DUpcgOpg-BluDwbxk.js +42 -0
  259. package/LocalizationProvider-DUpcgOpg-BluDwbxk.js.map +1 -0
  260. package/LocalizationProvider.cjs +1 -1
  261. package/LocalizationProvider.cjs.map +1 -1
  262. package/LocalizationProvider.js +5 -40
  263. package/LocalizationProvider.js.map +1 -1
  264. package/Menu-BQAq0L8N.cjs +2 -0
  265. package/Menu-BQAq0L8N.cjs.map +1 -0
  266. package/Menu-Cp_2j_XW.js +327 -0
  267. package/Menu-Cp_2j_XW.js.map +1 -0
  268. package/Menu.cjs +1 -1
  269. package/Menu.cjs.map +1 -1
  270. package/Menu.js +4 -327
  271. package/Menu.js.map +1 -1
  272. package/Overflow-6bSiZmRH.js +41 -0
  273. package/Overflow-6bSiZmRH.js.map +1 -0
  274. package/Overflow-8l_m52ru.cjs +2 -0
  275. package/Overflow-8l_m52ru.cjs.map +1 -0
  276. package/{Overflow-mCmpVO6E-b32b83b2.js → Overflow-mCmpVO6E-CQntjl5f.js} +40 -43
  277. package/{Overflow-mCmpVO6E-b32b83b2.js.map → Overflow-mCmpVO6E-CQntjl5f.js.map} +1 -1
  278. package/Overflow-mCmpVO6E-D9h2HKLa.cjs +2 -0
  279. package/{Overflow-mCmpVO6E-f2178064.cjs.map → Overflow-mCmpVO6E-D9h2HKLa.cjs.map} +1 -1
  280. package/Overflow.cjs +1 -1
  281. package/Overflow.cjs.map +1 -1
  282. package/Overflow.js +4 -39
  283. package/Overflow.js.map +1 -1
  284. package/Page-BHVbtL63.cjs +2 -0
  285. package/Page-BHVbtL63.cjs.map +1 -0
  286. package/Page-DyiLrgtg.js +242 -0
  287. package/Page-DyiLrgtg.js.map +1 -0
  288. package/Page.cjs +1 -1
  289. package/Page.cjs.map +1 -1
  290. package/Page.css +1 -0
  291. package/Page.js +7 -242
  292. package/Page.js.map +1 -1
  293. package/Popover-Bvpvj5WS.js +47 -0
  294. package/Popover-Bvpvj5WS.js.map +1 -0
  295. package/Popover-DFhBDbdL.cjs +2 -0
  296. package/Popover-DFhBDbdL.cjs.map +1 -0
  297. package/Popover-w3OnmR7f-DJiuhFLh.cjs +2 -0
  298. package/{Popover-w3OnmR7f-2cf208a7.cjs.map → Popover-w3OnmR7f-DJiuhFLh.cjs.map} +1 -1
  299. package/{Popover-w3OnmR7f-5daa6b79.js → Popover-w3OnmR7f-DWTdyEZ0.js} +56 -58
  300. package/{Popover-w3OnmR7f-5daa6b79.js.map → Popover-w3OnmR7f-DWTdyEZ0.js.map} +1 -1
  301. package/Popover.cjs +1 -1
  302. package/Popover.cjs.map +1 -1
  303. package/Popover.js +7 -45
  304. package/Popover.js.map +1 -1
  305. package/PortalProvider-CvQRdwLj-BtjPnkrU.cjs +2 -0
  306. package/PortalProvider-CvQRdwLj-BtjPnkrU.cjs.map +1 -0
  307. package/PortalProvider-CvQRdwLj-DYU1MLeY.js +15 -0
  308. package/PortalProvider-CvQRdwLj-DYU1MLeY.js.map +1 -0
  309. package/PortalProvider.cjs +1 -1
  310. package/PortalProvider.cjs.map +1 -1
  311. package/PortalProvider.js +4 -13
  312. package/PortalProvider.js.map +1 -1
  313. package/ProgressBar-AVSC0MNT.js +123 -0
  314. package/ProgressBar-AVSC0MNT.js.map +1 -0
  315. package/ProgressBar-dNV_9-_s.cjs +2 -0
  316. package/ProgressBar-dNV_9-_s.cjs.map +1 -0
  317. package/ProgressBar.cjs +1 -1
  318. package/ProgressBar.cjs.map +1 -1
  319. package/ProgressBar.js +3 -122
  320. package/ProgressBar.js.map +1 -1
  321. package/Radio-D6_T54mi.cjs +2 -0
  322. package/Radio-D6_T54mi.cjs.map +1 -0
  323. package/Radio-mPAtYUwY.js +147 -0
  324. package/Radio-mPAtYUwY.js.map +1 -0
  325. package/Radio.cjs +1 -1
  326. package/Radio.cjs.map +1 -1
  327. package/Radio.js +4 -146
  328. package/Radio.js.map +1 -1
  329. package/SegmentedControl-CDYqxNcB.cjs +2 -0
  330. package/SegmentedControl-CDYqxNcB.cjs.map +1 -0
  331. package/SegmentedControl-vAEVzFx9.js +149 -0
  332. package/SegmentedControl-vAEVzFx9.js.map +1 -0
  333. package/SegmentedControl.cjs +1 -1
  334. package/SegmentedControl.cjs.map +1 -1
  335. package/SegmentedControl.js +4 -148
  336. package/SegmentedControl.js.map +1 -1
  337. package/SideNav-Bdl0r5mC.js +280 -0
  338. package/SideNav-Bdl0r5mC.js.map +1 -0
  339. package/SideNav-CSUjT43n.cjs +2 -0
  340. package/SideNav-CSUjT43n.cjs.map +1 -0
  341. package/SideNav.cjs +1 -1
  342. package/SideNav.cjs.map +1 -1
  343. package/SideNav.js +6 -282
  344. package/SideNav.js.map +1 -1
  345. package/SrOnly-CWQqJxku.cjs +2 -0
  346. package/SrOnly-CWQqJxku.cjs.map +1 -0
  347. package/SrOnly-CZOsd0yE-B9lWiTrH.cjs +2 -0
  348. package/{SrOnly-CZOsd0yE-76cdbcfb.cjs.map → SrOnly-CZOsd0yE-B9lWiTrH.cjs.map} +1 -1
  349. package/SrOnly-CZOsd0yE-DlROWKSx.js +12 -0
  350. package/{SrOnly-CZOsd0yE-274dacb6.js.map → SrOnly-CZOsd0yE-DlROWKSx.js.map} +1 -1
  351. package/SrOnly-f1yBS_Iz.js +9 -0
  352. package/SrOnly-f1yBS_Iz.js.map +1 -0
  353. package/SrOnly.cjs +1 -1
  354. package/SrOnly.cjs.map +1 -1
  355. package/SrOnly.js +3 -7
  356. package/SrOnly.js.map +1 -1
  357. package/Stepper-DDTFYk6c.js +450 -0
  358. package/Stepper-DDTFYk6c.js.map +1 -0
  359. package/Stepper-d2x4zznU.cjs +2 -0
  360. package/Stepper-d2x4zznU.cjs.map +1 -0
  361. package/Stepper.cjs +1 -1
  362. package/Stepper.cjs.map +1 -1
  363. package/Stepper.js +9 -450
  364. package/Stepper.js.map +1 -1
  365. package/Switch-Dno7OZc3.cjs +2 -0
  366. package/Switch-Dno7OZc3.cjs.map +1 -0
  367. package/Switch-o9-bqyd9.js +72 -0
  368. package/Switch-o9-bqyd9.js.map +1 -0
  369. package/Switch.cjs +1 -1
  370. package/Switch.cjs.map +1 -1
  371. package/Switch.js +3 -71
  372. package/Switch.js.map +1 -1
  373. package/Tab-CeVqQjTE.cjs +10 -0
  374. package/Tab-CeVqQjTE.cjs.map +1 -0
  375. package/Tab-QW39ZPbQ.js +442 -0
  376. package/Tab-QW39ZPbQ.js.map +1 -0
  377. package/Tab.cjs +1 -9
  378. package/Tab.cjs.map +1 -1
  379. package/Tab.js +6 -442
  380. package/Tab.js.map +1 -1
  381. package/Text-D5ykWAtj.js +10 -0
  382. package/Text-D5ykWAtj.js.map +1 -0
  383. package/Text-DW_1b5Ao-CVzdFkOj.cjs +2 -0
  384. package/{Text-DW_1b5Ao-fa5ca1ca.cjs.map → Text-DW_1b5Ao-CVzdFkOj.cjs.map} +1 -1
  385. package/{Text-DW_1b5Ao-1e66bc85.js → Text-DW_1b5Ao-DnqiTXGv.js} +15 -16
  386. package/{Text-DW_1b5Ao-1e66bc85.js.map → Text-DW_1b5Ao-DnqiTXGv.js.map} +1 -1
  387. package/Text-_tnODLfZ.cjs +2 -0
  388. package/Text-_tnODLfZ.cjs.map +1 -0
  389. package/Text.cjs +1 -1
  390. package/Text.cjs.map +1 -1
  391. package/Text.js +3 -8
  392. package/Text.js.map +1 -1
  393. package/TextField-C0ccUDu5-CMsKnSgb.cjs +2 -0
  394. package/{TextField-C0ccUDu5-2c0409d1.cjs.map → TextField-C0ccUDu5-CMsKnSgb.cjs.map} +1 -1
  395. package/TextField-C0ccUDu5-pdoiLX1u.js +141 -0
  396. package/{TextField-C0ccUDu5-c3d7d2cc.js.map → TextField-C0ccUDu5-pdoiLX1u.js.map} +1 -1
  397. package/TextField-Ch1aIQRm.cjs +2 -0
  398. package/TextField-Ch1aIQRm.cjs.map +1 -0
  399. package/TextField-Qc-aHZwp.js +27 -0
  400. package/TextField-Qc-aHZwp.js.map +1 -0
  401. package/TextField.cjs +1 -1
  402. package/TextField.cjs.map +1 -1
  403. package/TextField.js +3 -25
  404. package/TextField.js.map +1 -1
  405. package/Textarea-BvKAlyr5.cjs +2 -0
  406. package/Textarea-BvKAlyr5.cjs.map +1 -0
  407. package/Textarea-D9tRBJov.js +265 -0
  408. package/Textarea-D9tRBJov.js.map +1 -0
  409. package/Textarea.cjs +1 -1
  410. package/Textarea.cjs.map +1 -1
  411. package/Textarea.js +3 -264
  412. package/Textarea.js.map +1 -1
  413. package/ThemeProvider-C28ELSMv.js +7 -0
  414. package/ThemeProvider-C28ELSMv.js.map +1 -0
  415. package/ThemeProvider-D3-vcv0T.cjs +2 -0
  416. package/ThemeProvider-D3-vcv0T.cjs.map +1 -0
  417. package/{ThemeProvider-ToVvRp6m-1c1f8387.cjs → ThemeProvider-ToVvRp6m-CoLPmFrb.cjs} +2 -2
  418. package/{ThemeProvider-ToVvRp6m-1c1f8387.cjs.map → ThemeProvider-ToVvRp6m-CoLPmFrb.cjs.map} +1 -1
  419. package/{ThemeProvider-ToVvRp6m-1fe3baac.js → ThemeProvider-ToVvRp6m-qC73SSSn.js} +8 -8
  420. package/{ThemeProvider-ToVvRp6m-1fe3baac.js.map → ThemeProvider-ToVvRp6m-qC73SSSn.js.map} +1 -1
  421. package/ThemeProvider.cjs +1 -1
  422. package/ThemeProvider.cjs.map +1 -1
  423. package/ThemeProvider.js +3 -5
  424. package/ThemeProvider.js.map +1 -1
  425. package/Toast.cjs +1 -8
  426. package/Toast.cjs.map +1 -1
  427. package/Toast.js +4 -568
  428. package/Toast.js.map +1 -1
  429. package/Tooltip-Cp1dXMJf-BVijxbJA.cjs +2 -0
  430. package/{Tooltip-Cp1dXMJf-e01c8adb.cjs.map → Tooltip-Cp1dXMJf-BVijxbJA.cjs.map} +1 -1
  431. package/{Tooltip-Cp1dXMJf-eaebb90e.js → Tooltip-Cp1dXMJf-DZiDNAIp.js} +26 -28
  432. package/{Tooltip-Cp1dXMJf-eaebb90e.js.map → Tooltip-Cp1dXMJf-DZiDNAIp.js.map} +1 -1
  433. package/Tooltip-DV9FC-5a.cjs +2 -0
  434. package/Tooltip-DV9FC-5a.cjs.map +1 -0
  435. package/Tooltip-NbfopVjX.js +28 -0
  436. package/Tooltip-NbfopVjX.js.map +1 -0
  437. package/Tooltip.cjs +1 -1
  438. package/Tooltip.cjs.map +1 -1
  439. package/Tooltip.js +4 -25
  440. package/Tooltip.js.map +1 -1
  441. package/TrackingProvider.cjs +1 -14
  442. package/TrackingProvider.cjs.map +1 -1
  443. package/TrackingProvider.js +4 -5012
  444. package/TrackingProvider.js.map +1 -1
  445. package/{_commonjsHelpers-c5d32002.js → _commonjsHelpers-BkfeUUK-.js} +3 -5
  446. package/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  447. package/{_commonjsHelpers-6763f629.cjs → _commonjsHelpers-DwTZ_eVU.cjs} +1 -1
  448. package/_commonjsHelpers-DwTZ_eVU.cjs.map +1 -0
  449. package/anvil2.cjs +1 -1
  450. package/anvil2.js +152 -152
  451. package/{check-EixQBT_K-2609382e.cjs → check-EixQBT_K-Cb-7N6O6.cjs} +1 -1
  452. package/{check-EixQBT_K-2609382e.cjs.map → check-EixQBT_K-Cb-7N6O6.cjs.map} +1 -1
  453. package/{check-EixQBT_K-b5474547.js → check-EixQBT_K-DVm-iNP1.js} +1 -1
  454. package/{check-EixQBT_K-b5474547.js.map → check-EixQBT_K-DVm-iNP1.js.map} +1 -1
  455. package/{check_circle-CYXeiF3f-0d49b2da.cjs → check_circle-CYXeiF3f-CxsnkN5A.cjs} +1 -1
  456. package/{check_circle-CYXeiF3f-0d49b2da.cjs.map → check_circle-CYXeiF3f-CxsnkN5A.cjs.map} +1 -1
  457. package/{check_circle-CYXeiF3f-5838521c.js → check_circle-CYXeiF3f-DAAbkuAz.js} +1 -1
  458. package/{check_circle-CYXeiF3f-5838521c.js.map → check_circle-CYXeiF3f-DAAbkuAz.js.map} +1 -1
  459. package/{chevron_right-C6tOB0si-96f8a9c6.cjs → chevron_right-C6tOB0si-CAGtVHIJ.cjs} +1 -1
  460. package/{chevron_right-C6tOB0si-96f8a9c6.cjs.map → chevron_right-C6tOB0si-CAGtVHIJ.cjs.map} +1 -1
  461. package/{chevron_right-C6tOB0si-ac35ad56.js → chevron_right-C6tOB0si-CQUlqPv7.js} +1 -1
  462. package/{chevron_right-C6tOB0si-ac35ad56.js.map → chevron_right-C6tOB0si-CQUlqPv7.js.map} +1 -1
  463. package/{childrenToString-BP48L6HE-0cd30a27.cjs → childrenToString-BP48L6HE-99vBR-I0.cjs} +1 -1
  464. package/{childrenToString-BP48L6HE-0cd30a27.cjs.map → childrenToString-BP48L6HE-99vBR-I0.cjs.map} +1 -1
  465. package/{childrenToString-BP48L6HE-416df522.js → childrenToString-BP48L6HE-CwwYrHi6.js} +1 -1
  466. package/{childrenToString-BP48L6HE-416df522.js.map → childrenToString-BP48L6HE-CwwYrHi6.js.map} +1 -1
  467. package/{close-rGTzRQfw-4984cc86.cjs → close-rGTzRQfw-CH6gBTQZ.cjs} +1 -1
  468. package/{close-rGTzRQfw-4984cc86.cjs.map → close-rGTzRQfw-CH6gBTQZ.cjs.map} +1 -1
  469. package/{close-rGTzRQfw-7e0b4df7.js → close-rGTzRQfw-Dbu1sjKk.js} +1 -1
  470. package/{close-rGTzRQfw-7e0b4df7.js.map → close-rGTzRQfw-Dbu1sjKk.js.map} +1 -1
  471. package/extends-C3382pL0.js +23 -0
  472. package/{extends-31d75778.js.map → extends-C3382pL0.js.map} +1 -1
  473. package/{extends-60b54772.cjs → extends-Ddk9WqIm.cjs} +1 -1
  474. package/{extends-60b54772.cjs.map → extends-Ddk9WqIm.cjs.map} +1 -1
  475. package/{getKeyboardFocusableElements-58a00025.js → getKeyboardFocusableElements-CbK6M1xT.js} +2 -3
  476. package/{getKeyboardFocusableElements-58a00025.js.map → getKeyboardFocusableElements-CbK6M1xT.js.map} +1 -1
  477. package/{getKeyboardFocusableElements-aba1bd01.cjs → getKeyboardFocusableElements-DoTjYzTH.cjs} +1 -1
  478. package/{getKeyboardFocusableElements-aba1bd01.cjs.map → getKeyboardFocusableElements-DoTjYzTH.cjs.map} +1 -1
  479. package/{index-1f4f169d.cjs → index-B8Rbc1qP.cjs} +2 -2
  480. package/{index-1f4f169d.cjs.map → index-B8Rbc1qP.cjs.map} +1 -1
  481. package/{index-c6e22bb9.js → index-B9BgsxnA.js} +2 -2
  482. package/{index-c6e22bb9.js.map → index-B9BgsxnA.js.map} +1 -1
  483. package/{index-ef2e9d11.cjs → index-BYW82IHE.cjs} +2 -2
  484. package/{index-ef2e9d11.cjs.map → index-BYW82IHE.cjs.map} +1 -1
  485. package/{index-47e4931c.js → index-CdPVLxQ_.js} +2 -2
  486. package/{index-47e4931c.js.map → index-CdPVLxQ_.js.map} +1 -1
  487. package/index-Crqvnd9D.js +479 -0
  488. package/{index-06c0bdf0.js.map → index-Crqvnd9D.js.map} +1 -1
  489. package/index-DGxJnlis.cjs +2 -0
  490. package/{index-a53df036.cjs.map → index-DGxJnlis.cjs.map} +1 -1
  491. package/{info-BiufEIKW-f73c8f68.js → info-BiufEIKW-5zxL2v35.js} +1 -1
  492. package/{info-BiufEIKW-f73c8f68.js.map → info-BiufEIKW-5zxL2v35.js.map} +1 -1
  493. package/{info-BiufEIKW-9f16129f.cjs → info-BiufEIKW-BQvVCqQB.cjs} +1 -1
  494. package/{info-BiufEIKW-9f16129f.cjs.map → info-BiufEIKW-BQvVCqQB.cjs.map} +1 -1
  495. package/{jsx-runtime-82a9ddf6.js → jsx-runtime-B6kdoens.js} +99 -111
  496. package/{jsx-runtime-82a9ddf6.js.map → jsx-runtime-B6kdoens.js.map} +1 -1
  497. package/{jsx-runtime-494437bb.cjs → jsx-runtime-Cek9Ww4S.cjs} +7 -9
  498. package/{jsx-runtime-494437bb.cjs.map → jsx-runtime-Cek9Ww4S.cjs.map} +1 -1
  499. package/{jsx-runtime-DmTjM30f-4402697a.cjs → jsx-runtime-DmTjM30f-CS_-PsQX.cjs} +1 -1
  500. package/{jsx-runtime-DmTjM30f-4402697a.cjs.map → jsx-runtime-DmTjM30f-CS_-PsQX.cjs.map} +1 -1
  501. package/{jsx-runtime-DmTjM30f-ee8f7b1a.js → jsx-runtime-DmTjM30f-Qvbpxce2.js} +4 -8
  502. package/{jsx-runtime-DmTjM30f-ee8f7b1a.js.map → jsx-runtime-DmTjM30f-Qvbpxce2.js.map} +1 -1
  503. package/{motion-dae3950e.cjs → motion-C4VO4Fpk.cjs} +2 -2
  504. package/{motion-dae3950e.cjs.map → motion-C4VO4Fpk.cjs.map} +1 -1
  505. package/{motion-a0a946d6.js → motion-DztvaDAI.js} +4 -5
  506. package/{motion-a0a946d6.js.map → motion-DztvaDAI.js.map} +1 -1
  507. package/package.json +6 -6
  508. package/{primitive-898a5f6f.cjs → primitive-CGGVJgVV.cjs} +1 -1
  509. package/{primitive-898a5f6f.cjs.map → primitive-CGGVJgVV.cjs.map} +1 -1
  510. package/{primitive-90e4e69c.js → primitive-DD5BdZ26.js} +1 -1
  511. package/{primitive-90e4e69c.js.map → primitive-DD5BdZ26.js.map} +1 -1
  512. package/{tinycolor-d415b1fd.js → tinycolor-7bVxTrF6.js} +1 -1
  513. package/{tinycolor-d415b1fd.js.map → tinycolor-7bVxTrF6.js.map} +1 -1
  514. package/{tinycolor-3b50a250.cjs → tinycolor-DTF4mKtt.cjs} +1 -1
  515. package/{tinycolor-3b50a250.cjs.map → tinycolor-DTF4mKtt.cjs.map} +1 -1
  516. package/toast-CdGTVoG7.js +561 -0
  517. package/toast-CdGTVoG7.js.map +1 -0
  518. package/toast-DZzaqTjt.cjs +9 -0
  519. package/toast-DZzaqTjt.cjs.map +1 -0
  520. package/token.cjs +1 -1
  521. package/token.js +1 -1
  522. package/use-reduced-motion-B0iZwwI4.js +28 -0
  523. package/{use-reduced-motion-b359504d.js.map → use-reduced-motion-B0iZwwI4.js.map} +1 -1
  524. package/use-reduced-motion-CbCiX8I1.cjs +2 -0
  525. package/{use-reduced-motion-a766a46b.cjs.map → use-reduced-motion-CbCiX8I1.cjs.map} +1 -1
  526. package/useAccessibleColor.cjs +1 -1
  527. package/useAccessibleColor.js +3 -5
  528. package/useAccessibleColor.js.map +1 -1
  529. package/useLayoutPropsUtil-CGf5lNlK-B0iyMjtr.cjs +2 -0
  530. package/{useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs.map → useLayoutPropsUtil-CGf5lNlK-B0iyMjtr.cjs.map} +1 -1
  531. package/{useLayoutPropsUtil-CGf5lNlK-f34e9597.js → useLayoutPropsUtil-CGf5lNlK-BDpNIJtx.js} +5 -9
  532. package/{useLayoutPropsUtil-CGf5lNlK-f34e9597.js.map → useLayoutPropsUtil-CGf5lNlK-BDpNIJtx.js.map} +1 -1
  533. package/useLinkStyles.cjs +1 -1
  534. package/useLinkStyles.js +1 -1
  535. package/useMergeRefs-CXJ8qoaV-D84hy3yG.cjs +2 -0
  536. package/useMergeRefs-CXJ8qoaV-D84hy3yG.cjs.map +1 -0
  537. package/useMergeRefs-CXJ8qoaV-DoR94mFy.js +12 -0
  538. package/useMergeRefs-CXJ8qoaV-DoR94mFy.js.map +1 -0
  539. package/useMergeRefs.cjs +1 -1
  540. package/useMergeRefs.cjs.map +1 -1
  541. package/useMergeRefs.js +3 -10
  542. package/useMergeRefs.js.map +1 -1
  543. package/usePrefersColorScheme-B9Awhirx-BfDjRBJD.cjs +2 -0
  544. package/usePrefersColorScheme-B9Awhirx-BfDjRBJD.cjs.map +1 -0
  545. package/usePrefersColorScheme-B9Awhirx-DhHR2kPI.js +21 -0
  546. package/usePrefersColorScheme-B9Awhirx-DhHR2kPI.js.map +1 -0
  547. package/usePrefersColorScheme.cjs +1 -1
  548. package/usePrefersColorScheme.cjs.map +1 -1
  549. package/usePrefersColorScheme.js +3 -19
  550. package/usePrefersColorScheme.js.map +1 -1
  551. package/useSize.cjs +1 -1
  552. package/useSize.cjs.map +1 -1
  553. package/useSize.js +36 -38
  554. package/useSize.js.map +1 -1
  555. package/useSwipe-BkgaWBcb-BEjYEqnh.cjs +2 -0
  556. package/useSwipe-BkgaWBcb-BEjYEqnh.cjs.map +1 -0
  557. package/useSwipe-BkgaWBcb-vV9GPhxB.js +16 -0
  558. package/useSwipe-BkgaWBcb-vV9GPhxB.js.map +1 -0
  559. package/useSwipe.cjs +1 -1
  560. package/useSwipe.cjs.map +1 -1
  561. package/useSwipe.js +3 -15
  562. package/useSwipe.js.map +1 -1
  563. package/useTrackingContext-BBuZNjoW.cjs +15 -0
  564. package/useTrackingContext-BBuZNjoW.cjs.map +1 -0
  565. package/useTrackingContext-DX5Gcrbe.js +5014 -0
  566. package/useTrackingContext-DX5Gcrbe.js.map +1 -0
  567. package/useTrackingId.cjs +1 -1
  568. package/useTrackingId.cjs.map +1 -1
  569. package/useTrackingId.js +3 -3
  570. package/{warning-DDltrOR--36733091.js → warning-DDltrOR--BVtwqwWT.js} +1 -1
  571. package/{warning-DDltrOR--36733091.js.map → warning-DDltrOR--BVtwqwWT.js.map} +1 -1
  572. package/{warning-DDltrOR--31461705.cjs → warning-DDltrOR--raWQD1z0.cjs} +1 -1
  573. package/{warning-DDltrOR--31461705.cjs.map → warning-DDltrOR--raWQD1z0.cjs.map} +1 -1
  574. package/Alert-BULbyuJn-6bc0372f.js +0 -91
  575. package/Alert-BULbyuJn-85b8cba4.cjs +0 -2
  576. package/ButtonToggle-uOhiLjZh-7f18dd4f.cjs +0 -2
  577. package/Checkbox-Bac2nQzq-03b67a48.cjs +0 -2
  578. package/Chip-BVUDQYeX-5eb1e24c.cjs +0 -2
  579. package/Dialog-LF_eUywW-bdbb253d.cjs +0 -2
  580. package/Flex-D-uYVS9I-b172b22b.cjs +0 -2
  581. package/Helper-CicCRgpB-cc748e80.cjs +0 -2
  582. package/Icon-BcLI32jH-090788b5.cjs +0 -2
  583. package/Icon-BcLI32jH-6c61a1d4.js +0 -48
  584. package/Label-CkY8ldc9-f9a4ff73.cjs +0 -2
  585. package/ListView.module-Hib8oMK_-e8806d56.js +0 -11
  586. package/ListView.module-Hib8oMK_-eb6a2b5b.cjs +0 -2
  587. package/Listbox.module-6bX97NDI-56b35452.js +0 -13
  588. package/Listbox.module-6bX97NDI-d18843c8.cjs +0 -2
  589. package/Overflow-mCmpVO6E-f2178064.cjs +0 -2
  590. package/Popover-w3OnmR7f-2cf208a7.cjs +0 -2
  591. package/SrOnly-CZOsd0yE-274dacb6.js +0 -13
  592. package/SrOnly-CZOsd0yE-76cdbcfb.cjs +0 -2
  593. package/Text-DW_1b5Ao-fa5ca1ca.cjs +0 -2
  594. package/TextField-C0ccUDu5-2c0409d1.cjs +0 -2
  595. package/TextField-C0ccUDu5-c3d7d2cc.js +0 -142
  596. package/Tooltip-Cp1dXMJf-e01c8adb.cjs +0 -2
  597. package/_commonjsHelpers-6763f629.cjs.map +0 -1
  598. package/_commonjsHelpers-c5d32002.js.map +0 -1
  599. package/extends-31d75778.js +0 -27
  600. package/index-06c0bdf0.js +0 -480
  601. package/index-17ecb2bb.js.map +0 -1
  602. package/index-63a9d04d.cjs +0 -5
  603. package/index-63a9d04d.cjs.map +0 -1
  604. package/index-a53df036.cjs +0 -2
  605. package/index-c4b570f4.cjs +0 -2
  606. package/index-c4b570f4.cjs.map +0 -1
  607. package/index-e38aed53.js.map +0 -1
  608. package/index13.css +0 -1
  609. package/index6.css +0 -1
  610. package/use-reduced-motion-a766a46b.cjs +0 -2
  611. package/use-reduced-motion-b359504d.js +0 -28
  612. package/useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs +0 -2
  613. /package/{index.css → Announcement.css} +0 -0
  614. /package/{index2.css → Avatar.css} +0 -0
  615. /package/{index3.css → Badge.css} +0 -0
  616. /package/{index4.css → Calendar.css} +0 -0
  617. /package/{index5.css → Card.css} +0 -0
  618. /package/{index7.css → Details.css} +0 -0
  619. /package/{index8.css → Divider.css} +0 -0
  620. /package/{index9.css → Drawer.css} +0 -0
  621. /package/{index10.css → Grid.css} +0 -0
  622. /package/{index11.css → Layout.css} +0 -0
  623. /package/{index23.css → Link-BbiA85bl.css} +0 -0
  624. /package/{index12.css → Menu.css} +0 -0
  625. /package/{index14.css → ProgressBar.css} +0 -0
  626. /package/{index15.css → Radio.css} +0 -0
  627. /package/{index16.css → SegmentedControl.css} +0 -0
  628. /package/{index17.css → SideNav.css} +0 -0
  629. /package/{index18.css → Stepper.css} +0 -0
  630. /package/{index19.css → Switch.css} +0 -0
  631. /package/{index20.css → Tab.css} +0 -0
  632. /package/{index21.css → Textarea.css} +0 -0
  633. /package/{index22.css → toast.css} +0 -0
@@ -1,5 +0,0 @@
1
- "use strict";const $e=require("./jsx-runtime-DmTjM30f-4402697a.cjs"),mr=require("./index-1f4f169d.cjs"),tn=require("./ThemeProvider-ToVvRp6m-1c1f8387.cjs"),ve=require("react"),gr=require("react-dom"),pr=require("./index-ef2e9d11.cjs");require("./tinycolor-3b50a250.cjs");const nn=require("./useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs"),rn=require("./LocalizationProvider.cjs"),hr=require("./primitive-898a5f6f.cjs");function An(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=An(ve),Dn=An(gr);function Fe(e){return kn(e)?(e.nodeName||"").toLowerCase():"#document"}function ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(kn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kn(e){return e instanceof Node||e instanceof ae(e).Node}function G(e){return e instanceof Element||e instanceof ae(e).Element}function te(e){return e instanceof HTMLElement||e instanceof ae(e).HTMLElement}function Lt(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ae(e).ShadowRoot}function rt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vr(e){return["table","td","th"].includes(Fe(e))}function Ct(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bt(e){const t=Kt(),n=G(e)?me(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function br(e){let t=Ee(e);for(;te(t)&&!Se(t);){if(Bt(t))return t;if(Ct(t))return null;t=Ee(t)}return null}function Kt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Se(e){return["html","body","#document"].includes(Fe(e))}function me(e){return ae(e).getComputedStyle(e)}function It(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ee(e){if(Fe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lt(e)&&e.host||Ie(e);return Lt(t)?t.host:t}function Ln(e){const t=Ee(e);return Se(t)?e.ownerDocument?e.ownerDocument.body:e.body:te(t)&&rt(t)?t:Ln(t)}function Me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ln(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ae(o);return i?t.concat(s,s.visualViewport||[],rt(o)?o:[],s.frameElement&&n?Me(s.frameElement):[]):t.concat(o,Me(o,[],n))}function he(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ee(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Lt(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Fn(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Nn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function _n(e){return e.mozInputSource===0&&e.isTrusted?!0:Ft()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $t(e){return yr()?!1:!Ft()&&e.width===0&&e.height===0||Ft()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Ht(){return/apple/i.test(navigator.vendor)}function Ft(){const e=/android/i;return e.test(Fn())||e.test(Nn())}function Vn(){return Fn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function yr(){return Nn().includes("jsdom/")}function Qe(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function xr(e){return"nativeEvent"in e}function wr(e){return e.matches("html,body")}function ne(e){return(e==null?void 0:e.ownerDocument)||document}function Ot(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Re(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Rr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function jt(e){return te(e)&&e.matches(Rr)}function oe(e){e.preventDefault(),e.stopPropagation()}function Wn(e){return e?e.getAttribute("role")==="combobox"&&jt(e):!1}const xe=Math.min,fe=Math.max,ht=Math.round,je=Math.floor,Ae=e=>({x:e,y:e}),Er={left:"right",right:"left",bottom:"top",top:"bottom"},Cr={start:"end",end:"start"};function Nt(e,t,n){return fe(e,xe(t,n))}function De(e,t){return typeof e=="function"?e(t):e}function Ce(e){return e.split("-")[0]}function Ye(e){return e.split("-")[1]}function qt(e){return e==="x"?"y":"x"}function zt(e){return e==="y"?"height":"width"}function ke(e){return["top","bottom"].includes(Ce(e))?"y":"x"}function Ut(e){return qt(ke(e))}function Ir(e,t,n){n===void 0&&(n=!1);const r=Ye(e),o=Ut(e),i=zt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vt(s)),[s,vt(s)]}function Tr(e){const t=vt(e);return[_t(e),t,_t(t)]}function _t(e){return e.replace(/start|end/g,t=>Cr[t])}function Or(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function Pr(e,t,n,r){const o=Ye(e);let i=Or(Ce(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(_t)))),i}function vt(e){return e.replace(/left|right|bottom|top/g,t=>Er[t])}function Mr(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bn(e){return typeof e!="number"?Mr(e):{top:e,right:e,bottom:e,left:e}}function bt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*!
2
- * tabbable 6.2.0
3
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
- */var Sr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],yt=Sr.join(","),Kn=typeof Element>"u",ze=Kn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,xt=!Kn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},wt=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",s=i||n&&t&&e(t.parentNode);return s},Ar=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Dr=function(t,n,r){if(wt(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(yt));return n&&ze.call(t,yt)&&o.unshift(t),o=o.filter(r),o},kr=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var s=i.shift();if(!wt(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),u=c.length?c:s.children,l=e(u,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:s,candidates:l})}else{var g=ze.call(s,yt);g&&r.filter(s)&&(n||!t.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),h=!wt(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&h){var a=e(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,a):o.push({scopeParent:s,candidates:a})}else i.unshift.apply(i,s.children)}}return o},$n=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Hn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ar(t))&&!$n(t)?0:t.tabIndex},Lr=function(t,n){var r=Hn(t);return r<0&&n&&!$n(t)?0:r},Fr=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},jn=function(t){return t.tagName==="INPUT"},Nr=function(t){return jn(t)&&t.type==="hidden"},_r=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Vr=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Wr=function(t){if(!t.name)return!0;var n=t.form||xt(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=Vr(o,t.form);return!i||i===t},Br=function(t){return jn(t)&&t.type==="radio"},Kr=function(t){return Br(t)&&!Wr(t)},$r=function(t){var n,r=t&&xt(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var s,c,u;for(i=!!((s=o)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var l,g,f;r=xt(o),o=(l=r)===null||l===void 0?void 0:l.host,i=!!((g=o)!==null&&g!==void 0&&(f=g.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},on=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Hr=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=ze.call(t,"details>summary:first-of-type"),s=i?t.parentElement:t;if(ze.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var u=t.parentElement,l=xt(t);if(u&&!u.shadowRoot&&o(u)===!0)return on(t);t.assignedSlot?t=t.assignedSlot:!u&&l!==t.ownerDocument?t=l.host:t=u}t=c}if($r(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return on(t);return!1},jr=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return ze.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},qr=function(t,n){return!(n.disabled||wt(n)||Nr(n)||Hr(n,t)||_r(n)||jr(n))},Vt=function(t,n){return!(Kr(n)||Hn(n)<0||!qr(t,n))},zr=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ur=function e(t){var n=[],r=[];return t.forEach(function(o,i){var s=!!o.scopeParent,c=s?o.scopeParent:o,u=Lr(c,s),l=s?e(o.candidates):c;u===0?s?n.push.apply(n,l):n.push(c):r.push({documentOrder:i,tabIndex:u,item:o,isScope:s,content:l})}),r.sort(Fr).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},et=function(t,n){n=n||{};var r;return n.getShadowRoot?r=kr([t],n.includeContainer,{filter:Vt.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:zr}):r=Dr(t,n.includeContainer,Vt.bind(null,n)),Ur(r)},Gr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return ze.call(t,yt)===!1?!1:Vt(n,t)};function sn(e,t,n){let{reference:r,floating:o}=e;const i=ke(t),s=Ut(t),c=zt(s),u=Ce(t),l=i==="y",g=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[c]/2-o[c]/2;let a;switch(u){case"top":a={x:g,y:r.y-o.height};break;case"bottom":a={x:g,y:r.y+r.height};break;case"right":a={x:r.x+r.width,y:f};break;case"left":a={x:r.x-o.width,y:f};break;default:a={x:r.x,y:r.y}}switch(Ye(t)){case"start":a[s]-=h*(n&&l?-1:1);break;case"end":a[s]+=h*(n&&l?-1:1);break}return a}const Yr=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:f}=sn(l,r,u),h=r,a={},d=0;for(let p=0;p<c.length;p++){const{name:w,fn:x}=c[p],{x:E,y:b,data:y,reset:S}=await x({x:g,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:a,rects:l,platform:s,elements:{reference:e,floating:t}});g=E??g,f=b??f,a={...a,[w]:{...a[w],...y}},S&&d<=50&&(d++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(l=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:g,y:f}=sn(l,h,u)),p=-1)}return{x:g,y:f,placement:h,strategy:o,middlewareData:a}};async function Gt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:g="viewport",elementContext:f="floating",altBoundary:h=!1,padding:a=0}=De(t,e),d=Bn(a),w=c[h?f==="floating"?"reference":"floating":f],x=bt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:g,strategy:u})),E=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=bt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:b,strategy:u}):E);return{top:(x.top-S.top+d.top)/y.y,bottom:(S.bottom-x.bottom+d.bottom)/y.y,left:(x.left-S.left+d.left)/y.x,right:(S.right-x.right+d.right)/y.x}}const Xr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:g=0}=De(e,t)||{};if(l==null)return{};const f=Bn(g),h={x:n,y:r},a=Ut(o),d=zt(a),p=await s.getDimensions(l),w=a==="y",x=w?"top":"left",E=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[d]+i.reference[a]-h[a]-i.floating[d],S=h[a]-i.reference[a],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let _=A?A[b]:0;(!_||!await(s.isElement==null?void 0:s.isElement(A)))&&(_=c.floating[b]||i.floating[d]);const B=y/2-S/2,H=_/2-p[d]/2-1,O=xe(f[x],H),k=xe(f[E],H),M=O,P=_-p[d]-k,v=_/2-p[d]/2+B,C=Nt(M,v,P),I=!u.arrow&&Ye(o)!=null&&v!==C&&i.reference[d]/2-(v<M?O:k)-p[d]/2<0,R=I?v<M?v-M:v-P:0;return{[a]:h[a]+R,data:{[a]:C,centerOffset:v-C-R,...I&&{alignmentOffset:R}},reset:I}}}),Zr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:g=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:a="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:p=!0,...w}=De(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Ce(o),E=ke(c),b=Ce(c)===c,y=await(u.isRTL==null?void 0:u.isRTL(l.floating)),S=h||(b||!p?[vt(c)]:Tr(c)),A=d!=="none";!h&&A&&S.push(...Pr(c,p,d,y));const _=[c,...S],B=await Gt(t,w),H=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(g&&H.push(B[x]),f){const v=Ir(o,s,y);H.push(B[v[0]],B[v[1]])}if(O=[...O,{placement:o,overflows:H}],!H.every(v=>v<=0)){var k,M;const v=(((k=i.flip)==null?void 0:k.index)||0)+1,C=_[v];if(C)return{data:{index:v,overflows:O},reset:{placement:C}};let I=(M=O.filter(R=>R.overflows[0]<=0).sort((R,D)=>R.overflows[1]-D.overflows[1])[0])==null?void 0:M.placement;if(!I)switch(a){case"bestFit":{var P;const R=(P=O.filter(D=>{if(A){const V=ke(D.placement);return V===E||V==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(V=>V>0).reduce((V,T)=>V+T,0)]).sort((D,V)=>D[1]-V[1])[0])==null?void 0:P[0];R&&(I=R);break}case"initialPlacement":I=c;break}if(o!==I)return{reset:{placement:I}}}return{}}}};async function Jr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ce(n),c=Ye(n),u=ke(n)==="y",l=["left","top"].includes(s)?-1:1,g=i&&u?-1:1,f=De(t,e);let{mainAxis:h,crossAxis:a,alignmentAxis:d}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof d=="number"&&(a=c==="end"?d*-1:d),u?{x:a*g,y:h*l}:{x:h*l,y:a*g}}const Qr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,u=await Jr(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},eo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x,y:E}=w;return{x,y:E}}},...u}=De(e,t),l={x:n,y:r},g=await Gt(t,u),f=ke(Ce(o)),h=qt(f);let a=l[h],d=l[f];if(i){const w=h==="y"?"top":"left",x=h==="y"?"bottom":"right",E=a+g[w],b=a-g[x];a=Nt(E,a,b)}if(s){const w=f==="y"?"top":"left",x=f==="y"?"bottom":"right",E=d+g[w],b=d-g[x];d=Nt(E,d,b)}const p=c.fn({...t,[h]:a,[f]:d});return{...p,data:{x:p.x-n,y:p.y-r}}}}},to=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=De(e,t),g={x:n,y:r},f=ke(o),h=qt(f);let a=g[h],d=g[f];const p=De(c,t),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const b=h==="y"?"height":"width",y=i.reference[h]-i.floating[b]+w.mainAxis,S=i.reference[h]+i.reference[b]-w.mainAxis;a<y?a=y:a>S&&(a=S)}if(l){var x,E;const b=h==="y"?"width":"height",y=["top","left"].includes(Ce(o)),S=i.reference[f]-i.floating[b]+(y&&((x=s.offset)==null?void 0:x[f])||0)+(y?0:w.crossAxis),A=i.reference[f]+i.reference[b]+(y?0:((E=s.offset)==null?void 0:E[f])||0)-(y?w.crossAxis:0);d<S?d=S:d>A&&(d=A)}return{[h]:a,[f]:d}}}},no=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...c}=De(e,t),u=await Gt(t,c),l=Ce(n),g=Ye(n),f=ke(n)==="y",{width:h,height:a}=r.floating;let d,p;l==="top"||l==="bottom"?(d=l,p=g===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,d=g==="end"?"top":"bottom");const w=a-u.top-u.bottom,x=h-u.left-u.right,E=xe(a-u[d],w),b=xe(h-u[p],x),y=!t.middlewareData.shift;let S=E,A=b;if(f?A=g||y?xe(b,x):x:S=g||y?xe(E,w):w,y&&!g){const B=fe(u.left,0),H=fe(u.right,0),O=fe(u.top,0),k=fe(u.bottom,0);f?A=h-2*(B!==0||H!==0?B+H:fe(u.left,u.right)):S=a-2*(O!==0||k!==0?O+k:fe(u.top,u.bottom))}await s({...t,availableWidth:A,availableHeight:S});const _=await o.getDimensions(i.floating);return h!==_.width||a!==_.height?{reset:{rects:!0}}:{}}}};function qn(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=te(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=ht(n)!==i||ht(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Yt(e){return G(e)?e:e.contextElement}function qe(e){const t=Yt(e);if(!te(t))return Ae(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=qn(t);let s=(i?ht(n.width):n.width)/r,c=(i?ht(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ro=Ae(0);function zn(e){const t=ae(e);return!Kt()||!t.visualViewport?ro:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ae(e)?!1:t}function Ve(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Yt(e);let s=Ae(1);t&&(r?G(r)&&(s=qe(r)):s=qe(e));const c=oo(i,n,r)?zn(i):Ae(0);let u=(o.left+c.x)/s.x,l=(o.top+c.y)/s.y,g=o.width/s.x,f=o.height/s.y;if(i){const h=ae(i),a=r&&G(r)?ae(r):r;let d=h,p=d.frameElement;for(;p&&r&&a!==d;){const w=qe(p),x=p.getBoundingClientRect(),E=me(p),b=x.left+(p.clientLeft+parseFloat(E.paddingLeft))*w.x,y=x.top+(p.clientTop+parseFloat(E.paddingTop))*w.y;u*=w.x,l*=w.y,g*=w.x,f*=w.y,u+=b,l+=y,d=ae(p),p=d.frameElement}}return bt({width:g,height:f,x:u,y:l})}function io(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ie(r),c=t?Ct(t.floating):!1;if(r===s||c&&i)return n;let u={scrollLeft:0,scrollTop:0},l=Ae(1);const g=Ae(0),f=te(r);if((f||!f&&!i)&&((Fe(r)!=="body"||rt(s))&&(u=It(r)),te(r))){const h=Ve(r);l=qe(r),g.x=h.x+r.clientLeft,g.y=h.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+g.x,y:n.y*l.y-u.scrollTop*l.y+g.y}}function so(e){return Array.from(e.getClientRects())}function Un(e){return Ve(Ie(e)).left+It(e).scrollLeft}function co(e){const t=Ie(e),n=It(e),r=e.ownerDocument.body,o=fe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=fe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Un(e);const c=-n.scrollTop;return me(r).direction==="rtl"&&(s+=fe(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}function lo(e,t){const n=ae(e),r=Ie(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,u=0;if(o){i=o.width,s=o.height;const l=Kt();(!l||l&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:i,height:s,x:c,y:u}}function uo(e,t){const n=Ve(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=te(e)?qe(e):Ae(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:s,height:c,x:u,y:l}}function cn(e,t,n){let r;if(t==="viewport")r=lo(e,n);else if(t==="document")r=co(Ie(e));else if(G(t))r=uo(t,n);else{const o=zn(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return bt(r)}function Gn(e,t){const n=Ee(e);return n===t||!G(n)||Se(n)?!1:me(n).position==="fixed"||Gn(n,t)}function ao(e,t){const n=t.get(e);if(n)return n;let r=Me(e,[],!1).filter(c=>G(c)&&Fe(c)!=="body"),o=null;const i=me(e).position==="fixed";let s=i?Ee(e):e;for(;G(s)&&!Se(s);){const c=me(s),u=Bt(s);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||rt(s)&&!u&&Gn(e,s))?r=r.filter(g=>g!==s):o=c,s=Ee(s)}return t.set(e,r),r}function fo(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ct(t)?[]:ao(t,this._c):[].concat(n),r],c=s[0],u=s.reduce((l,g)=>{const f=cn(t,g,o);return l.top=fe(f.top,l.top),l.right=xe(f.right,l.right),l.bottom=xe(f.bottom,l.bottom),l.left=fe(f.left,l.left),l},cn(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function mo(e){const{width:t,height:n}=qn(e);return{width:t,height:n}}function go(e,t,n){const r=te(t),o=Ie(t),i=n==="fixed",s=Ve(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=Ae(0);if(r||!r&&!i)if((Fe(t)!=="body"||rt(o))&&(c=It(t)),r){const f=Ve(t,!0,i,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}else o&&(u.x=Un(o));const l=s.left+c.scrollLeft-u.x,g=s.top+c.scrollTop-u.y;return{x:l,y:g,width:s.width,height:s.height}}function Pt(e){return me(e).position==="static"}function ln(e,t){return!te(e)||me(e).position==="fixed"?null:t?t(e):e.offsetParent}function Yn(e,t){const n=ae(e);if(Ct(e))return n;if(!te(e)){let o=Ee(e);for(;o&&!Se(o);){if(G(o)&&!Pt(o))return o;o=Ee(o)}return n}let r=ln(e,t);for(;r&&vr(r)&&Pt(r);)r=ln(r,t);return r&&Se(r)&&Pt(r)&&!Bt(r)?n:r||br(e)||n}const po=async function(e){const t=this.getOffsetParent||Yn,n=this.getDimensions,r=await n(e.floating);return{reference:go(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ho(e){return me(e).direction==="rtl"}const vo={convertOffsetParentRelativeRectToViewportRelativeRect:io,getDocumentElement:Ie,getClippingRect:fo,getOffsetParent:Yn,getElementRects:po,getClientRects:so,getDimensions:mo,getScale:qe,isElement:G,isRTL:ho};function bo(e,t){let n=null,r;const o=Ie(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const{left:l,top:g,width:f,height:h}=e.getBoundingClientRect();if(c||t(),!f||!h)return;const a=je(g),d=je(o.clientWidth-(l+f)),p=je(o.clientHeight-(g+h)),w=je(l),E={rootMargin:-a+"px "+-d+"px "+-p+"px "+-w+"px",threshold:fe(0,xe(1,u))||1};let b=!0;function y(S){const A=S[0].intersectionRatio;if(A!==u){if(!b)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(y,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(y,E)}n.observe(e)}return s(!0),i}function yo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Yt(e),g=o||i?[...l?Me(l):[],...Me(t)]:[];g.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const f=l&&c?bo(l,n):null;let h=-1,a=null;s&&(a=new ResizeObserver(x=>{let[E]=x;E&&E.target===l&&a&&(a.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=a)==null||b.observe(t)})),n()}),l&&!u&&a.observe(l),a.observe(t));let d,p=u?Ve(e):null;u&&w();function w(){const x=Ve(e);p&&(x.x!==p.x||x.y!==p.y||x.width!==p.width||x.height!==p.height)&&n(),p=x,d=requestAnimationFrame(w)}return n(),()=>{var x;g.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),f==null||f(),(x=a)==null||x.disconnect(),a=null,u&&cancelAnimationFrame(d)}}const xo=Qr,wo=eo,Ro=Zr,Eo=no,un=Xr,Co=to,Io=(e,t,n)=>{const r=new Map,o={platform:vo,...n},i={...o.platform,_c:r};return Yr(e,t,{...o,platform:i})};var dt=typeof document<"u"?ve.useLayoutEffect:ve.useEffect;function Rt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Rt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Xn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function an(e,t){const n=Xn(e);return Math.round(t*n)/n}function fn(e){const t=m.useRef(e);return dt(()=>{t.current=e}),t}function To(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[g,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,a]=m.useState(r);Rt(h,r)||a(r);const[d,p]=m.useState(null),[w,x]=m.useState(null),E=m.useCallback(R=>{R!==A.current&&(A.current=R,p(R))},[]),b=m.useCallback(R=>{R!==_.current&&(_.current=R,x(R))},[]),y=i||d,S=s||w,A=m.useRef(null),_=m.useRef(null),B=m.useRef(g),H=u!=null,O=fn(u),k=fn(o),M=m.useCallback(()=>{if(!A.current||!_.current)return;const R={placement:t,strategy:n,middleware:h};k.current&&(R.platform=k.current),Io(A.current,_.current,R).then(D=>{const V={...D,isPositioned:!0};P.current&&!Rt(B.current,V)&&(B.current=V,Dn.flushSync(()=>{f(V)}))})},[h,t,n,k]);dt(()=>{l===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[l]);const P=m.useRef(!1);dt(()=>(P.current=!0,()=>{P.current=!1}),[]),dt(()=>{if(y&&(A.current=y),S&&(_.current=S),y&&S){if(O.current)return O.current(y,S,M);M()}},[y,S,M,O,H]);const v=m.useMemo(()=>({reference:A,floating:_,setReference:E,setFloating:b}),[E,b]),C=m.useMemo(()=>({reference:y,floating:S}),[y,S]),I=m.useMemo(()=>{const R={position:n,left:0,top:0};if(!C.floating)return R;const D=an(C.floating,g.x),V=an(C.floating,g.y);return c?{...R,transform:"translate("+D+"px, "+V+"px)",...Xn(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:V}},[n,c,C.floating,g.x,g.y]);return m.useMemo(()=>({...g,update:M,refs:v,elements:C,floatingStyles:I}),[g,M,v,C,I])}const Oo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?un({element:r.current,padding:o}).fn(n):{}:r?un({element:r,padding:o}).fn(n):{}}}},Po=(e,t)=>({...xo(e),options:[e,t]}),Mo=(e,t)=>({...wo(e),options:[e,t]}),So=(e,t)=>({...Co(e),options:[e,t]}),Ao=(e,t)=>({...Ro(e),options:[e,t]}),Do=(e,t)=>({...Eo(e),options:[e,t]}),ko=(e,t)=>({...Oo(e),options:[e,t]});function Lo(e){return m.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const Zn={...m},Fo=Zn.useInsertionEffect,No=Fo||(e=>e());function ie(e){const t=m.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return No(()=>{t.current=e}),m.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const Xt="ArrowUp",ot="ArrowDown",Ue="ArrowLeft",Xe="ArrowRight";function ut(e,t,n){return Math.floor(e/t)!==n}function Ze(e,t){return t<0||t>=e.current.length}function Mt(e,t){return se(e,{disabledIndices:t})}function dn(e,t){return se(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function se(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=t===void 0?{}:t;const s=e.current;let c=n;do c+=r?-i:i;while(c>=0&&c<=s.length-1&&mt(s,c,o));return c}function _o(e,t){let{event:n,orientation:r,loop:o,cols:i,disabledIndices:s,minIndex:c,maxIndex:u,prevIndex:l,stopEvent:g=!1}=t,f=l;if(n.key===Xt){if(g&&oe(n),l===-1)f=u;else if(f=se(e,{startingIndex:f,amount:i,decrement:!0,disabledIndices:s}),o&&(l-i<c||f<0)){const h=l%i,a=u%i,d=u-(a-h);a===h?f=u:f=a>h?d:d-i}Ze(e,f)&&(f=l)}if(n.key===ot&&(g&&oe(n),l===-1?f=c:(f=se(e,{startingIndex:l,amount:i,disabledIndices:s}),o&&l+i>u&&(f=se(e,{startingIndex:l%i-i,amount:i,disabledIndices:s}))),Ze(e,f)&&(f=l)),r==="both"){const h=je(l/i);n.key===Xe&&(g&&oe(n),l%i!==i-1?(f=se(e,{startingIndex:l,disabledIndices:s}),o&&ut(f,i,h)&&(f=se(e,{startingIndex:l-l%i-1,disabledIndices:s}))):o&&(f=se(e,{startingIndex:l-l%i-1,disabledIndices:s})),ut(f,i,h)&&(f=l)),n.key===Ue&&(g&&oe(n),l%i!==0?(f=se(e,{startingIndex:l,decrement:!0,disabledIndices:s}),o&&ut(f,i,h)&&(f=se(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:s}))):o&&(f=se(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:s})),ut(f,i,h)&&(f=l));const a=je(u/i)===h;Ze(e,f)&&(o&&a?f=n.key===Ue?u:se(e,{startingIndex:l-l%i-1,disabledIndices:s}):f=l)}return f}function Vo(e,t,n){const r=[];let o=0;return e.forEach((i,s)=>{let{width:c,height:u}=i;if(c>t&&process.env.NODE_ENV!=="production")throw new Error("[Floating UI]: Invalid grid - item width at index "+s+" is greater than grid columns");let l=!1;for(n&&(o=0);!l;){const g=[];for(let f=0;f<c;f++)for(let h=0;h<u;h++)g.push(o+f+h*t);o%t+c<=t&&g.every(f=>r[f]==null)?(g.forEach(f=>{r[f]=s}),l=!0):o++}}),[...r]}function Wo(e,t,n,r,o){if(e===-1)return-1;const i=n.indexOf(e),s=t[e];switch(o){case"tl":return i;case"tr":return s?i+s.width-1:i;case"bl":return s?i+(s.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function Bo(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function mt(e,t,n){if(n)return n.includes(t);const r=e[t];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}let mn=0;function Pe(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(mn);const i=()=>e==null?void 0:e.focus({preventScroll:n});o?i():mn=requestAnimationFrame(i)}var z=typeof document<"u"?ve.useLayoutEffect:ve.useEffect;function Ko(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function $o(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}const Jn=m.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Ho(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,i]=m.useState(()=>new Map),s=m.useCallback(u=>{i(l=>new Map(l).set(u,null))},[]),c=m.useCallback(u=>{i(l=>{const g=new Map(l);return g.delete(u),g})},[]);return z(()=>{const u=new Map(o);Array.from(u.keys()).sort(Ko).forEach((g,f)=>{u.set(g,f)}),$o(o,u)||i(u)},[o]),m.createElement(Jn.Provider,{value:m.useMemo(()=>({register:s,unregister:c,map:o,elementsRef:n,labelsRef:r}),[s,c,o,n,r])},t)}function jo(e){e===void 0&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:i,labelsRef:s}=m.useContext(Jn),[c,u]=m.useState(null),l=m.useRef(null),g=m.useCallback(f=>{if(l.current=f,c!==null&&(i.current[c]=f,s)){var h;const a=t!==void 0;s.current[c]=a?t:(h=f==null?void 0:f.textContent)!=null?h:null}},[c,i,s,t]);return z(()=>{const f=l.current;if(f)return n(f),()=>{r(f)}},[n,r]),z(()=>{const f=l.current?o.get(l.current):null;f!=null&&u(f)},[o]),m.useMemo(()=>({ref:g,index:c??-1}),[c,g])}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tt.apply(this,arguments)}let gn=!1,qo=0;const pn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+qo++;function zo(){const[e,t]=m.useState(()=>gn?pn():void 0);return z(()=>{e==null&&t(pn())},[]),m.useEffect(()=>{gn=!0},[]),e}const Uo=Zn.useId,it=Uo||zo;let nt;process.env.NODE_ENV!=="production"&&(nt=new Set);function gt(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=nt)!=null&&e.has(o))){var i;(i=nt)==null||i.add(o),console.warn(o)}}function Go(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=nt)!=null&&e.has(o))){var i;(i=nt)==null||i.add(o),console.error(o)}}const Yo=m.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i}},width:s=14,height:c=7,tipRadius:u=0,strokeWidth:l=0,staticOffset:g,stroke:f,d:h,style:{transform:a,...d}={},...p}=t;process.env.NODE_ENV!=="production"&&(n||gt("The `ref` prop is required for `FloatingArrow`."));const w=it(),[x,E]=m.useState(!1);if(z(()=>{if(!o)return;me(o).direction==="rtl"&&E(!0)},[o]),!o)return null;const b=l*2,y=b/2,S=s/2*(u/-8+1),A=c/2*u/4,[_,B]=r.split("-"),H=!!h,O=_==="top"||_==="bottom",k=g&&B==="end"?"bottom":"top";let M=g&&B==="end"?"right":"left";g&&x&&(M=B==="end"?"left":"right");const P=(i==null?void 0:i.x)!=null?g||i.x:"",v=(i==null?void 0:i.y)!=null?g||i.y:"",C=h||"M0,0"+(" H"+s)+(" L"+(s-S)+","+(c-A))+(" Q"+s/2+","+c+" "+S+","+(c-A))+" Z",I={top:H?"rotate(180deg)":"",left:H?"rotate(90deg)":"rotate(-90deg)",bottom:H?"":"rotate(180deg)",right:H?"rotate(-90deg)":"rotate(90deg)"}[_];return m.createElement("svg",tt({},p,{"aria-hidden":!0,ref:n,width:H?s:s+b,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[M]:P,[k]:v,[_]:O||H?"100%":"calc(100% - "+b/2+"px)",transform:""+I+(a??""),...d}}),b>0&&m.createElement("path",{clipPath:"url(#"+w+")",fill:"none",stroke:f,strokeWidth:b+(h?0:1),d:C}),m.createElement("path",{stroke:b&&!h?p.fill:"none",d:C}),m.createElement("clipPath",{id:w},m.createElement("rect",{x:-y,y:y*(H?-1:1),width:s+b,height:s})))});function Qn(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const er=m.createContext(null),tr=m.createContext(null),We=()=>{var e;return((e=m.useContext(er))==null?void 0:e.id)||null},Be=()=>m.useContext(tr);function Xo(e){const t=it(),n=Be(),r=We(),o=e||r;return z(()=>{const i={id:t,parentId:o};return n==null||n.addNode(i),()=>{n==null||n.removeNode(i)}},[n,t,o]),t}function Zo(e){const{children:t,id:n}=e,r=We();return m.createElement(er.Provider,{value:m.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function Jo(e){const{children:t}=e,n=m.useRef([]),r=m.useCallback(s=>{n.current=[...n.current,s]},[]),o=m.useCallback(s=>{n.current=n.current.filter(c=>c!==s)},[]),i=m.useState(()=>Qn())[0];return m.createElement(tr.Provider,{value:m.useMemo(()=>({nodesRef:n,addNode:r,removeNode:o,events:i}),[r,o,i])},t)}function Le(e){return"data-floating-ui-"+e}function de(e){const t=ve.useRef(e);return z(()=>{t.current=e}),t}const hn=Le("safe-polygon");function pt(e,t,n){return n&&!Qe(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Qo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:c=!0,delay:u=0,handleClose:l=null,mouseOnly:g=!1,restMs:f=0,move:h=!0}=t,a=Be(),d=We(),p=de(l),w=de(u),x=de(n),E=m.useRef(),b=m.useRef(-1),y=m.useRef(),S=m.useRef(-1),A=m.useRef(!0),_=m.useRef(!1),B=m.useRef(()=>{}),H=m.useCallback(()=>{var C;const I=(C=o.current.openEvent)==null?void 0:C.type;return(I==null?void 0:I.includes("mouse"))&&I!=="mousedown"},[o]);m.useEffect(()=>{if(!c)return;function C(I){let{open:R}=I;R||(clearTimeout(b.current),clearTimeout(S.current),A.current=!0)}return i.on("openchange",C),()=>{i.off("openchange",C)}},[c,i]),m.useEffect(()=>{if(!c||!p.current||!n)return;function C(R){H()&&r(!1,R,"hover")}const I=ne(s.floating).documentElement;return I.addEventListener("mouseleave",C),()=>{I.removeEventListener("mouseleave",C)}},[s.floating,n,r,c,p,H]);const O=m.useCallback(function(C,I,R){I===void 0&&(I=!0),R===void 0&&(R="hover");const D=pt(w.current,"close",E.current);D&&!y.current?(clearTimeout(b.current),b.current=window.setTimeout(()=>r(!1,C,R),D)):I&&(clearTimeout(b.current),r(!1,C,R))},[w,r]),k=ie(()=>{B.current(),y.current=void 0}),M=ie(()=>{if(_.current){const C=ne(s.floating).body;C.style.pointerEvents="",C.removeAttribute(hn),_.current=!1}});m.useEffect(()=>{if(!c)return;function C(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function I(T){if(clearTimeout(b.current),A.current=!1,g&&!Qe(E.current)||f>0&&!pt(w.current,"open"))return;const q=pt(w.current,"open",E.current);q?b.current=window.setTimeout(()=>{x.current||r(!0,T,"hover")},q):r(!0,T,"hover")}function R(T){if(C())return;B.current();const q=ne(s.floating);if(clearTimeout(S.current),p.current&&o.current.floatingContext){n||clearTimeout(b.current),y.current=p.current({...o.current.floatingContext,tree:a,x:T.clientX,y:T.clientY,onClose(){M(),k(),O(T,!0,"safe-polygon")}});const ce=y.current;q.addEventListener("mousemove",ce),B.current=()=>{q.removeEventListener("mousemove",ce)};return}(E.current==="touch"?!ee(s.floating,T.relatedTarget):!0)&&O(T)}function D(T){C()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:a,x:T.clientX,y:T.clientY,onClose(){M(),k(),O(T)}})(T))}if(G(s.domReference)){var V;const T=s.domReference;return n&&T.addEventListener("mouseleave",D),(V=s.floating)==null||V.addEventListener("mouseleave",D),h&&T.addEventListener("mousemove",I,{once:!0}),T.addEventListener("mouseenter",I),T.addEventListener("mouseleave",R),()=>{var q;n&&T.removeEventListener("mouseleave",D),(q=s.floating)==null||q.removeEventListener("mouseleave",D),h&&T.removeEventListener("mousemove",I),T.removeEventListener("mouseenter",I),T.removeEventListener("mouseleave",R)}}},[s,c,e,g,f,h,O,k,M,r,n,x,a,w,p,o]),z(()=>{var C;if(c&&n&&(C=p.current)!=null&&C.__options.blockPointerEvents&&H()){const R=ne(s.floating).body;R.setAttribute(hn,""),R.style.pointerEvents="none",_.current=!0;const D=s.floating;if(G(s.domReference)&&D){var I;const V=s.domReference,T=a==null||(I=a.nodesRef.current.find(q=>q.id===d))==null||(I=I.context)==null?void 0:I.elements.floating;return T&&(T.style.pointerEvents=""),V.style.pointerEvents="auto",D.style.pointerEvents="auto",()=>{V.style.pointerEvents="",D.style.pointerEvents=""}}}},[c,n,d,s,a,p,H]),z(()=>{n||(E.current=void 0,k(),M())},[n,k,M]),m.useEffect(()=>()=>{k(),clearTimeout(b.current),clearTimeout(S.current),M()},[c,s.domReference,k,M]);const P=m.useMemo(()=>{function C(I){E.current=I.pointerType}return{onPointerDown:C,onPointerEnter:C,onMouseMove(I){const{nativeEvent:R}=I;function D(){!A.current&&!x.current&&r(!0,R,"hover")}g&&!Qe(E.current)||n||f===0||(clearTimeout(S.current),E.current==="touch"?D():S.current=window.setTimeout(D,f))}}},[g,r,n,x,f]),v=m.useMemo(()=>({onMouseEnter(){clearTimeout(b.current)},onMouseLeave(C){O(C.nativeEvent,!1)}}),[O]);return m.useMemo(()=>c?{reference:P,floating:v}:{},[c,P,v])}const Wt=()=>{},nr=m.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Wt,setState:Wt,isInstantPhase:!1}),rr=()=>m.useContext(nr);function ei(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=m.useReducer((u,l)=>({...u,...l}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=m.useRef(null),c=m.useCallback(u=>{i({currentId:u})},[]);return z(()=>{o.currentId?s.current===null?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[o.currentId,o.isInstantPhase]),m.createElement(nr.Provider,{value:m.useMemo(()=>({...o,setState:i,setCurrentId:c}),[o,c])},t)}function ti(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i}=t,s=i??o,c=rr(),{currentId:u,setCurrentId:l,initialDelay:g,setState:f,timeoutMs:h}=c;return z(()=>{u&&(f({delay:{open:1,close:pt(g,"close")}}),u!==s&&r(!1))},[s,r,f,u,g]),z(()=>{function a(){r(!1),f({delay:g,currentId:null})}if(u&&!n&&u===s){if(h){const d=window.setTimeout(a,h);return()=>{clearTimeout(d)}}a()}},[n,f,u,s,r,g,h]),z(()=>{l===Wt||!n||l(s)},[n,l,s]),c}function ni(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(s=>s.id===o);o=i==null?void 0:i.parentId,i&&(r=r.concat(i))}return r}function _e(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(s=>{var c;return o.parentId===s.id&&((c=o.context)==null?void 0:c.open)})}),n=n.concat(r);return n}function ri(e,t){let n,r=-1;function o(i,s){s>r&&(n=i,r=s),_e(e,i).forEach(u=>{o(u.id,s+1)})}return o(t,0),e.find(i=>i.id===n)}let He=new WeakMap,at=new WeakSet,ft={},St=0;const oi=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,or=e=>e&&(e.host||or(e.parentNode)),ii=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=or(n);return e.contains(r)?r:null}).filter(n=>n!=null);function si(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,s=ii(t,e),c=new Set,u=new Set(s),l=[];ft[o]||(ft[o]=new WeakMap);const g=ft[o];s.forEach(f),h(t),c.clear();function f(a){!a||c.has(a)||(c.add(a),a.parentNode&&f(a.parentNode))}function h(a){!a||u.has(a)||[].forEach.call(a.children,d=>{if(Fe(d)!=="script")if(c.has(d))h(d);else{const p=i?d.getAttribute(i):null,w=p!==null&&p!=="false",x=(He.get(d)||0)+1,E=(g.get(d)||0)+1;He.set(d,x),g.set(d,E),l.push(d),x===1&&w&&at.add(d),E===1&&d.setAttribute(o,""),!w&&i&&d.setAttribute(i,"true")}})}return St++,()=>{l.forEach(a=>{const d=(He.get(a)||0)-1,p=(g.get(a)||0)-1;He.set(a,d),g.set(a,p),d||(!at.has(a)&&i&&a.removeAttribute(i),at.delete(a)),p||a.removeAttribute(o)}),St--,St||(He=new WeakMap,He=new WeakMap,at=new WeakSet,ft={})}}function vn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=ne(e[0]).body;return si(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ge=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ir(e,t){const n=et(e,Ge());t==="prev"&&n.reverse();const r=n.indexOf(he(ne(e)));return n.slice(r+1)[0]}function sr(){return ir(document.body,"next")}function cr(){return ir(document.body,"prev")}function Je(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ee(n,r)}function ci(e){et(e,Ge()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function li(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function ui(e,t,n){const r=e.indexOf(t);function o(s){const c=Le("focus-guard");let u=r+(s?1:0),l=e[u];for(;l&&(!l.isConnected||l.hasAttribute(c)||ee(n,l));)s?u++:u--,l=e[u];return l}const i=o(!0);return i||o(!1)}const Zt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let ai;function bn(e){e.key==="Tab"&&(e.target,clearTimeout(ai))}const Et=m.forwardRef(function(t,n){const[r,o]=m.useState();z(()=>(Ht()&&o("button"),document.addEventListener("keydown",bn),()=>{document.removeEventListener("keydown",bn)}),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Le("focus-guard")]:"",style:Zt};return m.createElement("span",tt({},t,i))}),lr=m.createContext(null),yn=Le("portal");function fi(e){e===void 0&&(e={});const{id:t,root:n}=e,r=it(),o=ur(),[i,s]=m.useState(null),c=m.useRef(null);return z(()=>()=>{i==null||i.remove(),queueMicrotask(()=>{c.current=null})},[i]),z(()=>{if(!r||c.current)return;const u=t?document.getElementById(t):null;if(!u)return;const l=document.createElement("div");l.id=r,l.setAttribute(yn,""),u.appendChild(l),c.current=l,s(l)},[t,r]),z(()=>{if(!r||c.current)return;let u=n||(o==null?void 0:o.portalNode);u&&!G(u)&&(u=u.current),u=u||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,u.appendChild(l));const g=document.createElement("div");g.id=r,g.setAttribute(yn,""),u=l||u,u.appendChild(g),c.current=g,s(g)},[t,n,r,o]),i}function di(e){const{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=fi({id:n,root:r}),[s,c]=m.useState(null),u=m.useRef(null),l=m.useRef(null),g=m.useRef(null),f=m.useRef(null),h=!!s&&!s.modal&&s.open&&o&&!!(r||i);return m.useEffect(()=>{if(!i||!o||s!=null&&s.modal)return;function a(d){i&&Je(d)&&(d.type==="focusin"?li:ci)(i)}return i.addEventListener("focusin",a,!0),i.addEventListener("focusout",a,!0),()=>{i.removeEventListener("focusin",a,!0),i.removeEventListener("focusout",a,!0)}},[i,o,s==null?void 0:s.modal]),m.createElement(lr.Provider,{value:m.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:l,beforeInsideRef:g,afterInsideRef:f,portalNode:i,setFocusManagerState:c}),[o,i])},h&&i&&m.createElement(Et,{"data-type":"outside",ref:u,onFocus:a=>{if(Je(a,i)){var d;(d=g.current)==null||d.focus()}else{const p=cr()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus()}}}),h&&i&&m.createElement("span",{"aria-owns":i.id,style:Zt}),i&&Dn.createPortal(t,i),h&&i&&m.createElement(Et,{"data-type":"outside",ref:l,onFocus:a=>{if(Je(a,i)){var d;(d=f.current)==null||d.focus()}else{const p=sr()||(s==null?void 0:s.refs.domReference.current);p==null||p.focus(),s!=null&&s.closeOnFocusOut&&(s==null||s.onOpenChange(!1,a.nativeEvent))}}}))}const ur=()=>m.useContext(lr),xn=20;let Ne=[];function At(e){Ne=Ne.filter(n=>n.isConnected);let t=e;if(!(!t||Fe(t)==="body")){if(!Gr(t,Ge())){const n=et(t,Ge())[0];n&&(t=n)}Ne.push(t),Ne.length>xn&&(Ne=Ne.slice(-xn))}}function wn(){return Ne.slice().reverse().find(e=>e.isConnected)}const mi=m.forwardRef(function(t,n){return m.createElement("button",tt({},t,{type:"button",ref:n,tabIndex:-1,style:Zt}))});function gi(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:u=!1,modal:l=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:f=!0}=e,{open:h,refs:a,nodeId:d,onOpenChange:p,events:w,dataRef:x,floatingId:E,elements:{domReference:b,floating:y}}=t,S=typeof s=="number"&&s<0,A=Wn(b)&&S,_=oi()?i:!0,B=de(o),H=de(s),O=de(c),k=Be(),M=ur(),P=m.useRef(null),v=m.useRef(null),C=m.useRef(!1),I=m.useRef(!1),R=m.useRef(-1),D=M!=null,V=y==null?void 0:y.firstElementChild,T=(V==null?void 0:V.id)===E?V:y,q=ie(function(L){return L===void 0&&(L=T),L?et(L,Ge()):[]}),re=ie(L=>{const K=q(L);return B.current.map(N=>b&&N==="reference"?b:T&&N==="floating"?T:K).filter(Boolean).flat()});m.useEffect(()=>{if(r||!l)return;function L(N){if(N.key==="Tab"){ee(T,he(ne(T)))&&q().length===0&&!A&&oe(N);const F=re(),j=Re(N);B.current[0]==="reference"&&j===b&&(oe(N),N.shiftKey?Pe(F[F.length-1]):Pe(F[1])),B.current[1]==="floating"&&j===T&&N.shiftKey&&(oe(N),Pe(F[0]))}}const K=ne(T);return K.addEventListener("keydown",L),()=>{K.removeEventListener("keydown",L)}},[r,b,T,l,B,A,q,re]),m.useEffect(()=>{if(r||!y)return;function L(K){const N=Re(K),j=q().indexOf(N);j!==-1&&(R.current=j)}return y.addEventListener("focusin",L),()=>{y.removeEventListener("focusin",L)}},[r,y,q]),m.useEffect(()=>{if(r||!f)return;function L(){I.current=!0,setTimeout(()=>{I.current=!1})}function K(N){const F=N.relatedTarget;queueMicrotask(()=>{const j=!(ee(b,F)||ee(y,F)||ee(F,y)||ee(M==null?void 0:M.portalNode,F)||F!=null&&F.hasAttribute(Le("focus-guard"))||k&&(_e(k.nodesRef.current,d).find(U=>{var Q,Y;return ee((Q=U.context)==null?void 0:Q.elements.floating,F)||ee((Y=U.context)==null?void 0:Y.elements.domReference,F)})||ni(k.nodesRef.current,d).find(U=>{var Q,Y;return((Q=U.context)==null?void 0:Q.elements.floating)===F||((Y=U.context)==null?void 0:Y.elements.domReference)===F})));if(u&&j&&he(ne(T))===ne(T).body){te(T)&&(T==null||T.focus());const U=R.current,Q=q(),Y=Q[U]||Q[Q.length-1]||T;te(Y)&&Y.focus()}(A||!l)&&F&&j&&!I.current&&F!==wn()&&(C.current=!0,p(!1,N))})}if(y&&te(b))return b.addEventListener("focusout",K),b.addEventListener("pointerdown",L),y.addEventListener("focusout",K),()=>{b.removeEventListener("focusout",K),b.removeEventListener("pointerdown",L),y.removeEventListener("focusout",K)}},[r,b,y,T,l,d,k,M,p,f,u,q,A]),m.useEffect(()=>{var L;if(r)return;const K=Array.from((M==null||(L=M.portalNode)==null?void 0:L.querySelectorAll("["+Le("portal")+"]"))||[]);if(y){const N=[y,...K,P.current,v.current,B.current.includes("reference")||A?b:null].filter(j=>j!=null),F=l||A?vn(N,_,!_):vn(N);return()=>{F()}}},[r,b,y,l,B,M,A,_]),z(()=>{if(r||!te(T))return;const L=ne(T),K=he(L);queueMicrotask(()=>{const N=re(T),F=H.current,j=(typeof F=="number"?N[F]:F.current)||T,U=ee(T,K);!S&&!U&&h&&Pe(j,{preventScroll:j===T})})},[r,h,T,S,re,H]),z(()=>{if(r||!T)return;let L=!1;const K=ne(T),N=he(K);let j=x.current.openEvent;const U=a.domReference.current;At(N);function Q(Y){let{open:be,reason:we,event:ge,nested:Ke}=Y;be&&(j=ge),we==="escape-key"&&a.domReference.current&&At(a.domReference.current),we==="hover"&&ge.type==="mouseleave"&&(C.current=!0),we==="outside-press"&&(Ke?(C.current=!1,L=!0):C.current=!(_n(ge)||$t(ge)))}return w.on("openchange",Q),()=>{w.off("openchange",Q);const Y=he(K),be=ee(y,Y)||k&&_e(k.nodesRef.current,d).some($=>{var X;return ee((X=$.context)==null?void 0:X.elements.floating,Y)});(be||j&&["click","mousedown"].includes(j.type))&&a.domReference.current&&At(a.domReference.current);const ge=U||N,Ke=et(ne(ge).body,Ge());queueMicrotask(()=>{let $=wn();!$&&te(ge)&&y&&($=ui(Ke,ge,y)),O.current&&!C.current&&te($)&&(!($!==Y&&Y!==K.body)||be)&&$.focus({preventScroll:L})})}},[r,y,T,O,x,a,w,k,d]),z(()=>{if(!r&&M)return M.setFocusManagerState({modal:l,closeOnFocusOut:f,open:h,onOpenChange:p,refs:a}),()=>{M.setFocusManagerState(null)}},[r,M,l,h,p,a,f]),z(()=>{if(r||!T||typeof MutationObserver!="function"||S)return;const L=()=>{const N=T.getAttribute("tabindex"),F=q(),j=he(ne(y)),U=F.indexOf(j);U!==-1&&(R.current=U),B.current.includes("floating")||j!==a.domReference.current&&F.length===0?N!=="0"&&T.setAttribute("tabindex","0"):N!=="-1"&&T.setAttribute("tabindex","-1")};L();const K=new MutationObserver(L);return K.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{K.disconnect()}},[r,y,T,a,B,q,S]);function ce(L){return r||!g||!l?null:m.createElement(mi,{ref:L==="start"?P:v,onClick:K=>p(!1,K.nativeEvent)},typeof g=="string"?g:"Dismiss")}const le=!r&&_&&(l?!A:!0)&&(D||l);return m.createElement(m.Fragment,null,le&&m.createElement(Et,{"data-type":"inside",ref:M==null?void 0:M.beforeInsideRef,onFocus:L=>{if(l){const N=re();Pe(o[0]==="reference"?N[0]:N[N.length-1])}else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(C.current=!1,Je(L,M.portalNode)){const N=sr()||b;N==null||N.focus()}else{var K;(K=M.beforeOutsideRef.current)==null||K.focus()}}}),!A&&ce("start"),n,ce("end"),le&&m.createElement(Et,{"data-type":"inside",ref:M==null?void 0:M.afterInsideRef,onFocus:L=>{if(l)Pe(re()[0]);else if(M!=null&&M.preserveTabOrder&&M.portalNode)if(f&&(C.current=!0),Je(L,M.portalNode)){const N=cr()||b;N==null||N.focus()}else{var K;(K=M.afterOutsideRef.current)==null||K.focus()}}}))}function Rn(e){return te(e.target)&&e.target.tagName==="BUTTON"}function En(e){return jt(e)}function pi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:g=!0}=t,f=m.useRef(),h=m.useRef(!1),a=m.useMemo(()=>({onPointerDown(d){f.current=d.pointerType},onMouseDown(d){const p=f.current;d.button===0&&c!=="click"&&(Qe(p,!0)&&l||(n&&u&&(!o.current.openEvent||o.current.openEvent.type==="mousedown")?r(!1,d.nativeEvent,"click"):(d.preventDefault(),r(!0,d.nativeEvent,"click"))))},onClick(d){const p=f.current;if(c==="mousedown"&&f.current){f.current=void 0;return}Qe(p,!0)&&l||(n&&u&&(!o.current.openEvent||o.current.openEvent.type==="click")?r(!1,d.nativeEvent,"click"):r(!0,d.nativeEvent,"click"))},onKeyDown(d){f.current=void 0,!(d.defaultPrevented||!g||Rn(d))&&(d.key===" "&&!En(i)&&(d.preventDefault(),h.current=!0),d.key==="Enter"&&r(!(n&&u),d.nativeEvent,"click"))},onKeyUp(d){d.defaultPrevented||!g||Rn(d)||En(i)||d.key===" "&&h.current&&(h.current=!1,r(!(n&&u),d.nativeEvent,"click"))}}),[o,i,c,l,g,r,n,u]);return m.useMemo(()=>s?{reference:a}:{},[s,a])}const hi={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vi={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Cn=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function bi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:l="pointerdown",referencePress:g=!1,referencePressEvent:f="pointerdown",ancestorScroll:h=!1,bubbles:a,capture:d}=t,p=Be(),w=ie(typeof u=="function"?u:()=>!1),x=typeof u=="function"?w:u,E=m.useRef(!1),b=m.useRef(!1),{escapeKey:y,outsidePress:S}=Cn(a),{escapeKey:A,outsidePress:_}=Cn(d),B=ie(v=>{var C;if(!n||!s||!c||v.key!=="Escape")return;const I=(C=i.current.floatingContext)==null?void 0:C.nodeId,R=p?_e(p.nodesRef.current,I):[];if(!y&&(v.stopPropagation(),R.length>0)){let D=!0;if(R.forEach(V=>{var T;if((T=V.context)!=null&&T.open&&!V.context.dataRef.current.__escapeKeyBubbles){D=!1;return}}),!D)return}r(!1,xr(v)?v.nativeEvent:v,"escape-key")}),H=ie(v=>{var C;const I=()=>{var R;B(v),(R=Re(v))==null||R.removeEventListener("keydown",I)};(C=Re(v))==null||C.addEventListener("keydown",I)}),O=ie(v=>{var C;const I=E.current;E.current=!1;const R=b.current;if(b.current=!1,l==="click"&&R||I||typeof x=="function"&&!x(v))return;const D=Re(v),V="["+Le("inert")+"]",T=ne(o.floating).querySelectorAll(V);let q=G(D)?D:null;for(;q&&!Se(q);){const L=Ee(q);if(Se(L)||!G(L))break;q=L}if(T.length&&G(D)&&!wr(D)&&!ee(D,o.floating)&&Array.from(T).every(L=>!ee(q,L)))return;if(te(D)&&P){const L=D.clientWidth>0&&D.scrollWidth>D.clientWidth,K=D.clientHeight>0&&D.scrollHeight>D.clientHeight;let N=K&&v.offsetX>D.clientWidth;if(K&&me(D).direction==="rtl"&&(N=v.offsetX<=D.offsetWidth-D.clientWidth),N||L&&v.offsetY>D.clientHeight)return}const re=(C=i.current.floatingContext)==null?void 0:C.nodeId,ce=p&&_e(p.nodesRef.current,re).some(L=>{var K;return Ot(v,(K=L.context)==null?void 0:K.elements.floating)});if(Ot(v,o.floating)||Ot(v,o.domReference)||ce)return;const le=p?_e(p.nodesRef.current,re):[];if(le.length>0){let L=!0;if(le.forEach(K=>{var N;if((N=K.context)!=null&&N.open&&!K.context.dataRef.current.__outsidePressBubbles){L=!1;return}}),!L)return}r(!1,v,"outside-press")}),k=ie(v=>{var C;const I=()=>{var R;O(v),(R=Re(v))==null||R.removeEventListener(l,I)};(C=Re(v))==null||C.addEventListener(l,I)});m.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=S;function v(R){r(!1,R,"ancestor-scroll")}const C=ne(o.floating);c&&C.addEventListener("keydown",A?H:B,A),x&&C.addEventListener(l,_?k:O,_);let I=[];return h&&(G(o.domReference)&&(I=Me(o.domReference)),G(o.floating)&&(I=I.concat(Me(o.floating))),!G(o.reference)&&o.reference&&o.reference.contextElement&&(I=I.concat(Me(o.reference.contextElement)))),I=I.filter(R=>{var D;return R!==((D=C.defaultView)==null?void 0:D.visualViewport)}),I.forEach(R=>{R.addEventListener("scroll",v,{passive:!0})}),()=>{c&&C.removeEventListener("keydown",A?H:B,A),x&&C.removeEventListener(l,_?k:O,_),I.forEach(R=>{R.removeEventListener("scroll",v)})}},[i,o,c,x,l,n,r,h,s,y,S,B,A,H,O,_,k]),m.useEffect(()=>{E.current=!1},[x,l]);const M=m.useMemo(()=>({onKeyDown:B,[hi[f]]:v=>{g&&r(!1,v.nativeEvent,"reference-press")}}),[B,r,g,f]),P=m.useMemo(()=>({onKeyDown:B,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[vi[l]]:()=>{E.current=!0}}),[B,l]);return m.useMemo(()=>s?{reference:M,floating:P}:{},[s,M,P])}function yi(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=it(),i=m.useRef({}),[s]=m.useState(()=>Qn()),c=We()!=null;if(process.env.NODE_ENV!=="production"){const a=r.reference;a&&!G(a)&&Go("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[u,l]=m.useState(r.reference),g=ie((a,d,p)=>{i.current.openEvent=a?d:void 0,s.emit("openchange",{open:a,event:d,reason:p,nested:c}),n==null||n(a,d,p)}),f=m.useMemo(()=>({setPositionReference:l}),[]),h=m.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return m.useMemo(()=>({dataRef:i,open:t,onOpenChange:g,elements:h,events:s,floatingId:o,refs:f}),[t,g,h,s,o,f])}function xi(e){e===void 0&&(e={});const{nodeId:t}=e,n=yi({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=m.useState(null),[c,u]=m.useState(null),g=(o==null?void 0:o.reference)||i,f=m.useRef(null),h=Be();z(()=>{g&&(f.current=g)},[g]);const a=To({...e,elements:{...o,...c&&{reference:c}}}),d=m.useCallback(b=>{const y=G(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;u(y),a.refs.setReference(y)},[a.refs]),p=m.useCallback(b=>{(G(b)||b===null)&&(f.current=b,s(b)),(G(a.refs.reference.current)||a.refs.reference.current===null||b!==null&&!G(b))&&a.refs.setReference(b)},[a.refs]),w=m.useMemo(()=>({...a.refs,setReference:p,setPositionReference:d,domReference:f}),[a.refs,p,d]),x=m.useMemo(()=>({...a.elements,domReference:g}),[a.elements,g]),E=m.useMemo(()=>({...a,...r,refs:w,elements:x,nodeId:t}),[a,w,x,t,r]);return z(()=>{r.dataRef.current.floatingContext=E;const b=h==null?void 0:h.nodesRef.current.find(y=>y.id===t);b&&(b.context=E)}),m.useMemo(()=>({...a,context:E,refs:w,elements:x}),[a,w,x,E])}function wi(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:c=!0,visibleOnly:u=!0}=t,l=m.useRef(!1),g=m.useRef(),f=m.useRef(!0);m.useEffect(()=>{if(!c)return;const a=ae(s.domReference);function d(){!n&&te(s.domReference)&&s.domReference===he(ne(s.domReference))&&(l.current=!0)}function p(){f.current=!0}return a.addEventListener("blur",d),a.addEventListener("keydown",p,!0),()=>{a.removeEventListener("blur",d),a.removeEventListener("keydown",p,!0)}},[s.domReference,n,c]),m.useEffect(()=>{if(!c)return;function a(d){let{reason:p}=d;(p==="reference-press"||p==="escape-key")&&(l.current=!0)}return o.on("openchange",a),()=>{o.off("openchange",a)}},[o,c]),m.useEffect(()=>()=>{clearTimeout(g.current)},[]);const h=m.useMemo(()=>({onPointerDown(a){$t(a.nativeEvent)||(f.current=!1)},onMouseLeave(){l.current=!1},onFocus(a){if(l.current)return;const d=Re(a.nativeEvent);if(u&&G(d))try{if(Ht()&&Vn())throw Error();if(!d.matches(":focus-visible"))return}catch{if(!f.current&&!jt(d))return}r(!0,a.nativeEvent,"focus")},onBlur(a){l.current=!1;const d=a.relatedTarget,p=a.nativeEvent,w=G(d)&&d.hasAttribute(Le("focus-guard"))&&d.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var x;const E=he(s.domReference?s.domReference.ownerDocument:document);!d&&E===s.domReference||ee((x=i.current.floatingContext)==null?void 0:x.refs.floating.current,E)||ee(s.domReference,E)||w||r(!1,p,"focus")})}}),[i,s.domReference,r,u]);return m.useMemo(()=>c?{reference:h}:{},[c,h])}const In="active",Tn="selected";function Dt(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[In]:s,[Tn]:c,...u}=e;i=u}return{...n==="floating"&&{tabIndex:-1},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(u=>{let[l,g]=u;if(!(o&&[In,Tn].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof g=="function"){var f;(f=r.get(l))==null||f.push(g),s[l]=function(){for(var h,a=arguments.length,d=new Array(a),p=0;p<a;p++)d[p]=arguments[p];return(h=r.get(l))==null?void 0:h.map(w=>w(...d)).find(w=>w!==void 0)}}}else s[l]=g}),s),{})}}function Ri(e){e===void 0&&(e=[]);const t=e.map(c=>c==null?void 0:c.reference),n=e.map(c=>c==null?void 0:c.floating),r=e.map(c=>c==null?void 0:c.item),o=m.useCallback(c=>Dt(c,e,"reference"),t),i=m.useCallback(c=>Dt(c,e,"floating"),n),s=m.useCallback(c=>Dt(c,e,"item"),r);return m.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}let On=!1;function Tt(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Pn(e,t){return Tt(t,e===Xt||e===ot,e===Ue||e===Xe)}function kt(e,t,n){return Tt(t,e===ot,n?e===Ue:e===Xe)||e==="Enter"||e===" "||e===""}function Ei(e,t,n){return Tt(t,n?e===Ue:e===Xe,e===ot)}function Mn(e,t,n){return Tt(t,n?e===Xe:e===Ue,e===Xt)}function Ci(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:i,activeIndex:s,onNavigate:c=()=>{},enabled:u=!0,selectedIndex:l=null,allowEscape:g=!1,loop:f=!1,nested:h=!1,rtl:a=!1,virtual:d=!1,focusItemOnOpen:p="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:x=!0,disabledIndices:E=void 0,orientation:b="vertical",cols:y=1,scrollItemIntoView:S=!0,virtualItemRef:A,itemSizes:_,dense:B=!1}=t;process.env.NODE_ENV!=="production"&&(g&&(f||gt("`useListNavigation` looping must be enabled to allow escaping."),d||gt("`useListNavigation` must be virtual to allow escaping.")),b==="vertical"&&y>1&&gt("In grid list navigation mode (`cols` > 1), the `orientation` should",'be either "horizontal" or "both".'));const H=We(),O=Be(),k=ie(c),M=m.useRef(p),P=m.useRef(l??-1),v=m.useRef(null),C=m.useRef(!0),I=m.useRef(k),R=m.useRef(!!o.floating),D=m.useRef(n),V=m.useRef(!1),T=m.useRef(!1),q=de(E),re=de(n),ce=de(S),le=de(o.floating),L=de(l),[K,N]=m.useState(),[F,j]=m.useState(),U=ie(function($,X,W){W===void 0&&(W=!1);function Z(J){d?(N(J.id),O==null||O.events.emit("virtualfocus",J),A&&(A.current=J)):Pe(J,{preventScroll:!0,sync:Vn()&&Ht()?On||V.current:!1})}const ue=$.current[X.current];ue&&Z(ue),requestAnimationFrame(()=>{const J=$.current[X.current]||ue;if(!J)return;ue||Z(J);const ye=ce.current;ye&&Y&&(W||!C.current)&&(J.scrollIntoView==null||J.scrollIntoView(typeof ye=="boolean"?{block:"nearest",inline:"nearest"}:ye))})});z(()=>{document.createElement("div").focus({get preventScroll(){return On=!0,!1}})},[]),z(()=>{u&&(n&&o.floating?M.current&&l!=null&&(T.current=!0,P.current=l,k(l)):R.current&&(P.current=-1,I.current(null)))},[u,n,o.floating,l,k]),z(()=>{if(u&&n&&o.floating)if(s==null){if(V.current=!1,L.current!=null)return;if(R.current&&(P.current=-1,U(i,P)),(!D.current||!R.current)&&M.current&&(v.current!=null||M.current===!0&&v.current==null)){let $=0;const X=()=>{i.current[0]==null?($<2&&($?requestAnimationFrame:queueMicrotask)(X),$++):(P.current=v.current==null||kt(v.current,b,a)||h?Mt(i,q.current):dn(i,q.current),v.current=null,k(P.current))};X()}}else Ze(i,s)||(P.current=s,U(i,P,T.current),T.current=!1)},[u,n,o.floating,s,L,h,i,b,a,k,U,q]),z(()=>{var $;if(!u||o.floating||!O||d||!R.current)return;const X=O.nodesRef.current,W=($=X.find(J=>J.id===H))==null||($=$.context)==null?void 0:$.elements.floating,Z=he(ne(o.floating)),ue=X.some(J=>J.context&&ee(J.context.elements.floating,Z));W&&!ue&&C.current&&W.focus({preventScroll:!0})},[u,o.floating,O,H,d]),z(()=>{if(!u||!O||!d||H)return;function $(X){j(X.id),A&&(A.current=X)}return O.events.on("virtualfocus",$),()=>{O.events.off("virtualfocus",$)}},[u,O,d,H,A]),z(()=>{I.current=k,R.current=!!o.floating}),z(()=>{n||(v.current=null)},[n]),z(()=>{D.current=n},[n]);const Q=s!=null,Y=m.useMemo(()=>{function $(W){if(!n)return;const Z=i.current.indexOf(W);Z!==-1&&k(Z)}return{onFocus(W){let{currentTarget:Z}=W;$(Z)},onClick:W=>{let{currentTarget:Z}=W;return Z.focus({preventScroll:!0})},...w&&{onMouseMove(W){let{currentTarget:Z}=W;$(Z)},onPointerLeave(W){let{pointerType:Z}=W;!C.current||Z==="touch"||(P.current=-1,U(i,P),k(null),d||Pe(le.current,{preventScroll:!0}))}}}},[n,le,U,w,i,k,d]),be=ie($=>{if(C.current=!1,V.current=!0,!re.current&&$.currentTarget===le.current)return;if(h&&Mn($.key,b,a)){oe($),r(!1,$.nativeEvent,"list-navigation"),te(o.domReference)&&!d&&o.domReference.focus();return}const X=P.current,W=Mt(i,E),Z=dn(i,E);if($.key==="Home"&&(oe($),P.current=W,k(P.current)),$.key==="End"&&(oe($),P.current=Z,k(P.current)),y>1){const ue=_||Array.from({length:i.current.length},()=>({width:1,height:1})),J=Vo(ue,y,B),ye=J.findIndex(pe=>pe!=null&&!mt(i.current,pe,E)),st=J.reduce((pe,Te,ct)=>Te!=null&&!mt(i.current,Te,E)?ct:pe,-1);if(P.current=J[_o({current:J.map(pe=>pe!=null?i.current[pe]:null)},{event:$,orientation:b,loop:f,cols:y,disabledIndices:Bo([...E||i.current.map((pe,Te)=>mt(i.current,Te)?Te:void 0),void 0],J),minIndex:ye,maxIndex:st,prevIndex:Wo(P.current>Z?W:P.current,ue,J,y,$.key===ot?"bl":$.key===Xe?"tr":"tl"),stopEvent:!0})],k(P.current),b==="both")return}if(Pn($.key,b)){if(oe($),n&&!d&&he($.currentTarget.ownerDocument)===$.currentTarget){P.current=kt($.key,b,a)?W:Z,k(P.current);return}kt($.key,b,a)?f?P.current=X>=Z?g&&X!==i.current.length?-1:W:se(i,{startingIndex:X,disabledIndices:E}):P.current=Math.min(Z,se(i,{startingIndex:X,disabledIndices:E})):f?P.current=X<=W?g&&X!==-1?i.current.length:Z:se(i,{startingIndex:X,decrement:!0,disabledIndices:E}):P.current=Math.max(W,se(i,{startingIndex:X,decrement:!0,disabledIndices:E})),Ze(i,P.current)?k(null):k(P.current)}}),we=m.useMemo(()=>d&&n&&Q&&{"aria-activedescendant":F||K},[d,n,Q,F,K]),ge=m.useMemo(()=>({"aria-orientation":b==="both"?void 0:b,...!Wn(o.domReference)&&we,onKeyDown:be,onPointerMove(){C.current=!0}}),[we,be,o.domReference,b]),Ke=m.useMemo(()=>{function $(W){p==="auto"&&_n(W.nativeEvent)&&(M.current=!0)}function X(W){M.current=p,p==="auto"&&$t(W.nativeEvent)&&(M.current=!0)}return{...we,onKeyDown(W){C.current=!1;const Z=W.key.indexOf("Arrow")===0,ue=Ei(W.key,b,a),J=Mn(W.key,b,a),ye=Pn(W.key,b),st=(h?ue:ye)||W.key==="Enter"||W.key.trim()==="";if(d&&n){const Jt=O==null?void 0:O.nodesRef.current.find(lt=>lt.parentId==null),Oe=O&&Jt?ri(O.nodesRef.current,Jt.id):null;if(Z&&Oe&&A){const lt=new KeyboardEvent("keydown",{key:W.key,bubbles:!0});if(ue||J){var pe,Te;const dr=((pe=Oe.context)==null?void 0:pe.elements.domReference)===W.currentTarget,Qt=J&&!dr?(Te=Oe.context)==null?void 0:Te.elements.domReference:ue?i.current.find(en=>(en==null?void 0:en.id)===K):null;Qt&&(oe(W),Qt.dispatchEvent(lt),j(void 0))}if(ye&&Oe.context&&Oe.context.open&&Oe.parentId&&W.currentTarget!==Oe.context.elements.domReference){var ct;oe(W),(ct=Oe.context.elements.domReference)==null||ct.dispatchEvent(lt);return}}return be(W)}if(!(!n&&!x&&Z)){if(st&&(v.current=h&&ye?null:W.key),h){ue&&(oe(W),n?(P.current=Mt(i,q.current),k(P.current)):r(!0,W.nativeEvent,"list-navigation"));return}ye&&(l!=null&&(P.current=l),oe(W),!n&&x?r(!0,W.nativeEvent,"list-navigation"):be(W),n&&k(P.current))}},onFocus(){n&&!d&&k(null)},onPointerDown:X,onMouseDown:$,onClick:$}},[K,we,be,q,p,i,h,k,r,n,x,b,a,l,O,d,A]);return m.useMemo(()=>u?{reference:Ke,floating:ge,item:Y}:{},[u,Ke,ge,Y])}const Ii=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ti(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,c=(n=Ii.get(s))!=null?n:s,u=it(),g=We()!=null,f=m.useMemo(()=>c==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":c==="alertdialog"?"dialog":c,"aria-controls":r?o:void 0,...c==="listbox"&&{role:"combobox"},...c==="menu"&&{id:u},...c==="menu"&&g&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[c,o,g,r,u,s]),h=m.useMemo(()=>{const d={id:o,...c&&{role:c}};return c==="tooltip"||s==="label"?d:{...d,...c==="menu"&&{"aria-labelledby":u}}},[c,o,u,s]),a=m.useCallback(d=>{let{active:p,selected:w}=d;const x={role:"option",...p&&{id:o+"-option"}};switch(s){case"select":return{...x,"aria-selected":p&&w};case"combobox":return{...x,...p&&{"aria-selected":!0}}}return{}},[o,s]);return m.useMemo(()=>i?{reference:f,floating:h,item:a}:{},[i,f,h,a])}function Oi(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:c,onTypingChange:u,enabled:l=!0,findMatch:g=null,resetMs:f=750,ignoreKeys:h=[],selectedIndex:a=null}=t,d=m.useRef(),p=m.useRef(""),w=m.useRef((n=a??s)!=null?n:-1),x=m.useRef(null),E=ie(c),b=ie(u),y=de(g),S=de(h);z(()=>{r&&(clearTimeout(d.current),x.current=null,p.current="")},[r]),z(()=>{if(r&&p.current===""){var O;w.current=(O=a??s)!=null?O:-1}},[r,a,s]);const A=ie(O=>{O?o.current.typing||(o.current.typing=O,b(O)):o.current.typing&&(o.current.typing=O,b(O))}),_=ie(O=>{function k(I,R,D){const V=y.current?y.current(R,D):R.find(T=>(T==null?void 0:T.toLocaleLowerCase().indexOf(D.toLocaleLowerCase()))===0);return V?I.indexOf(V):-1}const M=i.current;if(p.current.length>0&&p.current[0]!==" "&&(k(M,M,p.current)===-1?A(!1):O.key===" "&&oe(O)),M==null||S.current.includes(O.key)||O.key.length!==1||O.ctrlKey||O.metaKey||O.altKey)return;r&&O.key!==" "&&(oe(O),A(!0)),M.every(I=>{var R,D;return I?((R=I[0])==null?void 0:R.toLocaleLowerCase())!==((D=I[1])==null?void 0:D.toLocaleLowerCase()):!0})&&p.current===O.key&&(p.current="",w.current=x.current),p.current+=O.key,clearTimeout(d.current),d.current=setTimeout(()=>{p.current="",w.current=x.current,A(!1)},f);const v=w.current,C=k(M,[...M.slice((v||0)+1),...M.slice(0,(v||0)+1)],p.current);C!==-1?(E(C),x.current=C):O.key!==" "&&(p.current="",A(!1))}),B=m.useMemo(()=>({onKeyDown:_}),[_]),H=m.useMemo(()=>({onKeyDown:_,onKeyUp(O){O.key===" "&&A(!1)}}),[_,A]);return m.useMemo(()=>l?{reference:B,floating:H}:{},[l,B,H])}function Sn(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=0,c=i-1;s<i;c=s++){const[u,l]=t[s]||[0,0],[g,f]=t[c]||[0,0];l>=r!=f>=r&&n<=(g-u)*(r-l)/(f-l)+u&&(o=!o)}return o}function Pi(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Mi(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,s=null,c=null,u=performance.now();function l(f,h){const a=performance.now(),d=a-u;if(s===null||c===null||d===0)return s=f,c=h,u=a,null;const p=f-s,w=h-c,E=Math.sqrt(p*p+w*w)/d;return s=f,c=h,u=a,E}const g=f=>{let{x:h,y:a,placement:d,elements:p,onClose:w,nodeId:x,tree:E}=f;return function(y){function S(){clearTimeout(o),w()}if(clearTimeout(o),!p.domReference||!p.floating||d==null||h==null||a==null)return;const{clientX:A,clientY:_}=y,B=[A,_],H=Re(y),O=y.type==="mouseleave",k=ee(p.floating,H),M=ee(p.domReference,H),P=p.domReference.getBoundingClientRect(),v=p.floating.getBoundingClientRect(),C=d.split("-")[0],I=h>v.right-v.width/2,R=a>v.bottom-v.height/2,D=Pi(B,P),V=v.width>P.width,T=v.height>P.height,q=(V?P:v).left,re=(V?P:v).right,ce=(T?P:v).top,le=(T?P:v).bottom;if(k&&(i=!0,!O))return;if(M&&(i=!1),M&&!O){i=!0;return}if(O&&G(y.relatedTarget)&&ee(p.floating,y.relatedTarget)||E&&_e(E.nodesRef.current,x).some(N=>{let{context:F}=N;return F==null?void 0:F.open}))return;if(C==="top"&&a>=P.bottom-1||C==="bottom"&&a<=P.top+1||C==="left"&&h>=P.right-1||C==="right"&&h<=P.left+1)return S();let L=[];switch(C){case"top":L=[[q,P.top+1],[q,v.bottom-1],[re,v.bottom-1],[re,P.top+1]];break;case"bottom":L=[[q,v.top+1],[q,P.bottom-1],[re,P.bottom-1],[re,v.top+1]];break;case"left":L=[[v.right-1,le],[v.right-1,ce],[P.left+1,ce],[P.left+1,le]];break;case"right":L=[[P.right-1,le],[P.right-1,ce],[v.left+1,ce],[v.left+1,le]];break}function K(N){let[F,j]=N;switch(C){case"top":{const U=[V?F+t/2:I?F+t*4:F-t*4,j+t+1],Q=[V?F-t/2:I?F+t*4:F-t*4,j+t+1],Y=[[v.left,I||V?v.bottom-t:v.top],[v.right,I?V?v.bottom-t:v.top:v.bottom-t]];return[U,Q,...Y]}case"bottom":{const U=[V?F+t/2:I?F+t*4:F-t*4,j-t],Q=[V?F-t/2:I?F+t*4:F-t*4,j-t],Y=[[v.left,I||V?v.top+t:v.bottom],[v.right,I?V?v.top+t:v.bottom:v.top+t]];return[U,Q,...Y]}case"left":{const U=[F+t+1,T?j+t/2:R?j+t*4:j-t*4],Q=[F+t+1,T?j-t/2:R?j+t*4:j-t*4];return[...[[R||T?v.right-t:v.left,v.top],[R?T?v.right-t:v.left:v.right-t,v.bottom]],U,Q]}case"right":{const U=[F-t,T?j+t/2:R?j+t*4:j-t*4],Q=[F-t,T?j-t/2:R?j+t*4:j-t*4],Y=[[R||T?v.left+t:v.right,v.top],[R?T?v.left+t:v.right:v.left+t,v.bottom]];return[U,Q,...Y]}}}if(!Sn([A,_],L)){if(i&&!D)return S();if(!O&&r){const N=l(y.clientX,y.clientY);if(N!==null&&N<.1)return S()}Sn([A,_],K([h,a]))?!i&&r&&(o=window.setTimeout(S,40)):S()}}};return g.__options={blockPointerEvents:n},g}const ar=ve.createContext({}),fr=ve.createContext(null),Si=()=>{const e=ve.useContext(fr);if(e==null)throw new Error("Tooltip components must be wrapped in <HammerProvider /> or <TooltipGroupContext.Provider />");return e},Ai=e=>{var t,n;const{layoutStyles:r,componentProps:o}=nn.J(e),{themeData:i,localizationData:s,children:c,className:u,style:l,...g}=o,{theme:f=mr.x,mode:h="light"}=i??{},{locale:a="en",dir:d="ltr",translations:p={}}=s??{},{className:w}=tn.E({theme:f,mode:h}),x=pr.G(w,u),E={...l,...r},b=nn.H(),[y,S]=ve.useState(!1),A=parseInt(((n=(t=hr.primitive)==null?void 0:t.Duration)==null?void 0:n.value.replace("ms",""))??"200",10),_=ve.useMemo(()=>({disableDelayGroup:S}),[y]);return $e.fr.jsx(ar.Provider,{value:{breakpoint:b},children:$e.fr.jsx(tn.C.Provider,{value:{theme:f,mode:h},children:$e.fr.jsx(fr.Provider,{value:_,children:y?$e.fr.jsx(rn.LocalizationProvider,{translationData:{locale:a,dir:d,translations:p},className:x,style:E,...g,children:c}):$e.fr.jsx(ei,{delay:A,children:$e.fr.jsx(rn.LocalizationProvider,{translationData:{locale:a,dir:d,translations:p},className:x,style:E,...g,children:c})})})})})};exports.FloatingArrow=Yo;exports.FloatingFocusManager=gi;exports.FloatingList=Ho;exports.FloatingNode=Zo;exports.FloatingPortal=di;exports.FloatingTree=Jo;exports.M=ar;exports.X=Si;exports.Y=Ai;exports.arrow=ko;exports.autoUpdate=yo;exports.flip=Ao;exports.limitShift=So;exports.offset=Po;exports.safePolygon=Mi;exports.shift=Mo;exports.size=Do;exports.useClick=pi;exports.useDelayGroup=ti;exports.useDelayGroupContext=rr;exports.useDismiss=bi;exports.useFloating=xi;exports.useFloatingNodeId=Xo;exports.useFloatingParentNodeId=We;exports.useFloatingTree=Be;exports.useFocus=wi;exports.useHover=Qo;exports.useInteractions=Ri;exports.useListItem=jo;exports.useListNavigation=Ci;exports.useMergeRefs=Lo;exports.useRole=Ti;exports.useTypeahead=Oi;
5
- //# sourceMappingURL=index-63a9d04d.cjs.map