@servicetitan/anvil2 1.3.3 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/Alert-673d75aa.cjs +2 -0
  2. package/Alert-673d75aa.cjs.map +1 -0
  3. package/{Alert-012e475c.js → Alert-85a791c2.js} +29 -27
  4. package/Alert-85a791c2.js.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.js +1 -1
  7. package/Announcement.cjs +1 -1
  8. package/Announcement.cjs.map +1 -1
  9. package/Announcement.js +99 -15
  10. package/Announcement.js.map +1 -1
  11. package/AnvilProvider.cjs +1 -1
  12. package/AnvilProvider.js +1 -1
  13. package/Avatar.cjs +1 -1
  14. package/Avatar.cjs.map +1 -1
  15. package/Avatar.js +127 -12
  16. package/Avatar.js.map +1 -1
  17. package/Badge.cjs +1 -1
  18. package/Badge.cjs.map +1 -1
  19. package/Badge.js +47 -7
  20. package/Badge.js.map +1 -1
  21. package/Button.cjs +1 -1
  22. package/Button.cjs.map +1 -1
  23. package/Button.js +14 -40
  24. package/Button.js.map +1 -1
  25. package/ButtonCompound.cjs +1 -1
  26. package/ButtonCompound.cjs.map +1 -1
  27. package/ButtonCompound.js +13 -39
  28. package/ButtonCompound.js.map +1 -1
  29. package/ButtonLink.cjs +1 -1
  30. package/ButtonLink.cjs.map +1 -1
  31. package/ButtonLink.js +14 -40
  32. package/ButtonLink.js.map +1 -1
  33. package/ButtonToggle.cjs +1 -1
  34. package/ButtonToggle.cjs.map +1 -1
  35. package/ButtonToggle.js +14 -40
  36. package/ButtonToggle.js.map +1 -1
  37. package/Calendar.cjs +1 -1
  38. package/Calendar.cjs.map +1 -1
  39. package/Calendar.js +5812 -24
  40. package/Calendar.js.map +1 -1
  41. package/Card.cjs +1 -1
  42. package/Card.cjs.map +1 -1
  43. package/Card.js +52 -6
  44. package/Card.js.map +1 -1
  45. package/Checkbox-634c4d3d.js +164 -0
  46. package/Checkbox-634c4d3d.js.map +1 -0
  47. package/Checkbox-d1db5a71.cjs +2 -0
  48. package/Checkbox-d1db5a71.cjs.map +1 -0
  49. package/Checkbox.cjs +1 -1
  50. package/Checkbox.cjs.map +1 -1
  51. package/Checkbox.css +1 -0
  52. package/Checkbox.js +23 -49
  53. package/Checkbox.js.map +1 -1
  54. package/{Chip-6dde28bc.js → Chip-73b032eb.js} +36 -34
  55. package/Chip-73b032eb.js.map +1 -0
  56. package/Chip-88873569.cjs +2 -0
  57. package/Chip-88873569.cjs.map +1 -0
  58. package/Chip.cjs +1 -1
  59. package/Chip.js +1 -1
  60. package/Combobox.cjs +41 -1
  61. package/Combobox.cjs.map +1 -1
  62. package/Combobox.js +4177 -76
  63. package/Combobox.js.map +1 -1
  64. package/Details.cjs +1 -1
  65. package/Details.cjs.map +1 -1
  66. package/Details.js +153 -50
  67. package/Details.js.map +1 -1
  68. package/Dialog-1984afe2.js +214 -0
  69. package/Dialog-1984afe2.js.map +1 -0
  70. package/Dialog-de6969a2.cjs +2 -0
  71. package/Dialog-de6969a2.cjs.map +1 -0
  72. package/Dialog.cjs +1 -1
  73. package/Dialog.cjs.map +1 -1
  74. package/Dialog.css +1 -0
  75. package/Dialog.js +38 -64
  76. package/Dialog.js.map +1 -1
  77. package/Divider.cjs +1 -1
  78. package/Divider.cjs.map +1 -1
  79. package/Divider.js +76 -7
  80. package/Divider.js.map +1 -1
  81. package/Drawer.cjs +1 -1
  82. package/Drawer.cjs.map +1 -1
  83. package/Drawer.js +242 -70
  84. package/Drawer.js.map +1 -1
  85. package/{Flex-d338e855.js → Flex-d06c75c0.js} +18 -17
  86. package/Flex-d06c75c0.js.map +1 -0
  87. package/Flex-da1ad9db.cjs +2 -0
  88. package/Flex-da1ad9db.cjs.map +1 -0
  89. package/Flex.cjs +1 -1
  90. package/Flex.js +1 -1
  91. package/Grid.cjs +1 -1
  92. package/Grid.cjs.map +1 -1
  93. package/Grid.js +90 -6
  94. package/Grid.js.map +1 -1
  95. package/{Helper-74a1f07f-61317df2.cjs → Helper-74a1f07f-8fcd0721.cjs} +2 -2
  96. package/{Helper-74a1f07f-61317df2.cjs.map → Helper-74a1f07f-8fcd0721.cjs.map} +1 -1
  97. package/{Helper-74a1f07f-092263c4.js → Helper-74a1f07f-d017affe.js} +3 -3
  98. package/{Helper-74a1f07f-092263c4.js.map → Helper-74a1f07f-d017affe.js.map} +1 -1
  99. package/Icon-847b3515.cjs +2 -0
  100. package/Icon-847b3515.cjs.map +1 -0
  101. package/{Icon-b94f924c.js → Icon-be690f0b.js} +13 -12
  102. package/Icon-be690f0b.js.map +1 -0
  103. package/Icon.cjs +1 -1
  104. package/Icon.js +1 -1
  105. package/Label-854a39e4.js +47 -0
  106. package/Label-854a39e4.js.map +1 -0
  107. package/Label-e2593298.cjs +2 -0
  108. package/Label-e2593298.cjs.map +1 -0
  109. package/Label.css +1 -0
  110. package/Layout.cjs +1 -1
  111. package/Layout.cjs.map +1 -1
  112. package/Layout.js +21 -21
  113. package/Layout.js.map +1 -1
  114. package/Link.cjs +1 -1
  115. package/Link.cjs.map +1 -1
  116. package/Link.js +17 -43
  117. package/Link.js.map +1 -1
  118. package/ListView.cjs +1 -1
  119. package/ListView.cjs.map +1 -1
  120. package/ListView.css +1 -1
  121. package/ListView.js +412 -24
  122. package/ListView.js.map +1 -1
  123. package/ListView.module-854f2491-1f87d388.cjs +2 -0
  124. package/ListView.module-854f2491-1f87d388.cjs.map +1 -0
  125. package/ListView.module-854f2491-c5eba193.js +11 -0
  126. package/ListView.module-854f2491-c5eba193.js.map +1 -0
  127. package/Listbox.cjs +1 -1
  128. package/Listbox.cjs.map +1 -1
  129. package/Listbox.js +403 -25
  130. package/Listbox.js.map +1 -1
  131. package/Listbox.module-2120a0a7-794d64a0.cjs +2 -0
  132. package/Listbox.module-2120a0a7-794d64a0.cjs.map +1 -0
  133. package/Listbox.module-2120a0a7-aa22f0ed.js +13 -0
  134. package/Listbox.module-2120a0a7-aa22f0ed.js.map +1 -0
  135. package/LocalizationProvider.cjs +1 -1
  136. package/LocalizationProvider.cjs.map +1 -1
  137. package/LocalizationProvider.js +11 -10
  138. package/LocalizationProvider.js.map +1 -1
  139. package/Menu.cjs +1 -1
  140. package/Menu.cjs.map +1 -1
  141. package/Menu.js +320 -51
  142. package/Menu.js.map +1 -1
  143. package/Overflow-057bbf4e.cjs +2 -0
  144. package/Overflow-057bbf4e.cjs.map +1 -0
  145. package/Overflow-a026904d.js +249 -0
  146. package/Overflow-a026904d.js.map +1 -0
  147. package/Overflow.cjs +1 -1
  148. package/Overflow.cjs.map +1 -1
  149. package/Overflow.css +1 -0
  150. package/Overflow.js +23 -49
  151. package/Overflow.js.map +1 -1
  152. package/Page.cjs +1 -1
  153. package/Page.cjs.map +1 -1
  154. package/Page.js +12 -11
  155. package/Page.js.map +1 -1
  156. package/Popover-aaeea980.js +272 -0
  157. package/Popover-aaeea980.js.map +1 -0
  158. package/Popover-e336dabc.cjs +2 -0
  159. package/Popover-e336dabc.cjs.map +1 -0
  160. package/Popover.cjs +1 -1
  161. package/Popover.cjs.map +1 -1
  162. package/Popover.css +1 -0
  163. package/Popover.js +34 -60
  164. package/Popover.js.map +1 -1
  165. package/ProgressBar.cjs +1 -1
  166. package/ProgressBar.cjs.map +1 -1
  167. package/ProgressBar.js +121 -7
  168. package/ProgressBar.js.map +1 -1
  169. package/Radio.cjs +1 -1
  170. package/Radio.cjs.map +1 -1
  171. package/Radio.js +142 -50
  172. package/Radio.js.map +1 -1
  173. package/SegmentedControl.cjs +1 -1
  174. package/SegmentedControl.cjs.map +1 -1
  175. package/SegmentedControl.js +133 -58
  176. package/SegmentedControl.js.map +1 -1
  177. package/SideNav.cjs +1 -29
  178. package/SideNav.cjs.map +1 -1
  179. package/SideNav.js +258 -1139
  180. package/SideNav.js.map +1 -1
  181. package/SrOnly-0c7fd87a.js +13 -0
  182. package/{SrOnly-864bd4cb.js.map → SrOnly-0c7fd87a.js.map} +1 -1
  183. package/SrOnly-91a467dc.cjs +2 -0
  184. package/{SrOnly-88e8fca6.cjs.map → SrOnly-91a467dc.cjs.map} +1 -1
  185. package/SrOnly.cjs +1 -1
  186. package/SrOnly.js +1 -1
  187. package/Stepper.cjs +1 -1
  188. package/Stepper.cjs.map +1 -1
  189. package/Stepper.js +430 -47
  190. package/Stepper.js.map +1 -1
  191. package/Switch.cjs +1 -1
  192. package/Switch.cjs.map +1 -1
  193. package/Switch.js +67 -44
  194. package/Switch.js.map +1 -1
  195. package/Tab.cjs +9 -1
  196. package/Tab.cjs.map +1 -1
  197. package/Tab.js +436 -24
  198. package/Tab.js.map +1 -1
  199. package/{Text-465104f6.js → Text-08c90c22.js} +30 -29
  200. package/Text-08c90c22.js.map +1 -0
  201. package/Text-8ed03ac7.cjs +2 -0
  202. package/Text-8ed03ac7.cjs.map +1 -0
  203. package/Text.cjs +1 -1
  204. package/Text.js +1 -1
  205. package/TextField.cjs +1 -1
  206. package/TextField.cjs.map +1 -1
  207. package/TextField.js +156 -47
  208. package/TextField.js.map +1 -1
  209. package/Textarea.cjs +1 -1
  210. package/Textarea.cjs.map +1 -1
  211. package/Textarea.js +260 -45
  212. package/Textarea.js.map +1 -1
  213. package/ThemeProvider.cjs +1 -1
  214. package/ThemeProvider.js +1 -1
  215. package/Toast.cjs +8 -1
  216. package/Toast.cjs.map +1 -1
  217. package/Toast.js +568 -9
  218. package/Toast.js.map +1 -1
  219. package/Tooltip-2ecbf35e.cjs +2 -0
  220. package/Tooltip-2ecbf35e.cjs.map +1 -0
  221. package/Tooltip-dcc5d45c.js +157 -0
  222. package/Tooltip-dcc5d45c.js.map +1 -0
  223. package/Tooltip.cjs +1 -1
  224. package/Tooltip.cjs.map +1 -1
  225. package/Tooltip.css +1 -0
  226. package/Tooltip.js +18 -44
  227. package/Tooltip.js.map +1 -1
  228. package/anvil2.cjs +1 -1
  229. package/anvil2.d.ts +18 -6
  230. package/anvil2.js +161 -183
  231. package/anvil2.js.map +1 -1
  232. package/check_circle-48e002d3-0d49b2da.cjs +2 -0
  233. package/check_circle-48e002d3-0d49b2da.cjs.map +1 -0
  234. package/check_circle-48e002d3-5838521c.js +7 -0
  235. package/check_circle-48e002d3-5838521c.js.map +1 -0
  236. package/chevron_right-5b0931b5-96f8a9c6.cjs +2 -0
  237. package/chevron_right-5b0931b5-96f8a9c6.cjs.map +1 -0
  238. package/chevron_right-5b0931b5-ac35ad56.js +6 -0
  239. package/chevron_right-5b0931b5-ac35ad56.js.map +1 -0
  240. package/childrenToString-0cd30a27.cjs +2 -0
  241. package/childrenToString-0cd30a27.cjs.map +1 -0
  242. package/childrenToString-416df522.js +19 -0
  243. package/childrenToString-416df522.js.map +1 -0
  244. package/extends-31d75778.js +27 -0
  245. package/extends-31d75778.js.map +1 -0
  246. package/extends-60b54772.cjs +2 -0
  247. package/extends-60b54772.cjs.map +1 -0
  248. package/getKeyboardFocusableElements-58a00025.js +14 -0
  249. package/getKeyboardFocusableElements-58a00025.js.map +1 -0
  250. package/getKeyboardFocusableElements-aba1bd01.cjs +2 -0
  251. package/getKeyboardFocusableElements-aba1bd01.cjs.map +1 -0
  252. package/index-04060912.js +3677 -0
  253. package/index-04060912.js.map +1 -0
  254. package/index-06c0bdf0.js +480 -0
  255. package/index-06c0bdf0.js.map +1 -0
  256. package/index-11b6ca91-14b4e485.js +63 -0
  257. package/index-11b6ca91-14b4e485.js.map +1 -0
  258. package/index-11b6ca91-d30fd1d3.cjs +2 -0
  259. package/index-11b6ca91-d30fd1d3.cjs.map +1 -0
  260. package/{index-acdc415f.cjs → index-1f4f169d.cjs} +2 -2
  261. package/{index-acdc415f.cjs.map → index-1f4f169d.cjs.map} +1 -1
  262. package/index-40821bc4.cjs +2 -0
  263. package/index-40821bc4.cjs.map +1 -0
  264. package/{index-ab05dabf.js → index-47e4931c.js} +3 -3
  265. package/{index-ab05dabf.js.map → index-47e4931c.js.map} +1 -1
  266. package/index-49242812.js +59 -0
  267. package/index-49242812.js.map +1 -0
  268. package/index-69174413.cjs +5 -0
  269. package/index-69174413.cjs.map +1 -0
  270. package/index-902bf2b0.js +56 -0
  271. package/index-902bf2b0.js.map +1 -0
  272. package/index-a53df036.cjs +2 -0
  273. package/index-a53df036.cjs.map +1 -0
  274. package/{index-e0f6271a.js → index-c6e22bb9.js} +6 -6
  275. package/{index-e0f6271a.js.map → index-c6e22bb9.js.map} +1 -1
  276. package/index-dcf78e3f.cjs +2 -0
  277. package/index-dcf78e3f.cjs.map +1 -0
  278. package/{index-3a4e28a9-3d7ba14f.js → index-eb2e706f-03380994.js} +19 -18
  279. package/index-eb2e706f-03380994.js.map +1 -0
  280. package/index-eb2e706f-ff6c4157.cjs +2 -0
  281. package/index-eb2e706f-ff6c4157.cjs.map +1 -0
  282. package/{index-67d20edb.cjs → index-ef2e9d11.cjs} +2 -2
  283. package/{index-67d20edb.cjs.map → index-ef2e9d11.cjs.map} +1 -1
  284. package/index.css +1 -1
  285. package/index11.css +1 -0
  286. package/index12.css +1 -0
  287. package/index13.css +1 -0
  288. package/index14.css +1 -0
  289. package/index15.css +1 -0
  290. package/index16.css +1 -0
  291. package/index18.css +1 -0
  292. package/index19.css +1 -0
  293. package/index2.css +1 -1
  294. package/index21.css +1 -0
  295. package/index22.css +1 -0
  296. package/index24.css +1 -0
  297. package/index3.css +1 -1
  298. package/index6.css +1 -0
  299. package/index7.css +1 -0
  300. package/index9.css +1 -0
  301. package/info-af4c0112-9f16129f.cjs +2 -0
  302. package/info-af4c0112-9f16129f.cjs.map +1 -0
  303. package/info-af4c0112-f73c8f68.js +6 -0
  304. package/info-af4c0112-f73c8f68.js.map +1 -0
  305. package/package.json +2 -2
  306. package/tinycolor-3b50a250.cjs +2 -0
  307. package/tinycolor-3b50a250.cjs.map +1 -0
  308. package/tinycolor-d415b1fd.js +712 -0
  309. package/tinycolor-d415b1fd.js.map +1 -0
  310. package/token.cjs +1 -1
  311. package/token.js +1 -1
  312. package/useAccessibleColor.cjs +1 -1
  313. package/useAccessibleColor.cjs.map +1 -1
  314. package/useAccessibleColor.d.ts +1 -1
  315. package/useAccessibleColor.js +36 -32
  316. package/useAccessibleColor.js.map +1 -1
  317. package/useLayoutPropsUtil-cd33328b.cjs +2 -0
  318. package/useLayoutPropsUtil-cd33328b.cjs.map +1 -0
  319. package/useLayoutPropsUtil-f34e9597.js +160 -0
  320. package/useLayoutPropsUtil-f34e9597.js.map +1 -0
  321. package/useLinkStyles.cjs +1 -1
  322. package/useLinkStyles.d.ts +2 -2
  323. package/useLinkStyles.js +3 -31
  324. package/useLinkStyles.js.map +1 -1
  325. package/useMergeRefs.cjs +1 -1
  326. package/useMergeRefs.d.ts +1 -1
  327. package/useMergeRefs.js +3 -32
  328. package/useMergeRefs.js.map +1 -1
  329. package/usePrefersColorScheme.cjs +1 -1
  330. package/usePrefersColorScheme.cjs.map +1 -1
  331. package/usePrefersColorScheme.d.ts +1 -1
  332. package/usePrefersColorScheme.js +19 -32
  333. package/usePrefersColorScheme.js.map +1 -1
  334. package/useSwipe.cjs +1 -1
  335. package/useSwipe.cjs.map +1 -1
  336. package/useSwipe.d.ts +1 -1
  337. package/useSwipe.js +15 -32
  338. package/useSwipe.js.map +1 -1
  339. package/Alert-012e475c.js.map +0 -1
  340. package/Alert-066f00f2.cjs +0 -2
  341. package/Alert-066f00f2.cjs.map +0 -1
  342. package/Announcement-cd9602ed.cjs +0 -2
  343. package/Announcement-cd9602ed.cjs.map +0 -1
  344. package/Announcement-f9b09ba3.js +0 -88
  345. package/Announcement-f9b09ba3.js.map +0 -1
  346. package/Announcement.css +0 -1
  347. package/Badge-b8764640.cjs +0 -2
  348. package/Badge-b8764640.cjs.map +0 -1
  349. package/Badge-df96f15a.js +0 -45
  350. package/Badge-df96f15a.js.map +0 -1
  351. package/Badge.css +0 -1
  352. package/Calendar-31bcb381.js +0 -5797
  353. package/Calendar-31bcb381.js.map +0 -1
  354. package/Calendar-d0baf4b1.cjs +0 -2
  355. package/Calendar-d0baf4b1.cjs.map +0 -1
  356. package/Card-20628287.cjs +0 -2
  357. package/Card-20628287.cjs.map +0 -1
  358. package/Card-bb358803.js +0 -51
  359. package/Card-bb358803.js.map +0 -1
  360. package/Chip-5b63e48c.cjs +0 -2
  361. package/Chip-5b63e48c.cjs.map +0 -1
  362. package/Chip-6dde28bc.js.map +0 -1
  363. package/Divider-6646eeb8.cjs +0 -2
  364. package/Divider-6646eeb8.cjs.map +0 -1
  365. package/Divider-b3bff73a.js +0 -74
  366. package/Divider-b3bff73a.js.map +0 -1
  367. package/Flex-971b5295.cjs +0 -2
  368. package/Flex-971b5295.cjs.map +0 -1
  369. package/Flex-d338e855.js.map +0 -1
  370. package/Grid-37ded954.cjs +0 -2
  371. package/Grid-37ded954.cjs.map +0 -1
  372. package/Grid-5bad450f.js +0 -89
  373. package/Grid-5bad450f.js.map +0 -1
  374. package/Icon-57c31c9b.cjs +0 -2
  375. package/Icon-57c31c9b.cjs.map +0 -1
  376. package/Icon-b94f924c.js.map +0 -1
  377. package/ListView-3b1adecb.js +0 -557
  378. package/ListView-3b1adecb.js.map +0 -1
  379. package/ListView-88e49b19.cjs +0 -2
  380. package/ListView-88e49b19.cjs.map +0 -1
  381. package/Listbox-60fbdaa1.js +0 -394
  382. package/Listbox-60fbdaa1.js.map +0 -1
  383. package/Listbox-cd5c4185.cjs +0 -2
  384. package/Listbox-cd5c4185.cjs.map +0 -1
  385. package/ProgressBar-c1b5c7c3.js +0 -516
  386. package/ProgressBar-c1b5c7c3.js.map +0 -1
  387. package/ProgressBar-fa511478.cjs +0 -2
  388. package/ProgressBar-fa511478.cjs.map +0 -1
  389. package/ProgressBar.css +0 -1
  390. package/SideNav-33a404ec.js +0 -935
  391. package/SideNav-33a404ec.js.map +0 -1
  392. package/SideNav-47435e45.cjs +0 -21
  393. package/SideNav-47435e45.cjs.map +0 -1
  394. package/SrOnly-864bd4cb.js +0 -13
  395. package/SrOnly-88e8fca6.cjs +0 -2
  396. package/Stepper-7e3a130c.js +0 -633
  397. package/Stepper-7e3a130c.js.map +0 -1
  398. package/Stepper-8675700c.cjs +0 -2
  399. package/Stepper-8675700c.cjs.map +0 -1
  400. package/Stepper.css +0 -1
  401. package/Tab-1fce1d41.js +0 -422
  402. package/Tab-1fce1d41.js.map +0 -1
  403. package/Tab-f843e740.cjs +0 -10
  404. package/Tab-f843e740.cjs.map +0 -1
  405. package/Text-465104f6.js.map +0 -1
  406. package/Text-631c229a.cjs +0 -2
  407. package/Text-631c229a.cjs.map +0 -1
  408. package/Toast-32a4ab22.cjs +0 -9
  409. package/Toast-32a4ab22.cjs.map +0 -1
  410. package/Toast-6cd7d2e1.js +0 -566
  411. package/Toast-6cd7d2e1.js.map +0 -1
  412. package/check_circle-48e002d3-0554de7d.js +0 -8
  413. package/check_circle-48e002d3-0554de7d.js.map +0 -1
  414. package/check_circle-48e002d3-57364fcd.cjs +0 -2
  415. package/check_circle-48e002d3-57364fcd.cjs.map +0 -1
  416. package/floating-ui.react-51a3fa68.js +0 -23242
  417. package/floating-ui.react-51a3fa68.js.map +0 -1
  418. package/floating-ui.react-5347095a.cjs +0 -178
  419. package/floating-ui.react-5347095a.cjs.map +0 -1
  420. package/index-3a4e28a9-3d7ba14f.js.map +0 -1
  421. package/index-3a4e28a9-b649e635.cjs +0 -2
  422. package/index-3a4e28a9-b649e635.cjs.map +0 -1
  423. package/index-3f218083.js +0 -58
  424. package/index-3f218083.js.map +0 -1
  425. package/index-63e13299.cjs +0 -2
  426. package/index-63e13299.cjs.map +0 -1
  427. package/index-9948e3af.cjs +0 -23
  428. package/index-9948e3af.cjs.map +0 -1
  429. package/index-d46fa8de-c02f7a12.cjs +0 -2
  430. package/index-d46fa8de-c02f7a12.cjs.map +0 -1
  431. package/index-d46fa8de-f8bf17b6.js +0 -540
  432. package/index-d46fa8de-f8bf17b6.js.map +0 -1
  433. package/index-f7658447-1cfbda8f.js +0 -120
  434. package/index-f7658447-1cfbda8f.js.map +0 -1
  435. package/index-f7658447-f447ade8.cjs +0 -2
  436. package/index-f7658447-f447ade8.cjs.map +0 -1
  437. package/index-f7658447.css +0 -1
  438. package/index-ff5fea63.js +0 -5015
  439. package/index-ff5fea63.js.map +0 -1
  440. package/useLayoutPropsUtil-e307abc7-3826ee09.cjs +0 -2
  441. package/useLayoutPropsUtil-e307abc7-3826ee09.cjs.map +0 -1
  442. package/useLayoutPropsUtil-e307abc7-cbe2fb6d.js +0 -869
  443. package/useLayoutPropsUtil-e307abc7-cbe2fb6d.js.map +0 -1
  444. package/usePrefersColorScheme-129544ad-59e2e284.cjs +0 -2
  445. package/usePrefersColorScheme-129544ad-59e2e284.cjs.map +0 -1
  446. package/usePrefersColorScheme-129544ad-cab6fc3f.js +0 -55
  447. package/usePrefersColorScheme-129544ad-cab6fc3f.js.map +0 -1
  448. package/useSwipe-82769b09-835234e6.js +0 -17
  449. package/useSwipe-82769b09-835234e6.js.map +0 -1
  450. package/useSwipe-82769b09-dba26ed2.cjs +0 -2
  451. package/useSwipe-82769b09-dba26ed2.cjs.map +0 -1
  452. /package/{index-3a4e28a9.css → index-eb2e706f.css} +0 -0
  453. /package/{Grid.css → index10.css} +0 -0
  454. /package/{SideNav.css → index17.css} +0 -0
  455. /package/{Tab.css → index20.css} +0 -0
  456. /package/{Toast.css → index23.css} +0 -0
  457. /package/{Calendar.css → index4.css} +0 -0
  458. /package/{Card.css → index5.css} +0 -0
  459. /package/{Divider.css → index8.css} +0 -0
package/Combobox.js CHANGED
@@ -1,82 +1,4183 @@
1
- import { j as o } from "./jsx-runtime-82a9ddf6.js";
2
- import { y as i, C as n } from "./index-ff5fea63.js";
3
- import { useTrackingId as e } from "./useTrackingId.js";
4
- import "./Alert-012e475c.js";
5
- import "./Announcement-f9b09ba3.js";
6
- import "./index-f7658447-1cfbda8f.js";
7
- import "./Badge-df96f15a.js";
8
- import "./index-3a4e28a9-3d7ba14f.js";
9
- import "./Calendar-31bcb381.js";
10
- import "./Card-bb358803.js";
11
- import "./ListView-3b1adecb.js";
12
- import "./Chip-6dde28bc.js";
13
- import "./ProgressBar-c1b5c7c3.js";
14
- import "./Divider-b3bff73a.js";
15
- import "./Flex-d338e855.js";
16
- import "./Grid-5bad450f.js";
17
- import "./Icon-b94f924c.js";
18
- import "./Listbox-60fbdaa1.js";
19
- import "./Stepper-7e3a130c.js";
20
- import "./SideNav-33a404ec.js";
21
- import "./SrOnly-864bd4cb.js";
22
- import "./jsx-runtime-944c88e2-e73fa629.js";
23
- import "./index-e0f6271a.js";
24
- import "./Tab-1fce1d41.js";
25
- import "./Text-465104f6.js";
26
- import "./Toast-6cd7d2e1.js";
27
- import "./index-d46fa8de-f8bf17b6.js";
28
- import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
29
- import "react";
30
- import "./index-3f218083.js";
31
- import "./LocalizationProvider.js";
32
- const a = function(t) {
33
- return /* @__PURE__ */ o.jsx(i, { ...t });
34
- }, c = function(t) {
35
- const r = {
36
- label: n(t.label),
37
- size: t.size,
38
- required: t.required,
39
- moreInfo: t.moreInfo,
40
- openMoreInfo: t.openMoreInfo,
41
- description: n(t.description),
42
- hint: t.hint,
43
- labelProps: t.labelProps
44
- }, m = e({
1
+ import "./index6.css";
2
+ import { j as Ne } from "./jsx-runtime-82a9ddf6.js";
3
+ import { f as z } from "./jsx-runtime-944c88e2-e73fa629.js";
4
+ import Ge, { useRef as ae, useCallback as se, useEffect as ce, useMemo as lt, cloneElement as Sr, useLayoutEffect as Rn, useReducer as Cr, Component as Dr, createContext as Tr, useState as fe, useId as Qt, useContext as Pr } from "react";
5
+ import { _ as q, a as ge } from "./extends-31d75778.js";
6
+ import { g as Nn } from "./_commonjsHelpers-c5d32002.js";
7
+ import { G as Te } from "./index-c6e22bb9.js";
8
+ import { j as Rr } from "./Flex-d06c75c0.js";
9
+ import { J as ht, k as Nr } from "./Popover-aaeea980.js";
10
+ import { j as Mr } from "./Label-854a39e4.js";
11
+ import { S as Zt } from "./index-eb2e706f-03380994.js";
12
+ import { A as en } from "./Chip-73b032eb.js";
13
+ import { C as Ar } from "./Icon-be690f0b.js";
14
+ import { r as kr } from "./Checkbox-634c4d3d.js";
15
+ import { $ as tn } from "./Text-08c90c22.js";
16
+ import { a as Vr } from "./close-064c8acc-7e0b4df7.js";
17
+ import { a as Hr } from "./chevron_right-5b0931b5-ac35ad56.js";
18
+ import { a as Kr } from "./check-5f087ea0-b5474547.js";
19
+ import { v as jr } from "./Helper-74a1f07f-d017affe.js";
20
+ /* empty css */import { i as Mn } from "./Listbox.module-2120a0a7-aa22f0ed.js";
21
+ import { t as ct } from "./ListView.module-854f2491-c5eba193.js";
22
+ import "./tinycolor-d415b1fd.js";
23
+ import { J as An } from "./useLayoutPropsUtil-f34e9597.js";
24
+ import { useTrackingId as kn } from "./useTrackingId.js";
25
+ import { n as nn } from "./childrenToString-416df522.js";
26
+ function rn(e) {
27
+ if (e === void 0)
28
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
29
+ return e;
30
+ }
31
+ function dt(e, n) {
32
+ return dt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
33
+ return r.__proto__ = i, r;
34
+ }, dt(e, n);
35
+ }
36
+ function $r(e, n) {
37
+ e.prototype = Object.create(n.prototype), e.prototype.constructor = e, dt(e, n);
38
+ }
39
+ var ft = { exports: {} }, Ue = { exports: {} }, Z = {};
40
+ /** @license React v16.13.1
41
+ * react-is.production.min.js
42
+ *
43
+ * Copyright (c) Facebook, Inc. and its affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */
48
+ var on;
49
+ function Fr() {
50
+ if (on)
51
+ return Z;
52
+ on = 1;
53
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, C = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
54
+ function m(l) {
55
+ if (typeof l == "object" && l !== null) {
56
+ var T = l.$$typeof;
57
+ switch (T) {
58
+ case n:
59
+ switch (l = l.type, l) {
60
+ case c:
61
+ case d:
62
+ case i:
63
+ case t:
64
+ case o:
65
+ case h:
66
+ return l;
67
+ default:
68
+ switch (l = l && l.$$typeof, l) {
69
+ case u:
70
+ case a:
71
+ case O:
72
+ case D:
73
+ case s:
74
+ return l;
75
+ default:
76
+ return T;
77
+ }
78
+ }
79
+ case r:
80
+ return T;
81
+ }
82
+ }
83
+ }
84
+ function f(l) {
85
+ return m(l) === d;
86
+ }
87
+ return Z.AsyncMode = c, Z.ConcurrentMode = d, Z.ContextConsumer = u, Z.ContextProvider = s, Z.Element = n, Z.ForwardRef = a, Z.Fragment = i, Z.Lazy = O, Z.Memo = D, Z.Portal = r, Z.Profiler = t, Z.StrictMode = o, Z.Suspense = h, Z.isAsyncMode = function(l) {
88
+ return f(l) || m(l) === c;
89
+ }, Z.isConcurrentMode = f, Z.isContextConsumer = function(l) {
90
+ return m(l) === u;
91
+ }, Z.isContextProvider = function(l) {
92
+ return m(l) === s;
93
+ }, Z.isElement = function(l) {
94
+ return typeof l == "object" && l !== null && l.$$typeof === n;
95
+ }, Z.isForwardRef = function(l) {
96
+ return m(l) === a;
97
+ }, Z.isFragment = function(l) {
98
+ return m(l) === i;
99
+ }, Z.isLazy = function(l) {
100
+ return m(l) === O;
101
+ }, Z.isMemo = function(l) {
102
+ return m(l) === D;
103
+ }, Z.isPortal = function(l) {
104
+ return m(l) === r;
105
+ }, Z.isProfiler = function(l) {
106
+ return m(l) === t;
107
+ }, Z.isStrictMode = function(l) {
108
+ return m(l) === o;
109
+ }, Z.isSuspense = function(l) {
110
+ return m(l) === h;
111
+ }, Z.isValidElementType = function(l) {
112
+ return typeof l == "string" || typeof l == "function" || l === i || l === d || l === t || l === o || l === h || l === C || typeof l == "object" && l !== null && (l.$$typeof === O || l.$$typeof === D || l.$$typeof === s || l.$$typeof === u || l.$$typeof === a || l.$$typeof === g || l.$$typeof === K || l.$$typeof === p || l.$$typeof === N);
113
+ }, Z.typeOf = m, Z;
114
+ }
115
+ var ee = {};
116
+ /** @license React v16.13.1
117
+ * react-is.development.js
118
+ *
119
+ * Copyright (c) Facebook, Inc. and its affiliates.
120
+ *
121
+ * This source code is licensed under the MIT license found in the
122
+ * LICENSE file in the root directory of this source tree.
123
+ */
124
+ var sn;
125
+ function Lr() {
126
+ return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
127
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, C = e ? Symbol.for("react.suspense_list") : 60120, D = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
128
+ function m(_) {
129
+ return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
130
+ _ === i || _ === d || _ === t || _ === o || _ === h || _ === C || typeof _ == "object" && _ !== null && (_.$$typeof === O || _.$$typeof === D || _.$$typeof === s || _.$$typeof === u || _.$$typeof === a || _.$$typeof === g || _.$$typeof === K || _.$$typeof === p || _.$$typeof === N);
131
+ }
132
+ function f(_) {
133
+ if (typeof _ == "object" && _ !== null) {
134
+ var G = _.$$typeof;
135
+ switch (G) {
136
+ case n:
137
+ var P = _.type;
138
+ switch (P) {
139
+ case c:
140
+ case d:
141
+ case i:
142
+ case t:
143
+ case o:
144
+ case h:
145
+ return P;
146
+ default:
147
+ var X = P && P.$$typeof;
148
+ switch (X) {
149
+ case u:
150
+ case a:
151
+ case O:
152
+ case D:
153
+ case s:
154
+ return X;
155
+ default:
156
+ return G;
157
+ }
158
+ }
159
+ case r:
160
+ return G;
161
+ }
162
+ }
163
+ }
164
+ var l = c, T = d, U = u, k = s, Y = n, j = a, M = i, $ = O, B = D, L = r, Q = t, J = o, W = h, oe = !1;
165
+ function re(_) {
166
+ return oe || (oe = !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.")), v(_) || f(_) === c;
167
+ }
168
+ function v(_) {
169
+ return f(_) === d;
170
+ }
171
+ function x(_) {
172
+ return f(_) === u;
173
+ }
174
+ function F(_) {
175
+ return f(_) === s;
176
+ }
177
+ function w(_) {
178
+ return typeof _ == "object" && _ !== null && _.$$typeof === n;
179
+ }
180
+ function I(_) {
181
+ return f(_) === a;
182
+ }
183
+ function y(_) {
184
+ return f(_) === i;
185
+ }
186
+ function E(_) {
187
+ return f(_) === O;
188
+ }
189
+ function S(_) {
190
+ return f(_) === D;
191
+ }
192
+ function V(_) {
193
+ return f(_) === r;
194
+ }
195
+ function H(_) {
196
+ return f(_) === t;
197
+ }
198
+ function A(_) {
199
+ return f(_) === o;
200
+ }
201
+ function R(_) {
202
+ return f(_) === h;
203
+ }
204
+ ee.AsyncMode = l, ee.ConcurrentMode = T, ee.ContextConsumer = U, ee.ContextProvider = k, ee.Element = Y, ee.ForwardRef = j, ee.Fragment = M, ee.Lazy = $, ee.Memo = B, ee.Portal = L, ee.Profiler = Q, ee.StrictMode = J, ee.Suspense = W, ee.isAsyncMode = re, ee.isConcurrentMode = v, ee.isContextConsumer = x, ee.isContextProvider = F, ee.isElement = w, ee.isForwardRef = I, ee.isFragment = y, ee.isLazy = E, ee.isMemo = S, ee.isPortal = V, ee.isProfiler = H, ee.isStrictMode = A, ee.isSuspense = R, ee.isValidElementType = m, ee.typeOf = f;
205
+ }()), ee;
206
+ }
207
+ var un;
208
+ function Vn() {
209
+ return un || (un = 1, process.env.NODE_ENV === "production" ? Ue.exports = Fr() : Ue.exports = Lr()), Ue.exports;
210
+ }
211
+ /*
212
+ object-assign
213
+ (c) Sindre Sorhus
214
+ @license MIT
215
+ */
216
+ var nt, an;
217
+ function Br() {
218
+ if (an)
219
+ return nt;
220
+ an = 1;
221
+ var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
222
+ function i(t) {
223
+ if (t == null)
224
+ throw new TypeError("Object.assign cannot be called with null or undefined");
225
+ return Object(t);
226
+ }
227
+ function o() {
228
+ try {
229
+ if (!Object.assign)
230
+ return !1;
231
+ var t = new String("abc");
232
+ if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
233
+ return !1;
234
+ for (var s = {}, u = 0; u < 10; u++)
235
+ s["_" + String.fromCharCode(u)] = u;
236
+ var c = Object.getOwnPropertyNames(s).map(function(a) {
237
+ return s[a];
238
+ });
239
+ if (c.join("") !== "0123456789")
240
+ return !1;
241
+ var d = {};
242
+ return "abcdefghijklmnopqrst".split("").forEach(function(a) {
243
+ d[a] = a;
244
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
245
+ } catch {
246
+ return !1;
247
+ }
248
+ }
249
+ return nt = o() ? Object.assign : function(t, s) {
250
+ for (var u, c = i(t), d, a = 1; a < arguments.length; a++) {
251
+ u = Object(arguments[a]);
252
+ for (var h in u)
253
+ n.call(u, h) && (c[h] = u[h]);
254
+ if (e) {
255
+ d = e(u);
256
+ for (var C = 0; C < d.length; C++)
257
+ r.call(u, d[C]) && (c[d[C]] = u[d[C]]);
258
+ }
259
+ }
260
+ return c;
261
+ }, nt;
262
+ }
263
+ var rt, ln;
264
+ function gt() {
265
+ if (ln)
266
+ return rt;
267
+ ln = 1;
268
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
269
+ return rt = e, rt;
270
+ }
271
+ var ot, cn;
272
+ function Hn() {
273
+ return cn || (cn = 1, ot = Function.call.bind(Object.prototype.hasOwnProperty)), ot;
274
+ }
275
+ var it, dn;
276
+ function Ur() {
277
+ if (dn)
278
+ return it;
279
+ dn = 1;
280
+ var e = function() {
281
+ };
282
+ if (process.env.NODE_ENV !== "production") {
283
+ var n = gt(), r = {}, i = Hn();
284
+ e = function(t) {
285
+ var s = "Warning: " + t;
286
+ typeof console < "u" && console.error(s);
287
+ try {
288
+ throw new Error(s);
289
+ } catch {
290
+ }
291
+ };
292
+ }
293
+ function o(t, s, u, c, d) {
294
+ if (process.env.NODE_ENV !== "production") {
295
+ for (var a in t)
296
+ if (i(t, a)) {
297
+ var h;
298
+ try {
299
+ if (typeof t[a] != "function") {
300
+ var C = Error(
301
+ (c || "React class") + ": " + u + " type `" + a + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[a] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
302
+ );
303
+ throw C.name = "Invariant Violation", C;
304
+ }
305
+ h = t[a](s, a, c, u, null, n);
306
+ } catch (O) {
307
+ h = O;
308
+ }
309
+ if (h && !(h instanceof Error) && e(
310
+ (c || "React class") + ": type specification of " + u + " `" + a + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
311
+ ), h instanceof Error && !(h.message in r)) {
312
+ r[h.message] = !0;
313
+ var D = d ? d() : "";
314
+ e(
315
+ "Failed " + u + " type: " + h.message + (D ?? "")
316
+ );
317
+ }
318
+ }
319
+ }
320
+ }
321
+ return o.resetWarningCache = function() {
322
+ process.env.NODE_ENV !== "production" && (r = {});
323
+ }, it = o, it;
324
+ }
325
+ var st, fn;
326
+ function Wr() {
327
+ if (fn)
328
+ return st;
329
+ fn = 1;
330
+ var e = Vn(), n = Br(), r = gt(), i = Hn(), o = Ur(), t = function() {
331
+ };
332
+ process.env.NODE_ENV !== "production" && (t = function(u) {
333
+ var c = "Warning: " + u;
334
+ typeof console < "u" && console.error(c);
335
+ try {
336
+ throw new Error(c);
337
+ } catch {
338
+ }
339
+ });
340
+ function s() {
341
+ return null;
342
+ }
343
+ return st = function(u, c) {
344
+ var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
345
+ function h(v) {
346
+ var x = v && (d && v[d] || v[a]);
347
+ if (typeof x == "function")
348
+ return x;
349
+ }
350
+ var C = "<<anonymous>>", D = {
351
+ array: K("array"),
352
+ bigint: K("bigint"),
353
+ bool: K("boolean"),
354
+ func: K("function"),
355
+ number: K("number"),
356
+ object: K("object"),
357
+ string: K("string"),
358
+ symbol: K("symbol"),
359
+ any: p(),
360
+ arrayOf: m,
361
+ element: f(),
362
+ elementType: l(),
363
+ instanceOf: T,
364
+ node: j(),
365
+ objectOf: k,
366
+ oneOf: U,
367
+ oneOfType: Y,
368
+ shape: $,
369
+ exact: B
370
+ };
371
+ function O(v, x) {
372
+ return v === x ? v !== 0 || 1 / v === 1 / x : v !== v && x !== x;
373
+ }
374
+ function N(v, x) {
375
+ this.message = v, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
376
+ }
377
+ N.prototype = Error.prototype;
378
+ function g(v) {
379
+ if (process.env.NODE_ENV !== "production")
380
+ var x = {}, F = 0;
381
+ function w(y, E, S, V, H, A, R) {
382
+ if (V = V || C, A = A || S, R !== r) {
383
+ if (c) {
384
+ var _ = new Error(
385
+ "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"
386
+ );
387
+ throw _.name = "Invariant Violation", _;
388
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
389
+ var G = V + ":" + S;
390
+ !x[G] && // Avoid spamming the console because they are often not actionable except for lib authors
391
+ F < 3 && (t(
392
+ "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + V + "`. 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."
393
+ ), x[G] = !0, F++);
394
+ }
395
+ }
396
+ return E[S] == null ? y ? E[S] === null ? new N("The " + H + " `" + A + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new N("The " + H + " `" + A + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : v(E, S, V, H, A);
397
+ }
398
+ var I = w.bind(null, !1);
399
+ return I.isRequired = w.bind(null, !0), I;
400
+ }
401
+ function K(v) {
402
+ function x(F, w, I, y, E, S) {
403
+ var V = F[w], H = J(V);
404
+ if (H !== v) {
405
+ var A = W(V);
406
+ return new N(
407
+ "Invalid " + y + " `" + E + "` of type " + ("`" + A + "` supplied to `" + I + "`, expected ") + ("`" + v + "`."),
408
+ { expectedType: v }
409
+ );
410
+ }
411
+ return null;
412
+ }
413
+ return g(x);
414
+ }
415
+ function p() {
416
+ return g(s);
417
+ }
418
+ function m(v) {
419
+ function x(F, w, I, y, E) {
420
+ if (typeof v != "function")
421
+ return new N("Property `" + E + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
422
+ var S = F[w];
423
+ if (!Array.isArray(S)) {
424
+ var V = J(S);
425
+ return new N("Invalid " + y + " `" + E + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected an array."));
426
+ }
427
+ for (var H = 0; H < S.length; H++) {
428
+ var A = v(S, H, I, y, E + "[" + H + "]", r);
429
+ if (A instanceof Error)
430
+ return A;
431
+ }
432
+ return null;
433
+ }
434
+ return g(x);
435
+ }
436
+ function f() {
437
+ function v(x, F, w, I, y) {
438
+ var E = x[F];
439
+ if (!u(E)) {
440
+ var S = J(E);
441
+ return new N("Invalid " + I + " `" + y + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected a single ReactElement."));
442
+ }
443
+ return null;
444
+ }
445
+ return g(v);
446
+ }
447
+ function l() {
448
+ function v(x, F, w, I, y) {
449
+ var E = x[F];
450
+ if (!e.isValidElementType(E)) {
451
+ var S = J(E);
452
+ return new N("Invalid " + I + " `" + y + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected a single ReactElement type."));
453
+ }
454
+ return null;
455
+ }
456
+ return g(v);
457
+ }
458
+ function T(v) {
459
+ function x(F, w, I, y, E) {
460
+ if (!(F[w] instanceof v)) {
461
+ var S = v.name || C, V = re(F[w]);
462
+ return new N("Invalid " + y + " `" + E + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("instance of `" + S + "`."));
463
+ }
464
+ return null;
465
+ }
466
+ return g(x);
467
+ }
468
+ function U(v) {
469
+ if (!Array.isArray(v))
470
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
471
+ "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])."
472
+ ) : t("Invalid argument supplied to oneOf, expected an array.")), s;
473
+ function x(F, w, I, y, E) {
474
+ for (var S = F[w], V = 0; V < v.length; V++)
475
+ if (O(S, v[V]))
476
+ return null;
477
+ var H = JSON.stringify(v, function(R, _) {
478
+ var G = W(_);
479
+ return G === "symbol" ? String(_) : _;
480
+ });
481
+ return new N("Invalid " + y + " `" + E + "` of value `" + String(S) + "` " + ("supplied to `" + I + "`, expected one of " + H + "."));
482
+ }
483
+ return g(x);
484
+ }
485
+ function k(v) {
486
+ function x(F, w, I, y, E) {
487
+ if (typeof v != "function")
488
+ return new N("Property `" + E + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
489
+ var S = F[w], V = J(S);
490
+ if (V !== "object")
491
+ return new N("Invalid " + y + " `" + E + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected an object."));
492
+ for (var H in S)
493
+ if (i(S, H)) {
494
+ var A = v(S, H, I, y, E + "." + H, r);
495
+ if (A instanceof Error)
496
+ return A;
497
+ }
498
+ return null;
499
+ }
500
+ return g(x);
501
+ }
502
+ function Y(v) {
503
+ if (!Array.isArray(v))
504
+ return process.env.NODE_ENV !== "production" && t("Invalid argument supplied to oneOfType, expected an instance of array."), s;
505
+ for (var x = 0; x < v.length; x++) {
506
+ var F = v[x];
507
+ if (typeof F != "function")
508
+ return t(
509
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(F) + " at index " + x + "."
510
+ ), s;
511
+ }
512
+ function w(I, y, E, S, V) {
513
+ for (var H = [], A = 0; A < v.length; A++) {
514
+ var R = v[A], _ = R(I, y, E, S, V, r);
515
+ if (_ == null)
516
+ return null;
517
+ _.data && i(_.data, "expectedType") && H.push(_.data.expectedType);
518
+ }
519
+ var G = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
520
+ return new N("Invalid " + S + " `" + V + "` supplied to " + ("`" + E + "`" + G + "."));
521
+ }
522
+ return g(w);
523
+ }
524
+ function j() {
525
+ function v(x, F, w, I, y) {
526
+ return L(x[F]) ? null : new N("Invalid " + I + " `" + y + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
527
+ }
528
+ return g(v);
529
+ }
530
+ function M(v, x, F, w, I) {
531
+ return new N(
532
+ (v || "React class") + ": " + x + " type `" + F + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
533
+ );
534
+ }
535
+ function $(v) {
536
+ function x(F, w, I, y, E) {
537
+ var S = F[w], V = J(S);
538
+ if (V !== "object")
539
+ return new N("Invalid " + y + " `" + E + "` of type `" + V + "` " + ("supplied to `" + I + "`, expected `object`."));
540
+ for (var H in v) {
541
+ var A = v[H];
542
+ if (typeof A != "function")
543
+ return M(I, y, E, H, W(A));
544
+ var R = A(S, H, I, y, E + "." + H, r);
545
+ if (R)
546
+ return R;
547
+ }
548
+ return null;
549
+ }
550
+ return g(x);
551
+ }
552
+ function B(v) {
553
+ function x(F, w, I, y, E) {
554
+ var S = F[w], V = J(S);
555
+ if (V !== "object")
556
+ return new N("Invalid " + y + " `" + E + "` of type `" + V + "` " + ("supplied to `" + I + "`, expected `object`."));
557
+ var H = n({}, F[w], v);
558
+ for (var A in H) {
559
+ var R = v[A];
560
+ if (i(v, A) && typeof R != "function")
561
+ return M(I, y, E, A, W(R));
562
+ if (!R)
563
+ return new N(
564
+ "Invalid " + y + " `" + E + "` key `" + A + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(F[w], null, " ") + `
565
+ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
566
+ );
567
+ var _ = R(S, A, I, y, E + "." + A, r);
568
+ if (_)
569
+ return _;
570
+ }
571
+ return null;
572
+ }
573
+ return g(x);
574
+ }
575
+ function L(v) {
576
+ switch (typeof v) {
577
+ case "number":
578
+ case "string":
579
+ case "undefined":
580
+ return !0;
581
+ case "boolean":
582
+ return !v;
583
+ case "object":
584
+ if (Array.isArray(v))
585
+ return v.every(L);
586
+ if (v === null || u(v))
587
+ return !0;
588
+ var x = h(v);
589
+ if (x) {
590
+ var F = x.call(v), w;
591
+ if (x !== v.entries) {
592
+ for (; !(w = F.next()).done; )
593
+ if (!L(w.value))
594
+ return !1;
595
+ } else
596
+ for (; !(w = F.next()).done; ) {
597
+ var I = w.value;
598
+ if (I && !L(I[1]))
599
+ return !1;
600
+ }
601
+ } else
602
+ return !1;
603
+ return !0;
604
+ default:
605
+ return !1;
606
+ }
607
+ }
608
+ function Q(v, x) {
609
+ return v === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
610
+ }
611
+ function J(v) {
612
+ var x = typeof v;
613
+ return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : Q(x, v) ? "symbol" : x;
614
+ }
615
+ function W(v) {
616
+ if (typeof v > "u" || v === null)
617
+ return "" + v;
618
+ var x = J(v);
619
+ if (x === "object") {
620
+ if (v instanceof Date)
621
+ return "date";
622
+ if (v instanceof RegExp)
623
+ return "regexp";
624
+ }
625
+ return x;
626
+ }
627
+ function oe(v) {
628
+ var x = W(v);
629
+ switch (x) {
630
+ case "array":
631
+ case "object":
632
+ return "an " + x;
633
+ case "boolean":
634
+ case "date":
635
+ case "regexp":
636
+ return "a " + x;
637
+ default:
638
+ return x;
639
+ }
640
+ }
641
+ function re(v) {
642
+ return !v.constructor || !v.constructor.name ? C : v.constructor.name;
643
+ }
644
+ return D.checkPropTypes = o, D.resetWarningCache = o.resetWarningCache, D.PropTypes = D, D;
645
+ }, st;
646
+ }
647
+ var ut, pn;
648
+ function qr() {
649
+ if (pn)
650
+ return ut;
651
+ pn = 1;
652
+ var e = gt();
653
+ function n() {
654
+ }
655
+ function r() {
656
+ }
657
+ return r.resetWarningCache = n, ut = function() {
658
+ function i(s, u, c, d, a, h) {
659
+ if (h !== e) {
660
+ var C = new Error(
661
+ "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"
662
+ );
663
+ throw C.name = "Invariant Violation", C;
664
+ }
665
+ }
666
+ i.isRequired = i;
667
+ function o() {
668
+ return i;
669
+ }
670
+ var t = {
671
+ array: i,
672
+ bigint: i,
673
+ bool: i,
674
+ func: i,
675
+ number: i,
676
+ object: i,
677
+ string: i,
678
+ symbol: i,
679
+ any: i,
680
+ arrayOf: o,
681
+ element: i,
682
+ elementType: i,
683
+ instanceOf: o,
684
+ node: i,
685
+ objectOf: o,
686
+ oneOf: o,
687
+ oneOfType: o,
688
+ shape: o,
689
+ exact: o,
690
+ checkPropTypes: r,
691
+ resetWarningCache: n
692
+ };
693
+ return t.PropTypes = t, t;
694
+ }, ut;
695
+ }
696
+ if (process.env.NODE_ENV !== "production") {
697
+ var Yr = Vn(), zr = !0;
698
+ ft.exports = Wr()(Yr.isElement, zr);
699
+ } else
700
+ ft.exports = qr()();
701
+ var Gr = ft.exports;
702
+ const b = /* @__PURE__ */ Nn(Gr);
703
+ var pt = { exports: {} }, te = {};
704
+ /**
705
+ * @license React
706
+ * react-is.production.min.js
707
+ *
708
+ * Copyright (c) Facebook, Inc. and its affiliates.
709
+ *
710
+ * This source code is licensed under the MIT license found in the
711
+ * LICENSE file in the root directory of this source tree.
712
+ */
713
+ var mn;
714
+ function Jr() {
715
+ if (mn)
716
+ return te;
717
+ mn = 1;
718
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), O;
719
+ O = Symbol.for("react.module.reference");
720
+ function N(g) {
721
+ if (typeof g == "object" && g !== null) {
722
+ var K = g.$$typeof;
723
+ switch (K) {
724
+ case e:
725
+ switch (g = g.type, g) {
726
+ case r:
727
+ case o:
728
+ case i:
729
+ case d:
730
+ case a:
731
+ return g;
732
+ default:
733
+ switch (g = g && g.$$typeof, g) {
734
+ case u:
735
+ case s:
736
+ case c:
737
+ case C:
738
+ case h:
739
+ case t:
740
+ return g;
741
+ default:
742
+ return K;
743
+ }
744
+ }
745
+ case n:
746
+ return K;
747
+ }
748
+ }
749
+ }
750
+ return te.ContextConsumer = s, te.ContextProvider = t, te.Element = e, te.ForwardRef = c, te.Fragment = r, te.Lazy = C, te.Memo = h, te.Portal = n, te.Profiler = o, te.StrictMode = i, te.Suspense = d, te.SuspenseList = a, te.isAsyncMode = function() {
751
+ return !1;
752
+ }, te.isConcurrentMode = function() {
753
+ return !1;
754
+ }, te.isContextConsumer = function(g) {
755
+ return N(g) === s;
756
+ }, te.isContextProvider = function(g) {
757
+ return N(g) === t;
758
+ }, te.isElement = function(g) {
759
+ return typeof g == "object" && g !== null && g.$$typeof === e;
760
+ }, te.isForwardRef = function(g) {
761
+ return N(g) === c;
762
+ }, te.isFragment = function(g) {
763
+ return N(g) === r;
764
+ }, te.isLazy = function(g) {
765
+ return N(g) === C;
766
+ }, te.isMemo = function(g) {
767
+ return N(g) === h;
768
+ }, te.isPortal = function(g) {
769
+ return N(g) === n;
770
+ }, te.isProfiler = function(g) {
771
+ return N(g) === o;
772
+ }, te.isStrictMode = function(g) {
773
+ return N(g) === i;
774
+ }, te.isSuspense = function(g) {
775
+ return N(g) === d;
776
+ }, te.isSuspenseList = function(g) {
777
+ return N(g) === a;
778
+ }, te.isValidElementType = function(g) {
779
+ return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === d || g === a || g === D || typeof g == "object" && g !== null && (g.$$typeof === C || g.$$typeof === h || g.$$typeof === t || g.$$typeof === s || g.$$typeof === c || g.$$typeof === O || g.getModuleId !== void 0);
780
+ }, te.typeOf = N, te;
781
+ }
782
+ var ne = {};
783
+ /**
784
+ * @license React
785
+ * react-is.development.js
786
+ *
787
+ * Copyright (c) Facebook, Inc. and its affiliates.
788
+ *
789
+ * This source code is licensed under the MIT license found in the
790
+ * LICENSE file in the root directory of this source tree.
791
+ */
792
+ var hn;
793
+ function Xr() {
794
+ return hn || (hn = 1, process.env.NODE_ENV !== "production" && function() {
795
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), O = !1, N = !1, g = !1, K = !1, p = !1, m;
796
+ m = Symbol.for("react.module.reference");
797
+ function f(P) {
798
+ return !!(typeof P == "string" || typeof P == "function" || P === r || P === o || p || P === i || P === d || P === a || K || P === D || O || N || g || typeof P == "object" && P !== null && (P.$$typeof === C || P.$$typeof === h || P.$$typeof === t || P.$$typeof === s || P.$$typeof === c || // This needs to include all possible module reference object
799
+ // types supported by any Flight configuration anywhere since
800
+ // we don't know which Flight build this will end up being used
801
+ // with.
802
+ P.$$typeof === m || P.getModuleId !== void 0));
803
+ }
804
+ function l(P) {
805
+ if (typeof P == "object" && P !== null) {
806
+ var X = P.$$typeof;
807
+ switch (X) {
808
+ case e:
809
+ var le = P.type;
810
+ switch (le) {
811
+ case r:
812
+ case o:
813
+ case i:
814
+ case d:
815
+ case a:
816
+ return le;
817
+ default:
818
+ var he = le && le.$$typeof;
819
+ switch (he) {
820
+ case u:
821
+ case s:
822
+ case c:
823
+ case C:
824
+ case h:
825
+ case t:
826
+ return he;
827
+ default:
828
+ return X;
829
+ }
830
+ }
831
+ case n:
832
+ return X;
833
+ }
834
+ }
835
+ }
836
+ var T = s, U = t, k = e, Y = c, j = r, M = C, $ = h, B = n, L = o, Q = i, J = d, W = a, oe = !1, re = !1;
837
+ function v(P) {
838
+ return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
839
+ }
840
+ function x(P) {
841
+ return re || (re = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
842
+ }
843
+ function F(P) {
844
+ return l(P) === s;
845
+ }
846
+ function w(P) {
847
+ return l(P) === t;
848
+ }
849
+ function I(P) {
850
+ return typeof P == "object" && P !== null && P.$$typeof === e;
851
+ }
852
+ function y(P) {
853
+ return l(P) === c;
854
+ }
855
+ function E(P) {
856
+ return l(P) === r;
857
+ }
858
+ function S(P) {
859
+ return l(P) === C;
860
+ }
861
+ function V(P) {
862
+ return l(P) === h;
863
+ }
864
+ function H(P) {
865
+ return l(P) === n;
866
+ }
867
+ function A(P) {
868
+ return l(P) === o;
869
+ }
870
+ function R(P) {
871
+ return l(P) === i;
872
+ }
873
+ function _(P) {
874
+ return l(P) === d;
875
+ }
876
+ function G(P) {
877
+ return l(P) === a;
878
+ }
879
+ ne.ContextConsumer = T, ne.ContextProvider = U, ne.Element = k, ne.ForwardRef = Y, ne.Fragment = j, ne.Lazy = M, ne.Memo = $, ne.Portal = B, ne.Profiler = L, ne.StrictMode = Q, ne.Suspense = J, ne.SuspenseList = W, ne.isAsyncMode = v, ne.isConcurrentMode = x, ne.isContextConsumer = F, ne.isContextProvider = w, ne.isElement = I, ne.isForwardRef = y, ne.isFragment = E, ne.isLazy = S, ne.isMemo = V, ne.isPortal = H, ne.isProfiler = A, ne.isStrictMode = R, ne.isSuspense = _, ne.isSuspenseList = G, ne.isValidElementType = f, ne.typeOf = l;
880
+ }()), ne;
881
+ }
882
+ process.env.NODE_ENV === "production" ? pt.exports = Jr() : pt.exports = Xr();
883
+ var gn = pt.exports;
884
+ const vn = (e) => typeof e == "object" && e != null && e.nodeType === 1, In = (e, n) => (!n || e !== "hidden") && e !== "visible" && e !== "clip", at = (e, n) => {
885
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
886
+ const r = getComputedStyle(e, null);
887
+ return In(r.overflowY, n) || In(r.overflowX, n) || ((i) => {
888
+ const o = ((t) => {
889
+ if (!t.ownerDocument || !t.ownerDocument.defaultView)
890
+ return null;
891
+ try {
892
+ return t.ownerDocument.defaultView.frameElement;
893
+ } catch {
894
+ return null;
895
+ }
896
+ })(i);
897
+ return !!o && (o.clientHeight < i.scrollHeight || o.clientWidth < i.scrollWidth);
898
+ })(e);
899
+ }
900
+ return !1;
901
+ }, We = (e, n, r, i, o, t, s, u) => t < e && s > n || t > e && s < n ? 0 : t <= e && u <= r || s >= n && u >= r ? t - e - i : s > n && u < r || t < e && u > r ? s - n + o : 0, Qr = (e) => {
902
+ const n = e.parentElement;
903
+ return n ?? (e.getRootNode().host || null);
904
+ }, Zr = (e, n) => {
905
+ var r, i, o, t;
906
+ if (typeof document > "u")
907
+ return [];
908
+ const { scrollMode: s, block: u, inline: c, boundary: d, skipOverflowHiddenElements: a } = n, h = typeof d == "function" ? d : (J) => J !== d;
909
+ if (!vn(e))
910
+ throw new TypeError("Invalid target");
911
+ const C = document.scrollingElement || document.documentElement, D = [];
912
+ let O = e;
913
+ for (; vn(O) && h(O); ) {
914
+ if (O = Qr(O), O === C) {
915
+ D.push(O);
916
+ break;
917
+ }
918
+ O != null && O === document.body && at(O) && !at(document.documentElement) || O != null && at(O, a) && D.push(O);
919
+ }
920
+ const N = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, g = (t = (o = window.visualViewport) == null ? void 0 : o.height) != null ? t : innerHeight, { scrollX: K, scrollY: p } = window, { height: m, width: f, top: l, right: T, bottom: U, left: k } = e.getBoundingClientRect(), { top: Y, right: j, bottom: M, left: $ } = ((J) => {
921
+ const W = window.getComputedStyle(J);
922
+ return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
923
+ })(e);
924
+ let B = u === "start" || u === "nearest" ? l - Y : u === "end" ? U + M : l + m / 2 - Y + M, L = c === "center" ? k + f / 2 - $ + j : c === "end" ? T + j : k - $;
925
+ const Q = [];
926
+ for (let J = 0; J < D.length; J++) {
927
+ const W = D[J], { height: oe, width: re, top: v, right: x, bottom: F, left: w } = W.getBoundingClientRect();
928
+ if (s === "if-needed" && l >= 0 && k >= 0 && U <= g && T <= N && l >= v && U <= F && k >= w && T <= x)
929
+ return Q;
930
+ const I = getComputedStyle(W), y = parseInt(I.borderLeftWidth, 10), E = parseInt(I.borderTopWidth, 10), S = parseInt(I.borderRightWidth, 10), V = parseInt(I.borderBottomWidth, 10);
931
+ let H = 0, A = 0;
932
+ const R = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - y - S : 0, _ = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - E - V : 0, G = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : re / W.offsetWidth : 0, P = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : oe / W.offsetHeight : 0;
933
+ if (C === W)
934
+ H = u === "start" ? B : u === "end" ? B - g : u === "nearest" ? We(p, p + g, g, E, V, p + B, p + B + m, m) : B - g / 2, A = c === "start" ? L : c === "center" ? L - N / 2 : c === "end" ? L - N : We(K, K + N, N, y, S, K + L, K + L + f, f), H = Math.max(0, H + p), A = Math.max(0, A + K);
935
+ else {
936
+ H = u === "start" ? B - v - E : u === "end" ? B - F + V + _ : u === "nearest" ? We(v, F, oe, E, V + _, B, B + m, m) : B - (v + oe / 2) + _ / 2, A = c === "start" ? L - w - y : c === "center" ? L - (w + re / 2) + R / 2 : c === "end" ? L - x + S + R : We(w, x, re, y, S + R, L, L + f, f);
937
+ const { scrollLeft: X, scrollTop: le } = W;
938
+ H = P === 0 ? 0 : Math.max(0, Math.min(le + H / P, W.scrollHeight - oe / P + _)), A = G === 0 ? 0 : Math.max(0, Math.min(X + A / G, W.scrollWidth - re / G + R)), B += le - H, L += X - A;
939
+ }
940
+ Q.push({ el: W, top: H, left: A });
941
+ }
942
+ return Q;
943
+ };
944
+ var Pe = function() {
945
+ return Pe = Object.assign || function(n) {
946
+ for (var r, i = 1, o = arguments.length; i < o; i++) {
947
+ r = arguments[i];
948
+ for (var t in r)
949
+ Object.prototype.hasOwnProperty.call(r, t) && (n[t] = r[t]);
950
+ }
951
+ return n;
952
+ }, Pe.apply(this, arguments);
953
+ };
954
+ var eo = 0;
955
+ function _n(e) {
956
+ return typeof e == "function" ? e : me;
957
+ }
958
+ function me() {
959
+ }
960
+ function Kn(e, n) {
961
+ if (e) {
962
+ var r = Zr(e, {
963
+ boundary: n,
964
+ block: "nearest",
965
+ scrollMode: "if-needed"
966
+ });
967
+ r.forEach(function(i) {
968
+ var o = i.el, t = i.top, s = i.left;
969
+ o.scrollTop = t, o.scrollLeft = s;
970
+ });
971
+ }
972
+ }
973
+ function yn(e, n, r) {
974
+ var i = e === n || n instanceof r.Node && e.contains && e.contains(n);
975
+ return i;
976
+ }
977
+ function vt(e, n) {
978
+ var r;
979
+ function i() {
980
+ r && clearTimeout(r);
981
+ }
982
+ function o() {
983
+ for (var t = arguments.length, s = new Array(t), u = 0; u < t; u++)
984
+ s[u] = arguments[u];
985
+ i(), r = setTimeout(function() {
986
+ r = null, e.apply(void 0, s);
987
+ }, n);
988
+ }
989
+ return o.cancel = i, o;
990
+ }
991
+ function ue() {
992
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
993
+ n[r] = arguments[r];
994
+ return function(i) {
995
+ for (var o = arguments.length, t = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
996
+ t[s - 1] = arguments[s];
997
+ return n.some(function(u) {
998
+ return u && u.apply(void 0, [i].concat(t)), i.preventDownshiftDefault || i.hasOwnProperty("nativeEvent") && i.nativeEvent.preventDownshiftDefault;
999
+ });
1000
+ };
1001
+ }
1002
+ function xe() {
1003
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
1004
+ n[r] = arguments[r];
1005
+ return function(i) {
1006
+ n.forEach(function(o) {
1007
+ typeof o == "function" ? o(i) : o && (o.current = i);
1008
+ });
1009
+ };
1010
+ }
1011
+ function jn() {
1012
+ return String(eo++);
1013
+ }
1014
+ function $n(e) {
1015
+ var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
1016
+ return n ? r ? r !== i ? r + " result" + (r === 1 ? " is" : "s are") + " available, use up and down arrow keys to navigate. Press Enter key to select." : "" : "No results are available." : "";
1017
+ }
1018
+ function bn(e, n) {
1019
+ return e = Array.isArray(e) ? (
1020
+ /* istanbul ignore next (preact) */
1021
+ e[0]
1022
+ ) : e, !e && n ? n : e;
1023
+ }
1024
+ function Fn(e) {
1025
+ return typeof e.type == "string";
1026
+ }
1027
+ function Ln(e) {
1028
+ return e.props;
1029
+ }
1030
+ function to(e, n) {
1031
+ console.error('The property "' + n + '" is required in "' + e + '"');
1032
+ }
1033
+ var no = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
1034
+ function qe(e) {
1035
+ e === void 0 && (e = {});
1036
+ var n = {};
1037
+ return no.forEach(function(r) {
1038
+ e.hasOwnProperty(r) && (n[r] = e[r]);
1039
+ }), n;
1040
+ }
1041
+ function He(e, n) {
1042
+ return !e || !n ? e : Object.keys(e).reduce(function(r, i) {
1043
+ return r[i] = Je(n, i) ? n[i] : e[i], r;
1044
+ }, {});
1045
+ }
1046
+ function Je(e, n) {
1047
+ return e[n] !== void 0;
1048
+ }
1049
+ function Ke(e) {
1050
+ var n = e.key, r = e.keyCode;
1051
+ return r >= 37 && r <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
1052
+ }
1053
+ function ro(e) {
1054
+ return Object.prototype.toString.call(e) === "[object Object]";
1055
+ }
1056
+ function Se(e, n, r, i, o) {
1057
+ o === void 0 && (o = !1);
1058
+ var t = r.length;
1059
+ if (t === 0)
1060
+ return -1;
1061
+ var s = t - 1;
1062
+ (typeof e != "number" || e < 0 || e > s) && (e = n > 0 ? -1 : s + 1);
1063
+ var u = e + n;
1064
+ u < 0 ? u = o ? s : 0 : u > s && (u = o ? 0 : s);
1065
+ var c = Re(u, n < 0, r, i, o);
1066
+ return c === -1 ? e >= t ? -1 : e : c;
1067
+ }
1068
+ function Re(e, n, r, i, o) {
1069
+ o === void 0 && (o = !1);
1070
+ var t = r.length;
1071
+ if (n) {
1072
+ for (var s = e; s >= 0; s--)
1073
+ if (!i(r[s], s))
1074
+ return s;
1075
+ } else
1076
+ for (var u = e; u < t; u++)
1077
+ if (!i(r[u], u))
1078
+ return u;
1079
+ return o ? Re(n ? t - 1 : 0, n, r, i) : -1;
1080
+ }
1081
+ function Xe(e, n, r, i) {
1082
+ return i === void 0 && (i = !0), r && n.some(function(o) {
1083
+ return o && (yn(o, e, r) || i && yn(o, r.document.activeElement, r));
1084
+ });
1085
+ }
1086
+ var It = me;
1087
+ process.env.NODE_ENV !== "production" && (It = function(n, r, i) {
1088
+ var o = "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";
1089
+ Object.keys(n).forEach(function(t) {
1090
+ r[t] !== void 0 && i[t] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + t + '" to be uncontrolled. ' + o) : r[t] === void 0 && i[t] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + t + '" to be controlled. ' + o);
1091
+ });
1092
+ });
1093
+ var oo = vt(function(e) {
1094
+ Bn(e).textContent = "";
1095
+ }, 500);
1096
+ function Bn(e) {
1097
+ var n = e.getElementById("a11y-status-message");
1098
+ 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, {
1099
+ border: "0",
1100
+ clip: "rect(0 0 0 0)",
1101
+ height: "1px",
1102
+ margin: "-1px",
1103
+ overflow: "hidden",
1104
+ padding: "0",
1105
+ position: "absolute",
1106
+ width: "1px"
1107
+ }), e.body.appendChild(n), n);
1108
+ }
1109
+ function _t(e, n) {
1110
+ if (!(!e || !n)) {
1111
+ var r = Bn(n);
1112
+ r.textContent = e, oo(n);
1113
+ }
1114
+ }
1115
+ var Un = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Wn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, qn = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, Ye = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, ze = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, Yn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, zn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Gn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Jn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Xn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Qn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Zn = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, er = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, mt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, tr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, nr = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, rr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, io = /* @__PURE__ */ Object.freeze({
1116
+ __proto__: null,
1117
+ unknown: Un,
1118
+ mouseUp: Wn,
1119
+ itemMouseEnter: qn,
1120
+ keyDownArrowUp: Ye,
1121
+ keyDownArrowDown: ze,
1122
+ keyDownEscape: Yn,
1123
+ keyDownEnter: zn,
1124
+ keyDownHome: Gn,
1125
+ keyDownEnd: Jn,
1126
+ clickItem: Xn,
1127
+ blurInput: Qn,
1128
+ changeInput: Zn,
1129
+ keyDownSpaceButton: er,
1130
+ clickButton: mt,
1131
+ blurButton: tr,
1132
+ controlledPropUpdatedSelectedItem: nr,
1133
+ touchEnd: rr
1134
+ }), so = ["refKey", "ref"], uo = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], ao = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], lo = ["refKey", "ref"], co = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], fo = /* @__PURE__ */ function() {
1135
+ var e = /* @__PURE__ */ function(n) {
1136
+ $r(r, n);
1137
+ function r(o) {
1138
+ var t;
1139
+ t = n.call(this, o) || this, t.id = t.props.id || "downshift-" + jn(), 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(p) {
1140
+ return t.id + "-item-" + p;
1141
+ }, t.items = [], t.itemCount = null, t.previousResultCount = 0, t.timeoutIds = [], t.internalSetTimeout = function(p, m) {
1142
+ var f = setTimeout(function() {
1143
+ t.timeoutIds = t.timeoutIds.filter(function(l) {
1144
+ return l !== f;
1145
+ }), p();
1146
+ }, m);
1147
+ t.timeoutIds.push(f);
1148
+ }, t.setItemCount = function(p) {
1149
+ t.itemCount = p;
1150
+ }, t.unsetItemCount = function() {
1151
+ t.itemCount = null;
1152
+ }, t.isItemDisabled = function(p, m) {
1153
+ var f = t.getItemNodeFromIndex(m);
1154
+ return f && f.hasAttribute("disabled");
1155
+ }, t.setHighlightedIndex = function(p, m) {
1156
+ p === void 0 && (p = t.props.defaultHighlightedIndex), m === void 0 && (m = {}), m = qe(m), t.internalSetState(q({
1157
+ highlightedIndex: p
1158
+ }, m));
1159
+ }, t.clearSelection = function(p) {
1160
+ t.internalSetState({
1161
+ selectedItem: null,
1162
+ inputValue: "",
1163
+ highlightedIndex: t.props.defaultHighlightedIndex,
1164
+ isOpen: t.props.defaultIsOpen
1165
+ }, p);
1166
+ }, t.selectItem = function(p, m, f) {
1167
+ m = qe(m), t.internalSetState(q({
1168
+ isOpen: t.props.defaultIsOpen,
1169
+ highlightedIndex: t.props.defaultHighlightedIndex,
1170
+ selectedItem: p,
1171
+ inputValue: t.props.itemToString(p)
1172
+ }, m), f);
1173
+ }, t.selectItemAtIndex = function(p, m, f) {
1174
+ var l = t.items[p];
1175
+ l != null && t.selectItem(l, m, f);
1176
+ }, t.selectHighlightedItem = function(p, m) {
1177
+ return t.selectItemAtIndex(t.getState().highlightedIndex, p, m);
1178
+ }, t.internalSetState = function(p, m) {
1179
+ var f, l, T = {}, U = typeof p == "function";
1180
+ return !U && p.hasOwnProperty("inputValue") && t.props.onInputValueChange(p.inputValue, q({}, t.getStateAndHelpers(), p)), t.setState(function(k) {
1181
+ var Y;
1182
+ k = t.getState(k);
1183
+ var j = U ? p(k) : p;
1184
+ j = t.props.stateReducer(k, j), f = j.hasOwnProperty("selectedItem");
1185
+ var M = {};
1186
+ return f && j.selectedItem !== k.selectedItem && (l = j.selectedItem), (Y = j).type || (Y.type = Un), Object.keys(j).forEach(function($) {
1187
+ k[$] !== j[$] && (T[$] = j[$]), $ !== "type" && (j[$], Je(t.props, $) || (M[$] = j[$]));
1188
+ }), U && j.hasOwnProperty("inputValue") && t.props.onInputValueChange(j.inputValue, q({}, t.getStateAndHelpers(), j)), M;
1189
+ }, function() {
1190
+ _n(m)();
1191
+ var k = Object.keys(T).length > 1;
1192
+ k && t.props.onStateChange(T, t.getStateAndHelpers()), f && t.props.onSelect(p.selectedItem, t.getStateAndHelpers()), l !== void 0 && t.props.onChange(l, t.getStateAndHelpers()), t.props.onUserAction(T, t.getStateAndHelpers());
1193
+ });
1194
+ }, t.rootRef = function(p) {
1195
+ return t._rootNode = p;
1196
+ }, t.getRootProps = function(p, m) {
1197
+ var f, l = p === void 0 ? {} : p, T = l.refKey, U = T === void 0 ? "ref" : T, k = l.ref, Y = ge(l, so), j = m === void 0 ? {} : m, M = j.suppressRefError, $ = M === void 0 ? !1 : M;
1198
+ t.getRootProps.called = !0, t.getRootProps.refKey = U, t.getRootProps.suppressRefError = $;
1199
+ var B = t.getState(), L = B.isOpen;
1200
+ return q((f = {}, f[U] = xe(k, t.rootRef), f.role = "combobox", f["aria-expanded"] = L, f["aria-haspopup"] = "listbox", f["aria-owns"] = L ? t.menuId : void 0, f["aria-labelledby"] = t.labelId, f), Y);
1201
+ }, t.keyDownHandlers = {
1202
+ ArrowDown: function(m) {
1203
+ var f = this;
1204
+ if (m.preventDefault(), this.getState().isOpen) {
1205
+ var l = m.shiftKey ? 5 : 1;
1206
+ this.moveHighlightedIndex(l, {
1207
+ type: ze
1208
+ });
1209
+ } else
1210
+ this.internalSetState({
1211
+ isOpen: !0,
1212
+ type: ze
1213
+ }, function() {
1214
+ var T = f.getItemCount();
1215
+ if (T > 0) {
1216
+ var U = f.getState(), k = U.highlightedIndex, Y = Se(k, 1, {
1217
+ length: T
1218
+ }, f.isItemDisabled, !0);
1219
+ f.setHighlightedIndex(Y, {
1220
+ type: ze
1221
+ });
1222
+ }
1223
+ });
1224
+ },
1225
+ ArrowUp: function(m) {
1226
+ var f = this;
1227
+ if (m.preventDefault(), this.getState().isOpen) {
1228
+ var l = m.shiftKey ? -5 : -1;
1229
+ this.moveHighlightedIndex(l, {
1230
+ type: Ye
1231
+ });
1232
+ } else
1233
+ this.internalSetState({
1234
+ isOpen: !0,
1235
+ type: Ye
1236
+ }, function() {
1237
+ var T = f.getItemCount();
1238
+ if (T > 0) {
1239
+ var U = f.getState(), k = U.highlightedIndex, Y = Se(k, -1, {
1240
+ length: T
1241
+ }, f.isItemDisabled, !0);
1242
+ f.setHighlightedIndex(Y, {
1243
+ type: Ye
1244
+ });
1245
+ }
1246
+ });
1247
+ },
1248
+ Enter: function(m) {
1249
+ if (m.which !== 229) {
1250
+ var f = this.getState(), l = f.isOpen, T = f.highlightedIndex;
1251
+ if (l && T != null) {
1252
+ m.preventDefault();
1253
+ var U = this.items[T], k = this.getItemNodeFromIndex(T);
1254
+ if (U == null || k && k.hasAttribute("disabled"))
1255
+ return;
1256
+ this.selectHighlightedItem({
1257
+ type: zn
1258
+ });
1259
+ }
1260
+ }
1261
+ },
1262
+ Escape: function(m) {
1263
+ m.preventDefault(), this.reset(q({
1264
+ type: Yn
1265
+ }, !this.state.isOpen && {
1266
+ selectedItem: null,
1267
+ inputValue: ""
1268
+ }));
1269
+ }
1270
+ }, t.buttonKeyDownHandlers = q({}, t.keyDownHandlers, {
1271
+ " ": function(m) {
1272
+ m.preventDefault(), this.toggleMenu({
1273
+ type: er
1274
+ });
1275
+ }
1276
+ }), t.inputKeyDownHandlers = q({}, t.keyDownHandlers, {
1277
+ Home: function(m) {
1278
+ var f = this.getState(), l = f.isOpen;
1279
+ if (l) {
1280
+ m.preventDefault();
1281
+ var T = this.getItemCount();
1282
+ if (!(T <= 0 || !l)) {
1283
+ var U = Re(0, !1, {
1284
+ length: T
1285
+ }, this.isItemDisabled);
1286
+ this.setHighlightedIndex(U, {
1287
+ type: Gn
1288
+ });
1289
+ }
1290
+ }
1291
+ },
1292
+ End: function(m) {
1293
+ var f = this.getState(), l = f.isOpen;
1294
+ if (l) {
1295
+ m.preventDefault();
1296
+ var T = this.getItemCount();
1297
+ if (!(T <= 0 || !l)) {
1298
+ var U = Re(T - 1, !0, {
1299
+ length: T
1300
+ }, this.isItemDisabled);
1301
+ this.setHighlightedIndex(U, {
1302
+ type: Jn
1303
+ });
1304
+ }
1305
+ }
1306
+ }
1307
+ }), t.getToggleButtonProps = function(p) {
1308
+ var m = p === void 0 ? {} : p, f = m.onClick;
1309
+ m.onPress;
1310
+ var l = m.onKeyDown, T = m.onKeyUp, U = m.onBlur, k = ge(m, uo), Y = t.getState(), j = Y.isOpen, M = {
1311
+ onClick: ue(f, t.buttonHandleClick),
1312
+ onKeyDown: ue(l, t.buttonHandleKeyDown),
1313
+ onKeyUp: ue(T, t.buttonHandleKeyUp),
1314
+ onBlur: ue(U, t.buttonHandleBlur)
1315
+ }, $ = k.disabled ? {} : M;
1316
+ return q({
1317
+ type: "button",
1318
+ role: "button",
1319
+ "aria-label": j ? "close menu" : "open menu",
1320
+ "aria-haspopup": !0,
1321
+ "data-toggle": !0
1322
+ }, $, k);
1323
+ }, t.buttonHandleKeyUp = function(p) {
1324
+ p.preventDefault();
1325
+ }, t.buttonHandleKeyDown = function(p) {
1326
+ var m = Ke(p);
1327
+ t.buttonKeyDownHandlers[m] && t.buttonKeyDownHandlers[m].call(rn(t), p);
1328
+ }, t.buttonHandleClick = function(p) {
1329
+ if (p.preventDefault(), t.props.environment) {
1330
+ var m = t.props.environment.document, f = m.body, l = m.activeElement;
1331
+ f && f === l && p.target.focus();
1332
+ }
1333
+ process.env.NODE_ENV === "test" ? t.toggleMenu({
1334
+ type: mt
1335
+ }) : t.internalSetTimeout(function() {
1336
+ return t.toggleMenu({
1337
+ type: mt
1338
+ });
1339
+ });
1340
+ }, t.buttonHandleBlur = function(p) {
1341
+ var m = p.target;
1342
+ t.internalSetTimeout(function() {
1343
+ if (!(t.isMouseDown || !t.props.environment)) {
1344
+ var f = t.props.environment.document.activeElement;
1345
+ (f == null || f.id !== t.inputId) && f !== m && t.reset({
1346
+ type: tr
1347
+ });
1348
+ }
1349
+ });
1350
+ }, t.getLabelProps = function(p) {
1351
+ return q({
1352
+ htmlFor: t.inputId,
1353
+ id: t.labelId
1354
+ }, p);
1355
+ }, t.getInputProps = function(p) {
1356
+ var m = p === void 0 ? {} : p, f = m.onKeyDown, l = m.onBlur, T = m.onChange, U = m.onInput;
1357
+ m.onChangeText;
1358
+ var k = ge(m, ao), Y, j = {};
1359
+ Y = "onChange";
1360
+ var M = t.getState(), $ = M.inputValue, B = M.isOpen, L = M.highlightedIndex;
1361
+ if (!k.disabled) {
1362
+ var Q;
1363
+ j = (Q = {}, Q[Y] = ue(T, U, t.inputHandleChange), Q.onKeyDown = ue(f, t.inputHandleKeyDown), Q.onBlur = ue(l, t.inputHandleBlur), Q);
1364
+ }
1365
+ return q({
1366
+ "aria-autocomplete": "list",
1367
+ "aria-activedescendant": B && typeof L == "number" && L >= 0 ? t.getItemId(L) : void 0,
1368
+ "aria-controls": B ? t.menuId : void 0,
1369
+ "aria-labelledby": k && k["aria-label"] ? void 0 : t.labelId,
1370
+ // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
1371
+ // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
1372
+ autoComplete: "off",
1373
+ value: $,
1374
+ id: t.inputId
1375
+ }, j, k);
1376
+ }, t.inputHandleKeyDown = function(p) {
1377
+ var m = Ke(p);
1378
+ m && t.inputKeyDownHandlers[m] && t.inputKeyDownHandlers[m].call(rn(t), p);
1379
+ }, t.inputHandleChange = function(p) {
1380
+ t.internalSetState({
1381
+ type: Zn,
1382
+ isOpen: !0,
1383
+ inputValue: p.target.value,
1384
+ highlightedIndex: t.props.defaultHighlightedIndex
1385
+ });
1386
+ }, t.inputHandleBlur = function() {
1387
+ t.internalSetTimeout(function() {
1388
+ var p;
1389
+ if (!(t.isMouseDown || !t.props.environment)) {
1390
+ var m = t.props.environment.document.activeElement, f = (m == null || (p = m.dataset) == null ? void 0 : p.toggle) && t._rootNode && t._rootNode.contains(m);
1391
+ f || t.reset({
1392
+ type: Qn
1393
+ });
1394
+ }
1395
+ });
1396
+ }, t.menuRef = function(p) {
1397
+ t._menuNode = p;
1398
+ }, t.getMenuProps = function(p, m) {
1399
+ var f, l = p === void 0 ? {} : p, T = l.refKey, U = T === void 0 ? "ref" : T, k = l.ref, Y = ge(l, lo), j = m === void 0 ? {} : m, M = j.suppressRefError, $ = M === void 0 ? !1 : M;
1400
+ return t.getMenuProps.called = !0, t.getMenuProps.refKey = U, t.getMenuProps.suppressRefError = $, q((f = {}, f[U] = xe(k, t.menuRef), f.role = "listbox", f["aria-labelledby"] = Y && Y["aria-label"] ? void 0 : t.labelId, f.id = t.menuId, f), Y);
1401
+ }, t.getItemProps = function(p) {
1402
+ var m, f = p === void 0 ? {} : p, l = f.onMouseMove, T = f.onMouseDown, U = f.onClick;
1403
+ f.onPress;
1404
+ var k = f.index, Y = f.item, j = Y === void 0 ? process.env.NODE_ENV === "production" ? (
1405
+ /* istanbul ignore next */
1406
+ void 0
1407
+ ) : to("getItemProps", "item") : Y, M = ge(f, co);
1408
+ k === void 0 ? (t.items.push(j), k = t.items.indexOf(j)) : t.items[k] = j;
1409
+ var $ = "onClick", B = U, L = (m = {
1410
+ // onMouseMove is used over onMouseEnter here. onMouseMove
1411
+ // is only triggered on actual mouse movement while onMouseEnter
1412
+ // can fire on DOM changes, interrupting keyboard navigation
1413
+ onMouseMove: ue(l, function() {
1414
+ k !== t.getState().highlightedIndex && (t.setHighlightedIndex(k, {
1415
+ type: qn
1416
+ }), t.avoidScrolling = !0, t.internalSetTimeout(function() {
1417
+ return t.avoidScrolling = !1;
1418
+ }, 250));
1419
+ }),
1420
+ onMouseDown: ue(T, function(J) {
1421
+ J.preventDefault();
1422
+ })
1423
+ }, m[$] = ue(B, function() {
1424
+ t.selectItemAtIndex(k, {
1425
+ type: Xn
1426
+ });
1427
+ }), m), Q = M.disabled ? {
1428
+ onMouseDown: L.onMouseDown
1429
+ } : L;
1430
+ return q({
1431
+ id: t.getItemId(k),
1432
+ role: "option",
1433
+ "aria-selected": t.getState().highlightedIndex === k
1434
+ }, Q, M);
1435
+ }, t.clearItems = function() {
1436
+ t.items = [];
1437
+ }, t.reset = function(p, m) {
1438
+ p === void 0 && (p = {}), p = qe(p), t.internalSetState(function(f) {
1439
+ var l = f.selectedItem;
1440
+ return q({
1441
+ isOpen: t.props.defaultIsOpen,
1442
+ highlightedIndex: t.props.defaultHighlightedIndex,
1443
+ inputValue: t.props.itemToString(l)
1444
+ }, p);
1445
+ }, m);
1446
+ }, t.toggleMenu = function(p, m) {
1447
+ p === void 0 && (p = {}), p = qe(p), t.internalSetState(function(f) {
1448
+ var l = f.isOpen;
1449
+ return q({
1450
+ isOpen: !l
1451
+ }, l && {
1452
+ highlightedIndex: t.props.defaultHighlightedIndex
1453
+ }, p);
1454
+ }, function() {
1455
+ var f = t.getState(), l = f.isOpen, T = f.highlightedIndex;
1456
+ l && t.getItemCount() > 0 && typeof T == "number" && t.setHighlightedIndex(T, p), _n(m)();
1457
+ });
1458
+ }, t.openMenu = function(p) {
1459
+ t.internalSetState({
1460
+ isOpen: !0
1461
+ }, p);
1462
+ }, t.closeMenu = function(p) {
1463
+ t.internalSetState({
1464
+ isOpen: !1
1465
+ }, p);
1466
+ }, t.updateStatus = vt(function() {
1467
+ var p;
1468
+ if ((p = t.props) != null && (p = p.environment) != null && p.document) {
1469
+ var m = t.getState(), f = t.items[m.highlightedIndex], l = t.getItemCount(), T = t.props.getA11yStatusMessage(q({
1470
+ itemToString: t.props.itemToString,
1471
+ previousResultCount: t.previousResultCount,
1472
+ resultCount: l,
1473
+ highlightedItem: f
1474
+ }, m));
1475
+ t.previousResultCount = l, _t(T, t.props.environment.document);
1476
+ }
1477
+ }, 200);
1478
+ var s = t.props, u = s.defaultHighlightedIndex, c = s.initialHighlightedIndex, d = c === void 0 ? u : c, a = s.defaultIsOpen, h = s.initialIsOpen, C = h === void 0 ? a : h, D = s.initialInputValue, O = D === void 0 ? "" : D, N = s.initialSelectedItem, g = N === void 0 ? null : N, K = t.getState({
1479
+ highlightedIndex: d,
1480
+ isOpen: C,
1481
+ inputValue: O,
1482
+ selectedItem: g
1483
+ });
1484
+ return K.selectedItem != null && t.props.initialInputValue === void 0 && (K.inputValue = t.props.itemToString(K.selectedItem)), t.state = K, t;
1485
+ }
1486
+ var i = r.prototype;
1487
+ return i.internalClearTimeouts = function() {
1488
+ this.timeoutIds.forEach(function(t) {
1489
+ clearTimeout(t);
1490
+ }), this.timeoutIds = [];
1491
+ }, i.getState = function(t) {
1492
+ return t === void 0 && (t = this.state), He(t, this.props);
1493
+ }, i.getItemCount = function() {
1494
+ var t = this.items.length;
1495
+ return this.itemCount != null ? t = this.itemCount : this.props.itemCount !== void 0 && (t = this.props.itemCount), t;
1496
+ }, i.getItemNodeFromIndex = function(t) {
1497
+ return this.props.environment ? this.props.environment.document.getElementById(this.getItemId(t)) : null;
1498
+ }, i.scrollHighlightedItemIntoView = function() {
1499
+ {
1500
+ var t = this.getItemNodeFromIndex(this.getState().highlightedIndex);
1501
+ this.props.scrollIntoView(t, this._menuNode);
1502
+ }
1503
+ }, i.moveHighlightedIndex = function(t, s) {
1504
+ var u = this.getItemCount(), c = this.getState(), d = c.highlightedIndex;
1505
+ if (u > 0) {
1506
+ var a = Se(d, t, {
1507
+ length: u
1508
+ }, this.isItemDisabled, !0);
1509
+ this.setHighlightedIndex(a, s);
1510
+ }
1511
+ }, i.getStateAndHelpers = function() {
1512
+ var t = this.getState(), s = t.highlightedIndex, u = t.inputValue, c = t.selectedItem, d = t.isOpen, a = this.props.itemToString, h = this.id, C = this.getRootProps, D = this.getToggleButtonProps, O = this.getLabelProps, N = this.getMenuProps, g = this.getInputProps, K = this.getItemProps, p = this.openMenu, m = this.closeMenu, f = this.toggleMenu, l = this.selectItem, T = this.selectItemAtIndex, U = this.selectHighlightedItem, k = this.setHighlightedIndex, Y = this.clearSelection, j = this.clearItems, M = this.reset, $ = this.setItemCount, B = this.unsetItemCount, L = this.internalSetState;
1513
+ return {
1514
+ // prop getters
1515
+ getRootProps: C,
1516
+ getToggleButtonProps: D,
1517
+ getLabelProps: O,
1518
+ getMenuProps: N,
1519
+ getInputProps: g,
1520
+ getItemProps: K,
1521
+ // actions
1522
+ reset: M,
1523
+ openMenu: p,
1524
+ closeMenu: m,
1525
+ toggleMenu: f,
1526
+ selectItem: l,
1527
+ selectItemAtIndex: T,
1528
+ selectHighlightedItem: U,
1529
+ setHighlightedIndex: k,
1530
+ clearSelection: Y,
1531
+ clearItems: j,
1532
+ setItemCount: $,
1533
+ unsetItemCount: B,
1534
+ setState: L,
1535
+ // props
1536
+ itemToString: a,
1537
+ // derived
1538
+ id: h,
1539
+ // state
1540
+ highlightedIndex: s,
1541
+ inputValue: u,
1542
+ isOpen: d,
1543
+ selectedItem: c
1544
+ };
1545
+ }, i.componentDidMount = function() {
1546
+ var t = this;
1547
+ if (process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && En(this._menuNode, this.getMenuProps), !this.props.environment)
1548
+ this.cleanup = function() {
1549
+ t.internalClearTimeouts();
1550
+ };
1551
+ else {
1552
+ var s = function() {
1553
+ t.isMouseDown = !0;
1554
+ }, u = function(D) {
1555
+ t.isMouseDown = !1;
1556
+ var O = Xe(D.target, [t._rootNode, t._menuNode], t.props.environment);
1557
+ !O && t.getState().isOpen && t.reset({
1558
+ type: Wn
1559
+ }, function() {
1560
+ return t.props.onOuterClick(t.getStateAndHelpers());
1561
+ });
1562
+ }, c = function() {
1563
+ t.isTouchMove = !1;
1564
+ }, d = function() {
1565
+ t.isTouchMove = !0;
1566
+ }, a = function(D) {
1567
+ var O = Xe(D.target, [t._rootNode, t._menuNode], t.props.environment, !1);
1568
+ !t.isTouchMove && !O && t.getState().isOpen && t.reset({
1569
+ type: rr
1570
+ }, function() {
1571
+ return t.props.onOuterClick(t.getStateAndHelpers());
1572
+ });
1573
+ }, h = this.props.environment;
1574
+ h.addEventListener("mousedown", s), h.addEventListener("mouseup", u), h.addEventListener("touchstart", c), h.addEventListener("touchmove", d), h.addEventListener("touchend", a), this.cleanup = function() {
1575
+ t.internalClearTimeouts(), t.updateStatus.cancel(), h.removeEventListener("mousedown", s), h.removeEventListener("mouseup", u), h.removeEventListener("touchstart", c), h.removeEventListener("touchmove", d), h.removeEventListener("touchend", a);
1576
+ };
1577
+ }
1578
+ }, i.shouldScroll = function(t, s) {
1579
+ var u = this.props.highlightedIndex === void 0 ? this.getState() : this.props, c = u.highlightedIndex, d = s.highlightedIndex === void 0 ? t : s, a = d.highlightedIndex, h = c && this.getState().isOpen && !t.isOpen, C = c !== a;
1580
+ return h || C;
1581
+ }, i.componentDidUpdate = function(t, s) {
1582
+ process.env.NODE_ENV !== "production" && (It(this.state, t, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && En(this._menuNode, this.getMenuProps)), Je(this.props, "selectedItem") && this.props.selectedItemChanged(t.selectedItem, this.props.selectedItem) && this.internalSetState({
1583
+ type: nr,
1584
+ inputValue: this.props.itemToString(this.props.selectedItem)
1585
+ }), !this.avoidScrolling && this.shouldScroll(s, t) && this.scrollHighlightedItemIntoView(), this.updateStatus();
1586
+ }, i.componentWillUnmount = function() {
1587
+ this.cleanup();
1588
+ }, i.render = function() {
1589
+ var t = bn(this.props.children, me);
1590
+ 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;
1591
+ var s = bn(t(this.getStateAndHelpers()));
1592
+ if (!s)
1593
+ return null;
1594
+ if (this.getRootProps.called || this.props.suppressRefError)
1595
+ return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && po(s, this.getRootProps), s;
1596
+ if (Fn(s))
1597
+ return /* @__PURE__ */ Sr(s, this.getRootProps(Ln(s)));
1598
+ if (process.env.NODE_ENV !== "production")
1599
+ throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
1600
+ }, r;
1601
+ }(Dr);
1602
+ return e.defaultProps = {
1603
+ defaultHighlightedIndex: null,
1604
+ defaultIsOpen: !1,
1605
+ getA11yStatusMessage: $n,
1606
+ itemToString: function(r) {
1607
+ return r == null ? "" : (process.env.NODE_ENV !== "production" && ro(r) && !r.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:", r), String(r));
1608
+ },
1609
+ onStateChange: me,
1610
+ onInputValueChange: me,
1611
+ onUserAction: me,
1612
+ onChange: me,
1613
+ onSelect: me,
1614
+ onOuterClick: me,
1615
+ selectedItemChanged: function(r, i) {
1616
+ return r !== i;
1617
+ },
1618
+ environment: (
1619
+ /* istanbul ignore next (ssr) */
1620
+ typeof window > "u" ? void 0 : window
1621
+ ),
1622
+ stateReducer: function(r, i) {
1623
+ return i;
1624
+ },
1625
+ suppressRefError: !1,
1626
+ scrollIntoView: Kn
1627
+ }, e.stateChangeTypes = io, e;
1628
+ }();
1629
+ process.env.NODE_ENV !== "production" && (fo.propTypes = {
1630
+ children: b.func,
1631
+ defaultHighlightedIndex: b.number,
1632
+ defaultIsOpen: b.bool,
1633
+ initialHighlightedIndex: b.number,
1634
+ initialSelectedItem: b.any,
1635
+ initialInputValue: b.string,
1636
+ initialIsOpen: b.bool,
1637
+ getA11yStatusMessage: b.func,
1638
+ itemToString: b.func,
1639
+ onChange: b.func,
1640
+ onSelect: b.func,
1641
+ onStateChange: b.func,
1642
+ onInputValueChange: b.func,
1643
+ onUserAction: b.func,
1644
+ onOuterClick: b.func,
1645
+ selectedItemChanged: b.func,
1646
+ stateReducer: b.func,
1647
+ itemCount: b.number,
1648
+ id: b.string,
1649
+ environment: b.shape({
1650
+ addEventListener: b.func.isRequired,
1651
+ removeEventListener: b.func.isRequired,
1652
+ document: b.shape({
1653
+ createElement: b.func.isRequired,
1654
+ getElementById: b.func.isRequired,
1655
+ activeElement: b.any.isRequired,
1656
+ body: b.any.isRequired
1657
+ }).isRequired,
1658
+ Node: b.func.isRequired
1659
+ }),
1660
+ suppressRefError: b.bool,
1661
+ scrollIntoView: b.func,
1662
+ // things we keep in state for uncontrolled components
1663
+ // but can accept as props for controlled components
1664
+ /* eslint-disable react/no-unused-prop-types */
1665
+ selectedItem: b.any,
1666
+ isOpen: b.bool,
1667
+ inputValue: b.string,
1668
+ highlightedIndex: b.number,
1669
+ labelId: b.string,
1670
+ inputId: b.string,
1671
+ menuId: b.string,
1672
+ getItemId: b.func
1673
+ /* eslint-enable react/no-unused-prop-types */
1674
+ });
1675
+ function En(e, n) {
1676
+ var r = n.refKey;
1677
+ e || console.error('downshift: The ref prop "' + r + '" from getMenuProps was not applied correctly on your menu element.');
1678
+ }
1679
+ function po(e, n) {
1680
+ var r = n.refKey, i = r !== "ref", o = !Fn(e);
1681
+ o && !i && !gn.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !o && i && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + r + '"'), !gn.isForwardRef(e) && !Ln(e)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
1682
+ }
1683
+ var mo = ["highlightedIndex", "items", "environment"], or = {
1684
+ highlightedIndex: -1,
1685
+ isOpen: !1,
1686
+ selectedItem: null,
1687
+ inputValue: ""
1688
+ };
1689
+ function ho(e, n, r) {
1690
+ var i = e.props, o = e.type, t = {};
1691
+ Object.keys(n).forEach(function(s) {
1692
+ go(s, e, n, r), r[s] !== n[s] && (t[s] = r[s]);
1693
+ }), i.onStateChange && Object.keys(t).length && i.onStateChange(q({
1694
+ type: o
1695
+ }, t));
1696
+ }
1697
+ function go(e, n, r, i) {
1698
+ var o = n.props, t = n.type, s = "on" + yt(e) + "Change";
1699
+ o[s] && i[e] !== void 0 && i[e] !== r[e] && o[s](q({
1700
+ type: t
1701
+ }, i));
1702
+ }
1703
+ function vo(e, n) {
1704
+ return n.changes;
1705
+ }
1706
+ function Io(e) {
1707
+ var n = e.selectedItem, r = e.itemToString;
1708
+ return n ? r(n) + " has been selected." : "";
1709
+ }
1710
+ var _o = vt(function(e, n) {
1711
+ _t(e(), n);
1712
+ }, 200), yo = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Rn : ce, bo = "useId" in Ge ? function(n) {
1713
+ var r = n.id, i = n.labelId, o = n.menuId, t = n.getItemId, s = n.toggleButtonId, u = n.inputId, c = "downshift-" + Ge.useId();
1714
+ r || (r = c);
1715
+ var d = ae({
1716
+ labelId: i || r + "-label",
1717
+ menuId: o || r + "-menu",
1718
+ getItemId: t || function(a) {
1719
+ return r + "-item-" + a;
1720
+ },
1721
+ toggleButtonId: s || r + "-toggle-button",
1722
+ inputId: u || r + "-input"
1723
+ });
1724
+ return d.current;
1725
+ } : function(n) {
1726
+ var r = n.id, i = r === void 0 ? "downshift-" + jn() : r, o = n.labelId, t = n.menuId, s = n.getItemId, u = n.toggleButtonId, c = n.inputId, d = ae({
1727
+ labelId: o || i + "-label",
1728
+ menuId: t || i + "-menu",
1729
+ getItemId: s || function(a) {
1730
+ return i + "-item-" + a;
1731
+ },
1732
+ toggleButtonId: u || i + "-toggle-button",
1733
+ inputId: c || i + "-input"
1734
+ });
1735
+ return d.current;
1736
+ };
1737
+ function ir(e, n, r, i) {
1738
+ var o, t;
1739
+ if (e === void 0) {
1740
+ if (n === void 0)
1741
+ throw new Error(i);
1742
+ o = r[n], t = n;
1743
+ } else
1744
+ t = n === void 0 ? r.indexOf(e) : n, o = e;
1745
+ return [o, t];
1746
+ }
1747
+ function yt(e) {
1748
+ return "" + e.slice(0, 1).toUpperCase() + e.slice(1);
1749
+ }
1750
+ function bt(e) {
1751
+ var n = ae(e);
1752
+ return n.current = e, n;
1753
+ }
1754
+ function sr(e, n, r, i) {
1755
+ var o = ae(), t = ae(), s = se(function(D, O) {
1756
+ t.current = O, D = He(D, O.props);
1757
+ var N = e(D, O), g = O.props.stateReducer(D, q({}, O, {
1758
+ changes: N
1759
+ }));
1760
+ return g;
1761
+ }, [e]), u = Cr(s, n, r), c = u[0], d = u[1], a = bt(n), h = se(function(D) {
1762
+ return d(q({
1763
+ props: a.current
1764
+ }, D));
1765
+ }, [a]), C = t.current;
1766
+ return ce(function() {
1767
+ var D = He(o.current, C == null ? void 0 : C.props), O = C && o.current && !i(D, c);
1768
+ O && ho(C, D, c), o.current = c;
1769
+ }, [c, C, i]), [c, h];
1770
+ }
1771
+ function Eo(e, n, r, i) {
1772
+ var o = sr(e, n, r, i), t = o[0], s = o[1];
1773
+ return [He(t, n), s];
1774
+ }
1775
+ var Ce = {
1776
+ itemToString: function(n) {
1777
+ return n ? String(n) : "";
1778
+ },
1779
+ itemToKey: function(n) {
1780
+ return n;
1781
+ },
1782
+ stateReducer: vo,
1783
+ getA11ySelectionMessage: Io,
1784
+ scrollIntoView: Kn,
1785
+ environment: (
1786
+ /* istanbul ignore next (ssr) */
1787
+ typeof window > "u" ? void 0 : window
1788
+ )
1789
+ };
1790
+ function Ie(e, n, r) {
1791
+ r === void 0 && (r = or);
1792
+ var i = e["default" + yt(n)];
1793
+ return i !== void 0 ? i : r[n];
1794
+ }
1795
+ function De(e, n, r) {
1796
+ r === void 0 && (r = or);
1797
+ var i = e[n];
1798
+ if (i !== void 0)
1799
+ return i;
1800
+ var o = e["initial" + yt(n)];
1801
+ return o !== void 0 ? o : Ie(e, n, r);
1802
+ }
1803
+ function wo(e) {
1804
+ var n = De(e, "selectedItem"), r = De(e, "isOpen"), i = De(e, "highlightedIndex"), o = De(e, "inputValue");
1805
+ return {
1806
+ highlightedIndex: i < 0 && n && r ? e.items.findIndex(function(t) {
1807
+ return e.itemToKey(t) === e.itemToKey(n);
1808
+ }) : i,
1809
+ isOpen: r,
1810
+ selectedItem: n,
1811
+ inputValue: o
1812
+ };
1813
+ }
1814
+ function Ve(e, n, r) {
1815
+ var i = e.items, o = e.initialHighlightedIndex, t = e.defaultHighlightedIndex, s = e.itemToKey, u = n.selectedItem, c = n.highlightedIndex;
1816
+ return i.length === 0 ? -1 : o !== void 0 && c === o ? o : t !== void 0 ? t : u ? i.findIndex(function(d) {
1817
+ return s(u) === s(d);
1818
+ }) : r === 0 ? -1 : r < 0 ? i.length - 1 : 0;
1819
+ }
1820
+ function xo(e, n, r) {
1821
+ var i = ae({
1822
+ isMouseDown: !1,
1823
+ isTouchMove: !1,
1824
+ isTouchEnd: !1
1825
+ });
1826
+ return ce(function() {
1827
+ if (!e)
1828
+ return me;
1829
+ var o = n.map(function(a) {
1830
+ return a.current;
1831
+ });
1832
+ function t() {
1833
+ i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
1834
+ }
1835
+ function s(a) {
1836
+ i.current.isMouseDown = !1, Xe(a.target, o, e) || r();
1837
+ }
1838
+ function u() {
1839
+ i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
1840
+ }
1841
+ function c() {
1842
+ i.current.isTouchMove = !0;
1843
+ }
1844
+ function d(a) {
1845
+ i.current.isTouchEnd = !0, !i.current.isTouchMove && !Xe(a.target, o, e, !1) && r();
1846
+ }
1847
+ return e.addEventListener("mousedown", t), e.addEventListener("mouseup", s), e.addEventListener("touchstart", u), e.addEventListener("touchmove", c), e.addEventListener("touchend", d), function() {
1848
+ e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", s), e.removeEventListener("touchstart", u), e.removeEventListener("touchmove", c), e.removeEventListener("touchend", d);
1849
+ };
1850
+ }, [e, r]), i.current;
1851
+ }
1852
+ var Et = function() {
1853
+ return me;
1854
+ };
1855
+ process.env.NODE_ENV !== "production" && (Et = function() {
1856
+ for (var n = ae(!0), r = arguments.length, i = new Array(r), o = 0; o < r; o++)
1857
+ i[o] = arguments[o];
1858
+ var t = ae(i.reduce(function(u, c) {
1859
+ return u[c] = {}, u;
1860
+ }, {}));
1861
+ ce(function() {
1862
+ Object.keys(t.current).forEach(function(u) {
1863
+ var c = t.current[u];
1864
+ if (n.current && !Object.keys(c).length) {
1865
+ console.error("downshift: You forgot to call the " + u + " getter function on your component / element.");
1866
+ return;
1867
+ }
1868
+ var d = c.suppressRefError, a = c.refKey, h = c.elementRef;
1869
+ (!h || !h.current) && !d && console.error('downshift: The ref prop "' + a + '" from ' + u + " was not applied correctly on your element.");
1870
+ }), n.current = !1;
1871
+ });
1872
+ var s = se(function(u, c, d, a) {
1873
+ t.current[u] = {
1874
+ suppressRefError: c,
1875
+ refKey: d,
1876
+ elementRef: a
1877
+ };
1878
+ }, []);
1879
+ return s;
1880
+ });
1881
+ function wn(e, n, r) {
1882
+ var i = r.highlightedIndex, o = r.items, t = r.environment, s = ge(r, mo), u = je();
1883
+ ce(function() {
1884
+ u || !(t != null && t.document) || _o(function() {
1885
+ return e(q({
1886
+ highlightedIndex: i,
1887
+ highlightedItem: o[i],
1888
+ resultCount: o.length
1889
+ }, s));
1890
+ }, t.document);
1891
+ }, n);
1892
+ }
1893
+ function Oo(e) {
1894
+ var n = e.highlightedIndex, r = e.isOpen, i = e.itemRefs, o = e.getItemNodeFromIndex, t = e.menuElement, s = e.scrollIntoView, u = ae(!0);
1895
+ return yo(function() {
1896
+ n < 0 || !r || !Object.keys(i.current).length || (u.current === !1 ? u.current = !0 : s(o(n), t));
1897
+ }, [n]), u;
1898
+ }
1899
+ var wt = me;
1900
+ process.env.NODE_ENV !== "production" && (wt = function(n) {
1901
+ var r = n.props, i = n.state, o = ae(r), t = je();
1902
+ ce(function() {
1903
+ t || (It(i, o.current, r), o.current = r);
1904
+ }, [i, r, t]);
1905
+ });
1906
+ function xn(e, n, r) {
1907
+ var i;
1908
+ r === void 0 && (r = !0);
1909
+ var o = ((i = e.items) == null ? void 0 : i.length) && n >= 0;
1910
+ return q({
1911
+ isOpen: !1,
1912
+ highlightedIndex: -1
1913
+ }, o && q({
1914
+ selectedItem: e.items[n],
1915
+ isOpen: Ie(e, "isOpen"),
1916
+ highlightedIndex: Ie(e, "highlightedIndex")
1917
+ }, r && {
1918
+ inputValue: e.itemToString(e.items[n])
1919
+ }));
1920
+ }
1921
+ function So(e, n) {
1922
+ return e.isOpen === n.isOpen && e.inputValue === n.inputValue && e.highlightedIndex === n.highlightedIndex && e.selectedItem === n.selectedItem;
1923
+ }
1924
+ function je() {
1925
+ var e = Ge.useRef(!0);
1926
+ return Ge.useEffect(function() {
1927
+ return e.current = !1, function() {
1928
+ e.current = !0;
1929
+ };
1930
+ }, []), e.current;
1931
+ }
1932
+ var ur = {
1933
+ environment: b.shape({
1934
+ addEventListener: b.func.isRequired,
1935
+ removeEventListener: b.func.isRequired,
1936
+ document: b.shape({
1937
+ createElement: b.func.isRequired,
1938
+ getElementById: b.func.isRequired,
1939
+ activeElement: b.any.isRequired,
1940
+ body: b.any.isRequired
1941
+ }).isRequired,
1942
+ Node: b.func.isRequired
1943
+ }),
1944
+ itemToString: b.func,
1945
+ itemToKey: b.func,
1946
+ stateReducer: b.func
1947
+ }, ar = q({}, ur, {
1948
+ getA11yStatusMessage: b.func,
1949
+ highlightedIndex: b.number,
1950
+ defaultHighlightedIndex: b.number,
1951
+ initialHighlightedIndex: b.number,
1952
+ isOpen: b.bool,
1953
+ defaultIsOpen: b.bool,
1954
+ initialIsOpen: b.bool,
1955
+ selectedItem: b.any,
1956
+ initialSelectedItem: b.any,
1957
+ defaultSelectedItem: b.any,
1958
+ id: b.string,
1959
+ labelId: b.string,
1960
+ menuId: b.string,
1961
+ getItemId: b.func,
1962
+ toggleButtonId: b.string,
1963
+ onSelectedItemChange: b.func,
1964
+ onHighlightedIndexChange: b.func,
1965
+ onStateChange: b.func,
1966
+ onIsOpenChange: b.func,
1967
+ scrollIntoView: b.func
1968
+ });
1969
+ function Co(e, n, r) {
1970
+ var i = n.type, o = n.props, t;
1971
+ switch (i) {
1972
+ case r.ItemMouseMove:
1973
+ t = {
1974
+ highlightedIndex: n.disabled ? -1 : n.index
1975
+ };
1976
+ break;
1977
+ case r.MenuMouseLeave:
1978
+ t = {
1979
+ highlightedIndex: -1
1980
+ };
1981
+ break;
1982
+ case r.ToggleButtonClick:
1983
+ case r.FunctionToggleMenu:
1984
+ t = {
1985
+ isOpen: !e.isOpen,
1986
+ highlightedIndex: e.isOpen ? -1 : Ve(o, e, 0)
1987
+ };
1988
+ break;
1989
+ case r.FunctionOpenMenu:
1990
+ t = {
1991
+ isOpen: !0,
1992
+ highlightedIndex: Ve(o, e, 0)
1993
+ };
1994
+ break;
1995
+ case r.FunctionCloseMenu:
1996
+ t = {
1997
+ isOpen: !1
1998
+ };
1999
+ break;
2000
+ case r.FunctionSetHighlightedIndex:
2001
+ t = {
2002
+ highlightedIndex: n.highlightedIndex
2003
+ };
2004
+ break;
2005
+ case r.FunctionSetInputValue:
2006
+ t = {
2007
+ inputValue: n.inputValue
2008
+ };
2009
+ break;
2010
+ case r.FunctionReset:
2011
+ t = {
2012
+ highlightedIndex: Ie(o, "highlightedIndex"),
2013
+ isOpen: Ie(o, "isOpen"),
2014
+ selectedItem: Ie(o, "selectedItem"),
2015
+ inputValue: Ie(o, "inputValue")
2016
+ };
2017
+ break;
2018
+ default:
2019
+ throw new Error("Reducer called without proper action type.");
2020
+ }
2021
+ return q({}, e, t);
2022
+ }
2023
+ Pe(Pe({}, ar), { items: b.array.isRequired, isItemDisabled: b.func, getA11ySelectionMessage: b.func });
2024
+ function Do(e) {
2025
+ var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
2026
+ return n ? r ? r !== i ? "".concat(r, " result").concat(r === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
2027
+ }
2028
+ Pe(Pe({}, Ce), { getA11yStatusMessage: Do, isItemDisabled: function() {
2029
+ return !1;
2030
+ } });
2031
+ process.env.NODE_ENV;
2032
+ process.env.NODE_ENV;
2033
+ process.env.NODE_ENV;
2034
+ process.env.NODE_ENV;
2035
+ process.env.NODE_ENV;
2036
+ process.env.NODE_ENV;
2037
+ process.env.NODE_ENV;
2038
+ process.env.NODE_ENV;
2039
+ process.env.NODE_ENV;
2040
+ process.env.NODE_ENV;
2041
+ process.env.NODE_ENV;
2042
+ process.env.NODE_ENV;
2043
+ process.env.NODE_ENV;
2044
+ process.env.NODE_ENV;
2045
+ process.env.NODE_ENV;
2046
+ process.env.NODE_ENV;
2047
+ process.env.NODE_ENV;
2048
+ process.env.NODE_ENV;
2049
+ process.env.NODE_ENV;
2050
+ process.env.NODE_ENV;
2051
+ process.env.NODE_ENV;
2052
+ process.env.NODE_ENV;
2053
+ process.env.NODE_ENV;
2054
+ var xt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, Ot = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, St = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, Ct = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, Dt = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Tt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, Pt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Rt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, Nt = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, Qe = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, Mt = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, lr = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, cr = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, At = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, dr = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, fr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, pr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, mr = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, hr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, kt = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, gr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, vr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, Vt = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, Ir = /* @__PURE__ */ Object.freeze({
2055
+ __proto__: null,
2056
+ InputKeyDownArrowDown: xt,
2057
+ InputKeyDownArrowUp: Ot,
2058
+ InputKeyDownEscape: St,
2059
+ InputKeyDownHome: Ct,
2060
+ InputKeyDownEnd: Dt,
2061
+ InputKeyDownPageUp: Tt,
2062
+ InputKeyDownPageDown: Pt,
2063
+ InputKeyDownEnter: Rt,
2064
+ InputChange: Nt,
2065
+ InputBlur: Qe,
2066
+ InputClick: Mt,
2067
+ MenuMouseLeave: lr,
2068
+ ItemMouseMove: cr,
2069
+ ItemClick: At,
2070
+ ToggleButtonClick: dr,
2071
+ FunctionToggleMenu: fr,
2072
+ FunctionOpenMenu: pr,
2073
+ FunctionCloseMenu: mr,
2074
+ FunctionSetHighlightedIndex: hr,
2075
+ FunctionSelectItem: kt,
2076
+ FunctionSetInputValue: gr,
2077
+ FunctionReset: vr,
2078
+ ControlledPropUpdatedSelectedItem: Vt
2079
+ });
2080
+ function To(e) {
2081
+ var n = wo(e), r = n.selectedItem, i = n.inputValue;
2082
+ return i === "" && r && e.defaultInputValue === void 0 && e.initialInputValue === void 0 && e.inputValue === void 0 && (i = e.itemToString(r)), q({}, n, {
2083
+ inputValue: i
2084
+ });
2085
+ }
2086
+ var Po = q({}, ar, {
2087
+ items: b.array.isRequired,
2088
+ isItemDisabled: b.func,
2089
+ selectedItemChanged: b.func,
2090
+ getA11ySelectionMessage: b.func,
2091
+ inputValue: b.string,
2092
+ defaultInputValue: b.string,
2093
+ initialInputValue: b.string,
2094
+ inputId: b.string,
2095
+ onInputValueChange: b.func
2096
+ });
2097
+ function Ro(e, n, r, i) {
2098
+ var o = ae(), t = sr(e, n, r, i), s = t[0], u = t[1], c = je();
2099
+ return ce(function() {
2100
+ if (Je(n, "selectedItem")) {
2101
+ if (!c) {
2102
+ var d;
2103
+ n.selectedItemChanged === void 0 ? d = n.itemToKey(n.selectedItem) !== n.itemToKey(o.current) : (console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'), d = n.selectedItemChanged(o.current, n.selectedItem)), d && u({
2104
+ type: Vt,
2105
+ inputValue: n.itemToString(n.selectedItem)
2106
+ });
2107
+ }
2108
+ o.current = s.selectedItem === o.current ? n.selectedItem : s.selectedItem;
2109
+ }
2110
+ }, [s.selectedItem, n.selectedItem]), [He(s, n), u];
2111
+ }
2112
+ var _r = me;
2113
+ process.env.NODE_ENV !== "production" && (_r = function(n, r) {
2114
+ b.checkPropTypes(Po, n, "prop", r.name);
2115
+ });
2116
+ var No = q({}, Ce, {
2117
+ getA11yStatusMessage: $n,
2118
+ isItemDisabled: function() {
2119
+ return !1;
2120
+ }
2121
+ });
2122
+ function Mo(e, n) {
2123
+ var r, i = n.type, o = n.props, t = n.altKey, s;
2124
+ switch (i) {
2125
+ case At:
2126
+ s = {
2127
+ isOpen: Ie(o, "isOpen"),
2128
+ highlightedIndex: Ie(o, "highlightedIndex"),
2129
+ selectedItem: o.items[n.index],
2130
+ inputValue: o.itemToString(o.items[n.index])
2131
+ };
2132
+ break;
2133
+ case xt:
2134
+ e.isOpen ? s = {
2135
+ highlightedIndex: Se(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
2136
+ } : s = {
2137
+ highlightedIndex: t && e.selectedItem == null ? -1 : Ve(o, e, 1),
2138
+ isOpen: o.items.length >= 0
2139
+ };
2140
+ break;
2141
+ case Ot:
2142
+ e.isOpen ? t ? s = xn(o, e.highlightedIndex) : s = {
2143
+ highlightedIndex: Se(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
2144
+ } : s = {
2145
+ highlightedIndex: Ve(o, e, -1),
2146
+ isOpen: o.items.length >= 0
2147
+ };
2148
+ break;
2149
+ case Rt:
2150
+ s = xn(o, e.highlightedIndex);
2151
+ break;
2152
+ case St:
2153
+ s = q({
2154
+ isOpen: !1,
2155
+ highlightedIndex: -1
2156
+ }, !e.isOpen && {
2157
+ selectedItem: null,
2158
+ inputValue: ""
2159
+ });
2160
+ break;
2161
+ case Tt:
2162
+ s = {
2163
+ highlightedIndex: Se(e.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
2164
+ };
2165
+ break;
2166
+ case Pt:
2167
+ s = {
2168
+ highlightedIndex: Se(e.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
2169
+ };
2170
+ break;
2171
+ case Ct:
2172
+ s = {
2173
+ highlightedIndex: Re(0, !1, o.items, o.isItemDisabled)
2174
+ };
2175
+ break;
2176
+ case Dt:
2177
+ s = {
2178
+ highlightedIndex: Re(o.items.length - 1, !0, o.items, o.isItemDisabled)
2179
+ };
2180
+ break;
2181
+ case Qe:
2182
+ s = q({
2183
+ isOpen: !1,
2184
+ highlightedIndex: -1
2185
+ }, e.highlightedIndex >= 0 && ((r = o.items) == null ? void 0 : r.length) && n.selectItem && {
2186
+ selectedItem: o.items[e.highlightedIndex],
2187
+ inputValue: o.itemToString(o.items[e.highlightedIndex])
2188
+ });
2189
+ break;
2190
+ case Nt:
2191
+ s = {
2192
+ isOpen: !0,
2193
+ highlightedIndex: Ie(o, "highlightedIndex"),
2194
+ inputValue: n.inputValue
2195
+ };
2196
+ break;
2197
+ case Mt:
2198
+ s = {
2199
+ isOpen: !e.isOpen,
2200
+ highlightedIndex: e.isOpen ? -1 : Ve(o, e, 0)
2201
+ };
2202
+ break;
2203
+ case kt:
2204
+ s = {
2205
+ selectedItem: n.selectedItem,
2206
+ inputValue: o.itemToString(n.selectedItem)
2207
+ };
2208
+ break;
2209
+ case Vt:
2210
+ s = {
2211
+ inputValue: n.inputValue
2212
+ };
2213
+ break;
2214
+ default:
2215
+ return Co(e, n, Ir);
2216
+ }
2217
+ return q({}, e, s);
2218
+ }
2219
+ var Ao = ["onMouseLeave", "refKey", "ref"], ko = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Vo = ["onClick", "onPress", "refKey", "ref"], Ho = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
2220
+ pe.stateChangeTypes = Ir;
2221
+ function pe(e) {
2222
+ e === void 0 && (e = {}), _r(e, pe);
2223
+ var n = q({}, No, e), r = n.items, i = n.scrollIntoView, o = n.environment, t = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, u = n.itemToString, c = Ro(Mo, n, To, So), d = c[0], a = c[1], h = d.isOpen, C = d.highlightedIndex, D = d.selectedItem, O = d.inputValue, N = ae(null), g = ae({}), K = ae(null), p = ae(null), m = je(), f = bo(n), l = ae(), T = bt({
2224
+ state: d,
2225
+ props: n
2226
+ }), U = se(function(I) {
2227
+ return g.current[f.getItemId(I)];
2228
+ }, [f]);
2229
+ wn(t, [h, C, O, r], q({
2230
+ previousResultCount: l.current,
2231
+ items: r,
2232
+ environment: o,
2233
+ itemToString: u
2234
+ }, d)), wn(s, [D], q({
2235
+ previousResultCount: l.current,
2236
+ items: r,
2237
+ environment: o,
2238
+ itemToString: u
2239
+ }, d));
2240
+ var k = Oo({
2241
+ menuElement: N.current,
2242
+ highlightedIndex: C,
2243
+ isOpen: h,
2244
+ itemRefs: g,
2245
+ scrollIntoView: i,
2246
+ getItemNodeFromIndex: U
2247
+ });
2248
+ wt({
2249
+ props: n,
2250
+ state: d
2251
+ }), ce(function() {
2252
+ var I = De(n, "isOpen");
2253
+ I && K.current && K.current.focus();
2254
+ }, []), ce(function() {
2255
+ m || (l.current = r.length);
2256
+ });
2257
+ var Y = xo(o, [p, N, K], se(function() {
2258
+ T.current.state.isOpen && a({
2259
+ type: Qe,
2260
+ selectItem: !1
2261
+ });
2262
+ }, [a, T])), j = Et("getInputProps", "getMenuProps");
2263
+ ce(function() {
2264
+ h || (g.current = {});
2265
+ }, [h]), ce(function() {
2266
+ var I;
2267
+ !h || !(o != null && o.document) || !(K != null && (I = K.current) != null && I.focus) || o.document.activeElement !== K.current && K.current.focus();
2268
+ }, [h, o]);
2269
+ var M = lt(function() {
2270
+ return {
2271
+ ArrowDown: function(y) {
2272
+ y.preventDefault(), a({
2273
+ type: xt,
2274
+ altKey: y.altKey
2275
+ });
2276
+ },
2277
+ ArrowUp: function(y) {
2278
+ y.preventDefault(), a({
2279
+ type: Ot,
2280
+ altKey: y.altKey
2281
+ });
2282
+ },
2283
+ Home: function(y) {
2284
+ T.current.state.isOpen && (y.preventDefault(), a({
2285
+ type: Ct
2286
+ }));
2287
+ },
2288
+ End: function(y) {
2289
+ T.current.state.isOpen && (y.preventDefault(), a({
2290
+ type: Dt
2291
+ }));
2292
+ },
2293
+ Escape: function(y) {
2294
+ var E = T.current.state;
2295
+ (E.isOpen || E.inputValue || E.selectedItem || E.highlightedIndex > -1) && (y.preventDefault(), a({
2296
+ type: St
2297
+ }));
2298
+ },
2299
+ Enter: function(y) {
2300
+ var E = T.current.state;
2301
+ !E.isOpen || y.which === 229 || (y.preventDefault(), a({
2302
+ type: Rt
2303
+ }));
2304
+ },
2305
+ PageUp: function(y) {
2306
+ T.current.state.isOpen && (y.preventDefault(), a({
2307
+ type: Tt
2308
+ }));
2309
+ },
2310
+ PageDown: function(y) {
2311
+ T.current.state.isOpen && (y.preventDefault(), a({
2312
+ type: Pt
2313
+ }));
2314
+ }
2315
+ };
2316
+ }, [a, T]), $ = se(function(I) {
2317
+ return q({
2318
+ id: f.labelId,
2319
+ htmlFor: f.inputId
2320
+ }, I);
2321
+ }, [f]), B = se(function(I, y) {
2322
+ var E, S = I === void 0 ? {} : I, V = S.onMouseLeave, H = S.refKey, A = H === void 0 ? "ref" : H, R = S.ref, _ = ge(S, Ao), G = y === void 0 ? {} : y, P = G.suppressRefError, X = P === void 0 ? !1 : P;
2323
+ return j("getMenuProps", X, A, N), q((E = {}, E[A] = xe(R, function(le) {
2324
+ N.current = le;
2325
+ }), E.id = f.menuId, E.role = "listbox", E["aria-labelledby"] = _ && _["aria-label"] ? void 0 : "" + f.labelId, E.onMouseLeave = ue(V, function() {
2326
+ a({
2327
+ type: lr
2328
+ });
2329
+ }), E), _);
2330
+ }, [a, j, f]), L = se(function(I) {
2331
+ var y, E, S = I === void 0 ? {} : I, V = S.item, H = S.index, A = S.refKey, R = A === void 0 ? "ref" : A, _ = S.ref, G = S.onMouseMove, P = S.onMouseDown, X = S.onClick;
2332
+ S.onPress;
2333
+ var le = S.disabled, he = ge(S, ko);
2334
+ le !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
2335
+ var Ae = T.current, Fe = Ae.props, _e = Ae.state, Le = ir(V, H, Fe.items, "Pass either item or index to getItemProps!"), et = Le[0], ye = Le[1], ke = Fe.isItemDisabled(et, ye), tt = "onClick", Be = X, be = function() {
2336
+ Y.isTouchEnd || ye === _e.highlightedIndex || (k.current = !1, a({
2337
+ type: cr,
2338
+ index: ye,
2339
+ disabled: ke
2340
+ }));
2341
+ }, Oe = function() {
2342
+ a({
2343
+ type: At,
2344
+ index: ye
2345
+ });
2346
+ }, Ee = function(Or) {
2347
+ return Or.preventDefault();
2348
+ };
2349
+ return q((y = {}, y[R] = xe(_, function(ve) {
2350
+ ve && (g.current[f.getItemId(ye)] = ve);
2351
+ }), y["aria-disabled"] = ke, y["aria-selected"] = "" + (ye === _e.highlightedIndex), y.id = f.getItemId(ye), y.role = "option", y), !ke && (E = {}, E[tt] = ue(Be, Oe), E), {
2352
+ onMouseMove: ue(G, be),
2353
+ onMouseDown: ue(P, Ee)
2354
+ }, he);
2355
+ }, [a, f, T, Y, k]), Q = se(function(I) {
2356
+ var y, E = I === void 0 ? {} : I, S = E.onClick;
2357
+ E.onPress;
2358
+ var V = E.refKey, H = V === void 0 ? "ref" : V, A = E.ref, R = ge(E, Vo), _ = T.current.state, G = function() {
2359
+ a({
2360
+ type: dr
2361
+ });
2362
+ };
2363
+ return q((y = {}, y[H] = xe(A, function(P) {
2364
+ p.current = P;
2365
+ }), y["aria-controls"] = f.menuId, y["aria-expanded"] = _.isOpen, y.id = f.toggleButtonId, y.tabIndex = -1, y), !R.disabled && q({}, {
2366
+ onClick: ue(S, G)
2367
+ }), R);
2368
+ }, [a, T, f]), J = se(function(I, y) {
2369
+ var E, S = I === void 0 ? {} : I, V = S.onKeyDown, H = S.onChange, A = S.onInput, R = S.onBlur;
2370
+ S.onChangeText;
2371
+ var _ = S.onClick, G = S.refKey, P = G === void 0 ? "ref" : G, X = S.ref, le = ge(S, Ho), he = y === void 0 ? {} : y, Ae = he.suppressRefError, Fe = Ae === void 0 ? !1 : Ae;
2372
+ j("getInputProps", Fe, P, K);
2373
+ var _e = T.current.state, Le = function(Ee) {
2374
+ var ve = Ke(Ee);
2375
+ ve && M[ve] && M[ve](Ee);
2376
+ }, et = function(Ee) {
2377
+ a({
2378
+ type: Nt,
2379
+ inputValue: Ee.target.value
2380
+ });
2381
+ }, ye = function(Ee) {
2382
+ if (o != null && o.document && _e.isOpen && !Y.isMouseDown) {
2383
+ var ve = Ee.relatedTarget === null && o.document.activeElement !== o.document.body;
2384
+ a({
2385
+ type: Qe,
2386
+ selectItem: !ve
2387
+ });
2388
+ }
2389
+ }, ke = function() {
2390
+ a({
2391
+ type: Mt
2392
+ });
2393
+ }, tt = "onChange", Be = {};
2394
+ if (!le.disabled) {
2395
+ var be;
2396
+ Be = (be = {}, be[tt] = ue(H, A, et), be.onKeyDown = ue(V, Le), be.onBlur = ue(R, ye), be.onClick = ue(_, ke), be);
2397
+ }
2398
+ return q((E = {}, E[P] = xe(X, function(Oe) {
2399
+ K.current = Oe;
2400
+ }), E["aria-activedescendant"] = _e.isOpen && _e.highlightedIndex > -1 ? f.getItemId(_e.highlightedIndex) : "", E["aria-autocomplete"] = "list", E["aria-controls"] = f.menuId, E["aria-expanded"] = _e.isOpen, E["aria-labelledby"] = le && le["aria-label"] ? void 0 : f.labelId, E.autoComplete = "off", E.id = f.inputId, E.role = "combobox", E.value = _e.inputValue, E), Be, le);
2401
+ }, [a, f, o, M, T, Y, j]), W = se(function() {
2402
+ a({
2403
+ type: fr
2404
+ });
2405
+ }, [a]), oe = se(function() {
2406
+ a({
2407
+ type: mr
2408
+ });
2409
+ }, [a]), re = se(function() {
2410
+ a({
2411
+ type: pr
2412
+ });
2413
+ }, [a]), v = se(function(I) {
2414
+ a({
2415
+ type: hr,
2416
+ highlightedIndex: I
2417
+ });
2418
+ }, [a]), x = se(function(I) {
2419
+ a({
2420
+ type: kt,
2421
+ selectedItem: I
2422
+ });
2423
+ }, [a]), F = se(function(I) {
2424
+ a({
2425
+ type: gr,
2426
+ inputValue: I
2427
+ });
2428
+ }, [a]), w = se(function() {
2429
+ a({
2430
+ type: vr
2431
+ });
2432
+ }, [a]);
2433
+ return {
2434
+ // prop getters.
2435
+ getItemProps: L,
2436
+ getLabelProps: $,
2437
+ getMenuProps: B,
2438
+ getInputProps: J,
2439
+ getToggleButtonProps: Q,
2440
+ // actions.
2441
+ toggleMenu: W,
2442
+ openMenu: re,
2443
+ closeMenu: oe,
2444
+ setHighlightedIndex: v,
2445
+ setInputValue: F,
2446
+ selectItem: x,
2447
+ reset: w,
2448
+ // state.
2449
+ highlightedIndex: C,
2450
+ isOpen: h,
2451
+ selectedItem: D,
2452
+ inputValue: O
2453
+ };
2454
+ }
2455
+ var yr = {
2456
+ activeIndex: -1,
2457
+ selectedItems: []
2458
+ };
2459
+ function On(e, n) {
2460
+ return De(e, n, yr);
2461
+ }
2462
+ function Sn(e, n) {
2463
+ return Ie(e, n, yr);
2464
+ }
2465
+ function Ko(e) {
2466
+ var n = On(e, "activeIndex"), r = On(e, "selectedItems");
2467
+ return {
2468
+ activeIndex: n,
2469
+ selectedItems: r
2470
+ };
2471
+ }
2472
+ function Cn(e) {
2473
+ if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey)
2474
+ return !1;
2475
+ var n = e.target;
2476
+ return !(n instanceof HTMLInputElement && // if element is a text input
2477
+ n.value !== "" && // and we have text in it
2478
+ // and cursor is either not at the start or is currently highlighting text.
2479
+ (n.selectionStart !== 0 || n.selectionEnd !== 0));
2480
+ }
2481
+ function jo(e) {
2482
+ var n = e.removedSelectedItem, r = e.itemToString;
2483
+ return r(n) + " has been removed.";
2484
+ }
2485
+ function $o(e, n) {
2486
+ return e.selectedItems === n.selectedItems && e.activeIndex === n.activeIndex;
2487
+ }
2488
+ var Fo = q({}, ur, {
2489
+ selectedItems: b.array,
2490
+ initialSelectedItems: b.array,
2491
+ defaultSelectedItems: b.array,
2492
+ getA11yRemovalMessage: b.func,
2493
+ activeIndex: b.number,
2494
+ initialActiveIndex: b.number,
2495
+ defaultActiveIndex: b.number,
2496
+ onActiveIndexChange: b.func,
2497
+ onSelectedItemsChange: b.func,
2498
+ keyNavigationNext: b.string,
2499
+ keyNavigationPrevious: b.string
2500
+ }), Lo = {
2501
+ itemToString: Ce.itemToString,
2502
+ itemToKey: Ce.itemToKey,
2503
+ stateReducer: Ce.stateReducer,
2504
+ environment: Ce.environment,
2505
+ getA11yRemovalMessage: jo,
2506
+ keyNavigationNext: "ArrowRight",
2507
+ keyNavigationPrevious: "ArrowLeft"
2508
+ }, br = me;
2509
+ process.env.NODE_ENV !== "production" && (br = function(n, r) {
2510
+ b.checkPropTypes(Fo, n, "prop", r.name);
2511
+ });
2512
+ var Ht = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, Kt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, jt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_backspace__" : 2, $t = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_next__" : 3, Ft = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_previous__" : 4, Lt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_navigation_previous__" : 5, Bt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_backspace__" : 6, Ut = process.env.NODE_ENV !== "production" ? "__dropdown_click__" : 7, Wt = process.env.NODE_ENV !== "production" ? "__function_add_selected_item__" : 8, qt = process.env.NODE_ENV !== "production" ? "__function_remove_selected_item__" : 9, Yt = process.env.NODE_ENV !== "production" ? "__function_set_selected_items__" : 10, zt = process.env.NODE_ENV !== "production" ? "__function_set_active_index__" : 11, Gt = process.env.NODE_ENV !== "production" ? "__function_reset__" : 12, Bo = /* @__PURE__ */ Object.freeze({
2513
+ __proto__: null,
2514
+ SelectedItemClick: Ht,
2515
+ SelectedItemKeyDownDelete: Kt,
2516
+ SelectedItemKeyDownBackspace: jt,
2517
+ SelectedItemKeyDownNavigationNext: $t,
2518
+ SelectedItemKeyDownNavigationPrevious: Ft,
2519
+ DropdownKeyDownNavigationPrevious: Lt,
2520
+ DropdownKeyDownBackspace: Bt,
2521
+ DropdownClick: Ut,
2522
+ FunctionAddSelectedItem: Wt,
2523
+ FunctionRemoveSelectedItem: qt,
2524
+ FunctionSetSelectedItems: Yt,
2525
+ FunctionSetActiveIndex: zt,
2526
+ FunctionReset: Gt
2527
+ });
2528
+ function Uo(e, n) {
2529
+ var r = n.type, i = n.index, o = n.props, t = n.selectedItem, s = e.activeIndex, u = e.selectedItems, c;
2530
+ switch (r) {
2531
+ case Ht:
2532
+ c = {
2533
+ activeIndex: i
2534
+ };
2535
+ break;
2536
+ case Ft:
2537
+ c = {
2538
+ activeIndex: s - 1 < 0 ? 0 : s - 1
2539
+ };
2540
+ break;
2541
+ case $t:
2542
+ c = {
2543
+ activeIndex: s + 1 >= u.length ? -1 : s + 1
2544
+ };
2545
+ break;
2546
+ case jt:
2547
+ case Kt: {
2548
+ if (s < 0)
2549
+ break;
2550
+ var d = s;
2551
+ u.length === 1 ? d = -1 : s === u.length - 1 && (d = u.length - 2), c = q({
2552
+ selectedItems: [].concat(u.slice(0, s), u.slice(s + 1))
2553
+ }, {
2554
+ activeIndex: d
2555
+ });
2556
+ break;
2557
+ }
2558
+ case Lt:
2559
+ c = {
2560
+ activeIndex: u.length - 1
2561
+ };
2562
+ break;
2563
+ case Bt:
2564
+ c = {
2565
+ selectedItems: u.slice(0, u.length - 1)
2566
+ };
2567
+ break;
2568
+ case Wt:
2569
+ c = {
2570
+ selectedItems: [].concat(u, [t])
2571
+ };
2572
+ break;
2573
+ case Ut:
2574
+ c = {
2575
+ activeIndex: -1
2576
+ };
2577
+ break;
2578
+ case qt: {
2579
+ var a = s, h = u.findIndex(function(O) {
2580
+ return o.itemToKey(O) === o.itemToKey(t);
2581
+ });
2582
+ if (h < 0)
2583
+ break;
2584
+ u.length === 1 ? a = -1 : h === u.length - 1 && (a = u.length - 2), c = {
2585
+ selectedItems: [].concat(u.slice(0, h), u.slice(h + 1)),
2586
+ activeIndex: a
2587
+ };
2588
+ break;
2589
+ }
2590
+ case Yt: {
2591
+ var C = n.selectedItems;
2592
+ c = {
2593
+ selectedItems: C
2594
+ };
2595
+ break;
2596
+ }
2597
+ case zt: {
2598
+ var D = n.activeIndex;
2599
+ c = {
2600
+ activeIndex: D
2601
+ };
2602
+ break;
2603
+ }
2604
+ case Gt:
2605
+ c = {
2606
+ activeIndex: Sn(o, "activeIndex"),
2607
+ selectedItems: Sn(o, "selectedItems")
2608
+ };
2609
+ break;
2610
+ default:
2611
+ throw new Error("Reducer called without proper action type.");
2612
+ }
2613
+ return q({}, e, c);
2614
+ }
2615
+ var Wo = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], qo = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
2616
+ we.stateChangeTypes = Bo;
2617
+ function we(e) {
2618
+ e === void 0 && (e = {}), br(e, we);
2619
+ var n = q({}, Lo, e), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, t = n.keyNavigationNext, s = n.keyNavigationPrevious, u = Eo(Uo, n, Ko, $o), c = u[0], d = u[1], a = c.activeIndex, h = c.selectedItems, C = je(), D = ae(null), O = ae(h), N = ae();
2620
+ N.current = [];
2621
+ var g = bt({
2622
+ state: c,
2623
+ props: n
2624
+ });
2625
+ ce(function() {
2626
+ if (!(C || !(o != null && o.document))) {
2627
+ if (h.length < O.current.length) {
2628
+ var M = O.current.find(function($) {
2629
+ return h.findIndex(function(B) {
2630
+ return n.itemToKey(B) === n.itemToKey($);
2631
+ }) < 0;
2632
+ });
2633
+ _t(r({
2634
+ itemToString: i,
2635
+ resultCount: h.length,
2636
+ removedSelectedItem: M,
2637
+ activeIndex: a,
2638
+ activeSelectedItem: h[a]
2639
+ }), o.document);
2640
+ }
2641
+ O.current = h;
2642
+ }
2643
+ }, [h.length]), ce(function() {
2644
+ C || (a === -1 && D.current ? D.current.focus() : N.current[a] && N.current[a].focus());
2645
+ }, [a]), wt({
2646
+ props: n,
2647
+ state: c
2648
+ });
2649
+ var K = Et("getDropdownProps"), p = lt(function() {
2650
+ var M;
2651
+ return M = {}, M[s] = function() {
2652
+ d({
2653
+ type: Ft
2654
+ });
2655
+ }, M[t] = function() {
2656
+ d({
2657
+ type: $t
2658
+ });
2659
+ }, M.Delete = function() {
2660
+ d({
2661
+ type: Kt
2662
+ });
2663
+ }, M.Backspace = function() {
2664
+ d({
2665
+ type: jt
2666
+ });
2667
+ }, M;
2668
+ }, [d, t, s]), m = lt(function() {
2669
+ var M;
2670
+ return M = {}, M[s] = function($) {
2671
+ Cn($) && d({
2672
+ type: Lt
2673
+ });
2674
+ }, M.Backspace = function(B) {
2675
+ Cn(B) && d({
2676
+ type: Bt
2677
+ });
2678
+ }, M;
2679
+ }, [d, s]), f = se(function(M) {
2680
+ var $, B = M === void 0 ? {} : M, L = B.refKey, Q = L === void 0 ? "ref" : L, J = B.ref, W = B.onClick, oe = B.onKeyDown, re = B.selectedItem, v = B.index, x = ge(B, Wo), F = g.current.state, w = ir(re, v, F.selectedItems, "Pass either item or index to getSelectedItemProps!"), I = w[1], y = I > -1 && I === F.activeIndex, E = function() {
2681
+ d({
2682
+ type: Ht,
2683
+ index: I
2684
+ });
2685
+ }, S = function(H) {
2686
+ var A = Ke(H);
2687
+ A && p[A] && p[A](H);
2688
+ };
2689
+ return q(($ = {}, $[Q] = xe(J, function(V) {
2690
+ V && N.current.push(V);
2691
+ }), $.tabIndex = y ? 0 : -1, $.onClick = ue(W, E), $.onKeyDown = ue(oe, S), $), x);
2692
+ }, [d, g, p]), l = se(function(M, $) {
2693
+ var B, L = M === void 0 ? {} : M, Q = L.refKey, J = Q === void 0 ? "ref" : Q, W = L.ref, oe = L.onKeyDown, re = L.onClick, v = L.preventKeyAction, x = v === void 0 ? !1 : v, F = ge(L, qo), w = $ === void 0 ? {} : $, I = w.suppressRefError, y = I === void 0 ? !1 : I;
2694
+ K("getDropdownProps", y, J, D);
2695
+ var E = function(H) {
2696
+ var A = Ke(H);
2697
+ A && m[A] && m[A](H);
2698
+ }, S = function() {
2699
+ d({
2700
+ type: Ut
2701
+ });
2702
+ };
2703
+ return q((B = {}, B[J] = xe(W, function(V) {
2704
+ V && (D.current = V);
2705
+ }), B), !x && {
2706
+ onKeyDown: ue(oe, E),
2707
+ onClick: ue(re, S)
2708
+ }, F);
2709
+ }, [d, m, K]), T = se(function(M) {
2710
+ d({
2711
+ type: Wt,
2712
+ selectedItem: M
2713
+ });
2714
+ }, [d]), U = se(function(M) {
2715
+ d({
2716
+ type: qt,
2717
+ selectedItem: M
2718
+ });
2719
+ }, [d]), k = se(function(M) {
2720
+ d({
2721
+ type: Yt,
2722
+ selectedItems: M
2723
+ });
2724
+ }, [d]), Y = se(function(M) {
2725
+ d({
2726
+ type: zt,
2727
+ activeIndex: M
2728
+ });
2729
+ }, [d]), j = se(function() {
2730
+ d({
2731
+ type: Gt
2732
+ });
2733
+ }, [d]);
2734
+ return {
2735
+ getSelectedItemProps: f,
2736
+ getDropdownProps: l,
2737
+ addSelectedItem: T,
2738
+ removeSelectedItem: U,
2739
+ setSelectedItems: k,
2740
+ setActiveIndex: Y,
2741
+ reset: j,
2742
+ selectedItems: h,
2743
+ activeIndex: a
2744
+ };
2745
+ }
2746
+ var Ze = { exports: {} }, Er = {
2747
+ À: "A",
2748
+ Á: "A",
2749
+ Â: "A",
2750
+ Ã: "A",
2751
+ Ä: "A",
2752
+ Å: "A",
2753
+ Ấ: "A",
2754
+ Ắ: "A",
2755
+ Ẳ: "A",
2756
+ Ẵ: "A",
2757
+ Ặ: "A",
2758
+ Æ: "AE",
2759
+ Ầ: "A",
2760
+ Ằ: "A",
2761
+ Ȃ: "A",
2762
+ Ả: "A",
2763
+ Ạ: "A",
2764
+ Ẩ: "A",
2765
+ Ẫ: "A",
2766
+ Ậ: "A",
2767
+ Ç: "C",
2768
+ Ḉ: "C",
2769
+ È: "E",
2770
+ É: "E",
2771
+ Ê: "E",
2772
+ Ë: "E",
2773
+ Ế: "E",
2774
+ Ḗ: "E",
2775
+ Ề: "E",
2776
+ Ḕ: "E",
2777
+ Ḝ: "E",
2778
+ Ȇ: "E",
2779
+ Ẻ: "E",
2780
+ Ẽ: "E",
2781
+ Ẹ: "E",
2782
+ Ể: "E",
2783
+ Ễ: "E",
2784
+ Ệ: "E",
2785
+ Ì: "I",
2786
+ Í: "I",
2787
+ Î: "I",
2788
+ Ï: "I",
2789
+ Ḯ: "I",
2790
+ Ȋ: "I",
2791
+ Ỉ: "I",
2792
+ Ị: "I",
2793
+ Ð: "D",
2794
+ Ñ: "N",
2795
+ Ò: "O",
2796
+ Ó: "O",
2797
+ Ô: "O",
2798
+ Õ: "O",
2799
+ Ö: "O",
2800
+ Ø: "O",
2801
+ Ố: "O",
2802
+ Ṍ: "O",
2803
+ Ṓ: "O",
2804
+ Ȏ: "O",
2805
+ Ỏ: "O",
2806
+ Ọ: "O",
2807
+ Ổ: "O",
2808
+ Ỗ: "O",
2809
+ Ộ: "O",
2810
+ Ờ: "O",
2811
+ Ở: "O",
2812
+ Ỡ: "O",
2813
+ Ớ: "O",
2814
+ Ợ: "O",
2815
+ Ù: "U",
2816
+ Ú: "U",
2817
+ Û: "U",
2818
+ Ü: "U",
2819
+ Ủ: "U",
2820
+ Ụ: "U",
2821
+ Ử: "U",
2822
+ Ữ: "U",
2823
+ Ự: "U",
2824
+ Ý: "Y",
2825
+ à: "a",
2826
+ á: "a",
2827
+ â: "a",
2828
+ ã: "a",
2829
+ ä: "a",
2830
+ å: "a",
2831
+ ấ: "a",
2832
+ ắ: "a",
2833
+ ẳ: "a",
2834
+ ẵ: "a",
2835
+ ặ: "a",
2836
+ æ: "ae",
2837
+ ầ: "a",
2838
+ ằ: "a",
2839
+ ȃ: "a",
2840
+ ả: "a",
2841
+ ạ: "a",
2842
+ ẩ: "a",
2843
+ ẫ: "a",
2844
+ ậ: "a",
2845
+ ç: "c",
2846
+ ḉ: "c",
2847
+ è: "e",
2848
+ é: "e",
2849
+ ê: "e",
2850
+ ë: "e",
2851
+ ế: "e",
2852
+ ḗ: "e",
2853
+ ề: "e",
2854
+ ḕ: "e",
2855
+ ḝ: "e",
2856
+ ȇ: "e",
2857
+ ẻ: "e",
2858
+ ẽ: "e",
2859
+ ẹ: "e",
2860
+ ể: "e",
2861
+ ễ: "e",
2862
+ ệ: "e",
2863
+ ì: "i",
2864
+ í: "i",
2865
+ î: "i",
2866
+ ï: "i",
2867
+ ḯ: "i",
2868
+ ȋ: "i",
2869
+ ỉ: "i",
2870
+ ị: "i",
2871
+ ð: "d",
2872
+ ñ: "n",
2873
+ ò: "o",
2874
+ ó: "o",
2875
+ ô: "o",
2876
+ õ: "o",
2877
+ ö: "o",
2878
+ ø: "o",
2879
+ ố: "o",
2880
+ ṍ: "o",
2881
+ ṓ: "o",
2882
+ ȏ: "o",
2883
+ ỏ: "o",
2884
+ ọ: "o",
2885
+ ổ: "o",
2886
+ ỗ: "o",
2887
+ ộ: "o",
2888
+ ờ: "o",
2889
+ ở: "o",
2890
+ ỡ: "o",
2891
+ ớ: "o",
2892
+ ợ: "o",
2893
+ ù: "u",
2894
+ ú: "u",
2895
+ û: "u",
2896
+ ü: "u",
2897
+ ủ: "u",
2898
+ ụ: "u",
2899
+ ử: "u",
2900
+ ữ: "u",
2901
+ ự: "u",
2902
+ ý: "y",
2903
+ ÿ: "y",
2904
+ Ā: "A",
2905
+ ā: "a",
2906
+ Ă: "A",
2907
+ ă: "a",
2908
+ Ą: "A",
2909
+ ą: "a",
2910
+ Ć: "C",
2911
+ ć: "c",
2912
+ Ĉ: "C",
2913
+ ĉ: "c",
2914
+ Ċ: "C",
2915
+ ċ: "c",
2916
+ Č: "C",
2917
+ č: "c",
2918
+ C̆: "C",
2919
+ c̆: "c",
2920
+ Ď: "D",
2921
+ ď: "d",
2922
+ Đ: "D",
2923
+ đ: "d",
2924
+ Ē: "E",
2925
+ ē: "e",
2926
+ Ĕ: "E",
2927
+ ĕ: "e",
2928
+ Ė: "E",
2929
+ ė: "e",
2930
+ Ę: "E",
2931
+ ę: "e",
2932
+ Ě: "E",
2933
+ ě: "e",
2934
+ Ĝ: "G",
2935
+ Ǵ: "G",
2936
+ ĝ: "g",
2937
+ ǵ: "g",
2938
+ Ğ: "G",
2939
+ ğ: "g",
2940
+ Ġ: "G",
2941
+ ġ: "g",
2942
+ Ģ: "G",
2943
+ ģ: "g",
2944
+ Ĥ: "H",
2945
+ ĥ: "h",
2946
+ Ħ: "H",
2947
+ ħ: "h",
2948
+ Ḫ: "H",
2949
+ ḫ: "h",
2950
+ Ĩ: "I",
2951
+ ĩ: "i",
2952
+ Ī: "I",
2953
+ ī: "i",
2954
+ Ĭ: "I",
2955
+ ĭ: "i",
2956
+ Į: "I",
2957
+ į: "i",
2958
+ İ: "I",
2959
+ ı: "i",
2960
+ IJ: "IJ",
2961
+ ij: "ij",
2962
+ Ĵ: "J",
2963
+ ĵ: "j",
2964
+ Ķ: "K",
2965
+ ķ: "k",
2966
+ Ḱ: "K",
2967
+ ḱ: "k",
2968
+ K̆: "K",
2969
+ k̆: "k",
2970
+ Ĺ: "L",
2971
+ ĺ: "l",
2972
+ Ļ: "L",
2973
+ ļ: "l",
2974
+ Ľ: "L",
2975
+ ľ: "l",
2976
+ Ŀ: "L",
2977
+ ŀ: "l",
2978
+ Ł: "l",
2979
+ ł: "l",
2980
+ Ḿ: "M",
2981
+ ḿ: "m",
2982
+ M̆: "M",
2983
+ m̆: "m",
2984
+ Ń: "N",
2985
+ ń: "n",
2986
+ Ņ: "N",
2987
+ ņ: "n",
2988
+ Ň: "N",
2989
+ ň: "n",
2990
+ ʼn: "n",
2991
+ N̆: "N",
2992
+ n̆: "n",
2993
+ Ō: "O",
2994
+ ō: "o",
2995
+ Ŏ: "O",
2996
+ ŏ: "o",
2997
+ Ő: "O",
2998
+ ő: "o",
2999
+ Œ: "OE",
3000
+ œ: "oe",
3001
+ P̆: "P",
3002
+ p̆: "p",
3003
+ Ŕ: "R",
3004
+ ŕ: "r",
3005
+ Ŗ: "R",
3006
+ ŗ: "r",
3007
+ Ř: "R",
3008
+ ř: "r",
3009
+ R̆: "R",
3010
+ r̆: "r",
3011
+ Ȓ: "R",
3012
+ ȓ: "r",
3013
+ Ś: "S",
3014
+ ś: "s",
3015
+ Ŝ: "S",
3016
+ ŝ: "s",
3017
+ Ş: "S",
3018
+ Ș: "S",
3019
+ ș: "s",
3020
+ ş: "s",
3021
+ Š: "S",
3022
+ š: "s",
3023
+ Ţ: "T",
3024
+ ţ: "t",
3025
+ ț: "t",
3026
+ Ț: "T",
3027
+ Ť: "T",
3028
+ ť: "t",
3029
+ Ŧ: "T",
3030
+ ŧ: "t",
3031
+ T̆: "T",
3032
+ t̆: "t",
3033
+ Ũ: "U",
3034
+ ũ: "u",
3035
+ Ū: "U",
3036
+ ū: "u",
3037
+ Ŭ: "U",
3038
+ ŭ: "u",
3039
+ Ů: "U",
3040
+ ů: "u",
3041
+ Ű: "U",
3042
+ ű: "u",
3043
+ Ų: "U",
3044
+ ų: "u",
3045
+ Ȗ: "U",
3046
+ ȗ: "u",
3047
+ V̆: "V",
3048
+ v̆: "v",
3049
+ Ŵ: "W",
3050
+ ŵ: "w",
3051
+ Ẃ: "W",
3052
+ ẃ: "w",
3053
+ X̆: "X",
3054
+ x̆: "x",
3055
+ Ŷ: "Y",
3056
+ ŷ: "y",
3057
+ Ÿ: "Y",
3058
+ Y̆: "Y",
3059
+ y̆: "y",
3060
+ Ź: "Z",
3061
+ ź: "z",
3062
+ Ż: "Z",
3063
+ ż: "z",
3064
+ Ž: "Z",
3065
+ ž: "z",
3066
+ ſ: "s",
3067
+ ƒ: "f",
3068
+ Ơ: "O",
3069
+ ơ: "o",
3070
+ Ư: "U",
3071
+ ư: "u",
3072
+ Ǎ: "A",
3073
+ ǎ: "a",
3074
+ Ǐ: "I",
3075
+ ǐ: "i",
3076
+ Ǒ: "O",
3077
+ ǒ: "o",
3078
+ Ǔ: "U",
3079
+ ǔ: "u",
3080
+ Ǖ: "U",
3081
+ ǖ: "u",
3082
+ Ǘ: "U",
3083
+ ǘ: "u",
3084
+ Ǚ: "U",
3085
+ ǚ: "u",
3086
+ Ǜ: "U",
3087
+ ǜ: "u",
3088
+ Ứ: "U",
3089
+ ứ: "u",
3090
+ Ṹ: "U",
3091
+ ṹ: "u",
3092
+ Ǻ: "A",
3093
+ ǻ: "a",
3094
+ Ǽ: "AE",
3095
+ ǽ: "ae",
3096
+ Ǿ: "O",
3097
+ ǿ: "o",
3098
+ Þ: "TH",
3099
+ þ: "th",
3100
+ Ṕ: "P",
3101
+ ṕ: "p",
3102
+ Ṥ: "S",
3103
+ ṥ: "s",
3104
+ X́: "X",
3105
+ x́: "x",
3106
+ Ѓ: "Г",
3107
+ ѓ: "г",
3108
+ Ќ: "К",
3109
+ ќ: "к",
3110
+ A̋: "A",
3111
+ a̋: "a",
3112
+ E̋: "E",
3113
+ e̋: "e",
3114
+ I̋: "I",
3115
+ i̋: "i",
3116
+ Ǹ: "N",
3117
+ ǹ: "n",
3118
+ Ồ: "O",
3119
+ ồ: "o",
3120
+ Ṑ: "O",
3121
+ ṑ: "o",
3122
+ Ừ: "U",
3123
+ ừ: "u",
3124
+ Ẁ: "W",
3125
+ ẁ: "w",
3126
+ Ỳ: "Y",
3127
+ ỳ: "y",
3128
+ Ȁ: "A",
3129
+ ȁ: "a",
3130
+ Ȅ: "E",
3131
+ ȅ: "e",
3132
+ Ȉ: "I",
3133
+ ȉ: "i",
3134
+ Ȍ: "O",
3135
+ ȍ: "o",
3136
+ Ȑ: "R",
3137
+ ȑ: "r",
3138
+ Ȕ: "U",
3139
+ ȕ: "u",
3140
+ B̌: "B",
3141
+ b̌: "b",
3142
+ Č̣: "C",
3143
+ č̣: "c",
3144
+ Ê̌: "E",
3145
+ ê̌: "e",
3146
+ F̌: "F",
3147
+ f̌: "f",
3148
+ Ǧ: "G",
3149
+ ǧ: "g",
3150
+ Ȟ: "H",
3151
+ ȟ: "h",
3152
+ J̌: "J",
3153
+ ǰ: "j",
3154
+ Ǩ: "K",
3155
+ ǩ: "k",
3156
+ M̌: "M",
3157
+ m̌: "m",
3158
+ P̌: "P",
3159
+ p̌: "p",
3160
+ Q̌: "Q",
3161
+ q̌: "q",
3162
+ Ř̩: "R",
3163
+ ř̩: "r",
3164
+ Ṧ: "S",
3165
+ ṧ: "s",
3166
+ V̌: "V",
3167
+ v̌: "v",
3168
+ W̌: "W",
3169
+ w̌: "w",
3170
+ X̌: "X",
3171
+ x̌: "x",
3172
+ Y̌: "Y",
3173
+ y̌: "y",
3174
+ A̧: "A",
3175
+ a̧: "a",
3176
+ B̧: "B",
3177
+ b̧: "b",
3178
+ Ḑ: "D",
3179
+ ḑ: "d",
3180
+ Ȩ: "E",
3181
+ ȩ: "e",
3182
+ Ɛ̧: "E",
3183
+ ɛ̧: "e",
3184
+ Ḩ: "H",
3185
+ ḩ: "h",
3186
+ I̧: "I",
3187
+ i̧: "i",
3188
+ Ɨ̧: "I",
3189
+ ɨ̧: "i",
3190
+ M̧: "M",
3191
+ m̧: "m",
3192
+ O̧: "O",
3193
+ o̧: "o",
3194
+ Q̧: "Q",
3195
+ q̧: "q",
3196
+ U̧: "U",
3197
+ u̧: "u",
3198
+ X̧: "X",
3199
+ x̧: "x",
3200
+ Z̧: "Z",
3201
+ z̧: "z",
3202
+ й: "и",
3203
+ Й: "И",
3204
+ ё: "е",
3205
+ Ё: "Е"
3206
+ }, wr = Object.keys(Er).join("|"), Yo = new RegExp(wr, "g"), zo = new RegExp(wr, "");
3207
+ function Go(e) {
3208
+ return Er[e];
3209
+ }
3210
+ var xr = function(e) {
3211
+ return e.replace(Yo, Go);
3212
+ }, Jo = function(e) {
3213
+ return !!e.match(zo);
3214
+ };
3215
+ Ze.exports = xr;
3216
+ Ze.exports.has = Jo;
3217
+ Ze.exports.remove = xr;
3218
+ var Xo = Ze.exports;
3219
+ const Qo = /* @__PURE__ */ Nn(Xo);
3220
+ /**
3221
+ * @name match-sorter
3222
+ * @license MIT license.
3223
+ * @copyright (c) 2020 Kent C. Dodds
3224
+ * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
3225
+ */
3226
+ const de = {
3227
+ CASE_SENSITIVE_EQUAL: 7,
3228
+ EQUAL: 6,
3229
+ STARTS_WITH: 5,
3230
+ WORD_STARTS_WITH: 4,
3231
+ CONTAINS: 3,
3232
+ ACRONYM: 2,
3233
+ MATCHES: 1,
3234
+ NO_MATCH: 0
3235
+ }, Zo = (e, n) => String(e.rankedValue).localeCompare(String(n.rankedValue));
3236
+ function Jt(e, n, r) {
3237
+ r === void 0 && (r = {});
3238
+ const {
3239
+ keys: i,
3240
+ threshold: o = de.MATCHES,
3241
+ baseSort: t = Zo,
3242
+ sorter: s = (d) => d.sort((a, h) => ri(a, h, t))
3243
+ } = r, u = e.reduce(c, []);
3244
+ return s(u).map((d) => {
3245
+ let {
3246
+ item: a
3247
+ } = d;
3248
+ return a;
3249
+ });
3250
+ function c(d, a, h) {
3251
+ const C = ei(a, i, n, r), {
3252
+ rank: D,
3253
+ keyThreshold: O = o
3254
+ } = C;
3255
+ return D >= O && d.push({
3256
+ ...C,
3257
+ item: a,
3258
+ index: h
3259
+ }), d;
3260
+ }
3261
+ }
3262
+ Jt.rankings = de;
3263
+ function ei(e, n, r, i) {
3264
+ if (!n) {
3265
+ const t = e;
3266
+ return {
3267
+ // ends up being duplicate of 'item' in matches but consistent
3268
+ rankedValue: t,
3269
+ rank: Dn(t, r, i),
3270
+ keyIndex: -1,
3271
+ keyThreshold: i.threshold
3272
+ };
3273
+ }
3274
+ return si(e, n).reduce((t, s, u) => {
3275
+ let {
3276
+ rank: c,
3277
+ rankedValue: d,
3278
+ keyIndex: a,
3279
+ keyThreshold: h
3280
+ } = t, {
3281
+ itemValue: C,
3282
+ attributes: D
3283
+ } = s, O = Dn(C, r, i), N = d;
3284
+ const {
3285
+ minRanking: g,
3286
+ maxRanking: K,
3287
+ threshold: p
3288
+ } = D;
3289
+ return O < g && O >= de.MATCHES ? O = g : O > K && (O = K), O > c && (c = O, a = u, h = p, N = C), {
3290
+ rankedValue: N,
3291
+ rank: c,
3292
+ keyIndex: a,
3293
+ keyThreshold: h
3294
+ };
3295
+ }, {
3296
+ rankedValue: e,
3297
+ rank: de.NO_MATCH,
3298
+ keyIndex: -1,
3299
+ keyThreshold: i.threshold
3300
+ });
3301
+ }
3302
+ function Dn(e, n, r) {
3303
+ return e = Tn(e, r), n = Tn(n, r), n.length > e.length ? de.NO_MATCH : e === n ? de.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), n = n.toLowerCase(), e === n ? de.EQUAL : e.startsWith(n) ? de.STARTS_WITH : e.includes(` ${n}`) ? de.WORD_STARTS_WITH : e.includes(n) ? de.CONTAINS : n.length === 1 ? de.NO_MATCH : ti(e).includes(n) ? de.ACRONYM : ni(e, n));
3304
+ }
3305
+ function ti(e) {
3306
+ let n = "";
3307
+ return e.split(" ").forEach((i) => {
3308
+ i.split("-").forEach((t) => {
3309
+ n += t.substr(0, 1);
3310
+ });
3311
+ }), n;
3312
+ }
3313
+ function ni(e, n) {
3314
+ let r = 0, i = 0;
3315
+ function o(c, d, a) {
3316
+ for (let h = a, C = d.length; h < C; h++)
3317
+ if (d[h] === c)
3318
+ return r += 1, h + 1;
3319
+ return -1;
3320
+ }
3321
+ function t(c) {
3322
+ const d = 1 / c, a = r / n.length;
3323
+ return de.MATCHES + a * d;
3324
+ }
3325
+ const s = o(n[0], e, 0);
3326
+ if (s < 0)
3327
+ return de.NO_MATCH;
3328
+ i = s;
3329
+ for (let c = 1, d = n.length; c < d; c++) {
3330
+ const a = n[c];
3331
+ if (i = o(a, e, i), !(i > -1))
3332
+ return de.NO_MATCH;
3333
+ }
3334
+ const u = i - s;
3335
+ return t(u);
3336
+ }
3337
+ function ri(e, n, r) {
3338
+ const {
3339
+ rank: t,
3340
+ keyIndex: s
3341
+ } = e, {
3342
+ rank: u,
3343
+ keyIndex: c
3344
+ } = n;
3345
+ return t === u ? s === c ? r(e, n) : s < c ? -1 : 1 : t > u ? -1 : 1;
3346
+ }
3347
+ function Tn(e, n) {
3348
+ let {
3349
+ keepDiacritics: r
3350
+ } = n;
3351
+ return e = `${e}`, r || (e = Qo(e)), e;
3352
+ }
3353
+ function oi(e, n) {
3354
+ typeof n == "object" && (n = n.key);
3355
+ let r;
3356
+ if (typeof n == "function")
3357
+ r = n(e);
3358
+ else if (e == null)
3359
+ r = null;
3360
+ else if (Object.hasOwnProperty.call(e, n))
3361
+ r = e[n];
3362
+ else {
3363
+ if (n.includes("."))
3364
+ return ii(n, e);
3365
+ r = null;
3366
+ }
3367
+ return r == null ? [] : Array.isArray(r) ? r : [String(r)];
3368
+ }
3369
+ function ii(e, n) {
3370
+ const r = e.split(".");
3371
+ let i = [n];
3372
+ for (let o = 0, t = r.length; o < t; o++) {
3373
+ const s = r[o];
3374
+ let u = [];
3375
+ for (let c = 0, d = i.length; c < d; c++) {
3376
+ const a = i[c];
3377
+ if (a != null)
3378
+ if (Object.hasOwnProperty.call(a, s)) {
3379
+ const h = a[s];
3380
+ h != null && u.push(h);
3381
+ } else
3382
+ s === "*" && (u = u.concat(a));
3383
+ }
3384
+ i = u;
3385
+ }
3386
+ return Array.isArray(i[0]) ? [].concat(...i) : i;
3387
+ }
3388
+ function si(e, n) {
3389
+ const r = [];
3390
+ for (let i = 0, o = n.length; i < o; i++) {
3391
+ const t = n[i], s = ui(t), u = oi(e, t);
3392
+ for (let c = 0, d = u.length; c < d; c++)
3393
+ r.push({
3394
+ itemValue: u[c],
3395
+ attributes: s
3396
+ });
3397
+ }
3398
+ return r;
3399
+ }
3400
+ const Pn = {
3401
+ maxRanking: 1 / 0,
3402
+ minRanking: -1 / 0
3403
+ };
3404
+ function ui(e) {
3405
+ return typeof e == "string" ? Pn : {
3406
+ ...Pn,
3407
+ ...e
3408
+ };
3409
+ }
3410
+ const ai = "_combobox_1wjs7_2", li = "_input_1wjs7_30", ci = "_error_1wjs7_60", di = "_small_1wjs7_85", fi = "_large_1wjs7_88", pi = "_disabled_1wjs7_112", mi = "_chip_1wjs7_161", hi = "_prefix_1wjs7_216", gi = "_suffix_1wjs7_217", vi = "_listview_1wjs7_252", Ii = "_empty_1wjs7_262", ie = {
3411
+ combobox: ai,
3412
+ "search-field": "_search-field_1wjs7_6",
3413
+ "popover-content": "_popover-content_1wjs7_21",
3414
+ "input-wrapper": "_input-wrapper_1wjs7_30",
3415
+ input: li,
3416
+ error: ci,
3417
+ "buttons-wrapper": "_buttons-wrapper_1wjs7_68",
3418
+ small: di,
3419
+ large: fi,
3420
+ "close-button-wrapper": "_close-button-wrapper_1wjs7_92",
3421
+ "close-button": "_close-button_1wjs7_92",
3422
+ "loading-infinite": "_loading-infinite_1wjs7_112",
3423
+ "loading-progress": "_loading-progress_1wjs7_112",
3424
+ disabled: pi,
3425
+ "toggle-button-wrapper": "_toggle-button-wrapper_1wjs7_116",
3426
+ "toggle-button": "_toggle-button_1wjs7_116",
3427
+ "rows-wrapper": "_rows-wrapper_1wjs7_150",
3428
+ "chip-wrapper": "_chip-wrapper_1wjs7_161",
3429
+ chip: mi,
3430
+ prefix: hi,
3431
+ suffix: gi,
3432
+ listview: vi,
3433
+ "listview-option": "_listview-option_1wjs7_257",
3434
+ empty: Ii
3435
+ }, Xt = Tr(null), $e = function() {
3436
+ const e = Pr(
3437
+ Xt
3438
+ );
3439
+ if (e == null)
3440
+ throw new Error("useCombobox must be wrapped in <Combobox />");
3441
+ return e;
3442
+ }, _i = function(e) {
3443
+ const { multiple: n = !1, ...r } = e;
3444
+ return n ? /* @__PURE__ */ z.jsx(bi, { ...r }) : /* @__PURE__ */ z.jsx(yi, { ...r });
3445
+ }, yi = function(e) {
3446
+ const { layoutStyles: n, componentProps: r } = An(e), {
3447
+ className: i,
3448
+ style: o,
3449
+ children: t,
3450
+ open: s,
3451
+ items: u,
3452
+ itemToString: c,
3453
+ itemToKey: d,
3454
+ onChange: a,
3455
+ onSelectedItemChange: h,
3456
+ disableCloseOnClickOutside: C = !1,
3457
+ filterOptions: D,
3458
+ root: O,
3459
+ ...N
3460
+ } = r, [g, K] = fe(u), [p, m] = fe(!1), [f, l] = fe(!1), [T, U] = fe(!1), [k, Y] = fe([]);
3461
+ function j(w) {
3462
+ return c && w ? c(w) : w ? String(w) : "";
3463
+ }
3464
+ const M = d || ((w) => w), {
3465
+ isOpen: $,
3466
+ getLabelProps: B,
3467
+ getInputProps: L,
3468
+ getToggleButtonProps: Q,
3469
+ getMenuProps: J,
3470
+ getItemProps: W,
3471
+ highlightedIndex: oe,
3472
+ selectedItem: re,
3473
+ selectItem: v,
3474
+ setInputValue: x,
3475
+ inputValue: F
3476
+ } = pe({
3477
+ ...N,
3478
+ items: g,
3479
+ itemToString(w) {
3480
+ return j(w);
3481
+ },
3482
+ onInputValueChange({ inputValue: w, type: I, selectedItem: y }) {
3483
+ I === pe.stateChangeTypes.InputKeyDownEnter || I === pe.stateChangeTypes.ItemClick || y != null && w === j(y) ? K(u) : w != null && w !== "" ? K(Jt(u, w, D)) : K(u);
3484
+ },
3485
+ onSelectedItemChange(w) {
3486
+ const { selectedItem: I } = w;
3487
+ a != null && a(I || null), h != null && h(w);
3488
+ },
3489
+ onIsOpenChange({ isOpen: w, inputValue: I, selectedItem: y }) {
3490
+ w === !1 && I === "" ? (v(null), K(u)) : w === !1 && (x(y != null ? j(y) : ""), K(u));
3491
+ },
3492
+ stateReducer(w, { type: I, changes: y }) {
3493
+ switch (I) {
3494
+ case pe.stateChangeTypes.InputBlur:
3495
+ return C ? {
3496
+ ...y,
3497
+ isOpen: w.isOpen,
3498
+ highlightedIndex: w.highlightedIndex
3499
+ } : y;
3500
+ default:
3501
+ return y;
3502
+ }
3503
+ },
3504
+ isItemDisabled(w) {
3505
+ return p || !!(w && w instanceof Object && "disabled" in w && w.disabled || w && w instanceof Object && "readOnly" in w && w.readOnly || k.includes(w));
3506
+ }
3507
+ });
3508
+ return /* @__PURE__ */ z.jsx(
3509
+ Xt.Provider,
3510
+ {
3511
+ value: {
3512
+ multiple: !1,
3513
+ items: g,
3514
+ itemToString: j,
3515
+ itemToKey: M,
3516
+ isOpen: $,
3517
+ getLabelProps: B,
3518
+ getInputProps: L,
3519
+ getToggleButtonProps: Q,
3520
+ getMenuProps: J,
3521
+ getItemProps: W,
3522
+ highlightedIndex: oe,
3523
+ selectedItem: re,
3524
+ selectedItems: [],
3525
+ disabledItems: k,
3526
+ setDisabledItems: Y,
3527
+ getSelectedItemProps: void 0,
3528
+ getDropdownProps: void 0,
3529
+ selectItem: v,
3530
+ inputValue: F,
3531
+ isDisabledOrReadOnly: p,
3532
+ setIsDisabledOrReadOnly: m,
3533
+ hasDisabledPopover: f,
3534
+ setHasDisabledPopover: l,
3535
+ hasEmpty: T,
3536
+ setHasEmpty: U
3537
+ },
3538
+ children: /* @__PURE__ */ z.jsx(
3539
+ "div",
3540
+ {
3541
+ className: i,
3542
+ "data-anv": "combobox",
3543
+ style: { ...o, ...n },
3544
+ children: /* @__PURE__ */ z.jsx(
3545
+ ht,
3546
+ {
3547
+ root: O,
3548
+ open: s === !0 ? s : $,
3549
+ noPadding: !0,
3550
+ disableCaret: !0,
3551
+ fitScreen: !0,
3552
+ disableFlipFallback: !0,
3553
+ matchReferenceWidth: !0,
3554
+ children: t
3555
+ }
3556
+ )
3557
+ }
3558
+ )
3559
+ }
3560
+ );
3561
+ }, bi = function(e) {
3562
+ const { layoutStyles: n, componentProps: r } = An(e), {
3563
+ className: i,
3564
+ style: o,
3565
+ children: t,
3566
+ open: s,
3567
+ items: u,
3568
+ itemToString: c,
3569
+ itemToKey: d,
3570
+ onChange: a,
3571
+ onSelectedItemsChange: h,
3572
+ disableCloseOnClickOutside: C = !1,
3573
+ filterOptions: D,
3574
+ root: O,
3575
+ stateReducer: N,
3576
+ ...g
3577
+ } = r, [K, p] = fe(u), [m, f] = fe(!1), [l, T] = fe(!1), [U, k] = fe(!1), [Y, j] = fe(""), [M, $] = fe([]), {
3578
+ getSelectedItemProps: B,
3579
+ getDropdownProps: L,
3580
+ reset: Q,
3581
+ selectedItems: J,
3582
+ addSelectedItem: W,
3583
+ removeSelectedItem: oe,
3584
+ setSelectedItems: re
3585
+ } = we({
3586
+ ...g,
3587
+ onSelectedItemsChange(R) {
3588
+ const { selectedItems: _ } = R;
3589
+ a != null && a(_), h != null && h(R);
3590
+ },
3591
+ onStateChange({ selectedItems: R, type: _ }) {
3592
+ switch (_) {
3593
+ case we.stateChangeTypes.SelectedItemKeyDownBackspace:
3594
+ case we.stateChangeTypes.SelectedItemKeyDownDelete:
3595
+ case we.stateChangeTypes.DropdownKeyDownBackspace:
3596
+ case we.stateChangeTypes.FunctionRemoveSelectedItem:
3597
+ re(R ?? []);
3598
+ break;
3599
+ case we.stateChangeTypes.FunctionReset:
3600
+ re([]), j("");
3601
+ break;
3602
+ }
3603
+ }
3604
+ });
3605
+ function v(R) {
3606
+ return c && R ? c(R) : R ? String(R) : "";
3607
+ }
3608
+ const x = d || ((R) => R), {
3609
+ isOpen: F,
3610
+ getLabelProps: w,
3611
+ getInputProps: I,
3612
+ getToggleButtonProps: y,
3613
+ getMenuProps: E,
3614
+ getItemProps: S,
3615
+ highlightedIndex: V,
3616
+ selectedItem: H,
3617
+ selectItem: A
3618
+ } = pe({
3619
+ ...g,
3620
+ items: K,
3621
+ itemToString(R) {
3622
+ return v(R);
3623
+ },
3624
+ selectedItem: null,
3625
+ inputValue: Y,
3626
+ onInputValueChange({ inputValue: R, type: _, selectedItem: G }) {
3627
+ _ === pe.stateChangeTypes.InputKeyDownEnter || _ === pe.stateChangeTypes.ItemClick || G != null && R === v(G) ? p(u) : R != null && R !== "" ? p(Jt(u, R, D)) : p(u);
3628
+ },
3629
+ onIsOpenChange({ isOpen: R }) {
3630
+ R === !1 && (j(""), p(u));
3631
+ },
3632
+ stateReducer(R, { type: _, changes: G }) {
3633
+ switch (_) {
3634
+ case pe.stateChangeTypes.InputBlur:
3635
+ return C ? {
3636
+ ...G,
3637
+ isOpen: R.isOpen,
3638
+ highlightedIndex: R.highlightedIndex
3639
+ } : G;
3640
+ default:
3641
+ return G;
3642
+ }
3643
+ },
3644
+ isItemDisabled(R) {
3645
+ return m || !!(R && R instanceof Object && "disabled" in R && R.disabled || R && R instanceof Object && "readOnly" in R && R.readOnly || M.includes(R));
3646
+ },
3647
+ onStateChange({
3648
+ inputValue: R = "",
3649
+ type: _,
3650
+ selectedItem: G
3651
+ }) {
3652
+ switch (_) {
3653
+ case pe.stateChangeTypes.InputKeyDownEnter:
3654
+ case pe.stateChangeTypes.ItemClick:
3655
+ case pe.stateChangeTypes.InputBlur:
3656
+ if (G) {
3657
+ const P = J.find(
3658
+ (X) => x(X) === x(G)
3659
+ );
3660
+ P ? oe(P) : W(G), j("");
3661
+ }
3662
+ break;
3663
+ case pe.stateChangeTypes.InputChange:
3664
+ j(R);
3665
+ break;
3666
+ }
3667
+ }
3668
+ });
3669
+ return /* @__PURE__ */ z.jsx(
3670
+ Xt.Provider,
3671
+ {
3672
+ value: {
3673
+ multiple: !0,
3674
+ items: K,
3675
+ itemToString: v,
3676
+ itemToKey: x,
3677
+ isOpen: F,
3678
+ getLabelProps: w,
3679
+ getInputProps: I,
3680
+ getToggleButtonProps: y,
3681
+ getMenuProps: E,
3682
+ getItemProps: S,
3683
+ highlightedIndex: V,
3684
+ selectedItem: H,
3685
+ selectedItems: J,
3686
+ disabledItems: M,
3687
+ setDisabledItems: $,
3688
+ getSelectedItemProps: B,
3689
+ getDropdownProps: L,
3690
+ reset: Q,
3691
+ addSelectedItem: W,
3692
+ removeSelectedItem: oe,
3693
+ setSelectedItems: re,
3694
+ selectItem: A,
3695
+ inputValue: Y,
3696
+ isDisabledOrReadOnly: m,
3697
+ setIsDisabledOrReadOnly: f,
3698
+ hasDisabledPopover: l,
3699
+ setHasDisabledPopover: T,
3700
+ hasEmpty: U,
3701
+ setHasEmpty: k
3702
+ },
3703
+ children: /* @__PURE__ */ z.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ z.jsx(
3704
+ ht,
3705
+ {
3706
+ root: O,
3707
+ open: s === !0 ? s : F,
3708
+ noPadding: !0,
3709
+ disableCaret: !0,
3710
+ fitScreen: !0,
3711
+ disableFlipFallback: !0,
3712
+ matchReferenceWidth: !0,
3713
+ children: t
3714
+ }
3715
+ ) })
3716
+ }
3717
+ );
3718
+ }, Ei = ({
3719
+ className: e,
3720
+ label: n,
3721
+ size: r,
3722
+ error: i,
3723
+ hint: o,
3724
+ description: t,
3725
+ required: s,
3726
+ moreInfo: u,
3727
+ openMoreInfo: c,
3728
+ disabled: d,
3729
+ readOnly: a,
3730
+ prefix: h,
3731
+ suffix: C,
3732
+ maxRows: D,
3733
+ ...O
3734
+ }) => {
3735
+ const {
3736
+ isOpen: N,
3737
+ itemToString: g,
3738
+ getLabelProps: K,
3739
+ getInputProps: p,
3740
+ getToggleButtonProps: m,
3741
+ selectedItems: f,
3742
+ getSelectedItemProps: l,
3743
+ getDropdownProps: T,
3744
+ reset: U,
3745
+ removeSelectedItem: k,
3746
+ selectItem: Y,
3747
+ inputValue: j,
3748
+ setIsDisabledOrReadOnly: M,
3749
+ hasDisabledPopover: $
3750
+ } = $e(), B = Nr(), L = ae(null), Q = Te(ie["input-wrapper"], {
3751
+ [ie.small]: r === "small",
3752
+ [ie.large]: r === "large"
3753
+ }), J = Qt(), W = Qt(), oe = Te(ie.input, e, {
3754
+ [ie.error]: i
3755
+ });
3756
+ ce(() => (M(!!(d || a)), () => {
3757
+ M(!1);
3758
+ }), [d, a, M]);
3759
+ let re = `label${J} `;
3760
+ re += ` helper${W}`;
3761
+ const v = typeof i != "boolean" ? i : void 0, x = ae(null), [F, w] = fe(!1), [I, y] = fe(!1), [E, S] = fe(
3762
+ null
3763
+ ), [V, H] = fe(0);
3764
+ Rn(() => {
3765
+ var R, _;
3766
+ if (D !== void 0) {
3767
+ if (F === !1)
3768
+ w(!0), y(!1), S(null), H((G) => G + 1);
3769
+ else if ((R = x == null ? void 0 : x.current) != null && R.children) {
3770
+ const G = (_ = x == null ? void 0 : x.current) == null ? void 0 : _.children, P = Array.from(G).reduce(
3771
+ (X, le) => {
3772
+ const he = le.getBoundingClientRect().top;
3773
+ return X.length ? X[X.length - 1].top === he ? [
3774
+ ...X.slice(0, -1),
3775
+ { count: X[X.length - 1].count + 1, top: he }
3776
+ ] : X[X.length - 1].top !== he ? [...X, { count: 1, top: he }] : X : [{ count: 1, top: he }];
3777
+ },
3778
+ []
3779
+ );
3780
+ if (!P[1] || E === 0)
3781
+ w(!1);
3782
+ else {
3783
+ if (y(!0), E == null) {
3784
+ const X = Math.max(
3785
+ P[0].count + P[1].count - 2,
3786
+ 0
3787
+ );
3788
+ S(X);
3789
+ } else
3790
+ S(E - 1);
3791
+ H((X) => X + 1);
3792
+ }
3793
+ }
3794
+ }
3795
+ }, [f.length, D, V]);
3796
+ const A = I && D != null && E !== null ? E : f.length;
3797
+ return /* @__PURE__ */ z.jsxs("div", { className: ie["search-field"], "data-anv": "combobox-searchfield", children: [
3798
+ n ? /* @__PURE__ */ z.jsx(
3799
+ Mr,
3800
+ {
3801
+ ...K({
3802
+ className: ie.label,
3803
+ id: J,
3804
+ required: s,
3805
+ moreInfo: u,
3806
+ openMoreInfo: c
3807
+ }),
3808
+ children: n
3809
+ }
3810
+ ) : null,
3811
+ /* @__PURE__ */ z.jsxs(
3812
+ "div",
3813
+ {
3814
+ className: Q,
3815
+ ref: B.refs.setReference,
3816
+ children: [
3817
+ /* @__PURE__ */ z.jsxs("div", { className: ie["buttons-wrapper"], children: [
3818
+ j || f.length ? /* @__PURE__ */ z.jsx("div", { className: ie["close-button-wrapper"], children: /* @__PURE__ */ z.jsx(
3819
+ Zt,
3820
+ {
3821
+ "aria-label": "clear selection",
3822
+ appearance: "ghost",
3823
+ size: "small",
3824
+ icon: Vr,
3825
+ className: ie["close-button"],
3826
+ onClick: () => {
3827
+ U != null ? U() : Y(null);
3828
+ },
3829
+ tabIndex: -1,
3830
+ disabled: d || a
3831
+ }
3832
+ ) }) : null,
3833
+ $ ? null : /* @__PURE__ */ z.jsx("div", { className: ie["toggle-button-wrapper"], children: /* @__PURE__ */ z.jsx(
3834
+ Zt,
3835
+ {
3836
+ "aria-label": "toggle menu",
3837
+ ...m({
3838
+ icon: Hr,
3839
+ className: ie["toggle-button"],
3840
+ disabled: d || a
3841
+ }),
3842
+ appearance: "ghost",
3843
+ size: "small"
3844
+ }
3845
+ ) })
3846
+ ] }),
3847
+ /* @__PURE__ */ z.jsxs("div", { className: ie["rows-wrapper"], ref: x, children: [
3848
+ f.length && k != null && l != null ? f.slice(0, A).map((R, _) => {
3849
+ const { onClick: G, ...P } = l({
3850
+ selectedItem: R,
3851
+ index: _
3852
+ });
3853
+ return /* @__PURE__ */ z.jsx(
3854
+ "div",
3855
+ {
3856
+ className: ie["chip-wrapper"],
3857
+ children: /* @__PURE__ */ z.jsx(
3858
+ en,
3859
+ {
3860
+ ...P,
3861
+ label: g(R),
3862
+ onClose: (X) => {
3863
+ "code" in X && X.code !== "Delete" && X.code !== "Backspace" && k(R);
3864
+ },
3865
+ className: ie.chip,
3866
+ title: g(R)
3867
+ }
3868
+ )
3869
+ },
3870
+ `selected-item-${_}`
3871
+ );
3872
+ }) : null,
3873
+ I && D != null ? /* @__PURE__ */ z.jsx("div", { className: ie["chip-wrapper"], children: /* @__PURE__ */ z.jsx(
3874
+ en,
3875
+ {
3876
+ label: `+${f.length - A}`,
3877
+ className: ie.chip,
3878
+ title: f.slice(A).map((R) => g(R)).join(", ")
3879
+ }
3880
+ ) }) : null,
3881
+ /* @__PURE__ */ z.jsxs(Rr, { flex: "1 1 100px", alignItems: "center", style: { width: "100px" }, children: [
3882
+ h ? /* @__PURE__ */ z.jsx("div", { className: ie.prefix, children: h }) : null,
3883
+ /* @__PURE__ */ z.jsx(
3884
+ "input",
3885
+ {
3886
+ ...T != null ? p(
3887
+ T({
3888
+ ...O,
3889
+ className: oe,
3890
+ disabled: d,
3891
+ readOnly: a,
3892
+ required: s,
3893
+ autoComplete: "off",
3894
+ "aria-labelledby": re,
3895
+ preventKeyAction: N,
3896
+ ref: L
3897
+ })
3898
+ ) : p({
3899
+ ...O,
3900
+ className: oe,
3901
+ disabled: d,
3902
+ readOnly: a,
3903
+ required: s,
3904
+ autoComplete: "off",
3905
+ "aria-labelledby": re,
3906
+ ref: L
3907
+ })
3908
+ }
3909
+ ),
3910
+ C ? /* @__PURE__ */ z.jsx("div", { className: ie.suffix, children: C }) : null
3911
+ ] })
3912
+ ] })
3913
+ ]
3914
+ }
3915
+ ),
3916
+ o || v || t ? /* @__PURE__ */ z.jsx(
3917
+ jr,
3918
+ {
3919
+ id: W,
3920
+ errorMessage: v,
3921
+ hint: o,
3922
+ description: t
3923
+ }
3924
+ ) : null
3925
+ ] });
3926
+ }, wi = function({
3927
+ children: e,
3928
+ className: n,
3929
+ disablePopover: r = !1,
3930
+ ...i
3931
+ }) {
3932
+ const {
3933
+ items: o,
3934
+ itemToKey: t,
3935
+ highlightedIndex: s,
3936
+ selectedItem: u,
3937
+ selectedItems: c,
3938
+ setHasDisabledPopover: d,
3939
+ getMenuProps: a,
3940
+ getItemProps: h,
3941
+ isDisabledOrReadOnly: C
3942
+ } = $e(), D = Te(
3943
+ ie["popover-content"],
3944
+ n
3945
+ );
3946
+ return ce(() => (d(r), () => {
3947
+ d(!1);
3948
+ }), [r, d]), r ? /* @__PURE__ */ z.jsx("div", { ...i, className: D, children: e ? e({
3949
+ items: o,
3950
+ highlightedIndex: s,
3951
+ selectedItem: u,
3952
+ getMenuProps: a,
3953
+ getItemProps: h,
3954
+ listProps: {
3955
+ ...a({}, { suppressRefError: !0 }),
3956
+ style: {
3957
+ display: o.length ? "" : "none",
3958
+ overflow: "auto"
3959
+ }
3960
+ },
3961
+ options: o.map((O, N) => ({
3962
+ optionProps: {
3963
+ ...h({
3964
+ item: O,
3965
+ index: N
3966
+ }),
3967
+ selected: t(u) === t(O) || c.some(
3968
+ (g) => t(g) === t(O)
3969
+ ),
3970
+ disabled: C
3971
+ // also see "isItemDisabled" function
3972
+ },
3973
+ item: O,
3974
+ index: N
3975
+ }))
3976
+ }) : null }) : /* @__PURE__ */ z.jsx(
3977
+ ht.Content,
3978
+ {
3979
+ "data-anv": "combobox-content",
3980
+ ...i,
3981
+ className: D,
3982
+ children: e ? e({
3983
+ items: o,
3984
+ highlightedIndex: s,
3985
+ selectedItem: u,
3986
+ getMenuProps: a,
3987
+ getItemProps: h,
3988
+ listProps: {
3989
+ ...a({}, { suppressRefError: !0 }),
3990
+ style: {
3991
+ display: o.length ? void 0 : "none",
3992
+ overflow: "auto"
3993
+ }
3994
+ },
3995
+ options: o.map((O, N) => ({
3996
+ optionProps: {
3997
+ ...h({
3998
+ item: O,
3999
+ index: N
4000
+ }),
4001
+ selected: t(u) === t(O) || c.some(
4002
+ (g) => t(g) === t(O)
4003
+ ),
4004
+ disabled: C
4005
+ // also see "isItemDisabled" function
4006
+ },
4007
+ item: O,
4008
+ index: N
4009
+ }))
4010
+ }) : null
4011
+ }
4012
+ );
4013
+ }, xi = function({
4014
+ children: e,
4015
+ ...n
4016
+ }) {
4017
+ const { getMenuProps: r, multiple: i, items: o, hasEmpty: t } = $e();
4018
+ return i ? /* @__PURE__ */ z.jsxs(z.Fragment, { children: [
4019
+ /* @__PURE__ */ z.jsx(
4020
+ "div",
4021
+ {
4022
+ ...r(n),
4023
+ "data-anv": "combobox-list",
4024
+ className: Te(ie.listview, ct.listview),
4025
+ style: {
4026
+ display: o.length ? void 0 : "none",
4027
+ overflow: "auto"
4028
+ },
4029
+ children: e
4030
+ }
4031
+ ),
4032
+ !o.length && !t ? /* @__PURE__ */ z.jsx("div", { className: ie.empty, children: /* @__PURE__ */ z.jsx(tn, { subdued: !0, size: "small", children: "No results found" }) }) : null
4033
+ ] }) : /* @__PURE__ */ z.jsxs(z.Fragment, { children: [
4034
+ /* @__PURE__ */ z.jsx(
4035
+ "ul",
4036
+ {
4037
+ ...r(n),
4038
+ className: Mn.listbox,
4039
+ style: {
4040
+ display: o.length ? void 0 : "none",
4041
+ overflow: "auto"
4042
+ },
4043
+ children: e
4044
+ }
4045
+ ),
4046
+ !o.length && !t ? /* @__PURE__ */ z.jsx("div", { className: ie.empty, children: /* @__PURE__ */ z.jsx(tn, { subdued: !0, size: "small", children: "No results found" }) }) : null
4047
+ ] });
4048
+ }, Oi = function({
4049
+ children: e,
4050
+ disabled: n,
4051
+ item: r,
4052
+ index: i,
4053
+ ...o
4054
+ }) {
4055
+ const {
4056
+ itemToKey: t,
4057
+ getItemProps: s,
4058
+ multiple: u,
4059
+ selectedItem: c,
4060
+ selectedItems: d,
4061
+ disabledItems: a,
4062
+ setDisabledItems: h
4063
+ } = $e(), C = n || r && r instanceof Object && "disabled" in r && r.disabled;
4064
+ return ce(() => (n && !a.includes(r) ? h([...a, r]) : a.includes(r) && h(a.filter((D) => D === r)), () => {
4065
+ a.includes(r) && h(a.filter((D) => D === r));
4066
+ }), [r, n, h]), u ? /* @__PURE__ */ z.jsxs(
4067
+ "div",
4068
+ {
4069
+ "data-anv": "combobox-item",
4070
+ ...s({
4071
+ item: r,
4072
+ index: i,
4073
+ ...o
4074
+ }),
4075
+ className: Te(
4076
+ ie["listview-option"],
4077
+ ct["listview-option"]
4078
+ ),
4079
+ children: [
4080
+ /* @__PURE__ */ z.jsx("div", { className: Te(ie.cell, ct.cell), children: /* @__PURE__ */ z.jsx(
4081
+ kr,
4082
+ {
4083
+ checked: d.some(
4084
+ (D) => t(D) === t(r)
4085
+ ),
4086
+ "aria-label": "Select",
4087
+ ...C ? { disabled: !0 } : {}
4088
+ }
4089
+ ) }),
4090
+ e
4091
+ ]
4092
+ }
4093
+ ) : /* @__PURE__ */ z.jsxs(
4094
+ "li",
4095
+ {
4096
+ ...s({
4097
+ item: r,
4098
+ index: i,
4099
+ ...o
4100
+ }),
4101
+ className: Mn.option,
4102
+ ...C ? { "aria-disabled": !0 } : {},
4103
+ children: [
4104
+ /* @__PURE__ */ z.jsx("span", { children: e }),
4105
+ /* @__PURE__ */ z.jsx(
4106
+ Ar,
4107
+ {
4108
+ "aria-hidden": !0,
4109
+ svg: Kr,
4110
+ inherit: !0,
4111
+ className: ie.Icon,
4112
+ style: {
4113
+ opacity: t(c) === t(r) ? 1 : 0
4114
+ }
4115
+ }
4116
+ )
4117
+ ]
4118
+ }
4119
+ );
4120
+ }, Si = function({
4121
+ children: e
4122
+ }) {
4123
+ const { items: n, setHasEmpty: r } = $e();
4124
+ return ce(() => (r(!0), () => {
4125
+ r(!1);
4126
+ })), n.length ? null : e;
4127
+ }, Me = Object.assign(_i, {
4128
+ SearchField: Ei,
4129
+ Content: wi,
4130
+ List: xi,
4131
+ Item: Oi,
4132
+ Empty: Si
4133
+ }), Ci = function(e) {
4134
+ return /* @__PURE__ */ Ne.jsx(Me, { ...e });
4135
+ }, Di = function(e) {
4136
+ const n = {
4137
+ label: nn(e.label),
4138
+ size: e.size,
4139
+ required: e.required,
4140
+ moreInfo: e.moreInfo,
4141
+ openMoreInfo: e.openMoreInfo,
4142
+ description: nn(e.description),
4143
+ hint: e.hint,
4144
+ labelProps: e.labelProps
4145
+ }, r = kn({
45
4146
  name: "ComboboxSearchField",
46
- data: r,
47
- hasOverride: !!t["data-tracking-id"]
48
- });
49
- return /* @__PURE__ */ o.jsx(i.SearchField, { "data-tracking-id": m, ...t });
50
- }, s = function(t) {
51
- return /* @__PURE__ */ o.jsx(i.Content, { ...t });
52
- }, d = function(t) {
53
- return /* @__PURE__ */ o.jsx(i.List, { ...t });
54
- }, b = function(t) {
55
- const r = {
56
- item: t.item
57
- }, m = e({
4147
+ data: n,
4148
+ hasOverride: !!e["data-tracking-id"]
4149
+ });
4150
+ return /* @__PURE__ */ Ne.jsx(Me.SearchField, { "data-tracking-id": r, ...e });
4151
+ }, Ti = function(e) {
4152
+ return /* @__PURE__ */ Ne.jsx(Me.Content, { ...e });
4153
+ }, Pi = function(e) {
4154
+ return /* @__PURE__ */ Ne.jsx(Me.List, { ...e });
4155
+ }, Ri = function(e) {
4156
+ const n = {
4157
+ item: e.item
4158
+ }, r = kn({
58
4159
  name: "ComboboxItem",
59
- data: r,
60
- hasOverride: !!t["data-tracking-id"]
61
- });
62
- return /* @__PURE__ */ o.jsx(i.Item, { "data-tracking-id": m, ...t });
63
- }, p = function(t) {
64
- return /* @__PURE__ */ o.jsx(i.Empty, { ...t });
65
- }, N = Object.assign(a, {
66
- SearchField: c,
67
- Content: s,
68
- List: d,
69
- Item: b,
70
- Empty: p
4160
+ data: n,
4161
+ hasOverride: !!e["data-tracking-id"]
4162
+ });
4163
+ return /* @__PURE__ */ Ne.jsx(Me.Item, { "data-tracking-id": r, ...e });
4164
+ }, Ni = function(e) {
4165
+ return /* @__PURE__ */ Ne.jsx(Me.Empty, { ...e });
4166
+ }, is = Object.assign(Ci, {
4167
+ SearchField: Di,
4168
+ Content: Ti,
4169
+ List: Pi,
4170
+ Item: Ri,
4171
+ Empty: Ni
71
4172
  });
72
4173
  export {
73
- N as Combobox,
74
- s as ComboboxContent,
75
- a as ComboboxElement,
76
- p as ComboboxEmpty,
77
- b as ComboboxItem,
78
- d as ComboboxList,
79
- c as ComboboxSearchField,
80
- N as default
4174
+ is as Combobox,
4175
+ Ti as ComboboxContent,
4176
+ Ci as ComboboxElement,
4177
+ Ni as ComboboxEmpty,
4178
+ Ri as ComboboxItem,
4179
+ Pi as ComboboxList,
4180
+ Di as ComboboxSearchField,
4181
+ is as default
81
4182
  };
82
4183
  //# sourceMappingURL=Combobox.js.map