@arcadeai/design-system 5.0.1 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) hide show
  1. package/dist/CSPContext-_3HefTUC.js +11 -0
  2. package/dist/{CompositeItem-BWqRobLN.js → CompositeItem-RsjiqT-t.js} +3 -3
  3. package/dist/{CompositeList-DJUJLDbx.js → CompositeList-BUPONQmB.js} +5 -5
  4. package/dist/CompositeRoot-B_7HJZA1.js +166 -0
  5. package/dist/DialogRoot-DuiSPdsZ.js +9 -0
  6. package/dist/DialogTrigger-DGGP-2Oc.js +371 -0
  7. package/dist/{DirectionContext-B4CbbM--.js → DirectionContext-OzWG1tsQ.js} +1 -1
  8. package/dist/{FieldItemContext-4qBxodsW.js → FieldItemContext-C6kLzkCC.js} +1 -1
  9. package/dist/{FloatingPortalLite-B1JyBlt0.js → FloatingPortalLite-D5nFwFgJ.js} +2 -2
  10. package/dist/{LabelableContext-Q1Z-xUI9.js → LabelableContext-C6DIbcnY.js} +34 -18
  11. package/dist/ReactStore-C3H8e2ha.js +600 -0
  12. package/dist/{Separator-CgntgfMd.js → Separator-CJ3Gn6wf.js} +2 -2
  13. package/dist/{StickToBottom-CU0d65a_.js → StickToBottom-Bh9VDiPm.js} +3 -3
  14. package/dist/Toggle-BdxyK_Ln.js +74 -0
  15. package/dist/{ToolbarRootContext-DVNA8Vkb.js → ToolbarRootContext-CDm74ob9.js} +2 -2
  16. package/dist/accordion-BP9Lgkg8.js +314 -0
  17. package/dist/{addEventListener-B4Gs94GY.js → addEventListener-BlQH_qk1.js} +1 -1
  18. package/dist/{alert-dialog-tBMDYzJ3.js → alert-dialog-1bUE2clB.js} +4 -4
  19. package/dist/{angular-html-BDzibLIk.js → angular-html-CmQQGj3Q.js} +2 -2
  20. package/dist/{angular-html-D85fwMJh.js → angular-html-DkEUN79G.js} +2 -2
  21. package/dist/{angular-ts-D81F0-9A.js → angular-ts-4H9Tgcds.js} +2 -2
  22. package/dist/{angular-ts-C3bnauCX.js → angular-ts-wkihi9GZ.js} +2 -2
  23. package/dist/{apl-92oxg4m4.js → apl-C_-_9Ip6.js} +5 -5
  24. package/dist/assets/icons/microsoft-power-bi.js +88 -0
  25. package/dist/assets/index.css +2 -2
  26. package/dist/assets/tokens.css +1 -1
  27. package/dist/assets/variables.css +1 -1
  28. package/dist/{astro-BmZ7vV4W.js → astro-DKp4HZqy.js} +5 -5
  29. package/dist/{astro-Up1TtKOj.js → astro-nonP8tBz.js} +4 -4
  30. package/dist/{avatar-BSYWkGGc.js → avatar-DbL6b01k.js} +37 -37
  31. package/dist/{blade-CpVdu14g.js → blade-6azK5Bl7.js} +6 -6
  32. package/dist/{blade-CsxOO3tZ.js → blade-Bm1wiaIl.js} +7 -7
  33. package/dist/{button-BNOmhdpM.js → button-BdQxLUOB.js} +3 -3
  34. package/dist/{c-CoKjrVSd.js → c-BLhjukKD.js} +1 -1
  35. package/dist/{c-DtxJex1m.js → c-D23WKKVZ.js} +1 -1
  36. package/dist/{calendar-DizaWURn.js → calendar-Ctzadwv-.js} +98 -97
  37. package/dist/checkbox-DB9O_Iw9.js +284 -0
  38. package/dist/clamp-BT4ayAnN.js +6 -0
  39. package/dist/{cobol-DW9I8MrZ.js → cobol-cEewS-ES.js} +2 -2
  40. package/dist/{coffee-IcWixSuh.js → coffee-BWa7CtjQ.js} +1 -1
  41. package/dist/{coffee-B9lToztK.js → coffee-QapU4XnI.js} +1 -1
  42. package/dist/{collapsible-Dt__KKUJ.js → collapsible-DP7Fb-Lu.js} +28 -28
  43. package/dist/{command-ChimIUHM.js → command-DC-ESQ0C.js} +25 -25
  44. package/dist/components/index.js +259 -252
  45. package/dist/components/ui/atoms/accordion.js +1 -1
  46. package/dist/components/ui/atoms/alert-dialog.js +1 -1
  47. package/dist/components/ui/atoms/avatar.js +1 -1
  48. package/dist/components/ui/atoms/badge.js +2 -2
  49. package/dist/components/ui/atoms/breadcrumb.js +2 -2
  50. package/dist/components/ui/atoms/button.js +1 -1
  51. package/dist/components/ui/atoms/calendar.js +1 -1
  52. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  53. package/dist/components/ui/atoms/chart.js +7 -7
  54. package/dist/components/ui/atoms/chat-container.js +1 -1
  55. package/dist/components/ui/atoms/checkbox.d.ts +16 -2
  56. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  57. package/dist/components/ui/atoms/checkbox.js +2 -2
  58. package/dist/components/ui/atoms/clear-button.d.ts +13 -0
  59. package/dist/components/ui/atoms/clear-button.d.ts.map +1 -0
  60. package/dist/components/ui/atoms/clear-button.js +23 -0
  61. package/dist/components/ui/atoms/code-block.js +1 -1
  62. package/dist/components/ui/atoms/collapsible.js +1 -1
  63. package/dist/components/ui/atoms/command.js +1 -1
  64. package/dist/components/ui/atoms/compute-flow-paths.js +16 -16
  65. package/dist/components/ui/atoms/copy-button.js +1 -1
  66. package/dist/components/ui/atoms/dialog.js +3 -3
  67. package/dist/components/ui/atoms/dropdown-menu.js +1 -1
  68. package/dist/components/ui/atoms/form.d.ts +1 -1
  69. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  70. package/dist/components/ui/atoms/hover-card.js +1 -1
  71. package/dist/components/ui/atoms/icon-tile.d.ts +10 -0
  72. package/dist/components/ui/atoms/icon-tile.d.ts.map +1 -0
  73. package/dist/components/ui/atoms/icon-tile.js +25 -0
  74. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  75. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  76. package/dist/components/ui/atoms/icons/index.js +63 -62
  77. package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts +4 -0
  78. package/dist/components/ui/atoms/icons/microsoft-power-bi.d.ts.map +1 -0
  79. package/dist/components/ui/atoms/icons/microsoft-power-bi.js +82 -0
  80. package/dist/components/ui/atoms/index.d.ts +3 -1
  81. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  82. package/dist/components/ui/atoms/index.js +212 -209
  83. package/dist/components/ui/atoms/input-group.js +2 -2
  84. package/dist/components/ui/atoms/input.js +1 -1
  85. package/dist/components/ui/atoms/json-highlight.d.ts +2 -2
  86. package/dist/components/ui/atoms/json-highlight.d.ts.map +1 -1
  87. package/dist/components/ui/atoms/markdown.js +1 -1
  88. package/dist/components/ui/atoms/mobile-tooltip.js +2 -2
  89. package/dist/components/ui/atoms/popover.js +1 -1
  90. package/dist/components/ui/atoms/progress.js +1 -1
  91. package/dist/components/ui/atoms/radio-group.js +1 -1
  92. package/dist/components/ui/atoms/resizable.js +1 -1
  93. package/dist/components/ui/atoms/scroll-area.js +1 -1
  94. package/dist/components/ui/atoms/scroll-button.js +3 -3
  95. package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts +24 -0
  96. package/dist/components/ui/atoms/scroll-to-bottom-button.d.ts.map +1 -0
  97. package/dist/components/ui/atoms/scroll-to-bottom-button.js +31 -0
  98. package/dist/components/ui/atoms/select.js +1 -1
  99. package/dist/components/ui/atoms/separator.js +1 -1
  100. package/dist/components/ui/atoms/sheet.js +3 -3
  101. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  102. package/dist/components/ui/atoms/sidebar.js +5 -5
  103. package/dist/components/ui/atoms/slider.js +1 -1
  104. package/dist/components/ui/atoms/sparkle-burst.d.ts.map +1 -1
  105. package/dist/components/ui/atoms/switch.js +1 -1
  106. package/dist/components/ui/atoms/tabs.js +1 -1
  107. package/dist/components/ui/atoms/toggle-group.js +1 -1
  108. package/dist/components/ui/atoms/toggle.js +1 -1
  109. package/dist/components/ui/atoms/tooltip.js +1 -1
  110. package/dist/components/ui/atoms/view-tools-control.js +1 -1
  111. package/dist/components/ui/atoms/virtualized-grid.js +1 -1
  112. package/dist/components/ui/blocks/demo.js +5 -5
  113. package/dist/components/ui/index.js +259 -252
  114. package/dist/components/ui/molecules/avatar-stack.d.ts +32 -0
  115. package/dist/components/ui/molecules/avatar-stack.d.ts.map +1 -0
  116. package/dist/components/ui/molecules/avatar-stack.js +91 -0
  117. package/dist/components/ui/molecules/callout.d.ts +20 -0
  118. package/dist/components/ui/molecules/callout.d.ts.map +1 -0
  119. package/dist/components/ui/molecules/callout.js +39 -0
  120. package/dist/components/ui/molecules/chat-history-item.js +1 -1
  121. package/dist/components/ui/molecules/chip-body.d.ts +21 -0
  122. package/dist/components/ui/molecules/chip-body.d.ts.map +1 -0
  123. package/dist/components/ui/molecules/chip-body.js +21 -0
  124. package/dist/components/ui/molecules/client-secret-field.js +2 -2
  125. package/dist/components/ui/molecules/command-bar.js +1 -1
  126. package/dist/components/ui/molecules/confirm-popover.js +2 -2
  127. package/dist/components/ui/molecules/date-time-picker.js +4 -4
  128. package/dist/components/ui/molecules/filter-chip-group.d.ts +26 -0
  129. package/dist/components/ui/molecules/filter-chip-group.d.ts.map +1 -0
  130. package/dist/components/ui/molecules/{mcp-server-picker/category-filter.js → filter-chip-group.js} +8 -7
  131. package/dist/components/ui/molecules/index.d.ts +14 -6
  132. package/dist/components/ui/molecules/index.d.ts.map +1 -1
  133. package/dist/components/ui/molecules/index.js +39 -35
  134. package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.d.ts.map +1 -1
  135. package/dist/components/ui/molecules/mcp-server-picker/recommended-toolkits-chip.js +18 -15
  136. package/dist/components/ui/molecules/mcp-server-picker/recommended-tools.js +2 -2
  137. package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.d.ts.map +1 -1
  138. package/dist/components/ui/molecules/mcp-server-picker/search-scope-tabs.js +1 -1
  139. package/dist/components/ui/molecules/mcp-server-picker/section-nav-header.js +1 -1
  140. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts +1 -1
  141. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.d.ts.map +1 -1
  142. package/dist/components/ui/molecules/mcp-server-picker/server-avatar-stack.js +29 -81
  143. package/dist/components/ui/molecules/mcp-server-picker/server-card.js +1 -1
  144. package/dist/components/ui/molecules/mcp-server-picker/tool-card.js +1 -1
  145. package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts +12 -0
  146. package/dist/components/ui/molecules/mcp-server-picker/tool-recommendations.d.ts.map +1 -0
  147. package/dist/components/ui/molecules/mcp-server-picker/{tool-search-band.js → tool-recommendations.js} +6 -6
  148. package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts +6 -6
  149. package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.d.ts.map +1 -1
  150. package/dist/components/ui/molecules/mcp-server-picker/toolkit-avatar.js +21 -33
  151. package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.d.ts.map +1 -1
  152. package/dist/components/ui/molecules/mcp-server-picker/toolkit-chip.js +19 -22
  153. package/dist/components/ui/molecules/mcp-server-picker/unoptimized-match-card.js +1 -1
  154. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  155. package/dist/components/ui/molecules/message.js +3 -3
  156. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  157. package/dist/components/ui/molecules/prompt-input.js +1 -1
  158. package/dist/components/ui/molecules/removable-chip.d.ts.map +1 -0
  159. package/dist/components/ui/{atoms → molecules}/removable-chip.js +1 -1
  160. package/dist/components/ui/molecules/requirement-badges.js +1 -1
  161. package/dist/components/ui/molecules/steps-progress.js +1 -1
  162. package/dist/components/ui/molecules/tool-call-accordion.d.ts.map +1 -1
  163. package/dist/components/ui/molecules/tool-call-accordion.js +2 -2
  164. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  165. package/dist/components/ui/molecules/tool-card.js +3 -3
  166. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  167. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  168. package/dist/components/ui/molecules/undo-toast.d.ts +47 -0
  169. package/dist/components/ui/molecules/undo-toast.d.ts.map +1 -0
  170. package/dist/components/ui/molecules/undo-toast.js +3 -0
  171. package/dist/components/ui/molecules/user-nav.js +3 -3
  172. package/dist/components/ui/organisms/mcp-selection-summary-bar.d.ts.map +1 -1
  173. package/dist/components/ui/organisms/mcp-selection-summary-bar.js +27 -30
  174. package/dist/components/ui/pages/login-page.js +1 -1
  175. package/dist/composite-B-tEa-Zg.js +169 -0
  176. package/dist/{composite-BlDfbDkL.js → composite-COXvAbcT.js} +5 -5
  177. package/dist/constants-ouS7wtUt.js +5 -0
  178. package/dist/{cpp-BLc8IWxi.js → cpp-BBpqpcUG.js} +4 -4
  179. package/dist/{cpp-BEQCV3s5.js → cpp-CenmDznH.js} +3 -3
  180. package/dist/{createBaseUIEventDetails-ChcQXp54.js → createBaseUIEventDetails-C_dwdqj4.js} +3 -3
  181. package/dist/{crystal-Bpo57dB-.js → crystal-Cjt-cWZ3.js} +6 -6
  182. package/dist/{css-DSy_xl5Z.js → css-BT0UpMRG.js} +1 -1
  183. package/dist/{css-DcJEitGa.js → css-QsZubv6P.js} +1 -1
  184. package/dist/dropdown-menu-ecggVuhu.js +1391 -0
  185. package/dist/{edge-Crbn4Nhk.js → edge-nqxIbnup.js} +3 -3
  186. package/dist/{elixir-CIj8u1AY.js → elixir-IwV7soxp.js} +1 -1
  187. package/dist/{elm-CfYD1d_e.js → elm-Ogf1arfY.js} +1 -1
  188. package/dist/engine-ChH4dTze.js +6 -0
  189. package/dist/{erb-BJQo6_56.js → erb-BBpN-Ldx.js} +2 -2
  190. package/dist/{error-CAd3pM3X.js → error-C8bGkT0l.js} +1 -1
  191. package/dist/getPseudoElementBounds-BOe22aYl.js +345 -0
  192. package/dist/{git-rebase-DVA6p9-5.js → git-rebase-CqAmS_sI.js} +1 -1
  193. package/dist/{glimmer-js-DVJpm-CV.js → glimmer-js-C7DUODof.js} +4 -4
  194. package/dist/{glimmer-ts-kH8c2RJ9.js → glimmer-ts-DI4G9vW_.js} +4 -4
  195. package/dist/{glsl-Ckye8FrQ.js → glsl-CUfKtNbE.js} +2 -2
  196. package/dist/{glsl-7eSg02Gr.js → glsl-Cq85X97E.js} +2 -2
  197. package/dist/{graphql-CE7EXOgY.js → graphql-BCsR6dTa.js} +4 -4
  198. package/dist/{graphql-DEzE15R4.js → graphql-BsbTr8W_.js} +5 -5
  199. package/dist/{hack-o7fvIqt8.js → hack-bqdf8rRJ.js} +2 -2
  200. package/dist/{haml-BP5AnOwP.js → haml-BJXnS8Xp.js} +2 -2
  201. package/dist/{haml-C5GSorf3.js → haml-CWQgvV8s.js} +3 -3
  202. package/dist/{handlebars-Bhpj_d0s.js → handlebars-CKAb2CPX.js} +4 -4
  203. package/dist/{handlebars-BjC-t2fq.js → handlebars-DMloI5gH.js} +3 -3
  204. package/dist/{highlighted-body-OFNGDK62-BoSFtT5s.js → highlighted-body-OFNGDK62-BegvjYf8.js} +1 -1
  205. package/dist/{hover-card-z1GPavWa.js → hover-card-CGLPPPPP.js} +142 -153
  206. package/dist/{html-Ct25QrQu.js → html-CwG5RUst.js} +3 -3
  207. package/dist/{html-D4w9Dm28.js → html-DKmZbgBt.js} +3 -3
  208. package/dist/{html-derivative-Bj-VxhMx.js → html-derivative-B4jNkpq7.js} +1 -1
  209. package/dist/{html-derivative-DSKrIQn9.js → html-derivative-l83Yr46D.js} +1 -1
  210. package/dist/{http-BCk9QAjz.js → http-BFAjFcZG.js} +2 -2
  211. package/dist/{http-d-m0Mc7D.js → http-BhDBVFaP.js} +4 -4
  212. package/dist/{hurl-DWxVzahG.js → hurl-CjzrrhSW.js} +2 -2
  213. package/dist/{hurl-DfTnDfTu.js → hurl-DAdF3com.js} +2 -2
  214. package/dist/inertValue-BhczR0H5.js +7 -0
  215. package/dist/input-DZTqcpe-.js +91 -0
  216. package/dist/{isElementDisabled-Cibvw8mz.js → isElementDisabled-C1rd9-Ym.js} +1 -1
  217. package/dist/{java-CuIj5nvv.js → java-C_vVq3dw.js} +1 -1
  218. package/dist/{java-BKNJluE5.js → java-Ci5_G7qk.js} +1 -1
  219. package/dist/{javascript-C_3Wy_Gj.js → javascript-CV4d78q9.js} +1 -1
  220. package/dist/{javascript-Da2xmRTV.js → javascript-DIVSilR9.js} +1 -1
  221. package/dist/{jinja-DhkDj1Xi.js → jinja-Bs1LO7X2.js} +1 -1
  222. package/dist/{jinja-C8xQEEYN.js → jinja-Bwrf5aV2.js} +1 -1
  223. package/dist/{jison-CShmv6Fb.js → jison-C6eal2rW.js} +1 -1
  224. package/dist/{jison-CyKFq-6a.js → jison-Td0S7BdY.js} +1 -1
  225. package/dist/{json-Df3TJ3vS.js → json-BE9zjWXC.js} +1 -1
  226. package/dist/{jsx-CfQ2JFaq.js → jsx-Ba8CJaAV.js} +1 -1
  227. package/dist/{jsx-D0xGKDLn.js → jsx-DCFvZzWu.js} +1 -1
  228. package/dist/{julia-BMAFK3Gd.js → julia-Bm175Gof.js} +3 -3
  229. package/dist/{julia-BN-I8ZOK.js → julia-Bunkrw5e.js} +4 -4
  230. package/dist/{just-YBnaWXEe.js → just-1Pxadbli.js} +5 -5
  231. package/dist/{latex-C_OKc6Tr.js → latex-_x2UAXwa.js} +1 -1
  232. package/dist/lib/utils.d.ts.map +1 -1
  233. package/dist/{lib-BeKETz9d.js → lib-_PLIHaUp.js} +623 -633
  234. package/dist/{liquid-BK9PRBL0.js → liquid-kYbXB26r.js} +4 -4
  235. package/dist/{lua-BLio8ECy.js → lua-CaVsjDyr.js} +2 -2
  236. package/dist/main.js +265 -258
  237. package/dist/{markdown-D3ExE6yF.js → markdown-BzQfFDNF.js} +2608 -2632
  238. package/dist/{marko-Fde_uU3F.js → marko-B5ZroO9K.js} +3 -3
  239. package/dist/{marko-DYmCev7q.js → marko-D0_WatvF.js} +3 -3
  240. package/dist/{mdc-wawAspAJ.js → mdc-Bv4e6tBf.js} +2 -2
  241. package/dist/{mdc-D7QSJBKx.js → mdc-Dh_sTTi8.js} +1 -1
  242. package/dist/mermaid-GHXKKRXX-B2aW3mwU.js +3 -0
  243. package/dist/metadata/oauth-providers.d.ts +2 -0
  244. package/dist/metadata/oauth-providers.d.ts.map +1 -1
  245. package/dist/metadata/oauth-providers.js +153 -141
  246. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  247. package/dist/metadata/toolkit-icons.js +95 -93
  248. package/dist/metadata/toolkits.d.ts.map +1 -1
  249. package/dist/metadata/toolkits.js +13 -0
  250. package/dist/{nginx-WcmIS9lz.js → nginx-DKKP1Jsz.js} +1 -1
  251. package/dist/{nim-C_JBe3PW.js → nim-BeBji0Kd.js} +6 -6
  252. package/dist/owner-CyZnQOKt.js +6 -0
  253. package/dist/{perl-DxzDgnFP.js → perl-d6FT-kBo.js} +5 -5
  254. package/dist/{php-h4fQX9du.js → php-5ErYmDX1.js} +5 -5
  255. package/dist/{php-BslXz14x.js → php-DrB8vlsq.js} +6 -6
  256. package/dist/popover-CpLkQtT5.js +490 -0
  257. package/dist/popupStateMapping-XiLS0Jku.js +643 -0
  258. package/dist/{progress-TdXkokPe.js → progress-BqG0PtAD.js} +14 -14
  259. package/dist/{pug-yS-UC2lD.js → pug-DyZNXutA.js} +3 -3
  260. package/dist/{pug-CxpNRXGa.js → pug-pOLqHjih.js} +3 -3
  261. package/dist/{qml-tenACNq4.js → qml-Dox9P6il.js} +1 -1
  262. package/dist/{r-DdU4yNZO.js → r-CqHzjuOx.js} +1 -1
  263. package/dist/radio-group-BpMluqfv.js +334 -0
  264. package/dist/{razor-D5yYWriQ.js → razor-BJnzh0vV.js} +1 -1
  265. package/dist/{regexp-Dnzoo8L8.js → regexp-BHMFwNmq.js} +1 -1
  266. package/dist/{regexp-BusfBBwF.js → regexp-Cr4z7tOG.js} +1 -1
  267. package/dist/{resizable-DkYW5Uwh.js → resizable-7RrCRLzm.js} +25 -22
  268. package/dist/resolveAriaLabelledBy-ChNE6KfK.js +15 -0
  269. package/dist/{rst-C-dkSMvp.js → rst-BBCY8q7E.js} +6 -6
  270. package/dist/{ruby-7kZgYYwi.js → ruby-B3ETTR3m.js} +12 -12
  271. package/dist/{safePolygon-CscU2iWL.js → safePolygon-DmV1hDsw.js} +110 -105
  272. package/dist/{sas-DtHo0e4p.js → sas-DUv_h98D.js} +1 -1
  273. package/dist/scroll-area-D7iOy7xj.js +589 -0
  274. package/dist/{scrollEdges-VoRBF4DB.js → scrollEdges-Dck9qFyQ.js} +2 -2
  275. package/dist/{scss-bso_k44A.js → scss-CkVrpEfa.js} +2 -2
  276. package/dist/{scss-DaY16nmX.js → scss-CvRlGoAc.js} +2 -2
  277. package/dist/select-DFWNXxvZ.js +1363 -0
  278. package/dist/{serializeValue-kHY7UUsW.js → serializeValue-CRwtWeFH.js} +1 -1
  279. package/dist/{shadowDom-C-4Ejp9R.js → shadowDom-BACsbimN.js} +1 -1
  280. package/dist/shared-q5mxNamF.js +24 -0
  281. package/dist/{shellscript-BWxNrzSf.js → shellscript-CxvlkwLY.js} +1 -1
  282. package/dist/{shellsession-IETTXW5g.js → shellsession-CgzvDd-J.js} +1 -1
  283. package/dist/{shim-ieZ_MRlN.js → shim-BX-2V17R.js} +6 -7
  284. package/dist/slider-ClXWRpwI.js +828 -0
  285. package/dist/{soy-33Xu8yiH.js → soy-BsfKKN9o.js} +1 -1
  286. package/dist/{sql-B432xaB7.js → sql-BHUsfCgB.js} +1 -1
  287. package/dist/{sql-8d8R_FnS.js → sql-DG63OdWS.js} +1 -1
  288. package/dist/{stata-B5wF29_Y.js → stata--mbf8UFb.js} +1 -1
  289. package/dist/store-D7k1qIkZ.js +82 -0
  290. package/dist/{surrealql-DYHeSEsk.js → surrealql-DhODgRt6.js} +1 -1
  291. package/dist/{svelte-BiN7hc1M.js → svelte-C7x6u-8L.js} +3 -3
  292. package/dist/{svelte-wsTs0hbr.js → svelte-DycOh1Oc.js} +3 -3
  293. package/dist/{switch-CP9j-8px.js → switch-DlxZDt6o.js} +65 -65
  294. package/dist/{tabs-C7JA8G0W.js → tabs-Cj3LY-7F.js} +186 -185
  295. package/dist/{templ-DEwqY_Qt.js → templ-MSt5oh4r.js} +2 -2
  296. package/dist/{tex-Bi7DoImG.js → tex-CVgVV9NK.js} +1 -1
  297. package/dist/toggle-group-CmP4iHEJ.js +96 -0
  298. package/dist/tooltip-BUR7V5Aa.js +684 -0
  299. package/dist/{ts-tags-BK3ScQNp.js → ts-tags-Ck_QbMh4.js} +7 -7
  300. package/dist/{ts-tags-DOmIyh9G.js → ts-tags-DQKwVH4e.js} +7 -7
  301. package/dist/{tsx-D2IQdrsN.js → tsx-BfWxCQIa.js} +1 -1
  302. package/dist/{tsx-oo1y-gXD.js → tsx-DH8_xVXA.js} +1 -1
  303. package/dist/{twig-DxRYLs_L.js → twig-nd7fXiJI.js} +5 -5
  304. package/dist/{typescript-CWrXW5hv.js → typescript-Btp0Nz7Q.js} +1 -1
  305. package/dist/{typescript-C40nYMtR.js → typescript-CT-dRuB-.js} +1 -1
  306. package/dist/{ui-BaLLCKkd.js → ui-46pgiw5T.js} +2 -2
  307. package/dist/undo-toast-Cf4T6ToX.js +898 -0
  308. package/dist/{useAnchoredPopupScrollLock-C8wRjuy0.js → useAnchoredPopupScrollLock-CnoPUwXv.js} +4 -4
  309. package/dist/{useAnimationFrame-xwbX87TY.js → useAnimationFrame-jkCXMP_8.js} +3 -3
  310. package/dist/{useAriaLabelledBy-DKl6aNOD.js → useAriaLabelledBy-DJZioWd6.js} +3 -3
  311. package/dist/useBaseUiId-CXSJgVcI.js +8 -0
  312. package/dist/{useButton-AXffhTAZ.js → useButton-DjF6Owsn.js} +7 -7
  313. package/dist/{useCollapsiblePanel-B7ERXY1c.js → useCollapsiblePanel-BPbcE70S.js} +36 -32
  314. package/dist/{useCompositeItem-DA_RDTEI.js → useCompositeItem-JoGwOIGJ.js} +6 -11
  315. package/dist/{useCompositeListItem-xM6vOR9-.js → useCompositeListItem-C8B8UyMD.js} +5 -5
  316. package/dist/{useControlled-ZBScq72P.js → useControlled-Bu1mahWG.js} +2 -2
  317. package/dist/useFocus-B_SrhX9q.js +98 -0
  318. package/dist/useId-Bzr7_bed.js +21 -0
  319. package/dist/{useIsoLayoutEffect-CKOv1bV_.js → useIsoLayoutEffect-4LGv3HzC.js} +1 -1
  320. package/dist/{useLabelableId-Dgoo7-Ly.js → useLabelableId-9jrDGk5d.js} +6 -6
  321. package/dist/{useOnMount-Dirf6DNj.js → useOnMount-Chlmm7JB.js} +1 -1
  322. package/dist/useOpenChangeComplete-CVIwfcpl.js +80 -0
  323. package/dist/useOpenInteractionType-INvHftZi.js +612 -0
  324. package/dist/{usePositioner-D65mUNMo.js → usePositioner-CaLGGc-z.js} +144 -143
  325. package/dist/useRender-D_s7850Q.js +7 -0
  326. package/dist/{useRenderElement-CmuWsiNa.js → useRenderElement-BToElZ97.js} +13 -13
  327. package/dist/{useStableCallback-CqEVb76s.js → useStableCallback-CrM0Nb2q.js} +3 -3
  328. package/dist/{useTimeout-B1x6NSZb.js → useTimeout-B0afjWAz.js} +3 -3
  329. package/dist/useTransitionStatus-CCIoL5RH.js +51 -0
  330. package/dist/useTriggerFocusGuards-Dlv8KvSm.js +37 -0
  331. package/dist/{useValueAsRef-CCU3eUYq.js → useValueAsRef-CfO5zn2c.js} +3 -3
  332. package/dist/useValueChanged-26zHg3aX.js +15 -0
  333. package/dist/valueToPercent-BBx6BqbS.js +29 -0
  334. package/dist/{virtualized-grid-BQNJg029.js → virtualized-grid-DLNjqTNm.js} +16 -7
  335. package/dist/{visuallyHidden-CEAV1xeA.js → visuallyHidden-Cq5CW65k.js} +1 -1
  336. package/dist/{vue-COUaRKLt.js → vue-BMjk7Gaz.js} +5 -5
  337. package/dist/{vue-BEPn_TF_.js → vue-BoZyu9mR.js} +6 -6
  338. package/dist/{vue-html-CEiB3REn.js → vue-html-Dyr-sgcn.js} +1 -1
  339. package/dist/{vue-html-DjKFzwWo.js → vue-html-Fc3KYSrO.js} +1 -1
  340. package/dist/{vue-vine-D0Lpd94a.js → vue-vine-B-mxBKB2.js} +3 -3
  341. package/dist/{vue-vine-D6cSZo1M.js → vue-vine-BDclOuCR.js} +3 -3
  342. package/dist/{web-DF40pCMx.js → web-CqfgwsJY.js} +43 -43
  343. package/dist/{xml-DRTU1nx4.js → xml-CSo_-m7_.js} +2 -2
  344. package/dist/{xml-DL5p3-50.js → xml-tkp62giI.js} +2 -2
  345. package/dist/{xsl-3eu75y43.js → xsl-Dmc5gKQo.js} +1 -1
  346. package/dist/{yaml-6pzV2NiB.js → yaml-9hw4TgNw.js} +1 -1
  347. package/package.json +30 -30
  348. package/dist/CompositeRoot-BIh8l7ys.js +0 -179
  349. package/dist/DialogRoot-eVsH835b.js +0 -9
  350. package/dist/DialogTrigger-BuKadcdL.js +0 -379
  351. package/dist/FormContext-4NSsO4w6.js +0 -17
  352. package/dist/Toggle-CyMSF-Z7.js +0 -70
  353. package/dist/accordion-D-o5VBR2.js +0 -374
  354. package/dist/checkbox-CfF6tabe.js +0 -270
  355. package/dist/clamp-DQAQAGkj.js +0 -16
  356. package/dist/components/ui/atoms/removable-chip.d.ts.map +0 -1
  357. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts +0 -31
  358. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.d.ts.map +0 -1
  359. package/dist/components/ui/molecules/mcp-server-picker/category-filter-menu.js +0 -106
  360. package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts +0 -18
  361. package/dist/components/ui/molecules/mcp-server-picker/category-filter.d.ts.map +0 -1
  362. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts +0 -12
  363. package/dist/components/ui/molecules/mcp-server-picker/tool-search-band.d.ts.map +0 -1
  364. package/dist/composite-HOje5ugx.js +0 -276
  365. package/dist/constants-VB9bsA8p.js +0 -4
  366. package/dist/detectBrowser-FBYSu3xM.js +0 -32
  367. package/dist/dropdown-menu-dsg43mOw.js +0 -1393
  368. package/dist/event-DWcDp5kt.js +0 -24
  369. package/dist/getPseudoElementBounds-DarjR4tH.js +0 -355
  370. package/dist/inertValue-C36grUTu.js +0 -7
  371. package/dist/input-CSc-AfAa.js +0 -91
  372. package/dist/mermaid-GHXKKRXX-B8Qglwis.js +0 -3
  373. package/dist/owner-BrzQrszh.js +0 -6
  374. package/dist/popover-CXSOUeVQ.js +0 -501
  375. package/dist/popupStateMapping-PdIQcWEz.js +0 -1179
  376. package/dist/radio-group-Cc5ftdVj.js +0 -333
  377. package/dist/resolveAriaLabelledBy-DR9UHvi-.js +0 -10
  378. package/dist/scroll-area-53KPfESS.js +0 -559
  379. package/dist/select-CPTT__cT.js +0 -1363
  380. package/dist/slider-CN3uEkeD.js +0 -822
  381. package/dist/store-Bdrhndby.js +0 -81
  382. package/dist/toggle-group-CDYMBO0F.js +0 -87
  383. package/dist/tooltip-34vRSwJG.js +0 -669
  384. package/dist/useBaseUiId-DOm5ACje.js +0 -26
  385. package/dist/useFocus-DzHCrvH6.js +0 -97
  386. package/dist/useOpenChangeComplete-DjMFUwhi.js +0 -127
  387. package/dist/useOpenInteractionType-D-ymktmc.js +0 -612
  388. package/dist/useRender-B4Oazk_w.js +0 -7
  389. package/dist/useTriggerFocusGuards-D1QlFlDK.js +0 -37
  390. package/dist/useValueChanged-j5e75XB6.js +0 -15
  391. package/dist/valueToPercent-9aZaNeTG.js +0 -24
  392. /package/dist/components/ui/{atoms → molecules}/removable-chip.d.ts +0 -0
  393. /package/dist/{chunk-Dqa2HsxW.js → rolldown-runtime-Dqa2HsxW.js} +0 -0
@@ -0,0 +1,1363 @@
1
+ "use client";
2
+ import { t as e } from "./useControlled-Bu1mahWG.js";
3
+ import { t } from "./useIsoLayoutEffect-4LGv3HzC.js";
4
+ import { a as n, f as r, l as i, o as a, r as o, t as s, u as c } from "./useRenderElement-BToElZ97.js";
5
+ import { t as l } from "./useStableCallback-CrM0Nb2q.js";
6
+ import { n as u, t as d } from "./useCompositeListItem-C8B8UyMD.js";
7
+ import { t as f } from "./CompositeList-BUPONQmB.js";
8
+ import { t as p } from "./DirectionContext-OzWG1tsQ.js";
9
+ import { t as m } from "./useBaseUiId-CXSJgVcI.js";
10
+ import { C as h, f as g, g as _, r as v, t as y } from "./createBaseUIEventDetails-C_dwdqj4.js";
11
+ import { n as b } from "./useAnimationFrame-jkCXMP_8.js";
12
+ import { t as x } from "./useTransitionStatus-CCIoL5RH.js";
13
+ import { a as S, t as C } from "./useOpenChangeComplete-CVIwfcpl.js";
14
+ import { l as w } from "./floating-ui.utils.dom-5U5b4xPf.js";
15
+ import { t as T } from "./useButton-DjF6Owsn.js";
16
+ import { t as E } from "./addEventListener-BlQH_qk1.js";
17
+ import { t as ee } from "./useValueAsRef-CfO5zn2c.js";
18
+ import { t as te } from "./owner-CyZnQOKt.js";
19
+ import { cn as D } from "./lib/utils.js";
20
+ import { S as O, a as ne, i as k, j as A, r as j, s as M } from "./popupStateMapping-XiLS0Jku.js";
21
+ import { A as re, w as N } from "./composite-B-tEa-Zg.js";
22
+ import { t as P } from "./engine-ChH4dTze.js";
23
+ import { n as F, o as I, p as L, r as R, s as z } from "./ReactStore-C3H8e2ha.js";
24
+ import { n as ie } from "./useTimeout-B0afjWAz.js";
25
+ import { a as ae, i as oe, r as se, t as ce } from "./useOpenInteractionType-INvHftZi.js";
26
+ import { n as B } from "./shadowDom-BACsbimN.js";
27
+ import { r as V } from "./shim-BX-2V17R.js";
28
+ import { n as H, t as U } from "./visuallyHidden-Cq5CW65k.js";
29
+ import { a as le, n as ue, o as de, r as W, t as fe } from "./usePositioner-CaLGGc-z.js";
30
+ import { n as pe, r as me, t as G } from "./getPseudoElementBounds-BOe22aYl.js";
31
+ import { o as K } from "./composite-COXvAbcT.js";
32
+ import { t as he } from "./inertValue-BhczR0H5.js";
33
+ import { t as ge } from "./useValueChanged-26zHg3aX.js";
34
+ import { t as q } from "./useAnchoredPopupScrollLock-CnoPUwXv.js";
35
+ import { t as _e } from "./ToolbarRootContext-CDm74ob9.js";
36
+ import { a as J, i as ve, n as ye, r as be, t as xe } from "./LabelableContext-C6DIbcnY.js";
37
+ import { t as Se } from "./Separator-CJ3Gn6wf.js";
38
+ import { t as Ce } from "./isElementDisabled-C1rd9-Ym.js";
39
+ import { t as we } from "./useLabelableId-9jrDGk5d.js";
40
+ import { t as Te } from "./serializeValue-CRwtWeFH.js";
41
+ import { n as Ee, r as De, t as Oe } from "./scrollEdges-Dck9qFyQ.js";
42
+ import { t as ke } from "./CSPContext-_3HefTUC.js";
43
+ import { t as Ae } from "./clamp-BT4ayAnN.js";
44
+ import { n as je, r as Me } from "./resolveAriaLabelledBy-ChNE6KfK.js";
45
+ import * as Y from "react";
46
+ import { jsx as X, jsxs as Ne } from "react/jsx-runtime";
47
+ import { CheckIcon as Pe, ChevronDownIcon as Fe, ChevronUpIcon as Ie } from "lucide-react";
48
+ //#region ../../node_modules/.bun/@base-ui+utils@0.3.1+fce4ea6354698f9c/node_modules/@base-ui/utils/usePreviousValue.mjs
49
+ function Le(e) {
50
+ let [t, n] = Y.useState({
51
+ current: e,
52
+ previous: null
53
+ });
54
+ return e !== t.current && n({
55
+ current: e,
56
+ previous: t.current
57
+ }), t.previous;
58
+ }
59
+ //#endregion
60
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/root/SelectRootContext.mjs
61
+ var Re = /*#__PURE__*/ Y.createContext(null);
62
+ process.env.NODE_ENV !== "production" && (Re.displayName = "SelectRootContext");
63
+ var ze = /*#__PURE__*/ Y.createContext(null);
64
+ process.env.NODE_ENV !== "production" && (ze.displayName = "SelectFloatingContext");
65
+ function Z() {
66
+ let e = Y.useContext(Re);
67
+ if (e === null) throw Error(process.env.NODE_ENV === "production" ? c(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
68
+ return e;
69
+ }
70
+ function Be() {
71
+ let e = Y.useContext(ze);
72
+ if (e === null) throw Error(process.env.NODE_ENV === "production" ? c(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
73
+ return e;
74
+ }
75
+ //#endregion
76
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/itemEquality.mjs
77
+ var Ve = (e, t) => Object.is(e, t);
78
+ function He(e, t, n) {
79
+ return e == null || t == null ? Object.is(e, t) : n(e, t);
80
+ }
81
+ function Ue(e, t, n) {
82
+ return !e || e.length === 0 ? !1 : e.some((e) => e === void 0 ? !1 : He(t, e, n));
83
+ }
84
+ function We(e, t, n) {
85
+ return !e || e.length === 0 ? -1 : e.findIndex((e) => e === void 0 ? !1 : He(e, t, n));
86
+ }
87
+ function Ge(e, t, n) {
88
+ return e.filter((e) => !He(t, e, n));
89
+ }
90
+ //#endregion
91
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/internals/resolveValueLabel.mjs
92
+ function Ke(e) {
93
+ return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
94
+ }
95
+ function qe(e) {
96
+ if (!Array.isArray(e)) return e != null && "null" in e;
97
+ let t = e;
98
+ if (Ke(t)) {
99
+ for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
100
+ return !1;
101
+ }
102
+ for (let e of t) if (e && e.value == null && e.label != null) return !0;
103
+ return !1;
104
+ }
105
+ function Je(e, t) {
106
+ if (t && e != null) return t(e) ?? "";
107
+ if (e && typeof e == "object") {
108
+ if ("label" in e && e.label != null) return String(e.label);
109
+ if ("value" in e) return String(e.value);
110
+ }
111
+ return Te(e);
112
+ }
113
+ function Ye(e, t) {
114
+ return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? Te(e.value) : Te(e);
115
+ }
116
+ function Xe(e, t, n) {
117
+ function r() {
118
+ return Je(e, n);
119
+ }
120
+ if (n && e != null) return n(e);
121
+ if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
122
+ if (t && !Array.isArray(t)) return t[e] ?? r();
123
+ if (Array.isArray(t)) {
124
+ let n = t, i = Ke(n) ? n.flatMap((e) => e.items) : n;
125
+ if (typeof e != "object" || !e) {
126
+ let t = i.find((t) => t.value === e);
127
+ return t && t.label != null ? t.label : r();
128
+ }
129
+ if ("value" in e) {
130
+ let t = i.find((t) => t && t.value === e.value);
131
+ if (t && t.label != null) return t.label;
132
+ }
133
+ }
134
+ return r();
135
+ }
136
+ function Ze(e, t, n) {
137
+ return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ X(Y.Fragment, { children: Xe(r, t, n) }, i)), e), []);
138
+ }
139
+ //#endregion
140
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/store.mjs
141
+ var Q = {
142
+ id: I((e) => e.id),
143
+ labelId: I((e) => e.labelId),
144
+ modal: I((e) => e.modal),
145
+ multiple: I((e) => e.multiple),
146
+ items: I((e) => e.items),
147
+ itemToStringLabel: I((e) => e.itemToStringLabel),
148
+ itemToStringValue: I((e) => e.itemToStringValue),
149
+ isItemEqualToValue: I((e) => e.isItemEqualToValue),
150
+ value: I((e) => e.value),
151
+ hasSelectedValue: I((e) => {
152
+ let { value: t, multiple: n, itemToStringValue: r } = e;
153
+ return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : Ye(t, r) !== "";
154
+ }),
155
+ hasNullItemLabel: I((e, t) => t ? qe(e.items) : !1),
156
+ open: I((e) => e.open),
157
+ mounted: I((e) => e.mounted),
158
+ forceMount: I((e) => e.forceMount),
159
+ transitionStatus: I((e) => e.transitionStatus),
160
+ openMethod: I((e) => e.openMethod),
161
+ activeIndex: I((e) => e.activeIndex),
162
+ selectedIndex: I((e) => e.selectedIndex),
163
+ isActive: I((e, t) => e.activeIndex === t),
164
+ isSelected: I((e, t) => {
165
+ let n = e.isItemEqualToValue, r = e.value;
166
+ return e.multiple ? Array.isArray(r) && r.some((e) => He(t, e, n)) : He(t, r, n);
167
+ }),
168
+ isSelectedByFocus: I((e, t) => e.selectedIndex === t),
169
+ popupProps: I((e) => e.popupProps),
170
+ triggerProps: I((e) => e.triggerProps),
171
+ triggerElement: I((e) => e.triggerElement),
172
+ positionerElement: I((e) => e.positionerElement),
173
+ listElement: I((e) => e.listElement),
174
+ popupSide: I((e) => e.popupSide),
175
+ scrollUpArrowVisible: I((e) => e.scrollUpArrowVisible),
176
+ scrollDownArrowVisible: I((e) => e.scrollDownArrowVisible),
177
+ hasScrollArrows: I((e) => e.hasScrollArrows)
178
+ };
179
+ //#endregion
180
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/root/SelectRoot.mjs
181
+ function $(s) {
182
+ let { id: c, value: u, defaultValue: d = null, onValueChange: f, open: p, defaultOpen: m = !1, onOpenChange: h, name: g, form: v, autoComplete: b, disabled: S = !1, readOnly: w = !1, required: T = !1, modal: E = !0, actionsRef: te, inputRef: D, onOpenChangeComplete: ne, items: k, multiple: j = !1, itemToStringLabel: re, itemToStringValue: N, isItemEqualToValue: P = Ve, highlightItemOnHover: I = !0, children: L } = s, { clearErrors: z } = ye(), { setDirty: ie, setTouched: ae, setFocused: se, validityData: B, setFilled: V, name: ue, disabled: de, validation: W, validationMode: fe } = ve(), G = we({ id: c }), K = de || S, he = ue ?? g, [q, _e] = e({
183
+ controlled: u,
184
+ default: j ? d ?? n : d,
185
+ name: "Select",
186
+ state: "value"
187
+ }), [J, xe] = e({
188
+ controlled: p,
189
+ default: m,
190
+ name: "Select",
191
+ state: "open"
192
+ }), Se = Y.useRef([]), Te = Y.useRef([]), De = Y.useRef(null), ke = Y.useRef(null), Ae = Y.useRef(0), je = Y.useRef(null), Pe = Y.useRef([]), Fe = Y.useRef(!1), Ie = Y.useRef(null), Z = Y.useRef(null), Be = Y.useRef({
193
+ allowSelectedMouseUp: !1,
194
+ allowUnselectedMouseUp: !1,
195
+ dragY: 0
196
+ }), Ue = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } = x(J), { openMethod: Xe, triggerProps: Ze } = ce(J), $ = r(() => new F({
197
+ id: G,
198
+ labelId: void 0,
199
+ modal: E,
200
+ multiple: j,
201
+ itemToStringLabel: re,
202
+ itemToStringValue: N,
203
+ isItemEqualToValue: P,
204
+ value: q,
205
+ open: J,
206
+ mounted: Ge,
207
+ transitionStatus: qe,
208
+ items: k,
209
+ forceMount: !1,
210
+ openMethod: null,
211
+ activeIndex: null,
212
+ selectedIndex: null,
213
+ popupProps: {},
214
+ triggerProps: {},
215
+ triggerElement: null,
216
+ positionerElement: null,
217
+ listElement: null,
218
+ popupSide: null,
219
+ scrollUpArrowVisible: !1,
220
+ scrollDownArrowVisible: !1,
221
+ hasScrollArrows: !1
222
+ })).current, Qe = R($, Q.activeIndex), $e = R($, Q.selectedIndex), et = R($, Q.triggerElement), tt = R($, Q.positionerElement), nt = Le(Xe), rt = Xe ?? nt ?? null, it = Y.useMemo(() => j ? "" : Ye(q, N), [
223
+ j,
224
+ q,
225
+ N
226
+ ]), at = Y.useMemo(() => j && Array.isArray(q) ? q.map((e) => Ye(e, N)) : Ye(q, N), [
227
+ j,
228
+ q,
229
+ N
230
+ ]);
231
+ be(ee($.state.triggerElement), G, q, l(() => at), !K, g);
232
+ let ot = Y.useRef(q), st = j ? Array.isArray(q) && q.length > 0 : q != null && Ye(q, N) !== "";
233
+ t(() => {
234
+ q !== ot.current && $.set("forceMount", !0);
235
+ }, [$, q]), t(() => {
236
+ V(st);
237
+ }, [st, V]), t(function() {
238
+ let e = Pe.current, t;
239
+ if (j) {
240
+ let n = Array.isArray(q) ? q : [];
241
+ if (n.length === 0) t = null;
242
+ else {
243
+ let r = n[n.length - 1], i = We(e, r, P);
244
+ t = i === -1 ? null : i;
245
+ }
246
+ } else {
247
+ let n = We(e, q, P);
248
+ t = n === -1 ? null : n;
249
+ }
250
+ t === null && (Z.current = null), !J && $.set("selectedIndex", t);
251
+ }, [
252
+ st,
253
+ j,
254
+ J,
255
+ q,
256
+ Pe,
257
+ P,
258
+ $,
259
+ Z
260
+ ]);
261
+ function ct(e) {
262
+ let t = B.initialValue;
263
+ return Array.isArray(e) && Array.isArray(t) ? !Me(e, t, (e, t) => He(e, t, P)) : e !== t;
264
+ }
265
+ ge(q, () => {
266
+ z(he), ie(ct(q)), W.change(q);
267
+ });
268
+ let lt = l((e, t) => {
269
+ h?.(e, t), !t.isCanceled && (xe(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (ae(!0), se(!1), fe === "onBlur" && W.commit(q)));
270
+ }), ut = l(() => {
271
+ Ke(!1), $.update({
272
+ activeIndex: null,
273
+ openMethod: null
274
+ }), ne?.(!1);
275
+ });
276
+ C({
277
+ enabled: !te,
278
+ open: J,
279
+ ref: De,
280
+ onComplete() {
281
+ J || ut();
282
+ }
283
+ }), Y.useImperativeHandle(te, () => ({ unmount: ut }), [ut]);
284
+ let dt = l((e, t) => {
285
+ f?.(e, t), !t.isCanceled && _e(e);
286
+ }), ft = l(() => {
287
+ let e = $.state.listElement || De.current;
288
+ if (!e) return;
289
+ let t = Oe(e.scrollHeight, e.clientHeight), n = Ee(e.scrollTop, t), r = n > 0, i = n < t;
290
+ $.state.scrollUpArrowVisible !== r && $.set("scrollUpArrowVisible", r), $.state.scrollDownArrowVisible !== i && $.set("scrollDownArrowVisible", i);
291
+ }), pt = le({
292
+ open: J,
293
+ onOpenChange: lt,
294
+ elements: {
295
+ reference: et,
296
+ floating: tt
297
+ }
298
+ }), mt = oe(pt, {
299
+ enabled: !w && !K,
300
+ event: "mousedown"
301
+ }), ht = O(pt), gt = me(pt, {
302
+ enabled: !w && !K,
303
+ listRef: Se,
304
+ activeIndex: Qe,
305
+ selectedIndex: $e,
306
+ disabledIndices: n,
307
+ onNavigate(e) {
308
+ e === null && !J || $.set("activeIndex", e);
309
+ },
310
+ focusItemOnHover: I
311
+ }), _t = pe(pt, {
312
+ enabled: !w && !K && (J || !j),
313
+ listRef: Te,
314
+ activeIndex: Qe,
315
+ selectedIndex: $e,
316
+ disabledIndices: (e) => Ce(Se.current[e]),
317
+ onMatch(e) {
318
+ J ? $.set("activeIndex", e) : dt(Pe.current[e], y("none"));
319
+ },
320
+ onTyping(e) {
321
+ Fe.current = e;
322
+ }
323
+ }), vt = Y.useMemo(() => {
324
+ let e = o(_t.reference, gt.reference, ht.reference, mt.reference, Ze);
325
+ return G && (e.id = G), e;
326
+ }, [
327
+ mt.reference,
328
+ _t.reference,
329
+ gt.reference,
330
+ ht.reference,
331
+ Ze,
332
+ G
333
+ ]), yt = Y.useMemo(() => o(M, _t.floating, gt.floating, ht.floating), [
334
+ _t.floating,
335
+ gt.floating,
336
+ ht.floating
337
+ ]), bt = gt.item ?? a;
338
+ A(() => {
339
+ $.update({
340
+ popupProps: yt,
341
+ triggerProps: vt
342
+ });
343
+ }), t(() => {
344
+ $.update({
345
+ id: G,
346
+ modal: E,
347
+ multiple: j,
348
+ value: q,
349
+ open: J,
350
+ mounted: Ge,
351
+ transitionStatus: qe,
352
+ popupProps: yt,
353
+ triggerProps: vt,
354
+ items: k,
355
+ itemToStringLabel: re,
356
+ itemToStringValue: N,
357
+ isItemEqualToValue: P,
358
+ openMethod: rt
359
+ });
360
+ }, [
361
+ $,
362
+ G,
363
+ E,
364
+ j,
365
+ q,
366
+ J,
367
+ Ge,
368
+ qe,
369
+ yt,
370
+ vt,
371
+ k,
372
+ re,
373
+ N,
374
+ P,
375
+ rt
376
+ ]);
377
+ let xt = Y.useMemo(() => ({
378
+ store: $,
379
+ name: he,
380
+ required: T,
381
+ disabled: K,
382
+ readOnly: w,
383
+ multiple: j,
384
+ highlightItemOnHover: I,
385
+ setValue: dt,
386
+ setOpen: lt,
387
+ listRef: Se,
388
+ popupRef: De,
389
+ scrollHandlerRef: ke,
390
+ handleScrollArrowVisibility: ft,
391
+ scrollArrowsMountedCountRef: Ae,
392
+ itemProps: bt,
393
+ valueRef: je,
394
+ valuesRef: Pe,
395
+ labelsRef: Te,
396
+ typingRef: Fe,
397
+ selectionRef: Be,
398
+ firstItemTextRef: Ie,
399
+ selectedItemTextRef: Z,
400
+ validation: W,
401
+ onOpenChangeComplete: ne,
402
+ alignItemWithTriggerActiveRef: Ue,
403
+ initialValueRef: ot
404
+ }), [
405
+ $,
406
+ he,
407
+ T,
408
+ K,
409
+ w,
410
+ j,
411
+ I,
412
+ dt,
413
+ lt,
414
+ bt,
415
+ W,
416
+ ne,
417
+ ft
418
+ ]), St = i(D, W.inputRef), Ct = j && Array.isArray(q) && q.length > 0, wt = j ? void 0 : he, Tt = Y.useMemo(() => !j || !Array.isArray(q) || !he ? null : q.map((e) => {
419
+ let t = Ye(e, N);
420
+ return /*#__PURE__*/ X("input", {
421
+ type: "hidden",
422
+ form: v,
423
+ name: he,
424
+ value: t,
425
+ disabled: K
426
+ }, t);
427
+ }), [
428
+ j,
429
+ q,
430
+ v,
431
+ he,
432
+ N,
433
+ K
434
+ ]);
435
+ return /*#__PURE__*/ X(Re.Provider, {
436
+ value: xt,
437
+ children: /*#__PURE__*/ Ne(ze.Provider, {
438
+ value: pt,
439
+ children: [
440
+ L,
441
+ /*#__PURE__*/ X("input", {
442
+ ...W.getValidationProps(K, {
443
+ onFocus() {
444
+ $.state.triggerElement?.focus({ focusVisible: !0 });
445
+ },
446
+ onChange(e) {
447
+ if (e.nativeEvent.defaultPrevented || K || w) return;
448
+ let t = e.currentTarget.value, n = y(_, e.nativeEvent);
449
+ function r() {
450
+ if (j) return;
451
+ let e = t.toLowerCase(), r = Pe.current.findIndex((t) => Ye(t, N).toLowerCase() === e || Je(t, re).toLowerCase() === e);
452
+ r === -1 && (r = Pe.current.findIndex((t, n) => {
453
+ let r = Te.current[n];
454
+ return r != null && r.toLowerCase() === e;
455
+ }));
456
+ let i = r === -1 ? void 0 : Pe.current[r];
457
+ i != null && dt(i, n);
458
+ }
459
+ $.set("forceMount", !0), queueMicrotask(r);
460
+ }
461
+ }),
462
+ id: G && wt == null ? `${G}-hidden-input` : void 0,
463
+ form: v,
464
+ name: wt,
465
+ autoComplete: b,
466
+ value: it,
467
+ disabled: K,
468
+ required: T && !Ct,
469
+ readOnly: w,
470
+ ref: St,
471
+ style: he ? H : U,
472
+ tabIndex: -1,
473
+ "aria-hidden": !0,
474
+ suppressHydrationWarning: !0
475
+ }),
476
+ Tt
477
+ ]
478
+ })
479
+ });
480
+ }
481
+ //#endregion
482
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
483
+ var Qe = 2, $e = 400, et = {
484
+ ...k,
485
+ ...J,
486
+ popupSide: (e) => e ? { "data-popup-side": e } : null,
487
+ value: () => null
488
+ }, tt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
489
+ let { render: n, className: r, id: i, disabled: a = !1, nativeButton: c = !0, style: u, ...d } = e, { setTouched: f, setFocused: p, validationMode: m, state: h, disabled: g } = ve(), { labelId: b } = xe(), { store: x, setOpen: S, selectionRef: C, validation: w, readOnly: E, required: D, alignItemWithTriggerActiveRef: O, disabled: ne } = Z(), k = g || ne || a, A = R(x, Q.open), j = R(x, Q.mounted), M = R(x, Q.value), re = R(x, Q.triggerProps), N = R(x, Q.positionerElement), P = R(x, Q.listElement), F = R(x, Q.popupSide), I = R(x, Q.id), L = R(x, Q.labelId), z = R(x, Q.hasSelectedValue), ae = j && N ? F : null, oe = i ?? I, se = je(b, L);
490
+ we({ id: oe });
491
+ let ce = ee(N), H = Y.useRef(null), { getButtonProps: U, buttonRef: le } = T({
492
+ disabled: k,
493
+ native: c
494
+ }), ue = l((e) => {
495
+ x.set("triggerElement", e);
496
+ }), de = ie(), W = ie(), fe = ie();
497
+ Y.useEffect(() => {
498
+ if (A) return fe.start($e, () => {
499
+ C.current.allowUnselectedMouseUp = !0, C.current.allowSelectedMouseUp = !0;
500
+ }), () => {
501
+ fe.clear();
502
+ };
503
+ C.current = {
504
+ allowSelectedMouseUp: !1,
505
+ allowUnselectedMouseUp: !1,
506
+ dragY: 0
507
+ }, W.clear();
508
+ }, [
509
+ A,
510
+ C,
511
+ W,
512
+ fe
513
+ ]);
514
+ let pe = o(re, {
515
+ id: oe,
516
+ role: "combobox",
517
+ "aria-expanded": A ? "true" : "false",
518
+ "aria-haspopup": "listbox",
519
+ "aria-controls": A ? P?.id ?? V(N)?.id : void 0,
520
+ "aria-labelledby": se,
521
+ "aria-readonly": E || void 0,
522
+ "aria-required": D || void 0,
523
+ tabIndex: k ? -1 : 0,
524
+ onFocus(e) {
525
+ p(!0), A && O.current && S(!1, y(_, e.nativeEvent)), de.start(0, () => {
526
+ x.set("forceMount", !0);
527
+ });
528
+ },
529
+ onBlur(e) {
530
+ B(N, e.relatedTarget) || (f(!0), p(!1), m === "onBlur" && w.commit(M));
531
+ },
532
+ onMouseDown(e) {
533
+ if (A) return;
534
+ let t = te(e.currentTarget);
535
+ function n(e) {
536
+ if (!H.current) return;
537
+ let t = e.target;
538
+ if (B(H.current, t) || B(ce.current, t)) return;
539
+ let n = G(H.current);
540
+ e.clientX >= n.left - Qe && e.clientX <= n.right + Qe && e.clientY >= n.top - Qe && e.clientY <= n.bottom + Qe || S(!1, y(v, e));
541
+ }
542
+ W.start(0, () => {
543
+ t.addEventListener("mouseup", n, { once: !0 });
544
+ });
545
+ }
546
+ }, d, U), me = w.getValidationProps(k, pe);
547
+ me.role = "combobox";
548
+ let K = {
549
+ ...h,
550
+ open: A,
551
+ disabled: k,
552
+ value: M,
553
+ readOnly: E,
554
+ popupSide: ae,
555
+ placeholder: !z
556
+ };
557
+ return s("button", e, {
558
+ ref: [
559
+ t,
560
+ H,
561
+ le,
562
+ ue
563
+ ],
564
+ state: K,
565
+ stateAttributesMapping: et,
566
+ props: me
567
+ });
568
+ });
569
+ process.env.NODE_ENV !== "production" && (tt.displayName = "SelectTrigger");
570
+ //#endregion
571
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/value/SelectValue.mjs
572
+ var nt = { value: () => null }, rt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
573
+ let { className: n, render: r, children: i, placeholder: a, style: o, ...c } = e, { store: l, valueRef: u } = Z(), d = R(l, Q.value), f = R(l, Q.items), p = R(l, Q.itemToStringLabel), m = R(l, Q.hasSelectedValue), h = !m && a != null && i == null, g = R(l, Q.hasNullItemLabel, h), _ = {
574
+ value: d,
575
+ placeholder: !m
576
+ }, v = null;
577
+ return v = typeof i == "function" ? i(d) : i ?? (!m && a != null && !g ? a : Array.isArray(d) ? Ze(d, f, p) : Xe(d, f, p)), s("span", e, {
578
+ state: _,
579
+ ref: [t, u],
580
+ props: [{ children: v }, c],
581
+ stateAttributesMapping: nt
582
+ });
583
+ });
584
+ process.env.NODE_ENV !== "production" && (rt.displayName = "SelectValue");
585
+ //#endregion
586
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/icon/SelectIcon.mjs
587
+ var it = /*#__PURE__*/ Y.forwardRef(function(e, t) {
588
+ let { render: n, className: r, style: i, ...a } = e, { store: o } = Z();
589
+ return s("span", e, {
590
+ state: { open: R(o, Q.open) },
591
+ ref: t,
592
+ props: [{
593
+ "aria-hidden": !0,
594
+ children: "▼"
595
+ }, a],
596
+ stateAttributesMapping: ne
597
+ });
598
+ });
599
+ process.env.NODE_ENV !== "production" && (it.displayName = "SelectIcon");
600
+ //#endregion
601
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/portal/SelectPortalContext.mjs
602
+ var at = /*#__PURE__*/ Y.createContext(void 0);
603
+ process.env.NODE_ENV !== "production" && (at.displayName = "SelectPortalContext");
604
+ //#endregion
605
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/portal/SelectPortal.mjs
606
+ var ot = /*#__PURE__*/ Y.forwardRef(function(e, t) {
607
+ let { store: n } = Z(), r = R(n, Q.mounted), i = R(n, Q.forceMount);
608
+ return r || i ? /*#__PURE__*/ X(at.Provider, {
609
+ value: !0,
610
+ children: /*#__PURE__*/ X(z, {
611
+ ref: t,
612
+ ...e
613
+ })
614
+ }) : null;
615
+ });
616
+ process.env.NODE_ENV !== "production" && (ot.displayName = "SelectPortal");
617
+ //#endregion
618
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs
619
+ var st = /*#__PURE__*/ Y.createContext(void 0);
620
+ process.env.NODE_ENV !== "production" && (st.displayName = "SelectPositionerContext");
621
+ function ct() {
622
+ let e = Y.useContext(st);
623
+ if (!e) throw Error(process.env.NODE_ENV === "production" ? c(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
624
+ return e;
625
+ }
626
+ //#endregion
627
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/popup/utils.mjs
628
+ function lt(e, t) {
629
+ e && Object.assign(e.style, t);
630
+ }
631
+ var ut = {
632
+ position: "relative",
633
+ maxHeight: "100%",
634
+ overflowX: "hidden",
635
+ overflowY: "auto"
636
+ }, dt = { position: "fixed" }, ft = /*#__PURE__*/ Y.forwardRef(function(e, n) {
637
+ let { anchor: r, positionMethod: i = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: u = 0, alignOffset: d = 0, collisionBoundary: p = "clipping-ancestors", collisionPadding: m, arrowPadding: h = 5, sticky: g = !1, disableAnchorTracking: v, alignItemWithTrigger: b = !0, collisionAvoidance: x = L, style: S, ...C } = e, { store: w, listRef: T, labelsRef: E, alignItemWithTriggerActiveRef: ee, selectedItemTextRef: te, valuesRef: D, initialValueRef: O, popupRef: ne, setValue: k } = Z(), A = Be(), j = R(w, Q.open), M = R(w, Q.mounted), re = R(w, Q.modal), N = R(w, Q.value), P = R(w, Q.openMethod), F = R(w, Q.positionerElement), I = R(w, Q.triggerElement), z = R(w, Q.isItemEqualToValue), ie = R(w, Q.transitionStatus), ae = Y.useRef(null), oe = Y.useRef(null), [ce, B] = Y.useState(b), V = M && ce && P !== "touch";
638
+ !M && ce !== b && B(b), t(() => {
639
+ M || (Q.scrollUpArrowVisible(w.state) && w.set("scrollUpArrowVisible", !1), Q.scrollDownArrowVisible(w.state) && w.set("scrollDownArrowVisible", !1));
640
+ }, [w, M]), Y.useImperativeHandle(ee, () => V), q((V || re) && j, P === "touch", F, I);
641
+ let H = W({
642
+ anchor: r,
643
+ floatingRootContext: A,
644
+ positionMethod: i,
645
+ mounted: M,
646
+ side: s,
647
+ sideOffset: u,
648
+ align: c,
649
+ alignOffset: d,
650
+ arrowPadding: h,
651
+ collisionBoundary: p,
652
+ collisionPadding: m,
653
+ sticky: g,
654
+ disableAnchorTracking: v ?? V,
655
+ collisionAvoidance: x,
656
+ keepMounted: !0
657
+ }), U = V ? "none" : H.side, le = V ? dt : H.positionerStyles, ue = {
658
+ open: j,
659
+ side: U,
660
+ align: H.align,
661
+ anchorHidden: H.anchorHidden
662
+ };
663
+ t(() => {
664
+ w.set("popupSide", H.side);
665
+ }, [w, H.side]);
666
+ let de = fe(e, ue, {
667
+ styles: le,
668
+ transitionStatus: ie,
669
+ props: C,
670
+ refs: [n, l((e) => {
671
+ w.set("positionerElement", e);
672
+ })],
673
+ hidden: !M,
674
+ inert: !j
675
+ }), pe = Y.useRef(0), me = l((e) => {
676
+ if (e.size === 0 && pe.current === 0 || D.current.length === 0) return;
677
+ let t = pe.current;
678
+ if (pe.current = e.size, e.size === t) return;
679
+ let n = y(_);
680
+ if (t !== 0 && !w.state.multiple && N !== null && We(D.current, N, z) === -1) {
681
+ let e = O.current, t = e != null && We(D.current, e, z) !== -1 ? e : null;
682
+ k(t, n), t === null && (w.set("selectedIndex", null), te.current = null);
683
+ }
684
+ if (t !== 0 && w.state.multiple && Array.isArray(N)) {
685
+ let e = (e) => We(D.current, e, z) !== -1, t = N.filter((t) => e(t));
686
+ (t.length !== N.length || t.some((e) => !Ue(N, e, z))) && (k(t, n), t.length === 0 && (w.set("selectedIndex", null), te.current = null));
687
+ }
688
+ if (j && V) {
689
+ w.update({
690
+ scrollUpArrowVisible: !1,
691
+ scrollDownArrowVisible: !1
692
+ });
693
+ let e = { height: "" };
694
+ lt(F, e), lt(ne.current, e);
695
+ }
696
+ }), G = Y.useMemo(() => ({
697
+ ...H,
698
+ side: U,
699
+ alignItemWithTriggerActive: V,
700
+ setControlledAlignItemWithTrigger: B,
701
+ scrollUpArrowRef: ae,
702
+ scrollDownArrowRef: oe
703
+ }), [
704
+ H,
705
+ U,
706
+ V,
707
+ B
708
+ ]);
709
+ return /*#__PURE__*/ X(f, {
710
+ elementsRef: T,
711
+ labelsRef: E,
712
+ onMapChange: me,
713
+ children: /*#__PURE__*/ Ne(st.Provider, {
714
+ value: G,
715
+ children: [M && re && /*#__PURE__*/ X(se, {
716
+ inert: he(!j),
717
+ cutout: I
718
+ }), de]
719
+ })
720
+ });
721
+ });
722
+ process.env.NODE_ENV !== "production" && (ft.displayName = "SelectPositioner");
723
+ //#endregion
724
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/popup/SelectPopup.mjs
725
+ var pt = {
726
+ ...j,
727
+ ...S
728
+ }, mt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
729
+ let { render: r, className: i, style: a, finalFocus: o, ...c } = e, { store: u, popupRef: d, onOpenChangeComplete: f, setOpen: m, valueRef: g, firstItemTextRef: _, selectedItemTextRef: v, multiple: x, handleScrollArrowVisibility: S, scrollHandlerRef: T, listRef: ee, highlightItemOnHover: D } = Z(), { side: O, align: ne, alignItemWithTriggerActive: k, isPositioned: A, setControlledAlignItemWithTrigger: j } = ct(), M = _e(!0) != null, re = Be(), N = p(), { nonce: F, disableStyleElements: I } = ke(), L = R(u, Q.id), z = R(u, Q.open), ie = R(u, Q.openMethod), oe = R(u, Q.mounted), se = R(u, Q.popupProps), ce = R(u, Q.transitionStatus), B = R(u, Q.triggerElement), V = R(u, Q.positionerElement), H = R(u, Q.listElement), U = Y.useRef(!1), le = Y.useRef(!1), de = Y.useRef({}), W = b(), fe = l((e) => {
730
+ if (!V || !d.current || !le.current) return;
731
+ if (U.current || !k) {
732
+ S();
733
+ return;
734
+ }
735
+ let t = V.style.top === "0px", n = V.style.bottom === "0px";
736
+ if (!t && !n) {
737
+ S();
738
+ return;
739
+ }
740
+ let r = _t(V), i = vt(V.getBoundingClientRect().height, "y", r), a = te(V), o = w(V), s = o.getComputedStyle(V), c = parseFloat(s.marginTop), l = parseFloat(s.marginBottom), u = ht(o.getComputedStyle(d.current)), f = Math.min(a.documentElement.clientHeight - c - l, u), p = e.scrollTop, m = gt(e), h = 0, g = null, _ = !1, v = !1, y = (e) => {
741
+ V.style.height = `${e}px`;
742
+ }, b = (t, n) => {
743
+ let r = Ae(t, 0, f - i);
744
+ r > 0 && y(i + r), e.scrollTop = n, f - (i + r) <= 1 && (U.current = !0), S();
745
+ }, x = t ? m - p : p, C = Math.min(i + x, f);
746
+ if (h = C, x <= 1) {
747
+ b(x, t ? m : 0);
748
+ return;
749
+ }
750
+ if (f - C > 1 ? t ? v = !0 : g = 0 : (_ = !0, n && p < m && (g = p - (x - (i + x - f)))), h = Math.ceil(h), h !== 0 && y(h), v || g != null) {
751
+ let t = gt(e), n = v ? t : Ae(g, 0, t);
752
+ Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
753
+ }
754
+ (_ || h >= f - 1) && (U.current = !0), S();
755
+ });
756
+ Y.useImperativeHandle(T, () => fe, [fe]), C({
757
+ open: z,
758
+ ref: d,
759
+ onComplete() {
760
+ z && f?.(!0);
761
+ }
762
+ });
763
+ let pe = {
764
+ open: z,
765
+ transitionStatus: ce,
766
+ side: O,
767
+ align: ne
768
+ };
769
+ t(() => {
770
+ !V || !d.current || Object.keys(de.current).length || (de.current = {
771
+ top: V.style.top || "0",
772
+ left: V.style.left || "0",
773
+ right: V.style.right,
774
+ height: V.style.height,
775
+ bottom: V.style.bottom,
776
+ minHeight: V.style.minHeight,
777
+ maxHeight: V.style.maxHeight,
778
+ marginTop: V.style.marginTop,
779
+ marginBottom: V.style.marginBottom
780
+ });
781
+ }, [d, V]), t(() => {
782
+ z || k || (le.current = !1, U.current = !1, lt(V, de.current));
783
+ }, [
784
+ z,
785
+ k,
786
+ V,
787
+ d
788
+ ]), t(() => {
789
+ let e = d.current;
790
+ if (!z || !B || !V || !e || k && !A || u.state.transitionStatus === "ending") return;
791
+ if (!k) {
792
+ le.current = !0, W.request(S), e.style.removeProperty("--transform-origin");
793
+ return;
794
+ }
795
+ let t = xt(e);
796
+ e.style.removeProperty("--transform-origin");
797
+ try {
798
+ let t = v.current;
799
+ t?.isConnected || (t = !Q.hasSelectedValue(u.state) && _.current?.isConnected ? _.current : null);
800
+ let n = g.current, r = w(V), i = r.getComputedStyle(V), a = r.getComputedStyle(e), o = te(B), s = _t(B), c = yt(B.getBoundingClientRect(), s), l = yt(V.getBoundingClientRect(), s), d = c.height, f = H || e, p = f.scrollHeight, m = parseFloat(a.borderBottomWidth), h = parseFloat(i.marginTop) || 10, y = parseFloat(i.marginBottom) || 10, b = parseFloat(i.minHeight) || 100, x = ht(a), C = o.documentElement.clientHeight - h - y, T = o.documentElement.clientWidth, E = C - c.bottom + d, O, ne = N === "rtl" ? c.right - l.width : c.left, k = 0;
801
+ if (t && n) {
802
+ let e = yt(n.getBoundingClientRect(), s);
803
+ O = yt(t.getBoundingClientRect(), s), ne = l.left + (N === "rtl" ? e.right - O.right : e.left - O.left);
804
+ let r = e.top - c.top + e.height / 2;
805
+ k = O.top - l.top + O.height / 2 - r;
806
+ }
807
+ let A = E + k + y + m, M = Math.min(C, A), re = C - h - y, F = A - M, I = T - 5;
808
+ V.style.left = `${Ae(ne, 5, I - l.width)}px`, V.style.height = `${M}px`, V.style.maxHeight = "none", V.style.marginTop = `${h}px`, V.style.marginBottom = `${y}px`, e.style.height = "100%";
809
+ let L = gt(f), R = F >= L - 1;
810
+ R && (M = Math.min(C, l.height) - (F - L));
811
+ let z = c.top < 20 || c.bottom > C - 20 || Math.ceil(M) + 1 < Math.min(p, b), ie = (r.visualViewport?.scale ?? 1) !== 1 && P;
812
+ if (z || ie) {
813
+ le.current = !0, lt(V, de.current), j(!1);
814
+ return;
815
+ }
816
+ let ae = Math.max(b, M);
817
+ if (R) {
818
+ let e = Math.max(0, C - A);
819
+ V.style.top = l.height >= re ? "0" : `${e}px`, V.style.height = `${M}px`, f.scrollTop = gt(f);
820
+ } else V.style.bottom = "0", f.scrollTop = F;
821
+ if (O) {
822
+ let t = l.top, n = l.height, r = O.top + O.height / 2, i = Ae(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
823
+ e.style.setProperty("--transform-origin", `50% ${i}%`);
824
+ }
825
+ (ae === C || M >= x) && (U.current = !0), S(), D && u.state.selectedIndex === null && u.state.activeIndex === null && ee.current[0] != null && u.set("activeIndex", 0), le.current = !0;
826
+ } finally {
827
+ t();
828
+ }
829
+ }, [
830
+ u,
831
+ z,
832
+ V,
833
+ B,
834
+ g,
835
+ _,
836
+ v,
837
+ d,
838
+ S,
839
+ k,
840
+ j,
841
+ W,
842
+ H,
843
+ ee,
844
+ D,
845
+ N,
846
+ A
847
+ ]), Y.useEffect(() => {
848
+ if (!k || !V || !z) return;
849
+ let e = w(V);
850
+ function t(e) {
851
+ m(!1, y(h, e));
852
+ }
853
+ return E(e, "resize", t);
854
+ }, [
855
+ m,
856
+ k,
857
+ V,
858
+ z
859
+ ]);
860
+ let me = {
861
+ ...H ? {
862
+ role: "presentation",
863
+ "aria-orientation": void 0
864
+ } : {
865
+ role: "listbox",
866
+ "aria-multiselectable": x || void 0,
867
+ id: `${L}-list`
868
+ },
869
+ onKeyDown(e) {
870
+ M && K.has(e.key) && e.stopPropagation();
871
+ },
872
+ onScroll(e) {
873
+ H || fe(e.currentTarget);
874
+ },
875
+ ...k && { style: H ? { height: "100%" } : ut }
876
+ }, G = s("div", e, {
877
+ ref: [n, d],
878
+ state: pe,
879
+ stateAttributesMapping: pt,
880
+ props: [
881
+ se,
882
+ me,
883
+ ue(ce),
884
+ { className: !H && k ? De.className : void 0 },
885
+ c
886
+ ]
887
+ });
888
+ return /*#__PURE__*/ Ne(Y.Fragment, { children: [!I && De.getElement(F), /*#__PURE__*/ X(ae, {
889
+ context: re,
890
+ modal: !1,
891
+ disabled: !oe,
892
+ openInteractionType: ie,
893
+ returnFocus: o,
894
+ restoreFocus: !0,
895
+ children: G
896
+ })] });
897
+ });
898
+ process.env.NODE_ENV !== "production" && (mt.displayName = "SelectPopup");
899
+ function ht(e) {
900
+ let t = e.maxHeight || "";
901
+ return t.endsWith("px") && parseFloat(t) || Infinity;
902
+ }
903
+ function gt(e) {
904
+ return Oe(e.scrollHeight, e.clientHeight);
905
+ }
906
+ function _t(e) {
907
+ return de.getScale(e);
908
+ }
909
+ function vt(e, t, n) {
910
+ return e / n[t];
911
+ }
912
+ function yt(e, t) {
913
+ return N({
914
+ x: vt(e.x, "x", t),
915
+ y: vt(e.y, "y", t),
916
+ width: vt(e.width, "x", t),
917
+ height: vt(e.height, "y", t)
918
+ });
919
+ }
920
+ var bt = [
921
+ ["transform", "none"],
922
+ ["scale", "1"],
923
+ ["translate", "0 0"]
924
+ ];
925
+ function xt(e) {
926
+ let { style: t } = e, n = {};
927
+ for (let [e, r] of bt) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
928
+ return () => {
929
+ for (let [e] of bt) {
930
+ let r = n[e];
931
+ r ? t.setProperty(e, r) : t.removeProperty(e);
932
+ }
933
+ };
934
+ }
935
+ //#endregion
936
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/list/SelectList.mjs
937
+ var St = /*#__PURE__*/ Y.forwardRef(function(e, t) {
938
+ let { render: n, className: r, style: i, ...a } = e, { store: o, scrollHandlerRef: c } = Z(), { alignItemWithTriggerActive: u } = ct(), d = R(o, Q.hasScrollArrows), f = R(o, Q.openMethod), p = R(o, Q.multiple), m = {
939
+ id: `${R(o, Q.id)}-list`,
940
+ role: "listbox",
941
+ "aria-multiselectable": p || void 0,
942
+ onScroll(e) {
943
+ c.current?.(e.currentTarget);
944
+ },
945
+ ...u && { style: ut },
946
+ className: d && f !== "touch" ? De.className : void 0
947
+ };
948
+ return s("div", e, {
949
+ ref: [t, l((e) => {
950
+ o.set("listElement", e);
951
+ })],
952
+ props: [m, a]
953
+ });
954
+ });
955
+ process.env.NODE_ENV !== "production" && (St.displayName = "SelectList");
956
+ //#endregion
957
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/item/SelectItemContext.mjs
958
+ var Ct = /*#__PURE__*/ Y.createContext(void 0);
959
+ process.env.NODE_ENV !== "production" && (Ct.displayName = "SelectItemContext");
960
+ function wt() {
961
+ let e = Y.useContext(Ct);
962
+ if (!e) throw Error(process.env.NODE_ENV === "production" ? c(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
963
+ return e;
964
+ }
965
+ //#endregion
966
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/item/SelectItem.mjs
967
+ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, n) {
968
+ let { render: r, className: i, style: a, value: o = null, label: c, disabled: l = !1, nativeButton: f = !1, ...p } = e, m = Y.useRef(null), h = u({
969
+ label: c,
970
+ textRef: m,
971
+ indexGuessBehavior: d.GuessFromOrder
972
+ }), { store: _, itemProps: v, setOpen: b, setValue: x, selectionRef: S, typingRef: C, valuesRef: w, multiple: E, selectedItemTextRef: ee, disabled: te, readOnly: D } = Z(), O = R(_, Q.isActive, h.index), ne = R(_, Q.open), k = R(_, Q.isSelected, o), A = R(_, Q.isSelectedByFocus, h.index), j = R(_, Q.isItemEqualToValue), M = h.index, N = M !== -1, P = Y.useRef(null);
973
+ t(() => {
974
+ if (!N) return;
975
+ let e = w.current;
976
+ return e[M] = o, () => {
977
+ delete e[M];
978
+ };
979
+ }, [
980
+ N,
981
+ M,
982
+ o,
983
+ w
984
+ ]), t(() => {
985
+ if (!N) return;
986
+ let e = _.state.value, t = e;
987
+ E && Array.isArray(e) && (t = e.length > 0 ? e[e.length - 1] : void 0), t !== void 0 && He(o, t, j) && (_.set("selectedIndex", M), m.current && (ee.current = m.current));
988
+ }, [
989
+ N,
990
+ M,
991
+ E,
992
+ j,
993
+ _,
994
+ o,
995
+ ee
996
+ ]);
997
+ let F = Y.useRef(null), I = Y.useRef("mouse"), L = Y.useRef(!1), { getButtonProps: z, buttonRef: ie } = T({
998
+ disabled: l,
999
+ focusableWhenDisabled: !0,
1000
+ native: f,
1001
+ composite: !0
1002
+ }), ae = {
1003
+ disabled: l,
1004
+ selected: k,
1005
+ highlighted: O
1006
+ };
1007
+ function oe(e) {
1008
+ if (te || D) return;
1009
+ let t = _.state.value;
1010
+ if (E) {
1011
+ let n = Array.isArray(t) ? t : [], r = k ? Ge(n, o, j) : [...n, o];
1012
+ x(r, y(g, e));
1013
+ } else x(o, y(g, e)), b(!1, y(g, e));
1014
+ }
1015
+ function se() {
1016
+ S.current.dragY = 0;
1017
+ }
1018
+ let ce = {
1019
+ role: "option",
1020
+ "aria-selected": k,
1021
+ tabIndex: ne && O ? 0 : -1,
1022
+ onKeyDown(e) {
1023
+ F.current = e.key, _.set("activeIndex", M), e.key === " " && C.current && e.preventDefault();
1024
+ },
1025
+ onClick(e) {
1026
+ let t = e.type === "click" && I.current !== "touch", n = e.nativeEvent.pointerType, r = t && re(e.nativeEvent) && (n !== void 0 || O), i = t && !r && !L.current;
1027
+ L.current = !1, !(e.type === "keydown" && F.current === null) && (l || e.type === "keydown" && F.current === " " && C.current || i || (F.current = null, oe(e.nativeEvent)));
1028
+ },
1029
+ onPointerEnter(e) {
1030
+ I.current = e.pointerType;
1031
+ },
1032
+ onPointerMove(e) {
1033
+ if (e.pointerType === "mouse" && e.buttons === 1) {
1034
+ let t = S.current;
1035
+ t.dragY += e.movementY, t.dragY ** 2 >= 64 && (t.allowUnselectedMouseUp = !0);
1036
+ }
1037
+ },
1038
+ onPointerDown(e) {
1039
+ I.current = e.pointerType, L.current = !0, se();
1040
+ },
1041
+ onMouseUp() {
1042
+ if (se(), l || I.current === "touch" || L.current) return;
1043
+ let e = !S.current.allowSelectedMouseUp && k, t = !S.current.allowUnselectedMouseUp && !k;
1044
+ e || t || (L.current = !0, P.current?.click(), L.current = !1);
1045
+ }
1046
+ }, B = s("div", e, {
1047
+ ref: [
1048
+ ie,
1049
+ n,
1050
+ h.ref,
1051
+ P
1052
+ ],
1053
+ state: ae,
1054
+ props: [
1055
+ v,
1056
+ ce,
1057
+ p,
1058
+ z
1059
+ ]
1060
+ }), V = Y.useMemo(() => ({
1061
+ selected: k,
1062
+ index: M,
1063
+ textRef: m,
1064
+ selectedByFocus: A,
1065
+ hasRegistered: N
1066
+ }), [
1067
+ k,
1068
+ M,
1069
+ m,
1070
+ A,
1071
+ N
1072
+ ]);
1073
+ return /*#__PURE__*/ X(Ct.Provider, {
1074
+ value: V,
1075
+ children: B
1076
+ });
1077
+ }));
1078
+ process.env.NODE_ENV !== "production" && (Tt.displayName = "SelectItem");
1079
+ //#endregion
1080
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/item-indicator/SelectItemIndicator.mjs
1081
+ var Et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1082
+ let n = e.keepMounted ?? !1, { selected: r } = wt();
1083
+ return n || r ? /*#__PURE__*/ X(Dt, {
1084
+ ...e,
1085
+ ref: t
1086
+ }) : null;
1087
+ });
1088
+ process.env.NODE_ENV !== "production" && (Et.displayName = "SelectItemIndicator");
1089
+ var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, t) => {
1090
+ let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: c } = wt(), l = Y.useRef(null), { transitionStatus: u, setMounted: d } = x(c), f = s("span", e, {
1091
+ ref: [t, l],
1092
+ state: {
1093
+ selected: c,
1094
+ transitionStatus: u
1095
+ },
1096
+ props: [{
1097
+ "aria-hidden": !0,
1098
+ children: "✔️"
1099
+ }, o],
1100
+ stateAttributesMapping: S
1101
+ });
1102
+ return C({
1103
+ open: c,
1104
+ ref: l,
1105
+ onComplete() {
1106
+ c || d(!1);
1107
+ }
1108
+ }), f;
1109
+ }));
1110
+ process.env.NODE_ENV !== "production" && (Dt.displayName = "Inner");
1111
+ //#endregion
1112
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/item-text/SelectItemText.mjs
1113
+ var Ot = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
1114
+ let { index: n, textRef: r, selectedByFocus: i, hasRegistered: a } = wt(), { firstItemTextRef: o, selectedItemTextRef: c } = Z(), { render: l, className: u, style: d, ...f } = e;
1115
+ return s("div", e, {
1116
+ ref: [
1117
+ Y.useCallback((e) => {
1118
+ e && (a && n === 0 && (o.current = e), a && i && (c.current = e));
1119
+ }, [
1120
+ o,
1121
+ c,
1122
+ n,
1123
+ i,
1124
+ a
1125
+ ]),
1126
+ t,
1127
+ r
1128
+ ],
1129
+ props: f
1130
+ });
1131
+ }));
1132
+ process.env.NODE_ENV !== "production" && (Ot.displayName = "SelectItemText");
1133
+ //#endregion
1134
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/scroll-arrow/SelectScrollArrow.mjs
1135
+ var kt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
1136
+ let { render: r, className: i, style: a, direction: o, keepMounted: c = !1, ...l } = e, u = o === "up", { store: d, popupRef: f, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: g, scrollDownArrowRef: _, scrollUpArrowRef: v } = ct(), y = R(d, u ? Q.scrollUpArrowVisible : Q.scrollDownArrowVisible), b = R(d, Q.openMethod), w = y && b !== "touch", T = ie(), E = u ? v : _, { mounted: ee, transitionStatus: te, setMounted: D } = x(w);
1137
+ t(() => (h.current += 1, d.state.hasScrollArrows || d.set("hasScrollArrows", !0), () => {
1138
+ h.current = Math.max(0, h.current - 1), h.current === 0 && d.state.hasScrollArrows && d.set("hasScrollArrows", !1);
1139
+ }), [d, h]), C({
1140
+ open: w,
1141
+ ref: E,
1142
+ onComplete() {
1143
+ w || D(!1);
1144
+ }
1145
+ });
1146
+ let O = s("div", e, {
1147
+ ref: [n, E],
1148
+ state: {
1149
+ direction: o,
1150
+ visible: w,
1151
+ side: g,
1152
+ transitionStatus: te
1153
+ },
1154
+ props: [{
1155
+ "aria-hidden": !0,
1156
+ children: u ? "▲" : "▼",
1157
+ style: { position: "absolute" },
1158
+ onMouseMove(e) {
1159
+ if (e.movementX === 0 && e.movementY === 0 || T.isStarted()) return;
1160
+ d.set("activeIndex", null);
1161
+ function t() {
1162
+ let e = d.state.listElement ?? f.current;
1163
+ if (!e) return;
1164
+ d.set("activeIndex", null), m();
1165
+ let n = Oe(e.scrollHeight, e.clientHeight), r = Ee(e.scrollTop, n), i = r === (u ? 0 : n), a = p.current;
1166
+ if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && d.set(u ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
1167
+ T.clear();
1168
+ return;
1169
+ }
1170
+ if (a.length > 0) {
1171
+ let t = E.current?.offsetHeight || 0;
1172
+ e.scrollTop = At(a, u, r, e.clientHeight, t, n);
1173
+ }
1174
+ T.start(40, t);
1175
+ }
1176
+ T.start(40, t);
1177
+ },
1178
+ onMouseLeave() {
1179
+ T.clear();
1180
+ }
1181
+ }, l],
1182
+ stateAttributesMapping: S
1183
+ });
1184
+ return ee || c ? O : null;
1185
+ });
1186
+ process.env.NODE_ENV !== "production" && (kt.displayName = "SelectScrollArrow");
1187
+ function At(e, t, n, r, i, a) {
1188
+ if (t) {
1189
+ let t = 0, r = n + i - 1;
1190
+ for (let n = 0; n < e.length; n += 1) {
1191
+ let i = e[n];
1192
+ if (i && i.offsetTop >= r) {
1193
+ t = n;
1194
+ break;
1195
+ }
1196
+ }
1197
+ let o = Math.max(0, t - 1), s = e[o];
1198
+ return o < t && s ? Ee(s.offsetTop - i, a) : 0;
1199
+ }
1200
+ let o = e.length - 1, s = n + r - i + 1;
1201
+ for (let t = 0; t < e.length; t += 1) {
1202
+ let n = e[t];
1203
+ if (n && n.offsetTop + n.offsetHeight > s) {
1204
+ o = Math.max(0, t - 1);
1205
+ break;
1206
+ }
1207
+ }
1208
+ let c = Math.min(e.length - 1, o + 1), l = e[c];
1209
+ return c > o && l ? Ee(l.offsetTop + l.offsetHeight - r + i, a) : a;
1210
+ }
1211
+ //#endregion
1212
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/scroll-down-arrow/SelectScrollDownArrow.mjs
1213
+ var jt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1214
+ return /*#__PURE__*/ X(kt, {
1215
+ ...e,
1216
+ ref: t,
1217
+ direction: "down"
1218
+ });
1219
+ });
1220
+ process.env.NODE_ENV !== "production" && (jt.displayName = "SelectScrollDownArrow");
1221
+ //#endregion
1222
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/scroll-up-arrow/SelectScrollUpArrow.mjs
1223
+ var Mt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1224
+ return /*#__PURE__*/ X(kt, {
1225
+ ...e,
1226
+ ref: t,
1227
+ direction: "up"
1228
+ });
1229
+ });
1230
+ process.env.NODE_ENV !== "production" && (Mt.displayName = "SelectScrollUpArrow");
1231
+ //#endregion
1232
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/group/SelectGroupContext.mjs
1233
+ var Nt = /*#__PURE__*/ Y.createContext(void 0);
1234
+ process.env.NODE_ENV !== "production" && (Nt.displayName = "SelectGroupContext");
1235
+ function Pt() {
1236
+ let e = Y.useContext(Nt);
1237
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? c(56) : "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.");
1238
+ return e;
1239
+ }
1240
+ //#endregion
1241
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/group/SelectGroup.mjs
1242
+ var Ft = /*#__PURE__*/ Y.forwardRef(function(e, t) {
1243
+ let { render: n, className: r, style: i, ...a } = e, [o, c] = Y.useState(), l = Y.useMemo(() => ({
1244
+ labelId: o,
1245
+ setLabelId: c
1246
+ }), [o, c]), u = s("div", e, {
1247
+ ref: t,
1248
+ props: [{
1249
+ role: "group",
1250
+ "aria-labelledby": o
1251
+ }, a]
1252
+ });
1253
+ return /*#__PURE__*/ X(Nt.Provider, {
1254
+ value: l,
1255
+ children: u
1256
+ });
1257
+ });
1258
+ process.env.NODE_ENV !== "production" && (Ft.displayName = "SelectGroup");
1259
+ //#endregion
1260
+ //#region ../../node_modules/.bun/@base-ui+react@1.6.0+df7f6a806acd27ca/node_modules/@base-ui/react/select/group-label/SelectGroupLabel.mjs
1261
+ var It = /*#__PURE__*/ Y.forwardRef(function(e, n) {
1262
+ let { render: r, className: i, style: a, id: o, ...c } = e, { setLabelId: l } = Pt(), u = m(o);
1263
+ return t(() => {
1264
+ l(u);
1265
+ }, [u, l]), s("div", e, {
1266
+ ref: n,
1267
+ props: [{ id: u }, c]
1268
+ });
1269
+ });
1270
+ process.env.NODE_ENV !== "production" && (It.displayName = "SelectGroupLabel");
1271
+ //#endregion
1272
+ //#region lib/components/ui/atoms/select.tsx
1273
+ var Lt = $;
1274
+ function Rt({ className: e, ...t }) {
1275
+ return /* @__PURE__ */ X(Ft, {
1276
+ className: D("scroll-my-1 p-1", e),
1277
+ "data-slot": "select-group",
1278
+ ...t
1279
+ });
1280
+ }
1281
+ function zt({ className: e, ...t }) {
1282
+ return /* @__PURE__ */ X(rt, {
1283
+ className: D("flex flex-1 text-left", e),
1284
+ "data-slot": "select-value",
1285
+ ...t
1286
+ });
1287
+ }
1288
+ function Bt({ className: e, size: t = "default", children: n, ...r }) {
1289
+ return /* @__PURE__ */ Ne(tt, {
1290
+ className: D("flex w-fit items-center justify-between gap-1.5 whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", e),
1291
+ "data-size": t,
1292
+ "data-slot": "select-trigger",
1293
+ ...r,
1294
+ children: [n, /* @__PURE__ */ X(it, { render: /* @__PURE__ */ X(Fe, { className: "pointer-events-none size-4 text-muted-foreground" }) })]
1295
+ });
1296
+ }
1297
+ function Vt({ className: e, children: t, side: n = "bottom", sideOffset: r = 4, align: i = "center", alignOffset: a = 0, alignItemWithTrigger: o = !1, ...s }) {
1298
+ return /* @__PURE__ */ X(ot, { children: /* @__PURE__ */ X(ft, {
1299
+ align: i,
1300
+ alignItemWithTrigger: o,
1301
+ alignOffset: a,
1302
+ className: "isolate z-50",
1303
+ side: n,
1304
+ sideOffset: r,
1305
+ children: /* @__PURE__ */ Ne(mt, {
1306
+ className: D("data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-y-auto overflow-x-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-closed:animate-out data-open:animate-in", e),
1307
+ "data-align-trigger": o,
1308
+ "data-slot": "select-content",
1309
+ ...s,
1310
+ children: [
1311
+ /* @__PURE__ */ X(Gt, {}),
1312
+ /* @__PURE__ */ X(St, { children: t }),
1313
+ /* @__PURE__ */ X(Kt, {})
1314
+ ]
1315
+ })
1316
+ }) });
1317
+ }
1318
+ function Ht({ className: e, ...t }) {
1319
+ return /* @__PURE__ */ X(It, {
1320
+ className: D("px-2 py-1.5 text-muted-foreground text-xs", e),
1321
+ "data-slot": "select-label",
1322
+ ...t
1323
+ });
1324
+ }
1325
+ function Ut({ className: e, children: t, ...n }) {
1326
+ return /* @__PURE__ */ Ne(Tt, {
1327
+ className: D("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
1328
+ "data-slot": "select-item",
1329
+ ...n,
1330
+ children: [/* @__PURE__ */ X(Ot, {
1331
+ className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
1332
+ children: t
1333
+ }), /* @__PURE__ */ X(Et, {
1334
+ render: /* @__PURE__ */ X("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
1335
+ children: /* @__PURE__ */ X(Pe, { className: "pointer-events-none" })
1336
+ })]
1337
+ });
1338
+ }
1339
+ function Wt({ className: e, ...t }) {
1340
+ return /* @__PURE__ */ X(Se, {
1341
+ className: D("pointer-events-none -mx-1 my-1 h-px bg-border", e),
1342
+ "data-slot": "select-separator",
1343
+ ...t
1344
+ });
1345
+ }
1346
+ function Gt({ className: e, ...t }) {
1347
+ return /* @__PURE__ */ X(Mt, {
1348
+ className: D("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
1349
+ "data-slot": "select-scroll-up-button",
1350
+ ...t,
1351
+ children: /* @__PURE__ */ X(Ie, {})
1352
+ });
1353
+ }
1354
+ function Kt({ className: e, ...t }) {
1355
+ return /* @__PURE__ */ X(jt, {
1356
+ className: D("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
1357
+ "data-slot": "select-scroll-down-button",
1358
+ ...t,
1359
+ children: /* @__PURE__ */ X(Fe, {})
1360
+ });
1361
+ }
1362
+ //#endregion
1363
+ export { Ht as a, Wt as c, Ut as i, Bt as l, Vt as n, Kt as o, Rt as r, Gt as s, Lt as t, zt as u };