dawn-ui-react 1.0.0-alpha

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 (349) hide show
  1. package/dist/Input-Br91lfPH.js +76 -0
  2. package/dist/clamp-C6OCmUfq.js +3033 -0
  3. package/dist/cn-CXogf8HW.js +1692 -0
  4. package/dist/components/accordion/accordion-header.d.ts +2 -0
  5. package/dist/components/accordion/accordion-item.d.ts +2 -0
  6. package/dist/components/accordion/accordion-panel.d.ts +2 -0
  7. package/dist/components/accordion/accordion-subtitle.d.ts +2 -0
  8. package/dist/components/accordion/accordion-title.d.ts +2 -0
  9. package/dist/components/accordion/accordion-trigger.d.ts +2 -0
  10. package/dist/components/accordion/accordion.d.ts +2 -0
  11. package/dist/components/accordion/accordion.types.d.ts +18 -0
  12. package/dist/components/accordion/index.d.ts +7 -0
  13. package/dist/components/alert/alert-actions.d.ts +2 -0
  14. package/dist/components/alert/alert-content.d.ts +2 -0
  15. package/dist/components/alert/alert-description.d.ts +2 -0
  16. package/dist/components/alert/alert-title.d.ts +2 -0
  17. package/dist/components/alert/alert.d.ts +2 -0
  18. package/dist/components/alert/alert.types.d.ts +9 -0
  19. package/dist/components/alert/index.d.ts +6 -0
  20. package/dist/components/alert-dialog/alert-dialog-close.d.ts +2 -0
  21. package/dist/components/alert-dialog/alert-dialog-confirm.d.ts +2 -0
  22. package/dist/components/alert-dialog/alert-dialog-content.d.ts +2 -0
  23. package/dist/components/alert-dialog/alert-dialog-context.d.ts +10 -0
  24. package/dist/components/alert-dialog/alert-dialog-description.d.ts +2 -0
  25. package/dist/components/alert-dialog/alert-dialog-footer.d.ts +2 -0
  26. package/dist/components/alert-dialog/alert-dialog-header.d.ts +2 -0
  27. package/dist/components/alert-dialog/alert-dialog-popup.d.ts +2 -0
  28. package/dist/components/alert-dialog/alert-dialog-title.d.ts +2 -0
  29. package/dist/components/alert-dialog/alert-dialog-trigger.d.ts +2 -0
  30. package/dist/components/alert-dialog/alert-dialog.d.ts +2 -0
  31. package/dist/components/alert-dialog/alert-dialog.types.d.ts +15 -0
  32. package/dist/components/alert-dialog/index.d.ts +11 -0
  33. package/dist/components/autocomplete/autocomplete-collection.d.ts +2 -0
  34. package/dist/components/autocomplete/autocomplete-content.d.ts +2 -0
  35. package/dist/components/autocomplete/autocomplete-grid-content.d.ts +2 -0
  36. package/dist/components/autocomplete/autocomplete-grid-item.d.ts +2 -0
  37. package/dist/components/autocomplete/autocomplete-group-label.d.ts +2 -0
  38. package/dist/components/autocomplete/autocomplete-group.d.ts +2 -0
  39. package/dist/components/autocomplete/autocomplete-input-group-addon.d.ts +2 -0
  40. package/dist/components/autocomplete/autocomplete-input-group-input.d.ts +2 -0
  41. package/dist/components/autocomplete/autocomplete-input-group.d.ts +2 -0
  42. package/dist/components/autocomplete/autocomplete-item.d.ts +2 -0
  43. package/dist/components/autocomplete/autocomplete-row.d.ts +2 -0
  44. package/dist/components/autocomplete/autocomplete-status.d.ts +2 -0
  45. package/dist/components/autocomplete/autocomplete-trigger.d.ts +2 -0
  46. package/dist/components/autocomplete/autocomplete.d.ts +2 -0
  47. package/dist/components/autocomplete/autocomplete.types.d.ts +23 -0
  48. package/dist/components/autocomplete/index.d.ts +15 -0
  49. package/dist/components/avatar/avatar-badge.d.ts +2 -0
  50. package/dist/components/avatar/avatar-fallback.d.ts +2 -0
  51. package/dist/components/avatar/avatar-image.d.ts +2 -0
  52. package/dist/components/avatar/avatar.d.ts +2 -0
  53. package/dist/components/avatar/avatar.types.d.ts +14 -0
  54. package/dist/components/avatar/index.d.ts +5 -0
  55. package/dist/components/badge/badge.d.ts +2 -0
  56. package/dist/components/badge/badge.types.d.ts +7 -0
  57. package/dist/components/badge/index.d.ts +2 -0
  58. package/dist/components/breadcrumb/breadcrumb-ellipsis.d.ts +2 -0
  59. package/dist/components/breadcrumb/breadcrumb-item.d.ts +2 -0
  60. package/dist/components/breadcrumb/breadcrumb-link.d.ts +2 -0
  61. package/dist/components/breadcrumb/breadcrumb-separator.d.ts +2 -0
  62. package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
  63. package/dist/components/breadcrumb/breadcrumb.types.d.ts +5 -0
  64. package/dist/components/breadcrumb/index.d.ts +6 -0
  65. package/dist/components/button/button.d.ts +2 -0
  66. package/dist/components/button/button.types.d.ts +8 -0
  67. package/dist/components/button/index.d.ts +2 -0
  68. package/dist/components/button-group/button-group.d.ts +2 -0
  69. package/dist/components/button-group/button-group.types.d.ts +8 -0
  70. package/dist/components/button-group/index.d.ts +2 -0
  71. package/dist/components/checkbox/checkbox-indicator.d.ts +2 -0
  72. package/dist/components/checkbox/checkbox.d.ts +2 -0
  73. package/dist/components/checkbox/checkbox.types.d.ts +10 -0
  74. package/dist/components/checkbox/index.d.ts +3 -0
  75. package/dist/components/checkbox-group/checkbox-group.d.ts +2 -0
  76. package/dist/components/checkbox-group/checkbox-group.types.d.ts +2 -0
  77. package/dist/components/checkbox-group/index.d.ts +2 -0
  78. package/dist/components/collapsible/collapsible-panel.d.ts +2 -0
  79. package/dist/components/collapsible/collapsible-trigger.d.ts +2 -0
  80. package/dist/components/collapsible/collapsible.d.ts +2 -0
  81. package/dist/components/collapsible/collapsible.types.d.ts +5 -0
  82. package/dist/components/collapsible/index.d.ts +4 -0
  83. package/dist/components/combobox/combobox-chip.d.ts +2 -0
  84. package/dist/components/combobox/combobox-chips.d.ts +2 -0
  85. package/dist/components/combobox/combobox-collection.d.ts +2 -0
  86. package/dist/components/combobox/combobox-empty.d.ts +2 -0
  87. package/dist/components/combobox/combobox-group-label.d.ts +2 -0
  88. package/dist/components/combobox/combobox-group.d.ts +2 -0
  89. package/dist/components/combobox/combobox-input.d.ts +2 -0
  90. package/dist/components/combobox/combobox-item.d.ts +2 -0
  91. package/dist/components/combobox/combobox-list.d.ts +2 -0
  92. package/dist/components/combobox/combobox-popup.d.ts +2 -0
  93. package/dist/components/combobox/combobox-status.d.ts +2 -0
  94. package/dist/components/combobox/combobox-trigger.d.ts +2 -0
  95. package/dist/components/combobox/combobox-value.d.ts +2 -0
  96. package/dist/components/combobox/combobox.d.ts +2 -0
  97. package/dist/components/combobox/combobox.types.d.ts +22 -0
  98. package/dist/components/combobox/index.d.ts +15 -0
  99. package/dist/components/context-menu/context-menu-checkbox-item.d.ts +2 -0
  100. package/dist/components/context-menu/context-menu-group-label.d.ts +2 -0
  101. package/dist/components/context-menu/context-menu-group.d.ts +2 -0
  102. package/dist/components/context-menu/context-menu-item.d.ts +2 -0
  103. package/dist/components/context-menu/context-menu-popup.d.ts +2 -0
  104. package/dist/components/context-menu/context-menu-radio-group.d.ts +2 -0
  105. package/dist/components/context-menu/context-menu-radio-item.d.ts +2 -0
  106. package/dist/components/context-menu/context-menu-separator.d.ts +2 -0
  107. package/dist/components/context-menu/context-menu-shortcut.d.ts +2 -0
  108. package/dist/components/context-menu/context-menu-submenu-trigger.d.ts +2 -0
  109. package/dist/components/context-menu/context-menu-submenu.d.ts +2 -0
  110. package/dist/components/context-menu/context-menu-trigger.d.ts +2 -0
  111. package/dist/components/context-menu/context-menu.d.ts +2 -0
  112. package/dist/components/context-menu/context-menu.types.d.ts +21 -0
  113. package/dist/components/context-menu/index.d.ts +14 -0
  114. package/dist/components/dialog/dialog-close.d.ts +2 -0
  115. package/dist/components/dialog/dialog-content.d.ts +2 -0
  116. package/dist/components/dialog/dialog-description.d.ts +2 -0
  117. package/dist/components/dialog/dialog-footer.d.ts +2 -0
  118. package/dist/components/dialog/dialog-header.d.ts +2 -0
  119. package/dist/components/dialog/dialog-popup.d.ts +2 -0
  120. package/dist/components/dialog/dialog-title.d.ts +2 -0
  121. package/dist/components/dialog/dialog-trigger.d.ts +2 -0
  122. package/dist/components/dialog/dialog.d.ts +2 -0
  123. package/dist/components/dialog/dialog.types.d.ts +11 -0
  124. package/dist/components/dialog/index.d.ts +10 -0
  125. package/dist/components/field/field-checkbox.d.ts +2 -0
  126. package/dist/components/field/field-description.d.ts +2 -0
  127. package/dist/components/field/field-errors.d.ts +2 -0
  128. package/dist/components/field/field-input-group-input.d.ts +2 -0
  129. package/dist/components/field/field-input-group.d.ts +2 -0
  130. package/dist/components/field/field-input.d.ts +2 -0
  131. package/dist/components/field/field-label.d.ts +2 -0
  132. package/dist/components/field/field-radio-group.d.ts +2 -0
  133. package/dist/components/field/field-select.d.ts +2 -0
  134. package/dist/components/field/field-slider.d.ts +2 -0
  135. package/dist/components/field/field-switch.d.ts +2 -0
  136. package/dist/components/field/field-text-area.d.ts +2 -0
  137. package/dist/components/field/field-toggle.d.ts +2 -0
  138. package/dist/components/field/field.d.ts +2 -0
  139. package/dist/components/field/field.types.d.ts +23 -0
  140. package/dist/components/field/index.d.ts +13 -0
  141. package/dist/components/form/form-context.d.ts +98 -0
  142. package/dist/components/form/form-errors.d.ts +2 -0
  143. package/dist/components/form/form-reset.d.ts +2 -0
  144. package/dist/components/form/form-submit.d.ts +2 -0
  145. package/dist/components/form/form.d.ts +3 -0
  146. package/dist/components/form/form.types.d.ts +7 -0
  147. package/dist/components/form/index.d.ts +6 -0
  148. package/dist/components/index.d.ts +45 -0
  149. package/dist/components/input/index.d.ts +2 -0
  150. package/dist/components/input/input.d.ts +2 -0
  151. package/dist/components/input/input.types.d.ts +8 -0
  152. package/dist/components/input-group/index.d.ts +4 -0
  153. package/dist/components/input-group/input-group-addon.d.ts +2 -0
  154. package/dist/components/input-group/input-group-input.d.ts +2 -0
  155. package/dist/components/input-group/input-group.d.ts +2 -0
  156. package/dist/components/input-group/input-group.types.d.ts +6 -0
  157. package/dist/components/input-otp/index.d.ts +3 -0
  158. package/dist/components/input-otp/input-otp-slot.d.ts +2 -0
  159. package/dist/components/input-otp/input-otp.d.ts +2 -0
  160. package/dist/components/input-otp/input-otp.types.d.ts +3 -0
  161. package/dist/components/kbd/index.d.ts +2 -0
  162. package/dist/components/kbd/kbd-group.d.ts +2 -0
  163. package/dist/components/kbd/kbd.d.ts +2 -0
  164. package/dist/components/kbd/kbd.types.d.ts +2 -0
  165. package/dist/components/label/index.d.ts +2 -0
  166. package/dist/components/label/label.d.ts +2 -0
  167. package/dist/components/label/label.types.d.ts +5 -0
  168. package/dist/components/layer-tree/index.d.ts +8 -0
  169. package/dist/components/layer-tree/layer-tree-body.d.ts +2 -0
  170. package/dist/components/layer-tree/layer-tree-expand-all.d.ts +2 -0
  171. package/dist/components/layer-tree/layer-tree-node-toggle.d.ts +2 -0
  172. package/dist/components/layer-tree/layer-tree-node.d.ts +2 -0
  173. package/dist/components/layer-tree/layer-tree-row.d.ts +2 -0
  174. package/dist/components/layer-tree/layer-tree-search.d.ts +2 -0
  175. package/dist/components/layer-tree/layer-tree.d.ts +5 -0
  176. package/dist/components/layer-tree/layer-tree.types.d.ts +24 -0
  177. package/dist/components/menu/index.d.ts +14 -0
  178. package/dist/components/menu/menu-checkbox-item.d.ts +2 -0
  179. package/dist/components/menu/menu-group-label.d.ts +2 -0
  180. package/dist/components/menu/menu-group.d.ts +2 -0
  181. package/dist/components/menu/menu-item.d.ts +2 -0
  182. package/dist/components/menu/menu-popup.d.ts +2 -0
  183. package/dist/components/menu/menu-radio-group.d.ts +2 -0
  184. package/dist/components/menu/menu-radio-item.d.ts +2 -0
  185. package/dist/components/menu/menu-separator.d.ts +2 -0
  186. package/dist/components/menu/menu-shortcut.d.ts +2 -0
  187. package/dist/components/menu/menu-submenu-trigger.d.ts +2 -0
  188. package/dist/components/menu/menu-submenu.d.ts +2 -0
  189. package/dist/components/menu/menu-trigger.d.ts +2 -0
  190. package/dist/components/menu/menu.d.ts +2 -0
  191. package/dist/components/menu/menu.types.d.ts +21 -0
  192. package/dist/components/meter/index.d.ts +9 -0
  193. package/dist/components/meter/meter-footer.d.ts +2 -0
  194. package/dist/components/meter/meter-header.d.ts +2 -0
  195. package/dist/components/meter/meter-indicator.d.ts +2 -0
  196. package/dist/components/meter/meter-label.d.ts +2 -0
  197. package/dist/components/meter/meter-subtitle.d.ts +2 -0
  198. package/dist/components/meter/meter-track.d.ts +2 -0
  199. package/dist/components/meter/meter-value.d.ts +2 -0
  200. package/dist/components/meter/meter.d.ts +2 -0
  201. package/dist/components/meter/meter.types.d.ts +15 -0
  202. package/dist/components/number-field/index.d.ts +2 -0
  203. package/dist/components/number-field/number-field.d.ts +2 -0
  204. package/dist/components/number-field/number-field.types.d.ts +8 -0
  205. package/dist/components/popover/index.d.ts +9 -0
  206. package/dist/components/popover/popover-content.d.ts +2 -0
  207. package/dist/components/popover/popover-description.d.ts +2 -0
  208. package/dist/components/popover/popover-header.d.ts +2 -0
  209. package/dist/components/popover/popover-panel.d.ts +2 -0
  210. package/dist/components/popover/popover-title.d.ts +2 -0
  211. package/dist/components/popover/popover-trigger.d.ts +2 -0
  212. package/dist/components/popover/popover.d.ts +2 -0
  213. package/dist/components/popover/popover.types.d.ts +9 -0
  214. package/dist/components/profile/index.d.ts +2 -0
  215. package/dist/components/profile/profile.d.ts +2 -0
  216. package/dist/components/profile/profile.types.d.ts +16 -0
  217. package/dist/components/progress/index.d.ts +4 -0
  218. package/dist/components/progress/progress-bar.d.ts +2 -0
  219. package/dist/components/progress/progress-indicator.d.ts +2 -0
  220. package/dist/components/progress/progress.d.ts +2 -0
  221. package/dist/components/progress/progress.types.d.ts +8 -0
  222. package/dist/components/radar-ping/index.d.ts +2 -0
  223. package/dist/components/radar-ping/radar-ping.d.ts +2 -0
  224. package/dist/components/radar-ping/radar-ping.types.d.ts +8 -0
  225. package/dist/components/radio-group/index.d.ts +3 -0
  226. package/dist/components/radio-group/radio-group.d.ts +2 -0
  227. package/dist/components/radio-group/radio-group.types.d.ts +7 -0
  228. package/dist/components/radio-group/radio.d.ts +2 -0
  229. package/dist/components/resizeable/index.d.ts +4 -0
  230. package/dist/components/resizeable/resizeable-handle.d.ts +2 -0
  231. package/dist/components/resizeable/resizeable-panel-group.d.ts +2 -0
  232. package/dist/components/resizeable/resizeable-panel.d.ts +2 -0
  233. package/dist/components/resizeable/resizeable.types.d.ts +6 -0
  234. package/dist/components/scroll-area/index.d.ts +2 -0
  235. package/dist/components/scroll-area/scroll-area.d.ts +2 -0
  236. package/dist/components/scroll-area/scroll-area.types.d.ts +6 -0
  237. package/dist/components/select/index.d.ts +10 -0
  238. package/dist/components/select/select-group-label.d.ts +2 -0
  239. package/dist/components/select/select-group.d.ts +2 -0
  240. package/dist/components/select/select-icon.d.ts +2 -0
  241. package/dist/components/select/select-item.d.ts +2 -0
  242. package/dist/components/select/select-list.d.ts +2 -0
  243. package/dist/components/select/select-popup.d.ts +2 -0
  244. package/dist/components/select/select-trigger.d.ts +2 -0
  245. package/dist/components/select/select-value.d.ts +2 -0
  246. package/dist/components/select/select.d.ts +2 -0
  247. package/dist/components/select/select.types.d.ts +15 -0
  248. package/dist/components/separator/index.d.ts +2 -0
  249. package/dist/components/separator/separator.d.ts +2 -0
  250. package/dist/components/separator/separator.types.d.ts +9 -0
  251. package/dist/components/sidebar/index.d.ts +17 -0
  252. package/dist/components/sidebar/sidebar-content.d.ts +2 -0
  253. package/dist/components/sidebar/sidebar-footer.d.ts +2 -0
  254. package/dist/components/sidebar/sidebar-group-content.d.ts +2 -0
  255. package/dist/components/sidebar/sidebar-group-label.d.ts +2 -0
  256. package/dist/components/sidebar/sidebar-group.d.ts +2 -0
  257. package/dist/components/sidebar/sidebar-header.d.ts +2 -0
  258. package/dist/components/sidebar/sidebar-menu-badge.d.ts +2 -0
  259. package/dist/components/sidebar/sidebar-menu-button.d.ts +2 -0
  260. package/dist/components/sidebar/sidebar-menu-collapsible-panel.d.ts +2 -0
  261. package/dist/components/sidebar/sidebar-menu-collapsible-trigger.d.ts +2 -0
  262. package/dist/components/sidebar/sidebar-menu-collapsible.d.ts +2 -0
  263. package/dist/components/sidebar/sidebar-menu-item.d.ts +2 -0
  264. package/dist/components/sidebar/sidebar-menu.d.ts +2 -0
  265. package/dist/components/sidebar/sidebar-provider.d.ts +14 -0
  266. package/dist/components/sidebar/sidebar-toggle.d.ts +2 -0
  267. package/dist/components/sidebar/sidebar.d.ts +2 -0
  268. package/dist/components/sidebar/sidebar.types.d.ts +27 -0
  269. package/dist/components/skeleton/index.d.ts +2 -0
  270. package/dist/components/skeleton/skeleton.d.ts +2 -0
  271. package/dist/components/skeleton/skeleton.types.d.ts +1 -0
  272. package/dist/components/slider/index.d.ts +3 -0
  273. package/dist/components/slider/slider-thumb.d.ts +2 -0
  274. package/dist/components/slider/slider.d.ts +2 -0
  275. package/dist/components/slider/slider.types.d.ts +12 -0
  276. package/dist/components/switch/index.d.ts +2 -0
  277. package/dist/components/switch/switch.d.ts +2 -0
  278. package/dist/components/switch/switch.types.d.ts +4 -0
  279. package/dist/components/table/index.d.ts +16 -0
  280. package/dist/components/table/table-body.d.ts +2 -0
  281. package/dist/components/table/table-change-view.d.ts +4 -0
  282. package/dist/components/table/table-content.d.ts +2 -0
  283. package/dist/components/table/table-filter.d.ts +2 -0
  284. package/dist/components/table/table-first-page.d.ts +2 -0
  285. package/dist/components/table/table-footer.d.ts +2 -0
  286. package/dist/components/table/table-header.d.ts +2 -0
  287. package/dist/components/table/table-last-page.d.ts +2 -0
  288. package/dist/components/table/table-nav.d.ts +2 -0
  289. package/dist/components/table/table-next-page.d.ts +2 -0
  290. package/dist/components/table/table-pagination.d.ts +2 -0
  291. package/dist/components/table/table-previous-page.d.ts +2 -0
  292. package/dist/components/table/table-refresh.d.ts +2 -0
  293. package/dist/components/table/table-results.d.ts +3 -0
  294. package/dist/components/table/table-row-grid.d.ts +2 -0
  295. package/dist/components/table/table-row-list.d.ts +2 -0
  296. package/dist/components/table/table-search.d.ts +2 -0
  297. package/dist/components/table/table-sort.d.ts +2 -0
  298. package/dist/components/table/table.d.ts +10 -0
  299. package/dist/components/table/table.types.d.ts +39 -0
  300. package/dist/components/tabs/index.d.ts +6 -0
  301. package/dist/components/tabs/tabs-indicator.d.ts +2 -0
  302. package/dist/components/tabs/tabs-list.d.ts +2 -0
  303. package/dist/components/tabs/tabs-panel.d.ts +2 -0
  304. package/dist/components/tabs/tabs-tab.d.ts +2 -0
  305. package/dist/components/tabs/tabs.d.ts +2 -0
  306. package/dist/components/tabs/tabs.types.d.ts +12 -0
  307. package/dist/components/text-area/index.d.ts +2 -0
  308. package/dist/components/text-area/text-area.d.ts +2 -0
  309. package/dist/components/text-area/text-area.types.d.ts +5 -0
  310. package/dist/components/toast/anchored-toast-item.d.ts +2 -0
  311. package/dist/components/toast/anchored-toasts.d.ts +2 -0
  312. package/dist/components/toast/index.d.ts +27 -0
  313. package/dist/components/toast/stack-toast-item.d.ts +2 -0
  314. package/dist/components/toast/stack-toasts.d.ts +2 -0
  315. package/dist/components/toast/toast-manager.d.ts +19 -0
  316. package/dist/components/toast/toast-provider.d.ts +2 -0
  317. package/dist/components/toast/toast.types.d.ts +21 -0
  318. package/dist/components/toggle/index.d.ts +2 -0
  319. package/dist/components/toggle/toggle.d.ts +2 -0
  320. package/dist/components/toggle/toggle.types.d.ts +9 -0
  321. package/dist/components/toggle-group/index.d.ts +2 -0
  322. package/dist/components/toggle-group/toggle-group-context.d.ts +5 -0
  323. package/dist/components/toggle-group/toggle-group.d.ts +2 -0
  324. package/dist/components/toggle-group/toggle-group.types.d.ts +6 -0
  325. package/dist/components/tooltip/index.d.ts +4 -0
  326. package/dist/components/tooltip/tooltip-context.d.ts +2 -0
  327. package/dist/components/tooltip/tooltip-trigger.d.ts +2 -0
  328. package/dist/components/tooltip/tooltip.d.ts +2 -0
  329. package/dist/components/tooltip/tooltip.types.d.ts +9 -0
  330. package/dist/dawn-ui-react.js +12736 -0
  331. package/dist/dawn-ui-react.umd.cjs +49 -0
  332. package/dist/field-description-BDRJXMS8.js +12 -0
  333. package/dist/field-errors-BDUanNiE.js +19 -0
  334. package/dist/field-input-0WxX-93A.js +58 -0
  335. package/dist/field-input-group-Dcwadst3.js +18 -0
  336. package/dist/field-input-group-input-CLQz2SPo.js +20 -0
  337. package/dist/field-label-DwF_1o76.js +16 -0
  338. package/dist/field-select-BmvhGVSz.js +2149 -0
  339. package/dist/field-slider-oL8pDrCe.js +2167 -0
  340. package/dist/form-context-CzC_p5DL.js +3036 -0
  341. package/dist/index.d.ts +2 -0
  342. package/dist/input-group-D3zocoNy.js +12 -0
  343. package/dist/input-group-input-CHby62R-.js +11 -0
  344. package/dist/input.types-Dl_61f0y.js +21 -0
  345. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  346. package/dist/styles.css +779 -0
  347. package/dist/useLabelableId-VWw8rfpn.js +271 -0
  348. package/dist/utils/cn.d.ts +2 -0
  349. package/package.json +124 -0
@@ -0,0 +1,2149 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { F as t, G as n, H as r, I as i, J as a, K as o, M as s, Q as c, T as l, U as u, V as d, W as f, X as p, Z as m, _ as h, f as g, i as _, k as v, q as y, v as b } from "./form-context-CzC_p5DL.js";
3
+ import { C as x, H as S, N as C, P as ee, U as w, W as T, c as E, h as D, i as O, l as k, n as A, o as j, p as M, r as te, s as N, t as ne, u as re } from "./useLabelableId-VWw8rfpn.js";
4
+ import { $t as P, At as F, Bt as ie, Ct as I, D as L, Dt as ae, E as R, Et as z, Ft as B, G as V, H as oe, Ht as H, I as se, J as U, Jt as ce, K as le, Lt as W, M as G, Mt as ue, Nt as K, Ot as de, P as fe, Pt as pe, Q as q, Qt as me, Rt as he, S as J, St as ge, T as Y, Tt as _e, U as ve, Ut as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Z as Ee, Zt as De, _ as Oe, _t as ke, a as Ae, an as X, at as je, c as Me, dn as Ne, f as Pe, fn as Fe, g as Ie, h as Le, hn as Re, i as ze, j as Be, jt as Ve, kt as He, l as Ue, ln as We, m as Ge, mn as Ke, n as qe, nn as Je, on as Ye, p as Xe, q as Ze, qt as Qe, r as $e, t as et, un as tt, vt as nt, wt as rt, x as it, yt as at, z as ot, zt as st } from "./clamp-C6OCmUfq.js";
5
+ import { t as ct } from "./cn-CXogf8HW.js";
6
+ import * as Z from "react";
7
+ import { jsx as Q, jsxs as lt } from "react/jsx-runtime";
8
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/useScrollLock.js
9
+ var ut = {}, dt = {}, ft = "";
10
+ function pt(e) {
11
+ if (typeof document > "u") return !1;
12
+ let t = N(e);
13
+ return v(t).innerWidth - t.documentElement.clientWidth > 0;
14
+ }
15
+ function mt(e) {
16
+ if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
17
+ let n = N(e), r = n.documentElement, i = n.body, a = t(r) ? r : i, o = a.style.overflowY, s = r.style.scrollbarGutter;
18
+ r.style.scrollbarGutter = "stable", a.style.overflowY = "scroll";
19
+ let c = a.offsetWidth;
20
+ a.style.overflowY = "hidden";
21
+ let l = a.offsetWidth;
22
+ return a.style.overflowY = o, r.style.scrollbarGutter = s, c === l;
23
+ }
24
+ function ht(e) {
25
+ let n = N(e), r = n.documentElement, i = n.body, a = t(r) ? r : i, o = {
26
+ overflowY: a.style.overflowY,
27
+ overflowX: a.style.overflowX
28
+ };
29
+ return Object.assign(a.style, {
30
+ overflowY: "hidden",
31
+ overflowX: "hidden"
32
+ }), () => {
33
+ Object.assign(a.style, o);
34
+ };
35
+ }
36
+ function gt(e) {
37
+ let n = N(e), r = n.documentElement, i = n.body, a = v(r), o = 0, s = 0, c = !1, l = Ne.create();
38
+ if (X && (a.visualViewport?.scale ?? 1) !== 1) return () => {};
39
+ function u() {
40
+ let n = a.getComputedStyle(r), l = a.getComputedStyle(i), u = (n.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
41
+ o = r.scrollTop, s = r.scrollLeft, ut = {
42
+ scrollbarGutter: r.style.scrollbarGutter,
43
+ overflowY: r.style.overflowY,
44
+ overflowX: r.style.overflowX
45
+ }, ft = r.style.scrollBehavior, dt = {
46
+ position: i.style.position,
47
+ height: i.style.height,
48
+ width: i.style.width,
49
+ boxSizing: i.style.boxSizing,
50
+ overflowY: i.style.overflowY,
51
+ overflowX: i.style.overflowX,
52
+ scrollBehavior: i.style.scrollBehavior
53
+ };
54
+ let d = r.scrollHeight > r.clientHeight, f = r.scrollWidth > r.clientWidth, p = n.overflowY === "scroll" || l.overflowY === "scroll", m = n.overflowX === "scroll" || l.overflowX === "scroll", h = Math.max(0, a.innerWidth - i.clientWidth), g = Math.max(0, a.innerHeight - i.clientHeight), _ = parseFloat(l.marginTop) + parseFloat(l.marginBottom), v = parseFloat(l.marginLeft) + parseFloat(l.marginRight), y = t(r) ? r : i;
55
+ if (c = mt(e), c) {
56
+ r.style.scrollbarGutter = u, y.style.overflowY = "hidden", y.style.overflowX = "hidden";
57
+ return;
58
+ }
59
+ Object.assign(r.style, {
60
+ scrollbarGutter: u,
61
+ overflowY: "hidden",
62
+ overflowX: "hidden"
63
+ }), (d || p) && (r.style.overflowY = "scroll"), (f || m) && (r.style.overflowX = "scroll"), Object.assign(i.style, {
64
+ position: "relative",
65
+ height: _ || g ? `calc(100dvh - ${_ + g}px)` : "100dvh",
66
+ width: v || h ? `calc(100vw - ${v + h}px)` : "100vw",
67
+ boxSizing: "border-box",
68
+ overflow: "hidden",
69
+ scrollBehavior: "unset"
70
+ }), i.scrollTop = o, i.scrollLeft = s, r.setAttribute("data-base-ui-scroll-locked", ""), r.style.scrollBehavior = "unset";
71
+ }
72
+ function d() {
73
+ Object.assign(r.style, ut), Object.assign(i.style, dt), c || (r.scrollTop = o, r.scrollLeft = s, r.removeAttribute("data-base-ui-scroll-locked"), r.style.scrollBehavior = ft);
74
+ }
75
+ function f() {
76
+ d(), l.request(u);
77
+ }
78
+ u();
79
+ let p = q(a, "resize", f);
80
+ return () => {
81
+ l.cancel(), d(), typeof a.removeEventListener == "function" && p();
82
+ };
83
+ }
84
+ var _t = new class {
85
+ lockCount = 0;
86
+ restore = null;
87
+ timeoutLock = U.create();
88
+ timeoutUnlock = U.create();
89
+ acquire(e) {
90
+ return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
91
+ }
92
+ release = () => {
93
+ --this.lockCount, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
94
+ };
95
+ unlock = () => {
96
+ this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
97
+ };
98
+ lock(e) {
99
+ if (this.lockCount === 0 || this.restore !== null) return;
100
+ let t = N(e).documentElement, r = v(t).getComputedStyle(t).overflowY;
101
+ if (r === "hidden" || r === "clip") {
102
+ this.restore = n;
103
+ return;
104
+ }
105
+ let i = Je || !pt(e);
106
+ this.restore = i ? ht(e) : gt(e);
107
+ }
108
+ }();
109
+ function vt(e = !0, t = null) {
110
+ p(() => {
111
+ if (e) return _t.acquire(t);
112
+ }, [e, t]);
113
+ }
114
+ //#endregion
115
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js
116
+ var yt = 0;
117
+ function bt(e, t = {}) {
118
+ let { preventScroll: r = !1, cancelPrevious: i = !0, sync: a = !1 } = t;
119
+ i && cancelAnimationFrame(yt);
120
+ let o = () => e?.focus({ preventScroll: r });
121
+ if (a) return o(), n;
122
+ let s = requestAnimationFrame(o);
123
+ return yt = s, () => {
124
+ yt === s && (cancelAnimationFrame(s), yt = 0);
125
+ };
126
+ }
127
+ //#endregion
128
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js
129
+ var xt = {
130
+ inert: /* @__PURE__ */ new WeakMap(),
131
+ "aria-hidden": /* @__PURE__ */ new WeakMap()
132
+ }, St = "data-base-ui-inert", Ct = {
133
+ inert: /* @__PURE__ */ new WeakSet(),
134
+ "aria-hidden": /* @__PURE__ */ new WeakSet()
135
+ }, wt = /* @__PURE__ */ new WeakMap(), Tt = 0;
136
+ function Et(e) {
137
+ return Ct[e];
138
+ }
139
+ function Dt(e) {
140
+ return e ? i(e) ? e.host : Dt(e.parentNode) : null;
141
+ }
142
+ var Ot = (e, t) => t.map((t) => {
143
+ if (e.contains(t)) return t;
144
+ let n = Dt(t);
145
+ return e.contains(n) ? n : null;
146
+ }).filter((e) => e != null), kt = (e) => {
147
+ let t = /* @__PURE__ */ new Set();
148
+ return e.forEach((e) => {
149
+ let n = e;
150
+ for (; n && !t.has(n);) t.add(n), n = n.parentNode;
151
+ }), t;
152
+ }, At = (e, t, n) => {
153
+ let r = [], i = (e) => {
154
+ !e || n.has(e) || Array.from(e.children).forEach((e) => {
155
+ l(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
156
+ });
157
+ };
158
+ return i(e), r;
159
+ };
160
+ function jt(e, t, n, r, { mark: i = !0, markerIgnoreElements: a = [] }) {
161
+ let o = r ? "inert" : n ? "aria-hidden" : null, s = null, c = null, l = Ot(t, e), u = i ? Ot(t, a) : [], d = new Set(u), f = i ? At(t, kt(l), new Set(l)).filter((e) => !d.has(e)) : [], p = [], m = [];
162
+ if (o) {
163
+ let e = xt[o], n = Et(o);
164
+ c = n, s = e;
165
+ let r = Ot(t, Array.from(t.querySelectorAll("[aria-live]"))), i = l.concat(r);
166
+ At(t, kt(i), new Set(i)).forEach((t) => {
167
+ let r = t.getAttribute(o), i = r !== null && r !== "false", a = (e.get(t) || 0) + 1;
168
+ e.set(t, a), p.push(t), a === 1 && i && n.add(t), i || t.setAttribute(o, o === "inert" ? "" : "true");
169
+ });
170
+ }
171
+ return i && f.forEach((e) => {
172
+ let t = (wt.get(e) || 0) + 1;
173
+ wt.set(e, t), m.push(e), t === 1 && e.setAttribute(St, "");
174
+ }), Tt += 1, () => {
175
+ s && p.forEach((e) => {
176
+ let t = (s.get(e) || 0) - 1;
177
+ s.set(e, t), t || (!c?.has(e) && o && e.removeAttribute(o), c?.delete(e));
178
+ }), i && m.forEach((e) => {
179
+ let t = (wt.get(e) || 0) - 1;
180
+ wt.set(e, t), t || e.removeAttribute(St);
181
+ }), --Tt, Tt || (xt.inert = /* @__PURE__ */ new WeakMap(), xt["aria-hidden"] = /* @__PURE__ */ new WeakMap(), Ct.inert = /* @__PURE__ */ new WeakSet(), Ct["aria-hidden"] = /* @__PURE__ */ new WeakSet(), wt = /* @__PURE__ */ new WeakMap());
182
+ };
183
+ }
184
+ function Mt(e, t = {}) {
185
+ let { ariaHidden: n = !1, inert: r = !1, mark: i = !0, markerIgnoreElements: a = [] } = t, o = N(e[0]).body;
186
+ return jt(e, o, n, r, {
187
+ mark: i,
188
+ markerIgnoreElements: a
189
+ });
190
+ }
191
+ //#endregion
192
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js
193
+ function Nt(e, t) {
194
+ let n = v(re(e));
195
+ return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
196
+ }
197
+ var Pt = 20, Ft = [];
198
+ function It() {
199
+ Ft = Ft.filter((e) => e.deref()?.isConnected);
200
+ }
201
+ function Lt(e) {
202
+ It(), e && l(e) !== "body" && (Ft.push(new WeakRef(e)), Ft.length > Pt && (Ft = Ft.slice(-Pt)));
203
+ }
204
+ function Rt() {
205
+ return It(), Ft[Ft.length - 1]?.deref();
206
+ }
207
+ function zt(e) {
208
+ return e ? I(e) ? e : rt(e)[0] || e : null;
209
+ }
210
+ function Bt(e, t) {
211
+ if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !t.current.includes("floating") && !e.getAttribute("role")?.includes("dialog")) return;
212
+ let n = ke(e).filter((e) => {
213
+ let t = e.getAttribute("data-tabindex") || "";
214
+ return I(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
215
+ }), r = e.getAttribute("tabindex");
216
+ t.current.includes("floating") || n.length === 0 ? r !== "0" && e.setAttribute("tabindex", "0") : (r !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
217
+ }
218
+ function Vt(e) {
219
+ let { context: t, children: n, disabled: r = !1, initialFocus: i = !0, returnFocus: a = !0, restoreFocus: o = !1, modal: c = !0, closeOnFocusOut: l = !0, openInteractionType: u = "", nextFocusableElement: d, previousFocusableElement: f, beforeContentFocusGuardRef: h, externalTree: g, getInsideElements: _ } = e, v = "rootStore" in t ? t.rootStore : t, b = v.useState("open"), S = v.useState("domReferenceElement"), C = v.useState("floatingElement"), { events: ee, dataRef: w } = v.context, T = m(() => w.current.floatingContext?.nodeId), D = i === !1, O = Qe(S) && D, A = Z.useRef(["content"]), j = le(i), te = le(a), ne = le(u), P = G(g), F = se(), L = Z.useRef(!1), ae = Z.useRef(!1), R = Z.useRef(!1), z = Z.useRef(null), B = Z.useRef(""), V = Z.useRef(""), U = Z.useRef(null), W = Z.useRef(null), K = y(U, h, F?.beforeInsideRef), de = y(W, F?.afterInsideRef), fe = Te(), pe = Te(), me = Fe(), he = F != null, J = Se(C), Y = m((e = J) => e ? rt(e) : []), _e = m(() => _?.().filter((e) => e != null) ?? []);
220
+ Z.useEffect(() => {
221
+ if (r || !c) return;
222
+ function e(e) {
223
+ e.key === "Tab" && k(J, E(N(J))) && Y().length === 0 && !O && be(e);
224
+ }
225
+ return q(N(J), "keydown", e);
226
+ }, [
227
+ r,
228
+ S,
229
+ J,
230
+ c,
231
+ A,
232
+ O,
233
+ Y
234
+ ]), Z.useEffect(() => {
235
+ if (r || !b) return;
236
+ let e = N(J);
237
+ function t() {
238
+ R.current = !1;
239
+ }
240
+ function n(e) {
241
+ let t = re(e), n = _e();
242
+ R.current = !(k(C, t) || k(S, t) || k(F?.portalNode, t) || n.some((e) => e === t || k(e, t))), V.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (ae.current = !0);
243
+ }
244
+ function i() {
245
+ V.current = "keyboard";
246
+ }
247
+ return Ze(q(e, "pointerdown", n, !0), q(e, "pointerup", t, !0), q(e, "pointercancel", t, !0), q(e, "keydown", i, !0));
248
+ }, [
249
+ r,
250
+ C,
251
+ S,
252
+ J,
253
+ b,
254
+ F,
255
+ _e
256
+ ]), Z.useEffect(() => {
257
+ if (r || !l) return;
258
+ let e = N(J);
259
+ function t() {
260
+ ae.current = !0, pe.start(0, () => {
261
+ ae.current = !1;
262
+ });
263
+ }
264
+ function n(e) {
265
+ let t = re(e);
266
+ I(t) && (z.current = t);
267
+ }
268
+ function i(t) {
269
+ let n = t.relatedTarget, r = t.currentTarget, i = re(t);
270
+ queueMicrotask(() => {
271
+ let a = T(), l = v.context.triggerElements, u = _e(), p = n?.hasAttribute(oe("focus-guard")) && [
272
+ U.current,
273
+ W.current,
274
+ F?.beforeInsideRef.current,
275
+ F?.afterInsideRef.current,
276
+ F?.beforeOutsideRef.current,
277
+ F?.afterOutsideRef.current,
278
+ tt(f),
279
+ tt(d)
280
+ ].includes(n), m = !(k(S, n) || k(C, n) || k(n, C) || k(F?.portalNode, n) || u.some((e) => e === n || k(e, n)) || n != null && l.hasElement(n) || l.hasMatchingElement((e) => k(e, n)) || p || P && (ye(P.nodesRef.current, a).find((e) => k(e.context?.elements.floating, n) || k(e.context?.elements.domReference, n)) || H(P.nodesRef.current, a).find((e) => [e.context?.elements.floating, Se(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
281
+ if (r === S && J && Bt(J, A), o && r !== S && !ue(i) && E(e) === e.body) {
282
+ if (s(J) && (J.focus(), o === "popup")) {
283
+ me.request(() => {
284
+ J.focus();
285
+ });
286
+ return;
287
+ }
288
+ let e = Y(), t = z.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || J;
289
+ s(n) && n.focus();
290
+ }
291
+ if (w.current.insideReactTree) {
292
+ w.current.insideReactTree = !1;
293
+ return;
294
+ }
295
+ (O || !c) && n && m && !ae.current && (O || n !== Rt()) && (L.current = !0, v.setOpen(!1, M(x, t)));
296
+ });
297
+ }
298
+ function a() {
299
+ R.current || (w.current.insideReactTree = !0, fe.start(0, () => {
300
+ w.current.insideReactTree = !1;
301
+ }));
302
+ }
303
+ let u = s(S) ? S : null;
304
+ if (!(!C && !u)) return Ze(u && q(u, "focusout", i), u && q(u, "pointerdown", t), C && q(C, "focusin", n), C && q(C, "focusout", i), C && F && q(C, "focusout", a, !0));
305
+ }, [
306
+ r,
307
+ S,
308
+ C,
309
+ J,
310
+ c,
311
+ P,
312
+ F,
313
+ v,
314
+ l,
315
+ o,
316
+ Y,
317
+ O,
318
+ T,
319
+ A,
320
+ w,
321
+ fe,
322
+ pe,
323
+ me,
324
+ d,
325
+ f,
326
+ _e
327
+ ]), Z.useEffect(() => {
328
+ if (r || !C || !b) return;
329
+ let e = Array.from(F?.portalNode?.querySelectorAll(`[${oe("portal")}]`) || []), t = (P ? H(P.nodesRef.current, T()) : []).find((e) => Qe(e.context?.elements.domReference || null))?.context?.elements.domReference, n = Mt([
330
+ ...[
331
+ C,
332
+ ...e,
333
+ U.current,
334
+ W.current,
335
+ F?.beforeOutsideRef.current,
336
+ F?.afterOutsideRef.current,
337
+ ..._e()
338
+ ],
339
+ t,
340
+ tt(f),
341
+ tt(d),
342
+ O ? S : null
343
+ ].filter((e) => e != null), {
344
+ ariaHidden: c || O,
345
+ mark: !1
346
+ }), i = Mt([C, ...e].filter((e) => e != null));
347
+ return () => {
348
+ i(), n();
349
+ };
350
+ }, [
351
+ b,
352
+ r,
353
+ S,
354
+ C,
355
+ c,
356
+ A,
357
+ F,
358
+ O,
359
+ P,
360
+ T,
361
+ d,
362
+ f,
363
+ _e
364
+ ]), p(() => {
365
+ if (!b || r || !s(J)) return;
366
+ let e = E(N(J));
367
+ queueMicrotask(() => {
368
+ let t = j.current, n = typeof t == "function" ? t(ne.current || "") : t;
369
+ if (n === void 0 || n === !1 || k(J, e)) return;
370
+ let r = null, i = () => (r ??= Y(J), r[0] || J), a;
371
+ a = n === !0 || n === null ? i() : tt(n), a ||= i(), bt(a, { preventScroll: a === J });
372
+ });
373
+ }, [
374
+ r,
375
+ b,
376
+ J,
377
+ D,
378
+ Y,
379
+ j,
380
+ ne
381
+ ]), p(() => {
382
+ if (r || !J) return;
383
+ let e = N(J);
384
+ Lt(E(e));
385
+ function t(e) {
386
+ if (e.open || (B.current = Nt(e.nativeEvent, V.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (L.current = !0), e.reason === "outside-press") if (e.nested) L.current = !1;
387
+ else if (st(e.nativeEvent) || ie(e.nativeEvent)) L.current = !1;
388
+ else {
389
+ let e = !1;
390
+ N(J).createElement("div").focus({ get preventScroll() {
391
+ return e = !0, !1;
392
+ } }), e ? L.current = !1 : L.current = !0;
393
+ }
394
+ }
395
+ ee.on("openchange", t);
396
+ function n() {
397
+ let e = te.current, t = typeof e == "function" ? e(B.current) : e;
398
+ if (t === void 0 || t === !1) return null;
399
+ if (t === null && (t = !0), typeof t == "boolean") {
400
+ let e = S || Rt();
401
+ return e && e.isConnected ? e : null;
402
+ }
403
+ let n = S || Rt();
404
+ return tt(t) || n || null;
405
+ }
406
+ return () => {
407
+ ee.off("openchange", t);
408
+ let r = E(e), i = _e(), a = k(C, r) || i.some((e) => e === r || k(e, r)) || P && ye(P.nodesRef.current, T(), !1).some((e) => k(e.context?.elements.floating, r)), o = te.current, c = n();
409
+ queueMicrotask(() => {
410
+ let t = zt(c), n = typeof o != "boolean";
411
+ o && !L.current && s(t) && (!(!n && t !== r && r !== e.body) || a) && t.focus({ preventScroll: !0 }), L.current = !1;
412
+ });
413
+ };
414
+ }, [
415
+ r,
416
+ C,
417
+ J,
418
+ te,
419
+ w,
420
+ ee,
421
+ P,
422
+ S,
423
+ T,
424
+ _e
425
+ ]), p(() => {
426
+ if (!X || b || !C) return;
427
+ let e = E(N(C));
428
+ !s(e) || !ce(e) || k(C, e) && e.blur();
429
+ }, [b, C]), p(() => {
430
+ if (!(r || !F)) return F.setFocusManagerState({
431
+ modal: c,
432
+ closeOnFocusOut: l,
433
+ open: b,
434
+ onOpenChange: v.setOpen,
435
+ domReference: S
436
+ }), () => {
437
+ F.setFocusManagerState(null);
438
+ };
439
+ }, [
440
+ r,
441
+ F,
442
+ c,
443
+ b,
444
+ v,
445
+ l,
446
+ S
447
+ ]), p(() => {
448
+ if (!(r || !J)) return Bt(J, A), () => {
449
+ queueMicrotask(It);
450
+ };
451
+ }, [
452
+ r,
453
+ J,
454
+ A
455
+ ]);
456
+ let xe = !r && (c ? !O : !0) && (he || c);
457
+ return /* @__PURE__ */ lt(Z.Fragment, { children: [
458
+ xe && /* @__PURE__ */ Q(ve, {
459
+ "data-type": "inside",
460
+ ref: K,
461
+ onFocus: (e) => {
462
+ if (c) {
463
+ let e = Y();
464
+ bt(e[e.length - 1]);
465
+ } else F?.portalNode && (L.current = !1, ge(e, F.portalNode) ? nt(S)?.focus() : tt(f ?? F.beforeOutsideRef)?.focus());
466
+ }
467
+ }),
468
+ n,
469
+ xe && /* @__PURE__ */ Q(ve, {
470
+ "data-type": "inside",
471
+ ref: de,
472
+ onFocus: (e) => {
473
+ c ? bt(Y()[0]) : F?.portalNode && (l && (L.current = !0), ge(e, F.portalNode) ? at(S)?.focus() : tt(d ?? F.afterOutsideRef)?.focus());
474
+ }
475
+ })
476
+ ] });
477
+ }
478
+ //#endregion
479
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useClick.js
480
+ function Ht(e, t = {}) {
481
+ let n = "rootStore" in e ? e.rootStore : e, r = n.context.dataRef, { enabled: i = !0, event: a = "click", toggle: o = !0, ignoreMouse: s = !1, stickIfOpen: c = !0, touchOpenDelay: l = 0, reason: u = S } = t, d = Z.useRef(void 0), p = Fe(), m = Te(), h = Z.useMemo(() => ({
482
+ onPointerDown(e) {
483
+ d.current = e.pointerType;
484
+ },
485
+ onMouseDown(e) {
486
+ let t = d.current, i = e.nativeEvent, f = n.select("open");
487
+ if (e.button !== 0 || a === "click" || he(t, !0) && s) return;
488
+ let h = r.current.openEvent, g = h?.type, _ = n.select("domReferenceElement") !== e.currentTarget, v = f && _ || !(f && o && (!(h && c) || g === "click" || g === "mousedown")), y = re(i);
489
+ if (ce(y)) {
490
+ let e = M(u, i, y);
491
+ v && t === "touch" && l > 0 ? m.start(l, () => {
492
+ n.setOpen(!0, e);
493
+ }) : n.setOpen(v, e);
494
+ return;
495
+ }
496
+ let b = e.currentTarget;
497
+ p.request(() => {
498
+ let e = M(u, i, b);
499
+ v && t === "touch" && l > 0 ? m.start(l, () => {
500
+ n.setOpen(!0, e);
501
+ }) : n.setOpen(v, e);
502
+ });
503
+ },
504
+ onClick(e) {
505
+ if (a === "mousedown-only") return;
506
+ let t = d.current;
507
+ if (a === "mousedown" && t) {
508
+ d.current = void 0;
509
+ return;
510
+ }
511
+ if (he(t, !0) && s) return;
512
+ let i = n.select("open"), f = r.current.openEvent, p = n.select("domReferenceElement") !== e.currentTarget, h = i && p || !(i && o && (!(f && c) || W(f))), g = M(u, e.nativeEvent, e.currentTarget);
513
+ h && t === "touch" && l > 0 ? m.start(l, () => {
514
+ n.setOpen(!0, g);
515
+ }) : n.setOpen(h, g);
516
+ },
517
+ onKeyDown() {
518
+ d.current = void 0;
519
+ }
520
+ }), [
521
+ r,
522
+ a,
523
+ s,
524
+ n,
525
+ c,
526
+ o,
527
+ p,
528
+ m,
529
+ l,
530
+ u
531
+ ]);
532
+ return Z.useMemo(() => i ? { reference: h } : f, [i, h]);
533
+ }
534
+ //#endregion
535
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js
536
+ var Ut = "Escape";
537
+ function Wt(e, t, n) {
538
+ switch (e) {
539
+ case "vertical": return t;
540
+ case "horizontal": return n;
541
+ default: return t || n;
542
+ }
543
+ }
544
+ function Gt(e, t) {
545
+ return Wt(t, e === "ArrowUp" || e === "ArrowDown", e === "ArrowLeft" || e === "ArrowRight");
546
+ }
547
+ function Kt(e, t, n) {
548
+ return Wt(t, e === "ArrowDown", n ? e === "ArrowLeft" : e === "ArrowRight") || e === "Enter" || e === " " || e === "";
549
+ }
550
+ function qt(e, t, n) {
551
+ return Wt(t, n ? e === De : e === me, e === we);
552
+ }
553
+ function Jt(e, t, n, r) {
554
+ return t === "both" || t === "horizontal" && r && r > 1 ? e === Ut : Wt(t, n ? e === me : e === De, e === P);
555
+ }
556
+ function Yt(e, t) {
557
+ let n = "rootStore" in e ? e.rootStore : e, r = n.useState("open"), i = n.useState("floatingElement"), a = n.useState("domReferenceElement"), o = n.context.dataRef, { listRef: c, activeIndex: l, onNavigate: u = () => {}, enabled: d = !0, selectedIndex: f = null, allowEscape: h = !1, loopFocus: g = !1, nested: _ = !1, rtl: v = !1, virtual: y = !1, focusItemOnOpen: b = "auto", focusItemOnHover: S = !0, openOnArrowKeyDown: ee = !0, disabledIndices: w = void 0, orientation: T = "vertical", parentOrientation: D, cols: O = 1, id: A, resetOnPointerLeave: j = !0, externalTree: te } = t;
558
+ process.env.NODE_ENV !== "production" && (h && (g || console.warn("`useListNavigation` looping must be enabled to allow escaping."), y || console.warn("`useListNavigation` must be virtual to allow escaping.")), T === "vertical" && O > 1 && console.warn("In grid list navigation mode (`cols` > 1), the `orientation` should", "be either \"horizontal\" or \"both\"."));
559
+ let ne = le(Se(i)), P = Be(), I = G(te);
560
+ p(() => {
561
+ o.current.orientation = T;
562
+ }, [o, T]);
563
+ let L = Qe(a), R = Z.useRef(b), B = Z.useRef(f ?? -1), V = Z.useRef(null), oe = Z.useRef(!0), H = m((e) => {
564
+ u(B.current === -1 ? null : B.current, e);
565
+ }), se = Z.useRef(H), U = Z.useRef(!!i), ce = Z.useRef(r), W = Z.useRef(!1), ue = Z.useRef(!1), fe = Z.useRef(null), q = le(w), me = le(r), he = le(f), J = le(j), ge = m(() => {
566
+ function e(e) {
567
+ y ? I?.events.emit("virtualfocus", e) : fe.current = bt(e, {
568
+ sync: W.current,
569
+ preventScroll: !0
570
+ });
571
+ }
572
+ let t = c.current[B.current], n = ue.current;
573
+ t && e(t), (W.current ? (e) => e() : requestAnimationFrame)(() => {
574
+ let r = c.current[B.current] || t;
575
+ r && (t || e(r), ye && (n || !oe.current) && r.scrollIntoView?.({
576
+ block: "nearest",
577
+ inline: "nearest"
578
+ }));
579
+ });
580
+ });
581
+ p(() => {
582
+ d && (r && i ? (B.current = f ?? -1, R.current && f != null && (ue.current = !0, H())) : U.current && (B.current = -1, se.current()));
583
+ }, [
584
+ d,
585
+ r,
586
+ i,
587
+ f,
588
+ H
589
+ ]), p(() => {
590
+ if (d) {
591
+ if (!r) {
592
+ W.current = !1;
593
+ return;
594
+ }
595
+ if (i) if (l == null) {
596
+ if (W.current = !1, he.current != null) return;
597
+ if (U.current && (B.current = -1, ge()), (!ce.current || !U.current) && R.current && (V.current != null || R.current === !0 && V.current == null)) {
598
+ let e = 0, t = () => {
599
+ c.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e += 1) : (B.current = V.current == null || Kt(V.current, T, v) || _ ? Ve(c) : F(c), V.current = null, H());
600
+ };
601
+ t();
602
+ }
603
+ } else K(c.current, l) || (B.current = l, ge(), ue.current = !1);
604
+ }
605
+ }, [
606
+ d,
607
+ r,
608
+ i,
609
+ l,
610
+ he,
611
+ _,
612
+ c,
613
+ T,
614
+ v,
615
+ H,
616
+ ge,
617
+ q
618
+ ]), p(() => {
619
+ if (!d || i || !I || y || !U.current) return;
620
+ let e = I.nodesRef.current, t = e.find((e) => e.id === P)?.context?.elements.floating, n = E(N(i)), r = e.some((e) => e.context && k(e.context.elements.floating, n));
621
+ t && !r && oe.current && t.focus({ preventScroll: !0 });
622
+ }, [
623
+ d,
624
+ i,
625
+ I,
626
+ P,
627
+ y
628
+ ]), p(() => {
629
+ se.current = H, ce.current = r, U.current = !!i;
630
+ }), p(() => {
631
+ r || (V.current = null, R.current = b);
632
+ }, [r, b]);
633
+ let Y = l != null, ve = m((e) => {
634
+ if (!me.current) return;
635
+ let t = c.current.indexOf(e.currentTarget);
636
+ t !== -1 && (B.current !== t || l !== t) && (B.current = t, H(e));
637
+ }), ye = Z.useMemo(() => ({
638
+ onFocus(e) {
639
+ W.current = !0, ve(e);
640
+ },
641
+ onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
642
+ onMouseMove(e) {
643
+ W.current = !0, ue.current = !1, S && ve(e);
644
+ },
645
+ onPointerLeave(e) {
646
+ if (!me.current || !oe.current || e.pointerType === "touch") return;
647
+ W.current = !0;
648
+ let t = e.relatedTarget;
649
+ if (!(!S || c.current.includes(t)) && J.current && (fe.current?.(), fe.current = null, B.current = -1, H(e), !y)) {
650
+ let e = ne.current, t = E(N(e));
651
+ e && k(e, t) && e.focus({ preventScroll: !0 });
652
+ }
653
+ }
654
+ }), [
655
+ ve,
656
+ me,
657
+ ne,
658
+ S,
659
+ c,
660
+ H,
661
+ J,
662
+ y
663
+ ]), xe = Z.useCallback(() => D ?? I?.nodesRef.current.find((e) => e.id === P)?.context?.dataRef?.current.orientation, [
664
+ P,
665
+ I,
666
+ D
667
+ ]), Ce = m((e) => {
668
+ if (oe.current = !1, W.current = !0, e.which === 229 || !me.current && e.currentTarget === ne.current) return;
669
+ if (_ && Jt(e.key, T, v, O)) {
670
+ Gt(e.key, xe()) || be(e), n.setOpen(!1, M(C, e.nativeEvent)), s(a) && (y ? I?.events.emit("virtualfocus", a) : a.focus());
671
+ return;
672
+ }
673
+ let t = B.current, i = Ve(c, w), o = F(c, w);
674
+ if (L || (e.key === "Home" && (be(e), B.current = i, H(e)), e.key === "End" && (be(e), B.current = o, H(e))), O > 1) {
675
+ let t = Array.from({ length: c.current.length }, () => ({
676
+ width: 1,
677
+ height: 1
678
+ })), n = _e(t, O, !1), r = n.findIndex((e) => e != null && !pe(c.current, e, w)), a = n.reduce((e, t, n) => t != null && !pe(c.current, t, w) ? n : e, -1), s = n[He(n.map((e) => e == null ? null : c.current[e]), {
679
+ event: e,
680
+ orientation: T,
681
+ loopFocus: g,
682
+ rtl: v,
683
+ cols: O,
684
+ disabledIndices: de([...(typeof w == "function" ? null : w) || c.current.map((e, t) => pe(c.current, t, w) ? t : void 0), void 0], n),
685
+ minIndex: r,
686
+ maxIndex: a,
687
+ prevIndex: ae(B.current > o ? i : B.current, t, n, O, e.key === "ArrowDown" ? "bl" : e.key === (v ? "ArrowLeft" : "ArrowRight") ? "tr" : "tl"),
688
+ stopEvent: !0
689
+ })];
690
+ if (s != null && (B.current = s, H(e)), T === "both") return;
691
+ }
692
+ if (Gt(e.key, T)) {
693
+ if (be(e), r && !y && E(e.currentTarget.ownerDocument) === e.currentTarget) {
694
+ B.current = Kt(e.key, T, v) ? i : o, H(e);
695
+ return;
696
+ }
697
+ Kt(e.key, T, v) ? g ? t >= o ? h && t !== c.current.length ? B.current = -1 : (W.current = !1, B.current = i) : B.current = z(c.current, {
698
+ startingIndex: t,
699
+ disabledIndices: w
700
+ }) : B.current = Math.min(o, z(c.current, {
701
+ startingIndex: t,
702
+ disabledIndices: w
703
+ })) : g ? t <= i ? h && t !== -1 ? B.current = c.current.length : (W.current = !1, B.current = o) : B.current = z(c.current, {
704
+ startingIndex: t,
705
+ decrement: !0,
706
+ disabledIndices: w
707
+ }) : B.current = Math.max(i, z(c.current, {
708
+ startingIndex: t,
709
+ decrement: !0,
710
+ disabledIndices: w
711
+ })), K(c.current, B.current) && (B.current = -1), H(e);
712
+ }
713
+ }), we = Z.useMemo(() => y && r && Y && { "aria-activedescendant": `${A}-${l}` }, [
714
+ y,
715
+ r,
716
+ Y,
717
+ A,
718
+ l
719
+ ]), Te = Z.useMemo(() => ({
720
+ "aria-orientation": T === "both" ? void 0 : T,
721
+ ...L ? {} : we,
722
+ onKeyDown(e) {
723
+ if (e.key === "Tab" && e.shiftKey && r && !y) {
724
+ let t = re(e.nativeEvent);
725
+ if (t && !k(ne.current, t)) return;
726
+ be(e), n.setOpen(!1, M(x, e.nativeEvent)), s(a) && a.focus();
727
+ return;
728
+ }
729
+ Ce(e);
730
+ },
731
+ onPointerMove() {
732
+ oe.current = !0;
733
+ }
734
+ }), [
735
+ we,
736
+ Ce,
737
+ ne,
738
+ T,
739
+ L,
740
+ n,
741
+ r,
742
+ y,
743
+ a
744
+ ]), Ee = Z.useMemo(() => {
745
+ function e(e) {
746
+ b === "auto" && st(e.nativeEvent) && (R.current = !y);
747
+ }
748
+ function t(e) {
749
+ R.current = b, b === "auto" && ie(e.nativeEvent) && (R.current = !0);
750
+ }
751
+ return {
752
+ onKeyDown(e) {
753
+ let t = n.select("open");
754
+ oe.current = !1;
755
+ let r = e.key.startsWith("Arrow"), i = qt(e.key, xe(), v), a = Gt(e.key, T), o = (_ ? i : a) || e.key === "Enter" || e.key.trim() === "";
756
+ if (y && t) return Ce(e);
757
+ if (!(!t && !ee && r)) {
758
+ if (o) {
759
+ let t = Gt(e.key, xe());
760
+ V.current = _ && t ? null : e.key;
761
+ }
762
+ if (_) {
763
+ i && (be(e), t ? (B.current = Ve(c, q.current), H(e)) : n.setOpen(!0, M(C, e.nativeEvent, e.currentTarget)));
764
+ return;
765
+ }
766
+ a && (he.current != null && (B.current = he.current), be(e), !t && ee ? n.setOpen(!0, M(C, e.nativeEvent, e.currentTarget)) : Ce(e), t && H(e));
767
+ }
768
+ },
769
+ onFocus(e) {
770
+ n.select("open") && !y && (B.current = -1, H(e));
771
+ },
772
+ onPointerDown: t,
773
+ onPointerEnter: t,
774
+ onMouseDown: e,
775
+ onClick: e
776
+ };
777
+ }, [
778
+ Ce,
779
+ q,
780
+ b,
781
+ c,
782
+ _,
783
+ H,
784
+ n,
785
+ ee,
786
+ T,
787
+ xe,
788
+ v,
789
+ he,
790
+ y
791
+ ]), De = Z.useMemo(() => ({
792
+ ...we,
793
+ ...Ee
794
+ }), [we, Ee]);
795
+ return Z.useMemo(() => d ? {
796
+ reference: De,
797
+ floating: Te,
798
+ item: ye,
799
+ trigger: Ee
800
+ } : {}, [
801
+ d,
802
+ De,
803
+ Te,
804
+ Ee,
805
+ ye
806
+ ]);
807
+ }
808
+ //#endregion
809
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js
810
+ function Xt(e, t) {
811
+ let n = "rootStore" in e ? e.rootStore : e, r = n.context.dataRef, i = n.useState("open"), { listRef: a, elementsRef: o, activeIndex: s, onMatch: c, onTypingChange: l, enabled: u = !0, resetMs: d = 750, selectedIndex: f = null } = t, h = Te(), g = Z.useRef(""), _ = Z.useRef(f ?? s ?? -1), v = Z.useRef(null);
812
+ p(() => {
813
+ !i && f !== null || (h.clear(), v.current = null, g.current !== "" && (g.current = ""));
814
+ }, [
815
+ i,
816
+ f,
817
+ h
818
+ ]), p(() => {
819
+ i && g.current === "" && (_.current = f ?? s ?? -1);
820
+ }, [
821
+ i,
822
+ f,
823
+ s
824
+ ]);
825
+ let y = m((e) => {
826
+ e ? r.current.typing || (r.current.typing = e, l?.(e)) : r.current.typing && (r.current.typing = e, l?.(e));
827
+ }), b = m((e) => {
828
+ function t(e) {
829
+ let t = o?.current[e];
830
+ return !t || ue(t);
831
+ }
832
+ function n(e, n, r = 0) {
833
+ if (e.length === 0) return -1;
834
+ let i = (r % e.length + e.length) % e.length, a = n.toLocaleLowerCase();
835
+ for (let n = 0; n < e.length; n += 1) {
836
+ let r = (i + n) % e.length;
837
+ if (!(!e[r]?.toLocaleLowerCase().startsWith(a) || !t(r))) return r;
838
+ }
839
+ return -1;
840
+ }
841
+ let r = a.current;
842
+ if (g.current.length > 0 && e.key === " " && (be(e), y(!0)), g.current.length > 0 && g.current[0] !== " " && n(r, g.current) === -1 && e.key !== " " && y(!1), r == null || e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) return;
843
+ i && e.key !== " " && (be(e), y(!0));
844
+ let l = g.current === "";
845
+ l && (_.current = f ?? s ?? -1), r.every((e) => e ? e[0]?.toLocaleLowerCase() !== e[1]?.toLocaleLowerCase() : !0) && g.current === e.key && (g.current = "", _.current = v.current), g.current += e.key, h.start(d, () => {
846
+ g.current = "", _.current = v.current, y(!1);
847
+ });
848
+ let u = ((l ? f ?? s ?? -1 : _.current) ?? 0) + 1, p = n(r, g.current, u);
849
+ p === -1 ? e.key !== " " && (g.current = "", y(!1)) : (c?.(p), v.current = p);
850
+ }), x = m((e) => {
851
+ let t = e.relatedTarget, r = n.select("domReferenceElement"), i = n.select("floatingElement"), a = k(r, t), o = k(i, t);
852
+ a || o || (h.clear(), g.current = "", _.current = v.current, y(!1));
853
+ }), S = Z.useMemo(() => ({
854
+ onKeyDown: b,
855
+ onBlur: x
856
+ }), [b, x]), C = Z.useMemo(() => ({
857
+ onKeyDown: b,
858
+ onBlur: x
859
+ }), [b, x]);
860
+ return Z.useMemo(() => u ? {
861
+ reference: S,
862
+ floating: C
863
+ } : {}, [
864
+ u,
865
+ S,
866
+ C
867
+ ]);
868
+ }
869
+ //#endregion
870
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js
871
+ function Zt(e) {
872
+ let t = Z.useRef(""), n = Z.useCallback((n) => {
873
+ n.defaultPrevented || (t.current = n.pointerType, e(n, n.pointerType));
874
+ }, [e]);
875
+ return {
876
+ onClick: Z.useCallback((n) => {
877
+ if (n.detail === 0) {
878
+ e(n, "keyboard");
879
+ return;
880
+ }
881
+ "pointerType" in n ? e(n, n.pointerType) : e(n, t.current), t.current = "";
882
+ }, [e]),
883
+ onPointerDown: n
884
+ };
885
+ }
886
+ //#endregion
887
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
888
+ function Qt(e) {
889
+ let [t, n] = Z.useState(null), r = m((t, r) => {
890
+ e || n(r || (Je ? "touch" : ""));
891
+ });
892
+ Le(e, (t) => {
893
+ t && !e && n(null);
894
+ });
895
+ let { onClick: i, onPointerDown: a } = Zt(r);
896
+ return Z.useMemo(() => ({
897
+ openMethod: t,
898
+ triggerProps: {
899
+ onClick: i,
900
+ onPointerDown: a
901
+ }
902
+ }), [
903
+ t,
904
+ i,
905
+ a
906
+ ]);
907
+ }
908
+ //#endregion
909
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/inertValue.js
910
+ function $t(e) {
911
+ return o(19) ? e : e ? "true" : void 0;
912
+ }
913
+ //#endregion
914
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/utils/InternalBackdrop.js
915
+ var en = /* @__PURE__ */ Z.forwardRef(function(e, t) {
916
+ let { cutout: n, ...r } = e, i;
917
+ if (n) {
918
+ let e = n.getBoundingClientRect();
919
+ i = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`;
920
+ }
921
+ return /* @__PURE__ */ Q("div", {
922
+ ref: t,
923
+ role: "presentation",
924
+ "data-base-ui-inert": "",
925
+ ...r,
926
+ style: {
927
+ position: "fixed",
928
+ inset: 0,
929
+ userSelect: "none",
930
+ WebkitUserSelect: "none",
931
+ clipPath: i
932
+ }
933
+ });
934
+ });
935
+ process.env.NODE_ENV !== "production" && (en.displayName = "InternalBackdrop");
936
+ //#endregion
937
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/itemEquality.js
938
+ var tn = (e, t) => Object.is(e, t);
939
+ function nn(e, t, n) {
940
+ return e == null || t == null ? Object.is(e, t) : n(e, t);
941
+ }
942
+ function rn(e, t, n) {
943
+ return !e || e.length === 0 ? !1 : e.some((e) => e === void 0 ? !1 : nn(t, e, n));
944
+ }
945
+ function an(e, t, n) {
946
+ return !e || e.length === 0 ? -1 : e.findIndex((e) => e === void 0 ? !1 : nn(e, t, n));
947
+ }
948
+ function on(e, t, n) {
949
+ return e.filter((e) => !nn(t, e, n));
950
+ }
951
+ //#endregion
952
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/serializeValue.js
953
+ function sn(e) {
954
+ if (e == null) return "";
955
+ if (typeof e == "string") return e;
956
+ try {
957
+ return JSON.stringify(e);
958
+ } catch {
959
+ return String(e);
960
+ }
961
+ }
962
+ //#endregion
963
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/internals/resolveValueLabel.js
964
+ function cn(e) {
965
+ return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
966
+ }
967
+ function ln(e) {
968
+ if (!Array.isArray(e)) return e != null && "null" in e;
969
+ let t = e;
970
+ if (cn(t)) {
971
+ for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
972
+ return !1;
973
+ }
974
+ for (let e of t) if (e && e.value == null && e.label != null) return !0;
975
+ return !1;
976
+ }
977
+ function un(e, t) {
978
+ if (t && e != null) return t(e) ?? "";
979
+ if (e && typeof e == "object") {
980
+ if ("label" in e && e.label != null) return String(e.label);
981
+ if ("value" in e) return String(e.value);
982
+ }
983
+ return sn(e);
984
+ }
985
+ function dn(e, t) {
986
+ return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? sn(e.value) : sn(e);
987
+ }
988
+ function fn(e, t, n) {
989
+ function r() {
990
+ return un(e, n);
991
+ }
992
+ if (n && e != null) return n(e);
993
+ if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
994
+ if (t && !Array.isArray(t)) return t[e] ?? r();
995
+ if (Array.isArray(t)) {
996
+ let n = t, i = cn(n) ? n.flatMap((e) => e.items) : n;
997
+ if (typeof e != "object" || !e) {
998
+ let t = i.find((t) => t.value === e);
999
+ return t && t.label != null ? t.label : r();
1000
+ }
1001
+ if ("value" in e) {
1002
+ let t = i.find((t) => t && t.value === e.value);
1003
+ if (t && t.label != null) return t.label;
1004
+ }
1005
+ }
1006
+ return r();
1007
+ }
1008
+ function pn(e, t, n) {
1009
+ return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/* @__PURE__ */ Q(Z.Fragment, { children: fn(r, t, n) }, i)), e), []);
1010
+ }
1011
+ //#endregion
1012
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js
1013
+ function mn(e) {
1014
+ let t = e.getBoundingClientRect();
1015
+ if (process.env.NODE_ENV !== "production") return t;
1016
+ let n = v(e), r = n.getComputedStyle(e, "::before"), i = n.getComputedStyle(e, "::after");
1017
+ if (!(r.content !== "none" || i.content !== "none")) return t;
1018
+ let a = parseFloat(r.width) || 0, o = parseFloat(r.height) || 0, s = parseFloat(i.width) || 0, c = parseFloat(i.height) || 0, l = Math.max(t.width, a, s), u = Math.max(t.height, o, c), d = l - t.width, f = u - t.height;
1019
+ return {
1020
+ left: t.left - d / 2,
1021
+ right: t.right + d / 2,
1022
+ top: t.top - f / 2,
1023
+ bottom: t.bottom + f / 2
1024
+ };
1025
+ }
1026
+ //#endregion
1027
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/utils/useAnchoredPopupScrollLock.js
1028
+ var hn = 20;
1029
+ function gn(e, t, n, r) {
1030
+ let [i, a] = Z.useState(!1);
1031
+ p(() => {
1032
+ if (!e || !t || n == null) {
1033
+ a(!1);
1034
+ return;
1035
+ }
1036
+ let r = N(n).documentElement.clientWidth, i = n.offsetWidth;
1037
+ a(r > 0 && i > 0 && i >= r - hn);
1038
+ }, [
1039
+ e,
1040
+ t,
1041
+ n
1042
+ ]), vt(e && (!t || i), r);
1043
+ }
1044
+ //#endregion
1045
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/toolbar/root/ToolbarRootContext.js
1046
+ var _n = /* @__PURE__ */ Z.createContext(void 0);
1047
+ process.env.NODE_ENV !== "production" && (_n.displayName = "ToolbarRootContext");
1048
+ function vn(e) {
1049
+ let t = Z.useContext(_n);
1050
+ if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? a(69) : "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.");
1051
+ return t;
1052
+ }
1053
+ //#endregion
1054
+ //#region node_modules/.pnpm/@base-ui+utils@0.2.8_@types_d3ee2f4e7c4092dbff53908511a88462/node_modules/@base-ui/utils/esm/usePreviousValue.js
1055
+ function yn(e) {
1056
+ let [t, n] = Z.useState({
1057
+ current: e,
1058
+ previous: null
1059
+ });
1060
+ return e !== t.current && n({
1061
+ current: e,
1062
+ previous: t.current
1063
+ }), t.previous;
1064
+ }
1065
+ //#endregion
1066
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/utils/styles.js
1067
+ var bn = "base-ui-disable-scrollbar", xn = {
1068
+ className: bn,
1069
+ getElement(e) {
1070
+ return /* @__PURE__ */ Q("style", {
1071
+ nonce: e,
1072
+ href: bn,
1073
+ precedence: "base-ui:low",
1074
+ children: `.${bn}{scrollbar-width:none}.${bn}::-webkit-scrollbar{display:none}`
1075
+ });
1076
+ }
1077
+ };
1078
+ process.env.NODE_ENV !== "production" && (xn.getElement.displayName = "styleDisableScrollbar.getElement");
1079
+ function Sn(e, t) {
1080
+ return Math.max(0, e - t);
1081
+ }
1082
+ function Cn(e, t) {
1083
+ if (t <= 0) return 0;
1084
+ let n = et(e, 0, t), r = n, i = t - n, a = r <= 1, o = i <= 1;
1085
+ return a && o ? r <= i ? 0 : t : a ? 0 : o ? t : n;
1086
+ }
1087
+ //#endregion
1088
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/root/SelectRootContext.js
1089
+ var wn = /* @__PURE__ */ Z.createContext(null);
1090
+ process.env.NODE_ENV !== "production" && (wn.displayName = "SelectRootContext");
1091
+ var Tn = /* @__PURE__ */ Z.createContext(null);
1092
+ process.env.NODE_ENV !== "production" && (Tn.displayName = "SelectFloatingContext");
1093
+ function En() {
1094
+ let e = Z.useContext(wn);
1095
+ if (e === null) throw Error(process.env.NODE_ENV === "production" ? a(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
1096
+ return e;
1097
+ }
1098
+ function Dn() {
1099
+ let e = Z.useContext(Tn);
1100
+ if (e === null) throw Error(process.env.NODE_ENV === "production" ? a(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
1101
+ return e;
1102
+ }
1103
+ //#endregion
1104
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/store.js
1105
+ var $ = {
1106
+ id: Y((e) => e.id),
1107
+ labelId: Y((e) => e.labelId),
1108
+ modal: Y((e) => e.modal),
1109
+ multiple: Y((e) => e.multiple),
1110
+ items: Y((e) => e.items),
1111
+ itemToStringLabel: Y((e) => e.itemToStringLabel),
1112
+ itemToStringValue: Y((e) => e.itemToStringValue),
1113
+ isItemEqualToValue: Y((e) => e.isItemEqualToValue),
1114
+ value: Y((e) => e.value),
1115
+ hasSelectedValue: Y((e) => {
1116
+ let { value: t, multiple: n, itemToStringValue: r } = e;
1117
+ return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : dn(t, r) !== "";
1118
+ }),
1119
+ hasNullItemLabel: Y((e, t) => t ? ln(e.items) : !1),
1120
+ open: Y((e) => e.open),
1121
+ mounted: Y((e) => e.mounted),
1122
+ forceMount: Y((e) => e.forceMount),
1123
+ transitionStatus: Y((e) => e.transitionStatus),
1124
+ openMethod: Y((e) => e.openMethod),
1125
+ activeIndex: Y((e) => e.activeIndex),
1126
+ selectedIndex: Y((e) => e.selectedIndex),
1127
+ isActive: Y((e, t) => e.activeIndex === t),
1128
+ isSelected: Y((e, t, n) => {
1129
+ let r = e.isItemEqualToValue, i = e.value;
1130
+ return e.multiple ? Array.isArray(i) && i.some((e) => nn(n, e, r)) : e.selectedIndex === t && e.selectedIndex !== null ? !0 : nn(n, i, r);
1131
+ }),
1132
+ isSelectedByFocus: Y((e, t) => e.selectedIndex === t),
1133
+ popupProps: Y((e) => e.popupProps),
1134
+ triggerProps: Y((e) => e.triggerProps),
1135
+ triggerElement: Y((e) => e.triggerElement),
1136
+ positionerElement: Y((e) => e.positionerElement),
1137
+ listElement: Y((e) => e.listElement),
1138
+ scrollUpArrowVisible: Y((e) => e.scrollUpArrowVisible),
1139
+ scrollDownArrowVisible: Y((e) => e.scrollDownArrowVisible),
1140
+ hasScrollArrows: Y((e) => e.hasScrollArrows)
1141
+ };
1142
+ //#endregion
1143
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
1144
+ function On(e) {
1145
+ let { id: t, value: n, defaultValue: i = null, onValueChange: a, open: o, defaultOpen: s = !1, onOpenChange: l, name: d, form: h, autoComplete: g, disabled: _ = !1, readOnly: v = !1, required: b = !1, modal: x = !0, actionsRef: S, inputRef: C, onOpenChangeComplete: w, items: E, multiple: D = !1, itemToStringLabel: k, itemToStringValue: A, isItemEqualToValue: j = tn, highlightItemOnHover: N = !0, children: re } = e, { clearErrors: P } = Ue(), { setDirty: F, setTouched: ie, setFocused: I, shouldValidateOnChange: ae, validityData: R, setFilled: z, name: B, disabled: oe, validation: H, validationMode: se } = O(), U = ne({ id: t }), ce = oe || _, W = B ?? d, [G, ue] = T({
1146
+ controlled: n,
1147
+ default: D ? i ?? u : i,
1148
+ name: "Select",
1149
+ state: "value"
1150
+ }), [K, de] = T({
1151
+ controlled: o,
1152
+ default: s,
1153
+ name: "Select",
1154
+ state: "open"
1155
+ }), fe = Z.useRef([]), pe = Z.useRef([]), q = Z.useRef(null), me = Z.useRef(null), he = Z.useRef(0), ge = Z.useRef(null), Y = Z.useRef([]), _e = Z.useRef(!1), ve = Z.useRef(!1), ye = Z.useRef(null), be = Z.useRef({
1156
+ allowSelectedMouseUp: !1,
1157
+ allowUnselectedMouseUp: !1
1158
+ }), Se = Z.useRef(!1), { mounted: we, setMounted: Te, transitionStatus: De } = Ye(K), { openMethod: ke, triggerProps: Ae } = Qt(K), X = c(() => new it({
1159
+ id: U,
1160
+ labelId: void 0,
1161
+ modal: x,
1162
+ multiple: D,
1163
+ itemToStringLabel: k,
1164
+ itemToStringValue: A,
1165
+ isItemEqualToValue: j,
1166
+ value: G,
1167
+ open: K,
1168
+ mounted: we,
1169
+ transitionStatus: De,
1170
+ items: E,
1171
+ forceMount: !1,
1172
+ openMethod: null,
1173
+ activeIndex: null,
1174
+ selectedIndex: null,
1175
+ popupProps: {},
1176
+ triggerProps: {},
1177
+ triggerElement: null,
1178
+ positionerElement: null,
1179
+ listElement: null,
1180
+ scrollUpArrowVisible: !1,
1181
+ scrollDownArrowVisible: !1,
1182
+ hasScrollArrows: !1
1183
+ })).current, je = J(X, $.activeIndex), Me = J(X, $.selectedIndex), Ne = J(X, $.triggerElement), Pe = J(X, $.positionerElement), Fe = yn(ke), Re = ke ?? Fe, ze = Z.useMemo(() => D && Array.isArray(G) && G.length === 0 ? "" : dn(G, A), [
1184
+ D,
1185
+ G,
1186
+ A
1187
+ ]), Be = Z.useMemo(() => D && Array.isArray(G) ? G.map((e) => dn(e, A)) : dn(G, A), [
1188
+ D,
1189
+ G,
1190
+ A
1191
+ ]);
1192
+ te(le(X.state.triggerElement), {
1193
+ id: U,
1194
+ value: G,
1195
+ getValue: m(() => Be)
1196
+ });
1197
+ let Ve = Z.useRef(G);
1198
+ p(() => {
1199
+ G !== Ve.current && X.set("forceMount", !0);
1200
+ }, [X, G]), p(() => {
1201
+ z(D ? Array.isArray(G) && G.length > 0 : G != null);
1202
+ }, [
1203
+ D,
1204
+ G,
1205
+ z
1206
+ ]), p(function() {
1207
+ if (K) return;
1208
+ let e = Y.current;
1209
+ if (D) {
1210
+ let t = Array.isArray(G) ? G : [];
1211
+ if (t.length === 0) {
1212
+ X.set("selectedIndex", null);
1213
+ return;
1214
+ }
1215
+ let n = t[t.length - 1], r = an(e, n, j);
1216
+ X.set("selectedIndex", r === -1 ? null : r);
1217
+ return;
1218
+ }
1219
+ let t = an(e, G, j);
1220
+ X.set("selectedIndex", t === -1 ? null : t);
1221
+ }, [
1222
+ D,
1223
+ K,
1224
+ G,
1225
+ Y,
1226
+ j,
1227
+ X
1228
+ ]), Le(G, () => {
1229
+ P(W), F(G !== R.initialValue), ae() ? H.commit(G) : H.commit(G, !0);
1230
+ });
1231
+ let He = m((e, t) => {
1232
+ if (l?.(e, t), !t.isCanceled && (de(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (ie(!0), I(!1), se === "onBlur" && H.commit(G)), !e && X.state.activeIndex !== null)) {
1233
+ let e = fe.current[X.state.activeIndex];
1234
+ queueMicrotask(() => {
1235
+ e?.setAttribute("tabindex", "-1");
1236
+ });
1237
+ }
1238
+ }), We = m(() => {
1239
+ Te(!1), X.update({
1240
+ activeIndex: null,
1241
+ openMethod: null
1242
+ }), w?.(!1);
1243
+ });
1244
+ Ee({
1245
+ enabled: !S,
1246
+ open: K,
1247
+ ref: q,
1248
+ onComplete() {
1249
+ K || We();
1250
+ }
1251
+ }), Z.useImperativeHandle(S, () => ({ unmount: We }), [We]);
1252
+ let Ge = m((e, t) => {
1253
+ a?.(e, t), !t.isCanceled && ue(e);
1254
+ }), Ke = m(() => {
1255
+ let e = X.state.listElement || q.current;
1256
+ if (!e) return;
1257
+ let t = Sn(e.scrollHeight, e.clientHeight), n = Cn(e.scrollTop, t), r = n > 0, i = n < t;
1258
+ X.state.scrollUpArrowVisible !== r && X.set("scrollUpArrowVisible", r), X.state.scrollDownArrowVisible !== i && X.set("scrollDownArrowVisible", i);
1259
+ }), qe = Oe({
1260
+ open: K,
1261
+ onOpenChange: He,
1262
+ elements: {
1263
+ reference: Ne,
1264
+ floating: Pe
1265
+ }
1266
+ }), { getReferenceProps: Je, getFloatingProps: Xe, getItemProps: Ze } = Ie([
1267
+ Ht(qe, {
1268
+ enabled: !v && !ce,
1269
+ event: "mousedown"
1270
+ }),
1271
+ L(qe, { bubbles: !1 }),
1272
+ Yt(qe, {
1273
+ enabled: !v && !ce,
1274
+ listRef: fe,
1275
+ activeIndex: je,
1276
+ selectedIndex: Me,
1277
+ disabledIndices: u,
1278
+ onNavigate(e) {
1279
+ e === null && !K || X.set("activeIndex", e);
1280
+ },
1281
+ focusItemOnHover: N
1282
+ }),
1283
+ Xt(qe, {
1284
+ enabled: !v && !ce && (K || !D),
1285
+ listRef: pe,
1286
+ activeIndex: je,
1287
+ selectedIndex: Me,
1288
+ onMatch(e) {
1289
+ K ? X.set("activeIndex", e) : Ge(Y.current[e], M("none"));
1290
+ },
1291
+ onTypingChange(e) {
1292
+ _e.current = e;
1293
+ }
1294
+ })
1295
+ ]), Qe = Z.useMemo(() => r(Je(), Ae, U ? { id: U } : f), [
1296
+ Je,
1297
+ Ae,
1298
+ U
1299
+ ]);
1300
+ Ce(() => {
1301
+ X.update({
1302
+ popupProps: Xe(),
1303
+ triggerProps: Qe
1304
+ });
1305
+ }), p(() => {
1306
+ X.update({
1307
+ id: U,
1308
+ modal: x,
1309
+ multiple: D,
1310
+ value: G,
1311
+ open: K,
1312
+ mounted: we,
1313
+ transitionStatus: De,
1314
+ popupProps: Xe(),
1315
+ triggerProps: Qe,
1316
+ items: E,
1317
+ itemToStringLabel: k,
1318
+ itemToStringValue: A,
1319
+ isItemEqualToValue: j,
1320
+ openMethod: Re
1321
+ });
1322
+ }, [
1323
+ X,
1324
+ U,
1325
+ x,
1326
+ D,
1327
+ G,
1328
+ K,
1329
+ we,
1330
+ De,
1331
+ Xe,
1332
+ Qe,
1333
+ E,
1334
+ k,
1335
+ A,
1336
+ j,
1337
+ Re
1338
+ ]);
1339
+ let $e = Z.useMemo(() => ({
1340
+ store: X,
1341
+ name: W,
1342
+ required: b,
1343
+ disabled: ce,
1344
+ readOnly: v,
1345
+ multiple: D,
1346
+ highlightItemOnHover: N,
1347
+ setValue: Ge,
1348
+ setOpen: He,
1349
+ listRef: fe,
1350
+ popupRef: q,
1351
+ scrollHandlerRef: me,
1352
+ handleScrollArrowVisibility: Ke,
1353
+ scrollArrowsMountedCountRef: he,
1354
+ getItemProps: Ze,
1355
+ events: qe.context.events,
1356
+ valueRef: ge,
1357
+ valuesRef: Y,
1358
+ labelsRef: pe,
1359
+ typingRef: _e,
1360
+ selectionRef: be,
1361
+ selectedItemTextRef: ye,
1362
+ validation: H,
1363
+ onOpenChangeComplete: w,
1364
+ keyboardActiveRef: ve,
1365
+ alignItemWithTriggerActiveRef: Se,
1366
+ initialValueRef: Ve
1367
+ }), [
1368
+ X,
1369
+ W,
1370
+ b,
1371
+ ce,
1372
+ v,
1373
+ D,
1374
+ N,
1375
+ Ge,
1376
+ He,
1377
+ Ze,
1378
+ qe.context.events,
1379
+ H,
1380
+ w,
1381
+ Ke
1382
+ ]), et = y(C, H.inputRef), tt = D && Array.isArray(G) && G.length > 0, nt = D ? void 0 : W, rt = Z.useMemo(() => !D || !Array.isArray(G) || !W ? null : G.map((e) => {
1383
+ let t = dn(e, A);
1384
+ return /* @__PURE__ */ Q("input", {
1385
+ type: "hidden",
1386
+ form: h,
1387
+ name: W,
1388
+ value: t
1389
+ }, t);
1390
+ }), [
1391
+ D,
1392
+ G,
1393
+ h,
1394
+ W,
1395
+ A
1396
+ ]);
1397
+ return /* @__PURE__ */ Q(wn.Provider, {
1398
+ value: $e,
1399
+ children: /* @__PURE__ */ lt(Tn.Provider, {
1400
+ value: qe,
1401
+ children: [
1402
+ re,
1403
+ /* @__PURE__ */ Q("input", {
1404
+ ...H.getInputValidationProps({
1405
+ onFocus() {
1406
+ X.state.triggerElement?.focus({ focusVisible: !0 });
1407
+ },
1408
+ onChange(e) {
1409
+ if (e.nativeEvent.defaultPrevented) return;
1410
+ let t = e.currentTarget.value, n = M(ee, e.nativeEvent);
1411
+ function r() {
1412
+ if (D) return;
1413
+ let e = Y.current.find((e) => dn(e, A).toLowerCase() === t.toLowerCase() || un(e, k).toLowerCase() === t.toLowerCase());
1414
+ e != null && (F(e !== R.initialValue), Ge(e, n), ae() && H.commit(e));
1415
+ }
1416
+ X.set("forceMount", !0), queueMicrotask(r);
1417
+ }
1418
+ }),
1419
+ id: U && nt == null ? `${U}-hidden-input` : void 0,
1420
+ form: h,
1421
+ name: nt,
1422
+ autoComplete: g,
1423
+ value: ze,
1424
+ disabled: ce,
1425
+ required: b && !tt,
1426
+ readOnly: v,
1427
+ ref: et,
1428
+ style: W ? V : xe,
1429
+ tabIndex: -1,
1430
+ "aria-hidden": !0,
1431
+ suppressHydrationWarning: !0
1432
+ }),
1433
+ rt
1434
+ ]
1435
+ })
1436
+ });
1437
+ }
1438
+ //#endregion
1439
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
1440
+ var kn = 2, An = 400, jn = 200, Mn = {
1441
+ ...Xe,
1442
+ ...j,
1443
+ value: () => null
1444
+ }, Nn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1445
+ let { render: n, className: i, id: a, disabled: o = !1, nativeButton: s = !0, style: c, ...l } = e, { setTouched: u, setFocused: f, validationMode: p, state: h, disabled: g } = O(), { labelId: _ } = A(), { store: v, setOpen: x, selectionRef: S, validation: C, readOnly: w, required: T, alignItemWithTriggerActiveRef: E, disabled: j, keyboardActiveRef: te } = En(), re = g || j || o, P = J(v, $.open), F = J(v, $.value), ie = J(v, $.triggerProps), I = J(v, $.positionerElement), L = J(v, $.listElement), ae = J(v, $.id), R = J(v, $.labelId), z = J(v, $.hasSelectedValue), B = !z && P, V = J(v, $.hasNullItemLabel, B), oe = a ?? ae, H = Me(_, R);
1446
+ ne({ id: oe });
1447
+ let se = le(I), U = Z.useRef(null), { getButtonProps: ce, buttonRef: W } = b({
1448
+ disabled: re,
1449
+ native: s
1450
+ }), G = y(t, U, W, m((e) => {
1451
+ v.set("triggerElement", e);
1452
+ })), ue = Te(), K = Te(), de = Te(), fe = Te();
1453
+ Z.useEffect(() => {
1454
+ if (P) return z || V ? fe.start(jn, () => {
1455
+ S.current.allowUnselectedMouseUp = !0, de.start(jn, () => {
1456
+ S.current.allowSelectedMouseUp = !0;
1457
+ });
1458
+ }) : de.start(An, () => {
1459
+ S.current.allowUnselectedMouseUp = !0, S.current.allowSelectedMouseUp = !0;
1460
+ }), () => {
1461
+ de.clear(), fe.clear();
1462
+ };
1463
+ S.current = {
1464
+ allowSelectedMouseUp: !1,
1465
+ allowUnselectedMouseUp: !1
1466
+ }, K.clear();
1467
+ }, [
1468
+ P,
1469
+ z,
1470
+ V,
1471
+ S,
1472
+ K,
1473
+ de,
1474
+ fe
1475
+ ]);
1476
+ let pe = Z.useMemo(() => L?.id ?? Se(I)?.id, [L, I]), q = r(ie, {
1477
+ id: oe,
1478
+ role: "combobox",
1479
+ "aria-expanded": P ? "true" : "false",
1480
+ "aria-haspopup": "listbox",
1481
+ "aria-controls": P ? pe : void 0,
1482
+ "aria-labelledby": H,
1483
+ "aria-readonly": w || void 0,
1484
+ "aria-required": T || void 0,
1485
+ tabIndex: re ? -1 : 0,
1486
+ ref: G,
1487
+ onFocus(e) {
1488
+ f(!0), P && E.current && x(!1, M(ee, e.nativeEvent)), ue.start(0, () => {
1489
+ v.set("forceMount", !0);
1490
+ });
1491
+ },
1492
+ onBlur(e) {
1493
+ k(I, e.relatedTarget) || (u(!0), f(!1), p === "onBlur" && C.commit(F));
1494
+ },
1495
+ onPointerMove() {
1496
+ te.current = !1;
1497
+ },
1498
+ onKeyDown() {
1499
+ te.current = !0;
1500
+ },
1501
+ onMouseDown(e) {
1502
+ if (P) return;
1503
+ let t = N(e.currentTarget);
1504
+ function n(e) {
1505
+ if (!U.current) return;
1506
+ let t = e.target;
1507
+ if (k(U.current, t) || k(se.current, t) || t === U.current) return;
1508
+ let n = mn(U.current);
1509
+ e.clientX >= n.left - kn && e.clientX <= n.right + kn && e.clientY >= n.top - kn && e.clientY <= n.bottom + kn || x(!1, M(D, e));
1510
+ }
1511
+ K.start(0, () => {
1512
+ t.addEventListener("mouseup", n, { once: !0 });
1513
+ });
1514
+ }
1515
+ }, C.getValidationProps, l, ce);
1516
+ q.role = "combobox";
1517
+ let me = {
1518
+ ...h,
1519
+ open: P,
1520
+ disabled: re,
1521
+ value: F,
1522
+ readOnly: w,
1523
+ placeholder: !z
1524
+ };
1525
+ return d("button", e, {
1526
+ ref: [t, U],
1527
+ state: me,
1528
+ stateAttributesMapping: Mn,
1529
+ props: q
1530
+ });
1531
+ });
1532
+ process.env.NODE_ENV !== "production" && (Nn.displayName = "SelectTrigger");
1533
+ //#endregion
1534
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/value/SelectValue.js
1535
+ var Pn = { value: () => null }, Fn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1536
+ let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = En(), u = J(c, $.value), f = J(c, $.items), p = J(c, $.itemToStringLabel), m = J(c, $.hasSelectedValue), h = !m && a != null && i == null, g = J(c, $.hasNullItemLabel, h), _ = {
1537
+ value: u,
1538
+ placeholder: !m
1539
+ }, v = null;
1540
+ return v = typeof i == "function" ? i(u) : i ?? (!m && a != null && !g ? a : Array.isArray(u) ? pn(u, f, p) : fn(u, f, p)), d("span", e, {
1541
+ state: _,
1542
+ ref: [t, l],
1543
+ props: [{ children: v }, s],
1544
+ stateAttributesMapping: Pn
1545
+ });
1546
+ });
1547
+ process.env.NODE_ENV !== "production" && (Fn.displayName = "SelectValue");
1548
+ //#endregion
1549
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
1550
+ var In = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1551
+ let { className: n, render: r, style: i, ...a } = e, { store: o } = En();
1552
+ return d("span", e, {
1553
+ state: { open: J(o, $.open) },
1554
+ ref: t,
1555
+ props: [{
1556
+ "aria-hidden": !0,
1557
+ children: "▼"
1558
+ }, a],
1559
+ stateAttributesMapping: Ge
1560
+ });
1561
+ });
1562
+ process.env.NODE_ENV !== "production" && (In.displayName = "SelectIcon");
1563
+ //#endregion
1564
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/portal/SelectPortalContext.js
1565
+ var Ln = /* @__PURE__ */ Z.createContext(void 0);
1566
+ process.env.NODE_ENV !== "production" && (Ln.displayName = "SelectPortalContext");
1567
+ //#endregion
1568
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
1569
+ var Rn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1570
+ let { store: n } = En(), r = J(n, $.mounted), i = J(n, $.forceMount);
1571
+ return r || i ? /* @__PURE__ */ Q(Ln.Provider, {
1572
+ value: !0,
1573
+ children: /* @__PURE__ */ Q(fe, {
1574
+ ref: t,
1575
+ ...e
1576
+ })
1577
+ }) : null;
1578
+ });
1579
+ process.env.NODE_ENV !== "production" && (Rn.displayName = "SelectPortal");
1580
+ //#endregion
1581
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js
1582
+ var zn = /* @__PURE__ */ Z.createContext(void 0);
1583
+ process.env.NODE_ENV !== "production" && (zn.displayName = "SelectPositionerContext");
1584
+ function Bn() {
1585
+ let e = Z.useContext(zn);
1586
+ if (!e) throw Error(process.env.NODE_ENV === "production" ? a(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
1587
+ return e;
1588
+ }
1589
+ //#endregion
1590
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/popup/utils.js
1591
+ function Vn(e, t) {
1592
+ e && Object.assign(e.style, t);
1593
+ }
1594
+ var Hn = {
1595
+ position: "relative",
1596
+ maxHeight: "100%",
1597
+ overflowX: "hidden",
1598
+ overflowY: "auto"
1599
+ }, Un = { position: "fixed" }, Wn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1600
+ let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d, arrowPadding: f = 5, sticky: h = !1, disableAnchorTracking: g, alignItemWithTrigger: _ = !0, collisionAvoidance: v = ot, style: y, ...b } = e, { store: x, listRef: S, labelsRef: C, alignItemWithTriggerActiveRef: w, selectedItemTextRef: T, valuesRef: E, initialValueRef: D, popupRef: O, setValue: k } = En(), A = Dn(), j = J(x, $.open), te = J(x, $.mounted), N = J(x, $.modal), ne = J(x, $.value), re = J(x, $.openMethod), P = J(x, $.positionerElement), F = J(x, $.triggerElement), ie = J(x, $.isItemEqualToValue), I = J(x, $.transitionStatus), L = Z.useRef(null), ae = Z.useRef(null), [R, z] = Z.useState(_), B = te && R && re !== "touch";
1601
+ !te && R !== _ && z(_), p(() => {
1602
+ te || ($.scrollUpArrowVisible(x.state) && x.set("scrollUpArrowVisible", !1), $.scrollDownArrowVisible(x.state) && x.set("scrollDownArrowVisible", !1));
1603
+ }, [x, te]), Z.useImperativeHandle(w, () => B), gn((B || N) && j, re === "touch", P, F);
1604
+ let V = Ae({
1605
+ anchor: n,
1606
+ floatingRootContext: A,
1607
+ positionMethod: r,
1608
+ mounted: te,
1609
+ side: o,
1610
+ sideOffset: c,
1611
+ align: s,
1612
+ alignOffset: l,
1613
+ arrowPadding: f,
1614
+ collisionBoundary: u,
1615
+ collisionPadding: d,
1616
+ sticky: h,
1617
+ disableAnchorTracking: g ?? B,
1618
+ collisionAvoidance: v,
1619
+ keepMounted: !0
1620
+ }), oe = B ? "none" : V.side, H = B ? Un : V.positionerStyles, se = $e(e, {
1621
+ open: j,
1622
+ side: oe,
1623
+ align: V.align,
1624
+ anchorHidden: V.anchorHidden
1625
+ }, {
1626
+ styles: H,
1627
+ transitionStatus: I,
1628
+ props: b,
1629
+ refs: [t, m((e) => {
1630
+ x.set("positionerElement", e);
1631
+ })],
1632
+ hidden: !te,
1633
+ inert: !j
1634
+ }), U = Z.useRef(0), ce = m((e) => {
1635
+ if (e.size === 0 && U.current === 0 || E.current.length === 0) return;
1636
+ let t = U.current;
1637
+ if (U.current = e.size, e.size === t) return;
1638
+ let n = M(ee);
1639
+ if (t !== 0 && !x.state.multiple && ne !== null && an(E.current, ne, ie) === -1) {
1640
+ let e = D.current, t = e != null && an(E.current, e, ie) !== -1 ? e : null;
1641
+ k(t, n), t === null && (x.set("selectedIndex", null), T.current = null);
1642
+ }
1643
+ if (t !== 0 && x.state.multiple && Array.isArray(ne)) {
1644
+ let e = (e) => an(E.current, e, ie) !== -1, t = ne.filter((t) => e(t));
1645
+ (t.length !== ne.length || t.some((e) => !rn(ne, e, ie))) && (k(t, n), t.length === 0 && (x.set("selectedIndex", null), T.current = null));
1646
+ }
1647
+ if (j && B) {
1648
+ x.update({
1649
+ scrollUpArrowVisible: !1,
1650
+ scrollDownArrowVisible: !1
1651
+ });
1652
+ let e = { height: "" };
1653
+ Vn(P, e), Vn(O.current, e);
1654
+ }
1655
+ }), le = Z.useMemo(() => ({
1656
+ ...V,
1657
+ side: oe,
1658
+ alignItemWithTriggerActive: B,
1659
+ setControlledAlignItemWithTrigger: z,
1660
+ scrollUpArrowRef: L,
1661
+ scrollDownArrowRef: ae
1662
+ }), [
1663
+ V,
1664
+ oe,
1665
+ B,
1666
+ z
1667
+ ]);
1668
+ return /* @__PURE__ */ Q(Re, {
1669
+ elementsRef: S,
1670
+ labelsRef: C,
1671
+ onMapChange: ce,
1672
+ children: /* @__PURE__ */ lt(zn.Provider, {
1673
+ value: le,
1674
+ children: [te && N && /* @__PURE__ */ Q(en, {
1675
+ inert: $t(!j),
1676
+ cutout: F
1677
+ }), se]
1678
+ })
1679
+ });
1680
+ });
1681
+ process.env.NODE_ENV !== "production" && (Wn.displayName = "SelectPositioner");
1682
+ //#endregion
1683
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
1684
+ var Gn = {
1685
+ ...Pe,
1686
+ ...We
1687
+ }, Kn = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1688
+ let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: l, setOpen: u, valueRef: f, selectedItemTextRef: h, keyboardActiveRef: g, multiple: _, handleScrollArrowVisibility: y, scrollHandlerRef: b, listRef: x, highlightItemOnHover: S } = En(), { side: C, align: ee, alignItemWithTriggerActive: T, isPositioned: E, setControlledAlignItemWithTrigger: D, scrollDownArrowRef: O, scrollUpArrowRef: k } = Bn(), A = vn(!0) != null, j = Dn(), te = Ke(), { nonce: ne, disableStyleElements: re } = qe(), P = J(s, $.id), F = J(s, $.open), ie = J(s, $.mounted), I = J(s, $.popupProps), L = J(s, $.transitionStatus), ae = J(s, $.triggerElement), R = J(s, $.positionerElement), z = J(s, $.listElement), B = Z.useRef(!1), V = Z.useRef(!1), oe = Z.useRef({}), H = Fe(), se = m((e) => {
1689
+ if (!R || !c.current || !V.current) return;
1690
+ if (B.current || !T) {
1691
+ y();
1692
+ return;
1693
+ }
1694
+ let t = R.style.top === "0px", n = R.style.bottom === "0px";
1695
+ if (!t && !n) {
1696
+ y();
1697
+ return;
1698
+ }
1699
+ let r = Yn(R), i = Xn(R.getBoundingClientRect().height, "y", r), a = N(R), o = getComputedStyle(R), s = parseFloat(o.marginTop), l = parseFloat(o.marginBottom), u = qn(getComputedStyle(c.current)), d = Math.min(a.documentElement.clientHeight - s - l, u), f = e.scrollTop, p = Jn(e), m = 0, h = null, g = !1, _ = !1, v = (e) => {
1700
+ R.style.height = `${e}px`;
1701
+ }, b = (t, n) => {
1702
+ let r = et(t, 0, d - i);
1703
+ r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (B.current = !0), y();
1704
+ }, x = t ? p - f : f, S = Math.min(i + x, d);
1705
+ if (m = S, x <= 1) {
1706
+ b(x, t ? p : 0);
1707
+ return;
1708
+ }
1709
+ if (d - S > 1 ? t ? _ = !0 : h = 0 : (g = !0, n && f < p && (h = f - (x - (i + x - d)))), m = Math.ceil(m), m !== 0 && v(m), _ || h != null) {
1710
+ let t = Jn(e), n = _ ? t : et(h, 0, t);
1711
+ Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
1712
+ }
1713
+ (g || m >= d - 1) && (B.current = !0), y();
1714
+ });
1715
+ Z.useImperativeHandle(b, () => se, [se]), Ee({
1716
+ open: F,
1717
+ ref: c,
1718
+ onComplete() {
1719
+ F && l?.(!0);
1720
+ }
1721
+ });
1722
+ let U = {
1723
+ open: F,
1724
+ transitionStatus: L,
1725
+ side: C,
1726
+ align: ee
1727
+ };
1728
+ p(() => {
1729
+ !R || !c.current || Object.keys(oe.current).length || (oe.current = {
1730
+ top: R.style.top || "0",
1731
+ left: R.style.left || "0",
1732
+ right: R.style.right,
1733
+ height: R.style.height,
1734
+ bottom: R.style.bottom,
1735
+ minHeight: R.style.minHeight,
1736
+ maxHeight: R.style.maxHeight,
1737
+ marginTop: R.style.marginTop,
1738
+ marginBottom: R.style.marginBottom
1739
+ });
1740
+ }, [c, R]), p(() => {
1741
+ F || T || (V.current = !1, B.current = !1, Vn(R, oe.current));
1742
+ }, [
1743
+ F,
1744
+ T,
1745
+ R,
1746
+ c
1747
+ ]), p(() => {
1748
+ let e = c.current;
1749
+ if (!F || !ae || !R || !e || T && !E || s.state.transitionStatus === "ending") return;
1750
+ if (!T) {
1751
+ V.current = !0, H.request(y), e.style.removeProperty("--transform-origin");
1752
+ return;
1753
+ }
1754
+ let t = $n(e);
1755
+ e.style.removeProperty("--transform-origin");
1756
+ try {
1757
+ let t = h.current, n = f.current, r = getComputedStyle(R), i = getComputedStyle(e), a = N(ae), o = v(R), c = Yn(ae), l = Zn(ae.getBoundingClientRect(), c), u = Zn(R.getBoundingClientRect(), c), d = l.height, p = z || e, m = p.scrollHeight, g = parseFloat(i.borderBottomWidth), _ = parseFloat(r.marginTop) || 10, b = parseFloat(r.marginBottom) || 10, C = parseFloat(r.minHeight) || 100, ee = qn(i), w = a.documentElement.clientHeight - _ - b, T = a.documentElement.clientWidth, E = w - l.bottom + d, O, k = te === "rtl" ? l.right - u.width : l.left, A = 0;
1758
+ if (t && n) {
1759
+ let e = Zn(n.getBoundingClientRect(), c);
1760
+ O = Zn(t.getBoundingClientRect(), c), k = u.left + (te === "rtl" ? e.right - O.right : e.left - O.left);
1761
+ let r = e.top - l.top + e.height / 2;
1762
+ A = O.top - u.top + O.height / 2 - r;
1763
+ }
1764
+ let j = E + A + b + g, M = Math.min(w, j), ne = w - _ - b, re = j - M, P = T - 5;
1765
+ R.style.left = `${et(k, 5, P - u.width)}px`, R.style.height = `${M}px`, R.style.maxHeight = "auto", R.style.marginTop = `${_}px`, R.style.marginBottom = `${b}px`, e.style.height = "100%";
1766
+ let F = Jn(p), ie = re >= F - 1;
1767
+ ie && (M = Math.min(w, u.height) - (re - F));
1768
+ let I = l.top < 20 || l.bottom > w - 20 || Math.ceil(M) + 1 < Math.min(m, C), L = (o.visualViewport?.scale ?? 1) !== 1 && X;
1769
+ if (I || L) {
1770
+ V.current = !0, Vn(R, oe.current), D(!1);
1771
+ return;
1772
+ }
1773
+ let H = Math.max(C, M);
1774
+ if (ie) {
1775
+ let e = Math.max(0, w - j);
1776
+ R.style.top = u.height >= ne ? "0" : `${e}px`, R.style.height = `${M}px`, p.scrollTop = Jn(p);
1777
+ } else R.style.bottom = "0", p.scrollTop = re;
1778
+ if (O) {
1779
+ let t = u.top, n = u.height, r = O.top + O.height / 2, i = et(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
1780
+ e.style.setProperty("--transform-origin", `50% ${i}%`);
1781
+ }
1782
+ (H === w || M >= ee) && (B.current = !0), y(), S && s.state.selectedIndex === null && s.state.activeIndex === null && x.current[0] != null && s.set("activeIndex", 0), V.current = !0;
1783
+ } finally {
1784
+ t();
1785
+ }
1786
+ }, [
1787
+ s,
1788
+ F,
1789
+ R,
1790
+ ae,
1791
+ f,
1792
+ h,
1793
+ c,
1794
+ y,
1795
+ T,
1796
+ D,
1797
+ H,
1798
+ O,
1799
+ k,
1800
+ z,
1801
+ x,
1802
+ S,
1803
+ te,
1804
+ E
1805
+ ]), Z.useEffect(() => {
1806
+ if (!T || !R || !F) return;
1807
+ let e = v(R);
1808
+ function t(e) {
1809
+ u(!1, M(w, e));
1810
+ }
1811
+ return q(e, "resize", t);
1812
+ }, [
1813
+ u,
1814
+ T,
1815
+ R,
1816
+ F
1817
+ ]);
1818
+ let ce = {
1819
+ ...z ? {
1820
+ role: "presentation",
1821
+ "aria-orientation": void 0
1822
+ } : {
1823
+ role: "listbox",
1824
+ "aria-multiselectable": _ || void 0,
1825
+ id: `${P}-list`
1826
+ },
1827
+ onKeyDown(e) {
1828
+ g.current = !0, A && je.has(e.key) && e.stopPropagation();
1829
+ },
1830
+ onMouseMove() {
1831
+ g.current = !1;
1832
+ },
1833
+ onScroll(e) {
1834
+ z || se(e.currentTarget);
1835
+ },
1836
+ ...T && { style: z ? { height: "100%" } : Hn }
1837
+ }, le = d("div", e, {
1838
+ ref: [t, c],
1839
+ state: U,
1840
+ stateAttributesMapping: Gn,
1841
+ props: [
1842
+ I,
1843
+ ce,
1844
+ ze(L),
1845
+ { className: !z && T ? xn.className : void 0 },
1846
+ o
1847
+ ]
1848
+ });
1849
+ return /* @__PURE__ */ lt(Z.Fragment, { children: [!re && xn.getElement(ne), /* @__PURE__ */ Q(Vt, {
1850
+ context: j,
1851
+ modal: !1,
1852
+ disabled: !ie,
1853
+ returnFocus: a,
1854
+ restoreFocus: !0,
1855
+ children: le
1856
+ })] });
1857
+ });
1858
+ process.env.NODE_ENV !== "production" && (Kn.displayName = "SelectPopup");
1859
+ function qn(e) {
1860
+ let t = e.maxHeight || "";
1861
+ return t.endsWith("px") && parseFloat(t) || Infinity;
1862
+ }
1863
+ function Jn(e) {
1864
+ return Sn(e.scrollHeight, e.clientHeight);
1865
+ }
1866
+ function Yn(e) {
1867
+ return R.getScale(e);
1868
+ }
1869
+ function Xn(e, t, n) {
1870
+ return e / n[t];
1871
+ }
1872
+ function Zn(e, t) {
1873
+ return B({
1874
+ x: Xn(e.x, "x", t),
1875
+ y: Xn(e.y, "y", t),
1876
+ width: Xn(e.width, "x", t),
1877
+ height: Xn(e.height, "y", t)
1878
+ });
1879
+ }
1880
+ var Qn = [
1881
+ ["transform", "none"],
1882
+ ["scale", "1"],
1883
+ ["translate", "0 0"]
1884
+ ];
1885
+ function $n(e) {
1886
+ let { style: t } = e, n = {};
1887
+ for (let [e, r] of Qn) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
1888
+ return () => {
1889
+ for (let [e] of Qn) {
1890
+ let r = n[e];
1891
+ r ? t.setProperty(e, r) : t.removeProperty(e);
1892
+ }
1893
+ };
1894
+ }
1895
+ //#endregion
1896
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/list/SelectList.js
1897
+ var er = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1898
+ let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = En(), { alignItemWithTriggerActive: c } = Bn(), l = J(o, $.hasScrollArrows), u = J(o, $.openMethod), f = J(o, $.multiple), p = {
1899
+ id: `${J(o, $.id)}-list`,
1900
+ role: "listbox",
1901
+ "aria-multiselectable": f || void 0,
1902
+ onScroll(e) {
1903
+ s.current?.(e.currentTarget);
1904
+ },
1905
+ ...c && { style: Hn },
1906
+ className: l && u !== "touch" ? xn.className : void 0
1907
+ };
1908
+ return d("div", e, {
1909
+ ref: [t, m((e) => {
1910
+ o.set("listElement", e);
1911
+ })],
1912
+ props: [p, a]
1913
+ });
1914
+ });
1915
+ process.env.NODE_ENV !== "production" && (er.displayName = "SelectList");
1916
+ //#endregion
1917
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
1918
+ var tr = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1919
+ let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: f, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = En(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = Bn(), y = J(l, c ? $.scrollUpArrowVisible : $.scrollDownArrowVisible), b = J(l, $.openMethod), x = y && b !== "touch", S = Te(), C = c ? v : _, { transitionStatus: ee, setMounted: w } = Ye(x);
1920
+ p(() => (h.current += 1, l.state.hasScrollArrows || l.set("hasScrollArrows", !0), () => {
1921
+ h.current = Math.max(0, h.current - 1), h.current === 0 && l.state.hasScrollArrows && l.set("hasScrollArrows", !1);
1922
+ }), [l, h]), Ee({
1923
+ open: x,
1924
+ ref: C,
1925
+ onComplete() {
1926
+ x || w(!1);
1927
+ }
1928
+ });
1929
+ let T = d("div", e, {
1930
+ ref: [t, C],
1931
+ state: {
1932
+ direction: a,
1933
+ visible: x,
1934
+ side: g,
1935
+ transitionStatus: ee
1936
+ },
1937
+ props: [{
1938
+ "aria-hidden": !0,
1939
+ children: c ? "▲" : "▼",
1940
+ style: { position: "absolute" },
1941
+ onMouseMove(e) {
1942
+ if (e.movementX === 0 && e.movementY === 0 || S.isStarted()) return;
1943
+ l.set("activeIndex", null);
1944
+ function t() {
1945
+ let e = l.state.listElement ?? u.current;
1946
+ if (!e) return;
1947
+ l.set("activeIndex", null), m();
1948
+ let n = Sn(e.scrollHeight, e.clientHeight), r = Cn(e.scrollTop, n), i = r === (c ? 0 : n), a = f.current;
1949
+ if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && l.set(c ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
1950
+ S.clear();
1951
+ return;
1952
+ }
1953
+ if (a.length > 0) {
1954
+ let t = C.current?.offsetHeight || 0;
1955
+ e.scrollTop = nr(a, c, r, e.clientHeight, t, n);
1956
+ }
1957
+ S.start(40, t);
1958
+ }
1959
+ S.start(40, t);
1960
+ },
1961
+ onMouseLeave() {
1962
+ S.clear();
1963
+ }
1964
+ }, s]
1965
+ });
1966
+ return x || o ? T : null;
1967
+ });
1968
+ process.env.NODE_ENV !== "production" && (tr.displayName = "SelectScrollArrow");
1969
+ function nr(e, t, n, r, i, a) {
1970
+ if (t) {
1971
+ let t = 0, r = n + i - 1;
1972
+ for (let n = 0; n < e.length; n += 1) {
1973
+ let i = e[n];
1974
+ if (i && i.offsetTop >= r) {
1975
+ t = n;
1976
+ break;
1977
+ }
1978
+ }
1979
+ let o = Math.max(0, t - 1), s = e[o];
1980
+ return o < t && s ? Cn(s.offsetTop - i, a) : 0;
1981
+ }
1982
+ let o = e.length - 1, s = n + r - i + 1;
1983
+ for (let t = 0; t < e.length; t += 1) {
1984
+ let n = e[t];
1985
+ if (n && n.offsetTop + n.offsetHeight > s) {
1986
+ o = Math.max(0, t - 1);
1987
+ break;
1988
+ }
1989
+ }
1990
+ let c = Math.min(e.length - 1, o + 1), l = e[c];
1991
+ return c > o && l ? Cn(l.offsetTop + l.offsetHeight - r + i, a) : a;
1992
+ }
1993
+ //#endregion
1994
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/scroll-down-arrow/SelectScrollDownArrow.js
1995
+ var rr = /* @__PURE__ */ Z.forwardRef(function(e, t) {
1996
+ return /* @__PURE__ */ Q(tr, {
1997
+ ...e,
1998
+ ref: t,
1999
+ direction: "down"
2000
+ });
2001
+ });
2002
+ process.env.NODE_ENV !== "production" && (rr.displayName = "SelectScrollDownArrow");
2003
+ //#endregion
2004
+ //#region node_modules/.pnpm/@base-ui+react@1.4.1_@date-_b8638dac2a3c723a96c38fd0e25c7d53/node_modules/@base-ui/react/esm/select/scroll-up-arrow/SelectScrollUpArrow.js
2005
+ var ir = /* @__PURE__ */ Z.forwardRef(function(e, t) {
2006
+ return /* @__PURE__ */ Q(tr, {
2007
+ ...e,
2008
+ ref: t,
2009
+ direction: "up"
2010
+ });
2011
+ });
2012
+ process.env.NODE_ENV !== "production" && (ir.displayName = "SelectScrollUpArrow");
2013
+ //#endregion
2014
+ //#region node_modules/.pnpm/@phosphor-icons+react@2.1.1_b81d301829b4c0fa768641d7d4577f50/node_modules/@phosphor-icons/react/dist/defs/CaretDown.es.js
2015
+ var ar = /* @__PURE__ */ new Map([
2016
+ ["bold", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))],
2017
+ ["duotone", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", {
2018
+ d: "M208,96l-80,80L48,96Z",
2019
+ opacity: "0.2"
2020
+ }), /* @__PURE__ */ Z.createElement("path", { d: "M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z" }))],
2021
+ ["fill", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z" }))],
2022
+ ["light", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z" }))],
2023
+ ["regular", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }))],
2024
+ ["thin", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))]
2025
+ ]), or = /* @__PURE__ */ new Map([
2026
+ ["bold", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z" }))],
2027
+ ["duotone", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", {
2028
+ d: "M208,160H48l80-80Z",
2029
+ opacity: "0.2"
2030
+ }), /* @__PURE__ */ Z.createElement("path", { d: "M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z" }))],
2031
+ ["fill", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z" }))],
2032
+ ["light", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z" }))],
2033
+ ["regular", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }))],
2034
+ ["thin", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z" }))]
2035
+ ]), sr = /* @__PURE__ */ new Map([
2036
+ ["bold", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M184.49,167.51a12,12,0,0,1,0,17l-48,48a12,12,0,0,1-17,0l-48-48a12,12,0,0,1,17-17L128,207l39.51-39.52A12,12,0,0,1,184.49,167.51Zm-96-79L128,49l39.51,39.52a12,12,0,0,0,17-17l-48-48a12,12,0,0,0-17,0l-48,48a12,12,0,0,0,17,17Z" }))],
2037
+ ["duotone", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", {
2038
+ d: "M80,176h96l-48,48ZM128,32,80,80h96Z",
2039
+ opacity: "0.2"
2040
+ }), /* @__PURE__ */ Z.createElement("path", { d: "M176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Zm-48,44.69L99.31,184h57.38ZM80,88h96a8,8,0,0,0,5.66-13.66l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,80,88Zm48-44.69L156.69,72H99.31Z" }))],
2041
+ ["fill", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M72.61,83.06a8,8,0,0,1,1.73-8.72l48-48a8,8,0,0,1,11.32,0l48,48A8,8,0,0,1,176,88H80A8,8,0,0,1,72.61,83.06ZM176,168H80a8,8,0,0,0-5.66,13.66l48,48a8,8,0,0,0,11.32,0l48-48A8,8,0,0,0,176,168Z" }))],
2042
+ ["light", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M180.24,171.76a6,6,0,0,1,0,8.48l-48,48a6,6,0,0,1-8.48,0l-48-48a6,6,0,0,1,8.48-8.48L128,215.51l43.76-43.75A6,6,0,0,1,180.24,171.76Zm-96-87.52L128,40.49l43.76,43.75a6,6,0,0,0,8.48-8.48l-48-48a6,6,0,0,0-8.48,0l-48,48a6,6,0,0,0,8.48,8.48Z" }))],
2043
+ ["regular", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M181.66,170.34a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32,0l-48-48a8,8,0,0,1,11.32-11.32L128,212.69l42.34-42.35A8,8,0,0,1,181.66,170.34Zm-96-84.68L128,43.31l42.34,42.35a8,8,0,0,0,11.32-11.32l-48-48a8,8,0,0,0-11.32,0l-48,48A8,8,0,0,0,85.66,85.66Z" }))],
2044
+ ["thin", /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement("path", { d: "M178.83,173.17a4,4,0,0,1,0,5.66l-48,48a4,4,0,0,1-5.66,0l-48-48a4,4,0,0,1,5.66-5.66L128,218.34l45.17-45.17A4,4,0,0,1,178.83,173.17Zm-96-90.34L128,37.66l45.17,45.17a4,4,0,1,0,5.66-5.66l-48-48a4,4,0,0,0-5.66,0l-48,48a4,4,0,0,0,5.66,5.66Z" }))]
2045
+ ]), cr = Z.forwardRef((e, t) => /* @__PURE__ */ Z.createElement(g, {
2046
+ ref: t,
2047
+ ...e,
2048
+ weights: ar
2049
+ }));
2050
+ cr.displayName = "CaretDownIcon";
2051
+ //#endregion
2052
+ //#region node_modules/.pnpm/@phosphor-icons+react@2.1.1_b81d301829b4c0fa768641d7d4577f50/node_modules/@phosphor-icons/react/dist/csr/CaretUp.es.js
2053
+ var lr = Z.forwardRef((e, t) => /* @__PURE__ */ Z.createElement(g, {
2054
+ ref: t,
2055
+ ...e,
2056
+ weights: or
2057
+ }));
2058
+ lr.displayName = "CaretUpIcon";
2059
+ //#endregion
2060
+ //#region node_modules/.pnpm/@phosphor-icons+react@2.1.1_b81d301829b4c0fa768641d7d4577f50/node_modules/@phosphor-icons/react/dist/csr/CaretUpDown.es.js
2061
+ var ur = Z.forwardRef((e, t) => /* @__PURE__ */ Z.createElement(g, {
2062
+ ref: t,
2063
+ ...e,
2064
+ weights: sr
2065
+ }));
2066
+ ur.displayName = "CaretUpDownIcon";
2067
+ //#endregion
2068
+ //#region src/components/select/select.tsx
2069
+ var dr = ({ children: e, ...t }) => /* @__PURE__ */ Q(On, {
2070
+ ...t,
2071
+ children: e
2072
+ }), fr = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q(er, {
2073
+ className: ct("relative max-h-(--available-height) scroll-py-md space-y-xs overflow-y-auto", e),
2074
+ ref: n,
2075
+ ...r,
2076
+ children: t
2077
+ }), pr = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q(In, {
2078
+ className: ct("flex text-on-surface-variant [&>svg]:size-sm", e),
2079
+ ref: n,
2080
+ ...r,
2081
+ children: t
2082
+ }), mr = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q(Rn, { children: /* @__PURE__ */ Q(Wn, {
2083
+ className: ct("z-10 outline-none select-none", e),
2084
+ ref: n,
2085
+ ...r,
2086
+ children: /* @__PURE__ */ lt(Kn, {
2087
+ className: "group min-w-(--anchor-width) origin-(--transform-origin) rounded-xl bg-surface-2 bg-clip-padding p-2xs shadow-md transition-[transform,scale,opacity] data-ending-style:scale-90 data-ending-style:opacity-0 data-starting-style:scale-90 data-starting-style:opacity-0 data-[side=none]:data-ending-style:scale-90 data-[side=none]:data-ending-style:opacity-0 data-[side=none]:data-starting-style:scale-90 data-[side=none]:data-starting-style:opacity-0",
2088
+ children: [
2089
+ /* @__PURE__ */ Q(ir, {
2090
+ className: "top-0 right-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:h-full before:w-full before:content-[''] data-[side=none]:before:-top-full",
2091
+ children: /* @__PURE__ */ Q(lr, {
2092
+ className: "size-sm",
2093
+ weight: "fill"
2094
+ })
2095
+ }),
2096
+ t,
2097
+ /* @__PURE__ */ Q(rr, {
2098
+ className: "right-0 bottom-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:h-full before:w-full before:content-[''] data-[side=none]:before:-bottom-full",
2099
+ children: /* @__PURE__ */ Q(cr, {
2100
+ className: "size-sm",
2101
+ weight: "fill"
2102
+ })
2103
+ })
2104
+ ]
2105
+ })
2106
+ }) }), hr = h("flex min-w-[calc(var(--dawn-spacing-3xl)+8rem)] items-center justify-between outline outline-transparent transition-all hover:cursor-pointer aria-invalid:bg-error-container aria-invalid:text-error-on-container aria-invalid:outline-error-border data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50", {
2107
+ variants: {
2108
+ variant: {
2109
+ primary: "bg-surface shadow-2xs hover:outline-border-strong",
2110
+ secondary: "bg-neutral-container hover:outline-border-strong",
2111
+ ghost: "bg-transparent hover:bg-neutral-container"
2112
+ },
2113
+ size: {
2114
+ small: "h-lg rounded-lg px-xs style-text-default--1 [&_[data-value]]:gap-3xs [&>svg]:size-xs",
2115
+ medium: "h-xl rounded-xl px-sm style-text-default-0 [&_[data-value]]:gap-2xs [&>svg]:size-sm",
2116
+ large: "h-2xl rounded-2xl px-md style-text-default-1 [&_[data-value]]:gap-xs [&>svg]:size-md"
2117
+ }
2118
+ },
2119
+ defaultVariants: {
2120
+ variant: "primary",
2121
+ size: "medium"
2122
+ }
2123
+ }), gr = ({ variant: e, size: t, className: n, children: r, ref: i, ...a }) => /* @__PURE__ */ Q(Nn, {
2124
+ className: ct(hr({
2125
+ variant: e,
2126
+ size: t,
2127
+ className: n
2128
+ })),
2129
+ ref: i,
2130
+ ...a,
2131
+ children: r
2132
+ }), _r = ({ className: e, children: t, ref: n, ...r }) => /* @__PURE__ */ Q(Fn, {
2133
+ "data-value": !0,
2134
+ className: ct("flex items-center justify-start data-placeholder:opacity-70", e),
2135
+ ref: n,
2136
+ ...r,
2137
+ children: t
2138
+ }), vr = /* @__PURE__ */ e({ FieldSelect: () => yr }), yr = ({ children: e, ...t }) => {
2139
+ let n = _();
2140
+ return /* @__PURE__ */ lt(dr, {
2141
+ defaultValue: n.state.value,
2142
+ value: n.state.value,
2143
+ onValueChange: (e) => n.setValue(e),
2144
+ ...t,
2145
+ children: [/* @__PURE__ */ lt(gr, { children: [/* @__PURE__ */ Q(_r, {}), /* @__PURE__ */ Q(pr, { children: /* @__PURE__ */ Q(ur, { weight: "bold" }) })] }), /* @__PURE__ */ Q(mr, { children: /* @__PURE__ */ Q(fr, { children: e }) })]
2146
+ });
2147
+ };
2148
+ //#endregion
2149
+ export { rn as A, un as C, tn as D, nn as E, Yt as F, Ht as I, Vt as L, $t as M, Qt as N, an as O, Xt as P, vt as R, fn as S, sn as T, gn as _, mr as a, cn as b, dr as c, $ as d, En as f, vn as g, yn as h, gr as i, en as j, on as k, ur as l, xn as m, vr as n, pr as o, Cn as p, _r as r, fr as s, yr as t, cr as u, mn as v, dn as w, pn as x, ln as y };