@optiaxiom/web-components 0.11.4 → 0.11.5

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 (458) hide show
  1. package/dist/ActionsRoot-BHxcdcl_.js +1 -0
  2. package/dist/AlertDialogContext-DPNbeb0T.js +1 -0
  3. package/dist/AngleMenuButton-CxQruAja.js +1 -0
  4. package/dist/Avatar-Bxunn8h0.js +1 -0
  5. package/dist/AvatarContext-DLdx9PD0.js +1 -0
  6. package/dist/AvatarGroup-CvIZpGZ_.js +1 -0
  7. package/dist/Badge-91OzCCQC.js +1 -0
  8. package/dist/Box-Cr20ughf.js +1 -0
  9. package/dist/{Button-CRLHYpWL.js → Button-9bqeeeN8.js} +1 -1
  10. package/dist/ButtonContext-Dv7p_kTW.js +1 -0
  11. package/dist/ButtonGroup-Dg21BuOC.js +1 -0
  12. package/dist/ButtonRoot-agfgxNmd.js +1 -0
  13. package/dist/Calendar-MzNsjnON.js +1 -0
  14. package/dist/CardContext-CcG7GlvV.js +1 -0
  15. package/dist/Checkbox-DhtWToYW.js +1 -0
  16. package/dist/{Combination-DvZrHiy-.js → Combination-DhkBCJAa.js} +1 -1
  17. package/dist/Cover-DR8dugUi.js +1 -0
  18. package/dist/Cover.css.ts.vanilla-RmCQvM0v-DxYJ0ecC.js +1 -0
  19. package/dist/{DataTableAction-Czen03c0.js → DataTableAction-BwGJa4UM.js} +1 -1
  20. package/dist/DataTableContext-BjGuZrdY.js +1 -0
  21. package/dist/{DataTableRowContext-8DQIQ2_i.js → DataTableRowContext-BSeAo4Pw.js} +1 -1
  22. package/dist/DateRangePickerContext-BVfeiMX2.js +1 -0
  23. package/dist/Dialog-ClOf6V08.js +1 -0
  24. package/dist/DialogBody-CDknZsDX.js +1 -0
  25. package/dist/DialogBody.css.ts.vanilla-a23vAAu3-BE71vt4R.js +1 -0
  26. package/dist/DialogFooter-BDO6rzUA.js +1 -0
  27. package/dist/{DialogForm-B-7Cr20s.js → DialogForm-DwONfQCC.js} +1 -1
  28. package/dist/DialogTrigger-C6trhvhl.js +1 -0
  29. package/dist/{Disclosure-DQljZcd7.js → Disclosure-DZ3tUQ6f.js} +1 -1
  30. package/dist/DisclosureContent-lEZ2dYMk.js +1 -0
  31. package/dist/{DisclosureContext-CcucE0QV.js → DisclosureContext-Bz51lKrp.js} +1 -1
  32. package/dist/DisclosureTrigger-BT4MD8eL.js +1 -0
  33. package/dist/DropdownMenuContext-B5Qp0bkp.js +1 -0
  34. package/dist/DropdownMenuNestedContext-BQe-0KHy.js +1 -0
  35. package/dist/DropdownMenuSubContext-DKRCaLKQ.js +1 -0
  36. package/dist/{FieldContext-NtZnaJ9O.js → FieldContext-CBtRnch0.js} +1 -1
  37. package/dist/{FieldLabel-sIRM7EmS.js → FieldLabel-Cuh0GjRU.js} +1 -1
  38. package/dist/{FilteredSlot-2gCbFLym.js → FilteredSlot-D_I8ketX.js} +1 -1
  39. package/dist/{Flex-DLI5WBYT.js → Flex-DqdP2jGg.js} +1 -1
  40. package/dist/Heading-BkP0MjHs.js +1 -0
  41. package/dist/Icon-BaKq_Lbe.js +1 -0
  42. package/dist/IconAngleDown-CemEaDrt.js +1 -0
  43. package/dist/IconAngleLeft-x7YoRoct.js +1 -0
  44. package/dist/IconAngleRight-dhmNW8-3.js +1 -0
  45. package/dist/{IconCalendar-WO3-tW4P.js → IconCalendar-BpFEFWde.js} +1 -1
  46. package/dist/{IconEllipsis-CJu32k_o.js → IconEllipsis-CTf-gfYl.js} +1 -1
  47. package/dist/{IconEllipsisSolid-Cn_mmNhn.js → IconEllipsisSolid-B4oOEznP.js} +1 -1
  48. package/dist/{IconMagnifyingGlass-Bue7FFHG.js → IconMagnifyingGlass-BMqjRrm7.js} +1 -1
  49. package/dist/{IconOpal-DBRwN8_1.js → IconOpal-hpqUfenw.js} +1 -1
  50. package/dist/{IconTriangleExclamationSolid-ChuyYooE.js → IconTriangleExclamationSolid-D6gkVWPl.js} +1 -1
  51. package/dist/IconUpRightFromSquare-BFamYw08.js +1 -0
  52. package/dist/{IconX-BMvseoed.js → IconX-DN16ZqDt.js} +1 -1
  53. package/dist/{Input-B-QCAhEH.js → Input-BPaijLgk.js} +1 -1
  54. package/dist/{InputAddon-DqVnDHwp.js → InputAddon-2bV53QNQ.js} +1 -1
  55. package/dist/InputContext-BC-QPd5D.js +1 -0
  56. package/dist/InputControl-C4lyGk8s.js +1 -0
  57. package/dist/InputControl.css.ts.vanilla-DUBX4Ta8-BgUKCorN.js +1 -0
  58. package/dist/InputRoot-B48Exj0I.js +1 -0
  59. package/dist/Link-BJAUyDHe.js +1 -0
  60. package/dist/{Listbox-BNd-jmFV.js → Listbox-CIj4LYiJ.js} +1 -1
  61. package/dist/{ListboxCheckboxItem-CT66EydF.js → ListboxCheckboxItem-CtWD7yGi.js} +1 -1
  62. package/dist/ListboxCheckboxItem-css-D6iklRaS.js +1 -0
  63. package/dist/{ListboxEmpty-DooLuAOM.js → ListboxEmpty-Dio9M1kh.js} +1 -1
  64. package/dist/ListboxGroup-BaK9s8on.js +1 -0
  65. package/dist/ListboxGroupContext-BDXOP9Cb.js +1 -0
  66. package/dist/ListboxItem-Ctz5cH72.js +1 -0
  67. package/dist/ListboxItemIndicator-BuN3jxTF.js +1 -0
  68. package/dist/ListboxItemized-CTJCxAvL.js +1 -0
  69. package/dist/ListboxLabel-B18Lkku7.js +1 -0
  70. package/dist/{ListboxRadioItem-DGVrwXmu.js → ListboxRadioItem-CZw5GmHa.js} +1 -1
  71. package/dist/ListboxSeparator-6jGexI3k.js +1 -0
  72. package/dist/{ListboxSwitchItem-BWOXYObg.js → ListboxSwitchItem-ByKNlcQ-.js} +1 -1
  73. package/dist/Menu-BXDRgIXZ.js +1 -0
  74. package/dist/MenuContent-Cgx3Q5h9.js +1 -0
  75. package/dist/MenuContext-BuhliqAa.js +1 -0
  76. package/dist/MenuSubContext-D2J7DEtv.js +1 -0
  77. package/dist/MenuTrigger-W-EQw6Um.js +1 -0
  78. package/dist/ModalContext-CVPwrRHy.js +1 -0
  79. package/dist/{ModalLayer-Cd3tRWEv.js → ModalLayer-CDW0kbtZ.js} +1 -1
  80. package/dist/ModalListbox-OH94IjhY.js +9 -0
  81. package/dist/Nav--6EziVq-.js +1 -0
  82. package/dist/NavAccountItem-BcIJXybQ.js +1 -0
  83. package/dist/{NavBody-joUiZWF4.js → NavBody-BdlE2ITi.js} +1 -1
  84. package/dist/NavFooter-0VNp8rmY.js +1 -0
  85. package/dist/{NavGroup-EJRzd5UH.js → NavGroup-h4yfNxWW.js} +1 -1
  86. package/dist/{NavGroupContent-C7xDmCS1.js → NavGroupContent-BHG92egs.js} +1 -1
  87. package/dist/{NavGroupContext-Ge8Dk3pf.js → NavGroupContext-D9M6PXwh.js} +1 -1
  88. package/dist/{NavGroupTrigger-DepWZF-q.js → NavGroupTrigger-DOCxpbf7.js} +1 -1
  89. package/dist/NavHeader-BSGWNEWk.js +1 -0
  90. package/dist/NavItem-DhkXuE1_.js +1 -0
  91. package/dist/{NavList-CyGn63jn.js → NavList-CWU64Qbd.js} +1 -1
  92. package/dist/NavSeparator--C1uDTCs.js +1 -0
  93. package/dist/Pagination-DvzftQCc.js +1 -0
  94. package/dist/{Paper-CwBok2ke.js → Paper-DFFK7-LU.js} +1 -1
  95. package/dist/{Popover-DxV40jiu.js → Popover-CJQS9Ho5.js} +1 -1
  96. package/dist/{PopoverAnchor-B3rNI1kI.js → PopoverAnchor-BlXYXlxF.js} +1 -1
  97. package/dist/PopoverContent-DiUCtecw.js +1 -0
  98. package/dist/{PopoverTrigger-BfbQCzrG.js → PopoverTrigger-B8ahRCYw.js} +1 -1
  99. package/dist/Portal-CjwWghtt.js +1 -0
  100. package/dist/PortalContext-C_hR3hye.js +1 -0
  101. package/dist/RadioGroupContext-DkHE5Z9C.js +1 -0
  102. package/dist/{SegmentedControlContext-CDa7LSNf.js → SegmentedControlContext-jnJj4kf4.js} +1 -1
  103. package/dist/{Select-DUSGBkz4.js → Select-BafVVI87.js} +1 -1
  104. package/dist/{SelectContent-B2BWktYd.js → SelectContent-VVzVSc8r.js} +1 -1
  105. package/dist/SelectContext-ByOXEY8P.js +1 -0
  106. package/dist/SelectTrigger-eUTfmyA6.js +1 -0
  107. package/dist/Separator-BlUpFlXE.js +1 -0
  108. package/dist/SidebarContext-uDy2by9i.js +1 -0
  109. package/dist/Skeleton-8QAO83xg.js +1 -0
  110. package/dist/Spinner-C_APwdP1.js +1 -0
  111. package/dist/Switch-B2X4_s62.js +1 -0
  112. package/dist/Table-DqMKis6U.js +1 -0
  113. package/dist/TableAction-DASXjYOq.js +1 -0
  114. package/dist/TableBody-x3DDHfsx.js +1 -0
  115. package/dist/TableCell-CmxgFH2B.js +1 -0
  116. package/dist/TableHeader-B3Imh0su.js +1 -0
  117. package/dist/TableHeaderCell-CXSfNR1J.js +1 -0
  118. package/dist/TableRow-DktO_ERq.js +1 -0
  119. package/dist/TableRow.css.ts.vanilla-C09g72DC-1r8kymoP.js +1 -0
  120. package/dist/Text-C34uQDY_.js +1 -0
  121. package/dist/{ThemeProvider-B37usVts.js → ThemeProvider-BSSHn2EI.js} +1 -1
  122. package/dist/Toast-anFY8tgt.js +1 -0
  123. package/dist/{ToastAction-DOiTY92p.js → ToastAction-DypMT5-D.js} +1 -1
  124. package/dist/ToastProvider-DGmpkvK6.js +1 -0
  125. package/dist/{ToastTitle-C3jRLGPM.js → ToastTitle-70B0jhQH.js} +1 -1
  126. package/dist/ToggleInputLabel-BQbkAe_T.js +1 -0
  127. package/dist/{Tooltip-O0KfdZL1.js → Tooltip-C47iOqIg.js} +1 -1
  128. package/dist/TooltipContent-D8oAbwTj.js +1 -0
  129. package/dist/TooltipContext-DFJzknkH.js +1 -0
  130. package/dist/TooltipProvider-Det2ns7Y.js +1 -0
  131. package/dist/{TooltipRoot--MsvEhOq.js → TooltipRoot-4XMgNYIp.js} +1 -1
  132. package/dist/TooltipTrigger-DhRVP_si.js +1 -0
  133. package/dist/Transition-CThX9G5o.js +1 -0
  134. package/dist/{TransitionGroup-B8KauFq5.js → TransitionGroup-CXyOQF7O.js} +1 -1
  135. package/dist/TransitionGroupContext-BdeVkgEI.js +1 -0
  136. package/dist/VisuallyHidden-CWp-39oK.js +1 -0
  137. package/dist/components/Alert.js +1 -1
  138. package/dist/components/AlertDialog.js +1 -1
  139. package/dist/components/AlertDialogAction.d.ts +1 -1
  140. package/dist/components/AlertDialogAction.js +1 -1
  141. package/dist/components/AlertDialogBody.js +1 -1
  142. package/dist/components/AlertDialogCancel.d.ts +1 -1
  143. package/dist/components/AlertDialogCancel.js +1 -1
  144. package/dist/components/AlertDialogContent.d.ts +3 -1
  145. package/dist/components/AlertDialogContent.js +1 -1
  146. package/dist/components/AlertDialogFooter.js +1 -1
  147. package/dist/components/AlertDialogHeader.js +1 -1
  148. package/dist/components/AlertDialogTrigger.d.ts +1 -1
  149. package/dist/components/AlertDialogTrigger.js +1 -1
  150. package/dist/components/AngleMenuButton.d.ts +1 -1
  151. package/dist/components/AngleMenuButton.js +1 -1
  152. package/dist/components/AuthProvider.js +1 -1
  153. package/dist/components/Avatar.js +1 -1
  154. package/dist/components/AvatarGroup.js +1 -1
  155. package/dist/components/AxiomProvider.js +1 -1
  156. package/dist/components/Badge.js +1 -1
  157. package/dist/components/Banner.js +1 -1
  158. package/dist/components/Box.d.ts +2 -0
  159. package/dist/components/Box.js +1 -1
  160. package/dist/components/Breadcrumb.js +1 -1
  161. package/dist/components/Button.d.ts +1 -1
  162. package/dist/components/Button.js +1 -1
  163. package/dist/components/ButtonGroup.js +1 -1
  164. package/dist/components/Card.js +1 -1
  165. package/dist/components/CardAction.js +1 -1
  166. package/dist/components/CardCheckbox.js +1 -1
  167. package/dist/components/CardFooter.js +1 -1
  168. package/dist/components/CardHeader.js +1 -1
  169. package/dist/components/CardImage.js +1 -1
  170. package/dist/components/CardLink.js +1 -1
  171. package/dist/components/CardPreview.js +1 -1
  172. package/dist/components/Checkbox.js +1 -1
  173. package/dist/components/Code.js +1 -1
  174. package/dist/components/Cover.js +1 -1
  175. package/dist/components/DataTable.js +1 -1
  176. package/dist/components/DataTableAction.js +1 -1
  177. package/dist/components/DataTableBody.js +2 -2
  178. package/dist/components/DataTableCheckbox.js +1 -1
  179. package/dist/components/DataTableFooter.js +1 -1
  180. package/dist/components/DataTableLabel.js +1 -1
  181. package/dist/components/DateInput.js +1 -1
  182. package/dist/components/DateRangePicker.js +1 -1
  183. package/dist/components/DateRangePickerContent.js +1 -1
  184. package/dist/components/DateRangePickerTrigger.d.ts +1 -1
  185. package/dist/components/DateRangePickerTrigger.js +1 -1
  186. package/dist/components/Dialog.js +1 -1
  187. package/dist/components/DialogBody.js +1 -1
  188. package/dist/components/DialogClose.d.ts +1 -1
  189. package/dist/components/DialogClose.js +1 -1
  190. package/dist/components/DialogContent.js +1 -1
  191. package/dist/components/DialogFooter.js +1 -1
  192. package/dist/components/DialogForm.js +1 -1
  193. package/dist/components/DialogHeader.js +1 -1
  194. package/dist/components/DialogTrigger.d.ts +1 -1
  195. package/dist/components/DialogTrigger.js +1 -1
  196. package/dist/components/Disclosure.js +1 -1
  197. package/dist/components/DisclosureContent.js +1 -1
  198. package/dist/components/DisclosureTrigger.js +1 -1
  199. package/dist/components/DropdownMenu.js +1 -1
  200. package/dist/components/DropdownMenuCheckboxItem.js +1 -1
  201. package/dist/components/DropdownMenuContent.js +1 -1
  202. package/dist/components/DropdownMenuGroup.js +1 -1
  203. package/dist/components/DropdownMenuItem.js +1 -1
  204. package/dist/components/DropdownMenuLabel.js +1 -1
  205. package/dist/components/DropdownMenuSeparator.js +1 -1
  206. package/dist/components/DropdownMenuSub.js +1 -1
  207. package/dist/components/DropdownMenuSubContent.js +1 -1
  208. package/dist/components/DropdownMenuTrigger.d.ts +1 -1
  209. package/dist/components/DropdownMenuTrigger.js +1 -1
  210. package/dist/components/EllipsisMenuButton.d.ts +1 -1
  211. package/dist/components/EllipsisMenuButton.js +1 -1
  212. package/dist/components/Field.js +1 -1
  213. package/dist/components/FieldLabel.js +1 -1
  214. package/dist/components/Flex.js +1 -1
  215. package/dist/components/Grid.js +1 -1
  216. package/dist/components/Heading.js +1 -1
  217. package/dist/components/Indicator.js +1 -1
  218. package/dist/components/Input.js +1 -1
  219. package/dist/components/InputAddon.js +1 -1
  220. package/dist/components/InputControl.js +1 -1
  221. package/dist/components/InputRoot.js +1 -1
  222. package/dist/components/Kbd.js +1 -1
  223. package/dist/components/LabelMenuButton.js +1 -1
  224. package/dist/components/Link.js +1 -1
  225. package/dist/components/Listbox.js +1 -1
  226. package/dist/components/ListboxCheckboxItem.js +1 -1
  227. package/dist/components/ListboxEmpty.js +1 -1
  228. package/dist/components/ListboxGroup.js +1 -1
  229. package/dist/components/ListboxItem.js +1 -1
  230. package/dist/components/ListboxItemIndicator.js +1 -1
  231. package/dist/components/ListboxItemized.js +1 -1
  232. package/dist/components/ListboxLabel.js +1 -1
  233. package/dist/components/ListboxRadioItem.js +1 -1
  234. package/dist/components/ListboxSeparator.js +1 -1
  235. package/dist/components/ListboxSwitchItem.js +1 -1
  236. package/dist/components/Menu.js +1 -1
  237. package/dist/components/MenuContent.js +1 -1
  238. package/dist/components/MenuTrigger.d.ts +1 -1
  239. package/dist/components/MenuTrigger.js +1 -1
  240. package/dist/components/ModalLayer.js +1 -1
  241. package/dist/components/ModalProvider.js +1 -1
  242. package/dist/components/Nav.js +1 -1
  243. package/dist/components/NavAccountItem.js +1 -1
  244. package/dist/components/NavBody.js +1 -1
  245. package/dist/components/NavFooter.js +1 -1
  246. package/dist/components/NavGroup.js +1 -1
  247. package/dist/components/NavGroupContent.js +1 -1
  248. package/dist/components/NavGroupTrigger.js +1 -1
  249. package/dist/components/NavHeader.js +1 -1
  250. package/dist/components/NavItem.js +1 -1
  251. package/dist/components/NavList.js +1 -1
  252. package/dist/components/NavSeparator.js +1 -1
  253. package/dist/components/Pagination.js +1 -1
  254. package/dist/components/Paper.js +1 -1
  255. package/dist/components/Popover.js +1 -1
  256. package/dist/components/PopoverAnchor.js +1 -1
  257. package/dist/components/PopoverContent.js +1 -1
  258. package/dist/components/PopoverTrigger.d.ts +1 -1
  259. package/dist/components/PopoverTrigger.js +1 -1
  260. package/dist/components/Progress.d.ts +1 -1
  261. package/dist/components/Progress.js +3 -3
  262. package/dist/components/Radio.js +1 -1
  263. package/dist/components/RadioGroup.js +1 -1
  264. package/dist/components/SearchInput.js +1 -1
  265. package/dist/components/SegmentedControl.js +1 -1
  266. package/dist/components/SegmentedControlItem.d.ts +1 -1
  267. package/dist/components/SegmentedControlItem.js +1 -1
  268. package/dist/components/Select.js +1 -1
  269. package/dist/components/SelectContent.js +1 -1
  270. package/dist/components/SelectTrigger.d.ts +1 -1
  271. package/dist/components/SelectTrigger.js +1 -1
  272. package/dist/components/Separator.js +1 -1
  273. package/dist/components/Sidebar.js +1 -1
  274. package/dist/components/SidebarToggle.js +1 -1
  275. package/dist/components/Skeleton.js +1 -1
  276. package/dist/components/Spinner.js +1 -1
  277. package/dist/components/SubNav.js +1 -1
  278. package/dist/components/Switch.js +1 -1
  279. package/dist/components/Table.js +1 -1
  280. package/dist/components/TableAction.js +1 -1
  281. package/dist/components/TableBody.js +1 -1
  282. package/dist/components/TableCell.js +1 -1
  283. package/dist/components/TableHeader.js +1 -1
  284. package/dist/components/TableHeaderCell.js +1 -1
  285. package/dist/components/TableRow.js +1 -1
  286. package/dist/components/Tabs.js +1 -1
  287. package/dist/components/TabsContent.js +1 -1
  288. package/dist/components/TabsList.js +1 -1
  289. package/dist/components/TabsTrigger.js +1 -1
  290. package/dist/components/Text.js +1 -1
  291. package/dist/components/Textarea.js +1 -1
  292. package/dist/components/ThemeProvider.js +1 -1
  293. package/dist/components/Toast.js +1 -1
  294. package/dist/components/ToastAction.d.ts +1 -1
  295. package/dist/components/ToastAction.js +1 -1
  296. package/dist/components/ToastProvider.js +1 -1
  297. package/dist/components/ToastTitle.js +1 -1
  298. package/dist/components/ToggleButton.js +1 -1
  299. package/dist/components/Tooltip.d.ts +2 -0
  300. package/dist/components/Tooltip.js +1 -1
  301. package/dist/components/TooltipContent.js +1 -1
  302. package/dist/components/TooltipProvider.js +1 -1
  303. package/dist/components/TooltipRoot.js +1 -1
  304. package/dist/components/TooltipTrigger.js +1 -1
  305. package/dist/components/Transition.js +1 -1
  306. package/dist/components/TransitionGroup.js +1 -1
  307. package/dist/context-Bup9kdFb.js +1 -0
  308. package/dist/{decorateChildren-CAhVhIqr.js → decorateChildren-B60NrnKO.js} +1 -1
  309. package/dist/fallbackSpan-CYhSe21x.js +1 -0
  310. package/dist/index-85zwJFB7.js +5 -0
  311. package/dist/{index-I4wC3kNh.js → index-B0sAyGf3.js} +1 -1
  312. package/dist/{index-dKvNFmbc.js → index-BCqxaYEI.js} +1 -1
  313. package/dist/{index-BMayn-BE.js → index-BEpkWDE0.js} +1 -1
  314. package/dist/index-Bmor3O8m.js +1 -0
  315. package/dist/{index-Dk1TWVhX.js → index-BofLl5_Z.js} +1 -1
  316. package/dist/{index-BuiFF3Pa.js → index-BsCT-ch_.js} +1 -1
  317. package/dist/{index-CioOvWUM.js → index-CJ0QOiV8.js} +1 -1
  318. package/dist/{index-Dvzx6tAx.js → index-CM7CXvTc.js} +1 -1
  319. package/dist/{index-BixkCfDq.js → index-CNf78vIZ.js} +1 -1
  320. package/dist/{index-GvQdUz_b.js → index-Ci8exF1b.js} +1 -1
  321. package/dist/{index-DCSpceF2.js → index-CupZ5Eqy.js} +1 -1
  322. package/dist/{index-B0RuosXF.js → index-CzZb9Rq6.js} +1 -1
  323. package/dist/index-CziPN18O.js +1 -0
  324. package/dist/{index-xs6bJfe_.js → index-D5-zV3iG.js} +1 -1
  325. package/dist/index-DCG7lY5J.js +1 -0
  326. package/dist/index-DUlzSpV2.js +1 -0
  327. package/dist/{index-DRpDdidj.js → index-DXhcISXb.js} +1 -1
  328. package/dist/{index-t_qcTqTZ.js → index-DiX3mLZj.js} +1 -1
  329. package/dist/{index-RGt5ltxP.js → index-DnPaEh-j.js} +1 -1
  330. package/dist/{index-CelP4jqL.js → index-DnjnKd4S.js} +1 -1
  331. package/dist/{index-DhLNBI-N.js → index-DtSaXaX6.js} +1 -1
  332. package/dist/{index-D_mYz8h8.js → index-DuFSApHy.js} +1 -1
  333. package/dist/index-sqgZ-Tor.js +1 -0
  334. package/dist/index.d.ts +23 -17
  335. package/dist/index.js +1 -1
  336. package/dist/layers.css.ts.vanilla-C4q1Lh94-cr2rqJ1f.js +1 -0
  337. package/dist/onReactSelectInputBlur-DWQUX_Tq.js +1 -0
  338. package/dist/propTypes-DMi9Skz5.js +1 -0
  339. package/dist/recipeRuntime-BvPxdQJv.js +1 -0
  340. package/dist/register-JRHiicj_.js +6 -0
  341. package/dist/{useEffectEvent-4zEPCoYL.js → useEffectEvent-BYrdqEvy.js} +1 -1
  342. package/dist/{useFieldLabelTrigger-D4wFMy6O.js → useFieldLabelTrigger-DaFVr9jh.js} +1 -1
  343. package/dist/{useHighlightedIndex-D1aqjjkk.js → useHighlightedIndex-ChQHT0Vy.js} +1 -1
  344. package/dist/{useObserveValue-Cjmzt6mG.js → useObserveValue-CtqZTlv5.js} +1 -1
  345. package/dist/{usePopoverScope-B25EsXSw.js → usePopoverScope-DEFBW_iI.js} +1 -1
  346. package/dist/{withIcon-BjAeU9hq.js → withIcon-JDoRELIC.js} +1 -1
  347. package/package.json +6 -6
  348. package/dist/ActionsRoot-C1T34png.js +0 -1
  349. package/dist/AlertDialogContext-CeZtutvH.js +0 -1
  350. package/dist/AngleMenuButton-x_zlUxdB.js +0 -1
  351. package/dist/Avatar-DNJH83xd.js +0 -1
  352. package/dist/AvatarContext-Dkmor9Yg.js +0 -1
  353. package/dist/AvatarGroup-D8XvhusL.js +0 -1
  354. package/dist/Backdrop-Dh9IZv4x.js +0 -1
  355. package/dist/Badge-CK_xEgOT.js +0 -1
  356. package/dist/Box-DNUAYM_u.js +0 -1
  357. package/dist/ButtonContext-Dy8WeKd4.js +0 -1
  358. package/dist/ButtonGroup-BXGThR2P.js +0 -1
  359. package/dist/ButtonRoot-CAVnGSks.js +0 -1
  360. package/dist/Calendar-DEp7QDTd.js +0 -1
  361. package/dist/CardContext-BJUGblCr.js +0 -1
  362. package/dist/Checkbox-PJgVDlkI.js +0 -1
  363. package/dist/Cover-CmRxpN6d.js +0 -1
  364. package/dist/Cover.css.ts.vanilla-BxK1B0uK-Gx-67DFl.js +0 -1
  365. package/dist/DataTableContext-DyBy1iH0.js +0 -1
  366. package/dist/DateRangePickerContext-CpSA-3RJ.js +0 -1
  367. package/dist/Dialog-C3Pzvbd5.js +0 -1
  368. package/dist/DialogBody-Bp5fGUMQ.js +0 -1
  369. package/dist/DialogBody.css.ts.vanilla-Ciq9eYSG-BVuVmZJR.js +0 -1
  370. package/dist/DialogClose-CTkBWFqZ.js +0 -1
  371. package/dist/DialogContent-DHXRF1LG.js +0 -1
  372. package/dist/DialogContext-BZ2eYjq2.js +0 -1
  373. package/dist/DialogFooter-THAOkF-J.js +0 -1
  374. package/dist/DialogHeader-ChuIloPJ.js +0 -1
  375. package/dist/DialogTrigger-FRxtZ-8x.js +0 -1
  376. package/dist/DisclosureContent-Dx1p49PX.js +0 -1
  377. package/dist/DisclosureTrigger-CgsSf-lV.js +0 -1
  378. package/dist/DropdownMenuContext-U_4_c154.js +0 -1
  379. package/dist/DropdownMenuNestedContext-CfcaghYf.js +0 -1
  380. package/dist/DropdownMenuSubContext-B7j7s1OT.js +0 -1
  381. package/dist/FocusBookmarkRestore-BJIFbfAW.js +0 -1
  382. package/dist/Heading-CkauYwth.js +0 -1
  383. package/dist/Icon-CwjZJQfa.js +0 -1
  384. package/dist/IconAngleDown-CquCWq-4.js +0 -1
  385. package/dist/IconAngleLeft-BDsu4GWr.js +0 -1
  386. package/dist/IconAngleRight-DOo7eDA_.js +0 -1
  387. package/dist/InputContext-BHW4AwCp.js +0 -1
  388. package/dist/InputControl-bdJOujhk.js +0 -1
  389. package/dist/InputControl.css.ts.vanilla-zLXYMHfW-BKBnA9aS.js +0 -1
  390. package/dist/InputRoot-swHdSruI.js +0 -1
  391. package/dist/Link-CSGV0a-b.js +0 -1
  392. package/dist/ListboxCheckboxItem-css-CXTv30in.js +0 -1
  393. package/dist/ListboxGroup-BsSxV02m.js +0 -1
  394. package/dist/ListboxGroupContext-BqZKE7kP.js +0 -1
  395. package/dist/ListboxItem-B0kPUDTj.js +0 -1
  396. package/dist/ListboxItemIndicator-DfHw-a-V.js +0 -1
  397. package/dist/ListboxItemized-BGGAr_VZ.js +0 -1
  398. package/dist/ListboxLabel-BgmTLbv-.js +0 -1
  399. package/dist/ListboxSeparator-DNEl1wFe.js +0 -1
  400. package/dist/Menu-B7__GAd_.js +0 -1
  401. package/dist/MenuContent-BCSE1Lkd.js +0 -1
  402. package/dist/MenuContext-CHEDP5pr.js +0 -1
  403. package/dist/MenuSubContext-BE7q8TxL.js +0 -1
  404. package/dist/MenuTrigger-ConIV5So.js +0 -1
  405. package/dist/ModalContext-COiP6bjQ.js +0 -1
  406. package/dist/ModalListbox-Gs5WgH-E.js +0 -9
  407. package/dist/Nav-DmgolwV6.js +0 -1
  408. package/dist/NavAccountItem-CV27E1IC.js +0 -1
  409. package/dist/NavFooter-Bf3NEdpG.js +0 -1
  410. package/dist/NavHeader-ChSX8-sm.js +0 -1
  411. package/dist/NavItem-CttwMa8B.js +0 -1
  412. package/dist/NavSeparator-eSxHpqWa.js +0 -1
  413. package/dist/Pagination-CES81ocw.js +0 -1
  414. package/dist/PopoverContent-1u2Wx1Qt.js +0 -1
  415. package/dist/Portal-CYHizq6P.js +0 -1
  416. package/dist/PortalContext-Btyf8uXp.js +0 -1
  417. package/dist/RadioGroupContext-DAssrbmc.js +0 -1
  418. package/dist/SelectContext-CZCj2rZ5.js +0 -1
  419. package/dist/SelectTrigger-mNhLJiwy.js +0 -1
  420. package/dist/Separator-Bxd55ISL.js +0 -1
  421. package/dist/SidebarContext-5p2c_30E.js +0 -1
  422. package/dist/Skeleton-CgJP-0Kp.js +0 -1
  423. package/dist/Spinner-C0Ru0g8o.js +0 -1
  424. package/dist/Switch-Npxl-gRc.js +0 -1
  425. package/dist/Table-DbOCj0La.js +0 -1
  426. package/dist/TableAction-7FPsGiCL.js +0 -1
  427. package/dist/TableBody-BUV1Qjl1.js +0 -1
  428. package/dist/TableCell-CfLhAxAk.js +0 -1
  429. package/dist/TableHeader-DHL0p6ti.js +0 -1
  430. package/dist/TableHeaderCell-Bx_CmUng.js +0 -1
  431. package/dist/TableRow-BUl4YSI8.js +0 -1
  432. package/dist/TableRow.css.ts.vanilla-Ch_QNw3Y-CvB2qEZ9.js +0 -1
  433. package/dist/Text-Cnsbs024.js +0 -1
  434. package/dist/Toast-B3afyiW1.js +0 -1
  435. package/dist/ToastProvider-BMIIpIji.js +0 -1
  436. package/dist/ToggleInputLabel-dW09GLST.js +0 -1
  437. package/dist/TooltipContent-B7jJW1lp.js +0 -1
  438. package/dist/TooltipContext-Dz91qNsU.js +0 -1
  439. package/dist/TooltipProvider-DoRuEqy4.js +0 -1
  440. package/dist/TooltipTrigger-Bhx9gQfF.js +0 -1
  441. package/dist/Transition-DKedw7bT.js +0 -1
  442. package/dist/TransitionGroupContext-lwodz3R_.js +0 -1
  443. package/dist/VisuallyHidden-8ozqqgpj.js +0 -1
  444. package/dist/context-o8lypl0l.js +0 -1
  445. package/dist/fallbackSpan-BGaGCVGw.js +0 -1
  446. package/dist/index-7y0exDvW.js +0 -1
  447. package/dist/index-D74nkuvl.js +0 -7
  448. package/dist/index-DBfbOmGz.js +0 -1
  449. package/dist/index-DO0sHCSW.js +0 -1
  450. package/dist/index-DgruwXLP.js +0 -1
  451. package/dist/index-Lku4rFeA.js +0 -5
  452. package/dist/index-Vx5DGpol.js +0 -1
  453. package/dist/layers.css.ts.vanilla-CFmysNEj-DWSt1f3_.js +0 -1
  454. package/dist/onReactSelectInputBlur-Ccsx5sdl.js +0 -1
  455. package/dist/propTypes-DJgNX0F2.js +0 -1
  456. package/dist/recipeRuntime-DkvY0ny0.js +0 -1
  457. package/dist/register-Co5bzKo4.js +0 -6
  458. package/dist/useNestedDialogCount-D_Yq_Wj2.js +0 -1
@@ -1 +1 @@
1
- import{K as S,T as d,u as P,x as l}from"./register-Co5bzKo4.js";function w(t,c){const o=S(c),i=r=>{const{children:e,...n}=r,s=d(()=>n,Object.values(n));return P(o.Provider,{value:s,children:e})};i.displayName=t+"Provider";function u(r){const e=l(o);if(e)return e;if(c!==void 0)return c;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[i,u]}function C(t,c=[]){let o=[];function i(r,e){const n=S(e),s=o.length;o=[...o,e];const a=p=>{const{scope:v,children:f,...x}=p,m=v?.[t]?.[s]||n,$=d(()=>x,Object.values(x));return P(m.Provider,{value:$,children:f})};a.displayName=r+"Provider";function h(p,v){const f=v?.[t]?.[s]||n,x=l(f);if(x)return x;if(e!==void 0)return e;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[a,h]}const u=()=>{const r=o.map(e=>S(e));return function(n){const s=n?.[t]||r;return d(()=>({[`__scope${t}`]:{...n,[t]:s}}),[n,s])}};return u.scopeName=t,[i,_(u,...c)]}function _(...t){const c=t[0];if(t.length===1)return c;const o=()=>{const i=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(r){const e=i.reduce((n,{useScope:s,scopeName:a})=>{const p=s(r)[`__scope${a}`];return{...n,...p}},{});return d(()=>({[`__scope${c.scopeName}`]:e}),[e])}};return o.scopeName=c.scopeName,o}export{C as a,w as c};
1
+ import{Q as S,T as d,u as P,x as l}from"./register-JRHiicj_.js";function w(t,c){const o=S(c),i=r=>{const{children:e,...n}=r,s=d(()=>n,Object.values(n));return P(o.Provider,{value:s,children:e})};i.displayName=t+"Provider";function u(r){const e=l(o);if(e)return e;if(c!==void 0)return c;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[i,u]}function C(t,c=[]){let o=[];function i(r,e){const n=S(e),s=o.length;o=[...o,e];const a=p=>{const{scope:v,children:f,...x}=p,m=v?.[t]?.[s]||n,$=d(()=>x,Object.values(x));return P(m.Provider,{value:$,children:f})};a.displayName=r+"Provider";function h(p,v){const f=v?.[t]?.[s]||n,x=l(f);if(x)return x;if(e!==void 0)return e;throw new Error(`\`${p}\` must be used within \`${r}\``)}return[a,h]}const u=()=>{const r=o.map(e=>S(e));return function(n){const s=n?.[t]||r;return d(()=>({[`__scope${t}`]:{...n,[t]:s}}),[n,s])}};return u.scopeName=t,[i,_(u,...c)]}function _(...t){const c=t[0];if(t.length===1)return c;const o=()=>{const i=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(r){const e=i.reduce((n,{useScope:s,scopeName:a})=>{const p=s(r)[`__scope${a}`];return{...n,...p}},{});return d(()=>({[`__scope${c.scopeName}`]:e}),[e])}};return o.scopeName=c.scopeName,o}export{C as a,w as c};
@@ -1 +1 @@
1
- import{D as H,d as q,A as I,y as L,q as V,u as B}from"./register-Co5bzKo4.js";import{u as j}from"./index-DRpDdidj.js";import{P as z}from"./index-DO0sHCSW.js";import{u as k}from"./index-GvQdUz_b.js";var O="focusScope.autoFocusOnMount",C="focusScope.autoFocusOnUnmount",P={bubbles:!1,cancelable:!0},G="FocusScope",U=H((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:l,...F}=e,[r,T]=q(null),E=k(c),w=k(l),s=I(null),d=j(n,u=>T(u)),f=I({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L(()=>{if(o){let u=function(m){if(f.paused||!r)return;const y=m.target;((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)?s.current=m.target.shadowRoot?m.composedPath()[0]:m.target:v(s.current,{select:!0})},p=function(m){if(f.paused||!r)return;const y=m.relatedTarget;y!==null&&(((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)||v(s.current,{select:!0}))},a=function(m){if((()=>{let h=document.activeElement;for(;h?.shadowRoot;)h=h.shadowRoot.activeElement;return h})()===document.body)for(const h of m)h.removedNodes.length>0&&v(r)};const i=r?.getRootNode()??document;i.addEventListener("focusin",u),i.addEventListener("focusout",p);const R=new MutationObserver(a);return r&&R.observe(r,{childList:!0,subtree:!0}),()=>{i.removeEventListener("focusin",u),i.removeEventListener("focusout",p),R.disconnect()}}},[o,r,f.paused]),L(()=>{if(r){W.add(f);const u=(()=>{let a=document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})();if(!((a,i)=>a.getRootNode()instanceof ShadowRoot?a.getRootNode().host.contains(i):a.contains(i))(r,u)){const a=new CustomEvent(O,P);r.addEventListener(O,E),r.dispatchEvent(a),a.defaultPrevented||(J($(_(r)),{select:!0}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()===u&&v(r))}return()=>{r.removeEventListener(O,E),setTimeout(()=>{const a=new CustomEvent(C,P);r.addEventListener(C,w),r.dispatchEvent(a),a.defaultPrevented||v(u??document.body,{select:!0}),r.removeEventListener(C,w),W.remove(f)},0)}}},[r,E,w,f]);const S=V(u=>{if(!t&&!o||f.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,a=(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})();if(p&&a){const i=u.currentTarget,[R,m]=Q(i);R&&m?!u.shiftKey&&a===m?(u.preventDefault(),t&&v(R,{select:!0})):u.shiftKey&&a===R&&(u.preventDefault(),t&&v(m,{select:!0})):a===i&&u.preventDefault()}},[t,o,f.paused]);return B(z.div,{tabIndex:-1,...F,ref:d,onKeyDown:S})});U.displayName=G;function J(e,{select:n=!1}={}){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(v(o,{select:n}),(()=>{let c=document.activeElement;for(;c?.shadowRoot;)c=c.shadowRoot.activeElement;return c})()!==t)return}function Q(e){const n=_(e),t=K(n,e),o=K(n.reverse(),e);return[t,o]}function _(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function K(e,n){for(const t of e)if(!X(t,{upTo:n}))return t}function X(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Y(e){return e instanceof HTMLInputElement&&"select"in e}function v(e,{select:n=!1}={}){if(e&&e.focus){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();e.focus({preventScroll:!0}),e!==t&&Y(e)&&n&&e.select()}}var W=Z();function Z(){let e=[];return{add(n){const t=e[0];n!==t&&t?.pause(),e=D(e,n),e.unshift(n)},remove(n){e=D(e,n),e[0]?.resume()}}}function D(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function $(e){return e.filter(n=>n.tagName!=="A")}var ee=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},b=new WeakMap,g=new WeakMap,A={},M=0,x=function(e){return e&&(e.host||x(e.parentNode))},te=function(e,n){return n.map(function(t){if(((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,t))return t;var o=x(t);return o&&((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return Boolean(t)})},oe=function(e,n,t,o){var c=te(n,Array.isArray(e)?e:[e]);A[t]||(A[t]=new WeakMap);var l=A[t],F=[],r=new Set,T=new Set(c),E=function(s){if(!(!s||r.has(s))){if(r.add(s),s.parentNode instanceof ShadowRoot)for(const d of s.parentNode.querySelectorAll("slot"))for(const f of d.assignedElements())r.add(f);E(s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode)}};c.forEach(E);var w=function(s){!s||T.has(s)||Array.prototype.forEach.call(s.children,function(d){if(r.has(d))w(d);else try{var f=d.getAttribute(o),S=f!==null&&f!=="false",u=(b.get(d)||0)+1,p=(l.get(d)||0)+1;b.set(d,u),l.set(d,p),F.push(d),u===1&&S&&g.set(d,!0),p===1&&d.setAttribute(t,"true"),S||d.setAttribute(o,"true")}catch(a){console.error("aria-hidden: cannot operate on ",d,a)}})};return w(n),r.clear(),M++,function(){F.forEach(function(s){var d=b.get(s)-1,f=l.get(s)-1;b.set(s,d),l.set(s,f),d||(g.has(s)||s.removeAttribute(o),g.delete(s)),f||s.removeAttribute(t)}),M--,M||(b=new WeakMap,b=new WeakMap,g=new WeakMap,A={})}},ne=function(e,n,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),c=n||ee(e);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live], script"))),oe(o,c,t,"aria-hidden")):function(){return null}};export{U as F,ne as h};
1
+ import{D as H,d as q,A as I,y as L,q as V,u as B}from"./register-JRHiicj_.js";import{u as j}from"./index-DXhcISXb.js";import{P as z}from"./index-CziPN18O.js";import{u as k}from"./index-Ci8exF1b.js";var O="focusScope.autoFocusOnMount",C="focusScope.autoFocusOnUnmount",P={bubbles:!1,cancelable:!0},G="FocusScope",U=H((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:l,...F}=e,[r,T]=q(null),E=k(c),w=k(l),s=I(null),d=j(n,u=>T(u)),f=I({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L(()=>{if(o){let u=function(m){if(f.paused||!r)return;const y=m.target;((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)?s.current=m.target.shadowRoot?m.composedPath()[0]:m.target:v(s.current,{select:!0})},p=function(m){if(f.paused||!r)return;const y=m.relatedTarget;y!==null&&(((h,N)=>h.getRootNode()instanceof ShadowRoot?h.getRootNode().host.contains(N):h.contains(N))(r,y)||v(s.current,{select:!0}))},a=function(m){if((()=>{let h=document.activeElement;for(;h?.shadowRoot;)h=h.shadowRoot.activeElement;return h})()===document.body)for(const h of m)h.removedNodes.length>0&&v(r)};const i=r?.getRootNode()??document;i.addEventListener("focusin",u),i.addEventListener("focusout",p);const R=new MutationObserver(a);return r&&R.observe(r,{childList:!0,subtree:!0}),()=>{i.removeEventListener("focusin",u),i.removeEventListener("focusout",p),R.disconnect()}}},[o,r,f.paused]),L(()=>{if(r){W.add(f);const u=(()=>{let a=document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;return a})();if(!((a,i)=>a.getRootNode()instanceof ShadowRoot?a.getRootNode().host.contains(i):a.contains(i))(r,u)){const a=new CustomEvent(O,P);r.addEventListener(O,E),r.dispatchEvent(a),a.defaultPrevented||(J($(_(r)),{select:!0}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()===u&&v(r))}return()=>{r.removeEventListener(O,E),setTimeout(()=>{const a=new CustomEvent(C,P);r.addEventListener(C,w),r.dispatchEvent(a),a.defaultPrevented||v(u??document.body,{select:!0}),r.removeEventListener(C,w),W.remove(f)},0)}}},[r,E,w,f]);const S=V(u=>{if(!t&&!o||f.paused)return;const p=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,a=(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})();if(p&&a){const i=u.currentTarget,[R,m]=Q(i);R&&m?!u.shiftKey&&a===m?(u.preventDefault(),t&&v(R,{select:!0})):u.shiftKey&&a===R&&(u.preventDefault(),t&&v(m,{select:!0})):a===i&&u.preventDefault()}},[t,o,f.paused]);return B(z.div,{tabIndex:-1,...F,ref:d,onKeyDown:S})});U.displayName=G;function J(e,{select:n=!1}={}){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(v(o,{select:n}),(()=>{let c=document.activeElement;for(;c?.shadowRoot;)c=c.shadowRoot.activeElement;return c})()!==t)return}function Q(e){const n=_(e),t=K(n,e),o=K(n.reverse(),e);return[t,o]}function _(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function K(e,n){for(const t of e)if(!X(t,{upTo:n}))return t}function X(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Y(e){return e instanceof HTMLInputElement&&"select"in e}function v(e,{select:n=!1}={}){if(e&&e.focus){const t=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();e.focus({preventScroll:!0}),e!==t&&Y(e)&&n&&e.select()}}var W=Z();function Z(){let e=[];return{add(n){const t=e[0];n!==t&&t?.pause(),e=D(e,n),e.unshift(n)},remove(n){e=D(e,n),e[0]?.resume()}}}function D(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function $(e){return e.filter(n=>n.tagName!=="A")}var ee=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},b=new WeakMap,g=new WeakMap,A={},M=0,x=function(e){return e&&(e.host||x(e.parentNode))},te=function(e,n){return n.map(function(t){if(((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,t))return t;var o=x(t);return o&&((c,l)=>{for(;l.getRootNode()instanceof ShadowRoot;)l=l.getRootNode().host;return c.contains(l)})(e,o)?o:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return Boolean(t)})},oe=function(e,n,t,o){var c=te(n,Array.isArray(e)?e:[e]);A[t]||(A[t]=new WeakMap);var l=A[t],F=[],r=new Set,T=new Set(c),E=function(s){if(!(!s||r.has(s))){if(r.add(s),s.parentNode instanceof ShadowRoot)for(const d of s.parentNode.querySelectorAll("slot"))for(const f of d.assignedElements())r.add(f);E(s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode)}};c.forEach(E);var w=function(s){!s||T.has(s)||Array.prototype.forEach.call(s.children,function(d){if(r.has(d))w(d);else try{var f=d.getAttribute(o),S=f!==null&&f!=="false",u=(b.get(d)||0)+1,p=(l.get(d)||0)+1;b.set(d,u),l.set(d,p),F.push(d),u===1&&S&&g.set(d,!0),p===1&&d.setAttribute(t,"true"),S||d.setAttribute(o,"true")}catch(a){console.error("aria-hidden: cannot operate on ",d,a)}})};return w(n),r.clear(),M++,function(){F.forEach(function(s){var d=b.get(s)-1,f=l.get(s)-1;b.set(s,d),l.set(s,f),d||(g.has(s)||s.removeAttribute(o),g.delete(s)),f||s.removeAttribute(t)}),M--,M||(b=new WeakMap,b=new WeakMap,g=new WeakMap,A={})}},ne=function(e,n,t){t===void 0&&(t="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),c=n||ee(e);return c?(o.push.apply(o,Array.from(c.querySelectorAll("[aria-live], script"))),oe(o,c,t,"aria-hidden")):function(){return null}};export{U as F,ne as h};
@@ -1 +1 @@
1
- import{A as n,y as u,T as c}from"./register-Co5bzKo4.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
1
+ import{A as n,y as u,T as c}from"./register-JRHiicj_.js";function o(r){const e=n(r);return u(()=>{e.current=r}),c(()=>(...t)=>e.current?.(...t),[])}export{o as u};
@@ -1 +1 @@
1
- import{D as i,u as o}from"./register-Co5bzKo4.js";import{P as t}from"./index-DO0sHCSW.js";var d=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l="VisuallyHidden",r=i((e,a)=>o(t.span,{...e,ref:a,style:{...d,...e.style}}));r.displayName=l;var n=r;export{n as R,r as V};
1
+ import{D as i,u as o}from"./register-JRHiicj_.js";import{P as t}from"./index-CziPN18O.js";var d=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l="VisuallyHidden",r=i((e,a)=>o(t.span,{...e,ref:a,style:{...d,...e.style}}));r.displayName=l;var n=r;export{n as R,r as V};
@@ -1 +1 @@
1
- import{x as Q,K as W,D as _,y as N,u as d,A as O,d as K,q as E}from"./register-Co5bzKo4.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-RGt5ltxP.js";import{u as Z}from"./index-DRpDdidj.js";import{a as $}from"./index-Dvzx6tAx.js";import{u as ee}from"./index-DhLNBI-N.js";import{P as M}from"./index-DO0sHCSW.js";import{u as oe}from"./index-GvQdUz_b.js";import{u as te}from"./index-CioOvWUM.js";var re=W(void 0);function L(e){const t=Q(re);return e||t||"ltr"}var D="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[P,U,ce]=X(I),[se,ae]=$(I,[ce]),[ie,ue]=se(I),B=_((e,t)=>d(P.Provider,{scope:e.__scopeRovingFocusGroup,children:d(P.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));B.displayName=I;var le=_((e,t)=>{const{__scopeRovingFocusGroup:c,orientation:o,loop:i=!1,dir:T,currentTabStopId:v,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:S,onEntryFocus:m,preventScrollOnEntryFocus:s=!1,...F}=e,b=O(null),g=Z(t,b),R=L(T),[w,r]=te({prop:v,defaultProp:h??null,onChange:S,caller:I}),[u,C]=K(!1),a=oe(m),l=U(c),A=O(!1),[V,x]=K(0);return N(()=>{const n=b.current;if(n)return n.addEventListener(D,a),()=>n.removeEventListener(D,a)},[a]),d(ie,{scope:c,orientation:o,dir:R,loop:i,currentTabStopId:w,onItemFocus:E(n=>r(n),[r]),onItemShiftTab:E(()=>C(!0),[]),onFocusableItemAdd:E(()=>x(n=>n+1),[]),onFocusableItemRemove:E(()=>x(n=>n-1),[]),children:d(M.div,{tabIndex:u||V===0?-1:0,"data-orientation":o,...F,ref:g,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{A.current=!0}),onFocus:p(e.onFocus,n=>{const q=!A.current;if(n.target===n.currentTarget&&q&&!u){const G=new CustomEvent(D,ne);if(n.currentTarget.dispatchEvent(G),!G.defaultPrevented){const y=l().filter(f=>f.focusable),z=y.find(f=>f.active),j=y.find(f=>f.id===w),J=[z,j,...y].filter(Boolean).map(f=>f.ref.current);H(J,s)}}A.current=!1}),onBlur:p(e.onBlur,()=>C(!1))})})}),k="RovingFocusGroupItem",Y=_((e,t)=>{const{__scopeRovingFocusGroup:c,focusable:o=!0,active:i=!1,tabStopId:T,children:v,...h}=e,S=ee(),m=T||S,s=ue(k,c),F=s.currentTabStopId===m,b=U(c),{onFocusableItemAdd:g,onFocusableItemRemove:R,currentTabStopId:w}=s;return N(()=>{if(o)return g(),()=>R()},[o,g,R]),d(P.ItemSlot,{scope:c,id:m,focusable:o,active:i,children:d(M.span,{tabIndex:F?0:-1,"data-orientation":s.orientation,...h,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?s.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>s.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){s.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const u=me(r,s.orientation,s.dir);if(u!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let a=b().filter(l=>l.focusable).map(l=>l.ref.current);if(u==="last")a.reverse();else if(u==="prev"||u==="next"){u==="prev"&&a.reverse();const l=a.indexOf(r.currentTarget);a=s.loop?pe(a,l+1):a.slice(l+1)}setTimeout(()=>H(a))}}),children:typeof v=="function"?v({isCurrentTabStop:F,hasTabStop:w!=null}):v})})});Y.displayName=k;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,c){const o=de(e.key,c);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function H(e,t=!1){const c=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===c||(o.focus({preventScroll:t}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()!==c))return}function pe(e,t){return e.map((c,o)=>e[(t+o)%e.length])}var ve=B,Ie=Y;export{Ie as I,ve as R,ae as c,L as u};
1
+ import{x as J,Q as W,D as _,y as N,u as d,A as O,d as K,q as E}from"./register-JRHiicj_.js";import{c as p}from"./index-CBrz5xtv.js";import{c as X}from"./index-DnPaEh-j.js";import{u as Z}from"./index-DXhcISXb.js";import{a as $}from"./index-CM7CXvTc.js";import{u as ee}from"./index-DtSaXaX6.js";import{P as M}from"./index-CziPN18O.js";import{u as oe}from"./index-Ci8exF1b.js";import{u as te}from"./index-CJ0QOiV8.js";var re=W(void 0);function L(e){const t=J(re);return e||t||"ltr"}var D="rovingFocusGroup.onEntryFocus",ne={bubbles:!1,cancelable:!0},I="RovingFocusGroup",[P,U,ce]=X(I),[se,ae]=$(I,[ce]),[ie,ue]=se(I),B=_((e,t)=>d(P.Provider,{scope:e.__scopeRovingFocusGroup,children:d(P.Slot,{scope:e.__scopeRovingFocusGroup,children:d(le,{...e,ref:t})})}));B.displayName=I;var le=_((e,t)=>{const{__scopeRovingFocusGroup:c,orientation:o,loop:i=!1,dir:T,currentTabStopId:v,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:S,onEntryFocus:m,preventScrollOnEntryFocus:s=!1,...F}=e,b=O(null),g=Z(t,b),R=L(T),[w,r]=te({prop:v,defaultProp:h??null,onChange:S,caller:I}),[u,C]=K(!1),a=oe(m),l=U(c),A=O(!1),[V,x]=K(0);return N(()=>{const n=b.current;if(n)return n.addEventListener(D,a),()=>n.removeEventListener(D,a)},[a]),d(ie,{scope:c,orientation:o,dir:R,loop:i,currentTabStopId:w,onItemFocus:E(n=>r(n),[r]),onItemShiftTab:E(()=>C(!0),[]),onFocusableItemAdd:E(()=>x(n=>n+1),[]),onFocusableItemRemove:E(()=>x(n=>n-1),[]),children:d(M.div,{tabIndex:u||V===0?-1:0,"data-orientation":o,...F,ref:g,style:{outline:"none",...e.style},onMouseDown:p(e.onMouseDown,()=>{A.current=!0}),onFocus:p(e.onFocus,n=>{const q=!A.current;if(n.target===n.currentTarget&&q&&!u){const G=new CustomEvent(D,ne);if(n.currentTarget.dispatchEvent(G),!G.defaultPrevented){const y=l().filter(f=>f.focusable),z=y.find(f=>f.active),Q=y.find(f=>f.id===w),j=[z,Q,...y].filter(Boolean).map(f=>f.ref.current);H(j,s)}}A.current=!1}),onBlur:p(e.onBlur,()=>C(!1))})})}),k="RovingFocusGroupItem",Y=_((e,t)=>{const{__scopeRovingFocusGroup:c,focusable:o=!0,active:i=!1,tabStopId:T,children:v,...h}=e,S=ee(),m=T||S,s=ue(k,c),F=s.currentTabStopId===m,b=U(c),{onFocusableItemAdd:g,onFocusableItemRemove:R,currentTabStopId:w}=s;return N(()=>{if(o)return g(),()=>R()},[o,g,R]),d(P.ItemSlot,{scope:c,id:m,focusable:o,active:i,children:d(M.span,{tabIndex:F?0:-1,"data-orientation":s.orientation,...h,ref:t,onMouseDown:p(e.onMouseDown,r=>{o?s.onItemFocus(m):r.preventDefault()}),onFocus:p(e.onFocus,()=>s.onItemFocus(m)),onKeyDown:p(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){s.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const u=me(r,s.orientation,s.dir);if(u!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let a=b().filter(l=>l.focusable).map(l=>l.ref.current);if(u==="last")a.reverse();else if(u==="prev"||u==="next"){u==="prev"&&a.reverse();const l=a.indexOf(r.currentTarget);a=s.loop?pe(a,l+1):a.slice(l+1)}setTimeout(()=>H(a))}}),children:typeof v=="function"?v({isCurrentTabStop:F,hasTabStop:w!=null}):v})})});Y.displayName=k;var fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function de(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function me(e,t,c){const o=de(e.key,c);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return fe[o]}function H(e,t=!1){const c=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();for(const o of e)if(o===c||(o.focus({preventScroll:t}),(()=>{let i=document.activeElement;for(;i?.shadowRoot;)i=i.shadowRoot.activeElement;return i})()!==c))return}function pe(e,t){return e.map((c,o)=>e[(t+o)%e.length])}var ve=B,Ie=Y;export{Ie as I,ve as R,ae as c,L as u};
@@ -0,0 +1 @@
1
+ import{D as p,u as c,E as u}from"./register-JRHiicj_.js";import{c as l}from"./index-DXhcISXb.js";var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],d=v.reduce((t,i)=>{const e=l(`Primitive.${i}`),r=p((o,s)=>{const{asChild:a,...n}=o,m=a?e:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c(m,{...n,ref:s})});return r.displayName=`Primitive.${i}`,{...t,[i]:r}},{});function f(t,i){t&&u(()=>t.dispatchEvent(i))}export{d as P,f as d};
@@ -1 +1 @@
1
- import{D as m,u as l,A as R,y as x}from"./register-Co5bzKo4.js";import{c as f}from"./index-CBrz5xtv.js";import{a as D}from"./index-Dvzx6tAx.js";import{u as E,c as I,R as V,I as G}from"./index-B0RuosXF.js";import{P as L}from"./index-7y0exDvW.js";import{P as p}from"./index-DO0sHCSW.js";import{u as w}from"./index-CioOvWUM.js";import{u as $}from"./index-DhLNBI-N.js";var T="Tabs",[k,Y]=D(T,[I]),h=I(),[K,g]=k(T),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=E(u),[o,d]=w({prop:t,onChange:r,defaultProp:c??"",caller:T});return l(K,{scope:s,baseId:$(),value:o,onValueChange:d,orientation:a,dir:i,activationMode:v,children:l(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=T;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return l(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:l(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return l(G,{asChild:!0,...u,focusable:!r,active:i,children:l(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:f(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:f(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:f(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const d=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(d)},[]),l(L,{present:r||i,children:({present:d})=>l(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!d,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:d&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
1
+ import{D as m,u as l,A as R,y as x}from"./register-JRHiicj_.js";import{c as f}from"./index-CBrz5xtv.js";import{a as D}from"./index-CM7CXvTc.js";import{u as E,c as I,R as V,I as G}from"./index-CzZb9Rq6.js";import{P as L}from"./index-Bmor3O8m.js";import{P as p}from"./index-CziPN18O.js";import{u as w}from"./index-CJ0QOiV8.js";import{u as $}from"./index-DtSaXaX6.js";var T="Tabs",[k,Y]=D(T,[I]),h=I(),[K,g]=k(T),C=m((e,n)=>{const{__scopeTabs:s,value:t,onValueChange:r,defaultValue:c,orientation:a="horizontal",dir:u,activationMode:v="automatic",...b}=e,i=E(u),[o,d]=w({prop:t,onChange:r,defaultProp:c??"",caller:T});return l(K,{scope:s,baseId:$(),value:o,onValueChange:d,orientation:a,dir:i,activationMode:v,children:l(p.div,{dir:i,"data-orientation":a,...b,ref:n})})});C.displayName=T;var y="TabsList",A=m((e,n)=>{const{__scopeTabs:s,loop:t=!0,...r}=e,c=g(y,s),a=h(s);return l(V,{asChild:!0,...a,orientation:c.orientation,dir:c.dir,loop:t,children:l(p.div,{role:"tablist","aria-orientation":c.orientation,...r,ref:n})})});A.displayName=y;var _="TabsTrigger",P=m((e,n)=>{const{__scopeTabs:s,value:t,disabled:r=!1,...c}=e,a=g(_,s),u=h(s),v=N(a.baseId,t),b=F(a.baseId,t),i=t===a.value;return l(G,{asChild:!0,...u,focusable:!r,active:i,children:l(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":b,"data-state":i?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...c,ref:n,onMouseDown:f(e.onMouseDown,o=>{!r&&o.button===0&&o.ctrlKey===!1?a.onValueChange(t):o.preventDefault()}),onKeyDown:f(e.onKeyDown,o=>{[" ","Enter"].includes(o.key)&&a.onValueChange(t)}),onFocus:f(e.onFocus,()=>{const o=a.activationMode!=="manual";!i&&!r&&o&&a.onValueChange(t)})})})});P.displayName=_;var S="TabsContent",M=m((e,n)=>{const{__scopeTabs:s,value:t,forceMount:r,children:c,...a}=e,u=g(S,s),v=N(u.baseId,t),b=F(u.baseId,t),i=t===u.value,o=R(i);return x(()=>{const d=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(d)},[]),l(L,{present:r||i,children:({present:d})=>l(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":v,hidden:!d,id:b,tabIndex:0,...a,ref:n,style:{...e.style,animationDuration:o.current?"0s":void 0},children:d&&c})})});M.displayName=S;function N(e,n){return`${e}-trigger-${n}`}function F(e,n){return`${e}-content-${n}`}var B=C,q=A,z=P;export{q as L,B as R,M as T,z as a};
@@ -0,0 +1 @@
1
+ import{D as S,A as R,y as F,q as $,u as c,d as V,T as Ce,$ as xe,k as re}from"./register-JRHiicj_.js";import{c as g}from"./index-CBrz5xtv.js";import{u as se}from"./index-DXhcISXb.js";import{c as Re}from"./index-DnPaEh-j.js";import{a as be}from"./index-CM7CXvTc.js";import{B as ge,R as Se}from"./index-sqgZ-Tor.js";import{P as Ae}from"./index-DnjnKd4S.js";import{P as Ie}from"./index-Bmor3O8m.js";import{P as D,d as _e}from"./index-CziPN18O.js";import{u as Y}from"./index-Ci8exF1b.js";import{u as Fe}from"./index-CJ0QOiV8.js";import{u as De}from"./index-DUlzSpV2.js";import{V as ae}from"./index-CupZ5Eqy.js";var z="ToastProvider",[G,Ne,Le]=Re("Toast"),[ie,vt]=be("Toast",[Le]),[Oe,B]=ie(z),ce=t=>{const{__scopeToast:n,label:o="Notification",duration:e=5e3,swipeDirection:i="right",swipeThreshold:l=50,children:d}=t,[m,w]=V(null),[a,x]=V(0),E=R(!1),N=R(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${z}\`. Expected non-empty \`string\`.`),c(G.Provider,{scope:n,children:c(Oe,{scope:n,label:o,duration:e,swipeDirection:i,swipeThreshold:l,toastCount:a,viewport:m,onViewportChange:w,onToastAdd:$(()=>x(I=>I+1),[]),onToastRemove:$(()=>x(I=>I-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:N,children:d})})};ce.displayName=z;var ue="ToastViewport",Me=["F8"],J="toast.viewportPause",Q="toast.viewportResume",le=S((t,n)=>{const{__scopeToast:o,hotkey:e=Me,label:i="Notifications ({hotkey})",...l}=t,d=B(ue,o),m=Ne(o),w=R(null),a=R(null),x=R(null),E=R(null),N=se(n,E,d.onViewportChange),I=e.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=d.toastCount>0;F(()=>{const s=y=>{e.length!==0&&e.every(f=>y[f]||y.code===f)&&E.current?.focus()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e]),F(()=>{const s=w.current,y=E.current;if(_&&s&&y){const p=()=>{if(!d.isClosePausedRef.current){const T=new CustomEvent(J);y.dispatchEvent(T),d.isClosePausedRef.current=!0}},f=()=>{if(d.isClosePausedRef.current){const T=new CustomEvent(Q);y.dispatchEvent(T),d.isClosePausedRef.current=!1}},h=T=>{!s.contains(T.relatedTarget)&&f()},P=()=>{s.contains((()=>{let b=document.activeElement;for(;b?.shadowRoot;)b=b.shadowRoot.activeElement;return b})())||f()};return s.addEventListener("focusin",p),s.addEventListener("focusout",h),s.addEventListener("pointermove",p),s.addEventListener("pointerleave",P),window.addEventListener("blur",p),window.addEventListener("focus",f),()=>{s.removeEventListener("focusin",p),s.removeEventListener("focusout",h),s.removeEventListener("pointermove",p),s.removeEventListener("pointerleave",P),window.removeEventListener("blur",p),window.removeEventListener("focus",f)}}},[_,d.isClosePausedRef]);const u=$(({tabbingDirection:s})=>{const p=m().map(f=>{const h=f.ref.current,P=[h,...Ge(h)];return s==="forwards"?P:P.reverse()});return(s==="forwards"?p.reverse():p).flat()},[m]);return F(()=>{const s=E.current;if(s){const y=p=>{const f=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!f){const P=(()=>{let C=document.activeElement;for(;C?.shadowRoot;)C=C.shadowRoot.activeElement;return C})(),T=p.shiftKey;if(p.target===s&&T){a.current?.focus();return}const L=u({tabbingDirection:T?"backwards":"forwards"}),H=L.findIndex(C=>C===P);te(L.slice(H+1))?p.preventDefault():T?a.current?.focus():x.current?.focus()}};return s.addEventListener("keydown",y),()=>s.removeEventListener("keydown",y)}},[m,u]),c(ge,{ref:w,role:"region","aria-label":i.replace("{hotkey}",I),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&c(Z,{ref:a,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"forwards"});te(s)}}),c(G.Slot,{scope:o,children:c(D.ol,{tabIndex:-1,...l,ref:N})}),_&&c(Z,{ref:x,onFocusFromOutsideViewport:()=>{const s=u({tabbingDirection:"backwards"});te(s)}})]})});le.displayName=ue;var de="ToastFocusProxy",Z=S((t,n)=>{const{__scopeToast:o,onFocusFromOutsideViewport:e,...i}=t,l=B(de,o);return c(ae,{tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:d=>{const m=d.relatedTarget;!l.viewport?.contains(m)&&e()}})});Z.displayName=de;var k="Toast",Ve="toast.swipeStart",ke="toast.swipeMove",Ke="toast.swipeCancel",He="toast.swipeEnd",pe=S((t,n)=>{const{forceMount:o,open:e,defaultOpen:i,onOpenChange:l,...d}=t,[m,w]=Fe({prop:e,defaultProp:i??!0,onChange:l,caller:k});return c(Ie,{present:o||m,children:c(Xe,{open:m,...d,ref:n,onClose:()=>w(!1),onPause:Y(t.onPause),onResume:Y(t.onResume),onSwipeStart:g(t.onSwipeStart,a=>{a.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:g(t.onSwipeMove,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","move"),a.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:g(t.onSwipeCancel,a=>{a.currentTarget.setAttribute("data-swipe","cancel"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:g(t.onSwipeEnd,a=>{const{x,y:E}=a.detail.delta;a.currentTarget.setAttribute("data-swipe","end"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),a.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),a.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),a.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),w(!1)})})})});pe.displayName=k;var[We,Ue]=ie(k,{onClose(){}}),Xe=S((t,n)=>{const{__scopeToast:o,type:e="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:m,onPause:w,onResume:a,onSwipeStart:x,onSwipeMove:E,onSwipeCancel:N,onSwipeEnd:I,..._}=t,u=B(k,o),[s,y]=V(null),p=se(n,r=>y(r)),f=R(null),h=R(null),P=i||u.duration,T=R(0),b=R(P),K=R(0),{onToastAdd:L,onToastRemove:H}=u,C=Y(()=>{s?.contains((()=>{let v=document.activeElement;for(;v?.shadowRoot;)v=v.shadowRoot.activeElement;return v})())&&u.viewport?.focus(),d()}),W=$(r=>{!r||r===1/0||(window.clearTimeout(K.current),T.current=new Date().getTime(),K.current=window.setTimeout(C,r))},[C]);F(()=>{const r=u.viewport;if(r){const v=()=>{W(b.current),a?.()},A=()=>{const O=new Date().getTime()-T.current;b.current=b.current-O,window.clearTimeout(K.current),w?.()};return r.addEventListener(J,A),r.addEventListener(Q,v),()=>{r.removeEventListener(J,A),r.removeEventListener(Q,v)}}},[u.viewport,P,w,a,W]),F(()=>{l&&!u.isClosePausedRef.current&&W(P)},[l,P,u.isClosePausedRef,W]),F(()=>(L(),()=>H()),[L,H]);const oe=Ce(()=>s?Ee(s):null,[s]);return u.viewport?c(re,{children:[oe&&c($e,{__scopeToast:o,role:"status","aria-live":e==="foreground"?"assertive":"polite",children:oe}),c(We,{scope:o,onClose:C,children:xe(c(G.ItemSlot,{scope:o,children:c(Se,{asChild:!0,onEscapeKeyDown:g(m,()=>{u.isFocusedToastEscapeKeyDownRef.current||C(),u.isFocusedToastEscapeKeyDownRef.current=!1}),children:c(D.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":u.swipeDirection,..._,ref:p,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:g(t.onKeyDown,r=>{r.key==="Escape"&&(m?.(r.nativeEvent),r.nativeEvent.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:g(t.onPointerDown,r=>{r.button===0&&(f.current={x:r.clientX,y:r.clientY})}),onPointerMove:g(t.onPointerMove,r=>{if(!f.current)return;const v=r.clientX-f.current.x,A=r.clientY-f.current.y,O=Boolean(h.current),M=["left","right"].includes(u.swipeDirection),U=["left","up"].includes(u.swipeDirection)?Math.min:Math.max,he=M?U(0,v):0,Pe=M?0:U(0,A),j=r.pointerType==="touch"?10:2,X={x:he,y:Pe},ne={originalEvent:r,delta:X};O?(h.current=X,q(ke,E,ne,{discrete:!1})):ye(X,u.swipeDirection,j)?(h.current=X,q(Ve,x,ne,{discrete:!1}),r.target.setPointerCapture(r.pointerId)):(Math.abs(v)>j||Math.abs(A)>j)&&(f.current=null)}),onPointerUp:g(t.onPointerUp,r=>{const v=h.current,A=r.target;if(A.hasPointerCapture(r.pointerId)&&A.releasePointerCapture(r.pointerId),h.current=null,f.current=null,v){const O=r.currentTarget,M={originalEvent:r,delta:v};ye(v,u.swipeDirection,u.swipeThreshold)?q(He,I,M,{discrete:!0}):q(Ke,N,M,{discrete:!0}),O.addEventListener("click",U=>U.preventDefault(),{once:!0})}})})})}),u.viewport)})]}):null}),$e=t=>{const{__scopeToast:n,children:o,...e}=t,i=B(k,n),[l,d]=V(!1),[m,w]=V(!1);return je(()=>d(!0)),F(()=>{const a=window.setTimeout(()=>w(!0),1e3);return()=>window.clearTimeout(a)},[]),m?null:c(Ae,{asChild:!0,children:c(ae,{...e,children:l&&c(re,{children:[i.label," ",o]})})})},Ye="ToastTitle",fe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});fe.displayName=Ye;var Be="ToastDescription",qe=S((t,n)=>{const{__scopeToast:o,...e}=t;return c(D.div,{...e,ref:n})});qe.displayName=Be;var me="ToastAction",ve=S((t,n)=>{const{altText:o,...e}=t;return o.trim()?c(Te,{altText:o,asChild:!0,children:c(ee,{...e,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${me}\`. Expected non-empty \`string\`.`),null)});ve.displayName=me;var we="ToastClose",ee=S((t,n)=>{const{__scopeToast:o,...e}=t,i=Ue(we,o);return c(Te,{asChild:!0,children:c(D.button,{type:"button",...e,ref:n,onClick:g(t.onClick,i.onClose)})})});ee.displayName=we;var Te=S((t,n)=>{const{__scopeToast:o,altText:e,...i}=t;return c(D.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":e||void 0,...i,ref:n})});function Ee(t){const n=[];return Array.from(t.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&n.push(e.textContent),ze(e)){const i=e.ariaHidden||e.hidden||e.style.display==="none",l=e.dataset.radixToastAnnounceExclude==="";if(!i)if(l){const d=e.dataset.radixToastAnnounceAlt;d&&n.push(d)}else n.push(...Ee(e))}}),n}function q(t,n,o,{discrete:e}){const i=o.originalEvent.currentTarget,l=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:o});n&&i.addEventListener(t,n,{once:!0}),e?_e(i,l):i.dispatchEvent(l)}var ye=(t,n,o=0)=>{const e=Math.abs(t.x),i=Math.abs(t.y),l=e>i;return n==="left"||n==="right"?l&&e>o:!l&&i>o};function je(t=()=>{}){const n=Y(t);De(()=>{let o=0,e=0;return o=window.requestAnimationFrame(()=>e=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(e)}},[n])}function ze(t){return t.nodeType===t.ELEMENT_NODE}function Ge(t){const n=[],o=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const i=e.tagName==="INPUT"&&e.type==="hidden";return e.disabled||e.hidden||i?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n}function te(t){const n=(()=>{let o=document.activeElement;for(;o?.shadowRoot;)o=o.shadowRoot.activeElement;return o})();return t.some(o=>o===n?!0:(o.focus(),(()=>{let e=document.activeElement;for(;e?.shadowRoot;)e=e.shadowRoot.activeElement;return e})()!==n))}var Je=le,Qe=pe,Ze=fe,et=ve,tt=ee;export{et as A,tt as C,Qe as R,ce as T,Je as V,Ze as a};
@@ -0,0 +1 @@
1
+ import{b as o}from"./register-JRHiicj_.js";var a=globalThis?.document?o:()=>{};export{a as u};
@@ -1 +1 @@
1
- import{q as C,D as S,O as a,m as f,u as p,e as m,k as g}from"./register-Co5bzKo4.js";function b(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function y(...t){return n=>{let r=!1;const o=t.map(e=>{const l=b(e,n);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let e=0;e<o.length;e++){const l=o[e];typeof l=="function"?l():b(t[e],null)}}}}function I(...t){return C(y(...t),t)}function O(t){const n=h(t),r=S((o,e)=>{const{children:l,...i}=o,s=a.toArray(l),c=s.find(E);if(c){const u=c.props.children,_=s.map(d=>d===c?a.count(u)>1?a.only(null):f(u)?u.props.children:null:d);return p(n,{...i,ref:e,children:f(u)?m(u,void 0,_):null})}return p(n,{...i,ref:e,children:l})});return r.displayName=`${t}.Slot`,r}function h(t){const n=S((r,o)=>{const{children:e,...l}=r;if(f(e)){const i=P(e),s=N(l,e.props);return e.type!==g&&(s.ref=o?y(o,i):i),m(e,s)}return a.count(e)>1?a.only(null):null});return n.displayName=`${t}.SlotClone`,n}var R=Symbol("radix.slottable");function x(t){const n=({children:r})=>p(g,{children:r});return n.displayName=`${t}.Slottable`,n.__radixId=R,n}function E(t){return f(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===R}function N(t,n){const r={...n};for(const o in n){const e=t[o],l=n[o];/^on[A-Z]/.test(o)?e&&l?r[o]=(...s)=>{const c=l(...s);return e(...s),c}:e&&(r[o]=e):o==="style"?r[o]={...e,...l}:o==="className"&&(r[o]=[e,l].filter(Boolean).join(" "))}return{...t,...r}}function P(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}export{O as a,y as b,x as c,I as u};
1
+ import{q as C,D as S,O as a,m as f,u as p,e as m,k as g}from"./register-JRHiicj_.js";function b(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function y(...t){return n=>{let r=!1;const o=t.map(e=>{const l=b(e,n);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let e=0;e<o.length;e++){const l=o[e];typeof l=="function"?l():b(t[e],null)}}}}function I(...t){return C(y(...t),t)}function O(t){const n=h(t),r=S((o,e)=>{const{children:l,...i}=o,s=a.toArray(l),c=s.find(E);if(c){const u=c.props.children,_=s.map(d=>d===c?a.count(u)>1?a.only(null):f(u)?u.props.children:null:d);return p(n,{...i,ref:e,children:f(u)?m(u,void 0,_):null})}return p(n,{...i,ref:e,children:l})});return r.displayName=`${t}.Slot`,r}function h(t){const n=S((r,o)=>{const{children:e,...l}=r;if(f(e)){const i=P(e),s=N(l,e.props);return e.type!==g&&(s.ref=o?y(o,i):i),m(e,s)}return a.count(e)>1?a.only(null):null});return n.displayName=`${t}.SlotClone`,n}var R=Symbol("radix.slottable");function x(t){const n=({children:r})=>p(g,{children:r});return n.displayName=`${t}.Slottable`,n.__radixId=R,n}function E(t){return f(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===R}function N(t,n){const r={...n};for(const o in n){const e=t[o],l=n[o];/^on[A-Z]/.test(o)?e&&l?r[o]=(...s)=>{const c=l(...s);return e(...s),c}:e&&(r[o]=e):o==="style"?r[o]={...e,...l}:o==="className"&&(r[o]=[e,l].filter(Boolean).join(" "))}return{...t,...r}}function P(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}export{x as a,y as b,O as c,I as u};
@@ -1 +1 @@
1
- import{d as Y,q as vt,A as J,b as Oe,y as Bt,T as at,E as Pe,D as ft,u as j}from"./register-Co5bzKo4.js";import{P as bt}from"./index-DO0sHCSW.js";import{u as Vt}from"./index-DRpDdidj.js";import{a as Re}from"./index-Dvzx6tAx.js";import{u as Ce}from"./index-GvQdUz_b.js";import{u as At}from"./index-DgruwXLP.js";const Se=["top","right","bottom","left"],Z=Math.min,H=Math.max,ut=Math.round,dt=Math.floor,B=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},Te={start:"end",end:"start"};function Ot(t,e,n){return H(t,Z(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(q(t))?"y":"x"}function Ct(t){return Pt(U(t))}function De(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ct(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=pt(s)),[s,pt(s)]}function Le(t){const e=pt(t);return[St(t),e,St(e)]}function St(t){return t.replace(/start|end/g,e=>Te[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=Q(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(St)))),r}function pt(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function It(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function ht(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Yt(t,e,n){let{reference:o,floating:i}=t;const r=U(e),s=Ct(e),c=Rt(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Yt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x:v,y:b,data:x,reset:y}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=v??f,u=b??u,d={...d,[w]:{...d[w],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):y.rects),{x:f,y:u}=Yt(a,h,l)),m=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=It(d),w=c[h?u==="floating"?"reference":"floating":u],g=ht(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),x=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},y=ht(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+p.top)/x.y,bottom:(y.bottom-g.bottom+p.bottom)/x.y,left:(g.left-y.left+p.left)/x.x,right:(y.right-g.right+p.right)/x.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=It(f),h={x:n,y:o},d=Ct(i),p=Rt(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",v=w?"bottom":"right",b=w?"clientHeight":"clientWidth",x=r.reference[p]+r.reference[d]-h[d]-r.floating[p],y=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||r.floating[p]);const E=x/2-y/2,N=O/2-m[p]/2-1,C=Z(u[g],N),k=Z(u[v],N),F=C,R=O-m[p]-k,$=O/2-m[p]/2+E,T=Ot(F,$,R),D=!l.arrow&&Q(i)!=null&&$!==T&&r.reference[p]/2-($<F?C:k)-m[p]/2<0,L=D?$<F?$-F:$-R:0;return{[d]:h[d]+L,data:{[d]:T,centerOffset:$-T-L,...D&&{alignmentOffset:L}},reset:D}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),v=U(c),b=q(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),y=h||(b||!m?[pt(c)]:Le(c)),P=p!=="none";!h&&P&&y.push(...$e(c,m,p,x));const O=[c,...y],E=await it(e,w),N=[];let C=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&N.push(E[g]),u){const T=De(i,s,x);N.push(E[T[0]],E[T[1]])}if(C=[...C,{placement:i,overflows:N}],!N.every(T=>T<=0)){var k,F;const T=(((k=r.flip)==null?void 0:k.index)||0)+1,D=O[T];if(D){var R;const A=u==="alignment"?v!==U(D):!1,S=((R=C[0])==null?void 0:R.overflows[0])>0;if(!A||S)return{data:{index:T,overflows:C},reset:{placement:D}}}let L=(F=C.filter(A=>A.overflows[0]<=0).sort((A,S)=>A.overflows[1]-S.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(d){case"bestFit":{var $;const A=($=C.filter(S=>{if(P){const M=U(S.placement);return M===v||M==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(M=>M>0).reduce((M,ct)=>M+ct,0)]).sort((S,M)=>S[1]-M[1])[0])==null?void 0:$[0];A&&(L=A);break}case"initialPlacement":L=c;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function jt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=jt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xt(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=jt(r,n.floating);return{data:{escapedOffsets:s,escaped:Xt(s)}}}default:return{}}}}};async function ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Be=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:v}=w;return{x:g,y:v}}},...l}=X(t,e),a={x:n,y:o},f=await it(e,l),u=U(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=d+f[w],b=d-f[g];d=Ot(v,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",v=p+f[w],b=p-f[g];p=Ot(v,p,b)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=U(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",x=r.reference[h]-r.floating[b]+w.mainAxis,y=r.reference[h]+r.reference[b]-w.mainAxis;d<x?d=x:d>y&&(d=y)}if(a){var g,v;const b=h==="y"?"width":"height",x=["top","left"].includes(q(i)),y=r.reference[u]-r.floating[b]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),P=r.reference[u]+r.reference[b]+(x?0:((v=s.offset)==null?void 0:v[u])||0)-(x?w.crossAxis:0);p<y?p=y:p>P&&(p=P)}return{[h]:d,[u]:p}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await it(e,a),u=q(i),h=Q(i),d=U(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const v=m-f.top-f.bottom,b=p-f.left-f.right,x=Z(m-f[w],v),y=Z(p-f[g],b),P=!e.middlewareData.shift;let O=x,E=y;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=v),P&&!h){const C=H(f.left,0),k=H(f.right,0),F=H(f.top,0),R=H(f.bottom,0);d?E=p-2*(C!==0||k!==0?C+k:H(f.left,f.right)):O=m-2*(F!==0||R!==0?F+R:H(f.top,f.bottom))}await l({...e,availableWidth:E,availableHeight:O});const N=await s.getDimensions(c.floating);return p!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function tt(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return mt()?t instanceof Node||t instanceof W(t).Node:!1}function z(t){return mt()?t instanceof Element||t instanceof W(t).Element:!1}function I(t){return mt()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function Ut(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ye(t){return["table","td","th"].includes(tt(t))}function gt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Et(t){const e=Tt(),n=z(t)?_(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function je(t){let e=K(t);for(;I(e)&&!et(e);){if(Et(e))return e;if(gt(e))return null;e=K(e)}return null}function Tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function _(t){return W(t).getComputedStyle(t)}function wt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ut(t)&&t.host||V(t);return Ut(e)?e.host:e}function Zt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Zt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Zt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=W(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(t){const e=_(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ut(n)!==r||ut(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Lt(t){return z(t)?t:t.contextElement}function nt(t){const e=Lt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Kt(e);let s=(r?ut(n.width):n.width)/o,c=(r?ut(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=B(0);function Gt(t){const e=W(t);return!Tt()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Lt(t);let s=B(1);e&&(o?z(o)&&(s=nt(o)):s=nt(t));const c=qe(r,n,o)?Gt(r):B(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const h=W(r),d=o&&z(o)?W(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),v=_(m),b=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=x,p=W(m),m=Dt(p)}}return ht({width:f,height:u,x:l,y:a})}function Mt(t,e){const n=wt(t).scrollLeft;return e?e.left+n:G(V(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Mt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?gt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=wt(o)),I(o))){const d=G(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Jt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=V(t),n=wt(t),o=t.ownerDocument.body,i=H(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=H(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Mt(t);const c=-n.scrollTop;return _(o).direction==="rtl"&&(s+=H(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=W(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Tt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Qt(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(V(t));else if(z(e))o=Je(e,n);else{const i=Gt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ht(o)}function te(t,e){const n=K(t);return n===e||!z(n)||et(n)?!1:_(n).position==="fixed"||te(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>z(c)&&tt(c)!=="body"),i=null;const r=_(t).position==="fixed";let s=r?K(t):t;for(;z(s)&&!et(s);){const c=_(s),l=Et(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?gt(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Qt(e,f,i);return a.top=H(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=H(u.left,a.left),a},Qt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Kt(t);return{width:e,height:n}}function nn(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=G(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);function a(){l.x=Mt(i)}if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=wt(e)),o){const d=G(e,!0,r,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&a();r&&!o&&i&&a();const f=i&&!o&&!r?Jt(i,c):B(0),u=s.left+c.scrollLeft-l.x-f.x,h=s.top+c.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function $t(t){return _(t).position==="static"}function ee(t,e){if(!I(t)||_(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=W(t);if(gt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(z(i)&&!$t(i))return i;i=K(i)}return n}let o=ee(t,e);for(;o&&Ye(o)&&$t(o);)o=ee(o,e);return o&&et(o)&&$t(o)&&!Et(o)?n:o||je(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return _(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:V,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:nt,isElement:z,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=dt(u),m=dt(i.clientWidth-(f+h)),w=dt(i.clientHeight-(u+d)),g=dt(f),b={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:H(0,Z(1,l))||1};let x=!0;function y(P){const O=P[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(y,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Lt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?G(t):null;l&&w();function w(){const g=G(t);m&&!oe(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(v=>{i&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=Be,un=He,dn=Ie,pn=We,ie=Ne,hn=Ve,mn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var xt=typeof document<"u"?Oe:Bt;function yt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!yt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!yt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=re(t);return Math.round(e*n)/n}function kt(t){const e=J(t);return xt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);yt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),v=vt(A=>{A!==P.current&&(P.current=A,m(A))},[]),b=vt(A=>{A!==O.current&&(O.current=A,g(A))},[]),x=r||p,y=s||w,P=J(null),O=J(null),E=J(f),N=l!=null,C=kt(l),k=kt(i),F=kt(a),R=vt(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:h};k.current&&(A.platform=k.current),mn(P.current,O.current,A).then(S=>{const M={...S,isPositioned:F.current!==!1};$.current&&!yt(E.current,M)&&(E.current=M,Pe(()=>{u(M)}))})},[h,e,n,k,F]);xt(()=>{a===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const $=J(!1);xt(()=>($.current=!0,()=>{$.current=!1}),[]),xt(()=>{if(x&&(P.current=x),y&&(O.current=y),x&&y){if(C.current)return C.current(x,y,R);R()}},[x,y,R,C,N]);const T=at(()=>({reference:P,floating:O,setReference:v,setFloating:b}),[v,b]),D=at(()=>({reference:x,floating:y}),[x,y]),L=at(()=>{const A={position:n,left:0,top:0};if(!D.floating)return A;const S=se(D.floating,f.x),M=se(D.floating,f.y);return c?{...A,transform:"translate("+S+"px, "+M+"px)",...re(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:M}},[n,c,D.floating,f.x,f.y]);return at(()=>({...f,update:R,refs:T,elements:D,floatingStyles:L}),[f,R,T,D,L])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?ie({element:o.current,padding:i}).fn(n):{}:o?ie({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),On=(t,e)=>({...pn(t),options:[t,e]}),Pn=(t,e)=>({...wn(t),options:[t,e]});var Rn="Arrow",ce=ft((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(bt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});ce.displayName=Rn;var Cn=ce;function Sn(t){const[e,n]=Y(void 0);return At(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Ft="Popper",[le,En]=Re(Ft),[Tn,ae]=le(Ft),Nt=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(Tn,{scope:e,anchor:o,onAnchorChange:i,children:n})};Nt.displayName=Ft;var fe="PopperAnchor",Ht=ft((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ae(fe,n),s=J(null),c=Vt(e,s);return Bt(()=>{r.onAnchorChange(o?.current||s.current)}),o?null:j(bt.div,{...i,ref:c})});Ht.displayName=fe;var Wt="PopperContent",[Dn,Ln]=le(Wt),zt=ft((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=ae(Wt,n),[g,v]=Y(null),b=Vt(e,ot=>v(ot)),[x,y]=Y(null),P=Sn(x),O=P?.width??0,E=P?.height??0,N=o+(r!=="center"?"-"+r:""),C=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(a)?a:[a],F=k.length>0,R={padding:C,boundary:k.filter($n),altBoundary:F},{refs:$,floatingStyles:T,placement:D,isPositioned:L,middlewareData:A}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ot)=>ln(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+E,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...R}),l&&bn({...R}),An({...R,apply:({elements:ot,rects:_t,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=_t.reference,lt=ot.floating.style;lt.setProperty("--radix-popper-available-width",`${ye}px`),lt.setProperty("--radix-popper-available-height",`${ve}px`),lt.setProperty("--radix-popper-anchor-width",`${be}px`),lt.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Pn({element:x,padding:c}),kn({arrowWidth:O,arrowHeight:E}),h&&On({strategy:"referenceHidden",...R})]}),[S,M]=pe(D),ct=Ce(p);At(()=>{L&&ct?.()},[L,ct]);const he=A.arrow?.x,me=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=Y();return At(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:S,onArrowChange:y,arrowX:he,arrowY:me,shouldHideArrow:ge,children:j(bt.div,{"data-side":S,"data-align":M,...m,ref:b,style:{...m.style,animation:L?void 0:"none"}})})})});zt.displayName=Wt;var ue="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},de=ft(function(e,n){const{__scopePopper:o,...i}=e,r=Ln(ue,o),s=Mn[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Cn,{...i,ref:n,style:{...i.style,display:"block"}})})});de.displayName=ue;function $n(t){return t!==null}var kn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Fn=Nt,Nn=Ht,Hn=zt,Wn=de;export{Nn as A,Hn as C,Nt as P,Fn as R,Wn as a,zt as b,En as c,Ht as d};
1
+ import{d as Y,q as vt,A as G,b as Oe,y as Bt,T as at,E as Pe,D as ft,u as j}from"./register-JRHiicj_.js";import{P as bt}from"./index-CziPN18O.js";import{u as Vt}from"./index-DXhcISXb.js";import{a as Re}from"./index-CM7CXvTc.js";import{u as Ce}from"./index-Ci8exF1b.js";import{u as At}from"./index-DUlzSpV2.js";const Se=["top","right","bottom","left"],Z=Math.min,H=Math.max,ut=Math.round,dt=Math.floor,B=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},Te={start:"end",end:"start"};function Ot(t,e,n){return H(t,Z(e,n))}function X(t,e){return typeof t=="function"?t(e):t}function q(t){return t.split("-")[0]}function Q(t){return t.split("-")[1]}function Pt(t){return t==="x"?"y":"x"}function Rt(t){return t==="y"?"height":"width"}function U(t){return["top","bottom"].includes(q(t))?"y":"x"}function Ct(t){return Pt(U(t))}function De(t,e,n){n===void 0&&(n=!1);const o=Q(t),i=Ct(t),r=Rt(i);let s=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(s=pt(s)),[s,pt(s)]}function Le(t){const e=pt(t);return[St(t),e,St(e)]}function St(t){return t.replace(/start|end/g,e=>Te[e])}function Me(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:s;default:return[]}}function $e(t,e,n,o){const i=Q(t);let r=Me(q(t),n==="start",o);return i&&(r=r.map(s=>s+"-"+i),e&&(r=r.concat(r.map(St)))),r}function pt(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function ke(t){return{top:0,right:0,bottom:0,left:0,...t}}function It(t){return typeof t!="number"?ke(t):{top:t,right:t,bottom:t,left:t}}function ht(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Yt(t,e,n){let{reference:o,floating:i}=t;const r=U(e),s=Ct(e),c=Rt(s),l=q(e),a=r==="y",f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-i.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-i.width,y:u};break;default:d={x:o.x,y:o.y}}switch(Q(e)){case"start":d[s]-=h*(n&&a?-1:1);break;case"end":d[s]+=h*(n&&a?-1:1);break}return d}const Fe=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:s}=n,c=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Yt(a,o,l),h=o,d={},p=0;for(let m=0;m<c.length;m++){const{name:w,fn:g}=c[m],{x:v,y:b,data:x,reset:y}=await g({x:f,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=v??f,u=b??u,d={...d,[w]:{...d[w],...x}},y&&p<=50&&(p++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):y.rects),{x:f,y:u}=Yt(a,h,l)),m=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=X(e,t),p=It(d),w=c[h?u==="floating"?"reference":"floating":u],g=ht(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(w)))==null||n?w:w.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),v=u==="floating"?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),x=await(r.isElement==null?void 0:r.isElement(b))?await(r.getScale==null?void 0:r.getScale(b))||{x:1,y:1}:{x:1,y:1},y=ht(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-y.top+p.top)/x.y,bottom:(y.bottom-g.bottom+p.bottom)/x.y,left:(g.left-y.left+p.left)/x.x,right:(y.right-g.right+p.right)/x.x}}const Ne=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=X(t,e)||{};if(a==null)return{};const u=It(f),h={x:n,y:o},d=Ct(i),p=Rt(d),m=await s.getDimensions(a),w=d==="y",g=w?"top":"left",v=w?"bottom":"right",b=w?"clientHeight":"clientWidth",x=r.reference[p]+r.reference[d]-h[d]-r.floating[p],y=h[d]-r.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||r.floating[p]);const E=x/2-y/2,N=O/2-m[p]/2-1,C=Z(u[g],N),k=Z(u[v],N),F=C,R=O-m[p]-k,$=O/2-m[p]/2+E,T=Ot(F,$,R),D=!l.arrow&&Q(i)!=null&&$!==T&&r.reference[p]/2-($<F?C:k)-m[p]/2<0,L=D?$<F?$-F:$-R:0;return{[d]:h[d]+L,data:{[d]:T,centerOffset:$-T-L,...D&&{alignmentOffset:L}},reset:D}}}),He=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...w}=X(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const g=q(i),v=U(c),b=q(c)===c,x=await(l.isRTL==null?void 0:l.isRTL(a.floating)),y=h||(b||!m?[pt(c)]:Le(c)),P=p!=="none";!h&&P&&y.push(...$e(c,m,p,x));const O=[c,...y],E=await it(e,w),N=[];let C=((o=r.flip)==null?void 0:o.overflows)||[];if(f&&N.push(E[g]),u){const T=De(i,s,x);N.push(E[T[0]],E[T[1]])}if(C=[...C,{placement:i,overflows:N}],!N.every(T=>T<=0)){var k,F;const T=(((k=r.flip)==null?void 0:k.index)||0)+1,D=O[T];if(D){var R;const A=u==="alignment"?v!==U(D):!1,S=((R=C[0])==null?void 0:R.overflows[0])>0;if(!A||S)return{data:{index:T,overflows:C},reset:{placement:D}}}let L=(F=C.filter(A=>A.overflows[0]<=0).sort((A,S)=>A.overflows[1]-S.overflows[1])[0])==null?void 0:F.placement;if(!L)switch(d){case"bestFit":{var $;const A=($=C.filter(S=>{if(P){const M=U(S.placement);return M===v||M==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(M=>M>0).reduce((M,ct)=>M+ct,0)]).sort((S,M)=>S[1]-M[1])[0])==null?void 0:$[0];A&&(L=A);break}case"initialPlacement":L=c;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function jt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Xt(t){return Se.some(e=>t[e]>=0)}const We=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=X(t,e);switch(o){case"referenceHidden":{const r=await it(e,{...i,elementContext:"reference"}),s=jt(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Xt(s)}}}case"escaped":{const r=await it(e,{...i,altBoundary:!0}),s=jt(r,n.floating);return{data:{escapedOffsets:s,escaped:Xt(s)}}}default:return{}}}}};async function ze(t,e){const{placement:n,platform:o,elements:i}=t,r=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=q(n),c=Q(n),l=U(n)==="y",a=["left","top"].includes(s)?-1:1,f=r&&l?-1:1,u=X(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:h*a}:{x:h*a,y:d*f}}const _e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:s,middlewareData:c}=e,l=await ze(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:s}}}}},Be=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:v}=w;return{x:g,y:v}}},...l}=X(t,e),a={x:n,y:o},f=await it(e,l),u=U(q(i)),h=Pt(u);let d=a[h],p=a[u];if(r){const w=h==="y"?"top":"left",g=h==="y"?"bottom":"right",v=d+f[w],b=d-f[g];d=Ot(v,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",v=p+f[w],b=p-f[g];p=Ot(v,p,b)}const m=c.fn({...e,[h]:d,[u]:p});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[h]:r,[u]:s}}}}}},Ve=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=X(t,e),f={x:n,y:o},u=U(i),h=Pt(u);let d=f[h],p=f[u];const m=X(c,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=h==="y"?"height":"width",x=r.reference[h]-r.floating[b]+w.mainAxis,y=r.reference[h]+r.reference[b]-w.mainAxis;d<x?d=x:d>y&&(d=y)}if(a){var g,v;const b=h==="y"?"width":"height",x=["top","left"].includes(q(i)),y=r.reference[u]-r.floating[b]+(x&&((g=s.offset)==null?void 0:g[u])||0)+(x?0:w.crossAxis),P=r.reference[u]+r.reference[b]+(x?0:((v=s.offset)==null?void 0:v[u])||0)-(x?w.crossAxis:0);p<y?p=y:p>P&&(p=P)}return{[h]:d,[u]:p}}}},Ie=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:l=()=>{},...a}=X(t,e),f=await it(e,a),u=q(i),h=Q(i),d=U(i)==="y",{width:p,height:m}=r.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=h==="end"?"top":"bottom");const v=m-f.top-f.bottom,b=p-f.left-f.right,x=Z(m-f[w],v),y=Z(p-f[g],b),P=!e.middlewareData.shift;let O=x,E=y;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=v),P&&!h){const C=H(f.left,0),k=H(f.right,0),F=H(f.top,0),R=H(f.bottom,0);d?E=p-2*(C!==0||k!==0?C+k:H(f.left,f.right)):O=m-2*(F!==0||R!==0?F+R:H(f.top,f.bottom))}await l({...e,availableWidth:E,availableHeight:O});const N=await s.getDimensions(c.floating);return p!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function tt(t){return qt(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function V(t){var e;return(e=(qt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function qt(t){return mt()?t instanceof Node||t instanceof W(t).Node:!1}function z(t){return mt()?t instanceof Element||t instanceof W(t).Element:!1}function I(t){return mt()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function Ut(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}function rt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=_(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ye(t){return["table","td","th"].includes(tt(t))}function gt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Et(t){const e=Tt(),n=z(t)?_(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function je(t){let e=K(t);for(;I(e)&&!et(e);){if(Et(e))return e;if(gt(e))return null;e=K(e)}return null}function Tt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(t){return["html","body","#document"].includes(tt(t))}function _(t){return W(t).getComputedStyle(t)}function wt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(tt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ut(t)&&t.host||V(t);return Ut(e)?e.host:e}function Zt(t){const e=K(t);return et(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&rt(e)?e:Zt(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Zt(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),s=W(i);if(r){const c=Dt(s);return e.concat(s,s.visualViewport||[],rt(i)?i:[],c&&n?st(c):[])}return e.concat(i,st(i,[],n))}function Dt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Kt(t){const e=_(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=I(t),r=i?t.offsetWidth:n,s=i?t.offsetHeight:o,c=ut(n)!==r||ut(o)!==s;return c&&(n=r,o=s),{width:n,height:o,$:c}}function Lt(t){return z(t)?t:t.contextElement}function nt(t){const e=Lt(t);if(!I(e))return B(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Kt(e);let s=(r?ut(n.width):n.width)/o,c=(r?ut(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Xe=B(0);function Gt(t){const e=W(t);return!Tt()||!e.visualViewport?Xe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function J(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Lt(t);let s=B(1);e&&(o?z(o)&&(s=nt(o)):s=nt(t));const c=qe(r,n,o)?Gt(r):B(0);let l=(i.left+c.x)/s.x,a=(i.top+c.y)/s.y,f=i.width/s.x,u=i.height/s.y;if(r){const h=W(r),d=o&&z(o)?W(o):o;let p=h,m=Dt(p);for(;m&&o&&d!==p;){const w=nt(m),g=m.getBoundingClientRect(),v=_(m),b=g.left+(m.clientLeft+parseFloat(v.paddingLeft))*w.x,x=g.top+(m.clientTop+parseFloat(v.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=x,p=W(m),m=Dt(p)}}return ht({width:f,height:u,x:l,y:a})}function Mt(t,e){const n=wt(t).scrollLeft;return e?e.left+n:J(V(t)).left+n}function Jt(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=o.left+e.scrollLeft-(n?0:Mt(t,o)),r=o.top+e.scrollTop;return{x:i,y:r}}function Ue(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",s=V(o),c=e?gt(e.floating):!1;if(o===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},a=B(1);const f=B(0),u=I(o);if((u||!u&&!r)&&((tt(o)!=="body"||rt(s))&&(l=wt(o)),I(o))){const d=J(o);a=nt(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const h=s&&!u&&!r?Jt(s,l,!0):B(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+h.x,y:n.y*a.y-l.scrollTop*a.y+f.y+h.y}}function Ze(t){return Array.from(t.getClientRects())}function Ke(t){const e=V(t),n=wt(t),o=t.ownerDocument.body,i=H(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=H(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Mt(t);const c=-n.scrollTop;return _(o).direction==="rtl"&&(s+=H(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:s,y:c}}function Ge(t,e){const n=W(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){r=i.width,s=i.height;const a=Tt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:s,x:c,y:l}}function Je(t,e){const n=J(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=I(t)?nt(t):B(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=i*r.x,a=o*r.y;return{width:s,height:c,x:l,y:a}}function Qt(t,e,n){let o;if(e==="viewport")o=Ge(t,n);else if(e==="document")o=Ke(V(t));else if(z(e))o=Je(e,n);else{const i=Gt(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ht(o)}function te(t,e){const n=K(t);return n===e||!z(n)||et(n)?!1:_(n).position==="fixed"||te(n,e)}function Qe(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>z(c)&&tt(c)!=="body"),i=null;const r=_(t).position==="fixed";let s=r?K(t):t;for(;z(s)&&!et(s);){const c=_(s),l=Et(s);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rt(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):i=c,s=K(s)}return e.set(t,o),o}function tn(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const s=[...n==="clippingAncestors"?gt(e)?[]:Qe(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Qt(e,f,i);return a.top=H(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=H(u.left,a.left),a},Qt(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function en(t){const{width:e,height:n}=Kt(t);return{width:e,height:n}}function nn(t,e,n){const o=I(e),i=V(e),r=n==="fixed",s=J(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=B(0);function a(){l.x=Mt(i)}if(o||!o&&!r)if((tt(e)!=="body"||rt(i))&&(c=wt(e)),o){const d=J(e,!0,r,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else i&&a();r&&!o&&i&&a();const f=i&&!o&&!r?Jt(i,c):B(0),u=s.left+c.scrollLeft-l.x-f.x,h=s.top+c.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function $t(t){return _(t).position==="static"}function ee(t,e){if(!I(t)||_(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=W(t);if(gt(t))return n;if(!I(t)){let i=K(t);for(;i&&!et(i);){if(z(i)&&!$t(i))return i;i=K(i)}return n}let o=ee(t,e);for(;o&&Ye(o)&&$t(o);)o=ee(o,e);return o&&et(o)&&$t(o)&&!Et(o)?n:o||je(t)||n}const on=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:nn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function rn(t){return _(t).direction==="rtl"}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:Ue,getDocumentElement:V,getClippingRect:tn,getOffsetParent:ne,getElementRects:on,getClientRects:Ze,getDimensions:en,getScale:nt,isElement:z,isRTL:rn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function cn(t,e){let n=null,o;const i=V(t);function r(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const a=t.getBoundingClientRect(),{left:f,top:u,width:h,height:d}=a;if(c||e(),!h||!d)return;const p=dt(u),m=dt(i.clientWidth-(f+h)),w=dt(i.clientHeight-(u+d)),g=dt(f),b={rootMargin:-p+"px "+-m+"px "+-w+"px "+-g+"px",threshold:H(0,Z(1,l))||1};let x=!0;function y(P){const O=P[0].intersectionRatio;if(O!==l){if(!x)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),x=!1}try{n=new IntersectionObserver(y,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,b)}n.observe(t)}return s(!0),r}function ln(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Lt(t),f=i||r?[...a?st(a):[],...st(e)]:[];f.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),r&&g.addEventListener("resize",n)});const u=a&&c?cn(a,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(g=>{let[v]=g;v&&v.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,m=l?J(t):null;l&&w();function w(){const g=J(t);m&&!oe(m,g)&&n(),m=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(v=>{i&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const an=_e,fn=Be,un=He,dn=Ie,pn=We,ie=Ne,hn=Ve,mn=(t,e,n)=>{const o=new Map,i={platform:sn,...n},r={...i.platform,_c:o};return Fe(t,e,{...i,platform:r})};var xt=typeof document<"u"?Oe:Bt;function yt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!yt(t[o],e[o]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,i[o]))return!1;for(o=n;o--!==0;){const r=i[o];if(!(r==="_owner"&&t.$$typeof)&&!yt(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=re(t);return Math.round(e*n)/n}function kt(t){const e=G(t);return xt(()=>{e.current=t}),e}function gn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:r,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=Y({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=Y(o);yt(h,o)||d(o);const[p,m]=Y(null),[w,g]=Y(null),v=vt(A=>{A!==P.current&&(P.current=A,m(A))},[]),b=vt(A=>{A!==O.current&&(O.current=A,g(A))},[]),x=r||p,y=s||w,P=G(null),O=G(null),E=G(f),N=l!=null,C=kt(l),k=kt(i),F=kt(a),R=vt(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:h};k.current&&(A.platform=k.current),mn(P.current,O.current,A).then(S=>{const M={...S,isPositioned:F.current!==!1};$.current&&!yt(E.current,M)&&(E.current=M,Pe(()=>{u(M)}))})},[h,e,n,k,F]);xt(()=>{a===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const $=G(!1);xt(()=>($.current=!0,()=>{$.current=!1}),[]),xt(()=>{if(x&&(P.current=x),y&&(O.current=y),x&&y){if(C.current)return C.current(x,y,R);R()}},[x,y,R,C,N]);const T=at(()=>({reference:P,floating:O,setReference:v,setFloating:b}),[v,b]),D=at(()=>({reference:x,floating:y}),[x,y]),L=at(()=>{const A={position:n,left:0,top:0};if(!D.floating)return A;const S=se(D.floating,f.x),M=se(D.floating,f.y);return c?{...A,transform:"translate("+S+"px, "+M+"px)",...re(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:M}},[n,c,D.floating,f.x,f.y]);return at(()=>({...f,update:R,refs:T,elements:D,floatingStyles:L}),[f,R,T,D,L])}const wn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:i}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?ie({element:o.current,padding:i}).fn(n):{}:o?ie({element:o,padding:i}).fn(n):{}}}},xn=(t,e)=>({...an(t),options:[t,e]}),yn=(t,e)=>({...fn(t),options:[t,e]}),vn=(t,e)=>({...hn(t),options:[t,e]}),bn=(t,e)=>({...un(t),options:[t,e]}),An=(t,e)=>({...dn(t),options:[t,e]}),On=(t,e)=>({...pn(t),options:[t,e]}),Pn=(t,e)=>({...wn(t),options:[t,e]});var Rn="Arrow",ce=ft((t,e)=>{const{children:n,width:o=10,height:i=5,...r}=t;return j(bt.svg,{...r,ref:e,width:o,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j("polygon",{points:"0,0 30,0 15,10"})})});ce.displayName=Rn;var Cn=ce;function Sn(t){const[e,n]=Y(void 0);return At(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let s,c;if("borderBoxSize"in r){const l=r.borderBoxSize,a=Array.isArray(l)?l[0]:l;s=a.inlineSize,c=a.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Ft="Popper",[le,En]=Re(Ft),[Tn,ae]=le(Ft),Nt=t=>{const{__scopePopper:e,children:n}=t,[o,i]=Y(null);return j(Tn,{scope:e,anchor:o,onAnchorChange:i,children:n})};Nt.displayName=Ft;var fe="PopperAnchor",Ht=ft((t,e)=>{const{__scopePopper:n,virtualRef:o,...i}=t,r=ae(fe,n),s=G(null),c=Vt(e,s),l=G(null);return Bt(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&r.onAnchorChange(l.current)}),o?null:j(bt.div,{...i,ref:c})});Ht.displayName=fe;var Wt="PopperContent",[Dn,Ln]=le(Wt),zt=ft((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:i=0,align:r="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,w=ae(Wt,n),[g,v]=Y(null),b=Vt(e,ot=>v(ot)),[x,y]=Y(null),P=Sn(x),O=P?.width??0,E=P?.height??0,N=o+(r!=="center"?"-"+r:""),C=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(a)?a:[a],F=k.length>0,R={padding:C,boundary:k.filter($n),altBoundary:F},{refs:$,floatingStyles:T,placement:D,isPositioned:L,middlewareData:A}=gn({strategy:"fixed",placement:N,whileElementsMounted:(...ot)=>ln(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[xn({mainAxis:i+E,alignmentAxis:s}),l&&yn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?vn():void 0,...R}),l&&bn({...R}),An({...R,apply:({elements:ot,rects:_t,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=_t.reference,lt=ot.floating.style;lt.setProperty("--radix-popper-available-width",`${ye}px`),lt.setProperty("--radix-popper-available-height",`${ve}px`),lt.setProperty("--radix-popper-anchor-width",`${be}px`),lt.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),x&&Pn({element:x,padding:c}),kn({arrowWidth:O,arrowHeight:E}),h&&On({strategy:"referenceHidden",...R})]}),[S,M]=pe(D),ct=Ce(p);At(()=>{L&&ct?.()},[L,ct]);const he=A.arrow?.x,me=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=Y();return At(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),j("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:L?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,["--radix-popper-transform-origin"]:[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j(Dn,{scope:n,placedSide:S,onArrowChange:y,arrowX:he,arrowY:me,shouldHideArrow:ge,children:j(bt.div,{"data-side":S,"data-align":M,...m,ref:b,style:{...m.style,animation:L?void 0:"none"}})})})});zt.displayName=Wt;var ue="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},de=ft(function(e,n){const{__scopePopper:o,...i}=e,r=Ln(ue,o),s=Mn[r.placedSide];return j("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:j(Cn,{...i,ref:n,style:{...i.style,display:"block"}})})});de.displayName=ue;function $n(t){return t!==null}var kn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:i}=e,s=i.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],h=(i.arrow?.x??0)+c/2,d=(i.arrow?.y??0)+l/2;let p="",m="";return a==="bottom"?(p=s?u:`${h}px`,m=`${-l}px`):a==="top"?(p=s?u:`${h}px`,m=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,m=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,m=s?u:`${d}px`),{data:{x:p,y:m}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var Fn=Nt,Nn=Ht,Hn=zt,Wn=de;export{Nn as A,Hn as C,Nt as P,Fn as R,Wn as a,zt as b,En as c,Ht as d};
@@ -1 +1 @@
1
- import{R as r,u as p}from"./register-Co5bzKo4.js";import{a as P}from"./index-Dvzx6tAx.js";import{u as y,a as E}from"./index-DRpDdidj.js";function g(i){const f=i+"CollectionProvider",[N,T]=P(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),C=c=>{const{scope:e,children:s}=c,o=r.useRef(null),t=r.useRef(new Map).current;return p(O,{scope:e,itemMap:t,collectionRef:o,children:s})};C.displayName=f;const m=i+"CollectionSlot",_=E(m),R=r.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(m,s),n=y(e,t.collectionRef);return p(_,{ref:n,children:o})});R.displayName=m;const d=i+"CollectionItemSlot",S="data-radix-collection-item",v=E(d),I=r.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=r.useRef(null),M=y(e,n),l=u(d,s);return r.useLayoutEffect(()=>(l.itemMap.set(n,{ref:n,...t}),()=>void l.itemMap.delete(n))),p(v,{[S]:"",ref:M,children:o})});I.displayName=d;function h(c){const e=u(i+"CollectionConsumer",c);return r.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((l,a)=>{const w=l.querySelectorAll("slot"),A=[...l.querySelectorAll(a)];for(const L of w)for(const x of L.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((l,a)=>t.indexOf(l.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:C,Slot:R,ItemSlot:I},h,T]}export{g as c};
1
+ import{R as r,u as p}from"./register-JRHiicj_.js";import{a as P}from"./index-CM7CXvTc.js";import{u as y,c as E}from"./index-DXhcISXb.js";function g(i){const f=i+"CollectionProvider",[N,T]=P(f),[O,u]=N(f,{collectionRef:{current:null},itemMap:new Map}),C=c=>{const{scope:e,children:s}=c,o=r.useRef(null),t=r.useRef(new Map).current;return p(O,{scope:e,itemMap:t,collectionRef:o,children:s})};C.displayName=f;const m=i+"CollectionSlot",_=E(m),R=r.forwardRef((c,e)=>{const{scope:s,children:o}=c,t=u(m,s),n=y(e,t.collectionRef);return p(_,{ref:n,children:o})});R.displayName=m;const d=i+"CollectionItemSlot",S="data-radix-collection-item",v=E(d),I=r.forwardRef((c,e)=>{const{scope:s,children:o,...t}=c,n=r.useRef(null),M=y(e,n),l=u(d,s);return r.useLayoutEffect(()=>(l.itemMap.set(n,{ref:n,...t}),()=>void l.itemMap.delete(n))),p(v,{[S]:"",ref:M,children:o})});I.displayName=d;function h(c){const e=u(i+"CollectionConsumer",c);return r.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const t=Array.from(((l,a)=>{const w=l.querySelectorAll("slot"),A=[...l.querySelectorAll(a)];for(const L of w)for(const x of L.assignedElements())A.push(...(x.shadowRoot??x).querySelectorAll(a));return A})(o,`[${S}]`));return Array.from(e.itemMap.values()).sort((l,a)=>t.indexOf(l.ref.current)-t.indexOf(a.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:C,Slot:R,ItemSlot:I},h,T]}export{g as c};
@@ -1 +1 @@
1
- import{D as a,e}from"./register-Co5bzKo4.js";const n="Portal",r=a((o,t)=>e(o.children,{ref:t}));r.displayName=n;export{r as P};
1
+ import{D as a,e}from"./register-JRHiicj_.js";const n="Portal",r=a((o,t)=>e(o.children,{ref:t}));r.displayName=n;export{r as P};
@@ -1 +1 @@
1
- import{d as u,a as s}from"./register-Co5bzKo4.js";import{u as f}from"./index-DgruwXLP.js";var e=s[" useId ".trim().toString()]||(()=>{}),n=0;function c(o){const[t,r]=u(e());return f(()=>{o||r(a=>a??String(n++))},[o]),o||(t?`radix-${t}`:"")}export{c as u};
1
+ import{d as u,a as s}from"./register-JRHiicj_.js";import{u as f}from"./index-DUlzSpV2.js";var e=s[" useId ".trim().toString()]||(()=>{}),n=0;function c(o){const[t,r]=u(e());return f(()=>{o||r(a=>a??String(n++))},[o]),o||(t?`radix-${t}`:"")}export{c as u};
@@ -1 +1 @@
1
- import{D as f,u as m}from"./register-Co5bzKo4.js";import{c as p}from"./index-CBrz5xtv.js";import{u}from"./index-CioOvWUM.js";import{P}from"./index-DO0sHCSW.js";var s="Toggle",a=f((e,r)=>{const{pressed:t,defaultPressed:d,onPressedChange:l,...i}=e,[o,n]=u({prop:t,onChange:l,defaultProp:d??!1,caller:s});return m(P.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:r,onClick:p(e.onClick,()=>{e.disabled||n(!o)})})});a.displayName=s;var b=a;export{b as R,a as T};
1
+ import{D as f,u as m}from"./register-JRHiicj_.js";import{c as p}from"./index-CBrz5xtv.js";import{u}from"./index-CJ0QOiV8.js";import{P}from"./index-CziPN18O.js";var s="Toggle",a=f((e,r)=>{const{pressed:t,defaultPressed:d,onPressedChange:l,...i}=e,[o,n]=u({prop:t,onChange:l,defaultProp:d??!1,caller:s});return m(P.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:r,onClick:p(e.onClick,()=>{e.disabled||n(!o)})})});a.displayName=s;var b=a;export{b as R,a as T};
@@ -0,0 +1 @@
1
+ import{y as l,D as g,x as B,Q,d as T,u as R,A as y}from"./register-JRHiicj_.js";import{c as p}from"./index-CBrz5xtv.js";import{P as F,d as X}from"./index-CziPN18O.js";import{u as I}from"./index-DXhcISXb.js";import{u as m}from"./index-Ci8exF1b.js";function Y(s,e=globalThis?.document){const t=m(s);l(()=>{const i=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",i,{capture:!0}),()=>e.removeEventListener("keydown",i,{capture:!0})},[t,e])}var j="DismissableLayer",b="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",G="dismissableLayer.focusOutside",A,W=Q({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=g((s,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:i,onPointerDownOutside:n,onFocusOutside:a,onInteractOutside:v,onDismiss:d,...f}=s,o=B(W),[c,S]=T(null),u=c?.ownerDocument??globalThis?.document,[,_]=T({}),U=I(e,r=>S(r)),P=Array.from(o.layers),[z]=[...o.layersWithOutsidePointerEventsDisabled].slice(-1),H=P.indexOf(z),O=c?P.indexOf(c):-1,K=o.layersWithOutsidePointerEventsDisabled.size>0,L=O>=H,M=V(r=>{const E=r.target,w=[...o.branches].some(h=>h.contains(E));!L||w||(n?.(r),v?.(r),r.defaultPrevented||d?.())},u),C=Z(r=>{const E=r.target;[...o.branches].some(h=>h.contains(E))||(a?.(r),v?.(r),r.defaultPrevented||d?.())},u);return Y(r=>{O===o.layers.size-1&&(i?.(r),!r.defaultPrevented&&d&&(r.preventDefault(),d()))},u),l(()=>{if(c)return t&&(o.layersWithOutsidePointerEventsDisabled.size===0&&(A=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),o.layersWithOutsidePointerEventsDisabled.add(c)),o.layers.add(c),x(),()=>{t&&o.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=A)}},[c,u,t,o]),l(()=>()=>{c&&(o.layers.delete(c),o.layersWithOutsidePointerEventsDisabled.delete(c),x())},[c,o]),l(()=>{const r=()=>_({});return document.addEventListener(b,r),()=>document.removeEventListener(b,r)},[]),R(F.div,{...f,ref:U,style:{pointerEvents:K?L?"auto":"none":void 0,...s.style},onFocusCapture:p(s.onFocusCapture,C.onFocusCapture),onBlurCapture:p(s.onBlurCapture,C.onBlurCapture),onPointerDownCapture:p(s.onPointerDownCapture,M.onPointerDownCapture)})});D.displayName=j;var J="DismissableLayerBranch",k=g((s,e)=>{const t=B(W),i=y(null),n=I(e,i);return l(()=>{const a=i.current;if(a)return t.branches.add(a),()=>{t.branches.delete(a)}},[t.branches]),R(F.div,{...s,ref:n})});k.displayName=J;function V(s,e=globalThis?.document){const t=m(s),i=y(!1),n=y(()=>{});return l(()=>{const a=d=>{if(d.target&&!i.current){let f=function(){N(q,t,o,{discrete:!0})};const o={originalEvent:d};d.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=f,e.addEventListener("click",n.current,{once:!0})):f()}else e.removeEventListener("click",n.current);i.current=!1},v=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(v),e.removeEventListener("pointerdown",a),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>i.current=!0}}function Z(s,e=globalThis?.document){const t=m(s),i=y(!1);return l(()=>{const n=a=>{a.target&&!i.current&&N(G,t,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function x(){const s=new CustomEvent(b);document.dispatchEvent(s)}function N(s,e,t,{discrete:i}){const n=t.originalEvent.target,a=new CustomEvent(s,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(s,e,{once:!0}),i?X(n,a):n.dispatchEvent(a)}var $=D,ee=k;export{ee as B,D,$ as R};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { JSXBase } from '@stencil/core/internal';
2
2
  import { ReactNode, ComponentPropsWithoutRef } from 'react';
3
- import { R as ResponsiveArray, a as ResponsiveObject, F as FocusOutsideEvent, T as Toaster, P as PointerDownOutsideEvent, b as FocusEventHandler, C as ChangeEventHandler, S as SwipeEvent } from './types-D6jqxLjP.js';
3
+ import { R as ResponsiveArray, a as ResponsiveObject, P as PointerDownOutsideEvent, F as FocusOutsideEvent, T as Toaster, b as FocusEventHandler, C as ChangeEventHandler, S as SwipeEvent } from './types-D6jqxLjP.js';
4
4
 
5
5
  declare const Alert = "ax-alert";
6
6
 
@@ -30,7 +30,7 @@ type AlertDialogActionProps = BoxProps & {
30
30
  "icon-position"?: "end" | "start";
31
31
  "size"?: "sm" | "md" | "lg";
32
32
  "disabled"?: false | true;
33
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
33
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
34
34
  "square"?: false | true;
35
35
  "loading"?: false | true;
36
36
  "asChild"?: false | true;
@@ -54,7 +54,7 @@ type AlertDialogCancelProps = BoxProps & {
54
54
  "icon-position"?: "end" | "start";
55
55
  "size"?: "sm" | "md" | "lg";
56
56
  "disabled"?: false | true;
57
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
57
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
58
58
  "square"?: false | true;
59
59
  "loading"?: false | true;
60
60
  "asChild"?: false | true;
@@ -67,7 +67,9 @@ type AlertDialogContentProps = BoxProps & {
67
67
  "asChild"?: false | true;
68
68
  "as-child"?: false | true;
69
69
  "onEscapeKeyDown"?: (event: KeyboardEvent) => void;
70
+ "onPointerDownOutside"?: (event: PointerDownOutsideEvent) => void;
70
71
  "onFocusOutside"?: (event: FocusOutsideEvent) => void;
72
+ "onInteractOutside"?: (event: PointerDownOutsideEvent | FocusOutsideEvent) => void;
71
73
  "onOpenAutoFocus"?: (event: Event) => void;
72
74
  "onCloseAutoFocus"?: (event: Event) => void;
73
75
  };
@@ -97,7 +99,7 @@ type AlertDialogTriggerProps = BoxProps & {
97
99
  "icon-position"?: "end" | "start";
98
100
  "size"?: "sm" | "md" | "lg";
99
101
  "disabled"?: false | true;
100
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
102
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
101
103
  "square"?: false | true;
102
104
  "loading"?: false | true;
103
105
  "asChild"?: false | true;
@@ -110,7 +112,7 @@ type AngleMenuButtonProps = BoxProps & {
110
112
  "asChild"?: false | true;
111
113
  "as-child"?: false | true;
112
114
  "disabled"?: false | true;
113
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
115
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
114
116
  "addonAfter"?: string | number | false | true;
115
117
  "addon-after"?: string;
116
118
  "addonBefore"?: string | number | false | true;
@@ -181,6 +183,8 @@ type BoxProps = {
181
183
  "fontSize"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
182
184
  "font-size"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
183
185
  "size"?: "0" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | "3xl" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | "auto" | "2xs" | "56" | "224" | "384" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "fit" | "max" | "min" | ResponsiveArray<"0" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | "3xl" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | "auto" | "2xs" | "56" | "224" | "384" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "fit" | "max" | "min"> | ResponsiveObject<"0" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | "3xl" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | "auto" | "2xs" | "56" | "224" | "384" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "fit" | "max" | "min">;
186
+ "backgroundImage"?: "gradient.opal";
187
+ "background-image"?: "gradient.opal";
184
188
  "borderColor"?: "transparent" | "current" | "border.accent" | "border.control" | "border.control.hovered" | "border.default" | "border.disabled" | "border.error" | "border.focus" | "border.focus.error" | "border.secondary" | "border.success" | "border.tertiary" | "border.warning";
185
189
  "border-color"?: "transparent" | "current" | "border.accent" | "border.control" | "border.control.hovered" | "border.default" | "border.disabled" | "border.error" | "border.focus" | "border.focus.error" | "border.secondary" | "border.success" | "border.tertiary" | "border.warning";
186
190
  "color"?: "transparent" | "current" | "fg.accent" | "fg.accent.hovered" | "fg.accent.strong" | "fg.avatar.neutral" | "fg.avatar.purple" | "fg.default" | "fg.default.inverse" | "fg.disabled" | "fg.error" | "fg.error.hovered" | "fg.error.light" | "fg.error.strong" | "fg.information" | "fg.information.light" | "fg.information.strong" | "fg.link.default" | "fg.link.default.hovered" | "fg.link.inverse" | "fg.link.subtle" | "fg.link.visited" | "fg.secondary" | "fg.spinner.default" | "fg.spinner.inverse" | "fg.success" | "fg.success.hovered" | "fg.success.light" | "fg.success.strong" | "fg.tertiary" | "fg.warning" | "fg.warning.hovered" | "fg.warning.inverse" | "fg.warning.light" | "fg.warning.strong" | "fg.white";
@@ -283,7 +287,7 @@ type ButtonProps = BoxProps & {
283
287
  "icon-position"?: "end" | "start";
284
288
  "size"?: "sm" | "md" | "lg";
285
289
  "disabled"?: false | true;
286
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
290
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
287
291
  "square"?: false | true;
288
292
  "loading"?: false | true;
289
293
  "asChild"?: false | true;
@@ -511,7 +515,7 @@ type DateRangePickerTriggerProps = BoxProps & {
511
515
  "asChild"?: false | true;
512
516
  "as-child"?: false | true;
513
517
  "disabled"?: false | true;
514
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
518
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
515
519
  "addonAfter"?: string | number | false | true;
516
520
  "addon-after"?: string;
517
521
  "addonBefore"?: string | number | false | true;
@@ -551,7 +555,7 @@ type DialogCloseProps = BoxProps & {
551
555
  "icon-position"?: "end" | "start";
552
556
  "size"?: "sm" | "md" | "lg";
553
557
  "disabled"?: false | true;
554
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
558
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
555
559
  "square"?: false | true;
556
560
  "loading"?: false | true;
557
561
  "asChild"?: false | true;
@@ -603,7 +607,7 @@ type DialogTriggerProps = BoxProps & {
603
607
  "icon-position"?: "end" | "start";
604
608
  "size"?: "sm" | "md" | "lg";
605
609
  "disabled"?: false | true;
606
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
610
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
607
611
  "square"?: false | true;
608
612
  "loading"?: false | true;
609
613
  "asChild"?: false | true;
@@ -750,7 +754,7 @@ type DropdownMenuTriggerProps = BoxProps & {
750
754
  "asChild"?: false | true;
751
755
  "as-child"?: false | true;
752
756
  "disabled"?: false | true;
753
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
757
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
754
758
  "addonAfter"?: string | number | false | true;
755
759
  "addon-after"?: string;
756
760
  "addonBefore"?: string | number | false | true;
@@ -768,7 +772,7 @@ type EllipsisMenuButtonProps = BoxProps & {
768
772
  "asChild"?: false | true;
769
773
  "as-child"?: false | true;
770
774
  "disabled"?: false | true;
771
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
775
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
772
776
  "addonAfter"?: string | number | false | true;
773
777
  "addon-after"?: string;
774
778
  "addonBefore"?: string | number | false | true;
@@ -1071,7 +1075,7 @@ type MenuTriggerProps = BoxProps & {
1071
1075
  "asChild"?: false | true;
1072
1076
  "as-child"?: false | true;
1073
1077
  "disabled"?: false | true;
1074
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
1078
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
1075
1079
  "addonAfter"?: string | number | false | true;
1076
1080
  "addon-after"?: string;
1077
1081
  "addonBefore"?: string | number | false | true;
@@ -1253,7 +1257,7 @@ type PopoverTriggerProps = BoxProps & {
1253
1257
  "icon-position"?: "end" | "start";
1254
1258
  "size"?: "sm" | "md" | "lg";
1255
1259
  "disabled"?: false | true;
1256
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
1260
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
1257
1261
  "square"?: false | true;
1258
1262
  "loading"?: false | true;
1259
1263
  "asChild"?: false | true;
@@ -1268,7 +1272,7 @@ type ProgressProps = BoxProps & {
1268
1272
  "value"?: number;
1269
1273
  "getValueLabel"?: (value: number, max: number) => string;
1270
1274
  "get-value-label"?: (value: number, max: number) => string;
1271
- "intent"?: "danger" | "primary" | "success";
1275
+ "intent"?: "danger" | "primary" | "success" | "opal";
1272
1276
  };
1273
1277
  declare const Radio = "ax-radio";
1274
1278
 
@@ -1341,7 +1345,7 @@ type SegmentedControlItemProps = BoxProps & {
1341
1345
  "icon-position"?: "end" | "start";
1342
1346
  "size"?: "sm" | "md" | "lg";
1343
1347
  "disabled"?: false | true;
1344
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
1348
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
1345
1349
  "square"?: false | true;
1346
1350
  "loading"?: false | true;
1347
1351
  "asChild"?: false | true;
@@ -1386,7 +1390,7 @@ type SelectTriggerProps = BoxProps & {
1386
1390
  "asChild"?: false | true;
1387
1391
  "as-child"?: false | true;
1388
1392
  "placeholder"?: string;
1389
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
1393
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
1390
1394
  "addonAfter"?: string | number | false | true;
1391
1395
  "addon-after"?: string;
1392
1396
  "addonBefore"?: string | number | false | true;
@@ -1605,7 +1609,7 @@ type ToastActionProps = BoxProps & {
1605
1609
  "icon-position"?: "end" | "start";
1606
1610
  "size"?: "sm" | "md" | "lg";
1607
1611
  "disabled"?: false | true;
1608
- "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "inverse" | "primary-opal";
1612
+ "appearance"?: "default" | "danger" | "primary" | "subtle" | "danger-outline" | "default-opal" | "inverse" | "primary-opal";
1609
1613
  "square"?: false | true;
1610
1614
  "loading"?: false | true;
1611
1615
  "asChild"?: false | true;
@@ -1669,6 +1673,8 @@ type TooltipProps = {
1669
1673
  "fontSize"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
1670
1674
  "font-size"?: "xs" | "sm" | "md" | "lg" | "xl" | "inherit" | "2xl" | "3xl" | "4xl";
1671
1675
  "size"?: "0" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | "3xl" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | "auto" | "2xs" | "56" | "224" | "384" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "fit" | "max" | "min" | ResponsiveArray<"0" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | "3xl" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | "auto" | "2xs" | "56" | "224" | "384" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "fit" | "max" | "min"> | ResponsiveObject<"0" | "xs" | "sm" | "md" | "lg" | "xl" | "full" | "3xl" | "10" | "12" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "80" | "auto" | "2xs" | "56" | "224" | "384" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | "fit" | "max" | "min">;
1676
+ "backgroundImage"?: "gradient.opal";
1677
+ "background-image"?: "gradient.opal";
1672
1678
  "borderColor"?: "transparent" | "current" | "border.accent" | "border.control" | "border.control.hovered" | "border.default" | "border.disabled" | "border.error" | "border.focus" | "border.focus.error" | "border.secondary" | "border.success" | "border.tertiary" | "border.warning";
1673
1679
  "border-color"?: "transparent" | "current" | "border.accent" | "border.control" | "border.control.hovered" | "border.default" | "border.disabled" | "border.error" | "border.focus" | "border.focus.error" | "border.secondary" | "border.success" | "border.tertiary" | "border.warning";
1674
1680
  "color"?: "transparent" | "current" | "fg.accent" | "fg.accent.hovered" | "fg.accent.strong" | "fg.avatar.neutral" | "fg.avatar.purple" | "fg.default" | "fg.default.inverse" | "fg.disabled" | "fg.error" | "fg.error.hovered" | "fg.error.light" | "fg.error.strong" | "fg.information" | "fg.information.light" | "fg.information.strong" | "fg.link.default" | "fg.link.default.hovered" | "fg.link.inverse" | "fg.link.subtle" | "fg.link.visited" | "fg.secondary" | "fg.spinner.default" | "fg.spinner.inverse" | "fg.success" | "fg.success.hovered" | "fg.success.light" | "fg.success.strong" | "fg.tertiary" | "fg.warning" | "fg.warning.hovered" | "fg.warning.inverse" | "fg.warning.light" | "fg.warning.strong" | "fg.white";