@spark-ui/components 13.0.7 → 14.0.0-beta.1

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 (827) hide show
  1. package/dist/Button-C3xHNaGl.js +2 -0
  2. package/dist/Button-C3xHNaGl.js.map +1 -0
  3. package/dist/{chunk-2YM6GKWW.mjs → Button-D32Avk2j.mjs} +130 -173
  4. package/dist/Button-D32Avk2j.mjs.map +1 -0
  5. package/dist/DialogContent.styles-BrhKaHc_.js +2 -0
  6. package/dist/DialogContent.styles-BrhKaHc_.js.map +1 -0
  7. package/dist/{chunk-XZ47F6TP.mjs → DialogContent.styles-WGWJS9dj.mjs} +6 -8
  8. package/dist/DialogContent.styles-WGWJS9dj.mjs.map +1 -0
  9. package/dist/Icon-Bf0XrmiR.js +2 -0
  10. package/dist/Icon-Bf0XrmiR.js.map +1 -0
  11. package/dist/Icon-D1RueiPY.mjs +58 -0
  12. package/dist/Icon-D1RueiPY.mjs.map +1 -0
  13. package/dist/IconButton-BY3gYXtU.mjs +43 -0
  14. package/dist/IconButton-BY3gYXtU.mjs.map +1 -0
  15. package/dist/IconButton-Bf-EDzpI.js +2 -0
  16. package/dist/IconButton-Bf-EDzpI.js.map +1 -0
  17. package/dist/Slot-C98rL4yy.mjs +14 -0
  18. package/dist/Slot-C98rL4yy.mjs.map +1 -0
  19. package/dist/Slot-ghrohQLA.js +2 -0
  20. package/dist/Slot-ghrohQLA.js.map +1 -0
  21. package/dist/{chunk-GAK4SC2F.mjs → Spinner-CYL5kyzM.mjs} +29 -40
  22. package/dist/Spinner-CYL5kyzM.mjs.map +1 -0
  23. package/dist/Spinner-DK8VEsaR.js +2 -0
  24. package/dist/Spinner-DK8VEsaR.js.map +1 -0
  25. package/dist/{chunk-RKPP7ZOK.mjs → TextLink-3MEVs3No.mjs} +27 -36
  26. package/dist/TextLink-3MEVs3No.mjs.map +1 -0
  27. package/dist/TextLink-DD0VO37q.js +2 -0
  28. package/dist/TextLink-DD0VO37q.js.map +1 -0
  29. package/dist/VisuallyHidden-AoRh4WRK.js +2 -0
  30. package/dist/VisuallyHidden-AoRh4WRK.js.map +1 -0
  31. package/dist/VisuallyHidden-ByNP7ZUI.mjs +28 -0
  32. package/dist/VisuallyHidden-ByNP7ZUI.mjs.map +1 -0
  33. package/dist/accordion/Accordion.d.ts +27 -0
  34. package/dist/accordion/AccordionItem.d.ts +12 -0
  35. package/dist/accordion/AccordionItemContent.d.ts +12 -0
  36. package/dist/accordion/AccordionItemHeader.d.ts +9 -0
  37. package/dist/accordion/AccordionItemTrigger.d.ts +12 -0
  38. package/dist/accordion/index.d.ts +10 -68
  39. package/dist/accordion/index.js +2 -325
  40. package/dist/accordion/index.js.map +1 -1
  41. package/dist/accordion/index.mjs +632 -154
  42. package/dist/accordion/index.mjs.map +1 -1
  43. package/dist/accordion/useRenderSlot.d.ts +3 -0
  44. package/dist/alert-dialog/AlertDialog.d.ts +29 -0
  45. package/dist/alert-dialog/AlertDialogAction.d.ts +13 -0
  46. package/dist/alert-dialog/AlertDialogBody.d.ts +12 -0
  47. package/dist/alert-dialog/AlertDialogCancel.d.ts +13 -0
  48. package/dist/alert-dialog/AlertDialogContent.d.ts +9 -0
  49. package/dist/alert-dialog/AlertDialogContext.d.ts +12 -0
  50. package/dist/alert-dialog/AlertDialogDescription.d.ts +9 -0
  51. package/dist/alert-dialog/AlertDialogFooter.d.ts +10 -0
  52. package/dist/alert-dialog/AlertDialogHeader.d.ts +10 -0
  53. package/dist/alert-dialog/AlertDialogOverlay.d.ts +9 -0
  54. package/dist/alert-dialog/AlertDialogPortal.d.ts +7 -0
  55. package/dist/alert-dialog/AlertDialogTitle.d.ts +9 -0
  56. package/dist/alert-dialog/AlertDialogTrigger.d.ts +13 -0
  57. package/dist/alert-dialog/index.d.ts +26 -147
  58. package/dist/alert-dialog/index.js +35 -405
  59. package/dist/alert-dialog/index.js.map +1 -1
  60. package/dist/alert-dialog/index.mjs +2513 -258
  61. package/dist/alert-dialog/index.mjs.map +1 -1
  62. package/dist/alert-dialog/useRenderSlot.d.ts +3 -0
  63. package/dist/avatar/Avatar.d.ts +3 -0
  64. package/dist/avatar/AvatarAction.d.ts +9 -0
  65. package/dist/avatar/AvatarImage.d.ts +7 -0
  66. package/dist/avatar/AvatarOnlineBadge.d.ts +9 -0
  67. package/dist/avatar/AvatarPlaceholder.d.ts +8 -0
  68. package/dist/avatar/AvatarUser.d.ts +7 -0
  69. package/dist/avatar/context.d.ts +5 -0
  70. package/dist/avatar/index.d.ts +8 -59
  71. package/dist/avatar/index.js +2 -1323
  72. package/dist/avatar/index.js.map +1 -1
  73. package/dist/avatar/index.mjs +149 -207
  74. package/dist/avatar/index.mjs.map +1 -1
  75. package/dist/avatar/types.d.ts +24 -0
  76. package/dist/badge/Badge.d.ts +9 -0
  77. package/dist/badge/BadgeItem.d.ts +31 -0
  78. package/dist/badge/BadgeItem.styles.d.ts +7 -0
  79. package/dist/badge/index.d.ts +1 -47
  80. package/dist/badge/index.js +2 -122
  81. package/dist/badge/index.js.map +1 -1
  82. package/dist/badge/index.mjs +32 -44
  83. package/dist/badge/index.mjs.map +1 -1
  84. package/dist/breadcrumb/Breadcrumb.d.ts +10 -0
  85. package/dist/breadcrumb/Breadcrumb.styles.d.ts +0 -0
  86. package/dist/breadcrumb/BreadcrumbCurrentPage.d.ts +11 -0
  87. package/dist/breadcrumb/BreadcrumbItem.d.ts +9 -0
  88. package/dist/breadcrumb/BreadcrumbLink.d.ts +12 -0
  89. package/dist/breadcrumb/BreadcrumbSeparator.d.ts +10 -0
  90. package/dist/breadcrumb/index.d.ts +7 -59
  91. package/dist/breadcrumb/index.js +2 -327
  92. package/dist/breadcrumb/index.js.map +1 -1
  93. package/dist/breadcrumb/index.mjs +106 -146
  94. package/dist/breadcrumb/index.mjs.map +1 -1
  95. package/dist/button/Button.d.ts +26 -0
  96. package/dist/button/Button.styles.d.ts +10 -0
  97. package/dist/button/index.d.ts +1 -41
  98. package/dist/button/index.js +2 -935
  99. package/dist/button/index.js.map +1 -1
  100. package/dist/button/index.mjs +3 -8
  101. package/dist/button/index.mjs.map +1 -1
  102. package/dist/button/variants/contrast.d.ts +45 -0
  103. package/dist/button/variants/filled.d.ts +45 -0
  104. package/dist/button/variants/ghost.d.ts +45 -0
  105. package/dist/button/variants/index.d.ts +5 -0
  106. package/dist/button/variants/outlined.d.ts +45 -0
  107. package/dist/button/variants/tinted.d.ts +45 -0
  108. package/dist/card/Backdrop.d.ts +14 -0
  109. package/dist/card/Card.d.ts +16 -0
  110. package/dist/card/Card.styles.d.ts +7 -0
  111. package/dist/card/Content.d.ts +15 -0
  112. package/dist/card/Content.styles.d.ts +8 -0
  113. package/dist/card/context.d.ts +11 -0
  114. package/dist/card/index.d.ts +5 -58
  115. package/dist/card/index.js +2 -502
  116. package/dist/card/index.js.map +1 -1
  117. package/dist/card/index.mjs +125 -178
  118. package/dist/card/index.mjs.map +1 -1
  119. package/dist/card/utils.d.ts +3 -0
  120. package/dist/carousel/Carousel.d.ts +12 -0
  121. package/dist/carousel/CarouselControls.d.ts +9 -0
  122. package/dist/carousel/CarouselNextButton.d.ts +5 -0
  123. package/dist/carousel/CarouselPageIndicator.d.ts +14 -0
  124. package/dist/carousel/CarouselPagePicker.d.ts +14 -0
  125. package/dist/carousel/CarouselPrevButton.d.ts +5 -0
  126. package/dist/carousel/CarouselSlide.d.ts +12 -0
  127. package/dist/carousel/CarouselSlides.d.ts +10 -0
  128. package/dist/carousel/CarouselViewport.d.ts +9 -0
  129. package/dist/carousel/index.d.ts +18 -263
  130. package/dist/carousel/index.js +2 -1882
  131. package/dist/carousel/index.js.map +1 -1
  132. package/dist/carousel/index.mjs +428 -650
  133. package/dist/carousel/index.mjs.map +1 -1
  134. package/dist/carousel/{index.d.mts → types.d.ts} +13 -112
  135. package/dist/carousel/useCarousel.d.ts +2 -0
  136. package/dist/carousel/useCarouselVisibility.d.ts +13 -0
  137. package/dist/carousel/useEvent.d.ts +7 -0
  138. package/dist/carousel/useIsMounted.d.ts +1 -0
  139. package/dist/carousel/useIsVisible.d.ts +6 -0
  140. package/dist/carousel/useResizeObserver.d.ts +2 -0
  141. package/dist/carousel/useScrollEnd.d.ts +3 -0
  142. package/dist/carousel/useSnapPoints.d.ts +10 -0
  143. package/dist/carousel/utils.d.ts +24 -0
  144. package/dist/checkbox/Checkbox.d.ts +10 -0
  145. package/dist/checkbox/CheckboxGroup.d.ts +18 -0
  146. package/dist/checkbox/CheckboxGroup.styles.d.ts +5 -0
  147. package/dist/checkbox/CheckboxGroupContext.d.ts +41 -0
  148. package/dist/checkbox/CheckboxIndicator.d.ts +9 -0
  149. package/dist/checkbox/CheckboxInput.d.ts +47 -0
  150. package/dist/checkbox/CheckboxInput.styles.d.ts +5 -0
  151. package/dist/checkbox/CheckboxLabel.d.ts +12 -0
  152. package/dist/checkbox/CheckboxLabel.styles.d.ts +5 -0
  153. package/dist/checkbox/index.d.ts +2 -120
  154. package/dist/checkbox/index.js +2 -511
  155. package/dist/checkbox/index.js.map +1 -1
  156. package/dist/checkbox/index.mjs +371 -226
  157. package/dist/checkbox/index.mjs.map +1 -1
  158. package/dist/chip/Chip.d.ts +34 -0
  159. package/dist/chip/Chip.styles.d.ts +8 -0
  160. package/dist/chip/ChipClearButton.d.ts +10 -0
  161. package/dist/chip/ChipClearButton.styles.d.ts +10 -0
  162. package/dist/chip/ChipContent.d.ts +8 -0
  163. package/dist/chip/ChipIcon.d.ts +8 -0
  164. package/dist/chip/ChipLeadingIcon.d.ts +9 -0
  165. package/dist/chip/ChipTrailingIcon.d.ts +9 -0
  166. package/dist/chip/index.d.ts +10 -92
  167. package/dist/chip/index.js +2 -908
  168. package/dist/chip/index.js.map +1 -1
  169. package/dist/chip/index.mjs +390 -322
  170. package/dist/chip/index.mjs.map +1 -1
  171. package/dist/chip/useChipContext.d.ts +4 -0
  172. package/dist/chip/useChipElement.d.ts +41 -0
  173. package/dist/chip/variants/dashed.d.ts +49 -0
  174. package/dist/chip/variants/index.d.ts +3 -0
  175. package/dist/chip/variants/outlined.d.ts +49 -0
  176. package/dist/chip/variants/tinted.d.ts +49 -0
  177. package/dist/collapsible/Content.d.ts +12 -0
  178. package/dist/collapsible/Root.d.ts +12 -0
  179. package/dist/collapsible/Trigger.d.ts +11 -0
  180. package/dist/collapsible/index.d.ts +4 -40
  181. package/dist/collapsible/index.js +2 -109
  182. package/dist/collapsible/index.js.map +1 -1
  183. package/dist/collapsible/index.mjs +214 -58
  184. package/dist/collapsible/index.mjs.map +1 -1
  185. package/dist/collapsible/useRenderSlot.d.ts +3 -0
  186. package/dist/combobox/Combobox.d.ts +6 -0
  187. package/dist/combobox/ComboboxClearButton.d.ts +9 -0
  188. package/dist/combobox/ComboboxContext.d.ts +108 -0
  189. package/dist/combobox/ComboboxDisclosure.d.ts +13 -0
  190. package/dist/combobox/ComboboxEmpty.d.ts +11 -0
  191. package/dist/combobox/ComboboxGroup.d.ts +11 -0
  192. package/dist/combobox/ComboboxInput.d.ts +15 -0
  193. package/dist/combobox/ComboboxItem.d.ts +12 -0
  194. package/dist/combobox/ComboboxItemContext.d.ts +17 -0
  195. package/dist/combobox/ComboboxItemIndicator.d.ts +11 -0
  196. package/dist/combobox/ComboboxItemText.d.ts +10 -0
  197. package/dist/combobox/ComboboxItems.d.ts +11 -0
  198. package/dist/combobox/ComboboxItemsGroupContext.d.ts +8 -0
  199. package/dist/combobox/ComboboxLabel.d.ts +11 -0
  200. package/dist/combobox/ComboboxLeadingIcon.d.ts +7 -0
  201. package/dist/combobox/ComboboxPopover.d.ts +10 -0
  202. package/dist/combobox/ComboboxPortal.d.ts +2 -0
  203. package/dist/combobox/ComboboxSelectedItems.d.ts +4 -0
  204. package/dist/combobox/ComboboxTrigger.d.ts +11 -0
  205. package/dist/combobox/ComboboxTrigger.styles.d.ts +6 -0
  206. package/dist/combobox/index.d.ts +19 -271
  207. package/dist/combobox/index.js +2 -2588
  208. package/dist/combobox/index.js.map +1 -1
  209. package/dist/combobox/index.mjs +623 -1017
  210. package/dist/combobox/index.mjs.map +1 -1
  211. package/dist/combobox/tests/test-utils.d.ts +8 -0
  212. package/dist/combobox/types.d.ts +8 -0
  213. package/dist/combobox/useCombobox/multipleSelectionReducer.d.ts +13 -0
  214. package/dist/combobox/useCombobox/singleSelectionReducer.d.ts +8 -0
  215. package/dist/combobox/utils/index.d.ts +14 -0
  216. package/dist/combobox/utils/useWidthIncreaseCallback.d.ts +2 -0
  217. package/dist/composite-Br3kM5N9.mjs +40 -0
  218. package/dist/composite-Br3kM5N9.mjs.map +1 -0
  219. package/dist/composite-fJD9R7R0.js +2 -0
  220. package/dist/composite-fJD9R7R0.js.map +1 -0
  221. package/dist/detectBrowser-Bc7rk5fI.mjs +44 -0
  222. package/dist/detectBrowser-Bc7rk5fI.mjs.map +1 -0
  223. package/dist/detectBrowser-DTbs_30X.js +2 -0
  224. package/dist/detectBrowser-DTbs_30X.js.map +1 -0
  225. package/dist/dialog/Dialog.d.ts +32 -0
  226. package/dist/dialog/DialogBody.d.ts +12 -0
  227. package/dist/dialog/DialogClose.d.ts +9 -0
  228. package/dist/dialog/DialogCloseButton.d.ts +9 -0
  229. package/dist/dialog/DialogContent.d.ts +14 -0
  230. package/dist/dialog/DialogContent.styles.d.ts +6 -0
  231. package/dist/dialog/DialogContext.d.ts +11 -0
  232. package/dist/dialog/DialogDescription.d.ts +9 -0
  233. package/dist/dialog/DialogFooter.d.ts +10 -0
  234. package/dist/dialog/DialogHeader.d.ts +10 -0
  235. package/dist/dialog/DialogOverlay.d.ts +9 -0
  236. package/dist/dialog/DialogPortal.d.ts +7 -0
  237. package/dist/dialog/DialogTitle.d.ts +9 -0
  238. package/dist/dialog/DialogTrigger.d.ts +17 -0
  239. package/dist/dialog/index.d.ts +25 -154
  240. package/dist/dialog/index.js +2 -1389
  241. package/dist/dialog/index.js.map +1 -1
  242. package/dist/dialog/index.mjs +163 -258
  243. package/dist/dialog/index.mjs.map +1 -1
  244. package/dist/divider/Divider.d.ts +30 -0
  245. package/dist/divider/Divider.styles.d.ts +9 -0
  246. package/dist/divider/DividerContent.d.ts +13 -0
  247. package/dist/divider/index.d.ts +4 -59
  248. package/dist/divider/index.js +2 -224
  249. package/dist/divider/index.js.map +1 -1
  250. package/dist/divider/index.mjs +97 -100
  251. package/dist/divider/index.mjs.map +1 -1
  252. package/dist/divider/variants/intents.d.ts +17 -0
  253. package/dist/downshift.esm-Ncwetv0s.mjs +3038 -0
  254. package/dist/downshift.esm-Ncwetv0s.mjs.map +1 -0
  255. package/dist/downshift.esm-PfCOUbxq.js +37 -0
  256. package/dist/downshift.esm-PfCOUbxq.js.map +1 -0
  257. package/dist/drawer/Drawer.d.ts +39 -0
  258. package/dist/drawer/DrawerBody.d.ts +11 -0
  259. package/dist/drawer/DrawerBody.styles.d.ts +5 -0
  260. package/dist/drawer/DrawerClose.d.ts +9 -0
  261. package/dist/drawer/DrawerCloseButton.d.ts +7 -0
  262. package/dist/drawer/DrawerContent.d.ts +10 -0
  263. package/dist/drawer/DrawerContent.styles.d.ts +6 -0
  264. package/dist/drawer/DrawerContext.d.ts +9 -0
  265. package/dist/drawer/DrawerDescription.d.ts +9 -0
  266. package/dist/drawer/DrawerFooter.d.ts +8 -0
  267. package/dist/drawer/DrawerHeader.d.ts +10 -0
  268. package/dist/drawer/DrawerOverlay.d.ts +9 -0
  269. package/dist/drawer/DrawerPortal.d.ts +7 -0
  270. package/dist/drawer/DrawerTitle.d.ts +9 -0
  271. package/dist/drawer/DrawerTrigger.d.ts +13 -0
  272. package/dist/drawer/index.d.ts +24 -141
  273. package/dist/drawer/index.js +2 -1400
  274. package/dist/drawer/index.js.map +1 -1
  275. package/dist/drawer/index.mjs +141 -230
  276. package/dist/drawer/index.mjs.map +1 -1
  277. package/dist/dropdown/Dropdown.d.ts +6 -0
  278. package/dist/dropdown/DropdownContext.d.ts +81 -0
  279. package/dist/dropdown/DropdownDivider.d.ts +10 -0
  280. package/dist/dropdown/DropdownGroup.d.ts +11 -0
  281. package/dist/dropdown/DropdownItem.d.ts +12 -0
  282. package/dist/dropdown/DropdownItemContext.d.ts +17 -0
  283. package/dist/dropdown/DropdownItemIndicator.d.ts +11 -0
  284. package/dist/dropdown/DropdownItemText.d.ts +9 -0
  285. package/dist/dropdown/DropdownItems.d.ts +21 -0
  286. package/dist/dropdown/DropdownItemsGroupContext.d.ts +8 -0
  287. package/dist/dropdown/DropdownLabel.d.ts +11 -0
  288. package/dist/dropdown/DropdownLeadingIcon.d.ts +7 -0
  289. package/dist/dropdown/DropdownPopover.d.ts +6 -0
  290. package/dist/dropdown/DropdownPortal.d.ts +2 -0
  291. package/dist/dropdown/DropdownTrigger.d.ts +12 -0
  292. package/dist/dropdown/DropdownTrigger.styles.d.ts +5 -0
  293. package/dist/dropdown/DropdownValue.d.ts +11 -0
  294. package/dist/dropdown/index.d.ts +16 -220
  295. package/dist/dropdown/index.js +2 -2051
  296. package/dist/dropdown/index.js.map +1 -1
  297. package/dist/dropdown/index.mjs +352 -584
  298. package/dist/dropdown/index.mjs.map +1 -1
  299. package/dist/dropdown/types.d.ts +8 -0
  300. package/dist/dropdown/useDropdown.d.ts +41 -0
  301. package/dist/dropdown/utils.d.ts +13 -0
  302. package/dist/file-upload/FileUpload.d.ts +130 -0
  303. package/dist/file-upload/FileUploadAcceptedFile.d.ts +25 -0
  304. package/dist/file-upload/FileUploadContext.d.ts +17 -0
  305. package/dist/file-upload/FileUploadDropzone.d.ts +10 -0
  306. package/dist/file-upload/FileUploadItemDeleteTrigger.d.ts +11 -0
  307. package/dist/file-upload/FileUploadPreviewImage.d.ts +17 -0
  308. package/dist/file-upload/FileUploadRejectedFile.d.ts +24 -0
  309. package/dist/file-upload/FileUploadRejectedFileDeleteTrigger.d.ts +12 -0
  310. package/dist/file-upload/FileUploadTrigger.d.ts +12 -0
  311. package/dist/file-upload/constants.d.ts +29 -0
  312. package/dist/file-upload/index.d.ts +14 -262
  313. package/dist/file-upload/index.js +2 -2255
  314. package/dist/file-upload/index.js.map +1 -1
  315. package/dist/file-upload/index.mjs +506 -834
  316. package/dist/file-upload/index.mjs.map +1 -1
  317. package/dist/file-upload/test-utils.d.ts +9 -0
  318. package/dist/file-upload/useFileUploadState.d.ts +88 -0
  319. package/dist/file-upload/utils.d.ts +40 -0
  320. package/dist/floating-ui.utils.dom-CCN4I08l.js +2 -0
  321. package/dist/floating-ui.utils.dom-CCN4I08l.js.map +1 -0
  322. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs +136 -0
  323. package/dist/floating-ui.utils.dom-uiDUZc_y.mjs.map +1 -0
  324. package/dist/form-field/FormField.d.ts +21 -0
  325. package/dist/form-field/FormFieldAlertMessage.d.ts +9 -0
  326. package/dist/form-field/FormFieldCharactersCount.d.ts +26 -0
  327. package/dist/form-field/FormFieldContext.d.ts +49 -0
  328. package/dist/form-field/FormFieldControl.d.ts +12 -0
  329. package/dist/form-field/FormFieldErrorMessage.d.ts +9 -0
  330. package/dist/form-field/FormFieldHelperMessage.d.ts +9 -0
  331. package/dist/form-field/FormFieldLabel.d.ts +13 -0
  332. package/dist/form-field/FormFieldMessage.d.ts +8 -0
  333. package/dist/form-field/FormFieldProvider.d.ts +9 -0
  334. package/dist/form-field/FormFieldRequiredIndicator.d.ts +9 -0
  335. package/dist/form-field/FormFieldStateMessage.d.ts +10 -0
  336. package/dist/form-field/FormFieldSuccessMessage.d.ts +9 -0
  337. package/dist/form-field/index.d.ts +21 -176
  338. package/dist/form-field/index.js +2 -553
  339. package/dist/form-field/index.js.map +1 -1
  340. package/dist/form-field/index.mjs +246 -349
  341. package/dist/form-field/index.mjs.map +1 -1
  342. package/dist/icon/Icon.d.ts +17 -0
  343. package/dist/icon/Icon.styles.d.ts +6 -0
  344. package/dist/icon/index.d.ts +1 -28
  345. package/dist/icon/index.js +2 -127
  346. package/dist/icon/index.js.map +1 -1
  347. package/dist/icon/index.mjs +3 -7
  348. package/dist/icon/index.mjs.map +1 -1
  349. package/dist/icon-button/IconButton.d.ts +10 -0
  350. package/dist/icon-button/IconButton.styles.d.ts +5 -0
  351. package/dist/icon-button/index.d.ts +1 -16
  352. package/dist/icon-button/index.js +2 -980
  353. package/dist/icon-button/index.js.map +1 -1
  354. package/dist/icon-button/index.mjs +3 -9
  355. package/dist/icon-button/index.mjs.map +1 -1
  356. package/dist/index-0KYGKeVg.js +2 -0
  357. package/dist/index-0KYGKeVg.js.map +1 -0
  358. package/dist/index-1WIgmEZh.js +2 -0
  359. package/dist/index-1WIgmEZh.js.map +1 -0
  360. package/dist/index-BRi38DTc.mjs +21 -0
  361. package/dist/index-BRi38DTc.mjs.map +1 -0
  362. package/dist/index-BZAtNKwE.mjs +71 -0
  363. package/dist/index-BZAtNKwE.mjs.map +1 -0
  364. package/dist/index-BZPx6jYI.mjs +9 -0
  365. package/dist/index-BZPx6jYI.mjs.map +1 -0
  366. package/dist/index-BlkdpEIe.mjs +55 -0
  367. package/dist/index-BlkdpEIe.mjs.map +1 -0
  368. package/dist/index-BmAFn37q.mjs +49 -0
  369. package/dist/index-BmAFn37q.mjs.map +1 -0
  370. package/dist/index-C-J_tHdS.js +6 -0
  371. package/dist/index-C-J_tHdS.js.map +1 -0
  372. package/dist/index-C1qb0595.mjs +28 -0
  373. package/dist/index-C1qb0595.mjs.map +1 -0
  374. package/dist/index-C34GgsKQ.mjs +54 -0
  375. package/dist/index-C34GgsKQ.mjs.map +1 -0
  376. package/dist/index-CCKe-Mpx.mjs +7 -0
  377. package/dist/index-CCKe-Mpx.mjs.map +1 -0
  378. package/dist/index-CDBBjNXc.js +2 -0
  379. package/dist/index-CDBBjNXc.js.map +1 -0
  380. package/dist/index-CYjGhVvU.mjs +243 -0
  381. package/dist/index-CYjGhVvU.mjs.map +1 -0
  382. package/dist/index-ChLwd62c.js +2 -0
  383. package/dist/index-ChLwd62c.js.map +1 -0
  384. package/dist/index-Cjj_rUPu.js +2 -0
  385. package/dist/index-Cjj_rUPu.js.map +1 -0
  386. package/dist/index-CyMbLkj0.js +2 -0
  387. package/dist/index-CyMbLkj0.js.map +1 -0
  388. package/dist/index-DFZozV_h.mjs +69 -0
  389. package/dist/index-DFZozV_h.mjs.map +1 -0
  390. package/dist/index-DKuHkHFX.js +2 -0
  391. package/dist/index-DKuHkHFX.js.map +1 -0
  392. package/dist/index-DLHLIYPI.mjs +16 -0
  393. package/dist/index-DLHLIYPI.mjs.map +1 -0
  394. package/dist/index-DO-atGp-.js +2 -0
  395. package/dist/index-DO-atGp-.js.map +1 -0
  396. package/dist/index-DWlg8lkk.mjs +179 -0
  397. package/dist/index-DWlg8lkk.mjs.map +1 -0
  398. package/dist/index-DYxWvftI.js +2 -0
  399. package/dist/index-DYxWvftI.js.map +1 -0
  400. package/dist/index-D_lWkK39.mjs +803 -0
  401. package/dist/index-D_lWkK39.mjs.map +1 -0
  402. package/dist/index-DdkVj7D0.js +18 -0
  403. package/dist/index-DdkVj7D0.js.map +1 -0
  404. package/dist/index-De-6atSi.js +2 -0
  405. package/dist/index-De-6atSi.js.map +1 -0
  406. package/dist/index-DhGWNzsz.mjs +83 -0
  407. package/dist/index-DhGWNzsz.mjs.map +1 -0
  408. package/dist/index-Dkj4QRX8.js +2 -0
  409. package/dist/index-Dkj4QRX8.js.map +1 -0
  410. package/dist/index-DlIFg0Eu.mjs +60 -0
  411. package/dist/index-DlIFg0Eu.mjs.map +1 -0
  412. package/dist/index-DnaHaH_0.js +2 -0
  413. package/dist/index-DnaHaH_0.js.map +1 -0
  414. package/dist/index-MHF2-CYX.js +2 -0
  415. package/dist/index-MHF2-CYX.js.map +1 -0
  416. package/dist/index-MQ0c3ZX_.js +2 -0
  417. package/dist/index-MQ0c3ZX_.js.map +1 -0
  418. package/dist/index-MSR-vgWR.mjs +37 -0
  419. package/dist/index-MSR-vgWR.mjs.map +1 -0
  420. package/dist/index-VL0YEmOW.mjs +125 -0
  421. package/dist/index-VL0YEmOW.mjs.map +1 -0
  422. package/dist/index-tXqxYME3.js +42 -0
  423. package/dist/index-tXqxYME3.js.map +1 -0
  424. package/dist/inertValue-Bif5Sqs6.mjs +522 -0
  425. package/dist/inertValue-Bif5Sqs6.mjs.map +1 -0
  426. package/dist/inertValue-ShwihJSN.js +5 -0
  427. package/dist/inertValue-ShwihJSN.js.map +1 -0
  428. package/dist/input/Input.d.ts +14 -0
  429. package/dist/input/Input.styles.d.ts +11 -0
  430. package/dist/input/InputAddon.d.ts +9 -0
  431. package/dist/input/InputAddon.styles.d.ts +9 -0
  432. package/dist/input/InputClearButton.d.ts +12 -0
  433. package/dist/input/InputGroup.d.ts +17 -0
  434. package/dist/input/InputGroup.styles.d.ts +6 -0
  435. package/dist/input/InputGroupContext.d.ts +14 -0
  436. package/dist/input/InputIcon.d.ts +6 -0
  437. package/dist/input/InputLeadingAddon.d.ts +11 -0
  438. package/dist/input/InputLeadingIcon.d.ts +7 -0
  439. package/dist/input/InputTrailingAddon.d.ts +11 -0
  440. package/dist/input/InputTrailingIcon.d.ts +7 -0
  441. package/dist/input/index.d.ts +15 -72
  442. package/dist/input/index.js +2 -724
  443. package/dist/input/index.js.map +1 -1
  444. package/dist/input/index.mjs +453 -12
  445. package/dist/input/index.mjs.map +1 -1
  446. package/dist/input-otp/InputOTP.d.ts +85 -0
  447. package/dist/input-otp/InputOTP.styles.d.ts +10 -0
  448. package/dist/input-otp/InputOTPContext.d.ts +16 -0
  449. package/dist/input-otp/InputOTPGroup.d.ts +7 -0
  450. package/dist/input-otp/InputOTPSeparator.d.ts +7 -0
  451. package/dist/input-otp/InputOTPSlot.d.ts +12 -0
  452. package/dist/input-otp/index.d.ts +14 -0
  453. package/dist/input-otp/index.js +2 -0
  454. package/dist/input-otp/index.js.map +1 -0
  455. package/dist/input-otp/index.mjs +390 -0
  456. package/dist/input-otp/index.mjs.map +1 -0
  457. package/dist/input-otp/useInputOTP.d.ts +45 -0
  458. package/dist/kbd/Kbd.d.ts +5 -0
  459. package/dist/kbd/index.d.ts +1 -9
  460. package/dist/kbd/index.js +2 -47
  461. package/dist/kbd/index.js.map +1 -1
  462. package/dist/kbd/index.mjs +15 -18
  463. package/dist/kbd/index.mjs.map +1 -1
  464. package/dist/label/Label.d.ts +9 -0
  465. package/dist/label/LabelRequiredIndicator.d.ts +6 -0
  466. package/dist/label/index.d.ts +5 -9
  467. package/dist/label/index.js +2 -78
  468. package/dist/label/index.js.map +1 -1
  469. package/dist/label/index.mjs +3 -5
  470. package/dist/label/index.mjs.map +1 -1
  471. package/dist/link-box/LinkBox.d.ts +8 -0
  472. package/dist/link-box/LinkBoxLink.d.ts +8 -0
  473. package/dist/link-box/LinkBoxRaised.d.ts +9 -0
  474. package/dist/link-box/index.d.ts +6 -31
  475. package/dist/link-box/index.js +2 -92
  476. package/dist/link-box/index.js.map +1 -1
  477. package/dist/link-box/index.mjs +34 -56
  478. package/dist/link-box/index.mjs.map +1 -1
  479. package/dist/pagination/Pagination.d.ts +8 -0
  480. package/dist/pagination/PaginationContext.d.ts +43 -0
  481. package/dist/pagination/PaginationEllipsis.d.ts +9 -0
  482. package/dist/pagination/PaginationFirstPageTrigger.d.ts +16 -0
  483. package/dist/pagination/PaginationItem.d.ts +17 -0
  484. package/dist/pagination/PaginationLastPageTrigger.d.ts +16 -0
  485. package/dist/pagination/PaginationNextTrigger.d.ts +16 -0
  486. package/dist/pagination/PaginationPages.d.ts +16 -0
  487. package/dist/pagination/PaginationPrevTrigger.d.ts +16 -0
  488. package/dist/pagination/index.d.ts +10 -135
  489. package/dist/pagination/index.js +2 -1353
  490. package/dist/pagination/index.js.map +1 -1
  491. package/dist/pagination/index.mjs +893 -268
  492. package/dist/pagination/index.mjs.map +1 -1
  493. package/dist/pagination/utils.d.ts +1 -0
  494. package/dist/popover/Popover.d.ts +9 -0
  495. package/dist/popover/PopoverAnchor.d.ts +9 -0
  496. package/dist/popover/PopoverArrow.d.ts +9 -0
  497. package/dist/popover/PopoverCloseButton.d.ts +10 -0
  498. package/dist/popover/PopoverContent.d.ts +10 -0
  499. package/dist/popover/PopoverContent.styles.d.ts +9 -0
  500. package/dist/popover/PopoverContext.d.ts +15 -0
  501. package/dist/popover/PopoverHeader.d.ts +10 -0
  502. package/dist/popover/PopoverPortal.d.ts +7 -0
  503. package/dist/popover/PopoverTrigger.d.ts +9 -0
  504. package/dist/popover/index.d.ts +17 -6
  505. package/dist/popover/index.js +2 -1339
  506. package/dist/popover/index.js.map +1 -1
  507. package/dist/popover/index.mjs +1868 -11
  508. package/dist/popover/index.mjs.map +1 -1
  509. package/dist/portal/{index.d.mts → Portal.d.ts} +2 -5
  510. package/dist/portal/index.d.ts +1 -13
  511. package/dist/portal/index.js +2 -37
  512. package/dist/portal/index.js.map +1 -1
  513. package/dist/portal/index.mjs +5 -8
  514. package/dist/portal/index.mjs.map +1 -1
  515. package/dist/progress/Progress.d.ts +16 -0
  516. package/dist/progress/ProgressBar.d.ts +6 -0
  517. package/dist/progress/ProgressBar.styles.d.ts +5 -0
  518. package/dist/progress/ProgressContext.d.ts +13 -0
  519. package/dist/progress/ProgressIndicator.d.ts +6 -0
  520. package/dist/progress/ProgressIndicator.styles.d.ts +7 -0
  521. package/dist/progress/ProgressLabel.d.ts +6 -0
  522. package/dist/progress/index.d.ts +9 -48
  523. package/dist/progress/index.js +6 -239
  524. package/dist/progress/index.js.map +1 -1
  525. package/dist/progress/index.mjs +241 -5
  526. package/dist/progress/index.mjs.map +1 -1
  527. package/dist/progress-tracker/ProgressTracker.d.ts +27 -0
  528. package/dist/progress-tracker/ProgressTracker.styles.d.ts +1 -0
  529. package/dist/progress-tracker/ProgressTrackerContext.d.ts +15 -0
  530. package/dist/progress-tracker/ProgressTrackerStep.d.ts +12 -0
  531. package/dist/progress-tracker/ProgressTrackerStep.styles.d.ts +10 -0
  532. package/dist/progress-tracker/ProgressTrackerStepIndicator.d.ts +15 -0
  533. package/dist/progress-tracker/ProgressTrackerStepIndicator.styles.d.ts +7 -0
  534. package/dist/progress-tracker/ProgressTrackerStepLabel.d.ts +9 -0
  535. package/dist/progress-tracker/index.d.ts +10 -80
  536. package/dist/progress-tracker/index.js +2 -571
  537. package/dist/progress-tracker/index.js.map +1 -1
  538. package/dist/progress-tracker/index.mjs +115 -183
  539. package/dist/progress-tracker/index.mjs.map +1 -1
  540. package/dist/radio-group/Radio.d.ts +9 -0
  541. package/dist/radio-group/RadioGroup.d.ts +54 -0
  542. package/dist/radio-group/RadioGroup.styles.d.ts +5 -0
  543. package/dist/radio-group/RadioGroupContext.d.ts +5 -0
  544. package/dist/radio-group/RadioGroupProvider.d.ts +7 -0
  545. package/dist/radio-group/RadioIndicator.d.ts +18 -0
  546. package/dist/radio-group/RadioIndicator.styles.d.ts +5 -0
  547. package/dist/radio-group/RadioInput.d.ts +25 -0
  548. package/dist/radio-group/RadioInput.styles.d.ts +5 -0
  549. package/dist/radio-group/RadioLabel.d.ts +20 -0
  550. package/dist/radio-group/RadioLabel.styles.d.ts +5 -0
  551. package/dist/radio-group/index.d.ts +5 -98
  552. package/dist/radio-group/index.js +2 -318
  553. package/dist/radio-group/index.js.map +1 -1
  554. package/dist/radio-group/index.mjs +332 -174
  555. package/dist/radio-group/index.mjs.map +1 -1
  556. package/dist/rating/Rating.d.ts +52 -0
  557. package/dist/rating/RatingStar.d.ts +10 -0
  558. package/dist/rating/RatingStar.styles.d.ts +14 -0
  559. package/dist/rating/index.d.ts +1 -78
  560. package/dist/rating/index.js +2 -363
  561. package/dist/rating/index.js.map +1 -1
  562. package/dist/rating/index.mjs +125 -170
  563. package/dist/rating/index.mjs.map +1 -1
  564. package/dist/rating/types.d.ts +1 -0
  565. package/dist/rating/utils.d.ts +8 -0
  566. package/dist/scrolling-list/ScrollingList.d.ts +57 -0
  567. package/dist/scrolling-list/ScrollingListControls.d.ts +18 -0
  568. package/dist/scrolling-list/ScrollingListItem.d.ts +17 -0
  569. package/dist/scrolling-list/ScrollingListItems.d.ts +11 -0
  570. package/dist/scrolling-list/ScrollingListNextButton.d.ts +5 -0
  571. package/dist/scrolling-list/ScrollingListPrevButton.d.ts +5 -0
  572. package/dist/scrolling-list/ScrollingListSkipButton.d.ts +9 -0
  573. package/dist/scrolling-list/index.d.ts +14 -117
  574. package/dist/scrolling-list/index.js +2 -1428
  575. package/dist/scrolling-list/index.js.map +1 -1
  576. package/dist/scrolling-list/index.mjs +358 -325
  577. package/dist/scrolling-list/index.mjs.map +1 -1
  578. package/dist/scrolling-list/useFocusWithinScroll.d.ts +3 -0
  579. package/dist/segmented-gauge/{index.d.mts → SegmentedGauge.d.ts} +4 -43
  580. package/dist/segmented-gauge/SegmentedGaugeContext.d.ts +14 -0
  581. package/dist/segmented-gauge/SegmentedGaugeLabel.d.ts +9 -0
  582. package/dist/segmented-gauge/SegmentedGaugeSegment.d.ts +12 -0
  583. package/dist/segmented-gauge/SegmentedGaugeTrack.d.ts +8 -0
  584. package/dist/segmented-gauge/index.d.ts +9 -101
  585. package/dist/segmented-gauge/index.js +2 -274
  586. package/dist/segmented-gauge/index.js.map +1 -1
  587. package/dist/segmented-gauge/index.mjs +132 -178
  588. package/dist/segmented-gauge/index.mjs.map +1 -1
  589. package/dist/select/Select.d.ts +6 -0
  590. package/dist/select/SelectContext.d.ts +59 -0
  591. package/dist/select/SelectGroup.d.ts +11 -0
  592. package/dist/select/SelectItem.d.ts +11 -0
  593. package/dist/select/SelectItems.d.ts +10 -0
  594. package/dist/select/SelectItemsGroupContext.d.ts +9 -0
  595. package/dist/select/SelectLabel.d.ts +8 -0
  596. package/dist/select/SelectLeadingIcon.d.ts +7 -0
  597. package/dist/select/SelectPlaceholder.d.ts +10 -0
  598. package/dist/select/SelectTrigger.d.ts +16 -0
  599. package/dist/select/SelectTrigger.styles.d.ts +5 -0
  600. package/dist/select/SelectValue.d.ts +15 -0
  601. package/dist/select/index.d.ts +12 -158
  602. package/dist/select/index.js +2 -581
  603. package/dist/select/index.js.map +1 -1
  604. package/dist/select/index.mjs +207 -339
  605. package/dist/select/index.mjs.map +1 -1
  606. package/dist/select/types.d.ts +6 -0
  607. package/dist/select/utils.d.ts +4 -0
  608. package/dist/skeleton/Skeleton.d.ts +17 -0
  609. package/dist/skeleton/Skeleton.styles.d.ts +5 -0
  610. package/dist/skeleton/SkeletonItem.d.ts +31 -0
  611. package/dist/skeleton/SkeletonItem.styles.d.ts +8 -0
  612. package/dist/skeleton/index.d.ts +8 -67
  613. package/dist/skeleton/index.js +2 -206
  614. package/dist/skeleton/index.js.map +1 -1
  615. package/dist/skeleton/index.mjs +64 -96
  616. package/dist/skeleton/index.mjs.map +1 -1
  617. package/dist/slider/Slider.d.ts +55 -0
  618. package/dist/slider/Slider.styles.d.ts +1 -0
  619. package/dist/slider/SliderContext.d.ts +4 -0
  620. package/dist/slider/SliderThumb.d.ts +14 -0
  621. package/dist/slider/SliderThumb.styles.d.ts +5 -0
  622. package/dist/slider/SliderTrack.d.ts +14 -0
  623. package/dist/slider/SliderTrack.styles.d.ts +9 -0
  624. package/dist/slider/index.d.ts +8 -97
  625. package/dist/slider/index.js +2 -220
  626. package/dist/slider/index.js.map +1 -1
  627. package/dist/slider/index.mjs +490 -107
  628. package/dist/slider/index.mjs.map +1 -1
  629. package/dist/slot/Slot.d.ts +12 -0
  630. package/dist/slot/index.d.ts +1 -16
  631. package/dist/slot/index.js +2 -51
  632. package/dist/slot/index.js.map +1 -1
  633. package/dist/slot/index.mjs +5 -9
  634. package/dist/slot/index.mjs.map +1 -1
  635. package/dist/snackbar/Snackbar.d.ts +29 -0
  636. package/dist/snackbar/SnackbarItem.d.ts +49 -0
  637. package/dist/snackbar/SnackbarItem.styles.d.ts +10 -0
  638. package/dist/snackbar/SnackbarItemAction.d.ts +10 -0
  639. package/dist/snackbar/SnackbarItemClose.d.ts +9 -0
  640. package/dist/snackbar/SnackbarItemContext.d.ts +8 -0
  641. package/dist/snackbar/SnackbarItemIcon.d.ts +7 -0
  642. package/dist/snackbar/SnackbarRegion.d.ts +30 -0
  643. package/dist/snackbar/SnackbarRegion.styles.d.ts +5 -0
  644. package/dist/snackbar/index.d.ts +13 -158
  645. package/dist/snackbar/index.js +2 -1756
  646. package/dist/snackbar/index.js.map +1 -1
  647. package/dist/snackbar/index.mjs +1153 -429
  648. package/dist/snackbar/index.mjs.map +1 -1
  649. package/dist/snackbar/snackbarVariants.d.ts +82 -0
  650. package/dist/snackbar/useSnackbarGlobalStore.d.ts +18 -0
  651. package/dist/snackbar/useSwipe.d.ts +15 -0
  652. package/dist/spinner/Spinner.d.ts +9 -0
  653. package/dist/spinner/Spinner.styles.d.ts +7 -0
  654. package/dist/spinner/index.d.ts +1 -21
  655. package/dist/spinner/index.js +2 -139
  656. package/dist/spinner/index.js.map +1 -1
  657. package/dist/spinner/index.mjs +3 -7
  658. package/dist/spinner/index.mjs.map +1 -1
  659. package/dist/stepper/Stepper.d.ts +9 -0
  660. package/dist/stepper/StepperButton.d.ts +14 -0
  661. package/dist/stepper/StepperInput.d.ts +7 -0
  662. package/dist/stepper/index.d.ts +9 -81
  663. package/dist/stepper/index.js +8 -1847
  664. package/dist/stepper/index.js.map +1 -1
  665. package/dist/stepper/index.mjs +2325 -197
  666. package/dist/stepper/index.mjs.map +1 -1
  667. package/dist/stepper/types.d.ts +46 -0
  668. package/dist/stepper/useStepper.d.ts +2 -0
  669. package/dist/switch/Switch.d.ts +6 -0
  670. package/dist/switch/{index.d.mts → SwitchInput.d.ts} +4 -17
  671. package/dist/switch/SwitchInput.styles.d.ts +16 -0
  672. package/dist/switch/SwitchLabel.d.ts +17 -0
  673. package/dist/switch/SwitchLabel.styles.d.ts +5 -0
  674. package/dist/switch/index.d.ts +1 -64
  675. package/dist/switch/index.js +2 -327
  676. package/dist/switch/index.js.map +1 -1
  677. package/dist/switch/index.mjs +213 -130
  678. package/dist/switch/index.mjs.map +1 -1
  679. package/dist/tabs/Tabs.d.ts +24 -0
  680. package/dist/tabs/TabsContent.d.ts +22 -0
  681. package/dist/tabs/TabsContent.styles.d.ts +3 -0
  682. package/dist/tabs/TabsContext.d.ts +7 -0
  683. package/dist/tabs/TabsList.d.ts +20 -0
  684. package/dist/tabs/TabsList.styles.d.ts +3 -0
  685. package/dist/tabs/TabsPopover.d.ts +29 -0
  686. package/dist/tabs/TabsPopoverAbstraction.d.ts +27 -0
  687. package/dist/tabs/TabsRoot.styles.d.ts +1 -0
  688. package/dist/tabs/TabsTrigger.d.ts +41 -0
  689. package/dist/tabs/TabsTrigger.styles.d.ts +8 -0
  690. package/dist/tabs/index.d.ts +13 -137
  691. package/dist/tabs/index.js +2 -1830
  692. package/dist/tabs/index.js.map +1 -1
  693. package/dist/tabs/index.mjs +374 -350
  694. package/dist/tabs/index.mjs.map +1 -1
  695. package/dist/tabs/useResizeObserver.d.ts +8 -0
  696. package/dist/tag/Tag.d.ts +17 -0
  697. package/dist/tag/Tag.styles.d.ts +8 -0
  698. package/dist/tag/index.d.ts +1 -29
  699. package/dist/tag/index.js +2 -283
  700. package/dist/tag/index.js.map +1 -1
  701. package/dist/tag/index.mjs +66 -90
  702. package/dist/tag/index.mjs.map +1 -1
  703. package/dist/tag/variants/filled.d.ts +41 -0
  704. package/dist/tag/variants/index.d.ts +3 -0
  705. package/dist/tag/variants/outlined.d.ts +37 -0
  706. package/dist/tag/variants/tinted.d.ts +37 -0
  707. package/dist/text-link/TextLink.d.ts +16 -0
  708. package/dist/text-link/index.d.ts +1 -20
  709. package/dist/text-link/index.js +2 -100
  710. package/dist/text-link/index.js.map +1 -1
  711. package/dist/text-link/index.mjs +3 -6
  712. package/dist/text-link/index.mjs.map +1 -1
  713. package/dist/textarea/Textarea.d.ts +14 -0
  714. package/dist/textarea/TextareaClearButton.d.ts +10 -0
  715. package/dist/textarea/TextareaGroup.d.ts +6 -0
  716. package/dist/textarea/TextareaLeadingIcon.d.ts +7 -0
  717. package/dist/textarea/TextareaTrailingIcon.d.ts +7 -0
  718. package/dist/textarea/index.d.ts +10 -53
  719. package/dist/textarea/index.js +2 -797
  720. package/dist/textarea/index.js.map +1 -1
  721. package/dist/textarea/index.mjs +50 -83
  722. package/dist/textarea/index.mjs.map +1 -1
  723. package/dist/toast/Toast.d.ts +4 -0
  724. package/dist/toast/Toast.styles.d.ts +10 -0
  725. package/dist/toast/index.d.ts +10 -53
  726. package/dist/toast/index.js +2 -1454
  727. package/dist/toast/index.js.map +1 -1
  728. package/dist/toast/index.mjs +1016 -208
  729. package/dist/toast/index.mjs.map +1 -1
  730. package/dist/toast/types.d.ts +41 -0
  731. package/dist/toast/useRenderSlot.d.ts +3 -0
  732. package/dist/toast/useToastManager.d.ts +2 -0
  733. package/dist/useCollapsiblePanel-D1dCo0lf.js +4 -0
  734. package/dist/useCollapsiblePanel-D1dCo0lf.js.map +1 -0
  735. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs +287 -0
  736. package/dist/useCollapsiblePanel-kbMNl4Z4.mjs.map +1 -0
  737. package/dist/useFocusWithin-CFNEka2I.js +2 -0
  738. package/dist/useFocusWithin-CFNEka2I.js.map +1 -0
  739. package/dist/useFocusWithin-CoL4390f.mjs +796 -0
  740. package/dist/useFocusWithin-CoL4390f.mjs.map +1 -0
  741. package/dist/useOpenChangeComplete-Dk-u_f2y.js +2 -0
  742. package/dist/useOpenChangeComplete-Dk-u_f2y.js.map +1 -0
  743. package/dist/useOpenChangeComplete-RUbg6RBw.mjs +582 -0
  744. package/dist/useOpenChangeComplete-RUbg6RBw.mjs.map +1 -0
  745. package/dist/useTransitionStatus-CktVVKxz.mjs +46 -0
  746. package/dist/useTransitionStatus-CktVVKxz.mjs.map +1 -0
  747. package/dist/useTransitionStatus-CqbEyvIj.js +2 -0
  748. package/dist/useTransitionStatus-CqbEyvIj.js.map +1 -0
  749. package/dist/visually-hidden/VisuallyHidden.d.ts +12 -0
  750. package/dist/visually-hidden/index.d.ts +1 -16
  751. package/dist/visually-hidden/index.js +2 -67
  752. package/dist/visually-hidden/index.js.map +1 -1
  753. package/dist/visually-hidden/index.mjs +3 -6
  754. package/dist/visually-hidden/index.mjs.map +1 -1
  755. package/package.json +6 -7
  756. package/dist/Input-N8AWWSmt.d.mts +0 -41
  757. package/dist/Input-N8AWWSmt.d.ts +0 -41
  758. package/dist/InputTrailingIcon-BBp7sE6D.d.mts +0 -20
  759. package/dist/InputTrailingIcon-ZZx8PoJy.d.ts +0 -20
  760. package/dist/LabelRequiredIndicator-DRnCzHMU.d.mts +0 -19
  761. package/dist/LabelRequiredIndicator-DRnCzHMU.d.ts +0 -19
  762. package/dist/accordion/index.d.mts +0 -73
  763. package/dist/alert-dialog/index.d.mts +0 -159
  764. package/dist/avatar/index.d.mts +0 -66
  765. package/dist/badge/index.d.mts +0 -47
  766. package/dist/breadcrumb/index.d.mts +0 -64
  767. package/dist/button/index.d.mts +0 -41
  768. package/dist/card/index.d.mts +0 -61
  769. package/dist/checkbox/index.d.mts +0 -120
  770. package/dist/chip/index.d.mts +0 -97
  771. package/dist/chunk-2YM6GKWW.mjs.map +0 -1
  772. package/dist/chunk-6QCEPQ3U.mjs +0 -26
  773. package/dist/chunk-6QCEPQ3U.mjs.map +0 -1
  774. package/dist/chunk-7EWSMIZU.mjs +0 -214
  775. package/dist/chunk-7EWSMIZU.mjs.map +0 -1
  776. package/dist/chunk-DCXWGQVZ.mjs +0 -53
  777. package/dist/chunk-DCXWGQVZ.mjs.map +0 -1
  778. package/dist/chunk-GAK4SC2F.mjs.map +0 -1
  779. package/dist/chunk-GPJMLIHC.mjs +0 -308
  780. package/dist/chunk-GPJMLIHC.mjs.map +0 -1
  781. package/dist/chunk-HLXYG643.mjs +0 -52
  782. package/dist/chunk-HLXYG643.mjs.map +0 -1
  783. package/dist/chunk-KEGAAGJW.mjs +0 -36
  784. package/dist/chunk-KEGAAGJW.mjs.map +0 -1
  785. package/dist/chunk-RKPP7ZOK.mjs.map +0 -1
  786. package/dist/chunk-UMUMFMFB.mjs +0 -68
  787. package/dist/chunk-UMUMFMFB.mjs.map +0 -1
  788. package/dist/chunk-VBX7BTNU.mjs +0 -614
  789. package/dist/chunk-VBX7BTNU.mjs.map +0 -1
  790. package/dist/chunk-XZ47F6TP.mjs.map +0 -1
  791. package/dist/collapsible/index.d.mts +0 -43
  792. package/dist/combobox/index.d.mts +0 -287
  793. package/dist/dialog/index.d.mts +0 -166
  794. package/dist/divider/index.d.mts +0 -61
  795. package/dist/docgen.json +0 -47767
  796. package/dist/drawer/index.d.mts +0 -152
  797. package/dist/dropdown/index.d.mts +0 -233
  798. package/dist/file-upload/index.d.mts +0 -270
  799. package/dist/form-field/index.d.mts +0 -186
  800. package/dist/icon/index.d.mts +0 -28
  801. package/dist/icon-button/index.d.mts +0 -16
  802. package/dist/index-Cno_GFuW.d.mts +0 -93
  803. package/dist/index-Cno_GFuW.d.ts +0 -93
  804. package/dist/input/index.d.mts +0 -78
  805. package/dist/kbd/index.d.mts +0 -9
  806. package/dist/label/index.d.mts +0 -11
  807. package/dist/link-box/index.d.mts +0 -34
  808. package/dist/pagination/index.d.mts +0 -143
  809. package/dist/popover/index.d.mts +0 -6
  810. package/dist/progress/index.d.mts +0 -52
  811. package/dist/progress-tracker/index.d.mts +0 -80
  812. package/dist/radio-group/index.d.mts +0 -100
  813. package/dist/rating/index.d.mts +0 -78
  814. package/dist/scrolling-list/index.d.mts +0 -118
  815. package/dist/select/index.d.mts +0 -167
  816. package/dist/skeleton/index.d.mts +0 -67
  817. package/dist/slider/index.d.mts +0 -97
  818. package/dist/slot/index.d.mts +0 -16
  819. package/dist/snackbar/index.d.mts +0 -158
  820. package/dist/spinner/index.d.mts +0 -21
  821. package/dist/stepper/index.d.mts +0 -81
  822. package/dist/tabs/index.d.mts +0 -137
  823. package/dist/tag/index.d.mts +0 -29
  824. package/dist/text-link/index.d.mts +0 -20
  825. package/dist/textarea/index.d.mts +0 -57
  826. package/dist/toast/index.d.mts +0 -63
  827. package/dist/visually-hidden/index.d.mts +0 -16
@@ -0,0 +1,3038 @@
1
+ import Ue, { useRef as ie, useEffect as se, useMemo as Oe, useCallback as z, useLayoutEffect as Tr, useReducer as Pr, cloneElement as Rr, Component as Mr } from "react";
2
+ import { _ as qe } from "./index-D_lWkK39.mjs";
3
+ function Nr(e) {
4
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
+ }
6
+ function de(e, n) {
7
+ if (e == null) return {};
8
+ var o = {};
9
+ for (var i in e) if ({}.hasOwnProperty.call(e, i)) {
10
+ if (n.indexOf(i) !== -1) continue;
11
+ o[i] = e[i];
12
+ }
13
+ return o;
14
+ }
15
+ function F() {
16
+ return F = Object.assign ? Object.assign.bind() : function(e) {
17
+ for (var n = 1; n < arguments.length; n++) {
18
+ var o = arguments[n];
19
+ for (var i in o) ({}).hasOwnProperty.call(o, i) && (e[i] = o[i]);
20
+ }
21
+ return e;
22
+ }, F.apply(null, arguments);
23
+ }
24
+ function lt(e, n) {
25
+ return lt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, i) {
26
+ return o.__proto__ = i, o;
27
+ }, lt(e, n);
28
+ }
29
+ function kr(e, n) {
30
+ e.prototype = Object.create(n.prototype), e.prototype.constructor = e, lt(e, n);
31
+ }
32
+ var ke = { exports: {} }, Ve = { exports: {} }, J = {};
33
+ /** @license React v16.13.1
34
+ * react-is.production.min.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ */
41
+ var en;
42
+ function Vr() {
43
+ if (en) return J;
44
+ en = 1;
45
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, T = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
46
+ function p(l) {
47
+ if (typeof l == "object" && l !== null) {
48
+ var M = l.$$typeof;
49
+ switch (M) {
50
+ case n:
51
+ switch (l = l.type, l) {
52
+ case a:
53
+ case h:
54
+ case i:
55
+ case t:
56
+ case r:
57
+ case w:
58
+ return l;
59
+ default:
60
+ switch (l = l && l.$$typeof, l) {
61
+ case s:
62
+ case b:
63
+ case $:
64
+ case C:
65
+ case u:
66
+ return l;
67
+ default:
68
+ return M;
69
+ }
70
+ }
71
+ case o:
72
+ return M;
73
+ }
74
+ }
75
+ }
76
+ function f(l) {
77
+ return p(l) === h;
78
+ }
79
+ return J.AsyncMode = a, J.ConcurrentMode = h, J.ContextConsumer = s, J.ContextProvider = u, J.Element = n, J.ForwardRef = b, J.Fragment = i, J.Lazy = $, J.Memo = C, J.Portal = o, J.Profiler = t, J.StrictMode = r, J.Suspense = w, J.isAsyncMode = function(l) {
80
+ return f(l) || p(l) === a;
81
+ }, J.isConcurrentMode = f, J.isContextConsumer = function(l) {
82
+ return p(l) === s;
83
+ }, J.isContextProvider = function(l) {
84
+ return p(l) === u;
85
+ }, J.isElement = function(l) {
86
+ return typeof l == "object" && l !== null && l.$$typeof === n;
87
+ }, J.isForwardRef = function(l) {
88
+ return p(l) === b;
89
+ }, J.isFragment = function(l) {
90
+ return p(l) === i;
91
+ }, J.isLazy = function(l) {
92
+ return p(l) === $;
93
+ }, J.isMemo = function(l) {
94
+ return p(l) === C;
95
+ }, J.isPortal = function(l) {
96
+ return p(l) === o;
97
+ }, J.isProfiler = function(l) {
98
+ return p(l) === t;
99
+ }, J.isStrictMode = function(l) {
100
+ return p(l) === r;
101
+ }, J.isSuspense = function(l) {
102
+ return p(l) === w;
103
+ }, J.isValidElementType = function(l) {
104
+ return typeof l == "string" || typeof l == "function" || l === i || l === h || l === t || l === r || l === w || l === x || typeof l == "object" && l !== null && (l.$$typeof === $ || l.$$typeof === C || l.$$typeof === u || l.$$typeof === s || l.$$typeof === b || l.$$typeof === g || l.$$typeof === L || l.$$typeof === d || l.$$typeof === T);
105
+ }, J.typeOf = p, J;
106
+ }
107
+ var Z = {};
108
+ /** @license React v16.13.1
109
+ * react-is.development.js
110
+ *
111
+ * Copyright (c) Facebook, Inc. and its affiliates.
112
+ *
113
+ * This source code is licensed under the MIT license found in the
114
+ * LICENSE file in the root directory of this source tree.
115
+ */
116
+ var tn;
117
+ function Kr() {
118
+ return tn || (tn = 1, process.env.NODE_ENV !== "production" && (function() {
119
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, a = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, b = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, T = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, d = e ? Symbol.for("react.scope") : 60119;
120
+ function p(E) {
121
+ return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
122
+ E === i || E === h || E === t || E === r || E === w || E === x || typeof E == "object" && E !== null && (E.$$typeof === $ || E.$$typeof === C || E.$$typeof === u || E.$$typeof === s || E.$$typeof === b || E.$$typeof === g || E.$$typeof === L || E.$$typeof === d || E.$$typeof === T);
123
+ }
124
+ function f(E) {
125
+ if (typeof E == "object" && E !== null) {
126
+ var ne = E.$$typeof;
127
+ switch (ne) {
128
+ case n:
129
+ var S = E.type;
130
+ switch (S) {
131
+ case a:
132
+ case h:
133
+ case i:
134
+ case t:
135
+ case r:
136
+ case w:
137
+ return S;
138
+ default:
139
+ var le = S && S.$$typeof;
140
+ switch (le) {
141
+ case s:
142
+ case b:
143
+ case $:
144
+ case C:
145
+ case u:
146
+ return le;
147
+ default:
148
+ return ne;
149
+ }
150
+ }
151
+ case o:
152
+ return ne;
153
+ }
154
+ }
155
+ }
156
+ var l = a, M = h, Y = s, V = u, N = n, k = b, K = i, q = $, G = C, A = o, re = t, te = r, ue = w, B = !1;
157
+ function j(E) {
158
+ return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), c(E) || f(E) === a;
159
+ }
160
+ function c(E) {
161
+ return f(E) === h;
162
+ }
163
+ function _(E) {
164
+ return f(E) === s;
165
+ }
166
+ function I(E) {
167
+ return f(E) === u;
168
+ }
169
+ function m(E) {
170
+ return typeof E == "object" && E !== null && E.$$typeof === n;
171
+ }
172
+ function v(E) {
173
+ return f(E) === b;
174
+ }
175
+ function D(E) {
176
+ return f(E) === i;
177
+ }
178
+ function O(E) {
179
+ return f(E) === $;
180
+ }
181
+ function P(E) {
182
+ return f(E) === C;
183
+ }
184
+ function R(E) {
185
+ return f(E) === o;
186
+ }
187
+ function U(E) {
188
+ return f(E) === t;
189
+ }
190
+ function H(E) {
191
+ return f(E) === r;
192
+ }
193
+ function W(E) {
194
+ return f(E) === w;
195
+ }
196
+ Z.AsyncMode = l, Z.ConcurrentMode = M, Z.ContextConsumer = Y, Z.ContextProvider = V, Z.Element = N, Z.ForwardRef = k, Z.Fragment = K, Z.Lazy = q, Z.Memo = G, Z.Portal = A, Z.Profiler = re, Z.StrictMode = te, Z.Suspense = ue, Z.isAsyncMode = j, Z.isConcurrentMode = c, Z.isContextConsumer = _, Z.isContextProvider = I, Z.isElement = m, Z.isForwardRef = v, Z.isFragment = D, Z.isLazy = O, Z.isMemo = P, Z.isPortal = R, Z.isProfiler = U, Z.isStrictMode = H, Z.isSuspense = W, Z.isValidElementType = p, Z.typeOf = f;
197
+ })()), Z;
198
+ }
199
+ var nn;
200
+ function Dn() {
201
+ return nn || (nn = 1, process.env.NODE_ENV === "production" ? Ve.exports = Vr() : Ve.exports = Kr()), Ve.exports;
202
+ }
203
+ /*
204
+ object-assign
205
+ (c) Sindre Sorhus
206
+ @license MIT
207
+ */
208
+ var rt, rn;
209
+ function Ar() {
210
+ if (rn) return rt;
211
+ rn = 1;
212
+ var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
213
+ function i(t) {
214
+ if (t == null)
215
+ throw new TypeError("Object.assign cannot be called with null or undefined");
216
+ return Object(t);
217
+ }
218
+ function r() {
219
+ try {
220
+ if (!Object.assign)
221
+ return !1;
222
+ var t = new String("abc");
223
+ if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
224
+ return !1;
225
+ for (var u = {}, s = 0; s < 10; s++)
226
+ u["_" + String.fromCharCode(s)] = s;
227
+ var a = Object.getOwnPropertyNames(u).map(function(b) {
228
+ return u[b];
229
+ });
230
+ if (a.join("") !== "0123456789")
231
+ return !1;
232
+ var h = {};
233
+ return "abcdefghijklmnopqrst".split("").forEach(function(b) {
234
+ h[b] = b;
235
+ }), Object.keys(Object.assign({}, h)).join("") === "abcdefghijklmnopqrst";
236
+ } catch {
237
+ return !1;
238
+ }
239
+ }
240
+ return rt = r() ? Object.assign : function(t, u) {
241
+ for (var s, a = i(t), h, b = 1; b < arguments.length; b++) {
242
+ s = Object(arguments[b]);
243
+ for (var w in s)
244
+ n.call(s, w) && (a[w] = s[w]);
245
+ if (e) {
246
+ h = e(s);
247
+ for (var x = 0; x < h.length; x++)
248
+ o.call(s, h[x]) && (a[h[x]] = s[h[x]]);
249
+ }
250
+ }
251
+ return a;
252
+ }, rt;
253
+ }
254
+ var ot, on;
255
+ function ft() {
256
+ if (on) return ot;
257
+ on = 1;
258
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
259
+ return ot = e, ot;
260
+ }
261
+ var it, un;
262
+ function On() {
263
+ return un || (un = 1, it = Function.call.bind(Object.prototype.hasOwnProperty)), it;
264
+ }
265
+ var ut, sn;
266
+ function Hr() {
267
+ if (sn) return ut;
268
+ sn = 1;
269
+ var e = function() {
270
+ };
271
+ if (process.env.NODE_ENV !== "production") {
272
+ var n = /* @__PURE__ */ ft(), o = {}, i = /* @__PURE__ */ On();
273
+ e = function(t) {
274
+ var u = "Warning: " + t;
275
+ typeof console < "u" && console.error(u);
276
+ try {
277
+ throw new Error(u);
278
+ } catch {
279
+ }
280
+ };
281
+ }
282
+ function r(t, u, s, a, h) {
283
+ if (process.env.NODE_ENV !== "production") {
284
+ for (var b in t)
285
+ if (i(t, b)) {
286
+ var w;
287
+ try {
288
+ if (typeof t[b] != "function") {
289
+ var x = Error(
290
+ (a || "React class") + ": " + s + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
291
+ );
292
+ throw x.name = "Invariant Violation", x;
293
+ }
294
+ w = t[b](u, b, a, s, null, n);
295
+ } catch ($) {
296
+ w = $;
297
+ }
298
+ if (w && !(w instanceof Error) && e(
299
+ (a || "React class") + ": type specification of " + s + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof w + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
300
+ ), w instanceof Error && !(w.message in o)) {
301
+ o[w.message] = !0;
302
+ var C = h ? h() : "";
303
+ e(
304
+ "Failed " + s + " type: " + w.message + (C ?? "")
305
+ );
306
+ }
307
+ }
308
+ }
309
+ }
310
+ return r.resetWarningCache = function() {
311
+ process.env.NODE_ENV !== "production" && (o = {});
312
+ }, ut = r, ut;
313
+ }
314
+ var st, an;
315
+ function $r() {
316
+ if (an) return st;
317
+ an = 1;
318
+ var e = Dn(), n = Ar(), o = /* @__PURE__ */ ft(), i = /* @__PURE__ */ On(), r = /* @__PURE__ */ Hr(), t = function() {
319
+ };
320
+ process.env.NODE_ENV !== "production" && (t = function(s) {
321
+ var a = "Warning: " + s;
322
+ typeof console < "u" && console.error(a);
323
+ try {
324
+ throw new Error(a);
325
+ } catch {
326
+ }
327
+ });
328
+ function u() {
329
+ return null;
330
+ }
331
+ return st = function(s, a) {
332
+ var h = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
333
+ function w(c) {
334
+ var _ = c && (h && c[h] || c[b]);
335
+ if (typeof _ == "function")
336
+ return _;
337
+ }
338
+ var x = "<<anonymous>>", C = {
339
+ array: L("array"),
340
+ bigint: L("bigint"),
341
+ bool: L("boolean"),
342
+ func: L("function"),
343
+ number: L("number"),
344
+ object: L("object"),
345
+ string: L("string"),
346
+ symbol: L("symbol"),
347
+ any: d(),
348
+ arrayOf: p,
349
+ element: f(),
350
+ elementType: l(),
351
+ instanceOf: M,
352
+ node: k(),
353
+ objectOf: V,
354
+ oneOf: Y,
355
+ oneOfType: N,
356
+ shape: q,
357
+ exact: G
358
+ };
359
+ function $(c, _) {
360
+ return c === _ ? c !== 0 || 1 / c === 1 / _ : c !== c && _ !== _;
361
+ }
362
+ function T(c, _) {
363
+ this.message = c, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
364
+ }
365
+ T.prototype = Error.prototype;
366
+ function g(c) {
367
+ if (process.env.NODE_ENV !== "production")
368
+ var _ = {}, I = 0;
369
+ function m(D, O, P, R, U, H, W) {
370
+ if (R = R || x, H = H || P, W !== o) {
371
+ if (a) {
372
+ var E = new Error(
373
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
374
+ );
375
+ throw E.name = "Invariant Violation", E;
376
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
377
+ var ne = R + ":" + P;
378
+ !_[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
379
+ I < 3 && (t(
380
+ "You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
381
+ ), _[ne] = !0, I++);
382
+ }
383
+ }
384
+ return O[P] == null ? D ? O[P] === null ? new T("The " + U + " `" + H + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new T("The " + U + " `" + H + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : c(O, P, R, U, H);
385
+ }
386
+ var v = m.bind(null, !1);
387
+ return v.isRequired = m.bind(null, !0), v;
388
+ }
389
+ function L(c) {
390
+ function _(I, m, v, D, O, P) {
391
+ var R = I[m], U = te(R);
392
+ if (U !== c) {
393
+ var H = ue(R);
394
+ return new T(
395
+ "Invalid " + D + " `" + O + "` of type " + ("`" + H + "` supplied to `" + v + "`, expected ") + ("`" + c + "`."),
396
+ { expectedType: c }
397
+ );
398
+ }
399
+ return null;
400
+ }
401
+ return g(_);
402
+ }
403
+ function d() {
404
+ return g(u);
405
+ }
406
+ function p(c) {
407
+ function _(I, m, v, D, O) {
408
+ if (typeof c != "function")
409
+ return new T("Property `" + O + "` of component `" + v + "` has invalid PropType notation inside arrayOf.");
410
+ var P = I[m];
411
+ if (!Array.isArray(P)) {
412
+ var R = te(P);
413
+ return new T("Invalid " + D + " `" + O + "` of type " + ("`" + R + "` supplied to `" + v + "`, expected an array."));
414
+ }
415
+ for (var U = 0; U < P.length; U++) {
416
+ var H = c(P, U, v, D, O + "[" + U + "]", o);
417
+ if (H instanceof Error)
418
+ return H;
419
+ }
420
+ return null;
421
+ }
422
+ return g(_);
423
+ }
424
+ function f() {
425
+ function c(_, I, m, v, D) {
426
+ var O = _[I];
427
+ if (!s(O)) {
428
+ var P = te(O);
429
+ return new T("Invalid " + v + " `" + D + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected a single ReactElement."));
430
+ }
431
+ return null;
432
+ }
433
+ return g(c);
434
+ }
435
+ function l() {
436
+ function c(_, I, m, v, D) {
437
+ var O = _[I];
438
+ if (!e.isValidElementType(O)) {
439
+ var P = te(O);
440
+ return new T("Invalid " + v + " `" + D + "` of type " + ("`" + P + "` supplied to `" + m + "`, expected a single ReactElement type."));
441
+ }
442
+ return null;
443
+ }
444
+ return g(c);
445
+ }
446
+ function M(c) {
447
+ function _(I, m, v, D, O) {
448
+ if (!(I[m] instanceof c)) {
449
+ var P = c.name || x, R = j(I[m]);
450
+ return new T("Invalid " + D + " `" + O + "` of type " + ("`" + R + "` supplied to `" + v + "`, expected ") + ("instance of `" + P + "`."));
451
+ }
452
+ return null;
453
+ }
454
+ return g(_);
455
+ }
456
+ function Y(c) {
457
+ if (!Array.isArray(c))
458
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
459
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
460
+ ) : t("Invalid argument supplied to oneOf, expected an array.")), u;
461
+ function _(I, m, v, D, O) {
462
+ for (var P = I[m], R = 0; R < c.length; R++)
463
+ if ($(P, c[R]))
464
+ return null;
465
+ var U = JSON.stringify(c, function(W, E) {
466
+ var ne = ue(E);
467
+ return ne === "symbol" ? String(E) : E;
468
+ });
469
+ return new T("Invalid " + D + " `" + O + "` of value `" + String(P) + "` " + ("supplied to `" + v + "`, expected one of " + U + "."));
470
+ }
471
+ return g(_);
472
+ }
473
+ function V(c) {
474
+ function _(I, m, v, D, O) {
475
+ if (typeof c != "function")
476
+ return new T("Property `" + O + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
477
+ var P = I[m], R = te(P);
478
+ if (R !== "object")
479
+ return new T("Invalid " + D + " `" + O + "` of type " + ("`" + R + "` supplied to `" + v + "`, expected an object."));
480
+ for (var U in P)
481
+ if (i(P, U)) {
482
+ var H = c(P, U, v, D, O + "." + U, o);
483
+ if (H instanceof Error)
484
+ return H;
485
+ }
486
+ return null;
487
+ }
488
+ return g(_);
489
+ }
490
+ function N(c) {
491
+ if (!Array.isArray(c))
492
+ return process.env.NODE_ENV !== "production" && t("Invalid argument supplied to oneOfType, expected an instance of array."), u;
493
+ for (var _ = 0; _ < c.length; _++) {
494
+ var I = c[_];
495
+ if (typeof I != "function")
496
+ return t(
497
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(I) + " at index " + _ + "."
498
+ ), u;
499
+ }
500
+ function m(v, D, O, P, R) {
501
+ for (var U = [], H = 0; H < c.length; H++) {
502
+ var W = c[H], E = W(v, D, O, P, R, o);
503
+ if (E == null)
504
+ return null;
505
+ E.data && i(E.data, "expectedType") && U.push(E.data.expectedType);
506
+ }
507
+ var ne = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
508
+ return new T("Invalid " + P + " `" + R + "` supplied to " + ("`" + O + "`" + ne + "."));
509
+ }
510
+ return g(m);
511
+ }
512
+ function k() {
513
+ function c(_, I, m, v, D) {
514
+ return A(_[I]) ? null : new T("Invalid " + v + " `" + D + "` supplied to " + ("`" + m + "`, expected a ReactNode."));
515
+ }
516
+ return g(c);
517
+ }
518
+ function K(c, _, I, m, v) {
519
+ return new T(
520
+ (c || "React class") + ": " + _ + " type `" + I + "." + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
521
+ );
522
+ }
523
+ function q(c) {
524
+ function _(I, m, v, D, O) {
525
+ var P = I[m], R = te(P);
526
+ if (R !== "object")
527
+ return new T("Invalid " + D + " `" + O + "` of type `" + R + "` " + ("supplied to `" + v + "`, expected `object`."));
528
+ for (var U in c) {
529
+ var H = c[U];
530
+ if (typeof H != "function")
531
+ return K(v, D, O, U, ue(H));
532
+ var W = H(P, U, v, D, O + "." + U, o);
533
+ if (W)
534
+ return W;
535
+ }
536
+ return null;
537
+ }
538
+ return g(_);
539
+ }
540
+ function G(c) {
541
+ function _(I, m, v, D, O) {
542
+ var P = I[m], R = te(P);
543
+ if (R !== "object")
544
+ return new T("Invalid " + D + " `" + O + "` of type `" + R + "` " + ("supplied to `" + v + "`, expected `object`."));
545
+ var U = n({}, I[m], c);
546
+ for (var H in U) {
547
+ var W = c[H];
548
+ if (i(c, H) && typeof W != "function")
549
+ return K(v, D, O, H, ue(W));
550
+ if (!W)
551
+ return new T(
552
+ "Invalid " + D + " `" + O + "` key `" + H + "` supplied to `" + v + "`.\nBad object: " + JSON.stringify(I[m], null, " ") + `
553
+ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
554
+ );
555
+ var E = W(P, H, v, D, O + "." + H, o);
556
+ if (E)
557
+ return E;
558
+ }
559
+ return null;
560
+ }
561
+ return g(_);
562
+ }
563
+ function A(c) {
564
+ switch (typeof c) {
565
+ case "number":
566
+ case "string":
567
+ case "undefined":
568
+ return !0;
569
+ case "boolean":
570
+ return !c;
571
+ case "object":
572
+ if (Array.isArray(c))
573
+ return c.every(A);
574
+ if (c === null || s(c))
575
+ return !0;
576
+ var _ = w(c);
577
+ if (_) {
578
+ var I = _.call(c), m;
579
+ if (_ !== c.entries) {
580
+ for (; !(m = I.next()).done; )
581
+ if (!A(m.value))
582
+ return !1;
583
+ } else
584
+ for (; !(m = I.next()).done; ) {
585
+ var v = m.value;
586
+ if (v && !A(v[1]))
587
+ return !1;
588
+ }
589
+ } else
590
+ return !1;
591
+ return !0;
592
+ default:
593
+ return !1;
594
+ }
595
+ }
596
+ function re(c, _) {
597
+ return c === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1;
598
+ }
599
+ function te(c) {
600
+ var _ = typeof c;
601
+ return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : re(_, c) ? "symbol" : _;
602
+ }
603
+ function ue(c) {
604
+ if (typeof c > "u" || c === null)
605
+ return "" + c;
606
+ var _ = te(c);
607
+ if (_ === "object") {
608
+ if (c instanceof Date)
609
+ return "date";
610
+ if (c instanceof RegExp)
611
+ return "regexp";
612
+ }
613
+ return _;
614
+ }
615
+ function B(c) {
616
+ var _ = ue(c);
617
+ switch (_) {
618
+ case "array":
619
+ case "object":
620
+ return "an " + _;
621
+ case "boolean":
622
+ case "date":
623
+ case "regexp":
624
+ return "a " + _;
625
+ default:
626
+ return _;
627
+ }
628
+ }
629
+ function j(c) {
630
+ return !c.constructor || !c.constructor.name ? x : c.constructor.name;
631
+ }
632
+ return C.checkPropTypes = r, C.resetWarningCache = r.resetWarningCache, C.PropTypes = C, C;
633
+ }, st;
634
+ }
635
+ var at, ln;
636
+ function Br() {
637
+ if (ln) return at;
638
+ ln = 1;
639
+ var e = /* @__PURE__ */ ft();
640
+ function n() {
641
+ }
642
+ function o() {
643
+ }
644
+ return o.resetWarningCache = n, at = function() {
645
+ function i(u, s, a, h, b, w) {
646
+ if (w !== e) {
647
+ var x = new Error(
648
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
649
+ );
650
+ throw x.name = "Invariant Violation", x;
651
+ }
652
+ }
653
+ i.isRequired = i;
654
+ function r() {
655
+ return i;
656
+ }
657
+ var t = {
658
+ array: i,
659
+ bigint: i,
660
+ bool: i,
661
+ func: i,
662
+ number: i,
663
+ object: i,
664
+ string: i,
665
+ symbol: i,
666
+ any: i,
667
+ arrayOf: r,
668
+ element: i,
669
+ elementType: i,
670
+ instanceOf: r,
671
+ node: i,
672
+ objectOf: r,
673
+ oneOf: r,
674
+ oneOfType: r,
675
+ shape: r,
676
+ exact: r,
677
+ checkPropTypes: o,
678
+ resetWarningCache: n
679
+ };
680
+ return t.PropTypes = t, t;
681
+ }, at;
682
+ }
683
+ var cn;
684
+ function Fr() {
685
+ if (cn) return ke.exports;
686
+ if (cn = 1, process.env.NODE_ENV !== "production") {
687
+ var e = Dn(), n = !0;
688
+ ke.exports = /* @__PURE__ */ $r()(e.isElement, n);
689
+ } else
690
+ ke.exports = /* @__PURE__ */ Br()();
691
+ return ke.exports;
692
+ }
693
+ var Lr = /* @__PURE__ */ Fr();
694
+ const y = /* @__PURE__ */ Nr(Lr);
695
+ var Ke = { exports: {} }, Q = {};
696
+ /**
697
+ * @license React
698
+ * react-is.production.min.js
699
+ *
700
+ * Copyright (c) Facebook, Inc. and its affiliates.
701
+ *
702
+ * This source code is licensed under the MIT license found in the
703
+ * LICENSE file in the root directory of this source tree.
704
+ */
705
+ var dn;
706
+ function jr() {
707
+ if (dn) return Q;
708
+ dn = 1;
709
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), a = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $;
710
+ $ = Symbol.for("react.module.reference");
711
+ function T(g) {
712
+ if (typeof g == "object" && g !== null) {
713
+ var L = g.$$typeof;
714
+ switch (L) {
715
+ case e:
716
+ switch (g = g.type, g) {
717
+ case o:
718
+ case r:
719
+ case i:
720
+ case h:
721
+ case b:
722
+ return g;
723
+ default:
724
+ switch (g = g && g.$$typeof, g) {
725
+ case s:
726
+ case u:
727
+ case a:
728
+ case x:
729
+ case w:
730
+ case t:
731
+ return g;
732
+ default:
733
+ return L;
734
+ }
735
+ }
736
+ case n:
737
+ return L;
738
+ }
739
+ }
740
+ }
741
+ return Q.ContextConsumer = u, Q.ContextProvider = t, Q.Element = e, Q.ForwardRef = a, Q.Fragment = o, Q.Lazy = x, Q.Memo = w, Q.Portal = n, Q.Profiler = r, Q.StrictMode = i, Q.Suspense = h, Q.SuspenseList = b, Q.isAsyncMode = function() {
742
+ return !1;
743
+ }, Q.isConcurrentMode = function() {
744
+ return !1;
745
+ }, Q.isContextConsumer = function(g) {
746
+ return T(g) === u;
747
+ }, Q.isContextProvider = function(g) {
748
+ return T(g) === t;
749
+ }, Q.isElement = function(g) {
750
+ return typeof g == "object" && g !== null && g.$$typeof === e;
751
+ }, Q.isForwardRef = function(g) {
752
+ return T(g) === a;
753
+ }, Q.isFragment = function(g) {
754
+ return T(g) === o;
755
+ }, Q.isLazy = function(g) {
756
+ return T(g) === x;
757
+ }, Q.isMemo = function(g) {
758
+ return T(g) === w;
759
+ }, Q.isPortal = function(g) {
760
+ return T(g) === n;
761
+ }, Q.isProfiler = function(g) {
762
+ return T(g) === r;
763
+ }, Q.isStrictMode = function(g) {
764
+ return T(g) === i;
765
+ }, Q.isSuspense = function(g) {
766
+ return T(g) === h;
767
+ }, Q.isSuspenseList = function(g) {
768
+ return T(g) === b;
769
+ }, Q.isValidElementType = function(g) {
770
+ return typeof g == "string" || typeof g == "function" || g === o || g === r || g === i || g === h || g === b || g === C || typeof g == "object" && g !== null && (g.$$typeof === x || g.$$typeof === w || g.$$typeof === t || g.$$typeof === u || g.$$typeof === a || g.$$typeof === $ || g.getModuleId !== void 0);
771
+ }, Q.typeOf = T, Q;
772
+ }
773
+ var ee = {};
774
+ /**
775
+ * @license React
776
+ * react-is.development.js
777
+ *
778
+ * Copyright (c) Facebook, Inc. and its affiliates.
779
+ *
780
+ * This source code is licensed under the MIT license found in the
781
+ * LICENSE file in the root directory of this source tree.
782
+ */
783
+ var fn;
784
+ function Ur() {
785
+ return fn || (fn = 1, process.env.NODE_ENV !== "production" && (function() {
786
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.server_context"), a = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = !1, T = !1, g = !1, L = !1, d = !1, p;
787
+ p = Symbol.for("react.module.reference");
788
+ function f(S) {
789
+ return !!(typeof S == "string" || typeof S == "function" || S === o || S === r || d || S === i || S === h || S === b || L || S === C || $ || T || g || typeof S == "object" && S !== null && (S.$$typeof === x || S.$$typeof === w || S.$$typeof === t || S.$$typeof === u || S.$$typeof === a || // This needs to include all possible module reference object
790
+ // types supported by any Flight configuration anywhere since
791
+ // we don't know which Flight build this will end up being used
792
+ // with.
793
+ S.$$typeof === p || S.getModuleId !== void 0));
794
+ }
795
+ function l(S) {
796
+ if (typeof S == "object" && S !== null) {
797
+ var le = S.$$typeof;
798
+ switch (le) {
799
+ case e:
800
+ var oe = S.type;
801
+ switch (oe) {
802
+ case o:
803
+ case r:
804
+ case i:
805
+ case h:
806
+ case b:
807
+ return oe;
808
+ default:
809
+ var ae = oe && oe.$$typeof;
810
+ switch (ae) {
811
+ case s:
812
+ case u:
813
+ case a:
814
+ case x:
815
+ case w:
816
+ case t:
817
+ return ae;
818
+ default:
819
+ return le;
820
+ }
821
+ }
822
+ case n:
823
+ return le;
824
+ }
825
+ }
826
+ }
827
+ var M = u, Y = t, V = e, N = a, k = o, K = x, q = w, G = n, A = r, re = i, te = h, ue = b, B = !1, j = !1;
828
+ function c(S) {
829
+ return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
830
+ }
831
+ function _(S) {
832
+ return j || (j = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
833
+ }
834
+ function I(S) {
835
+ return l(S) === u;
836
+ }
837
+ function m(S) {
838
+ return l(S) === t;
839
+ }
840
+ function v(S) {
841
+ return typeof S == "object" && S !== null && S.$$typeof === e;
842
+ }
843
+ function D(S) {
844
+ return l(S) === a;
845
+ }
846
+ function O(S) {
847
+ return l(S) === o;
848
+ }
849
+ function P(S) {
850
+ return l(S) === x;
851
+ }
852
+ function R(S) {
853
+ return l(S) === w;
854
+ }
855
+ function U(S) {
856
+ return l(S) === n;
857
+ }
858
+ function H(S) {
859
+ return l(S) === r;
860
+ }
861
+ function W(S) {
862
+ return l(S) === i;
863
+ }
864
+ function E(S) {
865
+ return l(S) === h;
866
+ }
867
+ function ne(S) {
868
+ return l(S) === b;
869
+ }
870
+ ee.ContextConsumer = M, ee.ContextProvider = Y, ee.Element = V, ee.ForwardRef = N, ee.Fragment = k, ee.Lazy = K, ee.Memo = q, ee.Portal = G, ee.Profiler = A, ee.StrictMode = re, ee.Suspense = te, ee.SuspenseList = ue, ee.isAsyncMode = c, ee.isConcurrentMode = _, ee.isContextConsumer = I, ee.isContextProvider = m, ee.isElement = v, ee.isForwardRef = D, ee.isFragment = O, ee.isLazy = P, ee.isMemo = R, ee.isPortal = U, ee.isProfiler = H, ee.isStrictMode = W, ee.isSuspense = E, ee.isSuspenseList = ne, ee.isValidElementType = f, ee.typeOf = l;
871
+ })()), ee;
872
+ }
873
+ var pn;
874
+ function qr() {
875
+ return pn || (pn = 1, process.env.NODE_ENV === "production" ? Ke.exports = jr() : Ke.exports = Ur()), Ke.exports;
876
+ }
877
+ var gn = qr();
878
+ const vn = (e) => typeof e == "object" && e != null && e.nodeType === 1, hn = (e, n) => (!n || e !== "hidden") && e !== "visible" && e !== "clip", Ae = (e, n) => {
879
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
880
+ const o = getComputedStyle(e, null);
881
+ return hn(o.overflowY, n) || hn(o.overflowX, n) || ((i) => {
882
+ const r = ((t) => {
883
+ if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
884
+ try {
885
+ return t.ownerDocument.defaultView.frameElement;
886
+ } catch {
887
+ return null;
888
+ }
889
+ })(i);
890
+ return !!r && (r.clientHeight < i.scrollHeight || r.clientWidth < i.scrollWidth);
891
+ })(e);
892
+ }
893
+ return !1;
894
+ }, He = (e, n, o, i, r, t, u, s) => t < e && u > n || t > e && u < n ? 0 : t <= e && s <= o || u >= n && s >= o ? t - e - i : u > n && s < o || t < e && s > o ? u - n + r : 0, Yr = (e) => {
895
+ const n = e.parentElement;
896
+ return n ?? (e.getRootNode().host || null);
897
+ }, Wr = (e, n) => {
898
+ var o, i, r, t;
899
+ if (typeof document > "u") return [];
900
+ const { inline: u, boundary: s, skipOverflowHiddenElements: a } = n, h = typeof s == "function" ? s : (G) => G !== s;
901
+ if (!vn(e)) throw new TypeError("Invalid target");
902
+ const b = document.scrollingElement || document.documentElement, w = [];
903
+ let x = e;
904
+ for (; vn(x) && h(x); ) {
905
+ if (x = Yr(x), x === b) {
906
+ w.push(x);
907
+ break;
908
+ }
909
+ x != null && x === document.body && Ae(x) && !Ae(document.documentElement) || x != null && Ae(x, a) && w.push(x);
910
+ }
911
+ const C = (i = (o = window.visualViewport) == null ? void 0 : o.width) != null ? i : innerWidth, $ = (t = (r = window.visualViewport) == null ? void 0 : r.height) != null ? t : innerHeight, { scrollX: T, scrollY: g } = window, { height: L, width: d, top: p, right: f, bottom: l, left: M } = e.getBoundingClientRect(), { top: Y, right: V, left: N } = ((G) => {
912
+ const A = window.getComputedStyle(G);
913
+ return { top: parseFloat(A.scrollMarginTop) || 0, right: parseFloat(A.scrollMarginRight) || 0, bottom: parseFloat(A.scrollMarginBottom) || 0, left: parseFloat(A.scrollMarginLeft) || 0 };
914
+ })(e);
915
+ let k = p - Y, K = u === "center" ? M + d / 2 - N + V : u === "end" ? f + V : M - N;
916
+ const q = [];
917
+ for (let G = 0; G < w.length; G++) {
918
+ const A = w[G], { height: re, width: te, top: ue, right: B, bottom: j, left: c } = A.getBoundingClientRect();
919
+ if (p >= 0 && M >= 0 && l <= $ && f <= C && (A === b && !Ae(A) || p >= ue && l <= j && M >= c && f <= B)) return q;
920
+ const _ = getComputedStyle(A), I = parseInt(_.borderLeftWidth, 10), m = parseInt(_.borderTopWidth, 10), v = parseInt(_.borderRightWidth, 10), D = parseInt(_.borderBottomWidth, 10);
921
+ let O = 0, P = 0;
922
+ const R = "offsetWidth" in A ? A.offsetWidth - A.clientWidth - I - v : 0, U = "offsetHeight" in A ? A.offsetHeight - A.clientHeight - m - D : 0, H = "offsetWidth" in A ? A.offsetWidth === 0 ? 0 : te / A.offsetWidth : 0, W = "offsetHeight" in A ? A.offsetHeight === 0 ? 0 : re / A.offsetHeight : 0;
923
+ if (b === A) O = He(g, g + $, $, m, D, g + k, g + k + L, L), P = u === "start" ? K : u === "center" ? K - C / 2 : u === "end" ? K - C : He(T, T + C, C, I, v, T + K, T + K + d, d), O = Math.max(0, O + g), P = Math.max(0, P + T);
924
+ else {
925
+ O = He(ue, j, re, m, D + U, k, k + L, L), P = u === "start" ? K - c - I : u === "center" ? K - (c + te / 2) + R / 2 : u === "end" ? K - B + v + R : He(c, B, te, I, v + R, K, K + d, d);
926
+ const { scrollLeft: E, scrollTop: ne } = A;
927
+ O = W === 0 ? 0 : Math.max(0, Math.min(ne + O / W, A.scrollHeight - re / W + U)), P = H === 0 ? 0 : Math.max(0, Math.min(E + P / H, A.scrollWidth - te / H + R)), k += ne - O, K += E - P;
928
+ }
929
+ q.push({ el: A, top: O, left: P });
930
+ }
931
+ return q;
932
+ };
933
+ var zr = 0;
934
+ function mn(e) {
935
+ return typeof e == "function" ? e : ce;
936
+ }
937
+ function ce() {
938
+ }
939
+ function Sn(e, n) {
940
+ if (e) {
941
+ var o = Wr(e, {
942
+ boundary: n
943
+ });
944
+ o.forEach(function(i) {
945
+ var r = i.el, t = i.top, u = i.left;
946
+ r.scrollTop = t, r.scrollLeft = u;
947
+ });
948
+ }
949
+ }
950
+ function In(e, n, o) {
951
+ var i = e === n || n instanceof o.Node && e.contains && e.contains(n);
952
+ return i;
953
+ }
954
+ function Qe(e, n) {
955
+ var o;
956
+ function i() {
957
+ o && clearTimeout(o);
958
+ }
959
+ function r() {
960
+ for (var t = arguments.length, u = new Array(t), s = 0; s < t; s++)
961
+ u[s] = arguments[s];
962
+ i(), o = setTimeout(function() {
963
+ o = null, e.apply(void 0, u);
964
+ }, n);
965
+ }
966
+ return r.cancel = i, r;
967
+ }
968
+ function X() {
969
+ for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
970
+ n[o] = arguments[o];
971
+ return function(i) {
972
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
973
+ t[u - 1] = arguments[u];
974
+ return n.some(function(s) {
975
+ return s && s.apply(void 0, [i].concat(t)), i.preventDownshiftDefault || i.hasOwnProperty("nativeEvent") && i.nativeEvent.preventDownshiftDefault;
976
+ });
977
+ };
978
+ }
979
+ function me() {
980
+ for (var e = arguments.length, n = new Array(e), o = 0; o < e; o++)
981
+ n[o] = arguments[o];
982
+ return function(i) {
983
+ n.forEach(function(r) {
984
+ typeof r == "function" ? r(i) : r && (r.current = i);
985
+ });
986
+ };
987
+ }
988
+ function Cn() {
989
+ return String(zr++);
990
+ }
991
+ function Gr(e) {
992
+ var n = e.isOpen, o = e.resultCount, i = e.previousResultCount;
993
+ return n ? o ? o !== i ? o + " result" + (o === 1 ? " is" : "s are") + " available, use up and down arrow keys to navigate. Press Enter key to select." : "" : "No results are available." : "";
994
+ }
995
+ function yn(e, n) {
996
+ return e = Array.isArray(e) ? (
997
+ /* istanbul ignore next (preact) */
998
+ e[0]
999
+ ) : e, !e && n ? n : e;
1000
+ }
1001
+ function Tn(e) {
1002
+ return typeof e.type == "string";
1003
+ }
1004
+ function Pn(e) {
1005
+ return e.props;
1006
+ }
1007
+ function Xr(e, n) {
1008
+ console.error('The property "' + n + '" is required in "' + e + '"');
1009
+ }
1010
+ var Jr = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
1011
+ function $e(e) {
1012
+ e === void 0 && (e = {});
1013
+ var n = {};
1014
+ return Jr.forEach(function(o) {
1015
+ e.hasOwnProperty(o) && (n[o] = e[o]);
1016
+ }), n;
1017
+ }
1018
+ function Re(e, n) {
1019
+ return !e || !n ? e : Object.keys(e).reduce(function(o, i) {
1020
+ return o[i] = Ye(n, i) ? n[i] : e[i], o;
1021
+ }, {});
1022
+ }
1023
+ function Ye(e, n) {
1024
+ return e[n] !== void 0;
1025
+ }
1026
+ function Se(e) {
1027
+ var n = e.key, o = e.keyCode;
1028
+ return o >= 37 && o <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
1029
+ }
1030
+ function Zr(e) {
1031
+ return Object.prototype.toString.call(e) === "[object Object]";
1032
+ }
1033
+ function Ie(e, n, o, i, r) {
1034
+ r === void 0 && (r = !1);
1035
+ var t = o.length;
1036
+ if (t === 0)
1037
+ return -1;
1038
+ var u = t - 1;
1039
+ (typeof e != "number" || e < 0 || e > u) && (e = n > 0 ? -1 : u + 1);
1040
+ var s = e + n;
1041
+ s < 0 ? s = r ? u : 0 : s > u && (s = r ? 0 : u);
1042
+ var a = be(s, n < 0, o, i, r);
1043
+ return a === -1 ? e >= t ? -1 : e : a;
1044
+ }
1045
+ function be(e, n, o, i, r) {
1046
+ r === void 0 && (r = !1);
1047
+ var t = o.length;
1048
+ if (n) {
1049
+ for (var u = e; u >= 0; u--)
1050
+ if (!i(o[u], u))
1051
+ return u;
1052
+ } else
1053
+ for (var s = e; s < t; s++)
1054
+ if (!i(o[s], s))
1055
+ return s;
1056
+ return r ? be(n ? t - 1 : 0, n, o, i) : -1;
1057
+ }
1058
+ function We(e, n, o, i) {
1059
+ return i === void 0 && (i = !0), o && n.some(function(r) {
1060
+ return r && (In(r, e, o) || i && In(r, o.document.activeElement, o));
1061
+ });
1062
+ }
1063
+ var pt = ce;
1064
+ process.env.NODE_ENV !== "production" && (pt = function(n, o, i) {
1065
+ var r = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
1066
+ Object.keys(n).forEach(function(t) {
1067
+ o[t] !== void 0 && i[t] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + t + '" to be uncontrolled. ' + r) : o[t] === void 0 && i[t] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + t + '" to be controlled. ' + r);
1068
+ });
1069
+ });
1070
+ var Qr = Qe(function(e) {
1071
+ Rn(e).textContent = "";
1072
+ }, 500);
1073
+ function Rn(e) {
1074
+ var n = e.getElementById("a11y-status-message");
1075
+ return n || (n = e.createElement("div"), n.setAttribute("id", "a11y-status-message"), n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("aria-relevant", "additions text"), Object.assign(n.style, {
1076
+ border: "0",
1077
+ clip: "rect(0 0 0 0)",
1078
+ height: "1px",
1079
+ margin: "-1px",
1080
+ overflow: "hidden",
1081
+ padding: "0",
1082
+ position: "absolute",
1083
+ width: "1px"
1084
+ }), e.body.appendChild(n), n);
1085
+ }
1086
+ function Mn(e, n) {
1087
+ if (!(!e || !n)) {
1088
+ var o = Rn(n);
1089
+ o.textContent = e, Qr(n);
1090
+ }
1091
+ }
1092
+ function eo(e) {
1093
+ var n = e?.getElementById("a11y-status-message");
1094
+ n && n.remove();
1095
+ }
1096
+ var Nn = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, kn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Vn = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, Be = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, Fe = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, Kn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, An = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Hn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, $n = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Bn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Fn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, jn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, ct = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Un = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, qn = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, Yn = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, to = /* @__PURE__ */ Object.freeze({
1097
+ __proto__: null,
1098
+ blurButton: Un,
1099
+ blurInput: Fn,
1100
+ changeInput: Ln,
1101
+ clickButton: ct,
1102
+ clickItem: Bn,
1103
+ controlledPropUpdatedSelectedItem: qn,
1104
+ itemMouseEnter: Vn,
1105
+ keyDownArrowDown: Fe,
1106
+ keyDownArrowUp: Be,
1107
+ keyDownEnd: $n,
1108
+ keyDownEnter: An,
1109
+ keyDownEscape: Kn,
1110
+ keyDownHome: Hn,
1111
+ keyDownSpaceButton: jn,
1112
+ mouseUp: kn,
1113
+ touchEnd: Yn,
1114
+ unknown: Nn
1115
+ }), no = ["refKey", "ref"], ro = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], oo = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], io = ["refKey", "ref"], uo = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], so = /* @__PURE__ */ (function() {
1116
+ var e = /* @__PURE__ */ (function(n) {
1117
+ function o(r) {
1118
+ var t;
1119
+ t = n.call(this, r) || this, t.id = t.props.id || "downshift-" + Cn(), t.menuId = t.props.menuId || t.id + "-menu", t.labelId = t.props.labelId || t.id + "-label", t.inputId = t.props.inputId || t.id + "-input", t.getItemId = t.props.getItemId || function(d) {
1120
+ return t.id + "-item-" + d;
1121
+ }, t.items = [], t.itemCount = null, t.previousResultCount = 0, t.timeoutIds = [], t.internalSetTimeout = function(d, p) {
1122
+ var f = setTimeout(function() {
1123
+ t.timeoutIds = t.timeoutIds.filter(function(l) {
1124
+ return l !== f;
1125
+ }), d();
1126
+ }, p);
1127
+ t.timeoutIds.push(f);
1128
+ }, t.setItemCount = function(d) {
1129
+ t.itemCount = d;
1130
+ }, t.unsetItemCount = function() {
1131
+ t.itemCount = null;
1132
+ }, t.isItemDisabled = function(d, p) {
1133
+ var f = t.getItemNodeFromIndex(p);
1134
+ return f && f.hasAttribute("disabled");
1135
+ }, t.setHighlightedIndex = function(d, p) {
1136
+ d === void 0 && (d = t.props.defaultHighlightedIndex), p === void 0 && (p = {}), p = $e(p), t.internalSetState(F({
1137
+ highlightedIndex: d
1138
+ }, p));
1139
+ }, t.clearSelection = function(d) {
1140
+ t.internalSetState({
1141
+ selectedItem: null,
1142
+ inputValue: "",
1143
+ highlightedIndex: t.props.defaultHighlightedIndex,
1144
+ isOpen: t.props.defaultIsOpen
1145
+ }, d);
1146
+ }, t.selectItem = function(d, p, f) {
1147
+ p = $e(p), t.internalSetState(F({
1148
+ isOpen: t.props.defaultIsOpen,
1149
+ highlightedIndex: t.props.defaultHighlightedIndex,
1150
+ selectedItem: d,
1151
+ inputValue: t.props.itemToString(d)
1152
+ }, p), f);
1153
+ }, t.selectItemAtIndex = function(d, p, f) {
1154
+ var l = t.items[d];
1155
+ l != null && t.selectItem(l, p, f);
1156
+ }, t.selectHighlightedItem = function(d, p) {
1157
+ return t.selectItemAtIndex(t.getState().highlightedIndex, d, p);
1158
+ }, t.internalSetState = function(d, p) {
1159
+ var f, l, M = {}, Y = typeof d == "function";
1160
+ return !Y && d.hasOwnProperty("inputValue") && t.props.onInputValueChange(d.inputValue, F({}, t.getStateAndHelpers(), d)), t.setState(function(V) {
1161
+ var N;
1162
+ V = t.getState(V);
1163
+ var k = Y ? d(V) : d;
1164
+ k = t.props.stateReducer(V, k), f = k.hasOwnProperty("selectedItem");
1165
+ var K = {};
1166
+ return f && k.selectedItem !== V.selectedItem && (l = k.selectedItem), (N = k).type || (N.type = Nn), Object.keys(k).forEach(function(q) {
1167
+ V[q] !== k[q] && (M[q] = k[q]), q !== "type" && (k[q], Ye(t.props, q) || (K[q] = k[q]));
1168
+ }), Y && k.hasOwnProperty("inputValue") && t.props.onInputValueChange(k.inputValue, F({}, t.getStateAndHelpers(), k)), K;
1169
+ }, function() {
1170
+ mn(p)();
1171
+ var V = Object.keys(M).length > 1;
1172
+ V && t.props.onStateChange(M, t.getStateAndHelpers()), f && t.props.onSelect(d.selectedItem, t.getStateAndHelpers()), l !== void 0 && t.props.onChange(l, t.getStateAndHelpers()), t.props.onUserAction(M, t.getStateAndHelpers());
1173
+ });
1174
+ }, t.rootRef = function(d) {
1175
+ return t._rootNode = d;
1176
+ }, t.getRootProps = function(d, p) {
1177
+ var f, l = d === void 0 ? {} : d, M = l.refKey, Y = M === void 0 ? "ref" : M, V = l.ref, N = de(l, no), k = p === void 0 ? {} : p, K = k.suppressRefError, q = K === void 0 ? !1 : K;
1178
+ t.getRootProps.called = !0, t.getRootProps.refKey = Y, t.getRootProps.suppressRefError = q;
1179
+ var G = t.getState(), A = G.isOpen;
1180
+ return F((f = {}, f[Y] = me(V, t.rootRef), f.role = "combobox", f["aria-expanded"] = A, f["aria-haspopup"] = "listbox", f["aria-owns"] = A ? t.menuId : void 0, f["aria-labelledby"] = t.labelId, f), N);
1181
+ }, t.keyDownHandlers = {
1182
+ ArrowDown: function(p) {
1183
+ var f = this;
1184
+ if (p.preventDefault(), this.getState().isOpen) {
1185
+ var l = p.shiftKey ? 5 : 1;
1186
+ this.moveHighlightedIndex(l, {
1187
+ type: Fe
1188
+ });
1189
+ } else
1190
+ this.internalSetState({
1191
+ isOpen: !0,
1192
+ type: Fe
1193
+ }, function() {
1194
+ var M = f.getItemCount();
1195
+ if (M > 0) {
1196
+ var Y = f.getState(), V = Y.highlightedIndex, N = Ie(V, 1, {
1197
+ length: M
1198
+ }, f.isItemDisabled, !0);
1199
+ f.setHighlightedIndex(N, {
1200
+ type: Fe
1201
+ });
1202
+ }
1203
+ });
1204
+ },
1205
+ ArrowUp: function(p) {
1206
+ var f = this;
1207
+ if (p.preventDefault(), this.getState().isOpen) {
1208
+ var l = p.shiftKey ? -5 : -1;
1209
+ this.moveHighlightedIndex(l, {
1210
+ type: Be
1211
+ });
1212
+ } else
1213
+ this.internalSetState({
1214
+ isOpen: !0,
1215
+ type: Be
1216
+ }, function() {
1217
+ var M = f.getItemCount();
1218
+ if (M > 0) {
1219
+ var Y = f.getState(), V = Y.highlightedIndex, N = Ie(V, -1, {
1220
+ length: M
1221
+ }, f.isItemDisabled, !0);
1222
+ f.setHighlightedIndex(N, {
1223
+ type: Be
1224
+ });
1225
+ }
1226
+ });
1227
+ },
1228
+ Enter: function(p) {
1229
+ if (p.which !== 229) {
1230
+ var f = this.getState(), l = f.isOpen, M = f.highlightedIndex;
1231
+ if (l && M != null) {
1232
+ p.preventDefault();
1233
+ var Y = this.items[M], V = this.getItemNodeFromIndex(M);
1234
+ if (Y == null || V && V.hasAttribute("disabled"))
1235
+ return;
1236
+ this.selectHighlightedItem({
1237
+ type: An
1238
+ });
1239
+ }
1240
+ }
1241
+ },
1242
+ Escape: function(p) {
1243
+ p.preventDefault(), this.reset(F({
1244
+ type: Kn
1245
+ }, !this.state.isOpen && {
1246
+ selectedItem: null,
1247
+ inputValue: ""
1248
+ }));
1249
+ }
1250
+ }, t.buttonKeyDownHandlers = F({}, t.keyDownHandlers, {
1251
+ " ": function(p) {
1252
+ p.preventDefault(), this.toggleMenu({
1253
+ type: jn
1254
+ });
1255
+ }
1256
+ }), t.inputKeyDownHandlers = F({}, t.keyDownHandlers, {
1257
+ Home: function(p) {
1258
+ var f = this.getState(), l = f.isOpen;
1259
+ if (l) {
1260
+ p.preventDefault();
1261
+ var M = this.getItemCount();
1262
+ if (!(M <= 0 || !l)) {
1263
+ var Y = be(0, !1, {
1264
+ length: M
1265
+ }, this.isItemDisabled);
1266
+ this.setHighlightedIndex(Y, {
1267
+ type: Hn
1268
+ });
1269
+ }
1270
+ }
1271
+ },
1272
+ End: function(p) {
1273
+ var f = this.getState(), l = f.isOpen;
1274
+ if (l) {
1275
+ p.preventDefault();
1276
+ var M = this.getItemCount();
1277
+ if (!(M <= 0 || !l)) {
1278
+ var Y = be(M - 1, !0, {
1279
+ length: M
1280
+ }, this.isItemDisabled);
1281
+ this.setHighlightedIndex(Y, {
1282
+ type: $n
1283
+ });
1284
+ }
1285
+ }
1286
+ }
1287
+ }), t.getToggleButtonProps = function(d) {
1288
+ var p = d === void 0 ? {} : d, f = p.onClick;
1289
+ p.onPress;
1290
+ var l = p.onKeyDown, M = p.onKeyUp, Y = p.onBlur, V = de(p, ro), N = t.getState(), k = N.isOpen, K = {
1291
+ onClick: X(f, t.buttonHandleClick),
1292
+ onKeyDown: X(l, t.buttonHandleKeyDown),
1293
+ onKeyUp: X(M, t.buttonHandleKeyUp),
1294
+ onBlur: X(Y, t.buttonHandleBlur)
1295
+ }, q = V.disabled ? {} : K;
1296
+ return F({
1297
+ type: "button",
1298
+ role: "button",
1299
+ "aria-label": k ? "close menu" : "open menu",
1300
+ "aria-haspopup": !0,
1301
+ "data-toggle": !0
1302
+ }, q, V);
1303
+ }, t.buttonHandleKeyUp = function(d) {
1304
+ d.preventDefault();
1305
+ }, t.buttonHandleKeyDown = function(d) {
1306
+ var p = Se(d);
1307
+ t.buttonKeyDownHandlers[p] && t.buttonKeyDownHandlers[p].call(t, d);
1308
+ }, t.buttonHandleClick = function(d) {
1309
+ if (d.preventDefault(), t.props.environment) {
1310
+ var p = t.props.environment.document, f = p.body, l = p.activeElement;
1311
+ f && f === l && d.target.focus();
1312
+ }
1313
+ process.env.NODE_ENV === "test" ? t.toggleMenu({
1314
+ type: ct
1315
+ }) : t.internalSetTimeout(function() {
1316
+ return t.toggleMenu({
1317
+ type: ct
1318
+ });
1319
+ });
1320
+ }, t.buttonHandleBlur = function(d) {
1321
+ var p = d.target;
1322
+ t.internalSetTimeout(function() {
1323
+ if (!(t.isMouseDown || !t.props.environment)) {
1324
+ var f = t.props.environment.document.activeElement;
1325
+ (f == null || f.id !== t.inputId) && f !== p && t.reset({
1326
+ type: Un
1327
+ });
1328
+ }
1329
+ });
1330
+ }, t.getLabelProps = function(d) {
1331
+ return F({
1332
+ htmlFor: t.inputId,
1333
+ id: t.labelId
1334
+ }, d);
1335
+ }, t.getInputProps = function(d) {
1336
+ var p = d === void 0 ? {} : d, f = p.onKeyDown, l = p.onBlur, M = p.onChange, Y = p.onInput;
1337
+ p.onChangeText;
1338
+ var V = de(p, oo), N, k = {};
1339
+ N = "onChange";
1340
+ var K = t.getState(), q = K.inputValue, G = K.isOpen, A = K.highlightedIndex;
1341
+ if (!V.disabled) {
1342
+ var re;
1343
+ k = (re = {}, re[N] = X(M, Y, t.inputHandleChange), re.onKeyDown = X(f, t.inputHandleKeyDown), re.onBlur = X(l, t.inputHandleBlur), re);
1344
+ }
1345
+ return F({
1346
+ "aria-autocomplete": "list",
1347
+ "aria-activedescendant": G && typeof A == "number" && A >= 0 ? t.getItemId(A) : void 0,
1348
+ "aria-controls": G ? t.menuId : void 0,
1349
+ "aria-labelledby": V && V["aria-label"] ? void 0 : t.labelId,
1350
+ // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
1351
+ // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
1352
+ autoComplete: "off",
1353
+ value: q,
1354
+ id: t.inputId
1355
+ }, k, V);
1356
+ }, t.inputHandleKeyDown = function(d) {
1357
+ var p = Se(d);
1358
+ p && t.inputKeyDownHandlers[p] && t.inputKeyDownHandlers[p].call(t, d);
1359
+ }, t.inputHandleChange = function(d) {
1360
+ t.internalSetState({
1361
+ type: Ln,
1362
+ isOpen: !0,
1363
+ inputValue: d.target.value,
1364
+ highlightedIndex: t.props.defaultHighlightedIndex
1365
+ });
1366
+ }, t.inputHandleBlur = function() {
1367
+ t.internalSetTimeout(function() {
1368
+ var d;
1369
+ if (!(t.isMouseDown || !t.props.environment)) {
1370
+ var p = t.props.environment.document.activeElement, f = (p == null || (d = p.dataset) == null ? void 0 : d.toggle) && t._rootNode && t._rootNode.contains(p);
1371
+ f || t.reset({
1372
+ type: Fn
1373
+ });
1374
+ }
1375
+ });
1376
+ }, t.menuRef = function(d) {
1377
+ t._menuNode = d;
1378
+ }, t.getMenuProps = function(d, p) {
1379
+ var f, l = d === void 0 ? {} : d, M = l.refKey, Y = M === void 0 ? "ref" : M, V = l.ref, N = de(l, io), k = p === void 0 ? {} : p, K = k.suppressRefError, q = K === void 0 ? !1 : K;
1380
+ return t.getMenuProps.called = !0, t.getMenuProps.refKey = Y, t.getMenuProps.suppressRefError = q, F((f = {}, f[Y] = me(V, t.menuRef), f.role = "listbox", f["aria-labelledby"] = N && N["aria-label"] ? void 0 : t.labelId, f.id = t.menuId, f), N);
1381
+ }, t.getItemProps = function(d) {
1382
+ var p, f = d === void 0 ? {} : d, l = f.onMouseMove, M = f.onMouseDown, Y = f.onClick;
1383
+ f.onPress;
1384
+ var V = f.index, N = f.item, k = N === void 0 ? process.env.NODE_ENV === "production" ? (
1385
+ /* istanbul ignore next */
1386
+ void 0
1387
+ ) : Xr("getItemProps", "item") : N, K = de(f, uo);
1388
+ V === void 0 ? (t.items.push(k), V = t.items.indexOf(k)) : t.items[V] = k;
1389
+ var q = "onClick", G = Y, A = (p = {
1390
+ // onMouseMove is used over onMouseEnter here. onMouseMove
1391
+ // is only triggered on actual mouse movement while onMouseEnter
1392
+ // can fire on DOM changes, interrupting keyboard navigation
1393
+ onMouseMove: X(l, function() {
1394
+ V !== t.getState().highlightedIndex && (t.setHighlightedIndex(V, {
1395
+ type: Vn
1396
+ }), t.avoidScrolling = !0, t.internalSetTimeout(function() {
1397
+ return t.avoidScrolling = !1;
1398
+ }, 250));
1399
+ }),
1400
+ onMouseDown: X(M, function(te) {
1401
+ te.preventDefault();
1402
+ })
1403
+ }, p[q] = X(G, function() {
1404
+ t.selectItemAtIndex(V, {
1405
+ type: Bn
1406
+ });
1407
+ }), p), re = K.disabled ? {
1408
+ onMouseDown: A.onMouseDown
1409
+ } : A;
1410
+ return F({
1411
+ id: t.getItemId(V),
1412
+ role: "option",
1413
+ "aria-selected": t.getState().highlightedIndex === V
1414
+ }, re, K);
1415
+ }, t.clearItems = function() {
1416
+ t.items = [];
1417
+ }, t.reset = function(d, p) {
1418
+ d === void 0 && (d = {}), d = $e(d), t.internalSetState(function(f) {
1419
+ var l = f.selectedItem;
1420
+ return F({
1421
+ isOpen: t.props.defaultIsOpen,
1422
+ highlightedIndex: t.props.defaultHighlightedIndex,
1423
+ inputValue: t.props.itemToString(l)
1424
+ }, d);
1425
+ }, p);
1426
+ }, t.toggleMenu = function(d, p) {
1427
+ d === void 0 && (d = {}), d = $e(d), t.internalSetState(function(f) {
1428
+ var l = f.isOpen;
1429
+ return F({
1430
+ isOpen: !l
1431
+ }, l && {
1432
+ highlightedIndex: t.props.defaultHighlightedIndex
1433
+ }, d);
1434
+ }, function() {
1435
+ var f = t.getState(), l = f.isOpen, M = f.highlightedIndex;
1436
+ l && t.getItemCount() > 0 && typeof M == "number" && t.setHighlightedIndex(M, d), mn(p)();
1437
+ });
1438
+ }, t.openMenu = function(d) {
1439
+ t.internalSetState({
1440
+ isOpen: !0
1441
+ }, d);
1442
+ }, t.closeMenu = function(d) {
1443
+ t.internalSetState({
1444
+ isOpen: !1
1445
+ }, d);
1446
+ }, t.updateStatus = Qe(function() {
1447
+ var d;
1448
+ if ((d = t.props) != null && (d = d.environment) != null && d.document) {
1449
+ var p = t.getState(), f = t.items[p.highlightedIndex], l = t.getItemCount(), M = t.props.getA11yStatusMessage(F({
1450
+ itemToString: t.props.itemToString,
1451
+ previousResultCount: t.previousResultCount,
1452
+ resultCount: l,
1453
+ highlightedItem: f
1454
+ }, p));
1455
+ t.previousResultCount = l, Mn(M, t.props.environment.document);
1456
+ }
1457
+ }, 200);
1458
+ var u = t.props, s = u.defaultHighlightedIndex, a = u.initialHighlightedIndex, h = a === void 0 ? s : a, b = u.defaultIsOpen, w = u.initialIsOpen, x = w === void 0 ? b : w, C = u.initialInputValue, $ = C === void 0 ? "" : C, T = u.initialSelectedItem, g = T === void 0 ? null : T, L = t.getState({
1459
+ highlightedIndex: h,
1460
+ isOpen: x,
1461
+ inputValue: $,
1462
+ selectedItem: g
1463
+ });
1464
+ return L.selectedItem != null && t.props.initialInputValue === void 0 && (L.inputValue = t.props.itemToString(L.selectedItem)), t.state = L, t;
1465
+ }
1466
+ kr(o, n);
1467
+ var i = o.prototype;
1468
+ return i.internalClearTimeouts = function() {
1469
+ this.timeoutIds.forEach(function(t) {
1470
+ clearTimeout(t);
1471
+ }), this.timeoutIds = [];
1472
+ }, i.getState = function(t) {
1473
+ return t === void 0 && (t = this.state), Re(t, this.props);
1474
+ }, i.getItemCount = function() {
1475
+ var t = this.items.length;
1476
+ return this.itemCount != null ? t = this.itemCount : this.props.itemCount !== void 0 && (t = this.props.itemCount), t;
1477
+ }, i.getItemNodeFromIndex = function(t) {
1478
+ return this.props.environment ? this.props.environment.document.getElementById(this.getItemId(t)) : null;
1479
+ }, i.scrollHighlightedItemIntoView = function() {
1480
+ {
1481
+ var t = this.getItemNodeFromIndex(this.getState().highlightedIndex);
1482
+ this.props.scrollIntoView(t, this._menuNode);
1483
+ }
1484
+ }, i.moveHighlightedIndex = function(t, u) {
1485
+ var s = this.getItemCount(), a = this.getState(), h = a.highlightedIndex;
1486
+ if (s > 0) {
1487
+ var b = Ie(h, t, {
1488
+ length: s
1489
+ }, this.isItemDisabled, !0);
1490
+ this.setHighlightedIndex(b, u);
1491
+ }
1492
+ }, i.getStateAndHelpers = function() {
1493
+ var t = this.getState(), u = t.highlightedIndex, s = t.inputValue, a = t.selectedItem, h = t.isOpen, b = this.props.itemToString, w = this.id, x = this.getRootProps, C = this.getToggleButtonProps, $ = this.getLabelProps, T = this.getMenuProps, g = this.getInputProps, L = this.getItemProps, d = this.openMenu, p = this.closeMenu, f = this.toggleMenu, l = this.selectItem, M = this.selectItemAtIndex, Y = this.selectHighlightedItem, V = this.setHighlightedIndex, N = this.clearSelection, k = this.clearItems, K = this.reset, q = this.setItemCount, G = this.unsetItemCount, A = this.internalSetState;
1494
+ return {
1495
+ // prop getters
1496
+ getRootProps: x,
1497
+ getToggleButtonProps: C,
1498
+ getLabelProps: $,
1499
+ getMenuProps: T,
1500
+ getInputProps: g,
1501
+ getItemProps: L,
1502
+ // actions
1503
+ reset: K,
1504
+ openMenu: d,
1505
+ closeMenu: p,
1506
+ toggleMenu: f,
1507
+ selectItem: l,
1508
+ selectItemAtIndex: M,
1509
+ selectHighlightedItem: Y,
1510
+ setHighlightedIndex: V,
1511
+ clearSelection: N,
1512
+ clearItems: k,
1513
+ setItemCount: q,
1514
+ unsetItemCount: G,
1515
+ setState: A,
1516
+ // props
1517
+ itemToString: b,
1518
+ // derived
1519
+ id: w,
1520
+ // state
1521
+ highlightedIndex: u,
1522
+ inputValue: s,
1523
+ isOpen: h,
1524
+ selectedItem: a
1525
+ };
1526
+ }, i.componentDidMount = function() {
1527
+ var t = this;
1528
+ if (process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && _n(this._menuNode, this.getMenuProps), !this.props.environment)
1529
+ this.cleanup = function() {
1530
+ t.internalClearTimeouts();
1531
+ };
1532
+ else {
1533
+ var u = function() {
1534
+ t.isMouseDown = !0;
1535
+ }, s = function(C) {
1536
+ t.isMouseDown = !1;
1537
+ var $ = We(C.target, [t._rootNode, t._menuNode], t.props.environment);
1538
+ !$ && t.getState().isOpen && t.reset({
1539
+ type: kn
1540
+ }, function() {
1541
+ return t.props.onOuterClick(t.getStateAndHelpers());
1542
+ });
1543
+ }, a = function() {
1544
+ t.isTouchMove = !1;
1545
+ }, h = function() {
1546
+ t.isTouchMove = !0;
1547
+ }, b = function(C) {
1548
+ var $ = We(C.target, [t._rootNode, t._menuNode], t.props.environment, !1);
1549
+ !t.isTouchMove && !$ && t.getState().isOpen && t.reset({
1550
+ type: Yn
1551
+ }, function() {
1552
+ return t.props.onOuterClick(t.getStateAndHelpers());
1553
+ });
1554
+ }, w = this.props.environment;
1555
+ w.addEventListener("mousedown", u), w.addEventListener("mouseup", s), w.addEventListener("touchstart", a), w.addEventListener("touchmove", h), w.addEventListener("touchend", b), this.cleanup = function() {
1556
+ t.internalClearTimeouts(), t.updateStatus.cancel(), w.removeEventListener("mousedown", u), w.removeEventListener("mouseup", s), w.removeEventListener("touchstart", a), w.removeEventListener("touchmove", h), w.removeEventListener("touchend", b);
1557
+ };
1558
+ }
1559
+ }, i.shouldScroll = function(t, u) {
1560
+ var s = this.props.highlightedIndex === void 0 ? this.getState() : this.props, a = s.highlightedIndex, h = u.highlightedIndex === void 0 ? t : u, b = h.highlightedIndex, w = a && this.getState().isOpen && !t.isOpen, x = a !== b;
1561
+ return w || x;
1562
+ }, i.componentDidUpdate = function(t, u) {
1563
+ process.env.NODE_ENV !== "production" && (pt(this.state, t, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && _n(this._menuNode, this.getMenuProps)), Ye(this.props, "selectedItem") && this.props.selectedItemChanged(t.selectedItem, this.props.selectedItem) && this.internalSetState({
1564
+ type: qn,
1565
+ inputValue: this.props.itemToString(this.props.selectedItem)
1566
+ }), !this.avoidScrolling && this.shouldScroll(u, t) && this.scrollHighlightedItemIntoView(), this.updateStatus();
1567
+ }, i.componentWillUnmount = function() {
1568
+ this.cleanup();
1569
+ }, i.render = function() {
1570
+ var t = yn(this.props.children, ce);
1571
+ this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
1572
+ var u = yn(t(this.getStateAndHelpers()));
1573
+ if (!u)
1574
+ return null;
1575
+ if (this.getRootProps.called || this.props.suppressRefError)
1576
+ return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && ao(u, this.getRootProps), u;
1577
+ if (Tn(u))
1578
+ return /* @__PURE__ */ Rr(u, this.getRootProps(Pn(u)));
1579
+ if (process.env.NODE_ENV !== "production")
1580
+ throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
1581
+ }, o;
1582
+ })(Mr);
1583
+ return e.defaultProps = {
1584
+ defaultHighlightedIndex: null,
1585
+ defaultIsOpen: !1,
1586
+ getA11yStatusMessage: Gr,
1587
+ itemToString: function(o) {
1588
+ return o == null ? "" : (process.env.NODE_ENV !== "production" && Zr(o) && !o.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", o), String(o));
1589
+ },
1590
+ onStateChange: ce,
1591
+ onInputValueChange: ce,
1592
+ onUserAction: ce,
1593
+ onChange: ce,
1594
+ onSelect: ce,
1595
+ onOuterClick: ce,
1596
+ selectedItemChanged: function(o, i) {
1597
+ return o !== i;
1598
+ },
1599
+ environment: (
1600
+ /* istanbul ignore next (ssr) */
1601
+ typeof window > "u" ? void 0 : window
1602
+ ),
1603
+ stateReducer: function(o, i) {
1604
+ return i;
1605
+ },
1606
+ suppressRefError: !1,
1607
+ scrollIntoView: Sn
1608
+ }, e.stateChangeTypes = to, e;
1609
+ })();
1610
+ process.env.NODE_ENV !== "production" && (so.propTypes = {
1611
+ children: y.func,
1612
+ defaultHighlightedIndex: y.number,
1613
+ defaultIsOpen: y.bool,
1614
+ initialHighlightedIndex: y.number,
1615
+ initialSelectedItem: y.any,
1616
+ initialInputValue: y.string,
1617
+ initialIsOpen: y.bool,
1618
+ getA11yStatusMessage: y.func,
1619
+ itemToString: y.func,
1620
+ onChange: y.func,
1621
+ onSelect: y.func,
1622
+ onStateChange: y.func,
1623
+ onInputValueChange: y.func,
1624
+ onUserAction: y.func,
1625
+ onOuterClick: y.func,
1626
+ selectedItemChanged: y.func,
1627
+ stateReducer: y.func,
1628
+ itemCount: y.number,
1629
+ id: y.string,
1630
+ environment: y.shape({
1631
+ addEventListener: y.func.isRequired,
1632
+ removeEventListener: y.func.isRequired,
1633
+ document: y.shape({
1634
+ createElement: y.func.isRequired,
1635
+ getElementById: y.func.isRequired,
1636
+ activeElement: y.any.isRequired,
1637
+ body: y.any.isRequired
1638
+ }).isRequired,
1639
+ Node: y.func.isRequired
1640
+ }),
1641
+ suppressRefError: y.bool,
1642
+ scrollIntoView: y.func,
1643
+ // things we keep in state for uncontrolled components
1644
+ // but can accept as props for controlled components
1645
+ /* eslint-disable react/no-unused-prop-types */
1646
+ selectedItem: y.any,
1647
+ isOpen: y.bool,
1648
+ inputValue: y.string,
1649
+ highlightedIndex: y.number,
1650
+ labelId: y.string,
1651
+ inputId: y.string,
1652
+ menuId: y.string,
1653
+ getItemId: y.func
1654
+ /* eslint-enable react/no-unused-prop-types */
1655
+ });
1656
+ function _n(e, n) {
1657
+ var o = n.refKey;
1658
+ e || console.error('downshift: The ref prop "' + o + '" from getMenuProps was not applied correctly on your menu element.');
1659
+ }
1660
+ function ao(e, n) {
1661
+ var o = n.refKey, i = o !== "ref", r = !Tn(e);
1662
+ r && !i && !gn.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !r && i && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + o + '"'), !gn.isForwardRef(e) && !Pn(e)[o] && console.error('downshift: You must apply the ref prop "' + o + '" from getRootProps onto your root element.');
1663
+ }
1664
+ var Wn = {
1665
+ highlightedIndex: -1,
1666
+ isOpen: !1,
1667
+ selectedItem: null,
1668
+ inputValue: ""
1669
+ };
1670
+ function lo(e, n, o) {
1671
+ var i = e.props, r = e.type, t = {};
1672
+ Object.keys(n).forEach(function(u) {
1673
+ co(u, e, n, o), o[u] !== n[u] && (t[u] = o[u]);
1674
+ }), i.onStateChange && Object.keys(t).length && i.onStateChange(F({
1675
+ type: r
1676
+ }, t));
1677
+ }
1678
+ function co(e, n, o, i) {
1679
+ var r = n.props, t = n.type, u = "on" + vt(e) + "Change";
1680
+ r[u] && i[e] !== void 0 && i[e] !== o[e] && r[u](F({
1681
+ type: t
1682
+ }, i));
1683
+ }
1684
+ function fo(e, n) {
1685
+ return n.changes;
1686
+ }
1687
+ var En = Qe(function(e, n) {
1688
+ Mn(e, n);
1689
+ }, 200), po = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Tr : se, zn = "useId" in Ue ? function(n) {
1690
+ var o = n.id, i = n.labelId, r = n.menuId, t = n.getItemId, u = n.toggleButtonId, s = n.inputId, a = "downshift-" + Ue.useId();
1691
+ o || (o = a);
1692
+ var h = ie({
1693
+ labelId: i || o + "-label",
1694
+ menuId: r || o + "-menu",
1695
+ getItemId: t || function(b) {
1696
+ return o + "-item-" + b;
1697
+ },
1698
+ toggleButtonId: u || o + "-toggle-button",
1699
+ inputId: s || o + "-input"
1700
+ });
1701
+ return h.current;
1702
+ } : function(n) {
1703
+ var o = n.id, i = o === void 0 ? "downshift-" + Cn() : o, r = n.labelId, t = n.menuId, u = n.getItemId, s = n.toggleButtonId, a = n.inputId, h = ie({
1704
+ labelId: r || i + "-label",
1705
+ menuId: t || i + "-menu",
1706
+ getItemId: u || function(b) {
1707
+ return i + "-item-" + b;
1708
+ },
1709
+ toggleButtonId: s || i + "-toggle-button",
1710
+ inputId: a || i + "-input"
1711
+ });
1712
+ return h.current;
1713
+ };
1714
+ function gt(e, n, o, i) {
1715
+ var r, t;
1716
+ if (e === void 0) {
1717
+ if (n === void 0)
1718
+ throw new Error(i);
1719
+ r = o[n], t = n;
1720
+ } else
1721
+ t = n === void 0 ? o.indexOf(e) : n, r = e;
1722
+ return [r, t];
1723
+ }
1724
+ function go(e) {
1725
+ return /^\S{1}$/.test(e);
1726
+ }
1727
+ function vt(e) {
1728
+ return "" + e.slice(0, 1).toUpperCase() + e.slice(1);
1729
+ }
1730
+ function et(e) {
1731
+ var n = ie(e);
1732
+ return n.current = e, n;
1733
+ }
1734
+ function Gn(e, n, o, i) {
1735
+ var r = ie(), t = ie(), u = z(function(C, $) {
1736
+ t.current = $, C = Re(C, $.props);
1737
+ var T = e(C, $), g = $.props.stateReducer(C, F({}, $, {
1738
+ changes: T
1739
+ }));
1740
+ return g;
1741
+ }, [e]), s = Pr(u, n, o), a = s[0], h = s[1], b = et(n), w = z(function(C) {
1742
+ return h(F({
1743
+ props: b.current
1744
+ }, C));
1745
+ }, [b]), x = t.current;
1746
+ return se(function() {
1747
+ var C = Re(r.current, x?.props), $ = x && r.current && !i(C, a);
1748
+ $ && lo(x, C, a), r.current = a;
1749
+ }, [a, x, i]), [a, w];
1750
+ }
1751
+ function Xn(e, n, o, i) {
1752
+ var r = Gn(e, n, o, i), t = r[0], u = r[1];
1753
+ return [Re(t, n), u];
1754
+ }
1755
+ var Pe = {
1756
+ itemToString: function(n) {
1757
+ return n ? String(n) : "";
1758
+ },
1759
+ itemToKey: function(n) {
1760
+ return n;
1761
+ },
1762
+ stateReducer: fo,
1763
+ scrollIntoView: Sn,
1764
+ environment: (
1765
+ /* istanbul ignore next (ssr) */
1766
+ typeof window > "u" ? void 0 : window
1767
+ )
1768
+ };
1769
+ function ye(e, n, o) {
1770
+ o === void 0 && (o = Wn);
1771
+ var i = e["default" + vt(n)];
1772
+ return i !== void 0 ? i : o[n];
1773
+ }
1774
+ function xe(e, n, o) {
1775
+ o === void 0 && (o = Wn);
1776
+ var i = e[n];
1777
+ if (i !== void 0)
1778
+ return i;
1779
+ var r = e["initial" + vt(n)];
1780
+ return r !== void 0 ? r : ye(e, n, o);
1781
+ }
1782
+ function Jn(e) {
1783
+ var n = xe(e, "selectedItem"), o = xe(e, "isOpen"), i = vo(e), r = xe(e, "inputValue");
1784
+ return {
1785
+ highlightedIndex: i < 0 && n && o ? e.items.findIndex(function(t) {
1786
+ return e.itemToKey(t) === e.itemToKey(n);
1787
+ }) : i,
1788
+ isOpen: o,
1789
+ selectedItem: n,
1790
+ inputValue: r
1791
+ };
1792
+ }
1793
+ function De(e, n, o) {
1794
+ var i = e.items, r = e.initialHighlightedIndex, t = e.defaultHighlightedIndex, u = e.isItemDisabled, s = e.itemToKey, a = n.selectedItem, h = n.highlightedIndex;
1795
+ return i.length === 0 ? -1 : r !== void 0 && h === r && !u(i[r], r) ? r : t !== void 0 && !u(i[t], t) ? t : a ? i.findIndex(function(b) {
1796
+ return s(a) === s(b);
1797
+ }) : o < 0 && !u(i[i.length - 1], i.length - 1) ? i.length - 1 : o > 0 && !u(i[0], 0) ? 0 : -1;
1798
+ }
1799
+ function Zn(e, n, o) {
1800
+ var i = ie({
1801
+ isMouseDown: !1,
1802
+ isTouchMove: !1,
1803
+ isTouchEnd: !1
1804
+ });
1805
+ return se(function() {
1806
+ if (!e)
1807
+ return ce;
1808
+ var r = o.map(function(b) {
1809
+ return b.current;
1810
+ });
1811
+ function t() {
1812
+ i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
1813
+ }
1814
+ function u(b) {
1815
+ i.current.isMouseDown = !1, We(b.target, r, e) || n();
1816
+ }
1817
+ function s() {
1818
+ i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
1819
+ }
1820
+ function a() {
1821
+ i.current.isTouchMove = !0;
1822
+ }
1823
+ function h(b) {
1824
+ i.current.isTouchEnd = !0, !i.current.isTouchMove && !We(b.target, r, e, !1) && n();
1825
+ }
1826
+ return e.addEventListener("mousedown", t), e.addEventListener("mouseup", u), e.addEventListener("touchstart", s), e.addEventListener("touchmove", a), e.addEventListener("touchend", h), function() {
1827
+ e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", u), e.removeEventListener("touchstart", s), e.removeEventListener("touchmove", a), e.removeEventListener("touchend", h);
1828
+ };
1829
+ }, [o, e, n]), i.current;
1830
+ }
1831
+ var tt = function() {
1832
+ return ce;
1833
+ };
1834
+ process.env.NODE_ENV !== "production" && (tt = function() {
1835
+ for (var n = arguments.length, o = new Array(n), i = 0; i < n; i++)
1836
+ o[i] = arguments[i];
1837
+ var r = ie(o.reduce(function(u, s) {
1838
+ return u[s] = {}, u;
1839
+ }, {}));
1840
+ se(function() {
1841
+ Object.keys(r.current).forEach(function(u) {
1842
+ var s = r.current[u];
1843
+ if (!Object.keys(s).length) {
1844
+ console.error("downshift: You forgot to call the " + u + " getter function on your component / element.");
1845
+ return;
1846
+ }
1847
+ var a = s.suppressRefError, h = s.refKey, b = s.elementRef;
1848
+ a || b != null && b.current || console.error('downshift: The ref prop "' + h + '" from ' + u + " was not applied correctly on your element.");
1849
+ });
1850
+ }, []);
1851
+ var t = z(function(u, s, a, h) {
1852
+ r.current[u] = {
1853
+ suppressRefError: s,
1854
+ refKey: a,
1855
+ elementRef: h
1856
+ };
1857
+ }, []);
1858
+ return t;
1859
+ });
1860
+ function ht(e, n, o, i) {
1861
+ i === void 0 && (i = {});
1862
+ var r = i.document, t = Me();
1863
+ se(function() {
1864
+ if (!(!e || t || !r)) {
1865
+ var u = e(n);
1866
+ En(u, r);
1867
+ }
1868
+ }, o), se(function() {
1869
+ return function() {
1870
+ En.cancel(), eo(r);
1871
+ };
1872
+ }, [r]);
1873
+ }
1874
+ function Qn(e) {
1875
+ var n = e.highlightedIndex, o = e.isOpen, i = e.itemRefs, r = e.getItemNodeFromIndex, t = e.menuElement, u = e.scrollIntoView, s = ie(!0);
1876
+ return po(function() {
1877
+ n < 0 || !o || !Object.keys(i.current).length || (s.current === !1 ? s.current = !0 : u(r(n), t));
1878
+ }, [n]), s;
1879
+ }
1880
+ var nt = ce;
1881
+ process.env.NODE_ENV !== "production" && (nt = function(n) {
1882
+ var o = n.props, i = n.state, r = ie(o), t = Me();
1883
+ se(function() {
1884
+ t || (pt(i, r.current, o), r.current = o);
1885
+ }, [i, o, t]);
1886
+ });
1887
+ function ze(e, n, o) {
1888
+ var i;
1889
+ o === void 0 && (o = !0);
1890
+ var r = ((i = e.items) == null ? void 0 : i.length) && n >= 0;
1891
+ return F({
1892
+ isOpen: !1,
1893
+ highlightedIndex: -1
1894
+ }, r && F({
1895
+ selectedItem: e.items[n],
1896
+ isOpen: ye(e, "isOpen"),
1897
+ highlightedIndex: ye(e, "highlightedIndex")
1898
+ }, o && {
1899
+ inputValue: e.itemToString(e.items[n])
1900
+ }));
1901
+ }
1902
+ function er(e, n) {
1903
+ return e.isOpen === n.isOpen && e.inputValue === n.inputValue && e.highlightedIndex === n.highlightedIndex && e.selectedItem === n.selectedItem;
1904
+ }
1905
+ function Me() {
1906
+ var e = Ue.useRef(!0);
1907
+ return Ue.useEffect(function() {
1908
+ return e.current = !1, function() {
1909
+ e.current = !0;
1910
+ };
1911
+ }, []), e.current;
1912
+ }
1913
+ function Ge(e) {
1914
+ var n = ye(e, "highlightedIndex");
1915
+ return n > -1 && e.isItemDisabled(e.items[n], n) ? -1 : n;
1916
+ }
1917
+ function vo(e) {
1918
+ var n = xe(e, "highlightedIndex");
1919
+ return n > -1 && e.isItemDisabled(e.items[n], n) ? -1 : n;
1920
+ }
1921
+ var Le = {
1922
+ environment: y.shape({
1923
+ addEventListener: y.func.isRequired,
1924
+ removeEventListener: y.func.isRequired,
1925
+ document: y.shape({
1926
+ createElement: y.func.isRequired,
1927
+ getElementById: y.func.isRequired,
1928
+ activeElement: y.any.isRequired,
1929
+ body: y.any.isRequired
1930
+ }).isRequired,
1931
+ Node: y.func.isRequired
1932
+ }),
1933
+ itemToString: y.func,
1934
+ itemToKey: y.func,
1935
+ stateReducer: y.func
1936
+ }, tr = F({}, Le, {
1937
+ getA11yStatusMessage: y.func,
1938
+ highlightedIndex: y.number,
1939
+ defaultHighlightedIndex: y.number,
1940
+ initialHighlightedIndex: y.number,
1941
+ isOpen: y.bool,
1942
+ defaultIsOpen: y.bool,
1943
+ initialIsOpen: y.bool,
1944
+ selectedItem: y.any,
1945
+ initialSelectedItem: y.any,
1946
+ defaultSelectedItem: y.any,
1947
+ id: y.string,
1948
+ labelId: y.string,
1949
+ menuId: y.string,
1950
+ getItemId: y.func,
1951
+ toggleButtonId: y.string,
1952
+ onSelectedItemChange: y.func,
1953
+ onHighlightedIndexChange: y.func,
1954
+ onStateChange: y.func,
1955
+ onIsOpenChange: y.func,
1956
+ scrollIntoView: y.func
1957
+ });
1958
+ function nr(e, n, o) {
1959
+ var i = n.type, r = n.props, t;
1960
+ switch (i) {
1961
+ case o.ItemMouseMove:
1962
+ t = {
1963
+ highlightedIndex: n.disabled ? -1 : n.index
1964
+ };
1965
+ break;
1966
+ case o.MenuMouseLeave:
1967
+ t = {
1968
+ highlightedIndex: -1
1969
+ };
1970
+ break;
1971
+ case o.ToggleButtonClick:
1972
+ case o.FunctionToggleMenu:
1973
+ t = {
1974
+ isOpen: !e.isOpen,
1975
+ highlightedIndex: e.isOpen ? -1 : De(r, e, 0)
1976
+ };
1977
+ break;
1978
+ case o.FunctionOpenMenu:
1979
+ t = {
1980
+ isOpen: !0,
1981
+ highlightedIndex: De(r, e, 0)
1982
+ };
1983
+ break;
1984
+ case o.FunctionCloseMenu:
1985
+ t = {
1986
+ isOpen: !1
1987
+ };
1988
+ break;
1989
+ case o.FunctionSetHighlightedIndex:
1990
+ t = {
1991
+ highlightedIndex: r.isItemDisabled(r.items[n.highlightedIndex], n.highlightedIndex) ? -1 : n.highlightedIndex
1992
+ };
1993
+ break;
1994
+ case o.FunctionSetInputValue:
1995
+ t = {
1996
+ inputValue: n.inputValue
1997
+ };
1998
+ break;
1999
+ case o.FunctionReset:
2000
+ t = {
2001
+ highlightedIndex: Ge(r),
2002
+ isOpen: ye(r, "isOpen"),
2003
+ selectedItem: ye(r, "selectedItem"),
2004
+ inputValue: ye(r, "inputValue")
2005
+ };
2006
+ break;
2007
+ default:
2008
+ throw new Error("Reducer called without proper action type.");
2009
+ }
2010
+ return F({}, e, t);
2011
+ }
2012
+ function ho(e) {
2013
+ for (var n = e.keysSoFar, o = e.highlightedIndex, i = e.items, r = e.itemToString, t = e.isItemDisabled, u = n.toLowerCase(), s = 0; s < i.length; s++) {
2014
+ var a = (s + o + (n.length < 2 ? 1 : 0)) % i.length, h = i[a];
2015
+ if (h !== void 0 && r(h).toLowerCase().startsWith(u) && !t(h, a))
2016
+ return a;
2017
+ }
2018
+ return o;
2019
+ }
2020
+ var mo = qe(qe({}, tr), { items: y.array.isRequired, isItemDisabled: y.func }), Io = qe(qe({}, Pe), { isItemDisabled: function() {
2021
+ return !1;
2022
+ } }), rr = ce;
2023
+ process.env.NODE_ENV !== "production" && (rr = function(e, n) {
2024
+ y.checkPropTypes(mo, e, "prop", n.name);
2025
+ });
2026
+ var je = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 0, mt = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_arrow_down__" : 1, It = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_arrow_up__" : 2, Xe = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_character__" : 3, yt = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_escape__" : 4, _t = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_home__" : 5, Et = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_end__" : 6, bt = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_enter__" : 7, wt = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_space_button__" : 8, xt = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_page_up__" : 9, Dt = process.env.NODE_ENV !== "production" ? "__togglebutton_keydown_page_down__" : 10, Je = process.env.NODE_ENV !== "production" ? "__togglebutton_blur__" : 11, or = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 12, ir = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 13, Ot = process.env.NODE_ENV !== "production" ? "__item_click__" : 14, ur = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, sr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, ar = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, lr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, St = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, dt = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, cr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, dr = /* @__PURE__ */ Object.freeze({
2027
+ __proto__: null,
2028
+ FunctionCloseMenu: ar,
2029
+ FunctionOpenMenu: sr,
2030
+ FunctionReset: cr,
2031
+ FunctionSelectItem: St,
2032
+ FunctionSetHighlightedIndex: lr,
2033
+ FunctionSetInputValue: dt,
2034
+ FunctionToggleMenu: ur,
2035
+ ItemClick: Ot,
2036
+ ItemMouseMove: ir,
2037
+ MenuMouseLeave: or,
2038
+ ToggleButtonBlur: Je,
2039
+ ToggleButtonClick: je,
2040
+ ToggleButtonKeyDownArrowDown: mt,
2041
+ ToggleButtonKeyDownArrowUp: It,
2042
+ ToggleButtonKeyDownCharacter: Xe,
2043
+ ToggleButtonKeyDownEnd: Et,
2044
+ ToggleButtonKeyDownEnter: bt,
2045
+ ToggleButtonKeyDownEscape: yt,
2046
+ ToggleButtonKeyDownHome: _t,
2047
+ ToggleButtonKeyDownPageDown: Dt,
2048
+ ToggleButtonKeyDownPageUp: xt,
2049
+ ToggleButtonKeyDownSpaceButton: wt
2050
+ });
2051
+ function yo(e, n) {
2052
+ var o, i = n.type, r = n.props, t = n.altKey, u;
2053
+ switch (i) {
2054
+ case Ot:
2055
+ u = {
2056
+ isOpen: ye(r, "isOpen"),
2057
+ highlightedIndex: Ge(r),
2058
+ selectedItem: r.items[n.index]
2059
+ };
2060
+ break;
2061
+ case Xe:
2062
+ {
2063
+ var s = n.key, a = "" + e.inputValue + s, h = !e.isOpen && e.selectedItem ? r.items.findIndex(function(C) {
2064
+ return r.itemToKey(C) === r.itemToKey(e.selectedItem);
2065
+ }) : e.highlightedIndex, b = ho({
2066
+ keysSoFar: a,
2067
+ highlightedIndex: h,
2068
+ items: r.items,
2069
+ itemToString: r.itemToString,
2070
+ isItemDisabled: r.isItemDisabled
2071
+ });
2072
+ u = {
2073
+ inputValue: a,
2074
+ highlightedIndex: b,
2075
+ isOpen: !0
2076
+ };
2077
+ }
2078
+ break;
2079
+ case mt:
2080
+ {
2081
+ var w = e.isOpen ? Ie(e.highlightedIndex, 1, r.items, r.isItemDisabled) : t && e.selectedItem == null ? -1 : De(r, e, 1);
2082
+ u = {
2083
+ highlightedIndex: w,
2084
+ isOpen: !0
2085
+ };
2086
+ }
2087
+ break;
2088
+ case It:
2089
+ if (e.isOpen && t)
2090
+ u = ze(r, e.highlightedIndex, !1);
2091
+ else {
2092
+ var x = e.isOpen ? Ie(e.highlightedIndex, -1, r.items, r.isItemDisabled) : De(r, e, -1);
2093
+ u = {
2094
+ highlightedIndex: x,
2095
+ isOpen: !0
2096
+ };
2097
+ }
2098
+ break;
2099
+ // only triggered when menu is open.
2100
+ case bt:
2101
+ case wt:
2102
+ u = ze(r, e.highlightedIndex, !1);
2103
+ break;
2104
+ case _t:
2105
+ u = {
2106
+ highlightedIndex: be(0, !1, r.items, r.isItemDisabled),
2107
+ isOpen: !0
2108
+ };
2109
+ break;
2110
+ case Et:
2111
+ u = {
2112
+ highlightedIndex: be(r.items.length - 1, !0, r.items, r.isItemDisabled),
2113
+ isOpen: !0
2114
+ };
2115
+ break;
2116
+ case xt:
2117
+ u = {
2118
+ highlightedIndex: Ie(e.highlightedIndex, -10, r.items, r.isItemDisabled)
2119
+ };
2120
+ break;
2121
+ case Dt:
2122
+ u = {
2123
+ highlightedIndex: Ie(e.highlightedIndex, 10, r.items, r.isItemDisabled)
2124
+ };
2125
+ break;
2126
+ case yt:
2127
+ u = {
2128
+ isOpen: !1,
2129
+ highlightedIndex: -1
2130
+ };
2131
+ break;
2132
+ case Je:
2133
+ u = F({
2134
+ isOpen: !1,
2135
+ highlightedIndex: -1
2136
+ }, e.highlightedIndex >= 0 && ((o = r.items) == null ? void 0 : o.length) && {
2137
+ selectedItem: r.items[e.highlightedIndex]
2138
+ });
2139
+ break;
2140
+ case St:
2141
+ u = {
2142
+ selectedItem: n.selectedItem
2143
+ };
2144
+ break;
2145
+ default:
2146
+ return nr(e, n, dr);
2147
+ }
2148
+ return F({}, e, u);
2149
+ }
2150
+ var _o = ["onClick"], Eo = ["onMouseLeave", "refKey", "ref"], bo = ["onBlur", "onClick", "onPress", "onKeyDown", "refKey", "ref"], wo = ["item", "index", "onMouseMove", "onClick", "onMouseDown", "onPress", "refKey", "disabled", "ref"];
2151
+ fr.stateChangeTypes = dr;
2152
+ function fr(e) {
2153
+ e === void 0 && (e = {}), rr(e, fr);
2154
+ var n = F({}, Io, e), o = n.scrollIntoView, i = n.environment, r = n.getA11yStatusMessage, t = Xn(yo, n, Jn, er), u = t[0], s = t[1], a = u.isOpen, h = u.highlightedIndex, b = u.selectedItem, w = u.inputValue, x = ie(null), C = ie(null), $ = ie({}), T = ie(null), g = zn(n), L = et({
2155
+ state: u,
2156
+ props: n
2157
+ }), d = z(function(B) {
2158
+ return $.current[g.getItemId(B)];
2159
+ }, [g]);
2160
+ ht(r, u, [a, h, b, w], i);
2161
+ var p = Qn({
2162
+ menuElement: C.current,
2163
+ highlightedIndex: h,
2164
+ isOpen: a,
2165
+ itemRefs: $,
2166
+ scrollIntoView: o,
2167
+ getItemNodeFromIndex: d
2168
+ });
2169
+ se(function() {
2170
+ return T.current = Qe(function(B) {
2171
+ B({
2172
+ type: dt,
2173
+ inputValue: ""
2174
+ });
2175
+ }, 500), function() {
2176
+ T.current.cancel();
2177
+ };
2178
+ }, []), se(function() {
2179
+ w && T.current(s);
2180
+ }, [s, w]), nt({
2181
+ props: n,
2182
+ state: u
2183
+ }), se(function() {
2184
+ var B = xe(n, "isOpen");
2185
+ B && x.current && x.current.focus();
2186
+ }, []);
2187
+ var f = Zn(i, z(function() {
2188
+ L.current.state.isOpen && s({
2189
+ type: Je
2190
+ });
2191
+ }, [s, L]), Oe(function() {
2192
+ return [C, x];
2193
+ }, [C.current, x.current])), l = tt("getMenuProps", "getToggleButtonProps");
2194
+ se(function() {
2195
+ a || ($.current = {});
2196
+ }, [a]);
2197
+ var M = Oe(function() {
2198
+ return {
2199
+ ArrowDown: function(j) {
2200
+ j.preventDefault(), s({
2201
+ type: mt,
2202
+ altKey: j.altKey
2203
+ });
2204
+ },
2205
+ ArrowUp: function(j) {
2206
+ j.preventDefault(), s({
2207
+ type: It,
2208
+ altKey: j.altKey
2209
+ });
2210
+ },
2211
+ Home: function(j) {
2212
+ j.preventDefault(), s({
2213
+ type: _t
2214
+ });
2215
+ },
2216
+ End: function(j) {
2217
+ j.preventDefault(), s({
2218
+ type: Et
2219
+ });
2220
+ },
2221
+ Escape: function() {
2222
+ L.current.state.isOpen && s({
2223
+ type: yt
2224
+ });
2225
+ },
2226
+ Enter: function(j) {
2227
+ j.preventDefault(), s({
2228
+ type: L.current.state.isOpen ? bt : je
2229
+ });
2230
+ },
2231
+ PageUp: function(j) {
2232
+ L.current.state.isOpen && (j.preventDefault(), s({
2233
+ type: xt
2234
+ }));
2235
+ },
2236
+ PageDown: function(j) {
2237
+ L.current.state.isOpen && (j.preventDefault(), s({
2238
+ type: Dt
2239
+ }));
2240
+ },
2241
+ " ": function(j) {
2242
+ j.preventDefault();
2243
+ var c = L.current.state;
2244
+ if (!c.isOpen) {
2245
+ s({
2246
+ type: je
2247
+ });
2248
+ return;
2249
+ }
2250
+ c.inputValue ? s({
2251
+ type: Xe,
2252
+ key: " "
2253
+ }) : s({
2254
+ type: wt
2255
+ });
2256
+ }
2257
+ };
2258
+ }, [s, L]), Y = z(function() {
2259
+ s({
2260
+ type: ur
2261
+ });
2262
+ }, [s]), V = z(function() {
2263
+ s({
2264
+ type: ar
2265
+ });
2266
+ }, [s]), N = z(function() {
2267
+ s({
2268
+ type: sr
2269
+ });
2270
+ }, [s]), k = z(function(B) {
2271
+ s({
2272
+ type: lr,
2273
+ highlightedIndex: B
2274
+ });
2275
+ }, [s]), K = z(function(B) {
2276
+ s({
2277
+ type: St,
2278
+ selectedItem: B
2279
+ });
2280
+ }, [s]), q = z(function() {
2281
+ s({
2282
+ type: cr
2283
+ });
2284
+ }, [s]), G = z(function(B) {
2285
+ s({
2286
+ type: dt,
2287
+ inputValue: B
2288
+ });
2289
+ }, [s]), A = z(function(B) {
2290
+ var j = B === void 0 ? {} : B, c = j.onClick, _ = de(j, _o), I = function() {
2291
+ var v;
2292
+ (v = x.current) == null || v.focus();
2293
+ };
2294
+ return F({
2295
+ id: g.labelId,
2296
+ htmlFor: g.toggleButtonId,
2297
+ onClick: X(c, I)
2298
+ }, _);
2299
+ }, [g]), re = z(function(B, j) {
2300
+ var c, _ = B === void 0 ? {} : B, I = _.onMouseLeave, m = _.refKey, v = m === void 0 ? "ref" : m, D = _.ref, O = de(_, Eo), P = j === void 0 ? {} : j, R = P.suppressRefError, U = R === void 0 ? !1 : R, H = function() {
2301
+ s({
2302
+ type: or
2303
+ });
2304
+ };
2305
+ return l("getMenuProps", U, v, C), F((c = {}, c[v] = me(D, function(W) {
2306
+ C.current = W;
2307
+ }), c.id = g.menuId, c.role = "listbox", c["aria-labelledby"] = O && O["aria-label"] ? void 0 : "" + g.labelId, c.onMouseLeave = X(I, H), c), O);
2308
+ }, [s, l, g]), te = z(function(B, j) {
2309
+ var c, _ = B === void 0 ? {} : B, I = _.onBlur, m = _.onClick;
2310
+ _.onPress;
2311
+ var v = _.onKeyDown, D = _.refKey, O = D === void 0 ? "ref" : D, P = _.ref, R = de(_, bo), U = j === void 0 ? {} : j, H = U.suppressRefError, W = H === void 0 ? !1 : H, E = L.current.state, ne = function() {
2312
+ s({
2313
+ type: je
2314
+ });
2315
+ }, S = function() {
2316
+ E.isOpen && !f.isMouseDown && s({
2317
+ type: Je
2318
+ });
2319
+ }, le = function(fe) {
2320
+ var ge = Se(fe);
2321
+ ge && M[ge] ? M[ge](fe) : go(ge) && s({
2322
+ type: Xe,
2323
+ key: ge
2324
+ });
2325
+ }, oe = F((c = {}, c[O] = me(P, function(ae) {
2326
+ x.current = ae;
2327
+ }), c["aria-activedescendant"] = E.isOpen && E.highlightedIndex > -1 ? g.getItemId(E.highlightedIndex) : "", c["aria-controls"] = g.menuId, c["aria-expanded"] = L.current.state.isOpen, c["aria-haspopup"] = "listbox", c["aria-labelledby"] = R && R["aria-label"] ? void 0 : "" + g.labelId, c.id = g.toggleButtonId, c.role = "combobox", c.tabIndex = 0, c.onBlur = X(I, S), c), R);
2328
+ return R.disabled || (oe.onClick = X(m, ne), oe.onKeyDown = X(v, le)), l("getToggleButtonProps", W, O, x), oe;
2329
+ }, [s, g, L, f, l, M]), ue = z(function(B) {
2330
+ var j, c = B === void 0 ? {} : B, _ = c.item, I = c.index, m = c.onMouseMove, v = c.onClick, D = c.onMouseDown;
2331
+ c.onPress;
2332
+ var O = c.refKey, P = O === void 0 ? "ref" : O, R = c.disabled, U = c.ref, H = de(c, wo);
2333
+ R !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');
2334
+ var W = L.current, E = W.state, ne = W.props, S = gt(_, I, ne.items, "Pass either item or index to getItemProps!"), le = S[0], oe = S[1], ae = ne.isItemDisabled(le, oe), fe = function() {
2335
+ f.isTouchEnd || oe === E.highlightedIndex || (p.current = !1, s({
2336
+ type: ir,
2337
+ index: oe,
2338
+ disabled: ae
2339
+ }));
2340
+ }, ge = function() {
2341
+ s({
2342
+ type: Ot,
2343
+ index: oe
2344
+ });
2345
+ }, Ce = function(Te) {
2346
+ return Te.preventDefault();
2347
+ }, pe = F((j = {}, j[P] = me(U, function(ve) {
2348
+ ve && ($.current[g.getItemId(oe)] = ve);
2349
+ }), j["aria-disabled"] = ae, j["aria-selected"] = le === E.selectedItem, j.id = g.getItemId(oe), j.role = "option", j), H);
2350
+ return ae || (pe.onClick = X(v, ge)), pe.onMouseMove = X(m, fe), pe.onMouseDown = X(D, Ce), pe;
2351
+ }, [L, g, f, p, s]);
2352
+ return {
2353
+ // prop getters.
2354
+ getToggleButtonProps: te,
2355
+ getLabelProps: A,
2356
+ getMenuProps: re,
2357
+ getItemProps: ue,
2358
+ // actions.
2359
+ toggleMenu: Y,
2360
+ openMenu: N,
2361
+ closeMenu: V,
2362
+ setHighlightedIndex: k,
2363
+ selectItem: K,
2364
+ reset: q,
2365
+ setInputValue: G,
2366
+ // state.
2367
+ highlightedIndex: h,
2368
+ isOpen: a,
2369
+ selectedItem: b,
2370
+ inputValue: w
2371
+ };
2372
+ }
2373
+ var Ct = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, Tt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, Pt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, Rt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, Mt = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Nt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, kt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Vt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, Kt = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, Ze = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, At = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, pr = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, gr = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, Ht = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, vr = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, hr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, mr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, Ir = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, yr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, $t = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, _r = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, Er = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, Bt = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, br = /* @__PURE__ */ Object.freeze({
2374
+ __proto__: null,
2375
+ ControlledPropUpdatedSelectedItem: Bt,
2376
+ FunctionCloseMenu: Ir,
2377
+ FunctionOpenMenu: mr,
2378
+ FunctionReset: Er,
2379
+ FunctionSelectItem: $t,
2380
+ FunctionSetHighlightedIndex: yr,
2381
+ FunctionSetInputValue: _r,
2382
+ FunctionToggleMenu: hr,
2383
+ InputBlur: Ze,
2384
+ InputChange: Kt,
2385
+ InputClick: At,
2386
+ InputKeyDownArrowDown: Ct,
2387
+ InputKeyDownArrowUp: Tt,
2388
+ InputKeyDownEnd: Mt,
2389
+ InputKeyDownEnter: Vt,
2390
+ InputKeyDownEscape: Pt,
2391
+ InputKeyDownHome: Rt,
2392
+ InputKeyDownPageDown: kt,
2393
+ InputKeyDownPageUp: Nt,
2394
+ ItemClick: Ht,
2395
+ ItemMouseMove: gr,
2396
+ MenuMouseLeave: pr,
2397
+ ToggleButtonClick: vr
2398
+ });
2399
+ function xo(e) {
2400
+ var n = Jn(e), o = n.selectedItem, i = n.inputValue;
2401
+ return i === "" && o && e.defaultInputValue === void 0 && e.initialInputValue === void 0 && e.inputValue === void 0 && (i = e.itemToString(o)), F({}, n, {
2402
+ inputValue: i
2403
+ });
2404
+ }
2405
+ var Do = F({}, tr, {
2406
+ items: y.array.isRequired,
2407
+ isItemDisabled: y.func,
2408
+ inputValue: y.string,
2409
+ defaultInputValue: y.string,
2410
+ initialInputValue: y.string,
2411
+ inputId: y.string,
2412
+ onInputValueChange: y.func
2413
+ });
2414
+ function Oo(e, n, o, i) {
2415
+ var r = ie(), t = Gn(e, n, o, i), u = t[0], s = t[1], a = Me();
2416
+ return se(function() {
2417
+ if (Ye(n, "selectedItem")) {
2418
+ if (!a) {
2419
+ var h = n.itemToKey(n.selectedItem) !== n.itemToKey(r.current);
2420
+ h && s({
2421
+ type: Bt,
2422
+ inputValue: n.itemToString(n.selectedItem)
2423
+ });
2424
+ }
2425
+ r.current = u.selectedItem === r.current ? n.selectedItem : u.selectedItem;
2426
+ }
2427
+ }, [u.selectedItem, n.selectedItem]), [Re(u, n), s];
2428
+ }
2429
+ var wr = ce;
2430
+ process.env.NODE_ENV !== "production" && (wr = function(n, o) {
2431
+ y.checkPropTypes(Do, n, "prop", o.name);
2432
+ });
2433
+ var So = F({}, Pe, {
2434
+ isItemDisabled: function() {
2435
+ return !1;
2436
+ }
2437
+ });
2438
+ function Co(e, n) {
2439
+ var o, i = n.type, r = n.props, t = n.altKey, u;
2440
+ switch (i) {
2441
+ case Ht:
2442
+ u = {
2443
+ isOpen: ye(r, "isOpen"),
2444
+ highlightedIndex: Ge(r),
2445
+ selectedItem: r.items[n.index],
2446
+ inputValue: r.itemToString(r.items[n.index])
2447
+ };
2448
+ break;
2449
+ case Ct:
2450
+ e.isOpen ? u = {
2451
+ highlightedIndex: Ie(e.highlightedIndex, 1, r.items, r.isItemDisabled, !0)
2452
+ } : u = {
2453
+ highlightedIndex: t && e.selectedItem == null ? -1 : De(r, e, 1),
2454
+ isOpen: r.items.length >= 0
2455
+ };
2456
+ break;
2457
+ case Tt:
2458
+ e.isOpen ? t ? u = ze(r, e.highlightedIndex) : u = {
2459
+ highlightedIndex: Ie(e.highlightedIndex, -1, r.items, r.isItemDisabled, !0)
2460
+ } : u = {
2461
+ highlightedIndex: De(r, e, -1),
2462
+ isOpen: r.items.length >= 0
2463
+ };
2464
+ break;
2465
+ case Vt:
2466
+ u = ze(r, e.highlightedIndex);
2467
+ break;
2468
+ case Pt:
2469
+ u = F({
2470
+ isOpen: !1,
2471
+ highlightedIndex: -1
2472
+ }, !e.isOpen && {
2473
+ selectedItem: null,
2474
+ inputValue: ""
2475
+ });
2476
+ break;
2477
+ case Nt:
2478
+ u = {
2479
+ highlightedIndex: Ie(e.highlightedIndex, -10, r.items, r.isItemDisabled, !0)
2480
+ };
2481
+ break;
2482
+ case kt:
2483
+ u = {
2484
+ highlightedIndex: Ie(e.highlightedIndex, 10, r.items, r.isItemDisabled, !0)
2485
+ };
2486
+ break;
2487
+ case Rt:
2488
+ u = {
2489
+ highlightedIndex: be(0, !1, r.items, r.isItemDisabled)
2490
+ };
2491
+ break;
2492
+ case Mt:
2493
+ u = {
2494
+ highlightedIndex: be(r.items.length - 1, !0, r.items, r.isItemDisabled)
2495
+ };
2496
+ break;
2497
+ case Ze:
2498
+ u = F({
2499
+ isOpen: !1,
2500
+ highlightedIndex: -1
2501
+ }, e.highlightedIndex >= 0 && ((o = r.items) == null ? void 0 : o.length) && n.selectItem && {
2502
+ selectedItem: r.items[e.highlightedIndex],
2503
+ inputValue: r.itemToString(r.items[e.highlightedIndex])
2504
+ });
2505
+ break;
2506
+ case Kt:
2507
+ u = {
2508
+ isOpen: !0,
2509
+ highlightedIndex: Ge(r),
2510
+ inputValue: n.inputValue
2511
+ };
2512
+ break;
2513
+ case At:
2514
+ u = {
2515
+ isOpen: !e.isOpen,
2516
+ highlightedIndex: e.isOpen ? -1 : De(r, e, 0)
2517
+ };
2518
+ break;
2519
+ case $t:
2520
+ u = {
2521
+ selectedItem: n.selectedItem,
2522
+ inputValue: r.itemToString(n.selectedItem)
2523
+ };
2524
+ break;
2525
+ case Bt:
2526
+ u = {
2527
+ inputValue: n.inputValue
2528
+ };
2529
+ break;
2530
+ default:
2531
+ return nr(e, n, br);
2532
+ }
2533
+ return F({}, e, u);
2534
+ }
2535
+ var To = ["onMouseLeave", "refKey", "ref"], Po = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Ro = ["onClick", "onPress", "refKey", "ref"], Mo = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
2536
+ xr.stateChangeTypes = br;
2537
+ function xr(e) {
2538
+ e === void 0 && (e = {}), wr(e, xr);
2539
+ var n = F({}, So, e), o = n.items, i = n.scrollIntoView, r = n.environment, t = n.getA11yStatusMessage, u = Oo(Co, n, xo, er), s = u[0], a = u[1], h = s.isOpen, b = s.highlightedIndex, w = s.selectedItem, x = s.inputValue, C = ie(null), $ = ie({}), T = ie(null), g = ie(null), L = Me(), d = zn(n), p = ie(), f = et({
2540
+ state: s,
2541
+ props: n
2542
+ }), l = z(function(I) {
2543
+ return $.current[d.getItemId(I)];
2544
+ }, [d]);
2545
+ ht(t, s, [h, b, w, x], r);
2546
+ var M = Qn({
2547
+ menuElement: C.current,
2548
+ highlightedIndex: b,
2549
+ isOpen: h,
2550
+ itemRefs: $,
2551
+ scrollIntoView: i,
2552
+ getItemNodeFromIndex: l
2553
+ });
2554
+ nt({
2555
+ props: n,
2556
+ state: s
2557
+ }), se(function() {
2558
+ var I = xe(n, "isOpen");
2559
+ I && T.current && T.current.focus();
2560
+ }, []), se(function() {
2561
+ L || (p.current = o.length);
2562
+ });
2563
+ var Y = Zn(r, z(function() {
2564
+ f.current.state.isOpen && a({
2565
+ type: Ze,
2566
+ selectItem: !1
2567
+ });
2568
+ }, [a, f]), Oe(function() {
2569
+ return [C, g, T];
2570
+ }, [C.current, g.current, T.current])), V = tt("getInputProps", "getMenuProps");
2571
+ se(function() {
2572
+ h || ($.current = {});
2573
+ }, [h]), se(function() {
2574
+ var I;
2575
+ !h || !(r != null && r.document) || !(T != null && (I = T.current) != null && I.focus) || r.document.activeElement !== T.current && T.current.focus();
2576
+ }, [h, r]);
2577
+ var N = Oe(function() {
2578
+ return {
2579
+ ArrowDown: function(m) {
2580
+ m.preventDefault(), a({
2581
+ type: Ct,
2582
+ altKey: m.altKey
2583
+ });
2584
+ },
2585
+ ArrowUp: function(m) {
2586
+ m.preventDefault(), a({
2587
+ type: Tt,
2588
+ altKey: m.altKey
2589
+ });
2590
+ },
2591
+ Home: function(m) {
2592
+ f.current.state.isOpen && (m.preventDefault(), a({
2593
+ type: Rt
2594
+ }));
2595
+ },
2596
+ End: function(m) {
2597
+ f.current.state.isOpen && (m.preventDefault(), a({
2598
+ type: Mt
2599
+ }));
2600
+ },
2601
+ Escape: function(m) {
2602
+ var v = f.current.state;
2603
+ (v.isOpen || v.inputValue || v.selectedItem || v.highlightedIndex > -1) && (m.preventDefault(), a({
2604
+ type: Pt
2605
+ }));
2606
+ },
2607
+ Enter: function(m) {
2608
+ var v = f.current.state;
2609
+ !v.isOpen || m.which === 229 || (m.preventDefault(), a({
2610
+ type: Vt
2611
+ }));
2612
+ },
2613
+ PageUp: function(m) {
2614
+ f.current.state.isOpen && (m.preventDefault(), a({
2615
+ type: Nt
2616
+ }));
2617
+ },
2618
+ PageDown: function(m) {
2619
+ f.current.state.isOpen && (m.preventDefault(), a({
2620
+ type: kt
2621
+ }));
2622
+ }
2623
+ };
2624
+ }, [a, f]), k = z(function(I) {
2625
+ return F({
2626
+ id: d.labelId,
2627
+ htmlFor: d.inputId
2628
+ }, I);
2629
+ }, [d]), K = z(function(I, m) {
2630
+ var v, D = I === void 0 ? {} : I, O = D.onMouseLeave, P = D.refKey, R = P === void 0 ? "ref" : P, U = D.ref, H = de(D, To), W = m === void 0 ? {} : m, E = W.suppressRefError, ne = E === void 0 ? !1 : E;
2631
+ return V("getMenuProps", ne, R, C), F((v = {}, v[R] = me(U, function(S) {
2632
+ C.current = S;
2633
+ }), v.id = d.menuId, v.role = "listbox", v["aria-labelledby"] = H && H["aria-label"] ? void 0 : "" + d.labelId, v.onMouseLeave = X(O, function() {
2634
+ a({
2635
+ type: pr
2636
+ });
2637
+ }), v), H);
2638
+ }, [a, V, d]), q = z(function(I) {
2639
+ var m, v, D = I === void 0 ? {} : I, O = D.item, P = D.index, R = D.refKey, U = R === void 0 ? "ref" : R, H = D.ref, W = D.onMouseMove, E = D.onMouseDown, ne = D.onClick;
2640
+ D.onPress;
2641
+ var S = D.disabled, le = de(D, Po);
2642
+ S !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
2643
+ var oe = f.current, ae = oe.props, fe = oe.state, ge = gt(O, P, ae.items, "Pass either item or index to getItemProps!"), Ce = ge[0], pe = ge[1], ve = ae.isItemDisabled(Ce, pe), Te = "onClick", Ne = ne, _e = function() {
2644
+ Y.isTouchEnd || pe === fe.highlightedIndex || (M.current = !1, a({
2645
+ type: gr,
2646
+ index: pe,
2647
+ disabled: ve
2648
+ }));
2649
+ }, we = function() {
2650
+ a({
2651
+ type: Ht,
2652
+ index: pe
2653
+ });
2654
+ }, Ee = function(Cr) {
2655
+ return Cr.preventDefault();
2656
+ };
2657
+ return F((m = {}, m[U] = me(H, function(he) {
2658
+ he && ($.current[d.getItemId(pe)] = he);
2659
+ }), m["aria-disabled"] = ve, m["aria-selected"] = pe === fe.highlightedIndex, m.id = d.getItemId(pe), m.role = "option", m), !ve && (v = {}, v[Te] = X(Ne, we), v), {
2660
+ onMouseMove: X(W, _e),
2661
+ onMouseDown: X(E, Ee)
2662
+ }, le);
2663
+ }, [a, d, f, Y, M]), G = z(function(I) {
2664
+ var m, v = I === void 0 ? {} : I, D = v.onClick;
2665
+ v.onPress;
2666
+ var O = v.refKey, P = O === void 0 ? "ref" : O, R = v.ref, U = de(v, Ro), H = f.current.state, W = function() {
2667
+ a({
2668
+ type: vr
2669
+ });
2670
+ };
2671
+ return F((m = {}, m[P] = me(R, function(E) {
2672
+ g.current = E;
2673
+ }), m["aria-controls"] = d.menuId, m["aria-expanded"] = H.isOpen, m.id = d.toggleButtonId, m.tabIndex = -1, m), !U.disabled && F({}, {
2674
+ onClick: X(D, W)
2675
+ }), U);
2676
+ }, [a, f, d]), A = z(function(I, m) {
2677
+ var v, D = I === void 0 ? {} : I, O = D.onKeyDown, P = D.onChange, R = D.onInput, U = D.onBlur;
2678
+ D.onChangeText;
2679
+ var H = D.onClick, W = D.refKey, E = W === void 0 ? "ref" : W, ne = D.ref, S = de(D, Mo), le = m === void 0 ? {} : m, oe = le.suppressRefError, ae = oe === void 0 ? !1 : oe;
2680
+ V("getInputProps", ae, E, T);
2681
+ var fe = f.current.state, ge = function(Ee) {
2682
+ var he = Se(Ee);
2683
+ he && N[he] && N[he](Ee);
2684
+ }, Ce = function(Ee) {
2685
+ a({
2686
+ type: Kt,
2687
+ inputValue: Ee.target.value
2688
+ });
2689
+ }, pe = function(Ee) {
2690
+ if (r != null && r.document && fe.isOpen && !Y.isMouseDown) {
2691
+ var he = Ee.relatedTarget === null && r.document.activeElement !== r.document.body;
2692
+ a({
2693
+ type: Ze,
2694
+ selectItem: !he
2695
+ });
2696
+ }
2697
+ }, ve = function() {
2698
+ a({
2699
+ type: At
2700
+ });
2701
+ }, Te = "onChange", Ne = {};
2702
+ if (!S.disabled) {
2703
+ var _e;
2704
+ Ne = (_e = {}, _e[Te] = X(P, R, Ce), _e.onKeyDown = X(O, ge), _e.onBlur = X(U, pe), _e.onClick = X(H, ve), _e);
2705
+ }
2706
+ return F((v = {}, v[E] = me(ne, function(we) {
2707
+ T.current = we;
2708
+ }), v["aria-activedescendant"] = fe.isOpen && fe.highlightedIndex > -1 ? d.getItemId(fe.highlightedIndex) : "", v["aria-autocomplete"] = "list", v["aria-controls"] = d.menuId, v["aria-expanded"] = fe.isOpen, v["aria-labelledby"] = S && S["aria-label"] ? void 0 : d.labelId, v.autoComplete = "off", v.id = d.inputId, v.role = "combobox", v.value = fe.inputValue, v), Ne, S);
2709
+ }, [a, d, r, N, f, Y, V]), re = z(function() {
2710
+ a({
2711
+ type: hr
2712
+ });
2713
+ }, [a]), te = z(function() {
2714
+ a({
2715
+ type: Ir
2716
+ });
2717
+ }, [a]), ue = z(function() {
2718
+ a({
2719
+ type: mr
2720
+ });
2721
+ }, [a]), B = z(function(I) {
2722
+ a({
2723
+ type: yr,
2724
+ highlightedIndex: I
2725
+ });
2726
+ }, [a]), j = z(function(I) {
2727
+ a({
2728
+ type: $t,
2729
+ selectedItem: I
2730
+ });
2731
+ }, [a]), c = z(function(I) {
2732
+ a({
2733
+ type: _r,
2734
+ inputValue: I
2735
+ });
2736
+ }, [a]), _ = z(function() {
2737
+ a({
2738
+ type: Er
2739
+ });
2740
+ }, [a]);
2741
+ return {
2742
+ // prop getters.
2743
+ getItemProps: q,
2744
+ getLabelProps: k,
2745
+ getMenuProps: K,
2746
+ getInputProps: A,
2747
+ getToggleButtonProps: G,
2748
+ // actions.
2749
+ toggleMenu: re,
2750
+ openMenu: ue,
2751
+ closeMenu: te,
2752
+ setHighlightedIndex: B,
2753
+ setInputValue: c,
2754
+ selectItem: j,
2755
+ reset: _,
2756
+ // state.
2757
+ highlightedIndex: b,
2758
+ isOpen: h,
2759
+ selectedItem: w,
2760
+ inputValue: x
2761
+ };
2762
+ }
2763
+ var Dr = {
2764
+ activeIndex: -1,
2765
+ selectedItems: []
2766
+ };
2767
+ function bn(e, n) {
2768
+ return xe(e, n, Dr);
2769
+ }
2770
+ function wn(e, n) {
2771
+ return ye(e, n, Dr);
2772
+ }
2773
+ function No(e) {
2774
+ var n = bn(e, "activeIndex"), o = bn(e, "selectedItems");
2775
+ return {
2776
+ activeIndex: n,
2777
+ selectedItems: o
2778
+ };
2779
+ }
2780
+ function xn(e) {
2781
+ if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey)
2782
+ return !1;
2783
+ var n = e.target;
2784
+ return !(n instanceof HTMLInputElement && // if element is a text input
2785
+ n.value !== "" && // and we have text in it
2786
+ // and cursor is either not at the start or is currently highlighting text.
2787
+ (n.selectionStart !== 0 || n.selectionEnd !== 0));
2788
+ }
2789
+ function ko(e, n) {
2790
+ return e.selectedItems === n.selectedItems && e.activeIndex === n.activeIndex;
2791
+ }
2792
+ var Vo = {
2793
+ stateReducer: Le.stateReducer,
2794
+ itemToKey: Le.itemToKey,
2795
+ environment: Le.environment,
2796
+ selectedItems: y.array,
2797
+ initialSelectedItems: y.array,
2798
+ defaultSelectedItems: y.array,
2799
+ getA11yStatusMessage: y.func,
2800
+ activeIndex: y.number,
2801
+ initialActiveIndex: y.number,
2802
+ defaultActiveIndex: y.number,
2803
+ onActiveIndexChange: y.func,
2804
+ onSelectedItemsChange: y.func,
2805
+ keyNavigationNext: y.string,
2806
+ keyNavigationPrevious: y.string
2807
+ }, Ko = {
2808
+ itemToKey: Pe.itemToKey,
2809
+ stateReducer: Pe.stateReducer,
2810
+ environment: Pe.environment,
2811
+ keyNavigationNext: "ArrowRight",
2812
+ keyNavigationPrevious: "ArrowLeft"
2813
+ }, Or = ce;
2814
+ process.env.NODE_ENV !== "production" && (Or = function(n, o) {
2815
+ y.checkPropTypes(Vo, n, "prop", o.name);
2816
+ });
2817
+ var Ft = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, Lt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, jt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_backspace__" : 2, Ut = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_next__" : 3, qt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_previous__" : 4, Yt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_navigation_previous__" : 5, Wt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_backspace__" : 6, zt = process.env.NODE_ENV !== "production" ? "__dropdown_click__" : 7, Gt = process.env.NODE_ENV !== "production" ? "__function_add_selected_item__" : 8, Xt = process.env.NODE_ENV !== "production" ? "__function_remove_selected_item__" : 9, Jt = process.env.NODE_ENV !== "production" ? "__function_set_selected_items__" : 10, Zt = process.env.NODE_ENV !== "production" ? "__function_set_active_index__" : 11, Qt = process.env.NODE_ENV !== "production" ? "__function_reset__" : 12, Ao = /* @__PURE__ */ Object.freeze({
2818
+ __proto__: null,
2819
+ DropdownClick: zt,
2820
+ DropdownKeyDownBackspace: Wt,
2821
+ DropdownKeyDownNavigationPrevious: Yt,
2822
+ FunctionAddSelectedItem: Gt,
2823
+ FunctionRemoveSelectedItem: Xt,
2824
+ FunctionReset: Qt,
2825
+ FunctionSetActiveIndex: Zt,
2826
+ FunctionSetSelectedItems: Jt,
2827
+ SelectedItemClick: Ft,
2828
+ SelectedItemKeyDownBackspace: jt,
2829
+ SelectedItemKeyDownDelete: Lt,
2830
+ SelectedItemKeyDownNavigationNext: Ut,
2831
+ SelectedItemKeyDownNavigationPrevious: qt
2832
+ });
2833
+ function Ho(e, n) {
2834
+ var o = n.type, i = n.index, r = n.props, t = n.selectedItem, u = e.activeIndex, s = e.selectedItems, a;
2835
+ switch (o) {
2836
+ case Ft:
2837
+ a = {
2838
+ activeIndex: i
2839
+ };
2840
+ break;
2841
+ case qt:
2842
+ a = {
2843
+ activeIndex: u - 1 < 0 ? 0 : u - 1
2844
+ };
2845
+ break;
2846
+ case Ut:
2847
+ a = {
2848
+ activeIndex: u + 1 >= s.length ? -1 : u + 1
2849
+ };
2850
+ break;
2851
+ case jt:
2852
+ case Lt: {
2853
+ if (u < 0)
2854
+ break;
2855
+ var h = u;
2856
+ s.length === 1 ? h = -1 : u === s.length - 1 && (h = s.length - 2), a = F({
2857
+ selectedItems: [].concat(s.slice(0, u), s.slice(u + 1))
2858
+ }, {
2859
+ activeIndex: h
2860
+ });
2861
+ break;
2862
+ }
2863
+ case Yt:
2864
+ a = {
2865
+ activeIndex: s.length - 1
2866
+ };
2867
+ break;
2868
+ case Wt:
2869
+ a = {
2870
+ selectedItems: s.slice(0, s.length - 1)
2871
+ };
2872
+ break;
2873
+ case Gt:
2874
+ a = {
2875
+ selectedItems: [].concat(s, [t])
2876
+ };
2877
+ break;
2878
+ case zt:
2879
+ a = {
2880
+ activeIndex: -1
2881
+ };
2882
+ break;
2883
+ case Xt: {
2884
+ var b = u, w = s.findIndex(function($) {
2885
+ return r.itemToKey($) === r.itemToKey(t);
2886
+ });
2887
+ if (w < 0)
2888
+ break;
2889
+ s.length === 1 ? b = -1 : w === s.length - 1 && (b = s.length - 2), a = {
2890
+ selectedItems: [].concat(s.slice(0, w), s.slice(w + 1)),
2891
+ activeIndex: b
2892
+ };
2893
+ break;
2894
+ }
2895
+ case Jt: {
2896
+ var x = n.selectedItems;
2897
+ a = {
2898
+ selectedItems: x
2899
+ };
2900
+ break;
2901
+ }
2902
+ case Zt: {
2903
+ var C = n.activeIndex;
2904
+ a = {
2905
+ activeIndex: C
2906
+ };
2907
+ break;
2908
+ }
2909
+ case Qt:
2910
+ a = {
2911
+ activeIndex: wn(r, "activeIndex"),
2912
+ selectedItems: wn(r, "selectedItems")
2913
+ };
2914
+ break;
2915
+ default:
2916
+ throw new Error("Reducer called without proper action type.");
2917
+ }
2918
+ return F({}, e, a);
2919
+ }
2920
+ var $o = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], Bo = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
2921
+ Sr.stateChangeTypes = Ao;
2922
+ function Sr(e) {
2923
+ e === void 0 && (e = {}), Or(e, Sr);
2924
+ var n = F({}, Ko, e), o = n.getA11yStatusMessage, i = n.environment, r = n.keyNavigationNext, t = n.keyNavigationPrevious, u = Xn(Ho, n, No, ko), s = u[0], a = u[1], h = s.activeIndex, b = s.selectedItems, w = Me(), x = ie(null), C = ie();
2925
+ C.current = [];
2926
+ var $ = et({
2927
+ state: s,
2928
+ props: n
2929
+ });
2930
+ ht(o, s, [h, b], i), se(function() {
2931
+ w || (h === -1 && x.current ? x.current.focus() : C.current[h] && C.current[h].focus());
2932
+ }, [h]), nt({
2933
+ props: n,
2934
+ state: s
2935
+ });
2936
+ var T = tt("getDropdownProps"), g = Oe(function() {
2937
+ var N;
2938
+ return N = {}, N[t] = function() {
2939
+ a({
2940
+ type: qt
2941
+ });
2942
+ }, N[r] = function() {
2943
+ a({
2944
+ type: Ut
2945
+ });
2946
+ }, N.Delete = function() {
2947
+ a({
2948
+ type: Lt
2949
+ });
2950
+ }, N.Backspace = function() {
2951
+ a({
2952
+ type: jt
2953
+ });
2954
+ }, N;
2955
+ }, [a, r, t]), L = Oe(function() {
2956
+ var N;
2957
+ return N = {}, N[t] = function(k) {
2958
+ xn(k) && a({
2959
+ type: Yt
2960
+ });
2961
+ }, N.Backspace = function(K) {
2962
+ xn(K) && a({
2963
+ type: Wt
2964
+ });
2965
+ }, N;
2966
+ }, [a, t]), d = z(function(N) {
2967
+ var k, K = N === void 0 ? {} : N, q = K.refKey, G = q === void 0 ? "ref" : q, A = K.ref, re = K.onClick, te = K.onKeyDown, ue = K.selectedItem, B = K.index, j = de(K, $o), c = $.current.state, _ = gt(ue, B, c.selectedItems, "Pass either item or index to getSelectedItemProps!"), I = _[1], m = I > -1 && I === c.activeIndex, v = function() {
2968
+ a({
2969
+ type: Ft,
2970
+ index: I
2971
+ });
2972
+ }, D = function(P) {
2973
+ var R = Se(P);
2974
+ R && g[R] && g[R](P);
2975
+ };
2976
+ return F((k = {}, k[G] = me(A, function(O) {
2977
+ O && C.current.push(O);
2978
+ }), k.tabIndex = m ? 0 : -1, k.onClick = X(re, v), k.onKeyDown = X(te, D), k), j);
2979
+ }, [a, $, g]), p = z(function(N, k) {
2980
+ var K, q = N === void 0 ? {} : N, G = q.refKey, A = G === void 0 ? "ref" : G, re = q.ref, te = q.onKeyDown, ue = q.onClick, B = q.preventKeyAction, j = B === void 0 ? !1 : B, c = de(q, Bo), _ = k === void 0 ? {} : k, I = _.suppressRefError, m = I === void 0 ? !1 : I;
2981
+ T("getDropdownProps", m, A, x);
2982
+ var v = function(P) {
2983
+ var R = Se(P);
2984
+ R && L[R] && L[R](P);
2985
+ }, D = function() {
2986
+ a({
2987
+ type: zt
2988
+ });
2989
+ };
2990
+ return F((K = {}, K[A] = me(re, function(O) {
2991
+ O && (x.current = O);
2992
+ }), K), !j && {
2993
+ onKeyDown: X(te, v),
2994
+ onClick: X(ue, D)
2995
+ }, c);
2996
+ }, [a, L, T]), f = z(function(N) {
2997
+ a({
2998
+ type: Gt,
2999
+ selectedItem: N
3000
+ });
3001
+ }, [a]), l = z(function(N) {
3002
+ a({
3003
+ type: Xt,
3004
+ selectedItem: N
3005
+ });
3006
+ }, [a]), M = z(function(N) {
3007
+ a({
3008
+ type: Jt,
3009
+ selectedItems: N
3010
+ });
3011
+ }, [a]), Y = z(function(N) {
3012
+ a({
3013
+ type: Zt,
3014
+ activeIndex: N
3015
+ });
3016
+ }, [a]), V = z(function() {
3017
+ a({
3018
+ type: Qt
3019
+ });
3020
+ }, [a]);
3021
+ return {
3022
+ getSelectedItemProps: d,
3023
+ getDropdownProps: p,
3024
+ addSelectedItem: f,
3025
+ removeSelectedItem: l,
3026
+ setSelectedItems: M,
3027
+ setActiveIndex: Y,
3028
+ reset: V,
3029
+ selectedItems: b,
3030
+ activeIndex: h
3031
+ };
3032
+ }
3033
+ export {
3034
+ fr as a,
3035
+ xr as b,
3036
+ Sr as u
3037
+ };
3038
+ //# sourceMappingURL=downshift.esm-Ncwetv0s.mjs.map