@nipsys/shadcn-lsd 0.1.0

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 (485) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +130 -0
  3. package/dist/Autocomplete-Cuui1Aca.js +216 -0
  4. package/dist/Badge-DgWf6s7v.js +120 -0
  5. package/dist/Button-L-du0fyx.js +123 -0
  6. package/dist/ButtonGroup-BgylmC1j.js +34 -0
  7. package/dist/Input-CNaDUPU7.js +119 -0
  8. package/dist/Label-Bz0dz1Kz.js +51 -0
  9. package/dist/ScrollBar-CyKMm83e.js +552 -0
  10. package/dist/SidebarContext-7jKqX7F3.js +107 -0
  11. package/dist/Toggle-B7BF2ro7.js +34 -0
  12. package/dist/Typography-D8OaaVSH.js +91 -0
  13. package/dist/__tests__/setup.d.ts +0 -0
  14. package/dist/assets/style.css +1 -0
  15. package/dist/check-Bt2UikoU.js +5 -0
  16. package/dist/chevron-down-BBFYYzZq.js +5 -0
  17. package/dist/components/ui/accordion/Accordion.d.ts +4 -0
  18. package/dist/components/ui/accordion/Accordion.js +10 -0
  19. package/dist/components/ui/accordion/AccordionContent.d.ts +7 -0
  20. package/dist/components/ui/accordion/AccordionContent.js +33 -0
  21. package/dist/components/ui/accordion/AccordionItem.d.ts +4 -0
  22. package/dist/components/ui/accordion/AccordionItem.js +19 -0
  23. package/dist/components/ui/accordion/AccordionTrigger.d.ts +7 -0
  24. package/dist/components/ui/accordion/AccordionTrigger.js +45 -0
  25. package/dist/components/ui/accordion/__tests__/accordion-content.test.d.ts +1 -0
  26. package/dist/components/ui/accordion/__tests__/accordion-content.test.js +56 -0
  27. package/dist/components/ui/accordion/__tests__/accordion-item.test.d.ts +1 -0
  28. package/dist/components/ui/accordion/__tests__/accordion-item.test.js +37 -0
  29. package/dist/components/ui/accordion/__tests__/accordion-trigger.test.d.ts +1 -0
  30. package/dist/components/ui/accordion/__tests__/accordion-trigger.test.js +51 -0
  31. package/dist/components/ui/accordion/__tests__/accordion.test.d.ts +1 -0
  32. package/dist/components/ui/accordion/__tests__/accordion.test.js +64 -0
  33. package/dist/components/ui/accordion/index.d.ts +5 -0
  34. package/dist/components/ui/accordion/types.d.ts +11 -0
  35. package/dist/components/ui/alert-dialog/AlertDialog.d.ts +4 -0
  36. package/dist/components/ui/alert-dialog/AlertDialog.js +10 -0
  37. package/dist/components/ui/alert-dialog/AlertDialogAction.d.ts +4 -0
  38. package/dist/components/ui/alert-dialog/AlertDialogAction.js +19 -0
  39. package/dist/components/ui/alert-dialog/AlertDialogCancel.d.ts +4 -0
  40. package/dist/components/ui/alert-dialog/AlertDialogCancel.js +19 -0
  41. package/dist/components/ui/alert-dialog/AlertDialogContent.d.ts +4 -0
  42. package/dist/components/ui/alert-dialog/AlertDialogContent.js +27 -0
  43. package/dist/components/ui/alert-dialog/AlertDialogDescription.d.ts +4 -0
  44. package/dist/components/ui/alert-dialog/AlertDialogDescription.js +19 -0
  45. package/dist/components/ui/alert-dialog/AlertDialogFooter.d.ts +3 -0
  46. package/dist/components/ui/alert-dialog/AlertDialogFooter.js +21 -0
  47. package/dist/components/ui/alert-dialog/AlertDialogHeader.d.ts +3 -0
  48. package/dist/components/ui/alert-dialog/AlertDialogHeader.js +21 -0
  49. package/dist/components/ui/alert-dialog/AlertDialogOverlay.d.ts +4 -0
  50. package/dist/components/ui/alert-dialog/AlertDialogOverlay.js +22 -0
  51. package/dist/components/ui/alert-dialog/AlertDialogPortal.d.ts +4 -0
  52. package/dist/components/ui/alert-dialog/AlertDialogPortal.js +10 -0
  53. package/dist/components/ui/alert-dialog/AlertDialogTitle.d.ts +4 -0
  54. package/dist/components/ui/alert-dialog/AlertDialogTitle.js +22 -0
  55. package/dist/components/ui/alert-dialog/AlertDialogTrigger.d.ts +4 -0
  56. package/dist/components/ui/alert-dialog/AlertDialogTrigger.js +10 -0
  57. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-action.test.d.ts +1 -0
  58. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-action.test.js +39 -0
  59. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-cancel.test.d.ts +1 -0
  60. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-cancel.test.js +39 -0
  61. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-content.test.d.ts +1 -0
  62. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-content.test.js +48 -0
  63. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-description.test.d.ts +1 -0
  64. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-description.test.js +47 -0
  65. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-footer.test.d.ts +1 -0
  66. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-footer.test.js +36 -0
  67. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-header.test.d.ts +1 -0
  68. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-header.test.js +39 -0
  69. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-overlay.test.d.ts +1 -0
  70. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-overlay.test.js +50 -0
  71. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-title.test.d.ts +1 -0
  72. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-title.test.js +42 -0
  73. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-trigger.test.d.ts +1 -0
  74. package/dist/components/ui/alert-dialog/__tests__/alert-dialog-trigger.test.js +34 -0
  75. package/dist/components/ui/alert-dialog/__tests__/alert-dialog.test.d.ts +1 -0
  76. package/dist/components/ui/alert-dialog/__tests__/alert-dialog.test.js +60 -0
  77. package/dist/components/ui/alert-dialog/index.d.ts +11 -0
  78. package/dist/components/ui/autocomplete/Autocomplete.d.ts +4 -0
  79. package/dist/components/ui/autocomplete/Autocomplete.js +11 -0
  80. package/dist/components/ui/autocomplete/AutocompleteList.d.ts +13 -0
  81. package/dist/components/ui/autocomplete/AutocompleteList.js +61 -0
  82. package/dist/components/ui/autocomplete/__tests__/autocomplete.test.d.ts +1 -0
  83. package/dist/components/ui/autocomplete/__tests__/autocomplete.test.js +163 -0
  84. package/dist/components/ui/autocomplete/index.d.ts +5 -0
  85. package/dist/components/ui/autocomplete/types.d.ts +35 -0
  86. package/dist/components/ui/autocomplete/useAutocompleteFetch.d.ts +13 -0
  87. package/dist/components/ui/badge/Badge.d.ts +12 -0
  88. package/dist/components/ui/badge/Badge.js +7 -0
  89. package/dist/components/ui/badge/badge.test.d.ts +1 -0
  90. package/dist/components/ui/badge/badge.test.js +144 -0
  91. package/dist/components/ui/badge/index.d.ts +2 -0
  92. package/dist/components/ui/badge/types.d.ts +11 -0
  93. package/dist/components/ui/button/Button.d.ts +8 -0
  94. package/dist/components/ui/button/Button.js +7 -0
  95. package/dist/components/ui/button/button.test.d.ts +1 -0
  96. package/dist/components/ui/button/button.test.js +224 -0
  97. package/dist/components/ui/button/index.d.ts +2 -0
  98. package/dist/components/ui/button/types.d.ts +11 -0
  99. package/dist/components/ui/button-group/ButtonGroup.d.ts +4 -0
  100. package/dist/components/ui/button-group/ButtonGroup.js +7 -0
  101. package/dist/components/ui/button-group/ButtonGroupSeparator.d.ts +3 -0
  102. package/dist/components/ui/button-group/ButtonGroupSeparator.js +21 -0
  103. package/dist/components/ui/button-group/ButtonGroupText.d.ts +4 -0
  104. package/dist/components/ui/button-group/ButtonGroupText.js +21 -0
  105. package/dist/components/ui/button-group/__tests__/button-group-separator.test.d.ts +1 -0
  106. package/dist/components/ui/button-group/__tests__/button-group-separator.test.js +40 -0
  107. package/dist/components/ui/button-group/__tests__/button-group-text.test.d.ts +1 -0
  108. package/dist/components/ui/button-group/__tests__/button-group-text.test.js +36 -0
  109. package/dist/components/ui/button-group/__tests__/button-group.test.d.ts +1 -0
  110. package/dist/components/ui/button-group/__tests__/button-group.test.js +84 -0
  111. package/dist/components/ui/button-group/index.d.ts +4 -0
  112. package/dist/components/ui/button-group/types.d.ts +10 -0
  113. package/dist/components/ui/card/Card.d.ts +3 -0
  114. package/dist/components/ui/card/Card.js +21 -0
  115. package/dist/components/ui/card/CardAction.d.ts +3 -0
  116. package/dist/components/ui/card/CardAction.js +19 -0
  117. package/dist/components/ui/card/CardContent.d.ts +3 -0
  118. package/dist/components/ui/card/CardContent.js +16 -0
  119. package/dist/components/ui/card/CardDescription.d.ts +3 -0
  120. package/dist/components/ui/card/CardDescription.js +16 -0
  121. package/dist/components/ui/card/CardFooter.d.ts +3 -0
  122. package/dist/components/ui/card/CardFooter.js +19 -0
  123. package/dist/components/ui/card/CardHeader.d.ts +3 -0
  124. package/dist/components/ui/card/CardHeader.js +19 -0
  125. package/dist/components/ui/card/CardTitle.d.ts +3 -0
  126. package/dist/components/ui/card/CardTitle.js +18 -0
  127. package/dist/components/ui/card/__tests__/card-action.test.d.ts +1 -0
  128. package/dist/components/ui/card/__tests__/card-action.test.js +29 -0
  129. package/dist/components/ui/card/__tests__/card-content.test.d.ts +1 -0
  130. package/dist/components/ui/card/__tests__/card-content.test.js +29 -0
  131. package/dist/components/ui/card/__tests__/card-description.test.d.ts +1 -0
  132. package/dist/components/ui/card/__tests__/card-description.test.js +29 -0
  133. package/dist/components/ui/card/__tests__/card-footer.test.d.ts +1 -0
  134. package/dist/components/ui/card/__tests__/card-footer.test.js +29 -0
  135. package/dist/components/ui/card/__tests__/card-header.test.d.ts +1 -0
  136. package/dist/components/ui/card/__tests__/card-header.test.js +29 -0
  137. package/dist/components/ui/card/__tests__/card-title.test.d.ts +1 -0
  138. package/dist/components/ui/card/__tests__/card-title.test.js +29 -0
  139. package/dist/components/ui/card/__tests__/card.test.d.ts +1 -0
  140. package/dist/components/ui/card/__tests__/card.test.js +52 -0
  141. package/dist/components/ui/card/index.d.ts +7 -0
  142. package/dist/components/ui/checkbox/Checkbox.d.ts +4 -0
  143. package/dist/components/ui/checkbox/Checkbox.js +267 -0
  144. package/dist/components/ui/checkbox/checkbox.test.d.ts +1 -0
  145. package/dist/components/ui/checkbox/checkbox.test.js +56 -0
  146. package/dist/components/ui/checkbox/index.d.ts +1 -0
  147. package/dist/components/ui/command/Command.d.ts +3 -0
  148. package/dist/components/ui/command/Command.js +22 -0
  149. package/dist/components/ui/command/CommandDialog.d.ts +8 -0
  150. package/dist/components/ui/command/CommandDialog.js +34 -0
  151. package/dist/components/ui/command/CommandEmpty.d.ts +3 -0
  152. package/dist/components/ui/command/CommandEmpty.js +17 -0
  153. package/dist/components/ui/command/CommandGroup.d.ts +3 -0
  154. package/dist/components/ui/command/CommandGroup.js +22 -0
  155. package/dist/components/ui/command/CommandInput.d.ts +3 -0
  156. package/dist/components/ui/command/CommandInput.js +37 -0
  157. package/dist/components/ui/command/CommandItem.d.ts +3 -0
  158. package/dist/components/ui/command/CommandItem.js +22 -0
  159. package/dist/components/ui/command/CommandList.d.ts +3 -0
  160. package/dist/components/ui/command/CommandList.js +22 -0
  161. package/dist/components/ui/command/CommandSeparator.d.ts +3 -0
  162. package/dist/components/ui/command/CommandSeparator.js +19 -0
  163. package/dist/components/ui/command/CommandShortcut.d.ts +2 -0
  164. package/dist/components/ui/command/CommandShortcut.js +21 -0
  165. package/dist/components/ui/command/__tests__/command-dialog.test.d.ts +1 -0
  166. package/dist/components/ui/command/__tests__/command-dialog.test.js +50 -0
  167. package/dist/components/ui/command/__tests__/command-empty.test.d.ts +1 -0
  168. package/dist/components/ui/command/__tests__/command-empty.test.js +43 -0
  169. package/dist/components/ui/command/__tests__/command-group.test.d.ts +1 -0
  170. package/dist/components/ui/command/__tests__/command-group.test.js +55 -0
  171. package/dist/components/ui/command/__tests__/command-input.test.d.ts +1 -0
  172. package/dist/components/ui/command/__tests__/command-input.test.js +87 -0
  173. package/dist/components/ui/command/__tests__/command-item.test.d.ts +1 -0
  174. package/dist/components/ui/command/__tests__/command-item.test.js +85 -0
  175. package/dist/components/ui/command/__tests__/command-list.test.d.ts +1 -0
  176. package/dist/components/ui/command/__tests__/command-list.test.js +54 -0
  177. package/dist/components/ui/command/__tests__/command-separator.test.d.ts +1 -0
  178. package/dist/components/ui/command/__tests__/command-separator.test.js +62 -0
  179. package/dist/components/ui/command/__tests__/command-shortcut.test.d.ts +1 -0
  180. package/dist/components/ui/command/__tests__/command-shortcut.test.js +80 -0
  181. package/dist/components/ui/command/__tests__/command.test.d.ts +1 -0
  182. package/dist/components/ui/command/__tests__/command.test.js +80 -0
  183. package/dist/components/ui/command/index.d.ts +9 -0
  184. package/dist/components/ui/dialog/Dialog.d.ts +4 -0
  185. package/dist/components/ui/dialog/Dialog.js +10 -0
  186. package/dist/components/ui/dialog/DialogClose.d.ts +4 -0
  187. package/dist/components/ui/dialog/DialogClose.js +10 -0
  188. package/dist/components/ui/dialog/DialogContent.d.ts +6 -0
  189. package/dist/components/ui/dialog/DialogContent.js +45 -0
  190. package/dist/components/ui/dialog/DialogDescription.d.ts +4 -0
  191. package/dist/components/ui/dialog/DialogDescription.js +19 -0
  192. package/dist/components/ui/dialog/DialogFooter.d.ts +3 -0
  193. package/dist/components/ui/dialog/DialogFooter.js +18 -0
  194. package/dist/components/ui/dialog/DialogHeader.d.ts +3 -0
  195. package/dist/components/ui/dialog/DialogHeader.js +18 -0
  196. package/dist/components/ui/dialog/DialogOverlay.d.ts +4 -0
  197. package/dist/components/ui/dialog/DialogOverlay.js +22 -0
  198. package/dist/components/ui/dialog/DialogPortal.d.ts +4 -0
  199. package/dist/components/ui/dialog/DialogPortal.js +10 -0
  200. package/dist/components/ui/dialog/DialogTitle.d.ts +4 -0
  201. package/dist/components/ui/dialog/DialogTitle.js +22 -0
  202. package/dist/components/ui/dialog/DialogTrigger.d.ts +4 -0
  203. package/dist/components/ui/dialog/DialogTrigger.js +10 -0
  204. package/dist/components/ui/dialog/__tests__/dialog-close.test.d.ts +1 -0
  205. package/dist/components/ui/dialog/__tests__/dialog-close.test.js +33 -0
  206. package/dist/components/ui/dialog/__tests__/dialog-content.test.d.ts +1 -0
  207. package/dist/components/ui/dialog/__tests__/dialog-content.test.js +62 -0
  208. package/dist/components/ui/dialog/__tests__/dialog-description.test.d.ts +1 -0
  209. package/dist/components/ui/dialog/__tests__/dialog-description.test.js +44 -0
  210. package/dist/components/ui/dialog/__tests__/dialog-footer.test.d.ts +1 -0
  211. package/dist/components/ui/dialog/__tests__/dialog-footer.test.js +35 -0
  212. package/dist/components/ui/dialog/__tests__/dialog-header.test.d.ts +1 -0
  213. package/dist/components/ui/dialog/__tests__/dialog-header.test.js +39 -0
  214. package/dist/components/ui/dialog/__tests__/dialog-overlay.test.d.ts +1 -0
  215. package/dist/components/ui/dialog/__tests__/dialog-overlay.test.js +43 -0
  216. package/dist/components/ui/dialog/__tests__/dialog-title.test.d.ts +1 -0
  217. package/dist/components/ui/dialog/__tests__/dialog-title.test.js +41 -0
  218. package/dist/components/ui/dialog/__tests__/dialog-trigger.test.d.ts +1 -0
  219. package/dist/components/ui/dialog/__tests__/dialog-trigger.test.js +45 -0
  220. package/dist/components/ui/dialog/__tests__/dialog.test.d.ts +1 -0
  221. package/dist/components/ui/dialog/__tests__/dialog.test.js +55 -0
  222. package/dist/components/ui/dialog/index.d.ts +10 -0
  223. package/dist/components/ui/input/Input.d.ts +4 -0
  224. package/dist/components/ui/input/Input.js +7 -0
  225. package/dist/components/ui/input/index.d.ts +3 -0
  226. package/dist/components/ui/input/input.test.d.ts +1 -0
  227. package/dist/components/ui/input/input.test.js +118 -0
  228. package/dist/components/ui/input/types.d.ts +8 -0
  229. package/dist/components/ui/input/utils.d.ts +4 -0
  230. package/dist/components/ui/label/Label.d.ts +7 -0
  231. package/dist/components/ui/label/Label.js +6 -0
  232. package/dist/components/ui/label/index.d.ts +2 -0
  233. package/dist/components/ui/label/label.test.d.ts +1 -0
  234. package/dist/components/ui/label/label.test.js +83 -0
  235. package/dist/components/ui/label/types.d.ts +11 -0
  236. package/dist/components/ui/popover/Popover.d.ts +7 -0
  237. package/dist/components/ui/popover/Popover.js +16 -0
  238. package/dist/components/ui/popover/PopoverAnchor.d.ts +4 -0
  239. package/dist/components/ui/popover/PopoverAnchor.js +10 -0
  240. package/dist/components/ui/popover/PopoverContent.d.ts +4 -0
  241. package/dist/components/ui/popover/PopoverContent.js +26 -0
  242. package/dist/components/ui/popover/PopoverTrigger.d.ts +4 -0
  243. package/dist/components/ui/popover/PopoverTrigger.js +10 -0
  244. package/dist/components/ui/popover/__tests__/popover-anchor.test.d.ts +1 -0
  245. package/dist/components/ui/popover/__tests__/popover-anchor.test.js +39 -0
  246. package/dist/components/ui/popover/__tests__/popover-content.test.d.ts +1 -0
  247. package/dist/components/ui/popover/__tests__/popover-content.test.js +78 -0
  248. package/dist/components/ui/popover/__tests__/popover-trigger.test.d.ts +1 -0
  249. package/dist/components/ui/popover/__tests__/popover-trigger.test.js +33 -0
  250. package/dist/components/ui/popover/__tests__/popover.test.d.ts +1 -0
  251. package/dist/components/ui/popover/__tests__/popover.test.js +39 -0
  252. package/dist/components/ui/popover/index.d.ts +4 -0
  253. package/dist/components/ui/progress/Progress.d.ts +4 -0
  254. package/dist/components/ui/progress/Progress.js +193 -0
  255. package/dist/components/ui/progress/index.d.ts +2 -0
  256. package/dist/components/ui/progress/progress.test.d.ts +1 -0
  257. package/dist/components/ui/progress/progress.test.js +101 -0
  258. package/dist/components/ui/progress/types.d.ts +11 -0
  259. package/dist/components/ui/scroll-area/ScrollArea.d.ts +4 -0
  260. package/dist/components/ui/scroll-area/ScrollArea.js +32 -0
  261. package/dist/components/ui/scroll-area/ScrollBar.d.ts +4 -0
  262. package/dist/components/ui/scroll-area/ScrollBar.js +6 -0
  263. package/dist/components/ui/scroll-area/__tests__/scroll-area.test.d.ts +1 -0
  264. package/dist/components/ui/scroll-area/__tests__/scroll-area.test.js +66 -0
  265. package/dist/components/ui/scroll-area/__tests__/scroll-bar.test.d.ts +1 -0
  266. package/dist/components/ui/scroll-area/__tests__/scroll-bar.test.js +42 -0
  267. package/dist/components/ui/scroll-area/index.d.ts +2 -0
  268. package/dist/components/ui/select/Select.d.ts +3 -0
  269. package/dist/components/ui/select/Select.js +10 -0
  270. package/dist/components/ui/select/SelectContent.d.ts +3 -0
  271. package/dist/components/ui/select/SelectContent.js +44 -0
  272. package/dist/components/ui/select/SelectGroup.d.ts +3 -0
  273. package/dist/components/ui/select/SelectGroup.js +10 -0
  274. package/dist/components/ui/select/SelectItem.d.ts +3 -0
  275. package/dist/components/ui/select/SelectItem.js +28 -0
  276. package/dist/components/ui/select/SelectLabel.d.ts +3 -0
  277. package/dist/components/ui/select/SelectLabel.js +22 -0
  278. package/dist/components/ui/select/SelectScrollDownButton.d.ts +3 -0
  279. package/dist/components/ui/select/SelectScrollDownButton.js +24 -0
  280. package/dist/components/ui/select/SelectScrollUpButton.d.ts +3 -0
  281. package/dist/components/ui/select/SelectScrollUpButton.js +25 -0
  282. package/dist/components/ui/select/SelectSeparator.d.ts +3 -0
  283. package/dist/components/ui/select/SelectSeparator.js +22 -0
  284. package/dist/components/ui/select/SelectTrigger.d.ts +5 -0
  285. package/dist/components/ui/select/SelectTrigger.js +30 -0
  286. package/dist/components/ui/select/SelectValue.d.ts +3 -0
  287. package/dist/components/ui/select/SelectValue.js +10 -0
  288. package/dist/components/ui/select/__tests__/select-content.test.d.ts +1 -0
  289. package/dist/components/ui/select/__tests__/select-content.test.js +74 -0
  290. package/dist/components/ui/select/__tests__/select-group.test.d.ts +1 -0
  291. package/dist/components/ui/select/__tests__/select-group.test.js +42 -0
  292. package/dist/components/ui/select/__tests__/select-item.test.d.ts +1 -0
  293. package/dist/components/ui/select/__tests__/select-item.test.js +64 -0
  294. package/dist/components/ui/select/__tests__/select-label.test.d.ts +1 -0
  295. package/dist/components/ui/select/__tests__/select-label.test.js +58 -0
  296. package/dist/components/ui/select/__tests__/select-separator.test.d.ts +1 -0
  297. package/dist/components/ui/select/__tests__/select-separator.test.js +63 -0
  298. package/dist/components/ui/select/__tests__/select-trigger.test.d.ts +1 -0
  299. package/dist/components/ui/select/__tests__/select-trigger.test.js +71 -0
  300. package/dist/components/ui/select/__tests__/select-value.test.d.ts +1 -0
  301. package/dist/components/ui/select/__tests__/select-value.test.js +33 -0
  302. package/dist/components/ui/select/__tests__/select.test.d.ts +1 -0
  303. package/dist/components/ui/select/__tests__/select.test.js +64 -0
  304. package/dist/components/ui/select/index.d.ts +10 -0
  305. package/dist/components/ui/separator/Separator.d.ts +4 -0
  306. package/dist/components/ui/separator/Separator.js +41 -0
  307. package/dist/components/ui/separator/index.d.ts +1 -0
  308. package/dist/components/ui/separator/separator.test.d.ts +1 -0
  309. package/dist/components/ui/separator/separator.test.js +50 -0
  310. package/dist/components/ui/sheet/Sheet.d.ts +3 -0
  311. package/dist/components/ui/sheet/Sheet.js +10 -0
  312. package/dist/components/ui/sheet/SheetClose.d.ts +3 -0
  313. package/dist/components/ui/sheet/SheetClose.js +10 -0
  314. package/dist/components/ui/sheet/SheetContent.d.ts +5 -0
  315. package/dist/components/ui/sheet/SheetContent.js +41 -0
  316. package/dist/components/ui/sheet/SheetDescription.d.ts +3 -0
  317. package/dist/components/ui/sheet/SheetDescription.js +19 -0
  318. package/dist/components/ui/sheet/SheetFooter.d.ts +2 -0
  319. package/dist/components/ui/sheet/SheetFooter.js +21 -0
  320. package/dist/components/ui/sheet/SheetHeader.d.ts +2 -0
  321. package/dist/components/ui/sheet/SheetHeader.js +18 -0
  322. package/dist/components/ui/sheet/SheetOverlay.d.ts +3 -0
  323. package/dist/components/ui/sheet/SheetOverlay.js +22 -0
  324. package/dist/components/ui/sheet/SheetPortal.d.ts +3 -0
  325. package/dist/components/ui/sheet/SheetPortal.js +10 -0
  326. package/dist/components/ui/sheet/SheetTitle.d.ts +3 -0
  327. package/dist/components/ui/sheet/SheetTitle.js +19 -0
  328. package/dist/components/ui/sheet/SheetTrigger.d.ts +3 -0
  329. package/dist/components/ui/sheet/SheetTrigger.js +10 -0
  330. package/dist/components/ui/sheet/__tests__/sheet-close.test.d.ts +1 -0
  331. package/dist/components/ui/sheet/__tests__/sheet-close.test.js +33 -0
  332. package/dist/components/ui/sheet/__tests__/sheet-content.test.d.ts +1 -0
  333. package/dist/components/ui/sheet/__tests__/sheet-content.test.js +76 -0
  334. package/dist/components/ui/sheet/__tests__/sheet-description.test.d.ts +1 -0
  335. package/dist/components/ui/sheet/__tests__/sheet-description.test.js +44 -0
  336. package/dist/components/ui/sheet/__tests__/sheet-footer.test.d.ts +1 -0
  337. package/dist/components/ui/sheet/__tests__/sheet-footer.test.js +35 -0
  338. package/dist/components/ui/sheet/__tests__/sheet-header.test.d.ts +1 -0
  339. package/dist/components/ui/sheet/__tests__/sheet-header.test.js +39 -0
  340. package/dist/components/ui/sheet/__tests__/sheet-title.test.d.ts +1 -0
  341. package/dist/components/ui/sheet/__tests__/sheet-title.test.js +41 -0
  342. package/dist/components/ui/sheet/__tests__/sheet-trigger.test.d.ts +1 -0
  343. package/dist/components/ui/sheet/__tests__/sheet-trigger.test.js +35 -0
  344. package/dist/components/ui/sheet/__tests__/sheet.test.d.ts +1 -0
  345. package/dist/components/ui/sheet/__tests__/sheet.test.js +55 -0
  346. package/dist/components/ui/sheet/index.d.ts +10 -0
  347. package/dist/components/ui/sidebar/Sidebar.d.ts +2 -0
  348. package/dist/components/ui/sidebar/Sidebar.js +99 -0
  349. package/dist/components/ui/sidebar/SidebarContent.d.ts +9 -0
  350. package/dist/components/ui/sidebar/SidebarContent.js +148 -0
  351. package/dist/components/ui/sidebar/SidebarContext.d.ts +5 -0
  352. package/dist/components/ui/sidebar/SidebarContext.js +10 -0
  353. package/dist/components/ui/sidebar/SidebarGroup.d.ts +5 -0
  354. package/dist/components/ui/sidebar/SidebarGroup.js +77 -0
  355. package/dist/components/ui/sidebar/SidebarMenu.d.ts +10 -0
  356. package/dist/components/ui/sidebar/SidebarMenu.js +219 -0
  357. package/dist/components/ui/sidebar/__tests__/sidebar-content.test.d.ts +1 -0
  358. package/dist/components/ui/sidebar/__tests__/sidebar-content.test.js +25 -0
  359. package/dist/components/ui/sidebar/__tests__/sidebar-group.test.d.ts +1 -0
  360. package/dist/components/ui/sidebar/__tests__/sidebar-group.test.js +28 -0
  361. package/dist/components/ui/sidebar/__tests__/sidebar-menu.test.d.ts +1 -0
  362. package/dist/components/ui/sidebar/__tests__/sidebar-menu.test.js +27 -0
  363. package/dist/components/ui/sidebar/__tests__/sidebar.test.d.ts +1 -0
  364. package/dist/components/ui/sidebar/__tests__/sidebar.test.js +486 -0
  365. package/dist/components/ui/sidebar/index.d.ts +7 -0
  366. package/dist/components/ui/sidebar/types.d.ts +87 -0
  367. package/dist/components/ui/skeleton/Skeleton.d.ts +2 -0
  368. package/dist/components/ui/skeleton/Skeleton.js +18 -0
  369. package/dist/components/ui/skeleton/index.d.ts +1 -0
  370. package/dist/components/ui/skeleton/skeleton.test.d.ts +1 -0
  371. package/dist/components/ui/skeleton/skeleton.test.js +43 -0
  372. package/dist/components/ui/sonner/Toaster.d.ts +3 -0
  373. package/dist/components/ui/sonner/Toaster.js +803 -0
  374. package/dist/components/ui/sonner/index.d.ts +1 -0
  375. package/dist/components/ui/sonner/sonner.test.d.ts +1 -0
  376. package/dist/components/ui/sonner/sonner.test.js +44 -0
  377. package/dist/components/ui/switch/Switch.d.ts +10 -0
  378. package/dist/components/ui/switch/Switch.js +176 -0
  379. package/dist/components/ui/switch/index.d.ts +3 -0
  380. package/dist/components/ui/switch/switch.test.d.ts +1 -0
  381. package/dist/components/ui/switch/switch.test.js +138 -0
  382. package/dist/components/ui/switch/types.d.ts +4 -0
  383. package/dist/components/ui/tabs/Tabs.d.ts +3 -0
  384. package/dist/components/ui/tabs/Tabs.js +17 -0
  385. package/dist/components/ui/tabs/TabsContent.d.ts +4 -0
  386. package/dist/components/ui/tabs/TabsContent.js +19 -0
  387. package/dist/components/ui/tabs/TabsList.d.ts +3 -0
  388. package/dist/components/ui/tabs/TabsList.js +17 -0
  389. package/dist/components/ui/tabs/TabsTrigger.d.ts +3 -0
  390. package/dist/components/ui/tabs/TabsTrigger.js +22 -0
  391. package/dist/components/ui/tabs/__tests__/tabs-content.test.d.ts +1 -0
  392. package/dist/components/ui/tabs/__tests__/tabs-content.test.js +62 -0
  393. package/dist/components/ui/tabs/__tests__/tabs-list.test.d.ts +1 -0
  394. package/dist/components/ui/tabs/__tests__/tabs-list.test.js +102 -0
  395. package/dist/components/ui/tabs/__tests__/tabs-trigger.test.d.ts +1 -0
  396. package/dist/components/ui/tabs/__tests__/tabs-trigger.test.js +127 -0
  397. package/dist/components/ui/tabs/__tests__/tabs.test.d.ts +1 -0
  398. package/dist/components/ui/tabs/__tests__/tabs.test.js +101 -0
  399. package/dist/components/ui/tabs/index.d.ts +5 -0
  400. package/dist/components/ui/tabs/types.d.ts +23 -0
  401. package/dist/components/ui/toggle/Toggle.d.ts +7 -0
  402. package/dist/components/ui/toggle/Toggle.js +8 -0
  403. package/dist/components/ui/toggle/index.d.ts +2 -0
  404. package/dist/components/ui/toggle/toggle.test.d.ts +1 -0
  405. package/dist/components/ui/toggle/toggle.test.js +81 -0
  406. package/dist/components/ui/toggle/types.d.ts +8 -0
  407. package/dist/components/ui/toggle-group/ToggleGroup.d.ts +5 -0
  408. package/dist/components/ui/toggle-group/ToggleGroup.js +23 -0
  409. package/dist/components/ui/toggle-group/ToggleGroupItem.d.ts +5 -0
  410. package/dist/components/ui/toggle-group/ToggleGroupItem.js +30 -0
  411. package/dist/components/ui/toggle-group/__tests__/toggle-group-item.test.d.ts +1 -0
  412. package/dist/components/ui/toggle-group/__tests__/toggle-group-item.test.js +83 -0
  413. package/dist/components/ui/toggle-group/__tests__/toggle-group.test.d.ts +1 -0
  414. package/dist/components/ui/toggle-group/__tests__/toggle-group.test.js +129 -0
  415. package/dist/components/ui/toggle-group/context.d.ts +5 -0
  416. package/dist/components/ui/toggle-group/context.js +7 -0
  417. package/dist/components/ui/toggle-group/index.d.ts +4 -0
  418. package/dist/components/ui/toggle-group/types.d.ts +3 -0
  419. package/dist/components/ui/tooltip/Tooltip.d.ts +7 -0
  420. package/dist/components/ui/tooltip/Tooltip.js +16 -0
  421. package/dist/components/ui/tooltip/TooltipContent.d.ts +4 -0
  422. package/dist/components/ui/tooltip/TooltipContent.js +29 -0
  423. package/dist/components/ui/tooltip/TooltipProvider.d.ts +4 -0
  424. package/dist/components/ui/tooltip/TooltipProvider.js +18 -0
  425. package/dist/components/ui/tooltip/TooltipTrigger.d.ts +4 -0
  426. package/dist/components/ui/tooltip/TooltipTrigger.js +10 -0
  427. package/dist/components/ui/tooltip/__tests__/tooltip-content.test.d.ts +1 -0
  428. package/dist/components/ui/tooltip/__tests__/tooltip-content.test.js +90 -0
  429. package/dist/components/ui/tooltip/__tests__/tooltip-provider.test.d.ts +1 -0
  430. package/dist/components/ui/tooltip/__tests__/tooltip-provider.test.js +43 -0
  431. package/dist/components/ui/tooltip/__tests__/tooltip-trigger.test.d.ts +1 -0
  432. package/dist/components/ui/tooltip/__tests__/tooltip-trigger.test.js +40 -0
  433. package/dist/components/ui/tooltip/__tests__/tooltip.test.d.ts +1 -0
  434. package/dist/components/ui/tooltip/__tests__/tooltip.test.js +55 -0
  435. package/dist/components/ui/tooltip/index.d.ts +4 -0
  436. package/dist/components/ui/typography/Typography.d.ts +4 -0
  437. package/dist/components/ui/typography/Typography.js +7 -0
  438. package/dist/components/ui/typography/index.d.ts +3 -0
  439. package/dist/components/ui/typography/types.d.ts +10 -0
  440. package/dist/components/ui/typography/typography.test.d.ts +1 -0
  441. package/dist/components/ui/typography/typography.test.js +157 -0
  442. package/dist/components/ui/typography/utils.d.ts +3 -0
  443. package/dist/createLucideIcon-CP-mMPfa.js +75 -0
  444. package/dist/hooks/use-mobile.d.ts +1 -0
  445. package/dist/index-0f4yVZZh.js +31 -0
  446. package/dist/index-0ioNhtNM.js +10 -0
  447. package/dist/index-B1JZzM7N.js +227 -0
  448. package/dist/index-B5_JiqiV.js +135 -0
  449. package/dist/index-BApqy9Mj.js +329 -0
  450. package/dist/index-BZPx6jYI.js +8 -0
  451. package/dist/index-B_9m43p4.js +825 -0
  452. package/dist/index-BiHZqHTp.js +70 -0
  453. package/dist/index-Bu0XjYP8.js +27 -0
  454. package/dist/index-BvoZGpli.js +60 -0
  455. package/dist/index-ByaXH_ih.js +10 -0
  456. package/dist/index-C07QG_0b.js +115 -0
  457. package/dist/index-C8zhdkSa.js +158 -0
  458. package/dist/index-CDPBTubN.js +32 -0
  459. package/dist/index-CHaTVqnF.js +244 -0
  460. package/dist/index-CLZRNDoo.js +180 -0
  461. package/dist/index-Cc1WoggG.js +95 -0
  462. package/dist/index-Ce5p59aV.js +1544 -0
  463. package/dist/index-D1Qyh-m-.js +677 -0
  464. package/dist/index-D4uZ9LKw.js +142 -0
  465. package/dist/index-D69Iqk5J.js +34 -0
  466. package/dist/index-DFZozV_h.js +68 -0
  467. package/dist/index-DLcqcWxM.js +29 -0
  468. package/dist/index-DrO-qzxY.js +13 -0
  469. package/dist/index-MQOgPrDL.js +314 -0
  470. package/dist/index-SrglpxlM.js +330 -0
  471. package/dist/index-TznoxaGd.js +52 -0
  472. package/dist/index-VnDe3Nx7.js +50 -0
  473. package/dist/index-rKs9bXHr.js +6 -0
  474. package/dist/index-yX7K5Wk9.js +32 -0
  475. package/dist/lib/types.d.ts +3 -0
  476. package/dist/lib/utils.d.ts +2 -0
  477. package/dist/magic-string.es-uPKorP4O.js +663 -0
  478. package/dist/main.d.ts +26 -0
  479. package/dist/main.js +234 -0
  480. package/dist/types-B02xH7lg.js +61 -0
  481. package/dist/types-BKY1Yguv.js +34 -0
  482. package/dist/utils-DtaLkIY8.js +2776 -0
  483. package/dist/vi.2VT5v0um-D9hIOtVQ.js +48041 -0
  484. package/dist/x-B9bYxG31.js +8 -0
  485. package/package.json +97 -0
@@ -0,0 +1,1544 @@
1
+ import * as O from "react";
2
+ import { useLayoutEffect as be } from "react";
3
+ import * as Ae from "react-dom";
4
+ import { P as bt, u as Tt } from "./index-Cc1WoggG.js";
5
+ import { jsx as j } from "react/jsx-runtime";
6
+ import { u as Xt } from "./index-DLcqcWxM.js";
7
+ import { c as Re } from "./index-DFZozV_h.js";
8
+ import { u as Oe } from "./index-0ioNhtNM.js";
9
+ import { u as Ce } from "./index-Bu0XjYP8.js";
10
+ const Pe = ["top", "right", "bottom", "left"], Z = Math.min, W = Math.max, lt = Math.round, st = Math.floor, I = (t) => ({
11
+ x: t,
12
+ y: t
13
+ }), Se = {
14
+ left: "right",
15
+ right: "left",
16
+ bottom: "top",
17
+ top: "bottom"
18
+ }, Ee = {
19
+ start: "end",
20
+ end: "start"
21
+ };
22
+ function xt(t, e, n) {
23
+ return W(t, Z(e, n));
24
+ }
25
+ function q(t, e) {
26
+ return typeof t == "function" ? t(e) : t;
27
+ }
28
+ function U(t) {
29
+ return t.split("-")[0];
30
+ }
31
+ function tt(t) {
32
+ return t.split("-")[1];
33
+ }
34
+ function At(t) {
35
+ return t === "x" ? "y" : "x";
36
+ }
37
+ function Rt(t) {
38
+ return t === "y" ? "height" : "width";
39
+ }
40
+ const Le = /* @__PURE__ */ new Set(["top", "bottom"]);
41
+ function z(t) {
42
+ return Le.has(U(t)) ? "y" : "x";
43
+ }
44
+ function Ot(t) {
45
+ return At(z(t));
46
+ }
47
+ function De(t, e, n) {
48
+ n === void 0 && (n = !1);
49
+ const o = tt(t), r = Ot(t), i = Rt(r);
50
+ let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
51
+ return e.reference[i] > e.floating[i] && (s = at(s)), [s, at(s)];
52
+ }
53
+ function Me(t) {
54
+ const e = at(t);
55
+ return [yt(t), e, yt(e)];
56
+ }
57
+ function yt(t) {
58
+ return t.replace(/start|end/g, (e) => Ee[e]);
59
+ }
60
+ const $t = ["left", "right"], kt = ["right", "left"], Te = ["top", "bottom"], $e = ["bottom", "top"];
61
+ function ke(t, e, n) {
62
+ switch (t) {
63
+ case "top":
64
+ case "bottom":
65
+ return n ? e ? kt : $t : e ? $t : kt;
66
+ case "left":
67
+ case "right":
68
+ return e ? Te : $e;
69
+ default:
70
+ return [];
71
+ }
72
+ }
73
+ function Fe(t, e, n, o) {
74
+ const r = tt(t);
75
+ let i = ke(U(t), n === "start", o);
76
+ return r && (i = i.map((s) => s + "-" + r), e && (i = i.concat(i.map(yt)))), i;
77
+ }
78
+ function at(t) {
79
+ return t.replace(/left|right|bottom|top/g, (e) => Se[e]);
80
+ }
81
+ function Ne(t) {
82
+ return {
83
+ top: 0,
84
+ right: 0,
85
+ bottom: 0,
86
+ left: 0,
87
+ ...t
88
+ };
89
+ }
90
+ function Yt(t) {
91
+ return typeof t != "number" ? Ne(t) : {
92
+ top: t,
93
+ right: t,
94
+ bottom: t,
95
+ left: t
96
+ };
97
+ }
98
+ function ft(t) {
99
+ const {
100
+ x: e,
101
+ y: n,
102
+ width: o,
103
+ height: r
104
+ } = t;
105
+ return {
106
+ width: o,
107
+ height: r,
108
+ top: n,
109
+ left: e,
110
+ right: e + o,
111
+ bottom: n + r,
112
+ x: e,
113
+ y: n
114
+ };
115
+ }
116
+ function Ft(t, e, n) {
117
+ let {
118
+ reference: o,
119
+ floating: r
120
+ } = t;
121
+ const i = z(e), s = Ot(e), c = Rt(s), l = U(e), a = i === "y", f = o.x + o.width / 2 - r.width / 2, u = o.y + o.height / 2 - r.height / 2, p = o[c] / 2 - r[c] / 2;
122
+ let d;
123
+ switch (l) {
124
+ case "top":
125
+ d = {
126
+ x: f,
127
+ y: o.y - r.height
128
+ };
129
+ break;
130
+ case "bottom":
131
+ d = {
132
+ x: f,
133
+ y: o.y + o.height
134
+ };
135
+ break;
136
+ case "right":
137
+ d = {
138
+ x: o.x + o.width,
139
+ y: u
140
+ };
141
+ break;
142
+ case "left":
143
+ d = {
144
+ x: o.x - r.width,
145
+ y: u
146
+ };
147
+ break;
148
+ default:
149
+ d = {
150
+ x: o.x,
151
+ y: o.y
152
+ };
153
+ }
154
+ switch (tt(e)) {
155
+ case "start":
156
+ d[s] -= p * (n && a ? -1 : 1);
157
+ break;
158
+ case "end":
159
+ d[s] += p * (n && a ? -1 : 1);
160
+ break;
161
+ }
162
+ return d;
163
+ }
164
+ async function We(t, e) {
165
+ var n;
166
+ e === void 0 && (e = {});
167
+ const {
168
+ x: o,
169
+ y: r,
170
+ platform: i,
171
+ rects: s,
172
+ elements: c,
173
+ strategy: l
174
+ } = t, {
175
+ boundary: a = "clippingAncestors",
176
+ rootBoundary: f = "viewport",
177
+ elementContext: u = "floating",
178
+ altBoundary: p = !1,
179
+ padding: d = 0
180
+ } = q(e, t), m = Yt(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = ft(await i.getClippingRect({
181
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(w))) == null || n ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
182
+ boundary: a,
183
+ rootBoundary: f,
184
+ strategy: l
185
+ })), v = u === "floating" ? {
186
+ x: o,
187
+ y: r,
188
+ width: s.floating.width,
189
+ height: s.floating.height
190
+ } : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c.floating)), x = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
191
+ x: 1,
192
+ y: 1
193
+ } : {
194
+ x: 1,
195
+ y: 1
196
+ }, A = ft(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
197
+ elements: c,
198
+ rect: v,
199
+ offsetParent: y,
200
+ strategy: l
201
+ }) : v);
202
+ return {
203
+ top: (g.top - A.top + m.top) / x.y,
204
+ bottom: (A.bottom - g.bottom + m.bottom) / x.y,
205
+ left: (g.left - A.left + m.left) / x.x,
206
+ right: (A.right - g.right + m.right) / x.x
207
+ };
208
+ }
209
+ const He = async (t, e, n) => {
210
+ const {
211
+ placement: o = "bottom",
212
+ strategy: r = "absolute",
213
+ middleware: i = [],
214
+ platform: s
215
+ } = n, c = i.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
216
+ let a = await s.getElementRects({
217
+ reference: t,
218
+ floating: e,
219
+ strategy: r
220
+ }), {
221
+ x: f,
222
+ y: u
223
+ } = Ft(a, o, l), p = o, d = {}, m = 0;
224
+ for (let w = 0; w < c.length; w++) {
225
+ var h;
226
+ const {
227
+ name: g,
228
+ fn: v
229
+ } = c[w], {
230
+ x: y,
231
+ y: x,
232
+ data: A,
233
+ reset: R
234
+ } = await v({
235
+ x: f,
236
+ y: u,
237
+ initialPlacement: o,
238
+ placement: p,
239
+ strategy: r,
240
+ middlewareData: d,
241
+ rects: a,
242
+ platform: {
243
+ ...s,
244
+ detectOverflow: (h = s.detectOverflow) != null ? h : We
245
+ },
246
+ elements: {
247
+ reference: t,
248
+ floating: e
249
+ }
250
+ });
251
+ f = y ?? f, u = x ?? u, d = {
252
+ ...d,
253
+ [g]: {
254
+ ...d[g],
255
+ ...A
256
+ }
257
+ }, R && m <= 50 && (m++, typeof R == "object" && (R.placement && (p = R.placement), R.rects && (a = R.rects === !0 ? await s.getElementRects({
258
+ reference: t,
259
+ floating: e,
260
+ strategy: r
261
+ }) : R.rects), {
262
+ x: f,
263
+ y: u
264
+ } = Ft(a, p, l)), w = -1);
265
+ }
266
+ return {
267
+ x: f,
268
+ y: u,
269
+ placement: p,
270
+ strategy: r,
271
+ middlewareData: d
272
+ };
273
+ }, _e = (t) => ({
274
+ name: "arrow",
275
+ options: t,
276
+ async fn(e) {
277
+ const {
278
+ x: n,
279
+ y: o,
280
+ placement: r,
281
+ rects: i,
282
+ platform: s,
283
+ elements: c,
284
+ middlewareData: l
285
+ } = e, {
286
+ element: a,
287
+ padding: f = 0
288
+ } = q(t, e) || {};
289
+ if (a == null)
290
+ return {};
291
+ const u = Yt(f), p = {
292
+ x: n,
293
+ y: o
294
+ }, d = Ot(r), m = Rt(d), h = await s.getDimensions(a), w = d === "y", g = w ? "top" : "left", v = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", x = i.reference[m] + i.reference[d] - p[d] - i.floating[m], A = p[d] - i.reference[d], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
295
+ let C = R ? R[y] : 0;
296
+ (!C || !await (s.isElement == null ? void 0 : s.isElement(R))) && (C = c.floating[y] || i.floating[m]);
297
+ const M = x / 2 - A / 2, F = C / 2 - h[m] / 2 - 1, D = Z(u[g], F), $ = Z(u[v], F), k = D, S = C - h[m] - $, P = C / 2 - h[m] / 2 + M, N = xt(k, P, S), E = !l.arrow && tt(r) != null && P !== N && i.reference[m] / 2 - (P < k ? D : $) - h[m] / 2 < 0, L = E ? P < k ? P - k : P - S : 0;
298
+ return {
299
+ [d]: p[d] + L,
300
+ data: {
301
+ [d]: N,
302
+ centerOffset: P - N - L,
303
+ ...E && {
304
+ alignmentOffset: L
305
+ }
306
+ },
307
+ reset: E
308
+ };
309
+ }
310
+ }), Be = function(t) {
311
+ return t === void 0 && (t = {}), {
312
+ name: "flip",
313
+ options: t,
314
+ async fn(e) {
315
+ var n, o;
316
+ const {
317
+ placement: r,
318
+ middlewareData: i,
319
+ rects: s,
320
+ initialPlacement: c,
321
+ platform: l,
322
+ elements: a
323
+ } = e, {
324
+ mainAxis: f = !0,
325
+ crossAxis: u = !0,
326
+ fallbackPlacements: p,
327
+ fallbackStrategy: d = "bestFit",
328
+ fallbackAxisSideDirection: m = "none",
329
+ flipAlignment: h = !0,
330
+ ...w
331
+ } = q(t, e);
332
+ if ((n = i.arrow) != null && n.alignmentOffset)
333
+ return {};
334
+ const g = U(r), v = z(c), y = U(c) === c, x = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), A = p || (y || !h ? [at(c)] : Me(c)), R = m !== "none";
335
+ !p && R && A.push(...Fe(c, h, m, x));
336
+ const C = [c, ...A], M = await l.detectOverflow(e, w), F = [];
337
+ let D = ((o = i.flip) == null ? void 0 : o.overflows) || [];
338
+ if (f && F.push(M[g]), u) {
339
+ const P = De(r, s, x);
340
+ F.push(M[P[0]], M[P[1]]);
341
+ }
342
+ if (D = [...D, {
343
+ placement: r,
344
+ overflows: F
345
+ }], !F.every((P) => P <= 0)) {
346
+ var $, k;
347
+ const P = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, N = C[P];
348
+ if (N && (!(u === "alignment" ? v !== z(N) : !1) || // We leave the current main axis only if every placement on that axis
349
+ // overflows the main axis.
350
+ D.every((b) => z(b.placement) === v ? b.overflows[0] > 0 : !0)))
351
+ return {
352
+ data: {
353
+ index: P,
354
+ overflows: D
355
+ },
356
+ reset: {
357
+ placement: N
358
+ }
359
+ };
360
+ let E = (k = D.filter((L) => L.overflows[0] <= 0).sort((L, b) => L.overflows[1] - b.overflows[1])[0]) == null ? void 0 : k.placement;
361
+ if (!E)
362
+ switch (d) {
363
+ case "bestFit": {
364
+ var S;
365
+ const L = (S = D.filter((b) => {
366
+ if (R) {
367
+ const T = z(b.placement);
368
+ return T === v || // Create a bias to the `y` side axis due to horizontal
369
+ // reading directions favoring greater width.
370
+ T === "y";
371
+ }
372
+ return !0;
373
+ }).map((b) => [b.placement, b.overflows.filter((T) => T > 0).reduce((T, V) => T + V, 0)]).sort((b, T) => b[1] - T[1])[0]) == null ? void 0 : S[0];
374
+ L && (E = L);
375
+ break;
376
+ }
377
+ case "initialPlacement":
378
+ E = c;
379
+ break;
380
+ }
381
+ if (r !== E)
382
+ return {
383
+ reset: {
384
+ placement: E
385
+ }
386
+ };
387
+ }
388
+ return {};
389
+ }
390
+ };
391
+ };
392
+ function Nt(t, e) {
393
+ return {
394
+ top: t.top - e.height,
395
+ right: t.right - e.width,
396
+ bottom: t.bottom - e.height,
397
+ left: t.left - e.width
398
+ };
399
+ }
400
+ function Wt(t) {
401
+ return Pe.some((e) => t[e] >= 0);
402
+ }
403
+ const Ve = function(t) {
404
+ return t === void 0 && (t = {}), {
405
+ name: "hide",
406
+ options: t,
407
+ async fn(e) {
408
+ const {
409
+ rects: n,
410
+ platform: o
411
+ } = e, {
412
+ strategy: r = "referenceHidden",
413
+ ...i
414
+ } = q(t, e);
415
+ switch (r) {
416
+ case "referenceHidden": {
417
+ const s = await o.detectOverflow(e, {
418
+ ...i,
419
+ elementContext: "reference"
420
+ }), c = Nt(s, n.reference);
421
+ return {
422
+ data: {
423
+ referenceHiddenOffsets: c,
424
+ referenceHidden: Wt(c)
425
+ }
426
+ };
427
+ }
428
+ case "escaped": {
429
+ const s = await o.detectOverflow(e, {
430
+ ...i,
431
+ altBoundary: !0
432
+ }), c = Nt(s, n.floating);
433
+ return {
434
+ data: {
435
+ escapedOffsets: c,
436
+ escaped: Wt(c)
437
+ }
438
+ };
439
+ }
440
+ default:
441
+ return {};
442
+ }
443
+ }
444
+ };
445
+ }, jt = /* @__PURE__ */ new Set(["left", "top"]);
446
+ async function ze(t, e) {
447
+ const {
448
+ placement: n,
449
+ platform: o,
450
+ elements: r
451
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = U(n), c = tt(n), l = z(n) === "y", a = jt.has(s) ? -1 : 1, f = i && l ? -1 : 1, u = q(e, t);
452
+ let {
453
+ mainAxis: p,
454
+ crossAxis: d,
455
+ alignmentAxis: m
456
+ } = typeof u == "number" ? {
457
+ mainAxis: u,
458
+ crossAxis: 0,
459
+ alignmentAxis: null
460
+ } : {
461
+ mainAxis: u.mainAxis || 0,
462
+ crossAxis: u.crossAxis || 0,
463
+ alignmentAxis: u.alignmentAxis
464
+ };
465
+ return c && typeof m == "number" && (d = c === "end" ? m * -1 : m), l ? {
466
+ x: d * f,
467
+ y: p * a
468
+ } : {
469
+ x: p * a,
470
+ y: d * f
471
+ };
472
+ }
473
+ const Ie = function(t) {
474
+ return t === void 0 && (t = 0), {
475
+ name: "offset",
476
+ options: t,
477
+ async fn(e) {
478
+ var n, o;
479
+ const {
480
+ x: r,
481
+ y: i,
482
+ placement: s,
483
+ middlewareData: c
484
+ } = e, l = await ze(e, t);
485
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
486
+ x: r + l.x,
487
+ y: i + l.y,
488
+ data: {
489
+ ...l,
490
+ placement: s
491
+ }
492
+ };
493
+ }
494
+ };
495
+ }, Xe = function(t) {
496
+ return t === void 0 && (t = {}), {
497
+ name: "shift",
498
+ options: t,
499
+ async fn(e) {
500
+ const {
501
+ x: n,
502
+ y: o,
503
+ placement: r,
504
+ platform: i
505
+ } = e, {
506
+ mainAxis: s = !0,
507
+ crossAxis: c = !1,
508
+ limiter: l = {
509
+ fn: (g) => {
510
+ let {
511
+ x: v,
512
+ y
513
+ } = g;
514
+ return {
515
+ x: v,
516
+ y
517
+ };
518
+ }
519
+ },
520
+ ...a
521
+ } = q(t, e), f = {
522
+ x: n,
523
+ y: o
524
+ }, u = await i.detectOverflow(e, a), p = z(U(r)), d = At(p);
525
+ let m = f[d], h = f[p];
526
+ if (s) {
527
+ const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", y = m + u[g], x = m - u[v];
528
+ m = xt(y, m, x);
529
+ }
530
+ if (c) {
531
+ const g = p === "y" ? "top" : "left", v = p === "y" ? "bottom" : "right", y = h + u[g], x = h - u[v];
532
+ h = xt(y, h, x);
533
+ }
534
+ const w = l.fn({
535
+ ...e,
536
+ [d]: m,
537
+ [p]: h
538
+ });
539
+ return {
540
+ ...w,
541
+ data: {
542
+ x: w.x - n,
543
+ y: w.y - o,
544
+ enabled: {
545
+ [d]: s,
546
+ [p]: c
547
+ }
548
+ }
549
+ };
550
+ }
551
+ };
552
+ }, Ye = function(t) {
553
+ return t === void 0 && (t = {}), {
554
+ options: t,
555
+ fn(e) {
556
+ const {
557
+ x: n,
558
+ y: o,
559
+ placement: r,
560
+ rects: i,
561
+ middlewareData: s
562
+ } = e, {
563
+ offset: c = 0,
564
+ mainAxis: l = !0,
565
+ crossAxis: a = !0
566
+ } = q(t, e), f = {
567
+ x: n,
568
+ y: o
569
+ }, u = z(r), p = At(u);
570
+ let d = f[p], m = f[u];
571
+ const h = q(c, e), w = typeof h == "number" ? {
572
+ mainAxis: h,
573
+ crossAxis: 0
574
+ } : {
575
+ mainAxis: 0,
576
+ crossAxis: 0,
577
+ ...h
578
+ };
579
+ if (l) {
580
+ const y = p === "y" ? "height" : "width", x = i.reference[p] - i.floating[y] + w.mainAxis, A = i.reference[p] + i.reference[y] - w.mainAxis;
581
+ d < x ? d = x : d > A && (d = A);
582
+ }
583
+ if (a) {
584
+ var g, v;
585
+ const y = p === "y" ? "width" : "height", x = jt.has(U(r)), A = i.reference[u] - i.floating[y] + (x && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (x ? 0 : w.crossAxis), R = i.reference[u] + i.reference[y] + (x ? 0 : ((v = s.offset) == null ? void 0 : v[u]) || 0) - (x ? w.crossAxis : 0);
586
+ m < A ? m = A : m > R && (m = R);
587
+ }
588
+ return {
589
+ [p]: d,
590
+ [u]: m
591
+ };
592
+ }
593
+ };
594
+ }, je = function(t) {
595
+ return t === void 0 && (t = {}), {
596
+ name: "size",
597
+ options: t,
598
+ async fn(e) {
599
+ var n, o;
600
+ const {
601
+ placement: r,
602
+ rects: i,
603
+ platform: s,
604
+ elements: c
605
+ } = e, {
606
+ apply: l = () => {
607
+ },
608
+ ...a
609
+ } = q(t, e), f = await s.detectOverflow(e, a), u = U(r), p = tt(r), d = z(r) === "y", {
610
+ width: m,
611
+ height: h
612
+ } = i.floating;
613
+ let w, g;
614
+ u === "top" || u === "bottom" ? (w = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
615
+ const v = h - f.top - f.bottom, y = m - f.left - f.right, x = Z(h - f[w], v), A = Z(m - f[g], y), R = !e.middlewareData.shift;
616
+ let C = x, M = A;
617
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (M = y), (o = e.middlewareData.shift) != null && o.enabled.y && (C = v), R && !p) {
618
+ const D = W(f.left, 0), $ = W(f.right, 0), k = W(f.top, 0), S = W(f.bottom, 0);
619
+ d ? M = m - 2 * (D !== 0 || $ !== 0 ? D + $ : W(f.left, f.right)) : C = h - 2 * (k !== 0 || S !== 0 ? k + S : W(f.top, f.bottom));
620
+ }
621
+ await l({
622
+ ...e,
623
+ availableWidth: M,
624
+ availableHeight: C
625
+ });
626
+ const F = await s.getDimensions(c.floating);
627
+ return m !== F.width || h !== F.height ? {
628
+ reset: {
629
+ rects: !0
630
+ }
631
+ } : {};
632
+ }
633
+ };
634
+ };
635
+ function dt() {
636
+ return typeof window < "u";
637
+ }
638
+ function et(t) {
639
+ return qt(t) ? (t.nodeName || "").toLowerCase() : "#document";
640
+ }
641
+ function H(t) {
642
+ var e;
643
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
644
+ }
645
+ function Y(t) {
646
+ var e;
647
+ return (e = (qt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
648
+ }
649
+ function qt(t) {
650
+ return dt() ? t instanceof Node || t instanceof H(t).Node : !1;
651
+ }
652
+ function _(t) {
653
+ return dt() ? t instanceof Element || t instanceof H(t).Element : !1;
654
+ }
655
+ function X(t) {
656
+ return dt() ? t instanceof HTMLElement || t instanceof H(t).HTMLElement : !1;
657
+ }
658
+ function Ht(t) {
659
+ return !dt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof H(t).ShadowRoot;
660
+ }
661
+ const qe = /* @__PURE__ */ new Set(["inline", "contents"]);
662
+ function rt(t) {
663
+ const {
664
+ overflow: e,
665
+ overflowX: n,
666
+ overflowY: o,
667
+ display: r
668
+ } = B(t);
669
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !qe.has(r);
670
+ }
671
+ const Ue = /* @__PURE__ */ new Set(["table", "td", "th"]);
672
+ function Ze(t) {
673
+ return Ue.has(et(t));
674
+ }
675
+ const Ke = [":popover-open", ":modal"];
676
+ function mt(t) {
677
+ return Ke.some((e) => {
678
+ try {
679
+ return t.matches(e);
680
+ } catch {
681
+ return !1;
682
+ }
683
+ });
684
+ }
685
+ const Ge = ["transform", "translate", "scale", "rotate", "perspective"], Je = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Qe = ["paint", "layout", "strict", "content"];
686
+ function Ct(t) {
687
+ const e = Pt(), n = _(t) ? B(t) : t;
688
+ return Ge.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) || Je.some((o) => (n.willChange || "").includes(o)) || Qe.some((o) => (n.contain || "").includes(o));
689
+ }
690
+ function tn(t) {
691
+ let e = K(t);
692
+ for (; X(e) && !Q(e); ) {
693
+ if (Ct(e))
694
+ return e;
695
+ if (mt(e))
696
+ return null;
697
+ e = K(e);
698
+ }
699
+ return null;
700
+ }
701
+ function Pt() {
702
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
703
+ }
704
+ const en = /* @__PURE__ */ new Set(["html", "body", "#document"]);
705
+ function Q(t) {
706
+ return en.has(et(t));
707
+ }
708
+ function B(t) {
709
+ return H(t).getComputedStyle(t);
710
+ }
711
+ function pt(t) {
712
+ return _(t) ? {
713
+ scrollLeft: t.scrollLeft,
714
+ scrollTop: t.scrollTop
715
+ } : {
716
+ scrollLeft: t.scrollX,
717
+ scrollTop: t.scrollY
718
+ };
719
+ }
720
+ function K(t) {
721
+ if (et(t) === "html")
722
+ return t;
723
+ const e = (
724
+ // Step into the shadow DOM of the parent of a slotted node.
725
+ t.assignedSlot || // DOM Element detected.
726
+ t.parentNode || // ShadowRoot detected.
727
+ Ht(t) && t.host || // Fallback.
728
+ Y(t)
729
+ );
730
+ return Ht(e) ? e.host : e;
731
+ }
732
+ function Ut(t) {
733
+ const e = K(t);
734
+ return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : X(e) && rt(e) ? e : Ut(e);
735
+ }
736
+ function ot(t, e, n) {
737
+ var o;
738
+ e === void 0 && (e = []), n === void 0 && (n = !0);
739
+ const r = Ut(t), i = r === ((o = t.ownerDocument) == null ? void 0 : o.body), s = H(r);
740
+ if (i) {
741
+ const c = vt(s);
742
+ return e.concat(s, s.visualViewport || [], rt(r) ? r : [], c && n ? ot(c) : []);
743
+ }
744
+ return e.concat(r, ot(r, [], n));
745
+ }
746
+ function vt(t) {
747
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
748
+ }
749
+ function Zt(t) {
750
+ const e = B(t);
751
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
752
+ const r = X(t), i = r ? t.offsetWidth : n, s = r ? t.offsetHeight : o, c = lt(n) !== i || lt(o) !== s;
753
+ return c && (n = i, o = s), {
754
+ width: n,
755
+ height: o,
756
+ $: c
757
+ };
758
+ }
759
+ function St(t) {
760
+ return _(t) ? t : t.contextElement;
761
+ }
762
+ function J(t) {
763
+ const e = St(t);
764
+ if (!X(e))
765
+ return I(1);
766
+ const n = e.getBoundingClientRect(), {
767
+ width: o,
768
+ height: r,
769
+ $: i
770
+ } = Zt(e);
771
+ let s = (i ? lt(n.width) : n.width) / o, c = (i ? lt(n.height) : n.height) / r;
772
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
773
+ x: s,
774
+ y: c
775
+ };
776
+ }
777
+ const nn = /* @__PURE__ */ I(0);
778
+ function Kt(t) {
779
+ const e = H(t);
780
+ return !Pt() || !e.visualViewport ? nn : {
781
+ x: e.visualViewport.offsetLeft,
782
+ y: e.visualViewport.offsetTop
783
+ };
784
+ }
785
+ function on(t, e, n) {
786
+ return e === void 0 && (e = !1), !n || e && n !== H(t) ? !1 : e;
787
+ }
788
+ function G(t, e, n, o) {
789
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
790
+ const r = t.getBoundingClientRect(), i = St(t);
791
+ let s = I(1);
792
+ e && (o ? _(o) && (s = J(o)) : s = J(t));
793
+ const c = on(i, n, o) ? Kt(i) : I(0);
794
+ let l = (r.left + c.x) / s.x, a = (r.top + c.y) / s.y, f = r.width / s.x, u = r.height / s.y;
795
+ if (i) {
796
+ const p = H(i), d = o && _(o) ? H(o) : o;
797
+ let m = p, h = vt(m);
798
+ for (; h && o && d !== m; ) {
799
+ const w = J(h), g = h.getBoundingClientRect(), v = B(h), y = g.left + (h.clientLeft + parseFloat(v.paddingLeft)) * w.x, x = g.top + (h.clientTop + parseFloat(v.paddingTop)) * w.y;
800
+ l *= w.x, a *= w.y, f *= w.x, u *= w.y, l += y, a += x, m = H(h), h = vt(m);
801
+ }
802
+ }
803
+ return ft({
804
+ width: f,
805
+ height: u,
806
+ x: l,
807
+ y: a
808
+ });
809
+ }
810
+ function ht(t, e) {
811
+ const n = pt(t).scrollLeft;
812
+ return e ? e.left + n : G(Y(t)).left + n;
813
+ }
814
+ function Gt(t, e) {
815
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - ht(t, n), r = n.top + e.scrollTop;
816
+ return {
817
+ x: o,
818
+ y: r
819
+ };
820
+ }
821
+ function rn(t) {
822
+ let {
823
+ elements: e,
824
+ rect: n,
825
+ offsetParent: o,
826
+ strategy: r
827
+ } = t;
828
+ const i = r === "fixed", s = Y(o), c = e ? mt(e.floating) : !1;
829
+ if (o === s || c && i)
830
+ return n;
831
+ let l = {
832
+ scrollLeft: 0,
833
+ scrollTop: 0
834
+ }, a = I(1);
835
+ const f = I(0), u = X(o);
836
+ if ((u || !u && !i) && ((et(o) !== "body" || rt(s)) && (l = pt(o)), X(o))) {
837
+ const d = G(o);
838
+ a = J(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
839
+ }
840
+ const p = s && !u && !i ? Gt(s, l) : I(0);
841
+ return {
842
+ width: n.width * a.x,
843
+ height: n.height * a.y,
844
+ x: n.x * a.x - l.scrollLeft * a.x + f.x + p.x,
845
+ y: n.y * a.y - l.scrollTop * a.y + f.y + p.y
846
+ };
847
+ }
848
+ function sn(t) {
849
+ return Array.from(t.getClientRects());
850
+ }
851
+ function cn(t) {
852
+ const e = Y(t), n = pt(t), o = t.ownerDocument.body, r = W(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = W(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
853
+ let s = -n.scrollLeft + ht(t);
854
+ const c = -n.scrollTop;
855
+ return B(o).direction === "rtl" && (s += W(e.clientWidth, o.clientWidth) - r), {
856
+ width: r,
857
+ height: i,
858
+ x: s,
859
+ y: c
860
+ };
861
+ }
862
+ const _t = 25;
863
+ function ln(t, e) {
864
+ const n = H(t), o = Y(t), r = n.visualViewport;
865
+ let i = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
866
+ if (r) {
867
+ i = r.width, s = r.height;
868
+ const f = Pt();
869
+ (!f || f && e === "fixed") && (c = r.offsetLeft, l = r.offsetTop);
870
+ }
871
+ const a = ht(o);
872
+ if (a <= 0) {
873
+ const f = o.ownerDocument, u = f.body, p = getComputedStyle(u), d = f.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, m = Math.abs(o.clientWidth - u.clientWidth - d);
874
+ m <= _t && (i -= m);
875
+ } else a <= _t && (i += a);
876
+ return {
877
+ width: i,
878
+ height: s,
879
+ x: c,
880
+ y: l
881
+ };
882
+ }
883
+ const an = /* @__PURE__ */ new Set(["absolute", "fixed"]);
884
+ function fn(t, e) {
885
+ const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, r = n.left + t.clientLeft, i = X(t) ? J(t) : I(1), s = t.clientWidth * i.x, c = t.clientHeight * i.y, l = r * i.x, a = o * i.y;
886
+ return {
887
+ width: s,
888
+ height: c,
889
+ x: l,
890
+ y: a
891
+ };
892
+ }
893
+ function Bt(t, e, n) {
894
+ let o;
895
+ if (e === "viewport")
896
+ o = ln(t, n);
897
+ else if (e === "document")
898
+ o = cn(Y(t));
899
+ else if (_(e))
900
+ o = fn(e, n);
901
+ else {
902
+ const r = Kt(t);
903
+ o = {
904
+ x: e.x - r.x,
905
+ y: e.y - r.y,
906
+ width: e.width,
907
+ height: e.height
908
+ };
909
+ }
910
+ return ft(o);
911
+ }
912
+ function Jt(t, e) {
913
+ const n = K(t);
914
+ return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" || Jt(n, e);
915
+ }
916
+ function un(t, e) {
917
+ const n = e.get(t);
918
+ if (n)
919
+ return n;
920
+ let o = ot(t, [], !1).filter((c) => _(c) && et(c) !== "body"), r = null;
921
+ const i = B(t).position === "fixed";
922
+ let s = i ? K(t) : t;
923
+ for (; _(s) && !Q(s); ) {
924
+ const c = B(s), l = Ct(s);
925
+ !l && c.position === "fixed" && (r = null), (i ? !l && !r : !l && c.position === "static" && !!r && an.has(r.position) || rt(s) && !l && Jt(t, s)) ? o = o.filter((f) => f !== s) : r = c, s = K(s);
926
+ }
927
+ return e.set(t, o), o;
928
+ }
929
+ function dn(t) {
930
+ let {
931
+ element: e,
932
+ boundary: n,
933
+ rootBoundary: o,
934
+ strategy: r
935
+ } = t;
936
+ const s = [...n === "clippingAncestors" ? mt(e) ? [] : un(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, f) => {
937
+ const u = Bt(e, f, r);
938
+ return a.top = W(u.top, a.top), a.right = Z(u.right, a.right), a.bottom = Z(u.bottom, a.bottom), a.left = W(u.left, a.left), a;
939
+ }, Bt(e, c, r));
940
+ return {
941
+ width: l.right - l.left,
942
+ height: l.bottom - l.top,
943
+ x: l.left,
944
+ y: l.top
945
+ };
946
+ }
947
+ function mn(t) {
948
+ const {
949
+ width: e,
950
+ height: n
951
+ } = Zt(t);
952
+ return {
953
+ width: e,
954
+ height: n
955
+ };
956
+ }
957
+ function pn(t, e, n) {
958
+ const o = X(e), r = Y(e), i = n === "fixed", s = G(t, !0, i, e);
959
+ let c = {
960
+ scrollLeft: 0,
961
+ scrollTop: 0
962
+ };
963
+ const l = I(0);
964
+ function a() {
965
+ l.x = ht(r);
966
+ }
967
+ if (o || !o && !i)
968
+ if ((et(e) !== "body" || rt(r)) && (c = pt(e)), o) {
969
+ const d = G(e, !0, i, e);
970
+ l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
971
+ } else r && a();
972
+ i && !o && r && a();
973
+ const f = r && !o && !i ? Gt(r, c) : I(0), u = s.left + c.scrollLeft - l.x - f.x, p = s.top + c.scrollTop - l.y - f.y;
974
+ return {
975
+ x: u,
976
+ y: p,
977
+ width: s.width,
978
+ height: s.height
979
+ };
980
+ }
981
+ function gt(t) {
982
+ return B(t).position === "static";
983
+ }
984
+ function Vt(t, e) {
985
+ if (!X(t) || B(t).position === "fixed")
986
+ return null;
987
+ if (e)
988
+ return e(t);
989
+ let n = t.offsetParent;
990
+ return Y(t) === n && (n = n.ownerDocument.body), n;
991
+ }
992
+ function Qt(t, e) {
993
+ const n = H(t);
994
+ if (mt(t))
995
+ return n;
996
+ if (!X(t)) {
997
+ let r = K(t);
998
+ for (; r && !Q(r); ) {
999
+ if (_(r) && !gt(r))
1000
+ return r;
1001
+ r = K(r);
1002
+ }
1003
+ return n;
1004
+ }
1005
+ let o = Vt(t, e);
1006
+ for (; o && Ze(o) && gt(o); )
1007
+ o = Vt(o, e);
1008
+ return o && Q(o) && gt(o) && !Ct(o) ? n : o || tn(t) || n;
1009
+ }
1010
+ const hn = async function(t) {
1011
+ const e = this.getOffsetParent || Qt, n = this.getDimensions, o = await n(t.floating);
1012
+ return {
1013
+ reference: pn(t.reference, await e(t.floating), t.strategy),
1014
+ floating: {
1015
+ x: 0,
1016
+ y: 0,
1017
+ width: o.width,
1018
+ height: o.height
1019
+ }
1020
+ };
1021
+ };
1022
+ function gn(t) {
1023
+ return B(t).direction === "rtl";
1024
+ }
1025
+ const wn = {
1026
+ convertOffsetParentRelativeRectToViewportRelativeRect: rn,
1027
+ getDocumentElement: Y,
1028
+ getClippingRect: dn,
1029
+ getOffsetParent: Qt,
1030
+ getElementRects: hn,
1031
+ getClientRects: sn,
1032
+ getDimensions: mn,
1033
+ getScale: J,
1034
+ isElement: _,
1035
+ isRTL: gn
1036
+ };
1037
+ function te(t, e) {
1038
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1039
+ }
1040
+ function xn(t, e) {
1041
+ let n = null, o;
1042
+ const r = Y(t);
1043
+ function i() {
1044
+ var c;
1045
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1046
+ }
1047
+ function s(c, l) {
1048
+ c === void 0 && (c = !1), l === void 0 && (l = 1), i();
1049
+ const a = t.getBoundingClientRect(), {
1050
+ left: f,
1051
+ top: u,
1052
+ width: p,
1053
+ height: d
1054
+ } = a;
1055
+ if (c || e(), !p || !d)
1056
+ return;
1057
+ const m = st(u), h = st(r.clientWidth - (f + p)), w = st(r.clientHeight - (u + d)), g = st(f), y = {
1058
+ rootMargin: -m + "px " + -h + "px " + -w + "px " + -g + "px",
1059
+ threshold: W(0, Z(1, l)) || 1
1060
+ };
1061
+ let x = !0;
1062
+ function A(R) {
1063
+ const C = R[0].intersectionRatio;
1064
+ if (C !== l) {
1065
+ if (!x)
1066
+ return s();
1067
+ C ? s(!1, C) : o = setTimeout(() => {
1068
+ s(!1, 1e-7);
1069
+ }, 1e3);
1070
+ }
1071
+ C === 1 && !te(a, t.getBoundingClientRect()) && s(), x = !1;
1072
+ }
1073
+ try {
1074
+ n = new IntersectionObserver(A, {
1075
+ ...y,
1076
+ // Handle <iframe>s
1077
+ root: r.ownerDocument
1078
+ });
1079
+ } catch {
1080
+ n = new IntersectionObserver(A, y);
1081
+ }
1082
+ n.observe(t);
1083
+ }
1084
+ return s(!0), i;
1085
+ }
1086
+ function yn(t, e, n, o) {
1087
+ o === void 0 && (o = {});
1088
+ const {
1089
+ ancestorScroll: r = !0,
1090
+ ancestorResize: i = !0,
1091
+ elementResize: s = typeof ResizeObserver == "function",
1092
+ layoutShift: c = typeof IntersectionObserver == "function",
1093
+ animationFrame: l = !1
1094
+ } = o, a = St(t), f = r || i ? [...a ? ot(a) : [], ...ot(e)] : [];
1095
+ f.forEach((g) => {
1096
+ r && g.addEventListener("scroll", n, {
1097
+ passive: !0
1098
+ }), i && g.addEventListener("resize", n);
1099
+ });
1100
+ const u = a && c ? xn(a, n) : null;
1101
+ let p = -1, d = null;
1102
+ s && (d = new ResizeObserver((g) => {
1103
+ let [v] = g;
1104
+ v && v.target === a && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1105
+ var y;
1106
+ (y = d) == null || y.observe(e);
1107
+ })), n();
1108
+ }), a && !l && d.observe(a), d.observe(e));
1109
+ let m, h = l ? G(t) : null;
1110
+ l && w();
1111
+ function w() {
1112
+ const g = G(t);
1113
+ h && !te(h, g) && n(), h = g, m = requestAnimationFrame(w);
1114
+ }
1115
+ return n(), () => {
1116
+ var g;
1117
+ f.forEach((v) => {
1118
+ r && v.removeEventListener("scroll", n), i && v.removeEventListener("resize", n);
1119
+ }), u?.(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(m);
1120
+ };
1121
+ }
1122
+ const vn = Ie, bn = Xe, An = Be, Rn = je, On = Ve, zt = _e, Cn = Ye, Pn = (t, e, n) => {
1123
+ const o = /* @__PURE__ */ new Map(), r = {
1124
+ platform: wn,
1125
+ ...n
1126
+ }, i = {
1127
+ ...r.platform,
1128
+ _c: o
1129
+ };
1130
+ return He(t, e, {
1131
+ ...r,
1132
+ platform: i
1133
+ });
1134
+ };
1135
+ var Sn = typeof document < "u", En = function() {
1136
+ }, ct = Sn ? be : En;
1137
+ function ut(t, e) {
1138
+ if (t === e)
1139
+ return !0;
1140
+ if (typeof t != typeof e)
1141
+ return !1;
1142
+ if (typeof t == "function" && t.toString() === e.toString())
1143
+ return !0;
1144
+ let n, o, r;
1145
+ if (t && e && typeof t == "object") {
1146
+ if (Array.isArray(t)) {
1147
+ if (n = t.length, n !== e.length) return !1;
1148
+ for (o = n; o-- !== 0; )
1149
+ if (!ut(t[o], e[o]))
1150
+ return !1;
1151
+ return !0;
1152
+ }
1153
+ if (r = Object.keys(t), n = r.length, n !== Object.keys(e).length)
1154
+ return !1;
1155
+ for (o = n; o-- !== 0; )
1156
+ if (!{}.hasOwnProperty.call(e, r[o]))
1157
+ return !1;
1158
+ for (o = n; o-- !== 0; ) {
1159
+ const i = r[o];
1160
+ if (!(i === "_owner" && t.$$typeof) && !ut(t[i], e[i]))
1161
+ return !1;
1162
+ }
1163
+ return !0;
1164
+ }
1165
+ return t !== t && e !== e;
1166
+ }
1167
+ function ee(t) {
1168
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1169
+ }
1170
+ function It(t, e) {
1171
+ const n = ee(t);
1172
+ return Math.round(e * n) / n;
1173
+ }
1174
+ function wt(t) {
1175
+ const e = O.useRef(t);
1176
+ return ct(() => {
1177
+ e.current = t;
1178
+ }), e;
1179
+ }
1180
+ function Ln(t) {
1181
+ t === void 0 && (t = {});
1182
+ const {
1183
+ placement: e = "bottom",
1184
+ strategy: n = "absolute",
1185
+ middleware: o = [],
1186
+ platform: r,
1187
+ elements: {
1188
+ reference: i,
1189
+ floating: s
1190
+ } = {},
1191
+ transform: c = !0,
1192
+ whileElementsMounted: l,
1193
+ open: a
1194
+ } = t, [f, u] = O.useState({
1195
+ x: 0,
1196
+ y: 0,
1197
+ strategy: n,
1198
+ placement: e,
1199
+ middlewareData: {},
1200
+ isPositioned: !1
1201
+ }), [p, d] = O.useState(o);
1202
+ ut(p, o) || d(o);
1203
+ const [m, h] = O.useState(null), [w, g] = O.useState(null), v = O.useCallback((b) => {
1204
+ b !== R.current && (R.current = b, h(b));
1205
+ }, []), y = O.useCallback((b) => {
1206
+ b !== C.current && (C.current = b, g(b));
1207
+ }, []), x = i || m, A = s || w, R = O.useRef(null), C = O.useRef(null), M = O.useRef(f), F = l != null, D = wt(l), $ = wt(r), k = wt(a), S = O.useCallback(() => {
1208
+ if (!R.current || !C.current)
1209
+ return;
1210
+ const b = {
1211
+ placement: e,
1212
+ strategy: n,
1213
+ middleware: p
1214
+ };
1215
+ $.current && (b.platform = $.current), Pn(R.current, C.current, b).then((T) => {
1216
+ const V = {
1217
+ ...T,
1218
+ // The floating element's position may be recomputed while it's closed
1219
+ // but still mounted (such as when transitioning out). To ensure
1220
+ // `isPositioned` will be `false` initially on the next open, avoid
1221
+ // setting it to `true` when `open === false` (must be specified).
1222
+ isPositioned: k.current !== !1
1223
+ };
1224
+ P.current && !ut(M.current, V) && (M.current = V, Ae.flushSync(() => {
1225
+ u(V);
1226
+ }));
1227
+ });
1228
+ }, [p, e, n, $, k]);
1229
+ ct(() => {
1230
+ a === !1 && M.current.isPositioned && (M.current.isPositioned = !1, u((b) => ({
1231
+ ...b,
1232
+ isPositioned: !1
1233
+ })));
1234
+ }, [a]);
1235
+ const P = O.useRef(!1);
1236
+ ct(() => (P.current = !0, () => {
1237
+ P.current = !1;
1238
+ }), []), ct(() => {
1239
+ if (x && (R.current = x), A && (C.current = A), x && A) {
1240
+ if (D.current)
1241
+ return D.current(x, A, S);
1242
+ S();
1243
+ }
1244
+ }, [x, A, S, D, F]);
1245
+ const N = O.useMemo(() => ({
1246
+ reference: R,
1247
+ floating: C,
1248
+ setReference: v,
1249
+ setFloating: y
1250
+ }), [v, y]), E = O.useMemo(() => ({
1251
+ reference: x,
1252
+ floating: A
1253
+ }), [x, A]), L = O.useMemo(() => {
1254
+ const b = {
1255
+ position: n,
1256
+ left: 0,
1257
+ top: 0
1258
+ };
1259
+ if (!E.floating)
1260
+ return b;
1261
+ const T = It(E.floating, f.x), V = It(E.floating, f.y);
1262
+ return c ? {
1263
+ ...b,
1264
+ transform: "translate(" + T + "px, " + V + "px)",
1265
+ ...ee(E.floating) >= 1.5 && {
1266
+ willChange: "transform"
1267
+ }
1268
+ } : {
1269
+ position: n,
1270
+ left: T,
1271
+ top: V
1272
+ };
1273
+ }, [n, c, E.floating, f.x, f.y]);
1274
+ return O.useMemo(() => ({
1275
+ ...f,
1276
+ update: S,
1277
+ refs: N,
1278
+ elements: E,
1279
+ floatingStyles: L
1280
+ }), [f, S, N, E, L]);
1281
+ }
1282
+ const Dn = (t) => {
1283
+ function e(n) {
1284
+ return {}.hasOwnProperty.call(n, "current");
1285
+ }
1286
+ return {
1287
+ name: "arrow",
1288
+ options: t,
1289
+ fn(n) {
1290
+ const {
1291
+ element: o,
1292
+ padding: r
1293
+ } = typeof t == "function" ? t(n) : t;
1294
+ return o && e(o) ? o.current != null ? zt({
1295
+ element: o.current,
1296
+ padding: r
1297
+ }).fn(n) : {} : o ? zt({
1298
+ element: o,
1299
+ padding: r
1300
+ }).fn(n) : {};
1301
+ }
1302
+ };
1303
+ }, Mn = (t, e) => ({
1304
+ ...vn(t),
1305
+ options: [t, e]
1306
+ }), Tn = (t, e) => ({
1307
+ ...bn(t),
1308
+ options: [t, e]
1309
+ }), $n = (t, e) => ({
1310
+ ...Cn(t),
1311
+ options: [t, e]
1312
+ }), kn = (t, e) => ({
1313
+ ...An(t),
1314
+ options: [t, e]
1315
+ }), Fn = (t, e) => ({
1316
+ ...Rn(t),
1317
+ options: [t, e]
1318
+ }), Nn = (t, e) => ({
1319
+ ...On(t),
1320
+ options: [t, e]
1321
+ }), Wn = (t, e) => ({
1322
+ ...Dn(t),
1323
+ options: [t, e]
1324
+ });
1325
+ var Hn = "Arrow", ne = O.forwardRef((t, e) => {
1326
+ const { children: n, width: o = 10, height: r = 5, ...i } = t;
1327
+ return /* @__PURE__ */ j(
1328
+ bt.svg,
1329
+ {
1330
+ ...i,
1331
+ ref: e,
1332
+ width: o,
1333
+ height: r,
1334
+ viewBox: "0 0 30 10",
1335
+ preserveAspectRatio: "none",
1336
+ children: t.asChild ? n : /* @__PURE__ */ j("polygon", { points: "0,0 30,0 15,10" })
1337
+ }
1338
+ );
1339
+ });
1340
+ ne.displayName = Hn;
1341
+ var _n = ne, Et = "Popper", [oe, Qn] = Re(Et), [Bn, re] = oe(Et), ie = (t) => {
1342
+ const { __scopePopper: e, children: n } = t, [o, r] = O.useState(null);
1343
+ return /* @__PURE__ */ j(Bn, { scope: e, anchor: o, onAnchorChange: r, children: n });
1344
+ };
1345
+ ie.displayName = Et;
1346
+ var se = "PopperAnchor", ce = O.forwardRef(
1347
+ (t, e) => {
1348
+ const { __scopePopper: n, virtualRef: o, ...r } = t, i = re(se, n), s = O.useRef(null), c = Xt(e, s), l = O.useRef(null);
1349
+ return O.useEffect(() => {
1350
+ const a = l.current;
1351
+ l.current = o?.current || s.current, a !== l.current && i.onAnchorChange(l.current);
1352
+ }), o ? null : /* @__PURE__ */ j(bt.div, { ...r, ref: c });
1353
+ }
1354
+ );
1355
+ ce.displayName = se;
1356
+ var Lt = "PopperContent", [Vn, zn] = oe(Lt), le = O.forwardRef(
1357
+ (t, e) => {
1358
+ const {
1359
+ __scopePopper: n,
1360
+ side: o = "bottom",
1361
+ sideOffset: r = 0,
1362
+ align: i = "center",
1363
+ alignOffset: s = 0,
1364
+ arrowPadding: c = 0,
1365
+ avoidCollisions: l = !0,
1366
+ collisionBoundary: a = [],
1367
+ collisionPadding: f = 0,
1368
+ sticky: u = "partial",
1369
+ hideWhenDetached: p = !1,
1370
+ updatePositionStrategy: d = "optimized",
1371
+ onPlaced: m,
1372
+ ...h
1373
+ } = t, w = re(Lt, n), [g, v] = O.useState(null), y = Xt(e, (nt) => v(nt)), [x, A] = O.useState(null), R = Ce(x), C = R?.width ?? 0, M = R?.height ?? 0, F = o + (i !== "center" ? "-" + i : ""), D = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(a) ? a : [a], k = $.length > 0, S = {
1374
+ padding: D,
1375
+ boundary: $.filter(Xn),
1376
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1377
+ altBoundary: k
1378
+ }, { refs: P, floatingStyles: N, placement: E, isPositioned: L, middlewareData: b } = Ln({
1379
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1380
+ strategy: "fixed",
1381
+ placement: F,
1382
+ whileElementsMounted: (...nt) => yn(...nt, {
1383
+ animationFrame: d === "always"
1384
+ }),
1385
+ elements: {
1386
+ reference: w.anchor
1387
+ },
1388
+ middleware: [
1389
+ Mn({ mainAxis: r + M, alignmentAxis: s }),
1390
+ l && Tn({
1391
+ mainAxis: !0,
1392
+ crossAxis: !1,
1393
+ limiter: u === "partial" ? $n() : void 0,
1394
+ ...S
1395
+ }),
1396
+ l && kn({ ...S }),
1397
+ Fn({
1398
+ ...S,
1399
+ apply: ({ elements: nt, rects: Mt, availableWidth: we, availableHeight: xe }) => {
1400
+ const { width: ye, height: ve } = Mt.reference, it = nt.floating.style;
1401
+ it.setProperty("--radix-popper-available-width", `${we}px`), it.setProperty("--radix-popper-available-height", `${xe}px`), it.setProperty("--radix-popper-anchor-width", `${ye}px`), it.setProperty("--radix-popper-anchor-height", `${ve}px`);
1402
+ }
1403
+ }),
1404
+ x && Wn({ element: x, padding: c }),
1405
+ Yn({ arrowWidth: C, arrowHeight: M }),
1406
+ p && Nn({ strategy: "referenceHidden", ...S })
1407
+ ]
1408
+ }), [T, V] = ue(E), Dt = Oe(m);
1409
+ Tt(() => {
1410
+ L && Dt?.();
1411
+ }, [L, Dt]);
1412
+ const de = b.arrow?.x, me = b.arrow?.y, pe = b.arrow?.centerOffset !== 0, [he, ge] = O.useState();
1413
+ return Tt(() => {
1414
+ g && ge(window.getComputedStyle(g).zIndex);
1415
+ }, [g]), /* @__PURE__ */ j(
1416
+ "div",
1417
+ {
1418
+ ref: P.setFloating,
1419
+ "data-radix-popper-content-wrapper": "",
1420
+ style: {
1421
+ ...N,
1422
+ transform: L ? N.transform : "translate(0, -200%)",
1423
+ // keep off the page when measuring
1424
+ minWidth: "max-content",
1425
+ zIndex: he,
1426
+ "--radix-popper-transform-origin": [
1427
+ b.transformOrigin?.x,
1428
+ b.transformOrigin?.y
1429
+ ].join(" "),
1430
+ // hide the content if using the hide middleware and should be hidden
1431
+ // set visibility to hidden and disable pointer events so the UI behaves
1432
+ // as if the PopperContent isn't there at all
1433
+ ...b.hide?.referenceHidden && {
1434
+ visibility: "hidden",
1435
+ pointerEvents: "none"
1436
+ }
1437
+ },
1438
+ dir: t.dir,
1439
+ children: /* @__PURE__ */ j(
1440
+ Vn,
1441
+ {
1442
+ scope: n,
1443
+ placedSide: T,
1444
+ onArrowChange: A,
1445
+ arrowX: de,
1446
+ arrowY: me,
1447
+ shouldHideArrow: pe,
1448
+ children: /* @__PURE__ */ j(
1449
+ bt.div,
1450
+ {
1451
+ "data-side": T,
1452
+ "data-align": V,
1453
+ ...h,
1454
+ ref: y,
1455
+ style: {
1456
+ ...h.style,
1457
+ // if the PopperContent hasn't been placed yet (not all measurements done)
1458
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
1459
+ animation: L ? void 0 : "none"
1460
+ }
1461
+ }
1462
+ )
1463
+ }
1464
+ )
1465
+ }
1466
+ );
1467
+ }
1468
+ );
1469
+ le.displayName = Lt;
1470
+ var ae = "PopperArrow", In = {
1471
+ top: "bottom",
1472
+ right: "left",
1473
+ bottom: "top",
1474
+ left: "right"
1475
+ }, fe = O.forwardRef(function(e, n) {
1476
+ const { __scopePopper: o, ...r } = e, i = zn(ae, o), s = In[i.placedSide];
1477
+ return (
1478
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1479
+ // doesn't report size as we'd expect on SVG elements.
1480
+ // it reports their bounding box which is effectively the largest path inside the SVG.
1481
+ /* @__PURE__ */ j(
1482
+ "span",
1483
+ {
1484
+ ref: i.onArrowChange,
1485
+ style: {
1486
+ position: "absolute",
1487
+ left: i.arrowX,
1488
+ top: i.arrowY,
1489
+ [s]: 0,
1490
+ transformOrigin: {
1491
+ top: "",
1492
+ right: "0 0",
1493
+ bottom: "center 0",
1494
+ left: "100% 0"
1495
+ }[i.placedSide],
1496
+ transform: {
1497
+ top: "translateY(100%)",
1498
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
1499
+ bottom: "rotate(180deg)",
1500
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
1501
+ }[i.placedSide],
1502
+ visibility: i.shouldHideArrow ? "hidden" : void 0
1503
+ },
1504
+ children: /* @__PURE__ */ j(
1505
+ _n,
1506
+ {
1507
+ ...r,
1508
+ ref: n,
1509
+ style: {
1510
+ ...r.style,
1511
+ // ensures the element can be measured correctly (mostly for if SVG)
1512
+ display: "block"
1513
+ }
1514
+ }
1515
+ )
1516
+ }
1517
+ )
1518
+ );
1519
+ });
1520
+ fe.displayName = ae;
1521
+ function Xn(t) {
1522
+ return t !== null;
1523
+ }
1524
+ var Yn = (t) => ({
1525
+ name: "transformOrigin",
1526
+ options: t,
1527
+ fn(e) {
1528
+ const { placement: n, rects: o, middlewareData: r } = e, s = r.arrow?.centerOffset !== 0, c = s ? 0 : t.arrowWidth, l = s ? 0 : t.arrowHeight, [a, f] = ue(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (r.arrow?.x ?? 0) + c / 2, d = (r.arrow?.y ?? 0) + l / 2;
1529
+ let m = "", h = "";
1530
+ return a === "bottom" ? (m = s ? u : `${p}px`, h = `${-l}px`) : a === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + l}px`) : a === "right" ? (m = `${-l}px`, h = s ? u : `${d}px`) : a === "left" && (m = `${o.floating.width + l}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
1531
+ }
1532
+ });
1533
+ function ue(t) {
1534
+ const [e, n = "center"] = t.split("-");
1535
+ return [e, n];
1536
+ }
1537
+ var to = ie, eo = ce, no = le, oo = fe;
1538
+ export {
1539
+ eo as A,
1540
+ no as C,
1541
+ to as R,
1542
+ oo as a,
1543
+ Qn as c
1544
+ };