@arcadeai/design-system 3.39.0 → 3.39.2

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 (425) hide show
  1. package/dist/CompositeItem-CniPsjzP.js +30 -0
  2. package/dist/CompositeList-yq5K_yj6.js +81 -0
  3. package/dist/CompositeRoot-Dy-5A-Je.js +206 -0
  4. package/dist/DialogRoot-DDokfJcO.js +57 -0
  5. package/dist/DialogTrigger-CFUE8YsM.js +402 -0
  6. package/dist/DirectionContext-BSOheMwC.js +10 -0
  7. package/dist/FieldItemContext-CF2fRwBC.js +12 -0
  8. package/dist/FloatingPortalLite-BHsRx4XN.js +29 -0
  9. package/dist/InternalBackdrop-BVEfe6O1.js +610 -0
  10. package/dist/LabelableContext-Dzw1DWuj.js +171 -0
  11. package/dist/Separator-CswSYAXX.js +25 -0
  12. package/dist/ToolbarRootContext-D7EsmJ5f.js +10 -0
  13. package/dist/andromeeda-B-gfN00q.js +4 -0
  14. package/dist/angular-html-dA1qUKRV.js +32 -0
  15. package/dist/angular-ts-CXyBC0vY.js +21 -0
  16. package/dist/apl-CjNiDgad.js +3 -3
  17. package/dist/assets/icons/telegram.js +10 -0
  18. package/dist/assets/images/arcade-grid.d.ts.map +1 -1
  19. package/dist/assets/images/arcade-grid.js +1 -0
  20. package/dist/assets/index.css +1 -1
  21. package/dist/assets/tokens.css +1 -1
  22. package/dist/assets/variables.css +1 -1
  23. package/dist/astro--3ZkKqYU.js +18 -0
  24. package/dist/astro-CFFExE8Q.js +5 -5
  25. package/dist/aurora-x-B56eICma.js +4 -0
  26. package/dist/ayu-dark-DJSOaKig.js +4 -0
  27. package/dist/ayu-light-BPfFt4v-.js +4 -0
  28. package/dist/ayu-mirage-DmPLRBj7.js +4 -0
  29. package/dist/blade-BoRuQEEj.js +20 -0
  30. package/dist/blade-D0HyNvCw.js +4 -4
  31. package/dist/c-C4SM8H98.js +6 -0
  32. package/dist/cairo-DM6WF2e3.js +1 -1
  33. package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
  34. package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
  35. package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
  36. package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
  37. package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
  38. package/dist/clamp-BxE4ZAuA.js +17 -0
  39. package/dist/cobol-HihOMwht.js +1 -1
  40. package/dist/coffee-D8Swy5yR.js +8 -0
  41. package/dist/components/index.js +665 -644
  42. package/dist/components/ui/atoms/accordion.d.ts +9 -7
  43. package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
  44. package/dist/components/ui/atoms/accordion.js +454 -243
  45. package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
  46. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
  47. package/dist/components/ui/atoms/alert-dialog.js +149 -183
  48. package/dist/components/ui/atoms/alert.d.ts +2 -1
  49. package/dist/components/ui/atoms/alert.d.ts.map +1 -1
  50. package/dist/components/ui/atoms/alert.js +36 -25
  51. package/dist/components/ui/atoms/avatar.d.ts +10 -5
  52. package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
  53. package/dist/components/ui/atoms/avatar.js +198 -205
  54. package/dist/components/ui/atoms/badge.d.ts +4 -5
  55. package/dist/components/ui/atoms/badge.d.ts.map +1 -1
  56. package/dist/components/ui/atoms/badge.js +31 -22
  57. package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
  58. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
  59. package/dist/components/ui/atoms/breadcrumb.js +46 -29
  60. package/dist/components/ui/atoms/button.d.ts +4 -6
  61. package/dist/components/ui/atoms/button.d.ts.map +1 -1
  62. package/dist/components/ui/atoms/button.js +59 -28
  63. package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
  64. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
  65. package/dist/components/ui/atoms/byoc-badge.js +14 -8
  66. package/dist/components/ui/atoms/calendar.d.ts +6 -16
  67. package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
  68. package/dist/components/ui/atoms/calendar.js +1 -1
  69. package/dist/components/ui/atoms/card.d.ts +4 -2
  70. package/dist/components/ui/atoms/card.d.ts.map +1 -1
  71. package/dist/components/ui/atoms/card.js +46 -35
  72. package/dist/components/ui/atoms/chart.d.ts +24 -48
  73. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  74. package/dist/components/ui/atoms/chart.js +179 -148
  75. package/dist/components/ui/atoms/checkbox.d.ts +2 -3
  76. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  77. package/dist/components/ui/atoms/checkbox.js +269 -249
  78. package/dist/components/ui/atoms/code-block.js +1 -1
  79. package/dist/components/ui/atoms/collapsible.d.ts +5 -5
  80. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
  81. package/dist/components/ui/atoms/collapsible.js +208 -23
  82. package/dist/components/ui/atoms/command.d.ts +4 -3
  83. package/dist/components/ui/atoms/command.d.ts.map +1 -1
  84. package/dist/components/ui/atoms/command.js +1655 -348
  85. package/dist/components/ui/atoms/dialog.d.ts +12 -10
  86. package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
  87. package/dist/components/ui/atoms/dialog.js +91 -80
  88. package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
  89. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
  90. package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
  91. package/dist/components/ui/atoms/form.d.ts +5 -3
  92. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  93. package/dist/components/ui/atoms/form.js +36 -42
  94. package/dist/components/ui/atoms/hover-card.d.ts +5 -6
  95. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
  96. package/dist/components/ui/atoms/hover-card.js +355 -193
  97. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  98. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  99. package/dist/components/ui/atoms/icons/index.js +58 -56
  100. package/dist/components/ui/atoms/icons/telegram.d.ts +4 -0
  101. package/dist/components/ui/atoms/icons/telegram.d.ts.map +1 -0
  102. package/dist/components/ui/atoms/icons/telegram.js +37 -0
  103. package/dist/components/ui/atoms/index.d.ts +1 -0
  104. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  105. package/dist/components/ui/atoms/index.js +566 -545
  106. package/dist/components/ui/atoms/input-group.d.ts +20 -0
  107. package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
  108. package/dist/components/ui/atoms/input-group.js +136 -0
  109. package/dist/components/ui/atoms/input.d.ts.map +1 -1
  110. package/dist/components/ui/atoms/input.js +113 -13
  111. package/dist/components/ui/atoms/label.d.ts +1 -2
  112. package/dist/components/ui/atoms/label.d.ts.map +1 -1
  113. package/dist/components/ui/atoms/label.js +18 -31
  114. package/dist/components/ui/atoms/markdown.js +1 -1
  115. package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
  116. package/dist/components/ui/atoms/popover.d.ts +8 -6
  117. package/dist/components/ui/atoms/popover.d.ts.map +1 -1
  118. package/dist/components/ui/atoms/popover.js +617 -245
  119. package/dist/components/ui/atoms/pro-badge.js +1 -1
  120. package/dist/components/ui/atoms/progress.d.ts +7 -4
  121. package/dist/components/ui/atoms/progress.d.ts.map +1 -1
  122. package/dist/components/ui/atoms/progress.js +236 -92
  123. package/dist/components/ui/atoms/radio-group.d.ts +4 -4
  124. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
  125. package/dist/components/ui/atoms/radio-group.js +355 -251
  126. package/dist/components/ui/atoms/resizable.d.ts +3 -4
  127. package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
  128. package/dist/components/ui/atoms/resizable.js +25 -27
  129. package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
  130. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
  131. package/dist/components/ui/atoms/scroll-area.js +611 -526
  132. package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
  133. package/dist/components/ui/atoms/scroll-button.js +27 -22
  134. package/dist/components/ui/atoms/select.d.ts +11 -11
  135. package/dist/components/ui/atoms/select.d.ts.map +1 -1
  136. package/dist/components/ui/atoms/select.js +1525 -889
  137. package/dist/components/ui/atoms/separator.d.ts +2 -3
  138. package/dist/components/ui/atoms/separator.d.ts.map +1 -1
  139. package/dist/components/ui/atoms/separator.js +16 -35
  140. package/dist/components/ui/atoms/sheet.d.ts +9 -9
  141. package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
  142. package/dist/components/ui/atoms/sheet.js +65 -64
  143. package/dist/components/ui/atoms/sidebar.d.ts +9 -15
  144. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  145. package/dist/components/ui/atoms/sidebar.js +288 -283
  146. package/dist/components/ui/atoms/skeleton.js +4 -4
  147. package/dist/components/ui/atoms/slider.d.ts +2 -3
  148. package/dist/components/ui/atoms/slider.d.ts.map +1 -1
  149. package/dist/components/ui/atoms/slider.js +886 -440
  150. package/dist/components/ui/atoms/switch.d.ts +4 -5
  151. package/dist/components/ui/atoms/switch.d.ts.map +1 -1
  152. package/dist/components/ui/atoms/switch.js +218 -151
  153. package/dist/components/ui/atoms/table.d.ts +2 -4
  154. package/dist/components/ui/atoms/table.d.ts.map +1 -1
  155. package/dist/components/ui/atoms/table.js +35 -36
  156. package/dist/components/ui/atoms/tabs.d.ts +11 -7
  157. package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
  158. package/dist/components/ui/atoms/tabs.js +492 -186
  159. package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
  160. package/dist/components/ui/atoms/textarea.js +7 -7
  161. package/dist/components/ui/atoms/toggle.d.ts +2 -3
  162. package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
  163. package/dist/components/ui/atoms/toggle.js +92 -45
  164. package/dist/components/ui/atoms/tooltip.d.ts +6 -9
  165. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
  166. package/dist/components/ui/atoms/tooltip.js +625 -343
  167. package/dist/components/ui/atoms/view-tools-control.js +16 -15
  168. package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
  169. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  170. package/dist/components/ui/atoms/virtualized-grid.js +365 -333
  171. package/dist/components/ui/index.js +665 -644
  172. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
  173. package/dist/components/ui/molecules/chat-history-item.js +47 -40
  174. package/dist/components/ui/molecules/command-bar.js +1 -1
  175. package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
  176. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
  177. package/dist/components/ui/molecules/confirm-popover.js +26 -24
  178. package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
  179. package/dist/components/ui/molecules/date-time-picker.js +17 -11
  180. package/dist/components/ui/molecules/index.js +1 -1
  181. package/dist/components/ui/molecules/message.d.ts +2 -3
  182. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  183. package/dist/components/ui/molecules/message.js +10 -16
  184. package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
  185. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  186. package/dist/components/ui/molecules/prompt-input.js +21 -22
  187. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
  188. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  189. package/dist/components/ui/molecules/steps-progress.js +1 -0
  190. package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
  191. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  192. package/dist/components/ui/molecules/tool-card.js +60 -47
  193. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  194. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  195. package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
  196. package/dist/components/ui/molecules/user-nav.js +62 -57
  197. package/dist/components/ui/templates/auth-template.js +5 -5
  198. package/dist/composite-BASdnlNo.js +220 -0
  199. package/dist/composite-BSpUD7nI.js +66 -0
  200. package/dist/cpp-CA4iM_wM.js +18 -0
  201. package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
  202. package/dist/crystal-CRJyc4G-.js +4 -4
  203. package/dist/css-M7EaDHN_.js +6 -0
  204. package/dist/csv-B7yqA61e.js +6 -0
  205. package/dist/dark-plus-B4vfALTw.js +4 -0
  206. package/dist/detectBrowser-Dn2N72k1.js +42 -0
  207. package/dist/dracula-Cb59ZzY3.js +4 -0
  208. package/dist/dracula-soft-aaEmszbU.js +4 -0
  209. package/dist/edge-BYQkOzbF.js +1 -1
  210. package/dist/element-DSo91iOi.js +88 -0
  211. package/dist/elm-BtNbw_Cd.js +1 -1
  212. package/dist/erlang-DNcDT8Hi.js +1 -1
  213. package/dist/event-BCa0Un_3.js +30 -0
  214. package/dist/everforest-dark-CLp_21RJ.js +4 -0
  215. package/dist/everforest-light-CZ0NCAAv.js +4 -0
  216. package/dist/floating-ui.utils-48URp89E.js +126 -0
  217. package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
  218. package/dist/fsharp-CYOiIVNx.js +1 -1
  219. package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
  220. package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
  221. package/dist/git-rebase-ZWUFO_T4.js +1 -1
  222. package/dist/github-dark-BD3lImVS.js +4 -0
  223. package/dist/github-dark-default-ID_nBUwl.js +4 -0
  224. package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
  225. package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
  226. package/dist/github-light-W396yAFe.js +4 -0
  227. package/dist/github-light-default-DCAQ2px1.js +4 -0
  228. package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
  229. package/dist/glimmer-js-DkxNrfPT.js +2 -2
  230. package/dist/glimmer-ts-D6YZEmK_.js +2 -2
  231. package/dist/glsl-CgdqkyFp.js +8 -0
  232. package/dist/graphql-Bv26LTzG.js +14 -0
  233. package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
  234. package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
  235. package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
  236. package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
  237. package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
  238. package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
  239. package/dist/hack-ItRNKiEb.js +1 -1
  240. package/dist/haml-B1t5q1Sv.js +10 -0
  241. package/dist/haml-NZLVzu_R.js +1 -1
  242. package/dist/handlebars-B2fb61mr.js +14 -0
  243. package/dist/handlebars-mxStpSE7.js +2 -2
  244. package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
  245. package/dist/hooks/use-mobile.d.ts.map +1 -1
  246. package/dist/hooks/use-mobile.js +11 -12
  247. package/dist/horizon-PFtq58ZB.js +4 -0
  248. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  249. package/dist/houston-BEqUWhHr.js +4 -0
  250. package/dist/html-B50bmoVb.js +1 -1
  251. package/dist/html-CPZ3oZQ7.js +10 -0
  252. package/dist/html-derivative-B2qv7eyt.js +8 -0
  253. package/dist/http-BQ2t9cn1.js +14 -0
  254. package/dist/hurl-RyCMCa80.js +12 -0
  255. package/dist/imba-DpB-wtPB.js +6 -0
  256. package/dist/index-3rscXtm3.js +4708 -0
  257. package/dist/inertValue-kpZZDBEy.js +7 -0
  258. package/dist/integrations/rhf/index.js +6 -5
  259. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  260. package/dist/java-CbphP4lz.js +6 -0
  261. package/dist/javascript-CgYd5l7W.js +6 -0
  262. package/dist/jinja-DFCUirAg.js +11 -0
  263. package/dist/jison-CTEI_s6O.js +8 -0
  264. package/dist/json-B5-prx4F.js +6 -0
  265. package/dist/json5-CZ8R1oUY.js +6 -0
  266. package/dist/jsonc-DMboCKBJ.js +6 -0
  267. package/dist/jsonl-YgIUi4Dg.js +6 -0
  268. package/dist/jsx-D4q4E1UD.js +6 -0
  269. package/dist/julia-2ubi2n9a.js +16 -0
  270. package/dist/just-CEK2SJ_k.js +4 -4
  271. package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
  272. package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
  273. package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
  274. package/dist/laserwave-B_2VVKNJ.js +4 -0
  275. package/dist/less-MoGo8xoS.js +6 -0
  276. package/dist/light-plus-IB4fPeJj.js +4 -0
  277. package/dist/liquid-CHzkx3jT.js +2 -2
  278. package/dist/lua-Bp3IRv7I.js +1 -1
  279. package/dist/main.js +691 -670
  280. package/dist/markdown-B-zRtm0x.js +6 -0
  281. package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
  282. package/dist/marko-BlmC3dqW.js +14 -0
  283. package/dist/marko-CJBA24Ri.js +2 -2
  284. package/dist/material-theme-CjsSdYF2.js +4 -0
  285. package/dist/material-theme-darker-DEk0vgdS.js +4 -0
  286. package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
  287. package/dist/material-theme-ocean-DK6jm24j.js +4 -0
  288. package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
  289. package/dist/mdc-C9YSUwVC.js +2 -2
  290. package/dist/mdc-CLNk3q28.js +12 -0
  291. package/dist/mdx-CiUWpBB_.js +6 -0
  292. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
  293. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  294. package/dist/metadata/toolkit-icons.js +40 -38
  295. package/dist/metadata/toolkits.d.ts.map +1 -1
  296. package/dist/metadata/toolkits.js +13 -0
  297. package/dist/min-dark-CJcHUHwu.js +4 -0
  298. package/dist/min-light-BAN2UR75.js +4 -0
  299. package/dist/monokai-BbXwpjKl.js +4 -0
  300. package/dist/night-owl-csViJ7u4.js +4 -0
  301. package/dist/night-owl-light-BC-NuMC3.js +4 -0
  302. package/dist/nim-QAjRdh9w.js +5 -5
  303. package/dist/nord-B8Sq-VQ0.js +4 -0
  304. package/dist/one-dark-pro-DTdrcl-J.js +4 -0
  305. package/dist/one-light-kPHTChCU.js +4 -0
  306. package/dist/owner-rKN292Q9.js +6 -0
  307. package/dist/perl-DkVrgJBg.js +3 -3
  308. package/dist/php-BIzsF_5x.js +4 -4
  309. package/dist/php-Kn-vgdBD.js +18 -0
  310. package/dist/plastic-DDweBgVs.js +4 -0
  311. package/dist/poimandres-Dqvs16BQ.js +4 -0
  312. package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
  313. package/dist/postcss-CwL8bLZI.js +6 -0
  314. package/dist/pug-CTOOvSEH.js +12 -0
  315. package/dist/pug-XOw9Q1Ho.js +1 -1
  316. package/dist/python-jjYlTiSH.js +6 -0
  317. package/dist/qml-rTNXsquU.js +1 -1
  318. package/dist/r-C8zl4zMO.js +6 -0
  319. package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
  320. package/dist/red-DBDwQkX-.js +4 -0
  321. package/dist/regexp-Dpy_RgoJ.js +6 -0
  322. package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
  323. package/dist/rose-pine-DGHrTu7e.js +4 -0
  324. package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
  325. package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
  326. package/dist/rst-DM32Wy3O.js +5 -5
  327. package/dist/ruby-BeqCs27h.js +8 -8
  328. package/dist/safePolygon-CJcmMc0u.js +389 -0
  329. package/dist/safeReact-DKq-628G.js +7 -0
  330. package/dist/sas-fpEvgATw.js +1 -1
  331. package/dist/sass-BmupNt-w.js +6 -0
  332. package/dist/scss-BZYVIVaN.js +8 -0
  333. package/dist/serializeValue-BebmSzW3.js +14 -0
  334. package/dist/shellscript-fMxXshxv.js +6 -0
  335. package/dist/shellsession-DiDJNQdy.js +1 -1
  336. package/dist/slack-dark-noeC6QPl.js +4 -0
  337. package/dist/slack-ochin-3_2idqLR.js +4 -0
  338. package/dist/snazzy-light-B9cV359v.js +4 -0
  339. package/dist/solarized-dark-B6X0ILWr.js +4 -0
  340. package/dist/solarized-light-LxOemn3c.js +4 -0
  341. package/dist/sql-D30Zid36.js +6 -0
  342. package/dist/stata-B8c5fTjX.js +1 -1
  343. package/dist/styles-DU5BO7fS.js +16 -0
  344. package/dist/stylus-BoBcEBjx.js +6 -0
  345. package/dist/surrealql-CQi7GQN7.js +1 -1
  346. package/dist/svelte-b9PAcyUe.js +14 -0
  347. package/dist/svelte-rYri41WT.js +3 -3
  348. package/dist/synthwave-84-DzQeMpV0.js +4 -0
  349. package/dist/templ-Crs9Ui8q.js +1 -1
  350. package/dist/tex-AHxmLTL0.js +1 -1
  351. package/dist/tokyo-night-CLM-V_Re.js +4 -0
  352. package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
  353. package/dist/ts-tags-CP1b-4Z2.js +41 -0
  354. package/dist/ts-tags-ioVe2PKw.js +5 -5
  355. package/dist/tsx-QNpb2qLW.js +6 -0
  356. package/dist/twig-DwV2Fi4L.js +2 -2
  357. package/dist/typescript-AhniRyfZ.js +6 -0
  358. package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
  359. package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
  360. package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
  361. package/dist/useButton-JYPKQKj4.js +150 -0
  362. package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
  363. package/dist/useCompositeItem-D00ALGkT.js +35 -0
  364. package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
  365. package/dist/useControlled-Sx-_x7Sz.js +32 -0
  366. package/dist/useFocus-Aj9ShMQu.js +97 -0
  367. package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
  368. package/dist/useLabelableId-DF_d91GP.js +44 -0
  369. package/dist/useOnFirstRender-B4aruaIA.js +9 -0
  370. package/dist/useOnMount-JHtE6teb.js +9 -0
  371. package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
  372. package/dist/useRender-BNXBkp2o.js +7 -0
  373. package/dist/useRenderElement-DNB2vtF1.js +274 -0
  374. package/dist/useRole-N-RCRzo1.js +76 -0
  375. package/dist/useStableCallback-CudqoENs.js +33 -0
  376. package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
  377. package/dist/useTimeout-DAqPwigF.js +33 -0
  378. package/dist/useValueAsRef-LhoZc6As.js +20 -0
  379. package/dist/useValueChanged-Bissqjjn.js +15 -0
  380. package/dist/valueToPercent-BBgE4D3L.js +27 -0
  381. package/dist/vesper-BmV7KiQ0.js +4 -0
  382. package/dist/visuallyHidden-PuyyGHVF.js +22 -0
  383. package/dist/vitesse-black-CxZz3C4s.js +4 -0
  384. package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
  385. package/dist/vitesse-light-BDJohtUr.js +4 -0
  386. package/dist/vue-CY6W2ID0.js +31 -0
  387. package/dist/vue-DXEmyXn9.js +3 -3
  388. package/dist/vue-html-DYXHAJ2G.js +8 -0
  389. package/dist/vue-vine-D41-N99t.js +4 -4
  390. package/dist/vue-vine-DiWTpMwZ.js +18 -0
  391. package/dist/wasm-3y0A1Y71.js +6 -0
  392. package/dist/wasm-Dm9SFfrx.js +7 -0
  393. package/dist/web-BbvN_Lei.js +2846 -0
  394. package/dist/wgsl-SXl3EZUN.js +6 -0
  395. package/dist/wit-Cw0CTVY0.js +6 -0
  396. package/dist/xml-CNXGTZ6Z.js +8 -0
  397. package/dist/xsl-BmSZphgC.js +1 -1
  398. package/dist/yaml-DZqZ2PBD.js +6 -0
  399. package/package.json +37 -34
  400. package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
  401. package/dist/index-0ioNhtNM.js +0 -10
  402. package/dist/index-437EL2iq.js +0 -52
  403. package/dist/index-B695uy69.js +0 -9
  404. package/dist/index-BEZCAdXQ.js +0 -1568
  405. package/dist/index-BGQepRFJ.js +0 -27
  406. package/dist/index-BZPx6jYI.js +0 -8
  407. package/dist/index-BaLuVb4t.js +0 -70
  408. package/dist/index-Bw62B28F.js +0 -31
  409. package/dist/index-By-GFSsC.js +0 -245
  410. package/dist/index-ByaXH_ih.js +0 -10
  411. package/dist/index-CCKe-Mpx.js +0 -6
  412. package/dist/index-Cv867SGx.js +0 -13
  413. package/dist/index-CvA4FcaC.js +0 -677
  414. package/dist/index-D2LZVjSn.js +0 -82
  415. package/dist/index-DFZozV_h.js +0 -68
  416. package/dist/index-DJQkmo5O.js +0 -49
  417. package/dist/index-DLohNuco.js +0 -36
  418. package/dist/index-DrFfdHac.js +0 -144
  419. package/dist/index-DrlYGDRT.js +0 -119
  420. package/dist/index-Dz8CQngS.js +0 -181
  421. package/dist/index-cd1ceFJg.js +0 -6973
  422. package/dist/index-rKs9bXHr.js +0 -6
  423. package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
  424. package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
  425. package/dist/web-BwFNdl01.js +0 -697
@@ -0,0 +1,610 @@
1
+ "use client";
2
+ import { g as oe, d as Ee, c as pt, e as Ze, i as j } from "./floating-ui.utils.dom-jr2suqy2.js";
3
+ import { d as et, e as tt } from "./detectBrowser-Dn2N72k1.js";
4
+ import { o as N } from "./owner-rKN292Q9.js";
5
+ import { u as z } from "./useIsoLayoutEffect-DpJo20by.js";
6
+ import { T as Me, u as ge } from "./useTimeout-DAqPwigF.js";
7
+ import { A as bt, u as nt } from "./useAnimationFrame-DIc6eFHa.js";
8
+ import { N as mt, c as Pe, E as ht } from "./useRenderElement-DNB2vtF1.js";
9
+ import * as v from "react";
10
+ import { b as gt, e as vt, t as rt, f as ke, c as Ge, h as Ne, g as We, i as Ye, j as De, k as yt, l as Et, C as kt, m as ot, n as wt } from "./popupStateMapping-BT9Y_jIq.js";
11
+ import { u as ae } from "./useValueAsRef-LhoZc6As.js";
12
+ import { u as Z } from "./useStableCallback-CudqoENs.js";
13
+ import { b as Tt, o as Rt, c as re, f as St, a as Ct } from "./createBaseUIEventDetails-CqidROtw.js";
14
+ import { r as X } from "./useOpenChangeComplete-DkeH9FGJ.js";
15
+ import { jsxs as xt, jsx as ve } from "react/jsx-runtime";
16
+ import { j as Ve, g as Be, a as K, c as R, d as st, b as fe } from "./element-DSo91iOi.js";
17
+ import { i as Ot, a as Ft, s as It, b as He, c as Lt } from "./event-BCa0Un_3.js";
18
+ import { j as At } from "./composite-BASdnlNo.js";
19
+ import { u as Mt } from "./useValueChanged-Bissqjjn.js";
20
+ let Xe = {}, $e = {}, qe = "";
21
+ function Pt(e) {
22
+ if (typeof document > "u")
23
+ return !1;
24
+ const r = N(e);
25
+ return oe(r).innerWidth - r.documentElement.clientWidth > 0;
26
+ }
27
+ function Gt(e) {
28
+ if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u")
29
+ return !1;
30
+ const t = N(e), n = t.documentElement, o = t.body, i = Ee(n) ? n : o, s = i.style.overflowY, b = n.style.scrollbarGutter;
31
+ n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
32
+ const k = i.offsetWidth;
33
+ i.style.overflowY = "hidden";
34
+ const w = i.offsetWidth;
35
+ return i.style.overflowY = s, n.style.scrollbarGutter = b, k === w;
36
+ }
37
+ function Nt(e) {
38
+ const r = N(e), t = r.documentElement, n = r.body, o = Ee(t) ? t : n, i = {
39
+ overflowY: o.style.overflowY,
40
+ overflowX: o.style.overflowX
41
+ };
42
+ return Object.assign(o.style, {
43
+ overflowY: "hidden",
44
+ overflowX: "hidden"
45
+ }), () => {
46
+ Object.assign(o.style, i);
47
+ };
48
+ }
49
+ function Wt(e) {
50
+ const r = N(e), t = r.documentElement, n = r.body, o = oe(t);
51
+ let i = 0, s = 0, b = !1;
52
+ const k = bt.create();
53
+ if (tt && (o.visualViewport?.scale ?? 1) !== 1)
54
+ return () => {
55
+ };
56
+ function w() {
57
+ const Y = o.getComputedStyle(t), O = o.getComputedStyle(n), m = (Y.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
58
+ i = t.scrollTop, s = t.scrollLeft, Xe = {
59
+ scrollbarGutter: t.style.scrollbarGutter,
60
+ overflowY: t.style.overflowY,
61
+ overflowX: t.style.overflowX
62
+ }, qe = t.style.scrollBehavior, $e = {
63
+ position: n.style.position,
64
+ height: n.style.height,
65
+ width: n.style.width,
66
+ boxSizing: n.style.boxSizing,
67
+ overflowY: n.style.overflowY,
68
+ overflowX: n.style.overflowX,
69
+ scrollBehavior: n.style.scrollBehavior
70
+ };
71
+ const f = t.scrollHeight > t.clientHeight, a = t.scrollWidth > t.clientWidth, W = Y.overflowY === "scroll" || O.overflowY === "scroll", y = Y.overflowX === "scroll" || O.overflowX === "scroll", S = Math.max(0, o.innerWidth - n.clientWidth), M = Math.max(0, o.innerHeight - n.clientHeight), C = parseFloat(O.marginTop) + parseFloat(O.marginBottom), F = parseFloat(O.marginLeft) + parseFloat(O.marginRight), U = Ee(t) ? t : n;
72
+ if (b = Gt(e), b) {
73
+ t.style.scrollbarGutter = m, U.style.overflowY = "hidden", U.style.overflowX = "hidden";
74
+ return;
75
+ }
76
+ Object.assign(t.style, {
77
+ scrollbarGutter: m,
78
+ overflowY: "hidden",
79
+ overflowX: "hidden"
80
+ }), (f || W) && (t.style.overflowY = "scroll"), (a || y) && (t.style.overflowX = "scroll"), Object.assign(n.style, {
81
+ position: "relative",
82
+ height: C || M ? `calc(100dvh - ${C + M}px)` : "100dvh",
83
+ width: F || S ? `calc(100vw - ${F + S}px)` : "100vw",
84
+ boxSizing: "border-box",
85
+ overflow: "hidden",
86
+ scrollBehavior: "unset"
87
+ }), n.scrollTop = i, n.scrollLeft = s, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
88
+ }
89
+ function L() {
90
+ Object.assign(t.style, Xe), Object.assign(n.style, $e), b || (t.scrollTop = i, t.scrollLeft = s, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = qe);
91
+ }
92
+ function x() {
93
+ L(), k.request(w);
94
+ }
95
+ return w(), o.addEventListener("resize", x), () => {
96
+ k.cancel(), L(), typeof o.removeEventListener == "function" && o.removeEventListener("resize", x);
97
+ };
98
+ }
99
+ class Yt {
100
+ lockCount = 0;
101
+ restore = null;
102
+ timeoutLock = Me.create();
103
+ timeoutUnlock = Me.create();
104
+ acquire(r) {
105
+ return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(r)), this.release;
106
+ }
107
+ release = () => {
108
+ this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
109
+ };
110
+ unlock = () => {
111
+ this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
112
+ };
113
+ lock(r) {
114
+ if (this.lockCount === 0 || this.restore !== null)
115
+ return;
116
+ const n = N(r).documentElement, o = oe(n).getComputedStyle(n).overflowY;
117
+ if (o === "hidden" || o === "clip") {
118
+ this.restore = mt;
119
+ return;
120
+ }
121
+ const i = et || !Pt(r);
122
+ this.restore = i ? Nt(r) : Wt(r);
123
+ }
124
+ }
125
+ const Dt = new Yt();
126
+ function dn(e = !0, r = null) {
127
+ z(() => {
128
+ if (e)
129
+ return Dt.acquire(r);
130
+ }, [e, r]);
131
+ }
132
+ let je = 0;
133
+ function de(e, r = {}) {
134
+ const {
135
+ preventScroll: t = !1,
136
+ cancelPrevious: n = !0,
137
+ sync: o = !1
138
+ } = r;
139
+ n && cancelAnimationFrame(je);
140
+ const i = () => e?.focus({
141
+ preventScroll: t
142
+ });
143
+ o ? i() : je = requestAnimationFrame(i);
144
+ }
145
+ const pe = {
146
+ inert: /* @__PURE__ */ new WeakMap(),
147
+ "aria-hidden": /* @__PURE__ */ new WeakMap()
148
+ }, Ke = "data-base-ui-inert", ye = {
149
+ inert: /* @__PURE__ */ new WeakSet(),
150
+ "aria-hidden": /* @__PURE__ */ new WeakSet()
151
+ };
152
+ let Q = /* @__PURE__ */ new WeakMap(), be = 0;
153
+ function Vt(e) {
154
+ return ye[e];
155
+ }
156
+ function ct(e) {
157
+ return e ? pt(e) ? e.host : ct(e.parentNode) : null;
158
+ }
159
+ const me = (e, r) => r.map((t) => {
160
+ if (e.contains(t))
161
+ return t;
162
+ const n = ct(t);
163
+ return e.contains(n) ? n : null;
164
+ }).filter((t) => t != null), ze = (e) => {
165
+ const r = /* @__PURE__ */ new Set();
166
+ return e.forEach((t) => {
167
+ let n = t;
168
+ for (; n && !r.has(n); )
169
+ r.add(n), n = n.parentNode;
170
+ }), r;
171
+ }, Ue = (e, r, t) => {
172
+ const n = [], o = (i) => {
173
+ !i || t.has(i) || Array.from(i.children).forEach((s) => {
174
+ Ze(s) !== "script" && (r.has(s) ? o(s) : n.push(s));
175
+ });
176
+ };
177
+ return o(e), n;
178
+ };
179
+ function Bt(e, r, t, n, {
180
+ mark: o = !0,
181
+ markerIgnoreElements: i = []
182
+ }) {
183
+ const s = n ? "inert" : t ? "aria-hidden" : null;
184
+ let b = null, k = null;
185
+ const w = me(r, e), L = o ? me(r, i) : [], x = new Set(L), Y = o ? Ue(r, ze(w), new Set(w)).filter((c) => !x.has(c)) : [], O = [], B = [];
186
+ if (s) {
187
+ const c = pe[s], m = Vt(s);
188
+ k = m, b = c;
189
+ const f = me(r, Array.from(r.querySelectorAll("[aria-live]"))), a = w.concat(f);
190
+ Ue(r, ze(a), new Set(a)).forEach((y) => {
191
+ const S = y.getAttribute(s), M = S !== null && S !== "false", C = (c.get(y) || 0) + 1;
192
+ c.set(y, C), O.push(y), C === 1 && M && m.add(y), M || y.setAttribute(s, s === "inert" ? "" : "true");
193
+ });
194
+ }
195
+ return o && Y.forEach((c) => {
196
+ const m = (Q.get(c) || 0) + 1;
197
+ Q.set(c, m), B.push(c), m === 1 && c.setAttribute(Ke, "");
198
+ }), be += 1, () => {
199
+ b && O.forEach((c) => {
200
+ const f = (b.get(c) || 0) - 1;
201
+ b.set(c, f), f || (!k?.has(c) && s && c.removeAttribute(s), k?.delete(c));
202
+ }), o && B.forEach((c) => {
203
+ const m = (Q.get(c) || 0) - 1;
204
+ Q.set(c, m), m || c.removeAttribute(Ke);
205
+ }), be -= 1, be || (pe.inert = /* @__PURE__ */ new WeakMap(), pe["aria-hidden"] = /* @__PURE__ */ new WeakMap(), ye.inert = /* @__PURE__ */ new WeakSet(), ye["aria-hidden"] = /* @__PURE__ */ new WeakSet(), Q = /* @__PURE__ */ new WeakMap());
206
+ };
207
+ }
208
+ function _e(e, r = {}) {
209
+ const {
210
+ ariaHidden: t = !1,
211
+ inert: n = !1,
212
+ mark: o = !0,
213
+ markerIgnoreElements: i = []
214
+ } = r, s = N(e[0]).body;
215
+ return Bt(e, s, t, n, {
216
+ mark: o,
217
+ markerIgnoreElements: i
218
+ });
219
+ }
220
+ function Ht(e, r) {
221
+ const t = oe(e.target);
222
+ return e instanceof t.KeyboardEvent ? "keyboard" : e instanceof t.FocusEvent ? r || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof t.MouseEvent ? r || (e.detail === 0 ? "keyboard" : "mouse") : "";
223
+ }
224
+ const Je = 20;
225
+ let $ = [];
226
+ function we() {
227
+ $ = $.filter((e) => e.deref()?.isConnected);
228
+ }
229
+ function Xt(e) {
230
+ we(), e && Ze(e) !== "body" && ($.push(new WeakRef(e)), $.length > Je && ($ = $.slice(-Je)));
231
+ }
232
+ function he() {
233
+ return we(), $[$.length - 1]?.deref();
234
+ }
235
+ function $t(e) {
236
+ if (!e)
237
+ return null;
238
+ const r = ke();
239
+ return ot(e, r) ? e : rt(e, r)[0] || e;
240
+ }
241
+ function qt(e) {
242
+ return !e || !e.isConnected ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : At(e);
243
+ }
244
+ function Qe(e, r) {
245
+ if (!r.current.includes("floating") && !e.getAttribute("role")?.includes("dialog"))
246
+ return;
247
+ const t = ke(), o = wt(e, t).filter((s) => {
248
+ const b = s.getAttribute("data-tabindex") || "";
249
+ return ot(s, t) || s.hasAttribute("data-tabindex") && !b.startsWith("-");
250
+ }), i = e.getAttribute("tabindex");
251
+ r.current.includes("floating") || o.length === 0 ? i !== "0" && e.setAttribute("tabindex", "0") : (i !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
252
+ }
253
+ function pn(e) {
254
+ const {
255
+ context: r,
256
+ children: t,
257
+ disabled: n = !1,
258
+ initialFocus: o = !0,
259
+ returnFocus: i = !0,
260
+ restoreFocus: s = !1,
261
+ modal: b = !0,
262
+ closeOnFocusOut: k = !0,
263
+ openInteractionType: w = "",
264
+ nextFocusableElement: L,
265
+ previousFocusableElement: x,
266
+ beforeContentFocusGuardRef: Y,
267
+ externalTree: O,
268
+ getInsideElements: B
269
+ } = e, c = "rootStore" in r ? r.rootStore : r, m = c.useState("open"), f = c.useState("domReferenceElement"), a = c.useState("floatingElement"), {
270
+ events: W,
271
+ dataRef: y
272
+ } = c.context, S = Z(() => y.current.floatingContext?.nodeId), M = o === !1, C = Ve(f) && M, F = v.useRef(["content"]), U = ae(o), ee = ae(i), Te = ae(w), D = gt(O), g = vt(), V = v.useRef(!1), te = v.useRef(!1), se = v.useRef(!1), Re = v.useRef(-1), Se = v.useRef(""), ce = v.useRef(""), ie = v.useRef(null), le = v.useRef(null), it = Pe(ie, Y, g?.beforeInsideRef), lt = Pe(le, g?.afterInsideRef), Ce = ge(), xe = ge(), Oe = nt(), ut = g != null, h = Be(a), q = Z((l = h) => l ? rt(l, ke()) : []), H = Z(() => B?.().filter((l) => l != null) ?? []), _ = Z((l) => {
273
+ const E = q(l);
274
+ return F.current.map(() => E).filter(Boolean).flat();
275
+ });
276
+ v.useEffect(() => {
277
+ if (n || !b)
278
+ return;
279
+ function l(I) {
280
+ I.key === "Tab" && R(h, K(N(h))) && q().length === 0 && !C && It(I);
281
+ }
282
+ const E = N(h);
283
+ return E.addEventListener("keydown", l), () => {
284
+ E.removeEventListener("keydown", l);
285
+ };
286
+ }, [n, f, h, b, F, C, q, _]), v.useEffect(() => {
287
+ if (n || !m)
288
+ return;
289
+ const l = N(h);
290
+ function E() {
291
+ se.current = !1;
292
+ }
293
+ function I(p) {
294
+ const d = fe(p), P = H(), T = R(a, d) || R(f, d) || R(g?.portalNode, d) || P.some((u) => u === d || R(u, d));
295
+ se.current = !T, ce.current = p.pointerType || "keyboard", d?.closest(`[${kt}]`) && (te.current = !0);
296
+ }
297
+ function A() {
298
+ ce.current = "keyboard";
299
+ }
300
+ return l.addEventListener("pointerdown", I, !0), l.addEventListener("pointerup", E, !0), l.addEventListener("pointercancel", E, !0), l.addEventListener("keydown", A, !0), () => {
301
+ l.removeEventListener("pointerdown", I, !0), l.removeEventListener("pointerup", E, !0), l.removeEventListener("pointercancel", E, !0), l.removeEventListener("keydown", A, !0);
302
+ };
303
+ }, [n, a, f, h, m, g, H]), v.useEffect(() => {
304
+ if (n || !k)
305
+ return;
306
+ const l = N(h);
307
+ function E() {
308
+ te.current = !0, xe.start(0, () => {
309
+ te.current = !1;
310
+ });
311
+ }
312
+ function I(T) {
313
+ const u = fe(T), ne = q().indexOf(u);
314
+ ne !== -1 && (Re.current = ne);
315
+ }
316
+ function A(T) {
317
+ const u = T.relatedTarget, J = T.currentTarget, ne = fe(T);
318
+ queueMicrotask(() => {
319
+ const Ie = S(), Le = c.context.triggerElements, at = H(), ft = u?.hasAttribute(Ge("focus-guard")) && [ie.current, le.current, g?.beforeInsideRef.current, g?.afterInsideRef.current, g?.beforeOutsideRef.current, g?.afterOutsideRef.current, X(x), X(L)].includes(u), dt = !(R(f, u) || R(a, u) || R(u, a) || R(g?.portalNode, u) || at.some((G) => G === u || R(G, u)) || u != null && Le.hasElement(u) || Le.hasMatchingElement((G) => R(G, u)) || ft || D && (We(D.nodesRef.current, Ie).find((G) => R(G.context?.elements.floating, u) || R(G.context?.elements.domReference, u)) || Ne(D.nodesRef.current, Ie).find((G) => [G.context?.elements.floating, Be(G.context?.elements.floating)].includes(u) || G.context?.elements.domReference === u)));
320
+ if (J === f && h && Qe(h, F), s && J !== f && !qt(ne) && K(l) === l.body) {
321
+ if (j(h) && (h.focus(), s === "popup")) {
322
+ Oe.request(() => {
323
+ h.focus();
324
+ });
325
+ return;
326
+ }
327
+ const G = Re.current, ue = q(), Ae = ue[G] || ue[ue.length - 1] || h;
328
+ j(Ae) && Ae.focus();
329
+ }
330
+ if (y.current.insideReactTree) {
331
+ y.current.insideReactTree = !1;
332
+ return;
333
+ }
334
+ (C || !b) && u && dt && !te.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
335
+ // For an "untrapped" typeable combobox (input role=combobox with
336
+ // initialFocus=false), re-opening the popup and tabbing out should still close it even
337
+ // when the previously focused element (e.g. the next tabbable outside the popup) is
338
+ // focused again. Otherwise, the popup remains open on the second Tab sequence:
339
+ // click input -> Tab (closes) -> click input -> Tab.
340
+ // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
341
+ (C || u !== he()) && (V.current = !0, c.setOpen(!1, re(St, T)));
342
+ });
343
+ }
344
+ function p() {
345
+ se.current || (y.current.insideReactTree = !0, Ce.start(0, () => {
346
+ y.current.insideReactTree = !1;
347
+ }));
348
+ }
349
+ const d = j(f) ? f : null, P = [];
350
+ if (!(!a && !d))
351
+ return d && (d.addEventListener("focusout", A), d.addEventListener("pointerdown", E), P.push(() => {
352
+ d.removeEventListener("focusout", A), d.removeEventListener("pointerdown", E);
353
+ })), a && (a.addEventListener("focusin", I), a.addEventListener("focusout", A), g && (a.addEventListener("focusout", p, !0), P.push(() => {
354
+ a.removeEventListener("focusout", p, !0);
355
+ })), P.push(() => {
356
+ a.removeEventListener("focusin", I), a.removeEventListener("focusout", A);
357
+ })), () => {
358
+ P.forEach((T) => {
359
+ T();
360
+ });
361
+ };
362
+ }, [n, f, a, h, b, D, g, c, k, s, q, C, S, F, y, Ce, xe, Oe, L, x, H]), v.useEffect(() => {
363
+ if (n || !a || !m)
364
+ return;
365
+ const l = Array.from(g?.portalNode?.querySelectorAll(`[${Ge("portal")}]`) || []), I = (D ? Ne(D.nodesRef.current, S()) : []).find((u) => Ve(u.context?.elements.domReference || null))?.context?.elements.domReference, p = [...[a, ...l, ie.current, le.current, g?.beforeOutsideRef.current, g?.afterOutsideRef.current, ...H()], I, X(x), X(L), C ? f : null].filter((u) => u != null), d = _e(p, {
366
+ ariaHidden: b || C,
367
+ mark: !1
368
+ }), P = [a, ...l].filter((u) => u != null), T = _e(P);
369
+ return () => {
370
+ T(), d();
371
+ };
372
+ }, [m, n, f, a, b, F, g, C, D, S, L, x, H]), z(() => {
373
+ if (!m || n || !j(h))
374
+ return;
375
+ const l = N(h), E = K(l);
376
+ queueMicrotask(() => {
377
+ const I = _(h), A = U.current, p = typeof A == "function" ? A(Te.current || "") : A;
378
+ if (p === void 0 || p === !1)
379
+ return;
380
+ let d;
381
+ p === !0 || p === null ? d = I[0] || h : d = X(p), d = d || I[0] || h, !R(h, E) && de(d, {
382
+ preventScroll: d === h
383
+ });
384
+ });
385
+ }, [n, m, h, M, _, U, Te]), z(() => {
386
+ if (n || !h)
387
+ return;
388
+ const l = N(h), E = K(l);
389
+ Xt(E);
390
+ function I(p) {
391
+ if (p.open || (Se.current = Ht(p.nativeEvent, ce.current)), p.reason === Tt && p.nativeEvent.type === "mouseleave" && (V.current = !0), p.reason === Rt)
392
+ if (p.nested)
393
+ V.current = !1;
394
+ else if (Ot(p.nativeEvent) || Ft(p.nativeEvent))
395
+ V.current = !1;
396
+ else {
397
+ let d = !1;
398
+ document.createElement("div").focus({
399
+ get preventScroll() {
400
+ return d = !0, !1;
401
+ }
402
+ }), d ? V.current = !1 : V.current = !0;
403
+ }
404
+ }
405
+ W.on("openchange", I);
406
+ function A() {
407
+ const p = ee.current;
408
+ let d = typeof p == "function" ? p(Se.current) : p;
409
+ if (d === void 0 || d === !1)
410
+ return null;
411
+ if (d === null && (d = !0), typeof d == "boolean") {
412
+ const T = f || he();
413
+ return T && T.isConnected ? T : null;
414
+ }
415
+ const P = f || he();
416
+ return X(d) || P || null;
417
+ }
418
+ return () => {
419
+ W.off("openchange", I);
420
+ const p = K(l), d = H(), P = R(a, p) || d.some((u) => u === p || R(u, p)) || D && We(D.nodesRef.current, S(), !1).some((u) => R(u.context?.elements.floating, p)), T = A();
421
+ queueMicrotask(() => {
422
+ const u = $t(T), J = typeof ee.current != "boolean";
423
+ // eslint-disable-next-line react-hooks/exhaustive-deps
424
+ ee.current && !V.current && j(u) && // If the focus moved somewhere else after mount, avoid returning focus
425
+ // since it likely entered a different element which should be
426
+ // respected: https://github.com/floating-ui/floating-ui/issues/2607
427
+ (!(!J && u !== p && p !== l.body) || P) && u.focus({
428
+ preventScroll: !0
429
+ }), V.current = !1;
430
+ });
431
+ };
432
+ }, [n, a, h, ee, y, W, D, f, S, H]), z(() => {
433
+ if (!tt || m || !a)
434
+ return;
435
+ const l = K(N(a));
436
+ !j(l) || !st(l) || R(a, l) && l.blur();
437
+ }, [m, a]), z(() => {
438
+ if (!(n || !g))
439
+ return g.setFocusManagerState({
440
+ modal: b,
441
+ closeOnFocusOut: k,
442
+ open: m,
443
+ onOpenChange: c.setOpen,
444
+ domReference: f
445
+ }), () => {
446
+ g.setFocusManagerState(null);
447
+ };
448
+ }, [n, g, b, m, c, k, f]), z(() => {
449
+ if (!(n || !h))
450
+ return Qe(h, F), () => {
451
+ queueMicrotask(we);
452
+ };
453
+ }, [n, h, F]);
454
+ const Fe = !n && (b ? !C : !0) && (ut || b);
455
+ return /* @__PURE__ */ xt(v.Fragment, {
456
+ children: [Fe && /* @__PURE__ */ ve(Ye, {
457
+ "data-type": "inside",
458
+ ref: it,
459
+ onFocus: (l) => {
460
+ if (b) {
461
+ const E = _();
462
+ de(E[E.length - 1]);
463
+ } else g?.portalNode && (V.current = !1, De(l, g.portalNode) ? yt(f)?.focus() : X(x ?? g.beforeOutsideRef)?.focus());
464
+ }
465
+ }), t, Fe && /* @__PURE__ */ ve(Ye, {
466
+ "data-type": "inside",
467
+ ref: lt,
468
+ onFocus: (l) => {
469
+ b ? de(_()[0]) : g?.portalNode && (k && (V.current = !0), De(l, g.portalNode) ? Et(f)?.focus() : X(L ?? g.afterOutsideRef)?.focus());
470
+ }
471
+ })]
472
+ });
473
+ }
474
+ function bn(e, r = {}) {
475
+ const t = "rootStore" in e ? e.rootStore : e, n = t.context.dataRef, {
476
+ enabled: o = !0,
477
+ event: i = "click",
478
+ toggle: s = !0,
479
+ ignoreMouse: b = !1,
480
+ stickIfOpen: k = !0,
481
+ touchOpenDelay: w = 0,
482
+ reason: L = Ct
483
+ } = r, x = v.useRef(void 0), Y = nt(), O = ge(), B = v.useMemo(() => ({
484
+ onPointerDown(c) {
485
+ x.current = c.pointerType;
486
+ },
487
+ onMouseDown(c) {
488
+ const m = x.current, f = c.nativeEvent, a = t.select("open");
489
+ if (c.button !== 0 || i === "click" || He(m, !0) && b)
490
+ return;
491
+ const W = n.current.openEvent, y = W?.type, S = t.select("domReferenceElement") !== c.currentTarget, M = a && S || !(a && s && (!(W && k) || y === "click" || y === "mousedown"));
492
+ if (st(f.target)) {
493
+ const F = re(L, f, f.target);
494
+ M && m === "touch" && w > 0 ? O.start(w, () => {
495
+ t.setOpen(!0, F);
496
+ }) : t.setOpen(M, F);
497
+ return;
498
+ }
499
+ const C = c.currentTarget;
500
+ Y.request(() => {
501
+ const F = re(L, f, C);
502
+ M && m === "touch" && w > 0 ? O.start(w, () => {
503
+ t.setOpen(!0, F);
504
+ }) : t.setOpen(M, F);
505
+ });
506
+ },
507
+ onClick(c) {
508
+ if (i === "mousedown-only")
509
+ return;
510
+ const m = x.current;
511
+ if (i === "mousedown" && m) {
512
+ x.current = void 0;
513
+ return;
514
+ }
515
+ if (He(m, !0) && b)
516
+ return;
517
+ const f = t.select("open"), a = n.current.openEvent, W = t.select("domReferenceElement") !== c.currentTarget, y = f && W || !(f && s && (!(a && k) || Lt(a))), S = re(L, c.nativeEvent, c.currentTarget);
518
+ y && m === "touch" && w > 0 ? O.start(w, () => {
519
+ t.setOpen(!0, S);
520
+ }) : t.setOpen(y, S);
521
+ },
522
+ onKeyDown() {
523
+ x.current = void 0;
524
+ }
525
+ }), [n, i, b, t, k, s, Y, O, w, L]);
526
+ return v.useMemo(() => o ? {
527
+ reference: B
528
+ } : ht, [o, B]);
529
+ }
530
+ function jt(e) {
531
+ const r = v.useRef(""), t = v.useCallback((o) => {
532
+ o.defaultPrevented || (r.current = o.pointerType, e(o, o.pointerType));
533
+ }, [e]);
534
+ return {
535
+ onClick: v.useCallback((o) => {
536
+ if (o.detail === 0) {
537
+ e(o, "keyboard");
538
+ return;
539
+ }
540
+ "pointerType" in o ? e(o, o.pointerType) : e(o, r.current), r.current = "";
541
+ }, [e]),
542
+ onPointerDown: t
543
+ };
544
+ }
545
+ function mn(e) {
546
+ const [r, t] = v.useState(null), n = Z((s, b) => {
547
+ e || t(b || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
548
+ // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
549
+ // will be "" in that case.
550
+ (et ? "touch" : ""));
551
+ });
552
+ Mt(e, (s) => {
553
+ s && !e && t(null);
554
+ });
555
+ const {
556
+ onClick: o,
557
+ onPointerDown: i
558
+ } = jt(n);
559
+ return v.useMemo(() => ({
560
+ openMethod: r,
561
+ triggerProps: {
562
+ onClick: o,
563
+ onPointerDown: i
564
+ }
565
+ }), [r, o, i]);
566
+ }
567
+ const Kt = /* @__PURE__ */ v.forwardRef(function(r, t) {
568
+ const {
569
+ cutout: n,
570
+ ...o
571
+ } = r;
572
+ let i;
573
+ if (n) {
574
+ const s = n?.getBoundingClientRect();
575
+ i = `polygon(
576
+ 0% 0%,
577
+ 100% 0%,
578
+ 100% 100%,
579
+ 0% 100%,
580
+ 0% 0%,
581
+ ${s.left}px ${s.top}px,
582
+ ${s.left}px ${s.bottom}px,
583
+ ${s.right}px ${s.bottom}px,
584
+ ${s.right}px ${s.top}px,
585
+ ${s.left}px ${s.top}px
586
+ )`;
587
+ }
588
+ return /* @__PURE__ */ ve("div", {
589
+ ref: t,
590
+ role: "presentation",
591
+ "data-base-ui-inert": "",
592
+ ...o,
593
+ style: {
594
+ position: "fixed",
595
+ inset: 0,
596
+ userSelect: "none",
597
+ WebkitUserSelect: "none",
598
+ clipPath: i
599
+ }
600
+ });
601
+ });
602
+ process.env.NODE_ENV !== "production" && (Kt.displayName = "InternalBackdrop");
603
+ export {
604
+ pn as F,
605
+ Kt as I,
606
+ dn as a,
607
+ bn as b,
608
+ de as e,
609
+ mn as u
610
+ };