efficient-shell 15.1.0 → 15.2.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 (258) hide show
  1. package/dist/Browser-42QAXKYW.js +44 -0
  2. package/dist/Calculator-C7APPCLE.js +29 -0
  3. package/dist/CurrencyConverter-VFTDSYQ3.js +21 -0
  4. package/dist/{Files-QNAN5FCH.js → Files-OAVWF6EW.js} +88 -88
  5. package/dist/Notepad-LNNSVEFG.js +24 -0
  6. package/dist/PdfViewer-ADPTYOAO.js +1 -0
  7. package/dist/PomodoroTimer-AGSHX2JO.js +91 -0
  8. package/dist/{Preview-I35MWZBC.js → Preview-GDNUQKGN.js} +40 -40
  9. package/dist/Sidebar-SWLVNJ6L.js +44 -0
  10. package/dist/{Stock-USRT7FDU.js → Stock-NNDDNQBJ.js} +4 -4
  11. package/dist/{Weather-CMA5QQYM.js → Weather-NGQALCXO.js} +20 -20
  12. package/dist/{WorldClock-WQ3XGK2J.js → WorldClock-LX4BQPZJ.js} +7 -7
  13. package/dist/ai/index.js +118 -118
  14. package/dist/apps/index.js +1 -1
  15. package/dist/bin/browser-check.js +1 -1
  16. package/dist/bin/media-host-check.js +1 -1
  17. package/dist/bin/ui-check.js +1 -1
  18. package/dist/charts/ChordChart.js +1 -1
  19. package/dist/charts/FlowChart.js +1 -1
  20. package/dist/charts/RadarChart.js +1 -1
  21. package/dist/charts/SankeyChart.js +1 -1
  22. package/dist/charts/SpecChart.js +1 -1
  23. package/dist/charts/SunburstChart.js +1 -1
  24. package/dist/charts/TreemapChart.js +1 -1
  25. package/dist/{chunk-P5J7G7OV.js → chunk-26I3OTGP.js} +1 -1
  26. package/dist/{chunk-RXCBSQA2.js → chunk-2M3KB4RH.js} +1 -1
  27. package/dist/chunk-2MUZFHZW.js +6 -0
  28. package/dist/{chunk-F7J7XRVI.js → chunk-2QUACZ6O.js} +1 -1
  29. package/dist/{chunk-3ZJAQSFS.js → chunk-32HTOZFT.js} +3 -3
  30. package/dist/{chunk-OYQWBJ37.js → chunk-3CIJFWB4.js} +1 -1
  31. package/dist/chunk-3HPCQMYH.js +15 -0
  32. package/dist/{chunk-TBDILJ6G.js → chunk-3TVMQCYR.js} +1 -1
  33. package/dist/{chunk-MPC3CHAO.js → chunk-4H4HJIWI.js} +1 -1
  34. package/dist/chunk-52YTUQW3.js +2 -0
  35. package/dist/{chunk-DNPAYNNU.js → chunk-5JQCWXIQ.js} +1 -1
  36. package/dist/{chunk-5SQHRDFC.js → chunk-5R25GNE2.js} +2 -2
  37. package/dist/{chunk-T46I4YOI.js → chunk-6F3XQJR6.js} +1 -1
  38. package/dist/{chunk-G3TC2GIA.js → chunk-7FYTL6SD.js} +1 -1
  39. package/dist/{chunk-YX3JD6PA.js → chunk-7M7GKYHS.js} +5 -5
  40. package/dist/{chunk-HTBACICQ.js → chunk-7QFXUNFA.js} +6 -6
  41. package/dist/{chunk-XIX72C7K.js → chunk-7T6NWAPG.js} +1 -1
  42. package/dist/chunk-7YJBWOQG.js +2 -0
  43. package/dist/{chunk-O7A7PH3R.js → chunk-7ZJ7VK2N.js} +1 -1
  44. package/dist/{chunk-7WF6LFOJ.js → chunk-ABAUJLI4.js} +1 -1
  45. package/dist/{chunk-DBBOD5QW.js → chunk-ABRCV7DQ.js} +1 -1
  46. package/dist/{chunk-AH5MLH54.js → chunk-AVUH35GW.js} +1 -1
  47. package/dist/{chunk-GY7MJTIZ.js → chunk-BMZL5BHA.js} +1 -1
  48. package/dist/{chunk-QCLKRFL4.js → chunk-BN37AISA.js} +1 -1
  49. package/dist/{chunk-47BGAQWD.js → chunk-C5Q4AKXO.js} +1 -1
  50. package/dist/chunk-CIT4YPEO.js +8 -0
  51. package/dist/{chunk-JPVD3VS7.js → chunk-CMC25URA.js} +6 -6
  52. package/dist/{chunk-24BF22NF.js → chunk-D3L2QCGF.js} +1 -1
  53. package/dist/chunk-DTZDOXK3.js +19 -0
  54. package/dist/{chunk-UYUNREAL.js → chunk-DXTRHNP4.js} +3 -3
  55. package/dist/{chunk-ZA6ANC2D.js → chunk-ECZEJ6BE.js} +6 -6
  56. package/dist/chunk-EQDYCSUX.js +13 -0
  57. package/dist/{chunk-XNKNX5L3.js → chunk-FM5ASDVN.js} +1 -1
  58. package/dist/{chunk-RA5G4K3N.js → chunk-FYHUCRLU.js} +1 -1
  59. package/dist/{chunk-JU722M5V.js → chunk-FZZBBZXZ.js} +6 -6
  60. package/dist/{chunk-U75MSD4F.js → chunk-GBCLIWUQ.js} +1 -1
  61. package/dist/{chunk-4RF3C523.js → chunk-HBAATSUS.js} +1 -1
  62. package/dist/{chunk-EOYKUV2U.js → chunk-HKXP3JJ5.js} +1 -1
  63. package/dist/{chunk-6RU2PGQK.js → chunk-HMTZP7NJ.js} +1 -1
  64. package/dist/chunk-HVWRF7N4.js +23 -0
  65. package/dist/chunk-IBPJJO4N.js +28 -0
  66. package/dist/{chunk-7D2QZ6JA.js → chunk-IIUFCTT6.js} +1 -1
  67. package/dist/{chunk-EHNW3UNC.js → chunk-IJWRJPX6.js} +6 -6
  68. package/dist/{chunk-TFQC67XR.js → chunk-ILH7RDAD.js} +9 -9
  69. package/dist/{chunk-IVEM2BPC.js → chunk-J43RRDEP.js} +1 -1
  70. package/dist/{chunk-ION3XGLN.js → chunk-JE4BGFDJ.js} +1 -1
  71. package/dist/{chunk-P3XXFQG5.js → chunk-JFTLFF52.js} +3 -3
  72. package/dist/chunk-JHEHW5BE.js +5 -0
  73. package/dist/{chunk-EHPY3BFC.js → chunk-JJ5W4BRW.js} +1 -1
  74. package/dist/{chunk-ULSVYSVN.js → chunk-JVITCC65.js} +1 -1
  75. package/dist/{chunk-PTLVNC3V.js → chunk-K3OLOLFT.js} +6 -6
  76. package/dist/{chunk-I7WAOKU2.js → chunk-KKZXGWSX.js} +2 -2
  77. package/dist/chunk-KWBYE5MN.js +9 -0
  78. package/dist/{chunk-Y6FULJWJ.js → chunk-L664TIIV.js} +6 -6
  79. package/dist/{chunk-2RLWGWOU.js → chunk-LFGJUJRZ.js} +13 -13
  80. package/dist/{chunk-3L7BEEBW.js → chunk-LKNDLXL3.js} +1 -1
  81. package/dist/{chunk-EN3GYSCE.js → chunk-M4NT6HGJ.js} +1 -1
  82. package/dist/{chunk-NHALP3MW.js → chunk-M5JEYZ3A.js} +4 -4
  83. package/dist/chunk-M6ODRWTM.js +7 -0
  84. package/dist/chunk-M6T7N4SN.js +14 -0
  85. package/dist/{chunk-2TNG32QT.js → chunk-MDGM5NUO.js} +8 -8
  86. package/dist/chunk-MQERW3QR.js +3 -0
  87. package/dist/{chunk-XFN4DOXP.js → chunk-NBV3XK3Q.js} +3 -3
  88. package/dist/{chunk-2XDO7FZC.js → chunk-NJJG2VAW.js} +12 -12
  89. package/dist/chunk-NTVACRKD.js +4 -0
  90. package/dist/chunk-NXPIX7NO.js +2 -0
  91. package/dist/chunk-OCITNQGF.js +11 -0
  92. package/dist/{chunk-7OVMWXFM.js → chunk-OCKOZV46.js} +1 -1
  93. package/dist/{chunk-UGA5NGW4.js → chunk-OEZC5N6J.js} +1 -1
  94. package/dist/{chunk-EDRELF6L.js → chunk-PAD65HG7.js} +1 -1
  95. package/dist/{chunk-MKHOXO5O.js → chunk-PYGXSGXC.js} +1 -1
  96. package/dist/{chunk-BUUAALHH.js → chunk-QBR73AJX.js} +20 -20
  97. package/dist/{chunk-Y5RTVKMB.js → chunk-QI2LJ7OL.js} +9 -9
  98. package/dist/{chunk-DO6P6LYU.js → chunk-QIAJ3QNV.js} +1 -1
  99. package/dist/{chunk-4BRVZAIW.js → chunk-QJY52ZHG.js} +1 -1
  100. package/dist/{chunk-R36VZ35L.js → chunk-QMUW35QL.js} +6 -6
  101. package/dist/chunk-QQ6TGD7K.js +92 -0
  102. package/dist/chunk-QVGASI5H.js +9 -0
  103. package/dist/chunk-QZYV4TDD.js +1 -0
  104. package/dist/{chunk-XJK6VNXV.js → chunk-S3F2TY7X.js} +1 -1
  105. package/dist/chunk-S6IW2F4J.js +8 -0
  106. package/dist/{chunk-HAEZUUDT.js → chunk-SKPAIZSC.js} +3 -3
  107. package/dist/{chunk-Y5YVKUM4.js → chunk-SXNT73VT.js} +19 -19
  108. package/dist/chunk-T43ATI2N.js +6 -0
  109. package/dist/{chunk-4SFWQPOB.js → chunk-T65TAQLW.js} +7 -7
  110. package/dist/{chunk-DOJSWVBX.js → chunk-TB7BO2XS.js} +6 -6
  111. package/dist/{chunk-NC5FIFAY.js → chunk-TVMDDQJP.js} +1 -1
  112. package/dist/{chunk-GVAVIYE6.js → chunk-TWSROAS7.js} +1 -1
  113. package/dist/{chunk-EHSK43WG.js → chunk-UA7SWROJ.js} +8 -8
  114. package/dist/chunk-UMLXFQVC.js +1 -0
  115. package/dist/{chunk-6X32SWQI.js → chunk-VIBGF2HJ.js} +1 -1
  116. package/dist/{chunk-WYAKASF3.js → chunk-VNKLIWNQ.js} +1 -1
  117. package/dist/{chunk-2SOGTOUQ.js → chunk-VQ3OSYTA.js} +4 -4
  118. package/dist/{chunk-EEAOFYW5.js → chunk-VTYALYW4.js} +12 -12
  119. package/dist/chunk-WHHHECBC.js +2 -0
  120. package/dist/chunk-XQMVECQM.js +15 -0
  121. package/dist/{chunk-6AYAB5FN.js → chunk-YVI2XJCB.js} +5 -5
  122. package/dist/{chunk-ZEGCKIAL.js → chunk-YX4QGW7Z.js} +3 -3
  123. package/dist/chunk-Z2MP46QJ.js +1 -0
  124. package/dist/chunk-ZC2FZLYX.js +4 -0
  125. package/dist/{chunk-SP4S4HUJ.js → chunk-ZQWKVLSY.js} +13 -13
  126. package/dist/{chunk-5O4HMXPQ.js → chunk-ZS36DB4X.js} +2 -2
  127. package/dist/chunk-ZUQ72WER.js +7 -0
  128. package/dist/{chunk-IZ6D4KGR.js → chunk-ZYWLX5EK.js} +3 -3
  129. package/dist/{chunk-CXEELIRW.js → chunk-ZZKBCNK6.js} +9 -9
  130. package/dist/data/DataTable.js +1 -1
  131. package/dist/data/EntityList.js +1 -1
  132. package/dist/data/Gantt.js +1 -1
  133. package/dist/data/ListLoadError.js +1 -1
  134. package/dist/data/ListToolbar.js +1 -1
  135. package/dist/data/ResizableTable.js +1 -1
  136. package/dist/data/statusColumn.js +1 -1
  137. package/dist/forms/AlignmentGrid.js +1 -1
  138. package/dist/forms/BorderInput.js +1 -1
  139. package/dist/forms/BrandAssetEditor.js +1 -1
  140. package/dist/forms/Button.js +1 -1
  141. package/dist/forms/ColorPicker.js +1 -1
  142. package/dist/forms/ComposerAttachments.js +1 -1
  143. package/dist/forms/CornersInput.js +1 -1
  144. package/dist/forms/DatePicker.js +1 -1
  145. package/dist/forms/DateRangePicker.js +1 -1
  146. package/dist/forms/DisplayChips.js +1 -1
  147. package/dist/forms/FilePicker.js +1 -1
  148. package/dist/forms/IconButton.js +1 -1
  149. package/dist/forms/IconPicker.js +1 -1
  150. package/dist/forms/Input.js +1 -1
  151. package/dist/forms/InputNumber.js +1 -1
  152. package/dist/forms/LinkPicker.js +1 -1
  153. package/dist/forms/MediaLibrary.js +1 -1
  154. package/dist/forms/MediaUploadField.js +1 -1
  155. package/dist/forms/MediaUploadGrid.js +1 -1
  156. package/dist/forms/MediaUsedInList.js +1 -1
  157. package/dist/forms/NumericKeypad.js +1 -1
  158. package/dist/forms/PictureTiles.js +1 -1
  159. package/dist/forms/PositionInput.js +1 -1
  160. package/dist/forms/RenameField.js +1 -1
  161. package/dist/forms/SearchInput.js +1 -1
  162. package/dist/forms/Segmented.d.ts +1 -1
  163. package/dist/forms/Segmented.js +1 -1
  164. package/dist/forms/Select.js +1 -1
  165. package/dist/forms/SidesInput.js +1 -1
  166. package/dist/forms/Slider.js +1 -1
  167. package/dist/forms/Snippet.js +1 -1
  168. package/dist/forms/SplitButton.js +1 -1
  169. package/dist/forms/TagInput.js +1 -1
  170. package/dist/forms/TextToolbar.js +1 -1
  171. package/dist/forms/UnitMenu.js +1 -1
  172. package/dist/forms/WidthsBar.js +1 -1
  173. package/dist/index.d.ts +1 -1
  174. package/dist/index.js +662 -662
  175. package/dist/map/index.js +10 -10
  176. package/dist/page-tabs/index.js +5 -5
  177. package/dist/pdf/index.js +1 -1
  178. package/dist/routine-index.json +1 -1
  179. package/dist/shell/AppUpdateBanner.js +1 -1
  180. package/dist/shell/ColoredBadge.js +1 -1
  181. package/dist/shell/ConfirmDialog.js +1 -1
  182. package/dist/shell/ContextMenu.js +1 -1
  183. package/dist/shell/Dialog.js +1 -1
  184. package/dist/shell/Drawer.js +1 -1
  185. package/dist/shell/DropdownMenu.js +1 -1
  186. package/dist/shell/EditableGrid.js +1 -1
  187. package/dist/shell/FloatingBar.js +1 -1
  188. package/dist/shell/GlobalSearch.js +1 -1
  189. package/dist/shell/HelpCenter.js +1 -1
  190. package/dist/shell/IconRail.js +1 -1
  191. package/dist/shell/ImageLightbox.js +1 -1
  192. package/dist/shell/ItemCount.js +1 -1
  193. package/dist/shell/LanguageSelect.js +1 -1
  194. package/dist/shell/Markdown.js +1 -1
  195. package/dist/shell/Popover.js +1 -1
  196. package/dist/shell/PopupMenu.js +1 -1
  197. package/dist/shell/ResizeHandle.js +1 -1
  198. package/dist/shell/SearchableSelect.js +1 -1
  199. package/dist/shell/SettingReset.js +1 -1
  200. package/dist/shell/SidebarLayout.js +1 -1
  201. package/dist/shell/SidebarNav.js +1 -1
  202. package/dist/shell/SortableList.js +1 -1
  203. package/dist/shell/StatusBadge.js +1 -1
  204. package/dist/shell/Tabs.js +1 -1
  205. package/dist/shell/Tooltip.js +1 -1
  206. package/dist/shell/TopNav.js +1 -1
  207. package/dist/shell/TransferProgress.js +1 -1
  208. package/dist/shell/Tree.js +1 -1
  209. package/dist/shell/discardGuard.js +1 -1
  210. package/dist/telemetry/index.js +1 -1
  211. package/dist/templates/AuthScreen.js +1 -1
  212. package/dist/templates/ChatTemplate.js +1 -1
  213. package/dist/templates/CheckoutTemplate.js +1 -1
  214. package/dist/templates/DashboardTemplate.js +1 -1
  215. package/dist/templates/DataTablePage.js +1 -1
  216. package/dist/templates/EmailTemplate.js +1 -1
  217. package/dist/templates/ErrorBoundary.d.ts +1 -1
  218. package/dist/templates/ErrorBoundary.js +1 -1
  219. package/dist/templates/FormLayoutPage.js +1 -1
  220. package/dist/templates/GalleryTemplate.js +1 -1
  221. package/dist/ui/index.js +1 -1
  222. package/dist/value-index.json +1 -1
  223. package/dist/version.js +1 -1
  224. package/package.json +1 -1
  225. package/dist/Browser-MILMPZK2.js +0 -44
  226. package/dist/Calculator-MW7S4UKX.js +0 -29
  227. package/dist/CurrencyConverter-P3HQXUX2.js +0 -21
  228. package/dist/Notepad-VXENTPT2.js +0 -24
  229. package/dist/PdfViewer-FWGHFO4N.js +0 -1
  230. package/dist/PomodoroTimer-LJ6VBFGX.js +0 -91
  231. package/dist/Sidebar-2TYZENQL.js +0 -44
  232. package/dist/chunk-4DNPUG3T.js +0 -7
  233. package/dist/chunk-A3VLZZHJ.js +0 -9
  234. package/dist/chunk-AJPQJ7TC.js +0 -6
  235. package/dist/chunk-ALZHFQRX.js +0 -4
  236. package/dist/chunk-B34UWI47.js +0 -1
  237. package/dist/chunk-CHDGSJLV.js +0 -8
  238. package/dist/chunk-EBODRYXS.js +0 -19
  239. package/dist/chunk-FFPIT2LB.js +0 -3
  240. package/dist/chunk-HX5QSQ2C.js +0 -2
  241. package/dist/chunk-KETNB4NQ.js +0 -2
  242. package/dist/chunk-M5IZ7QLQ.js +0 -7
  243. package/dist/chunk-MEP6CZJ3.js +0 -2
  244. package/dist/chunk-MNZAAQLH.js +0 -15
  245. package/dist/chunk-MYH5H43C.js +0 -1
  246. package/dist/chunk-NDCS4COQ.js +0 -11
  247. package/dist/chunk-OJYEGB74.js +0 -28
  248. package/dist/chunk-PWON7O3N.js +0 -9
  249. package/dist/chunk-RTK77DMP.js +0 -15
  250. package/dist/chunk-SYUCEN76.js +0 -92
  251. package/dist/chunk-VUBDHFG5.js +0 -4
  252. package/dist/chunk-W4IH3BE3.js +0 -23
  253. package/dist/chunk-W6REY3SV.js +0 -5
  254. package/dist/chunk-WBZO6WRU.js +0 -8
  255. package/dist/chunk-Y7D2CZ4H.js +0 -13
  256. package/dist/chunk-YTLUSBDY.js +0 -14
  257. package/dist/chunk-ZSVU44OB.js +0 -6
  258. /package/dist/{chunk-5YTZBYG4.js → chunk-LPQQNPH5.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DEFAULT_FLOW_CHART_LABELS,FlowChart as default,flowDescription,flowFileName}from"../chunk-OYQWBJ37.js";import"../chunk-FAERBT6Y.js";import"../chunk-MEP6CZJ3.js";import"../chunk-IVEM2BPC.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
2
+ export{DEFAULT_FLOW_CHART_LABELS,FlowChart as default,flowDescription,flowFileName}from"../chunk-3CIJFWB4.js";import"../chunk-FAERBT6Y.js";import"../chunk-7YJBWOQG.js";import"../chunk-J43RRDEP.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-MNZAAQLH.js";import"../chunk-24BF22NF.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-XQMVECQM.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SankeyChart as default}from"../chunk-PWON7O3N.js";import"../chunk-24BF22NF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{SankeyChart as default}from"../chunk-QVGASI5H.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{SpecChart as default}from"../chunk-DNPAYNNU.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-P5TSGXL4.js";import"../chunk-SAMPXZF3.js";import"../chunk-CK2YOGUS.js";import"../chunk-A6TOHNJY.js";import"../chunk-VFC6QUEN.js";import"../chunk-AQVPWUJ3.js";import"../chunk-465RRWBY.js";import"../chunk-MEFB2KGF.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
1
+ export{SpecChart as default}from"../chunk-5JQCWXIQ.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-P5TSGXL4.js";import"../chunk-SAMPXZF3.js";import"../chunk-CK2YOGUS.js";import"../chunk-A6TOHNJY.js";import"../chunk-VFC6QUEN.js";import"../chunk-AQVPWUJ3.js";import"../chunk-465RRWBY.js";import"../chunk-MEFB2KGF.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SunburstChart as default}from"../chunk-ZEGCKIAL.js";import"../chunk-24BF22NF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{SunburstChart as default}from"../chunk-YX4QGW7Z.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TreemapChart as default}from"../chunk-4DNPUG3T.js";import"../chunk-46BYGPGD.js";import"../chunk-24BF22NF.js";import"../chunk-CNYAHYE6.js";import"../chunk-G3TC2GIA.js";import"../chunk-AJPQJ7TC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{TreemapChart as default}from"../chunk-ZUQ72WER.js";import"../chunk-46BYGPGD.js";import"../chunk-D3L2QCGF.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,4 +1,4 @@
1
- import{Tooltip as r}from"./chunk-AJPQJ7TC.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
1
+ import{Tooltip as r}from"./chunk-2MUZFHZW.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
2
2
  /* @__PURE__ */t("circle",{cx:"2",cy:"3",r:"1.1"}),
3
3
  /* @__PURE__ */t("circle",{cx:"2",cy:"7",r:"1.1"}),
4
4
  /* @__PURE__ */t("circle",{cx:"2",cy:"11",r:"1.1"})]});function l({hint:n,dragging:i,revealClassName:c,marker:l}){const o=e().tree;/* @__PURE__ */
@@ -1,4 +1,4 @@
1
- import{CloseGlyph as e}from"./chunk-MPC3CHAO.js";import{humanSize as t,useFileIntake as n,FileIntakeAlert as r}from"./chunk-TNGIXSTM.js";import{IconButton_default as a}from"./chunk-MYH5H43C.js";import{Button_default as s}from"./chunk-MEP6CZJ3.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-NRHG4R2Q.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
1
+ import{CloseGlyph as e}from"./chunk-4H4HJIWI.js";import{humanSize as t,useFileIntake as n,FileIntakeAlert as r}from"./chunk-TNGIXSTM.js";import{IconButton_default as a}from"./chunk-QZYV4TDD.js";import{Button_default as s}from"./chunk-7YJBWOQG.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-NRHG4R2Q.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
2
2
  return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
3
3
  return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
4
4
  return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
@@ -0,0 +1,6 @@
1
+ import{onOverlayOpen as t}from"./chunk-PGN5ME7B.js";import{createShellPortal as e}from"./chunk-52YTUQW3.js";import{Z_LAYERS as r}from"./chunk-62LW225J.js";import{followAnchor as o,popupBounds as n,VIEWPORT_MARGIN as i,showingBox as a,placeBeside as l,placeArrow as c}from"./chunk-TAHHZGRH.js";import{useBrowserLayoutEffect as s}from"./chunk-PU2GJVMG.js";import{registerModalEscapeInterceptor as d,escapeSurfaceAbove as h}from"./chunk-TWVUQUUD.js";import{solidSurfaceStyle as u}from"./chunk-5FYDNH4Y.js";import{createContext as p,useContext as m,useState as f,useRef as x,useId as w,useEffect as g,isValidElement as b,cloneElement as v}from"react";import{jsxs as y,jsx as k}from"react/jsx-runtime";var H=p(!1),j=()=>m(H),T={top:"bottom-full left-1/2 -translate-x-1/2 mb-3",bottom:"top-full left-1/2 -translate-x-1/2 mt-3",left:"right-full top-1/2 -translate-y-1/2 mr-3",right:"left-full top-1/2 -translate-y-1/2 ml-3"};function W({content:p,side:m="top",delay:j=200,children:W,className:N="relative inline-flex",describe:M=!0,open:B}){const[U,G]=f(!1),P=(B??U)&&!(null==p||!1===p||""===p),[z,C]=f(null),D=x(void 0),E=x(null),R=x(null),Y=w(),$=x(!1),F=()=>{window.clearTimeout(D.current),$.current||E.current?.querySelector('[aria-haspopup][aria-expanded="true"]')||(D.current=window.setTimeout(()=>G(!0),j))},J=()=>{window.clearTimeout(D.current),G(!1)},L=t=>{t.currentTarget.contains(t.target)&&($.current=!0,J())},Q=()=>{$.current=!1,J()};g(()=>()=>window.clearTimeout(D.current),[]),s(()=>{if(!P)return void C(null);const t=()=>{const t=E.current,e=R.current;if(!t||!e)return;const r=n(t),o=Math.max(0,r.right-r.left-2*i),s=Math.max(0,r.bottom-r.top-2*i);e.style.maxWidth=`${o}px`,e.style.maxHeight=`${s}px`;const d=e.getBoundingClientRect();if(d.width<=0||d.height<=0)return;const h=t.getBoundingClientRect();if(!a(t))return void J();const u=l(h,d,m,r,12),p=c(h,u,d,16,6),f={anchor:{left:h.left,top:h.top,width:h.width,height:h.height},left:u.left-h.left,top:u.top-h.top,maxWidth:o,maxHeight:s,side:u.side,arrow:p&&{left:p.x-h.left,top:p.y-h.top}};C(t=>{return t&&(r=f,(e=t).anchor.left===r.anchor.left&&e.anchor.top===r.anchor.top&&e.anchor.width===r.anchor.width&&e.anchor.height===r.anchor.height&&e.left===r.left&&e.top===r.top&&e.maxWidth===r.maxWidth&&e.maxHeight===r.maxHeight&&e.side===r.side&&e.arrow?.left===r.arrow?.left&&e.arrow?.top===r.arrow?.top)?t:f;var e,r})};return t(),o(()=>E.current,t)},[P,m,p]),g(()=>{if(!P)return;const e=d(t=>"Escape"===t.key&&(J(),!h(E.current))),r=t(J);return()=>{e(),r()}},[P]);const V=P&&M?Y:void 0,q=b(W)?v(W,{"aria-describedby":[W.props["aria-describedby"],V].filter(Boolean).join(" ")||void 0}):W,A=P?u():void 0;/* @__PURE__ */
2
+ return y("span",{ref:E,className:N,"aria-describedby":b(W)?void 0:V,onMouseEnter:F,onMouseLeave:Q,onFocus:t=>{if(!t.currentTarget.contains(t.target))return;let e=!0;try{e=t.target.matches(":focus-visible")}catch{}e&&F()},onBlur:Q,onPointerDown:L,onClick:L,children:[
3
+ /* @__PURE__ */k(H.Provider,{value:!0,children:q}),P&&e(
4
+ /* @__PURE__ */y("span",{className:"pointer-events-none fixed left-0 top-0",style:{zIndex:r.hint,...z?.anchor},children:[
5
+ /* @__PURE__ */k("span",{ref:R,id:Y,role:"tooltip",className:`pointer-events-none absolute z-(--z-hint) box-border w-max overflow-hidden whitespace-normal break-words text-start rounded-md px-2 py-1 text-xs text-ink-strong ${z?"":T[m]}`,style:{...A,...z&&{left:z.left,top:z.top,maxWidth:z.maxWidth,maxHeight:z.maxHeight}},children:p}),(!z||z.arrow)&&
6
+ /* @__PURE__ */k("span",{"aria-hidden":"true",className:"rosh-tooltip-arrow","data-side":z?.side??m,style:{background:A?.background,"--rosh-tooltip-edge":A?.border,...z?.arrow&&{left:z.arrow.left,top:z.arrow.top}}})]}),document.body)]})}export{W as Tooltip,j as useInsideTooltip};
@@ -1,4 +1,4 @@
1
- import{Modal as e}from"./chunk-SYUCEN76.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
1
+ import{Modal as e}from"./chunk-QQ6TGD7K.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
2
2
  return i("div",{onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.stopPropagation(),a(e.target)||e.preventDefault()},children:/* @__PURE__ */i(e,{open:t,onClose:r,title:l,size:"sm",children:/* @__PURE__ */n("div",{className:"space-y-4",children:[o,
3
3
  /* @__PURE__ */n("div",{children:[
4
4
  /* @__PURE__ */i("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Appearance"}),
@@ -1,4 +1,4 @@
1
- import{Popover as e}from"./chunk-VUBDHFG5.js";import{IconButton_default as r}from"./chunk-MYH5H43C.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{Tooltip as a}from"./chunk-AJPQJ7TC.js";import{useShellStrings as t}from"./chunk-NRHG4R2Q.js";import{useRef as i}from"react";import{jsx as l,jsxs as o,Fragment as s}from"react/jsx-runtime";var c={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]},u={alignItems:"flex-start",paddingTop:"var(--space-8)",paddingBottom:"var(--space-4)"};function d({value:d,onChange:m,options:h,label:p,emptyValue:f,columns:g=5,cell:v,header:w,onPreview:b,tooltips:x=!0,disabled:N=!1,className:k=""}){const j=t(),y=j.iconPicker,A=j.iconNames,C=e=>e.label??A[e.value]??e.value,D=i([]),H=Math.max(0,h.findIndex(e=>e.value===d)),I=h[H],M=I?.value===f,P=i(null);/* @__PURE__ */
2
- return l(e,{className:k,disabled:N,triggerLabel:I?y.button(p,C(I)):p,"aria-label":p,initialFocus:P,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */l("span",M||!I?{className:"text-sm",children:I?C(I):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:I.icon}),
1
+ import{Popover as e}from"./chunk-ZC2FZLYX.js";import{IconButton_default as r}from"./chunk-QZYV4TDD.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{Tooltip as a}from"./chunk-2MUZFHZW.js";import{useShellStrings as t}from"./chunk-NRHG4R2Q.js";import{useRef as i}from"react";import{jsx as l,jsxs as o,Fragment as s}from"react/jsx-runtime";var c={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]},u={alignItems:"flex-start",paddingTop:"var(--space-8)",paddingBottom:"var(--space-4)"};function d({value:d,onChange:m,options:h,label:p,emptyValue:f,columns:g=5,cell:v,header:w,onPreview:b,tooltips:x=!0,disabled:N=!1,className:k=""}){const j=t(),y=j.iconPicker,D=j.iconNames,A=e=>e.label??D[e.value]??e.value,C=i([]),Z=Math.max(0,h.findIndex(e=>e.value===d)),I=h[Z],M=I?.value===f,R=i(null);/* @__PURE__ */
2
+ return l(e,{className:k,disabled:N,triggerLabel:I?y.button(p,A(I)):p,"aria-label":p,initialFocus:R,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */l("span",M||!I?{className:"text-sm",children:I?A(I):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:I.icon}),
3
3
  /* @__PURE__ */l(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */o(s,{children:["function"==typeof w?w({close:e}):w,
4
- /* @__PURE__ */l("div",{role:"listbox","aria-label":p,className:v?"grid gap-1 rosh-one-height-rows":"grid gap-1",style:{gridTemplateColumns:`repeat(${g}, ${v?.width??"2rem"})`},children:h.map((n,t)=>{const i=n.value===d,o=/* @__PURE__ */l(r,{ref:e=>{D.current[t]=e,t===H&&(P.current=e)},role:"option","aria-selected":i,"aria-label":C(n),pressed:i,tabIndex:t===H?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/g)+n[0],t=e%g+n[1];if(a<0||t<0||t>=g)return;const i=a*g+t;if(!(i>=h.length)){for(const[e,r]of D.current.entries())r?.setAttribute("tabindex",e===i?"0":"-1");D.current[i]?.focus()}})(t,e),onClick:()=>{m(n.value),e()},onMouseEnter:b?e=>b(n.value,e.currentTarget):void 0,style:v?{width:v.width,height:"auto",minHeight:v.height,...v.words?u:null}:void 0,children:/* @__PURE__ */l("span",{"aria-hidden":"true",className:v?"inline-flex":"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})},n.value);return x?/* @__PURE__ */l(a,{content:C(n),children:o},n.value):o})})]})})}export{d as IconPicker};
4
+ /* @__PURE__ */l("div",{role:"listbox","aria-label":p,className:v?"grid gap-1 rosh-one-height-rows":"grid gap-1",style:{gridTemplateColumns:`repeat(${g}, ${v?.width??"2rem"})`},children:h.map((n,t)=>{const i=n.value===d,o=/* @__PURE__ */l(r,{ref:e=>{C.current[t]=e,t===Z&&(R.current=e)},role:"option","aria-selected":i,"aria-label":A(n),pressed:i,tabIndex:t===Z?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/g)+n[0],t=e%g+n[1];if(a<0||t<0||t>=g)return;const i=a*g+t;if(!(i>=h.length)){for(const[e,r]of C.current.entries())r?.setAttribute("tabindex",e===i?"0":"-1");C.current[i]?.focus()}})(t,e),onClick:()=>{m(n.value),e()},onMouseEnter:b?e=>b(n.value,e.currentTarget):void 0,style:v?{width:v.width,height:"auto",minHeight:v.height,...v.words?u:null}:void 0,children:/* @__PURE__ */l("span",{"aria-hidden":"true",className:v?"inline-flex":"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})},n.value);return x?/* @__PURE__ */l(a,{content:A(n),children:o},n.value):o})})]})})}export{d as IconPicker};
@@ -1,4 +1,4 @@
1
- import{layoutFlow as e}from"./chunk-FAERBT6Y.js";import{Button_default as t}from"./chunk-MEP6CZJ3.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{CHART_INK as r,STATUS_VARS as o,SERIES_VARS as i}from"./chunk-TZFACUMR.js";import{useMemo as l,useRef as a,useId as c}from"react";import{jsxs as d,jsx as s}from"react/jsx-runtime";var h={downloadPng:"Download PNG",downloadSvg:"Download SVG",toPdf:"Add to the PDF"},m={label:"var(--ink-strong)",note:r.label,line:r.label},f={step:i[0],decision:o.warning,start:r.muted,end:r.muted};function u(e,t){return`${(e.title??"flowchart").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"flowchart"}.${t}`}function g(e){const t=new Map(e.nodes.map(e=>[e.id,e.label]));return e.edges.map(e=>`${t.get(e.from)} to ${t.get(e.to)}${e.label?` (${e.label})`:""}`).join("; ")}function w({node:e}){const t=f[e.kind],n=e.x+e.width/2,r=e.y+e.height/2,o=e.note?[...e.lines,e.note]:e.lines,i=r-15*(o.length-1)/2,l="decision"===e.kind?/* @__PURE__ */s("polygon",{points:`${n},${e.y} ${e.x+e.width},${r} ${n},${e.y+e.height} ${e.x},${r}`}):/* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:"step"===e.kind?4:e.height/2});/* @__PURE__ */
1
+ import{layoutFlow as e}from"./chunk-FAERBT6Y.js";import{Button_default as t}from"./chunk-7YJBWOQG.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{CHART_INK as r,STATUS_VARS as o,SERIES_VARS as i}from"./chunk-TZFACUMR.js";import{useMemo as l,useRef as a,useId as c}from"react";import{jsxs as d,jsx as s}from"react/jsx-runtime";var h={downloadPng:"Download PNG",downloadSvg:"Download SVG",toPdf:"Add to the PDF"},m={label:"var(--ink-strong)",note:r.label,line:r.label},f={step:i[0],decision:o.warning,start:r.muted,end:r.muted};function u(e,t){return`${(e.title??"flowchart").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"flowchart"}.${t}`}function g(e){const t=new Map(e.nodes.map(e=>[e.id,e.label]));return e.edges.map(e=>`${t.get(e.from)} to ${t.get(e.to)}${e.label?` (${e.label})`:""}`).join("; ")}function w({node:e}){const t=f[e.kind],n=e.x+e.width/2,r=e.y+e.height/2,o=e.note?[...e.lines,e.note]:e.lines,i=r-15*(o.length-1)/2,l="decision"===e.kind?/* @__PURE__ */s("polygon",{points:`${n},${e.y} ${e.x+e.width},${r} ${n},${e.y+e.height} ${e.x},${r}`}):/* @__PURE__ */s("rect",{x:e.x,y:e.y,width:e.width,height:e.height,rx:"step"===e.kind?4:e.height/2});/* @__PURE__ */
2
2
  return d("g",{fill:t,fillOpacity:.14,stroke:t,strokeWidth:1,children:[l,o.map((t,r)=>{const l=void 0!==e.note&&r===o.length-1;/* @__PURE__ */
3
3
  return s("text",{x:n,y:i+15*r,textAnchor:"middle",dominantBaseline:"central",fontSize:l?11:12.5,fontWeight:l?400:600,fill:l?m.note:m.label,fillOpacity:1,stroke:"none",children:t},r)})]})}function p(e){const t=e.cloneNode(!0),n=[e,...Array.from(e.querySelectorAll("*"))],r=[t,...Array.from(t.querySelectorAll("*"))],o=e.ownerDocument.defaultView;n.forEach((e,t)=>{for(const n of["fill","stroke"]){const i=e.getAttribute(n);i&&i.includes("var(")&&o&&r[t].setAttribute(n,o.getComputedStyle(e).getPropertyValue(n)||i)}});const i=o?.getComputedStyle(e).getPropertyValue("--viz-surface").trim();if(i){const n=e.ownerDocument.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("width","100%"),n.setAttribute("height","100%"),n.setAttribute("fill",i),t.insertBefore(n,t.firstChild)}return t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("font-family","system-ui, -apple-system, Segoe UI, sans-serif"),(new XMLSerializer).serializeToString(t)}function b(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}function y({spec:r,labels:o,onToPdf:i,bare:f=!1,className:y}){const k={...h,...o},v=l(()=>e(r),[r]),x=a(null),$=r.title??"Flowchart",A=`flow-arrow-${c().replace(/:/g,"")}`;/* @__PURE__ */
4
4
  return d("figure",{className:`my-2 ${y??""}`,children:[
@@ -0,0 +1,15 @@
1
+ import{optionNoteClass as e}from"./chunk-URHGHXDN.js";import{keepsNativeMenu as t}from"./chunk-5QFPTDQF.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{onOverlayOpen as r}from"./chunk-PGN5ME7B.js";import{createShellPortal as o}from"./chunk-52YTUQW3.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useHydrated as a}from"./chunk-KEFNQEXZ.js";import{useBrowserLayoutEffect as l}from"./chunk-PU2GJVMG.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{glassStyle as s,GLASS_DIVIDER as u}from"./chunk-5FYDNH4Y.js";import{createContext as d,forwardRef as p,useContext as m,useId as h,useRef as f,useState as g,useEffect as y,useMemo as b,useCallback as w}from"react";import{jsxs as x,jsx as k,Fragment as v}from"react/jsx-runtime";function N(e,t,n){return e.length===t+1&&e[t].key===n.key?e:[...e.slice(0,t),n]}function C(e,t){const n=Math.max(0,t);return e.length>n?e.slice(0,n):e}function E(e,t,n){if(0===t.length||0===e.length)return[];const r=[e];for(let e=1;e<t.length;e++){const o=r[e-1].find(n=>n.to===t[e].key),i=o?n(o):[];if(0===i.length)break;r.push(i)}return r}function M(e,t,n,r){const o=Math.max(0,r-n),i=Math.min(t,o),a=e-i/2;return a<n?n:a+i>r?Math.max(n,r-i):a}function T(e,t,n,r,o,i=!1,a=8){const l=t+o,c=e-o-n,s=c>=a;return i&&s?{left:c,flipped:!0}:l+n<=r-a?{left:l,flipped:!1}:s?{left:c,flipped:!0}:i?{left:a,flipped:!0}:{left:Math.max(a,r-a-n),flipped:!1}}function W(){try{return getComputedStyle(document.documentElement).getPropertyValue("--menu-density")?.trim()||"normal"}catch{return"normal"}}var j=d(null),$=d(!1);function L({children:e,style:n,className:l="",onClose:u,minWidth:d=180,portal:p=!1}){const m=f(null),w=h(),[x,v]=g([]),E=f();y(()=>()=>clearTimeout(E.current),[]);const M=a(),T=b(()=>{const e=()=>clearTimeout(E.current);return{id:w,depth:0,path:x,open:(t,n)=>{e(),v(e=>N(e,t,n))},scheduleClose:t=>{e(),E.current=setTimeout(()=>v(e=>C(e,t)),200)},closeBelow:t=>{e(),v(e=>C(e,t))},cancelClose:e,closeTree:()=>{e(),v([]),u?.()},root:m}},[w,x,u]);y(()=>{if(!u)return;const e=e=>{e.target.closest("[data-menu-toggle]")||e.target.closest?.(`[data-popup-menu-tree="${w}"]`)||m.current&&!m.current.contains(e.target)&&u()},t=e=>{"Escape"===e.key&&u()};window.addEventListener("pointerdown",e),window.addEventListener("keydown",t);const n=r(u),o=c(()=>!1,()=>m.current);return()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",t),n(),o()}},[u,w]),y(()=>{const e=m.current;e&&requestAnimationFrame(()=>{const t=e.getBoundingClientRect();if(t.right>window.innerWidth-8){const n=t.right-window.innerWidth+8;e.style.left?e.style.left=parseFloat(e.style.left)-n+"px":e.style.right||(e.style.left=t.left-n+"px")}if(t.left<8&&(e.style.left?e.style.left="8px":e.style.right&&(e.style.right=window.innerWidth-t.width-8+"px")),t.bottom>window.innerHeight-8){const n=t.bottom-window.innerHeight+8;e.style.top?e.style.top=parseFloat(e.style.top)-n+"px":e.style.bottom?e.style.bottom="8px":e.style.top=t.top-n+"px"}t.top<8&&(e.style.top?e.style.top="8px":e.style.bottom&&(e.style.bottom=window.innerHeight-t.height-8+"px"))})});const $=W(),L=/(^|[\s:])!?z-/.test(l),B=/* @__PURE__ */k("div",{ref:m,"data-popup-menu-tree":w,className:`fixed rounded-(--radius-popup) ${"tight"===$?"py-1":"large"===$?"py-2":"py-1"} ${l}`,onContextMenu:e=>{t(e.target)||e.preventDefault()},style:{...L?{}:{zIndex:i.menu},minWidth:d,animation:"popup-in 0.12s ease-out",...s(),...n},children:/* @__PURE__ */k(j.Provider,{value:T,children:e})});return p?M?o(B,document.body):null:B}function B(e,t,n,r=!1,o="kit"){const i=W(),a="tight"===i?"0.25rem":"large"===i?"0.6rem":0;return{className:`w-full flex items-center gap-2 text-left transition-colors rounded-lg mx-auto\n ${"none"===o?"":e?"text-red-600 not-disabled:not-aria-disabled:hover:bg-red-50":r?"bg-accent-tint text-blue-700":"text-ink not-disabled:not-aria-disabled:hover:bg-accent-tint not-disabled:not-aria-disabled:hover:text-blue-700"}\n ${t?"opacity-40 cursor-not-allowed":""}\n ${n}`,style:{width:"calc(100% - 8px)",marginLeft:4,marginRight:4,fontSize:"var(--menu-font-size, 14px)",paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:a,paddingBottom:a,..."normal"===i?{minHeight:"calc(var(--row-height-menu, 2.25rem) + 2 * (var(--menu-padding-y, 0.5rem) - 0.5rem))"}:{}}}}var D=/* @__PURE__ */k(n,{name:"check","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2});function P({kind:e,checked:t}){/* @__PURE__ */
2
+ return k("span","checkbox"===e?{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border "+(t?"border-blue-600 bg-blue-600 text-white":"border-gray-400"),children:t&&D}:{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:t&&D})}var H=p(function({onClick:t,children:n,className:r="",danger:o,disabled:i,role:a,checked:l,icon:c,description:s,tabIndex:u,id:d,onMouseEnter:p},f){const g=m(j),y=h(),b=null!=s&&!1!==s,w=`${d??y}-label`,N=`${d??y}-note`,C=m($),E=B(o,i,r),M=void 0===l?null:"menuitemradio"===a?"radio":"checkbox";/* @__PURE__ */
3
+ return x("button",{ref:f,id:d,role:"radio"===M?"menuitemradio":"checkbox"===M?"menuitemcheckbox":a??(C?"menuitem":void 0),"aria-checked":M?l:void 0,"aria-labelledby":b?w:void 0,"aria-describedby":b?N:void 0,tabIndex:u,onClick:()=>{t?.(),g&&g.depth>0&&"checkbox"!==M&&g.closeTree()},onMouseEnter:()=>{g?.scheduleClose(g.depth),p?.()},disabled:i,className:E.className,style:E.style,children:[M&&/* @__PURE__ */k(P,{kind:M,checked:!!l}),b?
4
+ /* @__PURE__ */x("span",{className:"block min-w-0 flex-1 py-2",children:[
5
+ /* @__PURE__ */x("span",{className:"flex items-center gap-2",children:[null!=c&&/* @__PURE__ */k(R,{children:c}),
6
+ /* @__PURE__ */k("span",{id:w,className:"min-w-0",children:n})]}),
7
+ /* @__PURE__ */k("span",{id:N,"data-menu-note":"",className:e(),style:null!=c?{paddingLeft:"1.5rem"}:void 0,children:s})]}):/* @__PURE__ */x(v,{children:[null!=c&&/* @__PURE__ */k(R,{children:c}),n]})]})});function R({children:e}){/* @__PURE__ */
8
+ return k("span",{"aria-hidden":"true","data-menu-icon":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e})}var F=/* @__PURE__ */k(n,{name:"chevron-right","aria-hidden":!0,className:"h-3.5 w-3.5 shrink-0 ml-auto",strokeWidth:2});function A(e){let t=i.menu;for(let n=e;n&&n!==document.body;n=n.parentElement){const e=parseInt(getComputedStyle(n).zIndex,10);Number.isNaN(e)||(t=e)}return t}function S(e){return e?[...e.querySelectorAll("button:not([disabled]), a[href]")].filter(t=>t.closest("[data-popup-submenu-panel]")===e):[]}function I({label:e,icon:n,children:r,disabled:i,className:a="",minWidth:u=180,maxHeight:d,rowProps:p}){const g=m(j),N=h(),C=f(null),E=f(null),$=f(),L=f(!1),D=`${N}-menu`;y(()=>()=>clearTimeout($.current),[]);const P=g?.depth??0,H=g?.path[P],R=!!H&&H.key===N&&!i,I=w(e=>{if(!g||i||!C.current)return;clearTimeout($.current),L.current=e;const t=C.current.getBoundingClientRect(),n=C.current.closest("[data-popup-submenu-panel]")??C.current.closest("[data-popup-menu-tree]"),r=n?.getBoundingClientRect()??t,o=P>0&&(g.path[P-1]?.flipped??!1),a=T(r.left,r.right,u,window.innerWidth,4,o);g.open(P,{key:N,y:t.top,...a})},[g,i,P,N,u]),U=e=>{g?.closeBelow(P),C.current?.focus()};y(()=>{if(R)return c(e=>"Escape"===e.key&&(!(g&&g.path.length>P+1)&&(U(),!0)),()=>E.current)}),l(()=>{if(!R||!H)return;const e=()=>{const e=E.current;if(!e||!C.current)return;const t=C.current.closest("[data-popup-submenu-panel]")??C.current.closest("[data-popup-menu-tree]"),n=t?.getBoundingClientRect()??C.current.getBoundingClientRect(),r=P>0&&(g?.path[P-1]?.flipped??!1),o=e.offsetWidth||u,i=T(n.left,n.right,o,window.innerWidth,4,r,8),a=e.offsetHeight,l=M(C.current.getBoundingClientRect().top+a/2,a,8,window.innerHeight-8);e.style.left=`${i.left}px`,e.style.top=`${l}px`,e.dataset.flipped=String(i.flipped)};e();let t=0;const n=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>{cancelAnimationFrame(n),cancelAnimationFrame(t)}}),y(()=>{R&&L.current&&(L.current=!1,S(E.current)[0]?.focus())},[R]);const z=b(()=>g&&{...g,depth:P+1},[g,P]);if(!g)throw new Error("PopupSubmenu must be rendered inside a PopupMenu");const Q=B(!1,i,a,R),q=W();/* @__PURE__ */
9
+ return x(v,{children:[
10
+ /* @__PURE__ */x("button",{ref:C,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":R,"aria-controls":R?D:void 0,disabled:i,"data-popup-submenu-row":!0,className:Q.className,style:Q.style,onClick:e=>{const t=0===e.detail;R?t&&S(E.current)[0]?.focus():I(t)},...p,onKeyDown:e=>{"ArrowRight"===e.key&&(e.preventDefault(),e.stopPropagation(),I(!0))},onMouseEnter:()=>{p?.onMouseEnter?.(),i||(g.cancelClose(),R?g.closeBelow(P+1):(clearTimeout($.current),$.current=setTimeout(()=>I(!1),120)))},onMouseLeave:()=>{clearTimeout($.current),g.scheduleClose(P)},children:[n,
11
+ /* @__PURE__ */k("span",{className:"min-w-0 flex-1 truncate",children:e}),F]}),R&&o(
12
+ /* @__PURE__ */k("div",{ref:E,id:D,role:"menu","data-popup-menu-tree":g.id,"data-popup-submenu-panel":!0,className:"fixed rounded-(--radius-popup) overflow-x-hidden overflow-y-auto overscroll-contain "+("tight"===q?"py-1":"large"===q?"py-2":"py-1"),style:{left:H.left,top:H.y,minWidth:u,maxHeight:void 0===d?"calc(100vh - 16px)":`min(${"number"==typeof d?`${d}px`:d}, calc(100vh - 16px))`,zIndex:A(g.root.current)+P+1,animation:(H.flipped?"popup-submenu-in-left":"popup-submenu-in")+" 0.1s ease-out",...s()},onKeyDown:e=>{if(e.target.closest("[data-popup-submenu-panel]")!==e.currentTarget)return;const t=S(E.current),n=t.indexOf(document.activeElement),r=n=>{e.preventDefault(),e.stopPropagation(),t[(n+t.length)%t.length]?.focus()};"ArrowDown"===e.key?r(n+1):"ArrowUp"===e.key?r(n<0?t.length-1:n-1):"Home"===e.key?r(0):"End"===e.key?r(t.length-1):"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),U())},onMouseEnter:()=>{g.cancelClose(),clearTimeout($.current)},onMouseLeave:()=>g.scheduleClose(P+1),onContextMenu:e=>{t(e.target)||e.preventDefault()},children:/* @__PURE__ */k(j.Provider,{value:z,children:r})}),document.body)]})}function U(){const e=W();/* @__PURE__ */
13
+ return k("div",{className:`border-t ${u} ${"tight"===e?"my-0.5":"large"===e?"my-2":"my-1"} mx-3`})}function z(){const e=W(),t="tight"===e?"0.125rem":"large"===e?"0.375rem":"0.25rem";return{color:"var(--ink-muted)",paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:t,paddingBottom:t}}function Q({children:e}){/* @__PURE__ */
14
+ return k("div",{className:"text-xs font-medium uppercase tracking-wide",style:z(),children:e})}function q({d:e,className:t="h-4 w-4"}){/* @__PURE__ */
15
+ return k("svg",{className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */k("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})})}export{P as MenuCheckMark,q as MenuIcon,$ as MenuSemanticsContext,L as PopupMenu,U as PopupMenuDivider,H as PopupMenuItem,Q as PopupMenuLabel,I as PopupSubmenu,M as clampMenuTop,C as closeMenuBelow,B as itemLook,T as menuPanelLeft,z as menuTextRowStyle,N as openMenuLevel,E as resolveMenuLevels};
@@ -1,2 +1,2 @@
1
- import{Input_default as r}from"./chunk-W6REY3SV.js";import{Icon as e}from"./chunk-ISVODSRP.js";import{forwardRef as a}from"react";import{jsx as m}from"react/jsx-runtime";var t=a(function({className:a="w-80",...t},c){/* @__PURE__ */
1
+ import{Input_default as r}from"./chunk-JHEHW5BE.js";import{Icon as e}from"./chunk-ISVODSRP.js";import{forwardRef as a}from"react";import{jsx as m}from"react/jsx-runtime";var t=a(function({className:a="w-80",...t},c){/* @__PURE__ */
2
2
  return m("div",{"data-search-input":"",className:`min-w-0 ${a}`,children:/* @__PURE__ */m(r,{ref:c,type:"search",leftIcon:/* @__PURE__ */m(e,{name:"search",className:"h-4 w-4"}),...t})})});export{t as SearchInput_default};
@@ -1,4 +1,4 @@
1
- import{TransferProgress as e}from"./chunk-ION3XGLN.js";import{Icon as r}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-NRHG4R2Q.js";import{jsx as o}from"react/jsx-runtime";var n=/^data:([a-z0-9!#$&^_.+-]+)\/([a-z0-9!#$&^_.+-]+)/i;function i(e){if(/^data:/i.test(e||""))return function(e){const r=n.exec(e);if(!r)return"media";const[,t,o]=r,i=o.split("+")[0].split(".").pop().replace(/^x-/i,"");return i?`${t.toLowerCase()}.${i.toLowerCase()}`:"media"}(e);const r=(e||"").split("?")[0].split("#")[0],t=r.substring(r.lastIndexOf("/")+1);try{return decodeURIComponent(t.replace(/^[0-9a-f]{32}_/i,""))||t||"media"}catch{return t||"media"}}var s=/\.(mp4|webm|ogg|ogv|mov|m4v)(\?|#|$)/i;function a(e,r=t.media){const o=function(e){const r=e.includes("video"),t=e.includes("image")||"*"===e||""===e;return r&&!t?"video":t&&!r?"image":"file"}(e);return"image"===o?r.uploadImage:"video"===o?r.uploadVideo:r.uploadFile}function c(e,r,t="",o="p-4"){return["flex w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed text-center transition-colors",o,r?"cursor-not-allowed opacity-60":"cursor-pointer",e?"border-blue-500 bg-blue-50":"border-gray-300 bg-gray-50 hover:bg-gray-100",t].filter(Boolean).join(" ")}function u(e){return e?"rosh-focus-ring":"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-zone)]"}function d({label:r,progress:t,rounded:n="rounded-lg"}){/* @__PURE__ */
1
+ import{TransferProgress as e}from"./chunk-JE4BGFDJ.js";import{Icon as r}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-NRHG4R2Q.js";import{jsx as o}from"react/jsx-runtime";var n=/^data:([a-z0-9!#$&^_.+-]+)\/([a-z0-9!#$&^_.+-]+)/i;function i(e){if(/^data:/i.test(e||""))return function(e){const r=n.exec(e);if(!r)return"media";const[,t,o]=r,i=o.split("+")[0].split(".").pop().replace(/^x-/i,"");return i?`${t.toLowerCase()}.${i.toLowerCase()}`:"media"}(e);const r=(e||"").split("?")[0].split("#")[0],t=r.substring(r.lastIndexOf("/")+1);try{return decodeURIComponent(t.replace(/^[0-9a-f]{32}_/i,""))||t||"media"}catch{return t||"media"}}var s=/\.(mp4|webm|ogg|ogv|mov|m4v)(\?|#|$)/i;function a(e,r=t.media){const o=function(e){const r=e.includes("video"),t=e.includes("image")||"*"===e||""===e;return r&&!t?"video":t&&!r?"image":"file"}(e);return"image"===o?r.uploadImage:"video"===o?r.uploadVideo:r.uploadFile}function c(e,r,t="",o="p-4"){return["flex w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed text-center transition-colors",o,r?"cursor-not-allowed opacity-60":"cursor-pointer",e?"border-blue-500 bg-blue-50":"border-gray-300 bg-gray-50 hover:bg-gray-100",t].filter(Boolean).join(" ")}function u(e){return e?"rosh-focus-ring":"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-zone)]"}function d({label:r,progress:t,rounded:n="rounded-lg"}){/* @__PURE__ */
2
2
  return o("div",{className:`absolute inset-0 flex items-center justify-center bg-white/60 ${n}`,children:/* @__PURE__ */o(e,{state:"busy",verb:r,pct:t})})}function l({children:e}){/* @__PURE__ */
3
3
  return o("span",{className:"absolute inset-x-1 bottom-1 truncate rounded px-2 py-0.5 text-xs text-on-accent",style:{background:"var(--rosh-media-scrim)"},children:e})}function m(e,r=""){if(!e)return!1;const t=n.exec(e);if(t)return"video"===t[1].toLowerCase();const o=r.includes("video"),i=r.includes("image")||"*"===r||""===r;return s.test(e)||o&&!i}function f({className:e="h-4 w-4"}){/* @__PURE__ */
4
4
  return o(r,{name:"close",className:e,strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})}function p({className:e="h-6 w-6"}){/* @__PURE__ */
@@ -0,0 +1,2 @@
1
+ import{RowControlSizeContext as r}from"./chunk-UMLXFQVC.js";import{createPortal as o}from"react-dom";import{jsx as t}from"react/jsx-runtime";function e(e,m,i){return o(
2
+ /* @__PURE__ */t(r.Provider,{value:null,children:e}),m,i)}export{e as createShellPortal};
@@ -1,4 +1,4 @@
1
- import{formatMoney as e}from"./chunk-OJI4ROSD.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-P5TSGXL4.js";import{ChartFrame as a}from"./chunk-A6TOHNJY.js";import{ColumnChart as l}from"./chunk-AQVPWUJ3.js";import{TH_ONE_LINE as s}from"./chunk-G3TC2GIA.js";import{jsxs as o,jsx as i}from"react/jsx-runtime";function n({spec:n,height:c=200,width:m,animate:d=!0,className:h}){const u=function(r){if(r.currency)return t=>e(t,r.currency);const t=r.unit?` ${r.unit}`:"";return e=>`${e.toLocaleString("en-US",{maximumFractionDigits:2})}${t}`}(n),p=n.currency?r=>e(r,n.currency,{whole:!0}):u,b=n.series.map((e,r)=>({key:`s${r}`,label:e.name,data:e.values})),y=n.title??n.series.map(e=>e.name).join(", "),f=/* @__PURE__ */o("table",{className:"w-full border-collapse text-sm",children:[
1
+ import{formatMoney as e}from"./chunk-OJI4ROSD.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-P5TSGXL4.js";import{ChartFrame as a}from"./chunk-A6TOHNJY.js";import{ColumnChart as l}from"./chunk-AQVPWUJ3.js";import{TH_ONE_LINE as s}from"./chunk-7FYTL6SD.js";import{jsxs as o,jsx as i}from"react/jsx-runtime";function n({spec:n,height:c=200,width:m,animate:d=!0,className:h}){const u=function(r){if(r.currency)return t=>e(t,r.currency);const t=r.unit?` ${r.unit}`:"";return e=>`${e.toLocaleString("en-US",{maximumFractionDigits:2})}${t}`}(n),p=n.currency?r=>e(r,n.currency,{whole:!0}):u,b=n.series.map((e,r)=>({key:`s${r}`,label:e.name,data:e.values})),y=n.title??n.series.map(e=>e.name).join(", "),f=/* @__PURE__ */o("table",{className:"w-full border-collapse text-sm",children:[
2
2
  /* @__PURE__ */i("thead",{children:/* @__PURE__ */o("tr",{children:[
3
3
  /* @__PURE__ */i("td",{className:"border-b border-gray-200"}),n.series.map((e,r)=>/* @__PURE__ */i("th",{scope:"col",className:`${s} border-b border-gray-200 px-2 py-1 text-right font-semibold text-gray-700`,children:e.name},r))]})}),
4
4
  /* @__PURE__ */i("tbody",{children:n.x.map((e,t)=>/* @__PURE__ */o("tr",{children:[
@@ -1,2 +1,2 @@
1
- import{Tooltip as e}from"./chunk-AJPQJ7TC.js";import{useBrowserLayoutEffect as r}from"./chunk-PU2GJVMG.js";import{useShellStrings as t}from"./chunk-NRHG4R2Q.js";import{useRef as o,useEffect as n,useCallback as i}from"react";import{jsx as s}from"react/jsx-runtime";var a=(e,r,t)=>Math.min(t,Math.max(r,e));function l(e,r,t,o,n){return Math.round(a("left"===t||"top"===t?e+r:e-r,o,n))}function u(e,r,t){let o=null;try{o=window.localStorage.getItem(e)}catch{return null}const n=o?parseInt(o,10):NaN;return Number.isNaN(n)?null:a(n,r,t)}function c({width:c,onResize:d,orientation:h="vertical",side:m,min:f,max:p,defaultWidth:v=f,step:g=16,storageKey:b,label:w,hint:z,controls:y,className:x=""}){const P="horizontal"===h,N=t().resizeHandle,k=o(null),M=o({onResize:d,min:f,max:p,side:m});M.current={onResize:d,min:f,max:p,side:m},r(()=>{if(!b)return;const e=u(b,f,p);null!==e&&e!==c&&d(e)},[b]),n(()=>{if(!b)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(b,String(Math.round(c)))}catch{}},200);return()=>window.clearTimeout(e)},[c,b]);const C=i(()=>{k.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);n(()=>C,[C]);const R=e=>{k.current&&(e.currentTarget.hasPointerCapture?.(k.current.pointer)&&e.currentTarget.releasePointerCapture(k.current.pointer),C())},D="left"===m?"right-0":"right"===m?"left-0":"top"===m?"bottom-0":"top-0",I="left"===m?"right":"right"===m?"left":"top"===m?"bottom":"top",T=P?`absolute inset-x-0 ${D} z-10 flex h-2`:`absolute inset-y-0 ${D} z-10 flex w-2`;/* @__PURE__ */
2
- return s(e,{content:z??N.hint,side:I,delay:600,className:`${T} ${x}`.trim(),children:/* @__PURE__ */s("div",{role:"separator",tabIndex:0,"aria-orientation":h,"aria-label":w??N.label,"aria-valuenow":Math.round(c),"aria-valuemin":f,"aria-valuemax":p,"aria-controls":y,"data-resize-handle":m,onPointerDown:e=>{0===e.button&&(e.preventDefault(),k.current={x:P?e.clientY:e.clientX,width:c,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor=P?"row-resize":"col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=k.current;if(!r)return;if(0===e.buttons)return void C();const t=(P?e.clientY:e.clientX)-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:o,min:n,max:i,side:s}=M.current;o(l(r.width,t,s,n,i))},onPointerUp:R,onPointerCancel:R,onLostPointerCapture:()=>{k.current&&C()},onDoubleClick:()=>d(a(v,f,p)),onKeyDown:e=>{const r=P?"ArrowDown":"ArrowRight",t=P?"ArrowUp":"ArrowLeft",o=e.key===r?g:e.key===t?-g:null,n=null!==o?l(c,o,m,f,p):"Home"===e.key?f:"End"===e.key?p:"Enter"===e.key?a(v,f,p):null;null!==n&&(e.preventDefault(),n!==c&&d(n))},className:P?"group/resize relative h-full w-full cursor-row-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */s("div",{"aria-hidden":"true",className:P?`absolute inset-x-0 ${D} h-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:h-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`:`absolute inset-y-0 ${D} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}export{c as ResizeHandle,u as readStoredWidth,l as resizedWidth};
1
+ import{Tooltip as e}from"./chunk-2MUZFHZW.js";import{useBrowserLayoutEffect as r}from"./chunk-PU2GJVMG.js";import{useShellStrings as t}from"./chunk-NRHG4R2Q.js";import{useRef as o,useEffect as n,useCallback as i}from"react";import{jsx as s}from"react/jsx-runtime";var a=(e,r,t)=>Math.min(t,Math.max(r,e));function l(e,r,t,o,n){return Math.round(a("left"===t||"top"===t?e+r:e-r,o,n))}function u(e,r,t){let o=null;try{o=window.localStorage.getItem(e)}catch{return null}const n=o?parseInt(o,10):NaN;return Number.isNaN(n)?null:a(n,r,t)}function c({width:c,onResize:d,orientation:h="vertical",side:m,min:f,max:p,defaultWidth:v=f,step:g=16,storageKey:b,label:w,hint:z,controls:y,className:x=""}){const P="horizontal"===h,N=t().resizeHandle,k=o(null),M=o({onResize:d,min:f,max:p,side:m});M.current={onResize:d,min:f,max:p,side:m},r(()=>{if(!b)return;const e=u(b,f,p);null!==e&&e!==c&&d(e)},[b]),n(()=>{if(!b)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(b,String(Math.round(c)))}catch{}},200);return()=>window.clearTimeout(e)},[c,b]);const R=i(()=>{k.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);n(()=>R,[R]);const C=e=>{k.current&&(e.currentTarget.hasPointerCapture?.(k.current.pointer)&&e.currentTarget.releasePointerCapture(k.current.pointer),R())},D="left"===m?"right-0":"right"===m?"left-0":"top"===m?"bottom-0":"top-0",I="left"===m?"right":"right"===m?"left":"top"===m?"bottom":"top",$=P?`absolute inset-x-0 ${D} z-10 flex h-2`:`absolute inset-y-0 ${D} z-10 flex w-2`;/* @__PURE__ */
2
+ return s(e,{content:z??N.hint,side:I,delay:600,className:`${$} ${x}`.trim(),children:/* @__PURE__ */s("div",{role:"separator",tabIndex:0,"aria-orientation":h,"aria-label":w??N.label,"aria-valuenow":Math.round(c),"aria-valuemin":f,"aria-valuemax":p,"aria-controls":y,"data-resize-handle":m,onPointerDown:e=>{0===e.button&&(e.preventDefault(),k.current={x:P?e.clientY:e.clientX,width:c,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor=P?"row-resize":"col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=k.current;if(!r)return;if(0===e.buttons)return void R();const t=(P?e.clientY:e.clientX)-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:o,min:n,max:i,side:s}=M.current;o(l(r.width,t,s,n,i))},onPointerUp:C,onPointerCancel:C,onLostPointerCapture:()=>{k.current&&R()},onDoubleClick:()=>d(a(v,f,p)),onKeyDown:e=>{const r=P?"ArrowDown":"ArrowRight",t=P?"ArrowUp":"ArrowLeft",o=e.key===r?g:e.key===t?-g:null,n=null!==o?l(c,o,m,f,p):"Home"===e.key?f:"End"===e.key?p:"Enter"===e.key?a(v,f,p):null;null!==n&&(e.preventDefault(),n!==c&&d(n))},className:P?"group/resize relative h-full w-full cursor-row-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */s("div",{"aria-hidden":"true",className:P?`absolute inset-x-0 ${D} h-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:h-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`:`absolute inset-y-0 ${D} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}export{c as ResizeHandle,u as readStoredWidth,l as resizedWidth};
@@ -1,3 +1,3 @@
1
- import{appendKey as r,backspace as a}from"./chunk-VEPVOHCV.js";import{Button_default as e}from"./chunk-MEP6CZJ3.js";import{useShellStrings as n}from"./chunk-NRHG4R2Q.js";import{jsxs as i,jsx as c}from"react/jsx-runtime";var o=["1","2","3","4","5","6","7","8","9",".","0"];function l({value:l,onChange:s,onEnter:t,enterLabel:m,enterDisabled:d,className:h=""}){const p=n().keypad,u=r=>{r!==l&&s(r)};/* @__PURE__ */
1
+ import{appendKey as r,backspace as a}from"./chunk-VEPVOHCV.js";import{Button_default as e}from"./chunk-7YJBWOQG.js";import{useShellStrings as n}from"./chunk-NRHG4R2Q.js";import{jsxs as i,jsx as c}from"react/jsx-runtime";var o=["1","2","3","4","5","6","7","8","9",".","0"];function l({value:l,onChange:s,onEnter:t,enterLabel:m,enterDisabled:d,className:h=""}){const p=n().keypad,u=r=>{r!==l&&s(r)};/* @__PURE__ */
2
2
  return i("div",{className:`grid grid-cols-3 gap-3 ${h}`.trim(),children:[o.map(a=>/* @__PURE__ */c(e,{size:"touch-xl",variant:"secondary",onClick:()=>u(r(l,a)),children:a},a)),
3
3
  /* @__PURE__ */c(e,{size:"touch-xl",variant:"secondary","aria-label":p.backspace,onClick:()=>u(a(l)),children:"⌫"}),t&&/* @__PURE__ */c(e,{size:"touch-xl",variant:"primary",className:"col-span-3",disabled:d,onClick:t,children:m??p.enter})]})}export{l as NumericKeypad};
@@ -1 +1 @@
1
- import{useInsideTooltip as e,Tooltip as n}from"./chunk-AJPQJ7TC.js";import{useRef as r,useState as t}from"react";import{jsx as c}from"react/jsx-runtime";var i="whitespace-nowrap";function l({children:i}){const l=e(),o=r(null),[a,s]=t(!1),m=/* @__PURE__ */c("span",{ref:o,className:"min-w-0 truncate",onMouseEnter:()=>{const e=o.current;s(!!e&&e.scrollWidth>e.clientWidth+1)},children:i});return l?m:/* @__PURE__ */c(n,{content:a?i:null,describe:!1,className:"relative inline-flex min-w-0 max-w-full",children:m})}export{l as OneLineLabel,i as TH_ONE_LINE};
1
+ import{useInsideTooltip as e,Tooltip as n}from"./chunk-2MUZFHZW.js";import{useRef as r,useState as t}from"react";import{jsx as c}from"react/jsx-runtime";var i="whitespace-nowrap";function l({children:i}){const l=e(),o=r(null),[a,s]=t(!1),m=/* @__PURE__ */c("span",{ref:o,className:"min-w-0 truncate",onMouseEnter:()=>{const e=o.current;s(!!e&&e.scrollWidth>e.clientWidth+1)},children:i});return l?m:/* @__PURE__ */c(n,{content:a?i:null,describe:!1,className:"relative inline-flex min-w-0 max-w-full",children:m})}export{l as OneLineLabel,i as TH_ONE_LINE};
@@ -1,11 +1,11 @@
1
- import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-MPC3CHAO.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-TNGIXSTM.js";import{useShellStrings as l}from"./chunk-NRHG4R2Q.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},C){const $=m(),z=l().files,H=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),M=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
1
+ import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-4H4HJIWI.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-TNGIXSTM.js";import{useShellStrings as l}from"./chunk-NRHG4R2Q.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},H){const $=m(),z=l().files,C=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),R=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
2
2
  return o(e,{label:g,htmlFor:$,hint:N,error:j,required:k,className:v,children:[
3
- /* @__PURE__ */o("button",{ref:C,type:"button",id:$,disabled:y,onClick:H.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":M,...H.zoneProps,className:t(H.dragOver,y,a(y),"px-4 py-6"),children:[
3
+ /* @__PURE__ */o("button",{ref:H,type:"button",id:$,disabled:y,onClick:C.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":R,...C.zoneProps,className:t(C.dragOver,y,a(y),"px-4 py-6"),children:[
4
4
  /* @__PURE__ */o("span",{children:[
5
5
  /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?z.chooseMany:z.chooseOne}),
6
6
  /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?z.dragMany:z.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
- /* @__PURE__ */d("input",{...H.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
7
+ /* @__PURE__ */d("input",{...C.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
8
8
  /* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
9
9
  /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,z)}),
10
- /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{H.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
- /* @__PURE__ */d(s,{rejections:H.rejections})]})});export{p as FilePicker_default};
10
+ /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{C.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
+ /* @__PURE__ */d(s,{rejections:C.rejections})]})});export{p as FilePicker_default};
@@ -1,8 +1,8 @@
1
- import{AccessibleTable as t}from"./chunk-24BF22NF.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-NRHG4R2Q.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:k,className:v,emptyLabel:M}){const $=l().charts,N=i(),w=k??(t=>s(t,N)),F=M??$.noFlows,[j,y]=c(null),{highlighted:E}=o(),C=h(u,f,x,$.other),{labels:I,matrix:Q,otherIndex:z,foldedCount:A}=C,R=(t,e)=>Q[t]?.[e]??0,H=t=>t===z?r.muted:a(t),L=C.totals,O=I.map((t,e)=>e).sort((t,e)=>L[e]-L[t]),V=O.reduce((t,e)=>t+L[e],0);if(V<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${v??""}`,children:F});const W=p/2,B=p/2,P=p/2-44,T=P-b,U=g*O.length,Y=/* @__PURE__ */new Map;let D=-Math.PI/2;O.forEach((t,e)=>{const o=L[t]/V*(2*Math.PI-U);Y.set(t,{start:D,end:D+o,slot:e}),D+=o+g});const G=/* @__PURE__ */new Map,S=[];for(const t of O)for(const e of O){const o=R(t,e);if(o<=0)continue;const n=Y.get(t),r=o/Math.max(1,L[t])*(n.end-n.start),a=G.get(t)??0;G.set(t,a+r),S.push({from:t,to:e,value:o,a:n.start+a+r/2,b:Y.get(e).start+(Y.get(e).end-Y.get(e).start)/2})}const Z=(t,e)=>[W+e*Math.cos(t),B+e*Math.sin(t)],q="arc"===j?.kind?j.index:void 0,J="ribbon"===j?.kind?S[j.index]:void 0;/* @__PURE__ */
1
+ import{AccessibleTable as t}from"./chunk-D3L2QCGF.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-NRHG4R2Q.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:k,className:v,emptyLabel:M}){const $=l().charts,w=i(),N=k??(t=>s(t,w)),F=M??$.noFlows,[j,y]=c(null),{highlighted:C}=o(),E=h(u,f,x,$.other),{labels:Q,matrix:I,otherIndex:z,foldedCount:A}=E,L=(t,e)=>I[t]?.[e]??0,R=t=>t===z?r.muted:a(t),H=E.totals,O=Q.map((t,e)=>e).sort((t,e)=>H[e]-H[t]),V=O.reduce((t,e)=>t+H[e],0);if(V<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${v??""}`,children:F});const W=p/2,D=p/2,G=p/2-44,P=G-b,T=g*O.length,U=/* @__PURE__ */new Map;let Y=-Math.PI/2;O.forEach((t,e)=>{const o=H[t]/V*(2*Math.PI-T);U.set(t,{start:Y,end:Y+o,slot:e}),Y+=o+g});const B=/* @__PURE__ */new Map,S=[];for(const t of O)for(const e of O){const o=L(t,e);if(o<=0)continue;const n=U.get(t),r=o/Math.max(1,H[t])*(n.end-n.start),a=B.get(t)??0;B.set(t,a+r),S.push({from:t,to:e,value:o,a:n.start+a+r/2,b:U.get(e).start+(U.get(e).end-U.get(e).start)/2})}const Z=(t,e)=>[W+e*Math.cos(t),D+e*Math.sin(t)],q="arc"===j?.kind?j.index:void 0,J="ribbon"===j?.kind?S[j.index]:void 0;/* @__PURE__ */
2
2
  return m("div",{className:`relative ${v??""}`,children:[
3
- /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(O.length),onMouseLeave:()=>y(null),children:[S.map((t,e)=>{const[o,n]=Z(t.a,T),[r,a]=Z(t.b,T),l=H(t.from),i=((t,e)=>j?"ribbon"===j.kind?j.index===e:j.index===t.from||j.index===t.to:null!==E?I[t.from]===E||I[t.to]===E:null)(t,e);/* @__PURE__ */
4
- return d("path",{d:`M${o},${n} Q${W},${B} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/V*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>y({kind:"ribbon",index:e})},`${I[t.from]}→${I[t.to]}`)}),O.map(t=>{const o=Y.get(t),n=(o.start+o.end)/2,[a,l]=Z(n,P+16),i=(t=>j?"arc"===j.kind?j.index===t:S[j.index].from===t||S[j.index].to===t:null!==E?I[t]===E:null)(t);/* @__PURE__ */
3
+ /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(O.length),onMouseLeave:()=>y(null),children:[S.map((t,e)=>{const[o,n]=Z(t.a,P),[r,a]=Z(t.b,P),l=R(t.from),i=((t,e)=>j?"ribbon"===j.kind?j.index===e:j.index===t.from||j.index===t.to:null!==C?Q[t.from]===C||Q[t.to]===C:null)(t,e);/* @__PURE__ */
4
+ return d("path",{d:`M${o},${n} Q${W},${D} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/V*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>y({kind:"ribbon",index:e})},`${Q[t.from]}→${Q[t.to]}`)}),O.map(t=>{const o=U.get(t),n=(o.start+o.end)/2,[a,l]=Z(n,G+16),i=(t=>j?"arc"===j.kind?j.index===t:S[j.index].from===t||S[j.index].to===t:null!==C?Q[t]===C:null)(t);/* @__PURE__ */
5
5
  return m("g",{onMouseEnter:()=>y({kind:"arc",index:t}),children:[
6
- /* @__PURE__ */d("path",{d:e(W,B,T,P,o.start,o.end),fill:H(t),fillOpacity:null===i||i?1:.45}),
7
- /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:I[t]})]},t)})]}),A>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(A)}),void 0!==q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I[q],rows:[{key:"total",label:$.totalFlow,color:H(q),value:w(L[q])}]})}),J&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${I[J.from]} → ${I[J.to]}`,rows:[{key:"value",label:$.flow,color:H(J.from),value:w(J.value)}]})}),
8
- /* @__PURE__ */d(t,{caption:$.chord(O.length),head:[$.tableFrom,$.tableTo,$.value],rows:S.map(t=>[I[t.from],I[t.to],w(t.value)])})]})}export{u as ChordChart,h as foldChord};
6
+ /* @__PURE__ */d("path",{d:e(W,D,P,G,o.start,o.end),fill:R(t),fillOpacity:null===i||i?1:.45}),
7
+ /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:Q[t]})]},t)})]}),A>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(A)}),void 0!==q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:Q[q],rows:[{key:"total",label:$.totalFlow,color:R(q),value:N(H[q])}]})}),J&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${Q[J.from]} → ${Q[J.to]}`,rows:[{key:"value",label:$.flow,color:R(J.from),value:N(J.value)}]})}),
8
+ /* @__PURE__ */d(t,{caption:$.chord(O.length),head:[$.tableFrom,$.tableTo,$.value],rows:S.map(t=>[Q[t.from],Q[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
@@ -1,4 +1,4 @@
1
- import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{CountBadge as t}from"./chunk-PFOTEDSQ.js";import{Tooltip as n}from"./chunk-AJPQJ7TC.js";import{useBrowserLayoutEffect as r}from"./chunk-PU2GJVMG.js";import{createContext as o,useRef as a,useState as i,useEffect as l,useContext as s}from"react";import{jsx as c,jsxs as d,Fragment as u}from"react/jsx-runtime";var h=o({labels:"none",shown:"none"}),f="button[data-icon-rail-button]:not([disabled])";function b(e,t,n){const r=getComputedStyle(e),o=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0),a="horizontal"===t?(parseFloat(r.columnGap)||0)*Math.max(0,n-1):0,i=e.parentElement;let l=1/0;if(i){const e=getComputedStyle(i);l=i.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:o+a,room:l}}function m({"aria-label":t,orientation:n="vertical",children:o,className:s="",labels:d="none",labelsFit:u=!1,onLabelsShown:m}){const p=a(null),g="none"!==d&&u,[v,y]=i(null),w="none"===d?"none":g?v??"none":"all",x=a(()=>{});x.current=()=>{const t=p.current;if(!t||!g)return;const r=function(e,t){return[...e.querySelectorAll("button[data-icon-rail-button]")].map(e=>{const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=parseFloat(n.minWidth)||0,a=e.querySelector("[data-icon-rail-glyph]")?.getBoundingClientRect().width??0,i=e.querySelector("[data-icon-rail-word]")?.scrollWidth??0;return{bare:Math.max(o,r+a),worded:"below"===t?Math.max(o,r+Math.max(a,i)):Math.max(o,r+a+8+i),active:"true"===e.getAttribute("aria-pressed")}})}(t,d);y(e({buttons:r,orientation:n,...b(t,n,r.length)}))},r(()=>{x.current()}),l(()=>{const e=p.current?.parentElement;if(!g||!e)return;let t=!0;const n=()=>{t&&x.current()},r="undefined"==typeof ResizeObserver?void 0:ResizeObserver,o=r?new r(n):null;return o?.observe(e),document.fonts?.ready.then(n,()=>{}),()=>{t=!1,o?.disconnect()}},[g]);const F=a(null),k=a(m);k.current=m,l(()=>{g&&null!==v&&F.current!==v&&(F.current=v,k.current?.(v))},[g,v]),r(()=>{const e=p.current;if(!e)return;const t=[...e.querySelectorAll(f)];if(0===t.length)return;const n=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-pressed"))??t[0];for(const t of e.querySelectorAll("button[data-icon-rail-button]"))t.tabIndex=t===n?0:-1});/* @__PURE__ */
1
+ import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{CountBadge as t}from"./chunk-PFOTEDSQ.js";import{Tooltip as n}from"./chunk-2MUZFHZW.js";import{useBrowserLayoutEffect as r}from"./chunk-PU2GJVMG.js";import{createContext as o,useRef as a,useState as i,useEffect as l,useContext as s}from"react";import{jsx as c,jsxs as d,Fragment as u}from"react/jsx-runtime";var h=o({labels:"none",shown:"none"}),f="button[data-icon-rail-button]:not([disabled])";function b(e,t,n){const r=getComputedStyle(e),o=(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)+(parseFloat(r.borderLeftWidth)||0)+(parseFloat(r.borderRightWidth)||0),a="horizontal"===t?(parseFloat(r.columnGap)||0)*Math.max(0,n-1):0,i=e.parentElement;let l=1/0;if(i){const e=getComputedStyle(i);l=i.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:o+a,room:l}}function m({"aria-label":t,orientation:n="vertical",children:o,className:s="",labels:d="none",labelsFit:u=!1,onLabelsShown:m}){const p=a(null),g="none"!==d&&u,[v,y]=i(null),w="none"===d?"none":g?v??"none":"all",x=a(()=>{});x.current=()=>{const t=p.current;if(!t||!g)return;const r=function(e,t){return[...e.querySelectorAll("button[data-icon-rail-button]")].map(e=>{const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=parseFloat(n.minWidth)||0,a=e.querySelector("[data-icon-rail-glyph]")?.getBoundingClientRect().width??0,i=e.querySelector("[data-icon-rail-word]")?.scrollWidth??0;return{bare:Math.max(o,r+a),worded:"below"===t?Math.max(o,r+Math.max(a,i)):Math.max(o,r+a+8+i),active:"true"===e.getAttribute("aria-pressed")}})}(t,d);y(e({buttons:r,orientation:n,...b(t,n,r.length)}))},r(()=>{x.current()}),l(()=>{const e=p.current?.parentElement;if(!g||!e)return;let t=!0;const n=()=>{t&&x.current()},r="undefined"==typeof ResizeObserver?void 0:ResizeObserver,o=r?new r(n):null;return o?.observe(e),document.fonts?.ready.then(n,()=>{}),()=>{t=!1,o?.disconnect()}},[g]);const F=a(null),k=a(m);k.current=m,l(()=>{g&&null!==v&&F.current!==v&&(F.current=v,k.current?.(v))},[g,v]),r(()=>{const e=p.current;if(!e)return;const t=[...e.querySelectorAll(f)];if(0===t.length)return;const n=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-pressed"))??t[0];for(const t of e.querySelectorAll("button[data-icon-rail-button]"))t.tabIndex=t===n?0:-1});/* @__PURE__ */
2
2
  return c("div",{ref:p,role:"toolbar","aria-label":t,"aria-orientation":n,"data-orientation":n,onKeyDown:e=>{const t=p.current;if(!t)return;const r=[...t.querySelectorAll(f)],o=r.indexOf(e.target);if(o<0)return;const a="vertical"===n?"ArrowUp":"ArrowLeft",i="vertical"===n?"ArrowDown":"ArrowRight",l=e.key===i?(o+1)%r.length:e.key===a?(o-1+r.length)%r.length:"Home"===e.key?0:"End"===e.key?r.length-1:-1;if(!(l<0)){e.preventDefault();for(const e of r)e.tabIndex=e===r[l]?0:-1;r[l].focus()}},"data-labels":"none"===d?void 0:d,"data-labels-shown":"none"===d?void 0:w,className:`flex gap-2 ${"vertical"===n?"flex-col items-center":"flex-row items-center"} ${s}`.trim(),children:/* @__PURE__ */c(h.Provider,{value:{labels:d,shown:w},children:o})})}function p({label:e,icon:r,active:o,disabled:a,onClick:i,badge:l,tooltipSide:f="right",className:b=""}){const m=!0===o,{labels:p,shown:g}=s(h),v=void 0===l||!1===l||0===l?r:/* @__PURE__ */c(t,{count:"number"==typeof l?l:void 0,dot:!0===l,max:99,children:r}),y="none"!==p,w=y&&("all"===g||"chosen"===g&&m),x=/* @__PURE__ */c("button",{type:"button","data-icon-rail-button":"","aria-label":e,"aria-pressed":"boolean"==typeof o?o:void 0,disabled:a,onClick:a?void 0:i,className:[`relative inline-flex ${y?"beside"===p?"h-9 min-w-9 justify-center px-2":"min-h-9 min-w-9 flex-col justify-center px-1 py-1":"h-9 w-9 justify-center"} shrink-0 items-center rounded-lg transition-colors`,"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]","disabled:cursor-not-allowed disabled:opacity-40",m?"bg-accent-tint text-blue-700":"text-gray-600 not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest",b].filter(Boolean).join(" "),children:y?/* @__PURE__ */d(u,{children:[
3
3
  /* @__PURE__ */c("span",{"data-icon-rail-glyph":"",className:"inline-flex shrink-0 items-center justify-center",children:v}),
4
4
  /* @__PURE__ */c("span",{"data-icon-rail-word":"","aria-hidden":"true",className:["overflow-hidden whitespace-nowrap text-xs font-medium leading-none",w?"beside"===p?"ml-2":"mt-1":"max-h-0 max-w-0"].join(" "),children:e})]}):v});/* @__PURE__ */
@@ -0,0 +1,2 @@
1
+ import{isAriaDisabled as e,swallowPress as a,describedByWith as r,OffWithReason as i}from"./chunk-J43RRDEP.js";import{SpinnerRing as s}from"./chunk-R2VKEMZH.js";import{useRowControlSize as l}from"./chunk-UMLXFQVC.js";import{buttonClasses as d}from"./chunk-UQYNPYF4.js";import{forwardRef as n,useId as o}from"react";import{jsxs as t,jsx as c}from"react/jsx-runtime";var m=n(function({variant:n="primary",size:m="md",loading:p=!1,leftIcon:b,rightIcon:f,block:u=!1,disabled:h,type:k="button",children:x,className:N="",disabledReason:y,onClick:j,pressed:v,"aria-disabled":g,"aria-describedby":R,...C},w){const z=l(m)??"md",E=o(),F=h||p,I=null!=y&&""!==y,M=F&&I,P=!F&&e(g),Q=P&&I,U=M||Q?E:void 0,V=/* @__PURE__ */t("button",{ref:w,type:k,disabled:F,"aria-busy":p||void 0,"aria-disabled":!!P||g,"aria-describedby":r(R,U),onClick:P?a:j,className:d({variant:n,size:z,block:u,pressed:v??(!0===C["aria-pressed"]||"true"===C["aria-pressed"]),className:N}),...C,children:[p?/* @__PURE__ */c(s,{className:"h-3.5 w-3.5",ink:""}):b,x,!p&&f]});return Q?/* @__PURE__ */c(i,{reason:y,id:E,block:u,children:V}):M?/* @__PURE__ */t("span",{className:u?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[V,
2
+ /* @__PURE__ */c("span",{id:U,className:"text-xs text-red-600",children:y})]}):V});export{m as Button_default};
@@ -1 +1 @@
1
- import{TYPE_SCALE as t,FONT_WEIGHTS as o}from"./chunk-LH7IKIGE.js";import{textWidth as n}from"./chunk-UVCMV2TL.js";import{SPACING_ROLES as e,SPACING_SCALE as m}from"./chunk-SH7PJC4P.js";import{statusLabel as r}from"./chunk-EDRELF6L.js";var c=e.controlX,u=m[4],i=t[2],d=o.control,f=.625*i,h=m[1];function p(t){const o="undefined"!=typeof document&&document.body?getComputedStyle(document.body).fontFamily:"";return o?n(t,`${d} ${i}px ${o}`)??t.length*f:t.length*f}function a(t){const o=Object.entries(t).map(([t,o])=>!0===o?r(t):o),n=Math.max(0,...o.map(p)),e=Math.ceil((n+2*c+2*u)/h)*h;return{defaultWidth:e,minWidth:e}}export{c as BADGE_X,u as CELL_X,a as statusColumn};
1
+ import{TYPE_SCALE as t,FONT_WEIGHTS as o}from"./chunk-LH7IKIGE.js";import{textWidth as n}from"./chunk-UVCMV2TL.js";import{SPACING_ROLES as e,SPACING_SCALE as m}from"./chunk-SH7PJC4P.js";import{statusLabel as r}from"./chunk-PAD65HG7.js";var c=e.controlX,u=m[4],i=t[2],d=o.control,f=.625*i,h=m[1];function p(t){const o="undefined"!=typeof document&&document.body?getComputedStyle(document.body).fontFamily:"";return o?n(t,`${d} ${i}px ${o}`)??t.length*f:t.length*f}function a(t){const o=Object.entries(t).map(([t,o])=>!0===o?r(t):o),n=Math.max(0,...o.map(p)),e=Math.ceil((n+2*c+2*u)/h)*h;return{defaultWidth:e,minWidth:e}}export{c as BADGE_X,u as CELL_X,a as statusColumn};
@@ -1,4 +1,4 @@
1
- import{Tooltip as n}from"./chunk-AJPQJ7TC.js";import{useShellStrings as r,useShellLocale as e}from"./chunk-NRHG4R2Q.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as i,jsxs as o}from"react/jsx-runtime";var a=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-md px-1","text-2xs font-medium normal-case leading-none tabular-nums tracking-normal","ring-1 ring-inset ring-[color:color-mix(in_srgb,currentColor_20%,transparent)]"].join(" ");function s({count:s,label:c,active:l=!1,showZero:m=!1,className:u=""}){const d=r().count,h=e();if(!(s>0||0===s&&m))return null;const f=c??d.items(s);/* @__PURE__ */
1
+ import{Tooltip as n}from"./chunk-2MUZFHZW.js";import{useShellStrings as r,useShellLocale as e}from"./chunk-NRHG4R2Q.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as i,jsxs as o}from"react/jsx-runtime";var a=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-md px-1","text-2xs font-medium normal-case leading-none tabular-nums tracking-normal","ring-1 ring-inset ring-[color:color-mix(in_srgb,currentColor_20%,transparent)]"].join(" ");function s({count:s,label:c,active:l=!1,showZero:m=!1,className:u=""}){const d=r().count,h=e();if(!(s>0||0===s&&m))return null;const f=c??d.items(s);/* @__PURE__ */
2
2
  return i(n,{content:f,describe:!1,className:`relative inline-flex shrink-0 ${u}`.trim(),children:/* @__PURE__ */o("span",{"data-item-count":"",className:`${a} ${l?"bg-blue-100 text-blue-700":"bg-[color:color-mix(in_srgb,var(--ink-faint)_14%,transparent)] text-gray-600"}`,children:[
3
3
  /* @__PURE__ */i("span",{"aria-hidden":"true",children:t(s,h)}),
4
4
  /* @__PURE__ */i("span",{className:"sr-only",children:f})]})})}export{s as ItemCount};
@@ -1,4 +1,4 @@
1
- import{DropdownMenu as e}from"./chunk-M5IZ7QLQ.js";import{Fragment as t}from"react";import{jsxs as a,jsx as r,Fragment as n}from"react/jsx-runtime";var i="relative inline-flex items-center gap-2 px-4 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-40",s="bg-blue-50 text-blue-600",l="text-gray-600 hover:bg-gray-50 hover:text-gray-900";function c(){/* @__PURE__ */
1
+ import{DropdownMenu as e}from"./chunk-M6ODRWTM.js";import{Fragment as t}from"react";import{jsxs as a,jsx as r,Fragment as n}from"react/jsx-runtime";var i="relative inline-flex items-center gap-2 px-4 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-40",s="bg-blue-50 text-blue-600",l="text-gray-600 hover:bg-gray-50 hover:text-gray-900";function c(){/* @__PURE__ */
2
2
  return r("span",{className:"my-3 w-px shrink-0 bg-gray-200","aria-hidden":!0})}function m({item:e,active:t,caret:i}){/* @__PURE__ */
3
3
  return a(n,{children:[e.icon&&/* @__PURE__ */r("span",{className:"h-4 w-4 shrink-0",children:e.icon}),
4
4
  /* @__PURE__ */r("span",{className:"whitespace-nowrap",children:e.label}),null!=e.badge&&/* @__PURE__ */r("span",{className:"ml-0.5 inline-flex min-w-[1.25rem] items-center justify-center rounded-full bg-gray-100 px-2 text-2xs font-semibold leading-5 text-gray-600",children:e.badge}),i&&/* @__PURE__ */r("span",{className:"-ml-1 text-xs","aria-hidden":!0,children:"▾"}),t&&/* @__PURE__ */r("span",{className:"absolute inset-x-2 -bottom-px h-0.5 rounded-full bg-blue-600","aria-hidden":!0})]})}function d({items:n,activeKey:d,onSelect:o,brand:u,actions:b,linkAs:h,className:g}){/* @__PURE__ */
@@ -1,2 +1,2 @@
1
- import{IconButton_default as o}from"./chunk-MYH5H43C.js";import{Icon as r}from"./chunk-ISVODSRP.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as a}from"react/jsx-runtime";function s({onClose:s,className:i,label:t}){const n=e().dialog;/* @__PURE__ */
1
+ import{IconButton_default as o}from"./chunk-QZYV4TDD.js";import{Icon as r}from"./chunk-ISVODSRP.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as a}from"react/jsx-runtime";function s({onClose:s,className:i,label:t}){const n=e().dialog;/* @__PURE__ */
2
2
  return a(o,{variant:"ghost",onClick:s,"aria-label":t??n.close,className:i,children:/* @__PURE__ */a(r,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})})}export{s as CloseButton};
@@ -1,4 +1,4 @@
1
- import{Card as e}from"./chunk-RKSCB5BJ.js";import{Select_default as l}from"./chunk-EBODRYXS.js";import{FormField as a}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Banner as i}from"./chunk-OSMRYND3.js";import{Input_default as c}from"./chunk-W6REY3SV.js";import{Button_default as s}from"./chunk-MEP6CZJ3.js";import{useState as d}from"react";import{jsx as n,jsxs as t}from"react/jsx-runtime";var h=[{name:"Mechanical keyboard",qty:1,price:129},{name:"USB-C cable (2m)",qty:2,price:12},{name:"Laptop stand",qty:1,price:48}];function m(){const[m,o]=d(!0),[p,u]=d("us"),y=h.reduce((e,l)=>e+l.qty*l.price,0),g=y+9;/* @__PURE__ */
1
+ import{Card as e}from"./chunk-RKSCB5BJ.js";import{Select_default as l}from"./chunk-DTZDOXK3.js";import{FormField as a}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Banner as i}from"./chunk-OSMRYND3.js";import{Input_default as c}from"./chunk-JHEHW5BE.js";import{Button_default as s}from"./chunk-7YJBWOQG.js";import{useState as d}from"react";import{jsx as n,jsxs as t}from"react/jsx-runtime";var h=[{name:"Mechanical keyboard",qty:1,price:129},{name:"USB-C cable (2m)",qty:2,price:12},{name:"Laptop stand",qty:1,price:48}];function m(){const[m,o]=d(!0),[p,u]=d("us"),y=h.reduce((e,l)=>e+l.qty*l.price,0),g=y+9;/* @__PURE__ */
2
2
  return n("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */t("div",{className:"mx-auto max-w-5xl space-y-5",children:[
3
3
  /* @__PURE__ */n("h1",{className:"text-xl font-semibold text-gray-900",children:"Checkout"}),
4
4
  /* @__PURE__ */t("div",{className:"grid grid-cols-1 gap-5 lg:grid-cols-3",children:[
@@ -1,4 +1,4 @@
1
- import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as n}from"./chunk-TZFNWAED.js";import{ItemCount as r}from"./chunk-7WF6LFOJ.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{useBrowserState as a}from"./chunk-KEFNQEXZ.js";import{useShellStrings as i}from"./chunk-NRHG4R2Q.js";import{useId as o,useRef as c,useEffect as s,Children as u,isValidElement as d}from"react";import{jsx as m,jsxs as h,Fragment as p}from"react/jsx-runtime";function f({children:e,count:t,countLabel:n}){return null==t?/* @__PURE__ */m("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */h("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
1
+ import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as n}from"./chunk-TZFNWAED.js";import{ItemCount as r}from"./chunk-ABAUJLI4.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{useBrowserState as a}from"./chunk-KEFNQEXZ.js";import{useShellStrings as i}from"./chunk-NRHG4R2Q.js";import{useId as o,useRef as c,useEffect as s,Children as u,isValidElement as d}from"react";import{jsx as m,jsxs as h,Fragment as p}from"react/jsx-runtime";function f({children:e,count:t,countLabel:n}){return null==t?/* @__PURE__ */m("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */h("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
2
2
  /* @__PURE__ */m("span",{className:"min-w-0 truncate",children:e}),
3
3
  /* @__PURE__ */m(r,{count:t,label:n,showZero:!0})]})}function b(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-accent-tint font-medium text-blue-700":"border-line text-ink hover:bg-gray-100")}function x({label:l,count:a,countLabel:u,active:d,onClick:f,icon:x,trailing:g,severity:w,depth:k=0}){const y=t(w,"SidebarNavItem"),N=i().severity,v=y?n(y,N):void 0,j=e(),S=o(),I=c(null),C=c(l);C.current=l,s(()=>{if(j&&d)return j.report(S,()=>C.current,I.current)},[j,d,S]);const E=/* @__PURE__ */h(p,{children:[null!=x&&/* @__PURE__ */m("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:x}),y&&
4
4
  /* @__PURE__ */m("span",{"aria-hidden":"true",title:v,className:`shrink-0 h-1.5 w-1.5 rounded-full ${y.fill}`}),
@@ -1,4 +1,4 @@
1
- import{Card as e}from"./chunk-RKSCB5BJ.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-W6REY3SV.js";import{Button_default as a}from"./chunk-MEP6CZJ3.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
1
+ import{Card as e}from"./chunk-RKSCB5BJ.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-JHEHW5BE.js";import{Button_default as a}from"./chunk-7YJBWOQG.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
2
2
  return c("div",{className:"flex h-full items-center justify-center overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */n("div",{className:"w-full max-w-sm",children:[
3
3
  /* @__PURE__ */n("div",{className:"mb-6 text-center",children:[
4
4
  /* @__PURE__ */c("div",{className:"mx-auto mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-blue-600 text-sm font-bold text-white",children:"A"}),
@@ -0,0 +1,8 @@
1
+ import{optionMatches as e,OptionSublabel as t}from"./chunk-K5YT5PMJ.js";import{inputClasses as r}from"./chunk-AYZY3YNC.js";import{GROUP_COLORS as n}from"./chunk-PAD65HG7.js";import{Tooltip as o}from"./chunk-2MUZFHZW.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{createShellPortal as i}from"./chunk-52YTUQW3.js";import{Z_LAYERS as a}from"./chunk-62LW225J.js";import{useDropdownPosition as s,POPUP_MAX_WIDTH as c,MENU_MAX_HEIGHT as u}from"./chunk-TAHHZGRH.js";import{glassStyle as d}from"./chunk-5FYDNH4Y.js";import{useShellStrings as m}from"./chunk-NRHG4R2Q.js";import{useState as h,useRef as p,useMemo as f,useEffect as g}from"react";import{jsxs as v,jsx as b,Fragment as x}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-accent-tint px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${n.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:n,onChange:y,options:k=[],placeholder:D,allowFreeText:N=!1,invalid:j,disabled:C,id:H,className:A="",tone:L,tooltip:T,split:$,reorderable:W=!1}){const[Y,E]=h(!1),[M,F]=h(null),[G,I]=h(""),R=m(),Z=p(null),K=p(null),P=p(null),S=s(Z,Y),U=e=>k.find(t=>t.value===e)?.label??e,B=f(()=>{const t=new Set(n),r=[],o=G.trim().toLowerCase();for(const n of k)t.has(n.value)||(t.add(n.value),o&&!e(n,o)||r.push(n));return r},[k,n,G]),J=e=>{const t=[...n];for(const r of e){const e=r.trim();if(!e)continue;const n=e.toLowerCase(),o=k.find(t=>t.value===e||t.label.toLowerCase()===n)?.value,l=o??(N?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==n.length&&y(t)},Q=e=>{e&&!n.includes(e)?(y([...n,e]),I("")):I("")},z=e=>y(n.filter(t=>t!==e)),O=W&&!C,q=(e,t)=>{if(e===t||t<0||t>=n.length)return;const r=[...n],[o]=r.splice(e,1);r.splice(t,0,o),y(r)},V=()=>{const e=G.trim();if($&&e)return J(e.split($)),void I("");N&&e?Q(e):I("")},X=p(()=>{});X.current=()=>{V(),E(!1)},g(()=>{if(!Y)return;const e=e=>{const t=e.target;Z.current?.contains(t)||P.current?.contains(t)||(V(),E(!1))};document.addEventListener("mousedown",e);const t=l(()=>X.current());return()=>{document.removeEventListener("mousedown",e),t()}});const _=k.length>0;/* @__PURE__ */
2
+ return v("div",{ref:Z,className:"relative",children:[
3
+ /* @__PURE__ */v("div",{onMouseDown:e=>{C||e.target.closest("button")||(e.preventDefault(),K.current?.focus())},className:r({invalid:j,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${C?"bg-gray-50 cursor-not-allowed":""} ${A}`}),children:[n.map((e,t)=>{const r=L?.(e),l=w[r??"accent"],i=O?{draggable:!0,tabIndex:0,"aria-label":R.select.reorderItem?.(U(e),t+1,n.length)??U(e),onDragStart:r=>{r.dataTransfer.effectAllowed="move",r.dataTransfer.setData("text/plain",e),F(t)},onDragOver:e=>{null!=M&&e.preventDefault()},onDrop:e=>{null!=M&&(e.preventDefault(),q(M,t),F(null))},onDragEnd:()=>F(null),onKeyDown:e=>{e.target===e.currentTarget&&("ArrowLeft"===e.key||"ArrowUp"===e.key?t>0&&(e.preventDefault(),q(t,t-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||t<n.length-1&&(e.preventDefault(),q(t,t+1)))}}:{},a=/* @__PURE__ */v("span",{"data-tag-chip":"","data-tone":r,...i,className:`${l.chip}${O?" cursor-grab rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]":""}${M===t?" opacity-50":""}`,children:[
4
+ /* @__PURE__ */b("span",{className:"truncate",children:U(e)}),!C&&/* @__PURE__ */b("button",{type:"button","aria-label":R.select.removeItem?.(U(e))??`${R.select.remove} ${U(e)}`,onClick:()=>z(e),className:l.remove,children:"×"})]},e),s=T?.(e);return null==s?a:/* @__PURE__ */b(o,{content:s,className:"relative inline-flex max-w-full",children:a},e)}),
5
+ /* @__PURE__ */b("input",{id:H,ref:K,type:"text",autoComplete:"off",role:"combobox","aria-expanded":Y&&_,"aria-invalid":j||void 0,disabled:C,value:G,placeholder:0===n.length?D:void 0,onChange:e=>{(e=>{if($){const t=e.split($);if(t.length>1)return J(t.slice(0,-1)),void I(t[t.length-1])}I(e)})(e.target.value),E(!0)},onFocus:()=>{!C&&_&&E(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&N){t.preventDefault();const r=G.trim(),n=r?B.filter(t=>e(t,r.toLowerCase())):[];1===n.length?Q(n[0].value):V()}else"Backspace"===t.key&&""===G&&n.length>0?z(n[n.length-1]):"Escape"===t.key?(E(!1),I(""),K.current?.blur()):"Tab"===t.key&&(V(),E(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-ink-strong placeholder:text-[color:var(--ink-placeholder)] rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),Y&&_&&i(
6
+ /* @__PURE__ */b("div",{ref:P,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:a.popup,left:S?.left,right:S?.right,top:S?.top,bottom:S?.bottom,minWidth:S?.minWidth,maxWidth:S?.maxWidth??c,width:"max-content",visibility:S?void 0:"hidden",...d()},children:/* @__PURE__ */b("div",{className:"overflow-y-auto",style:{maxHeight:S?.maxHeight??u},children:0===B.length?/* @__PURE__ */b("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&n.length>=k.length?R.select.allSelected:R.select.noMatches}):B.map(e=>/* @__PURE__ */b("button",{type:"button",onMouseDown:t=>{t.preventDefault(),Q(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-row-hover text-ink whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-row-hover text-ink whitespace-nowrap",children:e.sublabel?/* @__PURE__ */v(x,{children:[
7
+ /* @__PURE__ */b("span",{className:"min-w-0 truncate",children:e.label}),
8
+ /* @__PURE__ */b(t,{grows:!0,children:e.sublabel})]}):e.label},e.value))})}),document.body)]})}export{y as TagInput};
@@ -1,7 +1,7 @@
1
- import{MOVE_KEYS as e,MoveHint as r,moveFromKey as t}from"./chunk-P5J7G7OV.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useBrowserLayoutEffect as a}from"./chunk-PU2GJVMG.js";import{createContext as o,useContext as n,useRef as l,useId as s}from"react";import{jsx as d,jsxs as c,Fragment as m}from"react/jsx-runtime";var u=o("compact");function f({"aria-label":e,"aria-labelledby":r,children:t,spacing:i="compact",className:a="",rootProps:o}){/* @__PURE__ */
2
- return d(u.Provider,{value:i,children:/* @__PURE__ */d("div",{...o,role:"list","aria-label":r?void 0:e,"aria-labelledby":r,"data-sortable-list":i,className:`flex min-w-0 flex-col ${"comfortable"===i?"gap-2":"gap-1"} ${a}`.trim(),children:t})})}function b({children:o,title:f,thumb:b,expanded:p,onToggle:h,actions:g,below:v,active:x=!1,flat:w=!1,draggable:y=!1,dragging:N=!1,drop:k,onMove:j,rowProps:P,rowRef:D,className:B=""}){const G=x||!!p,I=n(u),S=l(null),V=s(),$=[P?.["aria-describedby"],j?V:void 0].filter(Boolean).join(" ")||void 0,A=P?.tabIndex;a(()=>{const e=S.current;if(!e||void 0!==A)return;const r=[...e.querySelectorAll('a[href], button, input, select, textarea, [contenteditable]:not([contenteditable="false"]), [tabindex]')].some(r=>r!==e);j&&!r?e.tabIndex=0:e.removeAttribute("tabindex")});const J="comfortable"===I?{before:"-top-[5px]",after:"-bottom-[5px]"}:{before:"-top-0.5",after:"-bottom-0.5"},K=null!=f&&/* @__PURE__ */c(m,{children:[null!=b&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 overflow-hidden rounded-sm",children:b}),
1
+ import{MOVE_KEYS as e,MoveHint as r,moveFromKey as t}from"./chunk-26I3OTGP.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useBrowserLayoutEffect as a}from"./chunk-PU2GJVMG.js";import{createContext as o,useContext as n,useRef as l,useId as s}from"react";import{jsx as d,jsxs as c,Fragment as m}from"react/jsx-runtime";var u=o("compact");function f({"aria-label":e,"aria-labelledby":r,children:t,spacing:i="compact",className:a="",rootProps:o}){/* @__PURE__ */
2
+ return d(u.Provider,{value:i,children:/* @__PURE__ */d("div",{...o,role:"list","aria-label":r?void 0:e,"aria-labelledby":r,"data-sortable-list":i,className:`flex min-w-0 flex-col ${"comfortable"===i?"gap-2":"gap-1"} ${a}`.trim(),children:t})})}function b({children:o,title:f,thumb:b,expanded:p,onToggle:h,actions:g,below:v,active:x=!1,flat:w=!1,draggable:y=!1,dragging:N=!1,drop:k,onMove:j,rowProps:P,rowRef:D,className:I=""}){const B=x||!!p,G=n(u),S=l(null),$=s(),A=[P?.["aria-describedby"],j?$:void 0].filter(Boolean).join(" ")||void 0,K=P?.tabIndex;a(()=>{const e=S.current;if(!e||void 0!==K)return;const r=[...e.querySelectorAll('a[href], button, input, select, textarea, [contenteditable]:not([contenteditable="false"]), [tabindex]')].some(r=>r!==e);j&&!r?e.tabIndex=0:e.removeAttribute("tabindex")});const M="comfortable"===G?{before:"-top-[5px]",after:"-bottom-[5px]"}:{before:"-top-0.5",after:"-bottom-0.5"},O=null!=f&&/* @__PURE__ */c(m,{children:[null!=b&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 overflow-hidden rounded-sm",children:b}),
3
3
  /* @__PURE__ */d("span",{"data-list-row-name":"",className:"min-w-0 flex-1 break-words font-semibold text-(--ink-strongest)",children:f})]});/* @__PURE__ */
4
- return c("div",{role:"listitem","data-list-item":"","data-drop":k,"data-open":G||void 0,className:["relative flex min-w-0 flex-col",w?"":"rounded-(--radius-card) border bg-surface transition-colors duration-(--motion-fast)",w?"":G?"border-blue-300":"border-line hover:border-gray-300"].filter(Boolean).join(" "),children:[k&&/* @__PURE__ */d("span",{"aria-hidden":"true","data-list-drop-line":"",className:`pointer-events-none absolute inset-x-2 z-10 h-0.5 rounded-full bg-blue-500 ${J[k]}`}),
5
- /* @__PURE__ */c("div",{...P,ref:e=>{var r,t;S.current=e,t=e,"function"==typeof(r=D)?r(t):r&&(r.current=t)},"data-list-row":"","data-draggable":y||void 0,"aria-keyshortcuts":P?.["aria-keyshortcuts"]??(j?e:void 0),"aria-describedby":$,onKeyDown:e=>{if(P?.onKeyDown?.(e),e.defaultPrevented||!j)return;const r=t(e);r&&!e.target.closest?.("select")&&(e.preventDefault(),j(r))},className:["group/listrow relative flex min-h-8 min-w-0 items-center gap-1 rounded-md text-sm",w?"":"min-h-10 pl-3",y?"cursor-grab active:cursor-grabbing":"","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",null!=g&&!1!==g?"":"pr-2",N?"opacity-40":"",B].filter(Boolean).join(" "),children:[
6
- /* @__PURE__ */c("div",{"data-list-row-main":"",className:"flex min-h-8 min-w-0 flex-1 items-center gap-1",children:[K&&(h?/* @__PURE__ */c("button",{type:"button","aria-expanded":!!p,onClick:h,"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 self-stretch rounded-sm py-2 text-left text-(--ink-strongest) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:[K,
7
- /* @__PURE__ */d(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:"2",className:"h-4 w-4 shrink-0 transition-transform duration-(--motion-base) motion-reduce:transition-none "+(p?"rotate-90":"")})]}):/* @__PURE__ */d("span",{"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 py-2",children:K})),o]}),null!=g&&!1!==g&&/* @__PURE__ */d("div",{"data-list-actions":"",className:"flex shrink-0 items-center gap-0.5",children:g}),j&&/* @__PURE__ */d(r,{id:V})]}),null!=v&&!1!==v&&/* @__PURE__ */d("div",{"data-list-below":"",className:w?"":"px-3 pb-3",children:v})]})}export{b as ListRow,f as SortableList};
4
+ return c("div",{role:"listitem","data-list-item":"","data-drop":k,"data-open":B||void 0,className:["relative flex min-w-0 flex-col",w?"":"rounded-(--radius-card) border bg-surface transition-colors duration-(--motion-fast)",w?"":B?"border-blue-300":"border-line hover:border-gray-300"].filter(Boolean).join(" "),children:[k&&/* @__PURE__ */d("span",{"aria-hidden":"true","data-list-drop-line":"",className:`pointer-events-none absolute inset-x-2 z-10 h-0.5 rounded-full bg-blue-500 ${M[k]}`}),
5
+ /* @__PURE__ */c("div",{...P,ref:e=>{var r,t;S.current=e,t=e,"function"==typeof(r=D)?r(t):r&&(r.current=t)},"data-list-row":"","data-draggable":y||void 0,"aria-keyshortcuts":P?.["aria-keyshortcuts"]??(j?e:void 0),"aria-describedby":A,onKeyDown:e=>{if(P?.onKeyDown?.(e),e.defaultPrevented||!j)return;const r=t(e);r&&!e.target.closest?.("select")&&(e.preventDefault(),j(r))},className:["group/listrow relative flex min-h-8 min-w-0 items-center gap-1 rounded-md text-sm",w?"":"min-h-10 pl-3",y?"cursor-grab active:cursor-grabbing":"","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",null!=g&&!1!==g?"":"pr-2",N?"opacity-40":"",I].filter(Boolean).join(" "),children:[
6
+ /* @__PURE__ */c("div",{"data-list-row-main":"",className:"flex min-h-8 min-w-0 flex-1 items-center gap-1",children:[O&&(h?/* @__PURE__ */c("button",{type:"button","aria-expanded":!!p,onClick:h,"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 self-stretch rounded-sm py-2 text-left text-(--ink-strongest) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:[O,
7
+ /* @__PURE__ */d(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:"2",className:"h-4 w-4 shrink-0 transition-transform duration-(--motion-base) motion-reduce:transition-none "+(p?"rotate-90":"")})]}):/* @__PURE__ */d("span",{"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 py-2",children:O})),o]}),null!=g&&!1!==g&&/* @__PURE__ */d("div",{"data-list-actions":"",className:"flex shrink-0 items-center gap-0.5",children:g}),j&&/* @__PURE__ */d(r,{id:$})]}),null!=v&&!1!==v&&/* @__PURE__ */d("div",{"data-list-below":"",className:w?"":"px-3 pb-3",children:v})]})}export{b as ListRow,f as SortableList};
@@ -1,4 +1,4 @@
1
- import{TH_ONE_LINE as r}from"./chunk-G3TC2GIA.js";import{jsxs as e,jsx as c}from"react/jsx-runtime";function n({caption:n,head:t,rows:i}){/* @__PURE__ */
1
+ import{TH_ONE_LINE as r}from"./chunk-7FYTL6SD.js";import{jsxs as e,jsx as c}from"react/jsx-runtime";function n({caption:n,head:t,rows:i}){/* @__PURE__ */
2
2
  return e("table",{className:"sr-only",children:[
3
3
  /* @__PURE__ */c("caption",{children:n}),
4
4
  /* @__PURE__ */c("thead",{children:/* @__PURE__ */c("tr",{children:t.map(e=>/* @__PURE__ */c("th",{className:r,scope:"col",children:e},e))})}),
@@ -0,0 +1,19 @@
1
+ import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as n}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as i,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-K5YT5PMJ.js";import{useSettingAuto as d}from"./chunk-2NMW66P5.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-AYZY3YNC.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-URHGHXDN.js";import{Icon as m}from"./chunk-ISVODSRP.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{createShellPortal as h}from"./chunk-52YTUQW3.js";import{Z_LAYERS as f}from"./chunk-62LW225J.js";import{useDropdownPosition as b,MENU_MAX_HEIGHT as g}from"./chunk-TAHHZGRH.js";import{useBrowserLayoutEffect as y}from"./chunk-PU2GJVMG.js";import{useRowControlSize as x}from"./chunk-UMLXFQVC.js";import{registerModalEscapeInterceptor as k}from"./chunk-TWVUQUUD.js";import{solidSurfaceStyle as N}from"./chunk-5FYDNH4Y.js";import{useShellStrings as w}from"./chunk-NRHG4R2Q.js";import{forwardRef as $,useId as D,useState as j,useRef as H,useMemo as S,useCallback as T,useEffect as C}from"react";import{jsxs as E,jsx as I,Fragment as O}from"react/jsx-runtime";var R=e=>e.labelStyle?{lineHeight:1.25,...e.labelStyle}:void 0,z=$(function({value:e,onChange:t,options:r,placeholder:n,invalid:i,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},x){const k=t,N=w(),$=d(),j=f??$,H=D(),S=/* @__PURE__ */E("select",{ref:x,value:e,multiple:b||void 0,onChange:e=>k(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":i||void 0,"aria-describedby":[g,j?H:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:i,size:l,auto:j,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==n&&!b&&/* @__PURE__ */I("option",{value:"",disabled:!0,children:n}),
2
+ /* @__PURE__ */I(U,{items:r})]});return j?/* @__PURE__ */E(O,{children:[S,
3
+ /* @__PURE__ */I("span",{id:H,hidden:!0,children:N.settingView.auto})]}):S});function U({items:e}){const t=e=>/* @__PURE__ */I("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
4
+ return I(O,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */I("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var V=$(function({value:l,onChange:u,options:$,placeholder:z,invalid:V,className:A="",id:P,disabled:K,size:M,touchSize:Y,title:G,multiple:W,renderOption:B,renderValue:F,valueText:L,readOnly:Q=!1,footer:J,changed:X=!1,auto:q,"aria-describedby":Z,"aria-label":_,"aria-labelledby":ee,...te},re){const ne=x(M),[ie,ae]=j(!1),[le,oe]=j(-1),de=H(null),se=H(null),ce=H(null),ue=H(null),pe=H([]),me=()=>ue.current??ce.current,ve=!!J?.length,he="sm"===ne,fe=he?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",be=p(he),[ge,ye]=j(null),xe=w(),ke=H(ie);ke.current=ie;const Ne=H({buffer:"",timer:null}),we=D(),$e=`${we}-listbox`,De=P??`${we}-trigger`,je=e=>`${we}-opt-${e}`,He=`${we}-changed`,Se=d(),Te=q??Se,Ce=`${we}-auto`,Ee=[Z,X?He:void 0,Te?Ce:void 0].filter(Boolean).join(" ")||void 0,Ie=S(()=>i($),[$]),Oe=W?l:[],Re=u,ze=b(se,ie,{matchTriggerWidth:!0,...J?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Ue=`${ie}|${ze?.top}|${ze?.bottom}|${ze?.maxHeight}|${$.length}`;y(()=>{ye(null)},[Ue]),y(()=>{const e=ce.current;if(!ie||!e||null!==ge)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const n=e.getBoundingClientRect().top;let i=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-n+e.scrollTop;if(!(r<=e.clientHeight+.5))break;i=r}i>r&&ye(Math.floor(i))},[ie,ge,Ue]);const Ve=W?Ie.findIndex(e=>Oe.includes(e.value)):Ie.findIndex(e=>e.value===l),Ae=W?Ie.filter(e=>Oe.includes(e.value)).map(e=>e.label).join(", ")||void 0:Ve>=0?Ie[Ve].label:void 0,Pe=!W&&Ve>=0?Ie[Ve].lang:void 0,Ke=W?Ie.filter(e=>Oe.includes(e.value)):Ve>=0?[Ie[Ve]]:[],Me=F&&Ke.length?F(Ke):void 0,Ye=void 0!==Me&&L?L(Ke):void 0,Ge=T((e=!0)=>{ae(!1),oe(-1),e&&se.current?.focus()},[]),We=T(()=>{K||Q||(oe(Ve>=0?Ve:e(Ie)),ae(!0))},[K,Q,Ie,Ve]),Be=T(e=>{const t=Ie[e];if(t&&!t.disabled){if(W){const r=l;return Re(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void oe(e)}Re(t.value),Ge()}},[Ie,W,l,Re,Ge]);C(()=>{if(!ie)return;return k(e=>!("Escape"!==e.key||!ke.current)&&(Ge(),!0),me)},[ie,Ge]),C(()=>{if(!ie)return;const e=e=>{const t=e.target;de.current?.contains(t)||me()?.contains(t)||Ge(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Ge(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[ie,Ge]),C(()=>{!ie||le<0||ce.current?.querySelector(`#${CSS.escape(je(le))}`)?.scrollIntoView({block:"nearest"})},[ie,le]);const Fe=T(e=>{const r=Ne.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const n=ie?le:Ve,i=t(Ie,r.buffer,n);i<0||(ie?oe(i):W?(oe(i),ae(!0)):Be(i))},[ie,le,Ve,Ie,Be,W]),Le=ie?a($,(e,t)=>{const r=(n=e.value,W?Oe.includes(n):l===n);var n;const i=t===le;/* @__PURE__ */
5
+ return E("div",{id:je(t),role:"option",lang:e.description||e.labelStyle||B?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||oe(t)},onClick:()=>Be(t),className:`mx-1 cursor-pointer truncate rounded-lg ${fe}${W?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":i?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[W&&/* @__PURE__ */I(o,{selected:r}),B?/* @__PURE__ */I("span",{className:"block min-w-0 flex-1 truncate",children:B(e,{selected:r,active:i})}):W?/* @__PURE__ */E("span",{className:"block min-w-0 flex-1",children:[
6
+ /* @__PURE__ */I("span",{lang:e.lang,className:"block truncate",style:R(e),children:e.label}),e.description&&/* @__PURE__ */I("span",{className:be,children:e.description})]}):e.description||e.labelStyle?
7
+ /* @__PURE__ */E(O,{children:[
8
+ /* @__PURE__ */I("span",{lang:e.lang,className:"block truncate",style:R(e),children:e.label}),e.description&&/* @__PURE__ */I("span",{className:be,children:e.description})]}):e.label]},e.value)},we,"mx-1"):null,Qe=void 0!==Me?
9
+ /* @__PURE__ */E("span",{className:"relative block min-w-0 truncate",children:[
10
+ /* @__PURE__ */I("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:Me}),
11
+ /* @__PURE__ */I("span",{lang:void 0===Ye?Pe:void 0,className:"sr-only",children:Ye??Ae})]}):/* @__PURE__ */I("span",{lang:Pe,className:`block truncate ${void 0===Ae?c:""}`,children:Ae??z??" "}),Je={zIndex:f.popup,left:ze?.left,top:ze?.top,bottom:ze?.bottom,width:ze?.width,maxHeight:ze?.maxHeight??g,visibility:ze?void 0:"hidden",...N()},Xe=/* @__PURE__ */I("div",{ref:ce,id:$e,role:"listbox","aria-labelledby":ee??(_?void 0:De),"aria-label":ee?void 0:_,"aria-multiselectable":W||void 0,className:ve?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:ve?null!==ge?{maxHeight:ge}:void 0:null!==ge?{...Je,maxHeight:ge}:Je,children:Le}),qe=ve?/* @__PURE__ */E("div",{ref:ue,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:Je,children:[Xe,
12
+ /* @__PURE__ */I("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:J.map((e,t)=>/* @__PURE__ */E("button",{ref:e=>{pe.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Ge(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(J?.length??0)-1,n=t=>{e.preventDefault(),pe.current[t]?.focus()},i=()=>{e.preventDefault(),se.current?.focus()};switch(e.key){case"ArrowDown":return void n(Math.min(t+1,r));case"ArrowUp":return void(0===t?i():n(t-1));case"Home":return void n(0);case"End":return void n(r);case"Tab":return e.shiftKey?void(0===t?i():n(t-1)):t<r?void n(t+1):(e.preventDefault(),void Ge());case"Escape":return e.preventDefault(),e.stopPropagation(),void Ge()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${fe} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-ink-faintest":"cursor-pointer text-ink hover:bg-accent-tint hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */I(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
13
+ /* @__PURE__ */I("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):Xe;/* @__PURE__ */
14
+ return E("div",{ref:de,className:"relative",children:[
15
+ /* @__PURE__ */I("button",{ref:se,id:De,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":ie,"aria-controls":ie?$e:void 0,"aria-activedescendant":ie&&le>=0?je(le):void 0,"aria-invalid":V||void 0,"aria-describedby":Ee,"aria-label":_,"aria-labelledby":ee,title:G,disabled:K,"aria-readonly":Q||void 0,onClick:()=>ie?Ge():We(),onKeyDown:t=>{if(!K&&!Q)switch(t.key){case"ArrowDown":return t.preventDefault(),void(ie?oe(e=>n(Ie,e,1)):We());case"ArrowUp":return t.preventDefault(),void(ie?oe(e=>n(Ie,e,-1)):We());case"Home":return void(ie&&(t.preventDefault(),oe(e(Ie))));case"End":return void(ie&&(t.preventDefault(),oe(r(Ie))));case"Enter":return void(ie&&(t.preventDefault(),Be(le)));case" ":return t.preventDefault(),void(ie?Be(le):We());case"Escape":return void(ie&&(t.preventDefault(),t.stopPropagation(),Ge()));case"Tab":return ie&&ve&&!t.shiftKey?(t.preventDefault(),void pe.current[0]?.focus()):void(ie&&Ge(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),Fe(t.key))}},className:s({invalid:V,size:ne,readOnly:Q,auto:Te,className:`${Q?"":"pr-8 "}text-left ${A}`.trim()}),children:X?
16
+ /* @__PURE__ */E("span",{className:"flex min-w-0 items-center gap-1",children:[Qe,
17
+ /* @__PURE__ */I("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Qe}),X&&/* @__PURE__ */I("span",{id:He,hidden:!0,children:xe.select.changed}),Te&&/* @__PURE__ */I("span",{id:Ce,hidden:!0,children:xe.settingView.auto}),!Q&&/* @__PURE__ */I(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
18
+ /* @__PURE__ */E("select",{ref:re,value:l,multiple:W||void 0,onChange:e=>Re(W?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:K,"aria-hidden":"true",tabIndex:-1,className:"sr-only",...te,children:[void 0!==z&&!W&&/* @__PURE__ */I("option",{value:"",disabled:!0,children:z}),
19
+ /* @__PURE__ */I(U,{items:$})]}),ie&&h(qe,document.body)]})}),A=$(function({touchSize:e,...t},r){const n=u(),i=e??"touch";return!n||void 0===t.footer&&void 0===t.changed||t.readOnly?n&&!t.readOnly?/* @__PURE__ */I(z,{ref:r,...t,size:i}):/* @__PURE__ */I(V,{ref:r,...t}):/* @__PURE__ */I(V,{ref:r,...t,size:i})});export{z as NativeSelect,A as Select_default};