@marimo-team/islands 0.22.1-dev3 → 0.22.1-dev30

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 (325) hide show
  1. package/dist/{ConnectedDataExplorerComponent-Dl1grr8z.js → ConnectedDataExplorerComponent-DTOsfq2x.js} +54 -54
  2. package/dist/_basePickBy-Sow3pJjS.js +41 -0
  3. package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
  4. package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
  5. package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
  6. package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
  7. package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
  8. package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
  9. package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
  10. package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
  11. package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
  12. package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
  13. package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
  14. package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
  15. package/dist/{chat-ui-CtqUthFR.js → chat-ui-eH46RYWT.js} +147 -146
  16. package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
  17. package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
  18. package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
  19. package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
  20. package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
  21. package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
  22. package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
  23. package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
  24. package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
  25. package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
  26. package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
  27. package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
  28. package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
  29. package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
  30. package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
  31. package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
  32. package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
  33. package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
  34. package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
  35. package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
  36. package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
  37. package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
  38. package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
  39. package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
  40. package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
  41. package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
  42. package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
  43. package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
  44. package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
  45. package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
  46. package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
  47. package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
  48. package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
  49. package/dist/dist-7K5doRvB.js +6 -0
  50. package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
  51. package/dist/dist-B6I_A2-E.js +8 -0
  52. package/dist/dist-BEQsmaZY.js +5 -0
  53. package/dist/dist-BasY2RHp.js +8 -0
  54. package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
  55. package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
  56. package/dist/dist-Bosc00dY.js +5 -0
  57. package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
  58. package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
  59. package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
  60. package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
  61. package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
  62. package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
  63. package/dist/dist-CQMZOn-_.js +8 -0
  64. package/dist/dist-CViQhWZ8.js +5 -0
  65. package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
  66. package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
  67. package/dist/dist-Cz6rLfwY.js +5 -0
  68. package/dist/dist-D8eq8st3.js +6 -0
  69. package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
  70. package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
  71. package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
  72. package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
  73. package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
  74. package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
  75. package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
  76. package/dist/dist-DM1UDXdl.js +5 -0
  77. package/dist/dist-DNrtWPgS.js +5 -0
  78. package/dist/dist-D_UjpfOY.js +1381 -0
  79. package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
  80. package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
  81. package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
  82. package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
  83. package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
  84. package/dist/dist-V7q2qnpA.js +5 -0
  85. package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
  86. package/dist/dist-a5_hPgu2.js +8 -0
  87. package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
  88. package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
  89. package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
  90. package/dist/dist-uVyZcV1-.js +5 -0
  91. package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
  92. package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
  93. package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
  94. package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
  95. package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
  96. package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
  97. package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
  98. package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
  99. package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-VgPtWvhu.js} +63 -63
  100. package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
  101. package/dist/hasIn-DnfJcYpY.js +108 -0
  102. package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
  103. package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
  104. package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
  105. package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
  106. package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
  107. package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
  108. package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
  109. package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
  110. package/dist/{loader-3c9hT4kT.js → loader-Bd1kgLn7.js} +19 -16
  111. package/dist/main.js +2602 -2594
  112. package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
  113. package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
  114. package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
  115. package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
  116. package/dist/min-Ds3gG0Ff.js +96 -0
  117. package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
  118. package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
  119. package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
  120. package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
  121. package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
  122. package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
  123. package/dist/{process-output-KyzWazB-.js → process-output-BbUNe4iH.js} +3181 -3204
  124. package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
  125. package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
  126. package/dist/range-fJeId9Ri.js +30 -0
  127. package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
  128. package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
  129. package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
  130. package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
  131. package/dist/{spec-DYaR1rJh.js → spec-CiHus5Bb.js} +3 -3
  132. package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
  133. package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
  134. package/dist/stex-CQDv3aS8.js +4 -0
  135. package/dist/style.css +1 -1
  136. package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
  137. package/dist/{toDate-D6VXexnV.js → toDate-BzYZtEK7.js} +4 -4
  138. package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
  139. package/dist/tooltip-BXEpXV3R.js +404 -0
  140. package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
  141. package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
  142. package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
  143. package/dist/{useDeepCompareMemoize-X7clcrcQ.js → useDeepCompareMemoize-iM1YNTEF.js} +4 -4
  144. package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
  145. package/dist/{useLifecycle-Dids8BPm.js → useLifecycle-DgDTfOLZ.js} +9 -9
  146. package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
  147. package/dist/{vega-component-A6unyUJS.js → vega-component-CkpTXaRx.js} +23 -23
  148. package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
  149. package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
  150. package/package.json +8 -41
  151. package/src/__tests__/branded.ts +6 -0
  152. package/src/__tests__/main.test.tsx +12 -14
  153. package/src/components/ai/ai-provider-icon.tsx +3 -2
  154. package/src/components/app-config/user-config-form.tsx +0 -27
  155. package/src/components/chat/acp/agent-docs.tsx +3 -3
  156. package/src/components/chat/acp/agent-panel.tsx +69 -22
  157. package/src/components/chat/acp/agent-selector.tsx +2 -11
  158. package/src/components/chat/acp/state.ts +14 -2
  159. package/src/components/chat/chat-panel.tsx +2 -1
  160. package/src/components/data-table/TableBottomBar.tsx +12 -1
  161. package/src/components/data-table/TableTopBar.tsx +31 -35
  162. package/src/components/data-table/cell-selection/types.ts +3 -2
  163. package/src/components/data-table/charts/charts.tsx +42 -13
  164. package/src/components/data-table/charts/components/chart-items.tsx +1 -1
  165. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
  166. package/src/components/data-table/column-formatting/types.ts +3 -2
  167. package/src/components/data-table/column-header.tsx +4 -2
  168. package/src/components/data-table/column-wrapping/types.ts +3 -2
  169. package/src/components/data-table/columns.tsx +4 -1
  170. package/src/components/data-table/copy-column/types.ts +3 -2
  171. package/src/components/data-table/data-table.tsx +6 -1
  172. package/src/components/data-table/focus-row/types.ts +3 -2
  173. package/src/components/data-table/loading-table.tsx +4 -1
  174. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +11 -11
  175. package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
  176. package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
  177. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
  178. package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
  179. package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
  180. package/src/components/editor/actions/name-cell-input.tsx +4 -2
  181. package/src/components/editor/actions/useCellActionButton.tsx +4 -2
  182. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
  183. package/src/components/editor/cell/CellStatus.tsx +4 -5
  184. package/src/components/editor/cell/cell-context-menu.tsx +4 -2
  185. package/src/components/editor/cell/code/cell-editor.tsx +2 -1
  186. package/src/components/editor/cell/toolbar.tsx +2 -1
  187. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
  188. package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
  189. package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
  190. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
  191. package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
  192. package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
  193. package/src/components/editor/header/filename-input.tsx +4 -1
  194. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +11 -12
  195. package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
  196. package/src/components/tracing/tracing.test.tsx +30 -30
  197. package/src/components/ui/accordion.tsx +1 -1
  198. package/src/components/ui/alert-dialog.tsx +1 -1
  199. package/src/components/ui/badge.tsx +2 -1
  200. package/src/components/ui/button.tsx +4 -3
  201. package/src/components/ui/calendar.tsx +3 -2
  202. package/src/components/ui/checkbox.tsx +1 -1
  203. package/src/components/ui/combobox.tsx +2 -1
  204. package/src/components/ui/command.tsx +4 -1
  205. package/src/components/ui/context-menu.tsx +1 -1
  206. package/src/components/ui/date-input.tsx +7 -6
  207. package/src/components/ui/date-picker.tsx +6 -4
  208. package/src/components/ui/dialog.tsx +1 -1
  209. package/src/components/ui/draggable-popover.tsx +1 -1
  210. package/src/components/ui/dropdown-menu.tsx +2 -1
  211. package/src/components/ui/field.tsx +1 -2
  212. package/src/components/ui/form.tsx +4 -5
  213. package/src/components/ui/fullscreen.tsx +4 -1
  214. package/src/components/ui/label.tsx +1 -1
  215. package/src/components/ui/navigation.tsx +1 -1
  216. package/src/components/ui/popover.tsx +1 -1
  217. package/src/components/ui/progress.tsx +4 -3
  218. package/src/components/ui/query-param-preserving-link.tsx +4 -2
  219. package/src/components/ui/radio-group.tsx +1 -1
  220. package/src/components/ui/range-slider.tsx +1 -1
  221. package/src/components/ui/scroll-area.tsx +1 -1
  222. package/src/components/ui/select.tsx +1 -1
  223. package/src/components/ui/sheet.tsx +3 -2
  224. package/src/components/ui/slider.tsx +1 -1
  225. package/src/components/ui/switch.tsx +1 -1
  226. package/src/components/ui/tabs.tsx +1 -1
  227. package/src/components/ui/textarea.tsx +1 -2
  228. package/src/components/ui/toast.tsx +1 -1
  229. package/src/components/ui/toggle.tsx +1 -1
  230. package/src/components/ui/tooltip.tsx +1 -1
  231. package/src/core/ai/context/providers/cell-output.ts +1 -2
  232. package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
  233. package/src/core/ai/tools/run-cells-tool.ts +4 -3
  234. package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
  235. package/src/core/cells/__tests__/apply-transaction.test.ts +12 -11
  236. package/src/core/cells/__tests__/cell.test.ts +14 -13
  237. package/src/core/cells/document-changes.ts +9 -9
  238. package/src/core/cells/logs.ts +1 -1
  239. package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
  240. package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -2
  241. package/src/core/codemirror/copilot/client.ts +9 -2
  242. package/src/core/codemirror/copilot/language-server.ts +11 -0
  243. package/src/core/codemirror/copilot/transport.ts +33 -8
  244. package/src/core/codemirror/language/languages/markdown.ts +1 -3
  245. package/src/core/codemirror/language/languages/python.ts +4 -0
  246. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
  247. package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
  248. package/src/core/codemirror/language/panel/sql.tsx +4 -1
  249. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
  250. package/src/core/config/__tests__/config-schema.test.ts +2 -6
  251. package/src/core/config/config-schema.ts +0 -1
  252. package/src/core/config/feature-flag.tsx +0 -2
  253. package/src/core/datasets/data-source-connections.ts +4 -2
  254. package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
  255. package/src/core/dom/__tests__/outline.test.ts +2 -3
  256. package/src/core/edit-app.tsx +4 -1
  257. package/src/core/islands/__tests__/bridge.test.ts +20 -10
  258. package/src/core/islands/__tests__/parse.test.ts +8 -7
  259. package/src/core/network/__tests__/requests-lazy.test.ts +30 -14
  260. package/src/core/saving/__tests__/filename.test.ts +7 -6
  261. package/src/core/static/__tests__/download-html.test.ts +16 -15
  262. package/src/core/static/__tests__/files.test.ts +30 -28
  263. package/src/core/websocket/useMarimoKernelConnection.tsx +5 -11
  264. package/src/core/websocket/useWebSocket.tsx +3 -1
  265. package/src/css/app/Cell.css +25 -1
  266. package/src/css/globals.css +40 -14
  267. package/src/css/table.css +17 -0
  268. package/src/plugins/core/BadPlugin.tsx +7 -6
  269. package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
  270. package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
  271. package/src/plugins/impl/DataTablePlugin.tsx +5 -1
  272. package/src/plugins/impl/FormPlugin.tsx +1 -2
  273. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
  274. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
  275. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +2 -11
  276. package/src/plugins/impl/chat/chat-ui.tsx +4 -1
  277. package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
  278. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +12 -68
  279. package/src/plugins/impl/plotly/__tests__/selection.test.ts +237 -0
  280. package/src/plugins/impl/plotly/selection.ts +118 -0
  281. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
  282. package/src/plugins/impl/vega/__tests__/utils.test.ts +68 -0
  283. package/src/plugins/impl/vega/utils.ts +14 -5
  284. package/src/plugins/impl/vega/vega.css +2 -1
  285. package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
  286. package/src/plugins/stateless-plugin.ts +4 -2
  287. package/src/utils/__tests__/cell-urls.test.ts +24 -21
  288. package/src/utils/__tests__/filenames.test.ts +15 -14
  289. package/src/utils/__tests__/json-parser.test.ts +14 -21
  290. package/src/utils/__tests__/path.test.ts +34 -31
  291. package/src/utils/__tests__/urls.test.ts +19 -18
  292. package/src/utils/json/base64.ts +2 -5
  293. package/src/utils/time.ts +4 -2
  294. package/src/utils/tracer.ts +1 -0
  295. package/src/utils/typed.ts +2 -2
  296. package/dist/_basePickBy-QjOmBDRE.js +0 -110
  297. package/dist/_baseSet-xgn1IbGV.js +0 -27
  298. package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
  299. package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
  300. package/dist/dist-B0R_ZM4-.js +0 -6
  301. package/dist/dist-B4a9_9pj.js +0 -5
  302. package/dist/dist-BCSUKEwO.js +0 -5
  303. package/dist/dist-BONIDQq6.js +0 -5
  304. package/dist/dist-BYeRx2hb.js +0 -5
  305. package/dist/dist-D2Rk1j4R.js +0 -1381
  306. package/dist/dist-DZjX5TYv.js +0 -5
  307. package/dist/dist-Dkw9x6kc.js +0 -5
  308. package/dist/dist-Ds6UaXGR.js +0 -6
  309. package/dist/dist-KuEJ1Q53.js +0 -8
  310. package/dist/dist-S72WNyTZ.js +0 -5
  311. package/dist/dist-bTG-yssT.js +0 -5
  312. package/dist/dist-diF0sguc.js +0 -8
  313. package/dist/dist-mJ84BIgu.js +0 -8
  314. package/dist/dist-wSIhFWQz.js +0 -8
  315. package/dist/get-CqrzlV1v.js +0 -68
  316. package/dist/range-CYz5jI--.js +0 -17
  317. package/dist/stex-CZyTRGVB.js +0 -4
  318. package/dist/tooltip-DGHTbHl5.js +0 -404
  319. /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
  320. /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
  321. /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
  322. /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
  323. /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
  324. /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
  325. /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
@@ -4,32 +4,32 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
5
  import { t as require_react } from "./react-Bs6Z0kvn.js";
6
6
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
7
- import { r as toast } from "./copy-CBo9JcJW.js";
8
- import { A as AccordionItem, Bn as CircleX, C as Boosts, D as AIContextRegistry, Dn as Wrench, E as AIContextProvider, Et as displayCellName, Fn as File$1, Gt as PluralWord, H as ChatBubbleIcon, I as MarimoIncomingMessageEvent, It as moveToEndOfEditor, Mn as LoaderCircle, Nt as createVariableInfoElement, O as Accordion, On as Trash2, Pn as Info, Qt as getTableType, T as contextToXml, Tn as atomWithStorage, Ut as jotaiJsonStorage, Wt as variablesAtom, X as base64ToDataURL, Xt as allTablesAtom, Y as deserializeBlob, Zt as dataSourceConnectionsAtom, a as toPng, ct as notebookAtom, d as Spinner, en as getRequestClient, f as Popover, g as PopoverAnchor, h as PopoverTrigger, in as singleFacet, it as cellErrorsAtom, j as AccordionTrigger, k as AccordionContent, ln as ZodLocalStorage, m as PopoverContent, mn as CellOutputId, n as blobToString, o as MarkdownRenderer, rt as renderHTML, t as processOutput, v as isOutputEmpty, w as Sections, x as DatasourceContextProvider } from "./process-output-KyzWazB-.js";
7
+ import { r as toast } from "./copy-B7781WJ3.js";
8
+ import { A as MarimoIncomingMessageEvent, At as moveToEndOfEditor, Bn as CircleX, C as contextToXml, D as AccordionContent, Dn as Wrench, Dt as createVariableInfoElement, E as Accordion, Fn as File$1, Gt as dataSourceConnectionsAtom, I as ChatBubbleIcon, Jt as getRequestClient, Kt as getTableType, Lt as jotaiJsonStorage, Mn as LoaderCircle, O as AccordionItem, On as Trash2, Pn as Info, Q as cellErrorsAtom, Qt as singleFacet, Rt as variablesAtom, S as Sections, T as AIContextRegistry, U as deserializeBlob, W as base64ToDataURL, Wt as allTablesAtom, Z as renderHTML, a as toPng, bt as displayCellName, cn as CellOutputId, d as Spinner, f as Popover, g as isOutputEmpty, h as PopoverTrigger, k as AccordionTrigger, m as PopoverContent, n as blobToString, nt as notebookAtom, o as MarkdownRenderer, rn as ZodLocalStorage, t as processOutput, w as AIContextProvider, x as Boosts, xn as Anchor2, y as DatasourceContextProvider, yn as atomWithStorage, zt as PluralWord } from "./process-output-BbUNe4iH.js";
9
9
  import "./chunk-5FQGJX7Z-C428iZBW.js";
10
- import { l as createLucideIcon } from "./dist-D2Rk1j4R.js";
11
- import { A as logNever, L as X, r as Strings, t as Label } from "./label-DTNqw9tv.js";
12
- import { a as NumberField, b as DropdownMenuTrigger, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu } from "./input-BSde8uV4.js";
13
- import { g as CircleQuestionMark } from "./toDate-D6VXexnV.js";
14
- import { d as useEventListener, h as Logger, t as Button, u as Objects, v as cn } from "./button-qsiIHncQ.js";
15
- import { A as custom, B as record, D as any, E as _null, G as unknown, H as string, I as never, J as toJSONSchema, K as safeParseAsync, L as number, M as lazy, N as literal, O as array$1, R as object$1, T as _instanceof, V as strictObject, W as union, j as discriminatedUnion, k as boolean, w as _enum } from "./Combination-B--d1_LV.js";
10
+ import { l as createLucideIcon } from "./dist-D_UjpfOY.js";
11
+ import { C as logNever, I as X, n as Strings, t as Label } from "./label-DbZGAoCH.js";
12
+ import { a as NumberField, b as DropdownMenuTrigger, d as DropdownMenuContent, p as DropdownMenuItem, r as Input, u as DropdownMenu } from "./input-CFY9gApZ.js";
13
+ import { g as CircleQuestionMark } from "./toDate-BzYZtEK7.js";
14
+ import { c as Objects, g as Logger, l as useEventListener, t as Button, y as cn } from "./button-DNlNlZY_.js";
15
+ import "./react-dom-BSUuJjCR.js";
16
16
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
17
- import "./react-dom-BKwCWYPW.js";
18
- import { t as Tooltip } from "./tooltip-DGHTbHl5.js";
19
- import { n as minimalSetup, t as esm_default, u as CopyClipboardIcon } from "./esm-CMg2ABu6.js";
20
- import { t as isEmpty_default } from "./isEmpty-BQtUinxJ.js";
21
- import { n as useTheme, v as useStore, w as useEvent_default } from "./useTheme-Dm1WaAGy.js";
22
- import { $ as ViewPlugin, At as Prec, Dt as EditorState, Ft as StateField, Lt as Transaction, Ot as Facet, Pt as StateEffect, Y as Decoration, Z as EditorView, dt as keymap, et as WidgetType, ut as hoverTooltip } from "./dist-KZI_BHqV.js";
23
- import { n as acceptCompletion, o as closeCompletion, r as autocompletion } from "./dist-DBXPlQ0D.js";
24
- import "./main-CvkAPtaq.js";
25
- import { a as markdown } from "./dist-DmFS6KZW.js";
26
- import "./dist-CQidOwep.js";
27
- import "./dist-C0XYIHKJ.js";
28
- import "./dist-C9qF7MRB.js";
29
- import "./dist-qoCY8giM.js";
30
- import "./purify.es-ukiMXY-F.js";
31
- import { n as ErrorBanner } from "./error-banner-Bx9kIgrs.js";
32
- import { t as useAsyncData } from "./useAsyncData-Cd4Urlww.js";
17
+ import { B as union, C as any, D as discriminatedUnion, E as custom, H as safeParseAsync, I as record, L as strictObject, M as never, N as number, O as lazy, P as object$1, R as string, S as _null, T as boolean, V as unknown, W as toJSONSchema, b as _enum, k as literal, w as array$1, x as _instanceof } from "./zod-C6UGQ3fz.js";
18
+ import { n as ErrorBanner } from "./error-banner-Cjf0RU9I.js";
19
+ import { t as Tooltip } from "./tooltip-BXEpXV3R.js";
20
+ import { n as minimalSetup, t as esm_default, u as CopyClipboardIcon } from "./esm-4wmsH2lp.js";
21
+ import { t as isEmpty_default } from "./isEmpty-B7FX9wKt.js";
22
+ import { n as useTheme, v as useStore, w as useEvent_default } from "./useTheme-MWfxn4oz.js";
23
+ import { $ as ViewPlugin, At as Prec, Dt as EditorState, Ft as StateField, Lt as Transaction, Ot as Facet, Pt as StateEffect, Y as Decoration, Z as EditorView, dt as keymap, et as WidgetType, ut as hoverTooltip } from "./dist-CxZvoNao.js";
24
+ import { n as acceptCompletion, o as closeCompletion, r as autocompletion } from "./dist-DGNtjMZu.js";
25
+ import "./main-XimWhSi_.js";
26
+ import { a as markdown } from "./dist-DbnBiLNH.js";
27
+ import "./dist-B43sbpd0.js";
28
+ import "./dist-Ci0CXEFt.js";
29
+ import "./dist-DJ9F1eHs.js";
30
+ import "./dist-DAfcmt-d.js";
31
+ import "./purify.es-hTCfRGdl.js";
32
+ import { t as useAsyncData } from "./useAsyncData-rN1nzPaS.js";
33
33
  var BotMessageSquare = createLucideIcon("bot-message-square", [
34
34
  ["path", {
35
35
  d: "M12 6V2H8",
@@ -5780,6 +5780,7 @@ function useChat({ experimental_throttle: e18, resume: _ = false, ...v } = {}) {
5780
5780
  addToolApprovalResponse: x.current.addToolApprovalResponse
5781
5781
  };
5782
5782
  }
5783
+ var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
5783
5784
  function isMediaMimetype(e18, _) {
5784
5785
  return e18 ? !!([
5785
5786
  "image/",
@@ -6170,18 +6171,18 @@ var DEFAULT_FILE_SEARCH_CONFIG = {
6170
6171
  }));
6171
6172
  }
6172
6173
  formatContext(e18) {
6173
- let { data: _ } = e18, { columns: v, source: y, num_rows: b, num_columns: x, name: S, variable_name: C } = _, w = [b == null ? void 0 : `${b} rows`, x == null ? void 0 : `${x} columns`].filter(Boolean).join(", "), T = "";
6174
- if (w && (T += `Shape: ${w}
6175
- `), C && (T += `Variable: ${C}
6174
+ let { data: _ } = e18, { columns: v, source: y, num_rows: b, num_columns: x, name: S, variable_name: C } = _, T = [b == null ? void 0 : `${b} rows`, x == null ? void 0 : `${x} columns`].filter(Boolean).join(", "), E = "";
6175
+ if (T && (E += `Shape: ${T}
6176
+ `), C && (E += `Variable: ${C}
6176
6177
  `), v && v.length > 0) {
6177
- T += "Columns:\n";
6178
+ E += "Columns:\n";
6178
6179
  for (let e19 of v) {
6179
6180
  let _2 = ` ${e19.name} (${e19.type})`;
6180
6181
  if (e19.sample_values && e19.sample_values.length > 0) {
6181
6182
  let v2 = e19.sample_values.slice(0, 3).map((e20) => e20 === null ? "null" : String(e20)).join(", ");
6182
6183
  _2 += ` - samples: [${v2}]`;
6183
6184
  }
6184
- T += `${_2}
6185
+ E += `${_2}
6185
6186
  `;
6186
6187
  }
6187
6188
  }
@@ -6191,7 +6192,7 @@ var DEFAULT_FILE_SEARCH_CONFIG = {
6191
6192
  name: S,
6192
6193
  source: y ?? "unknown"
6193
6194
  },
6194
- details: T.trim()
6195
+ details: E.trim()
6195
6196
  });
6196
6197
  }
6197
6198
  formatCompletion(e18) {
@@ -6330,7 +6331,7 @@ async function convertToFileUIPart(e18) {
6330
6331
  url: await blobToString(e19, "dataUrl")
6331
6332
  })));
6332
6333
  }
6333
- var import_compiler_runtime$4 = require_compiler_runtime(), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
6334
+ var import_compiler_runtime$4 = require_compiler_runtime();
6334
6335
  const AttachmentRenderer = (e18) => {
6335
6336
  var _a;
6336
6337
  let _ = (0, import_compiler_runtime$4.c)(6), { attachment: v } = e18;
@@ -6352,15 +6353,15 @@ const AttachmentRenderer = (e18) => {
6352
6353
  };
6353
6354
  var import_compiler_runtime$3 = require_compiler_runtime();
6354
6355
  const ReasoningAccordion = (e18) => {
6355
- let _ = (0, import_compiler_runtime$3.c)(13), { reasoning: v, index: y, isStreaming: b } = e18, S = y === void 0 ? 0 : y, C = b === void 0 ? false : b, w = C ? "reasoning" : void 0, T;
6356
- _[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-3 w-3" }), _[0] = T) : T = _[0];
6357
- let E = C ? "Thinking" : "View reasoning", D;
6356
+ let _ = (0, import_compiler_runtime$3.c)(13), { reasoning: v, index: y, isStreaming: b } = e18, x = y === void 0 ? 0 : y, S = b === void 0 ? false : b, C = S ? "reasoning" : void 0, w;
6357
+ _[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-3 w-3" }), _[0] = w) : w = _[0];
6358
+ let E = S ? "Thinking" : "View reasoning", D;
6358
6359
  _[1] !== v.length || _[2] !== E ? (D = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6359
6360
  className: "text-xs text-muted-foreground hover:bg-muted/50 px-2 py-1 h-auto rounded-sm [&[data-state=open]>svg]:rotate-180",
6360
6361
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6361
6362
  className: "flex items-center gap-2",
6362
6363
  children: [
6363
- T,
6364
+ w,
6364
6365
  E,
6365
6366
  " (",
6366
6367
  v.length,
@@ -6369,8 +6370,8 @@ const ReasoningAccordion = (e18) => {
6369
6370
  ]
6370
6371
  })
6371
6372
  }), _[1] = v.length, _[2] = E, _[3] = D) : D = _[3];
6372
- let O;
6373
- _[4] === v ? O = _[5] : (O = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6373
+ let k;
6374
+ _[4] === v ? k = _[5] : (k = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6374
6375
  className: "pb-2 px-2",
6375
6376
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
6376
6377
  className: "bg-muted/30 border border-muted/50 rounded-md p-3 italic text-muted-foreground/90 relative",
@@ -6379,21 +6380,21 @@ const ReasoningAccordion = (e18) => {
6379
6380
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MarkdownRenderer, { content: v })
6380
6381
  })
6381
6382
  })
6382
- }), _[4] = v, _[5] = O);
6383
- let k;
6384
- _[6] !== D || _[7] !== O ? (k = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6383
+ }), _[4] = v, _[5] = k);
6384
+ let A;
6385
+ _[6] !== D || _[7] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6385
6386
  value: "reasoning",
6386
6387
  className: "border-0",
6387
- children: [D, O]
6388
- }), _[6] = D, _[7] = O, _[8] = k) : k = _[8];
6389
- let A;
6390
- return _[9] !== S || _[10] !== w || _[11] !== k ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6388
+ children: [D, k]
6389
+ }), _[6] = D, _[7] = k, _[8] = A) : A = _[8];
6390
+ let j;
6391
+ return _[9] !== x || _[10] !== C || _[11] !== A ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6391
6392
  type: "single",
6392
6393
  collapsible: true,
6393
6394
  className: "w-full mb-2",
6394
- value: w,
6395
- children: k
6396
- }, S), _[9] = S, _[10] = w, _[11] = k, _[12] = A) : A = _[12], A;
6395
+ value: C,
6396
+ children: A
6397
+ }, x), _[9] = x, _[10] = C, _[11] = A, _[12] = j) : j = _[12], j;
6397
6398
  };
6398
6399
  var import_compiler_runtime$2 = require_compiler_runtime(), SuccessResultSchema = object$1({
6399
6400
  status: string().default("success"),
@@ -6485,9 +6486,9 @@ var import_compiler_runtime$2 = require_compiler_runtime(), SuccessResultSchema
6485
6486
  }), _[7] = C, _[8] = w), w;
6486
6487
  };
6487
6488
  const ToolCallAccordion = (e18) => {
6488
- let _ = (0, import_compiler_runtime$2.c)(38), { toolName: v, result: y, error: b, index: C, state: w, className: E, input: D } = e18, O = C === void 0 ? 0 : C, k = w === "output-available" && (y || b), A = b ? "error" : k ? "success" : "loading", j;
6489
- _[0] === A ? j = _[1] : (j = () => {
6490
- switch (A) {
6489
+ let _ = (0, import_compiler_runtime$2.c)(38), { toolName: v, result: y, error: b, index: x, state: S, className: w, input: D } = e18, k = x === void 0 ? 0 : x, A = S === "output-available" && (y || b), j = b ? "error" : A ? "success" : "loading", M;
6490
+ _[0] === j ? M = _[1] : (M = () => {
6491
+ switch (j) {
6491
6492
  case "loading":
6492
6493
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "h-3 w-3 animate-spin" });
6493
6494
  case "error":
@@ -6497,39 +6498,39 @@ const ToolCallAccordion = (e18) => {
6497
6498
  default:
6498
6499
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrench, { className: "h-3 w-3" });
6499
6500
  }
6500
- }, _[0] = A, _[1] = j);
6501
- let M = j, P;
6502
- _[2] !== b || _[3] !== k || _[4] !== A ? (P = () => A === "loading" ? "Running" : b ? "Failed" : k ? "Done" : "Tool call", _[2] = b, _[3] = k, _[4] = A, _[5] = P) : P = _[5];
6503
- let I = P, L = `tool-${O}`, R;
6504
- _[6] === E ? R = _[7] : (R = cn("w-full", E), _[6] = E, _[7] = R);
6505
- let z = A === "error" && "text-[var(--red-11)]/80", B = A === "success" && "text-[var(--grass-11)]/80", V;
6506
- _[8] !== z || _[9] !== B ? (V = cn("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline", z, B), _[8] = z, _[9] = B, _[10] = V) : V = _[10];
6507
- let H;
6508
- _[11] === M ? H = _[12] : (H = M(), _[11] = M, _[12] = H);
6509
- let U = I(), W;
6510
- _[13] === v ? W = _[14] : (W = formatToolName(v), _[13] = v, _[14] = W);
6511
- let G;
6512
- _[15] === W ? G = _[16] : (G = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
6513
- className: "font-mono text-xs",
6514
- children: W
6515
- }), _[15] = W, _[16] = G);
6501
+ }, _[0] = j, _[1] = M);
6502
+ let N = M, P;
6503
+ _[2] !== b || _[3] !== A || _[4] !== j ? (P = () => j === "loading" ? "Running" : b ? "Failed" : A ? "Done" : "Tool call", _[2] = b, _[3] = A, _[4] = j, _[5] = P) : P = _[5];
6504
+ let L = P, R = `tool-${k}`, z;
6505
+ _[6] === w ? z = _[7] : (z = cn("w-full", w), _[6] = w, _[7] = z);
6506
+ let B = j === "error" && "text-[var(--red-11)]/80", V = j === "success" && "text-[var(--grass-11)]/80", H;
6507
+ _[8] !== B || _[9] !== V ? (H = cn("h-6 text-xs border-border shadow-none! ring-0! bg-muted/60 hover:bg-muted py-0 px-2 gap-1 rounded-sm [&[data-state=open]>svg]:rotate-180 hover:no-underline", B, V), _[8] = B, _[9] = V, _[10] = H) : H = _[10];
6508
+ let U;
6509
+ _[11] === N ? U = _[12] : (U = N(), _[11] = N, _[12] = U);
6510
+ let W = L(), G;
6511
+ _[13] === v ? G = _[14] : (G = formatToolName(v), _[13] = v, _[14] = G);
6516
6512
  let K;
6517
- _[17] !== U || _[18] !== G || _[19] !== H ? (K = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6513
+ _[15] === G ? K = _[16] : (K = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
6514
+ className: "font-mono text-xs",
6515
+ children: G
6516
+ }), _[15] = G, _[16] = K);
6517
+ let q;
6518
+ _[17] !== W || _[18] !== K || _[19] !== U ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
6518
6519
  className: "flex items-center gap-1",
6519
6520
  children: [
6520
- H,
6521
6521
  U,
6522
+ W,
6522
6523
  ":",
6523
- G
6524
+ K
6524
6525
  ]
6525
- }), _[17] = U, _[18] = G, _[19] = H, _[20] = K) : K = _[20];
6526
- let q;
6527
- _[21] !== K || _[22] !== V ? (q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6528
- className: V,
6529
- children: K
6530
- }), _[21] = K, _[22] = V, _[23] = q) : q = _[23];
6526
+ }), _[17] = W, _[18] = K, _[19] = U, _[20] = q) : q = _[20];
6531
6527
  let J;
6532
- _[24] !== b || _[25] !== k || _[26] !== D || _[27] !== y ? (J = k && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
6528
+ _[21] !== q || _[22] !== H ? (J = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionTrigger, {
6529
+ className: H,
6530
+ children: q
6531
+ }), _[21] = q, _[22] = H, _[23] = J) : J = _[23];
6532
+ let Y;
6533
+ _[24] !== b || _[25] !== A || _[26] !== D || _[27] !== y ? (Y = A && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
6533
6534
  className: "space-y-3",
6534
6535
  children: [
6535
6536
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToolArgsRenderer, { input: D }),
@@ -6545,25 +6546,25 @@ const ToolCallAccordion = (e18) => {
6545
6546
  })]
6546
6547
  })
6547
6548
  ]
6548
- }), _[24] = b, _[25] = k, _[26] = D, _[27] = y, _[28] = J) : J = _[28];
6549
- let Y;
6550
- _[29] === J ? Y = _[30] : (Y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6551
- className: "py-2 px-2",
6552
- children: J
6553
- }), _[29] = J, _[30] = Y);
6549
+ }), _[24] = b, _[25] = A, _[26] = D, _[27] = y, _[28] = Y) : Y = _[28];
6554
6550
  let Z;
6555
- _[31] !== q || _[32] !== Y ? (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6551
+ _[29] === Y ? Z = _[30] : (Z = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AccordionContent, {
6552
+ className: "py-2 px-2",
6553
+ children: Y
6554
+ }), _[29] = Y, _[30] = Z);
6555
+ let Q;
6556
+ _[31] !== J || _[32] !== Z ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AccordionItem, {
6556
6557
  value: "tool-call",
6557
6558
  className: "border-0",
6558
- children: [q, Y]
6559
- }), _[31] = q, _[32] = Y, _[33] = Z) : Z = _[33];
6560
- let Q;
6561
- return _[34] !== Z || _[35] !== L || _[36] !== R ? (Q = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6559
+ children: [J, Z]
6560
+ }), _[31] = J, _[32] = Z, _[33] = Q) : Q = _[33];
6561
+ let $;
6562
+ return _[34] !== Q || _[35] !== R || _[36] !== z ? ($ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Accordion, {
6562
6563
  type: "single",
6563
6564
  collapsible: true,
6564
- className: R,
6565
- children: Z
6566
- }, L), _[34] = Z, _[35] = L, _[36] = R, _[37] = Q) : Q = _[37], Q;
6565
+ className: z,
6566
+ children: Q
6567
+ }, R), _[34] = Q, _[35] = R, _[36] = z, _[37] = $) : $ = _[37], $;
6567
6568
  };
6568
6569
  function formatToolName(e18) {
6569
6570
  return e18.replace("tool-", "");
@@ -7151,7 +7152,7 @@ function _temp2$1() {
7151
7152
  function _temp3$1(e18) {
7152
7153
  return promptHistoryStorage.set(KEY, e18);
7153
7154
  }
7154
- var import_compiler_runtime = require_compiler_runtime(), ChatMessageIncomingSchema = object$1({
7155
+ var import_compiler_runtime = require_compiler_runtime(), PopoverAnchor = Anchor2, ChatMessageIncomingSchema = object$1({
7155
7156
  type: literal("stream_chunk"),
7156
7157
  message_id: string(),
7157
7158
  content: any().nullable().transform((e18) => e18),
@@ -7159,24 +7160,24 @@ var import_compiler_runtime = require_compiler_runtime(), ChatMessageIncomingSch
7159
7160
  });
7160
7161
  const Chatbot = (e18) => {
7161
7162
  var _a;
7162
- let [_, v] = (0, import_react.useState)(""), [y, b] = (0, import_react.useState)(e18.config), [x, S] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(void 0), T = (0, import_react.useRef)(null), E = (0, import_react.useRef)(null), D = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null);
7163
- Object.keys(e18.config).some((_2) => e18.config[_2] !== x[_2]) && (b(e18.config), S(e18.config));
7164
- let k = (0, import_react.useRef)(y);
7165
- k.current = y;
7166
- let A = (0, import_react.useRef)({
7163
+ let [_, v] = (0, import_react.useState)(""), [y, b] = (0, import_react.useState)(e18.config), [C, w] = (0, import_react.useState)(e18.config), [T, E] = (0, import_react.useState)(void 0), D = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null), k = (0, import_react.useRef)(null), A = (0, import_react.useRef)(null);
7164
+ Object.keys(e18.config).some((_2) => e18.config[_2] !== C[_2]) && (b(e18.config), w(e18.config));
7165
+ let j = (0, import_react.useRef)(y);
7166
+ j.current = y;
7167
+ let M = (0, import_react.useRef)({
7167
7168
  backendMessageId: null,
7168
7169
  frontendMessageIndex: null
7169
- }), N = (0, import_react.useRef)(null), { data: P } = useAsyncData(async () => (await e18.get_chat_history({})).messages, []), F = e18.value.length > 0 ? e18.value : P, { messages: L, sendMessage: R, setMessages: z, status: B, stop: V, error: H, regenerate: U, clearError: W } = useChat({
7170
+ }), N = (0, import_react.useRef)(null), { data: P } = useAsyncData(async () => (await e18.get_chat_history({})).messages, []), F = e18.value.length > 0 ? e18.value : P, { messages: I, sendMessage: R, setMessages: z, status: B, stop: V, error: H, regenerate: U, clearError: W } = useChat({
7170
7171
  transport: new DefaultChatTransport({ fetch: async (_2, v2) => {
7171
7172
  var _a2;
7172
7173
  if (v2 === void 0) return fetch(_2);
7173
- let y2 = JSON.parse(v2.body), b2 = v2.signal, x2 = {
7174
- max_tokens: k.current.max_tokens,
7175
- temperature: k.current.temperature,
7176
- top_p: k.current.top_p,
7177
- top_k: k.current.top_k,
7178
- frequency_penalty: k.current.frequency_penalty,
7179
- presence_penalty: k.current.presence_penalty
7174
+ let y2 = JSON.parse(v2.body), b2 = v2.signal, x = {
7175
+ max_tokens: j.current.max_tokens,
7176
+ temperature: j.current.temperature,
7177
+ top_p: j.current.top_p,
7178
+ top_k: j.current.top_k,
7179
+ frequency_penalty: j.current.frequency_penalty,
7180
+ presence_penalty: j.current.presence_penalty
7180
7181
  };
7181
7182
  try {
7182
7183
  let _3 = y2.messages.map((e19) => {
@@ -7206,13 +7207,13 @@ const Chatbot = (e18) => {
7206
7207
  });
7207
7208
  return e18.send_prompt({
7208
7209
  messages: _3,
7209
- config: x2
7210
+ config: x
7210
7211
  }).catch((e19) => {
7211
7212
  var _a3;
7212
7213
  (_a3 = N.current) == null ? void 0 : _a3.error(e19), N.current = null;
7213
7214
  }), createUIMessageStreamResponse({ stream: v3 });
7214
7215
  } catch (e19) {
7215
- if (A.current = {
7216
+ if (M.current = {
7216
7217
  backendMessageId: null,
7217
7218
  frontendMessageIndex: null
7218
7219
  }, e19 instanceof Error && e19.name === "AbortError") return new Response("Aborted", { status: 499 });
@@ -7222,13 +7223,13 @@ const Chatbot = (e18) => {
7222
7223
  } }),
7223
7224
  messages: F,
7224
7225
  onFinish: (_2) => {
7225
- w(void 0), T.current && (T.current.value = ""), Logger.debug("Finished streaming message:", _2), A.current = {
7226
+ E(void 0), D.current && (D.current.value = ""), Logger.debug("Finished streaming message:", _2), M.current = {
7226
7227
  backendMessageId: null,
7227
7228
  frontendMessageIndex: null
7228
7229
  }, e18.setValue(_2.messages);
7229
7230
  },
7230
7231
  onError: (e19) => {
7231
- Logger.error("An error occurred:", e19), A.current = {
7232
+ Logger.error("An error occurred:", e19), M.current = {
7232
7233
  backendMessageId: null,
7233
7234
  frontendMessageIndex: null
7234
7235
  };
@@ -7241,9 +7242,9 @@ const Chatbot = (e18) => {
7241
7242
  y2 && (v2.content && y2.enqueue(v2.content), v2.is_final && (y2.close(), N.current = null));
7242
7243
  });
7243
7244
  let G = B === "submitted" || B === "streaming", K = (_2) => {
7244
- let v2 = L.findIndex((e19) => e19.id === _2);
7245
+ let v2 = I.findIndex((e19) => e19.id === _2);
7245
7246
  if (v2 !== -1) {
7246
- let y2 = L.filter((e19) => e19.id !== _2);
7247
+ let y2 = I.filter((e19) => e19.id !== _2);
7247
7248
  e18.delete_chat_message({ index: v2 }), z(y2), e18.setValue(y2);
7248
7249
  }
7249
7250
  }, q = Array.isArray(e18.allowAttachments) && e18.allowAttachments.length > 0 || e18.allowAttachments === true, J = {
@@ -7253,18 +7254,18 @@ const Chatbot = (e18) => {
7253
7254
  displayLabel: e19,
7254
7255
  apply: e19
7255
7256
  }))
7256
- }, Z = e18.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
7257
+ }, Y = e18.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
7257
7258
  (0, import_react.useEffect)(() => {
7258
7259
  var _a2;
7259
- (_a2 = O.current) == null ? void 0 : _a2.scrollTo({
7260
- top: O.current.scrollHeight,
7260
+ (_a2 = A.current) == null ? void 0 : _a2.scrollTo({
7261
+ top: A.current.scrollHeight,
7261
7262
  behavior: "smooth"
7262
7263
  });
7263
- }, [L.length, O]);
7264
- let Q = (_a = D.current) == null ? void 0 : _a.view, $ = () => {
7265
- if (Q) {
7266
- let e19 = Q.state.doc.length;
7267
- Q.dispatch({ changes: {
7264
+ }, [I.length, A]);
7265
+ let Z = (_a = k.current) == null ? void 0 : _a.view, $ = () => {
7266
+ if (Z) {
7267
+ let e19 = Z.state.doc.length;
7268
+ Z.dispatch({ changes: {
7268
7269
  from: 0,
7269
7270
  to: e19,
7270
7271
  insert: ""
@@ -7281,7 +7282,7 @@ const Chatbot = (e18) => {
7281
7282
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
7282
7283
  variant: "text",
7283
7284
  size: "icon",
7284
- disabled: L.length === 0,
7285
+ disabled: I.length === 0,
7285
7286
  onClick: () => {
7286
7287
  z([]), e18.setValue([]), e18.delete_chat_history({}), W();
7287
7288
  },
@@ -7290,9 +7291,9 @@ const Chatbot = (e18) => {
7290
7291
  }),
7291
7292
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7292
7293
  className: "grow overflow-y-auto gap-4 pt-8 pb-4 px-2 flex flex-col",
7293
- ref: O,
7294
+ ref: A,
7294
7295
  children: [
7295
- L.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7296
+ I.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7296
7297
  className: "flex flex-col items-center justify-center h-full text-muted-foreground text-center p-4",
7297
7298
  children: [
7298
7299
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BotMessageSquare, { className: "h-12 w-12 mb-4" }),
@@ -7306,9 +7307,9 @@ const Chatbot = (e18) => {
7306
7307
  })
7307
7308
  ]
7308
7309
  }),
7309
- L.map((e19, _2) => {
7310
+ I.map((e19, _2) => {
7310
7311
  var _a2;
7311
- let v2 = (_a2 = e19.parts) == null ? void 0 : _a2.filter((e20) => e20.type === "text").map((e20) => e20.text).join("\n"), y2 = _2 === L.length - 1;
7312
+ let v2 = (_a2 = e19.parts) == null ? void 0 : _a2.filter((e20) => e20.type === "text").map((e20) => e20.text).join("\n"), y2 = _2 === I.length - 1;
7312
7313
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
7313
7314
  className: cn("flex flex-col group gap-2", e19.role === "user" ? "items-end" : "items-start"),
7314
7315
  children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
@@ -7357,7 +7358,7 @@ const Chatbot = (e18) => {
7357
7358
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
7358
7359
  onSubmit: async (v2) => {
7359
7360
  if (v2.preventDefault(), e18.disabled) return;
7360
- let y2 = C ? await convertToFileUIPart(C) : void 0;
7361
+ let y2 = T ? await convertToFileUIPart(T) : void 0;
7361
7362
  R({
7362
7363
  role: "user",
7363
7364
  parts: [{
@@ -7366,7 +7367,7 @@ const Chatbot = (e18) => {
7366
7367
  }, ...y2 ?? []]
7367
7368
  }), $();
7368
7369
  },
7369
- ref: E,
7370
+ ref: O,
7370
7371
  inert: e18.disabled || void 0,
7371
7372
  className: cn("flex w-full border-t border-(--slate-6) px-2 py-1 items-center", e18.disabled && "opacity-50 cursor-not-allowed"),
7372
7373
  children: [
@@ -7378,41 +7379,41 @@ const Chatbot = (e18) => {
7378
7379
  prompts: e18.prompts,
7379
7380
  onSelect: (e19) => {
7380
7381
  v(e19), requestAnimationFrame(() => {
7381
- Q == null ? void 0 : Q.focus(), moveToEndOfEditor(Q);
7382
+ Z == null ? void 0 : Z.focus(), moveToEndOfEditor(Z);
7382
7383
  });
7383
7384
  }
7384
7385
  }),
7385
7386
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PromptInput, {
7386
7387
  className: "rounded-sm mr-2",
7387
- placeholder: Z,
7388
+ placeholder: Y,
7388
7389
  value: _,
7389
- inputRef: D,
7390
+ inputRef: k,
7390
7391
  maxHeight: e18.maxHeight ? `${e18.maxHeight / 2}px` : void 0,
7391
7392
  onChange: v,
7392
7393
  onSubmit: (e19, _2) => {
7393
7394
  var _a2;
7394
- _2.trim() && ((_a2 = E.current) == null ? void 0 : _a2.requestSubmit());
7395
+ _2.trim() && ((_a2 = O.current) == null ? void 0 : _a2.requestSubmit());
7395
7396
  },
7396
7397
  onClose: () => {
7397
7398
  },
7398
7399
  additionalCompletions: J
7399
7400
  }),
7400
- C && C.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7401
- title: C[0].name,
7401
+ T && T.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
7402
+ title: T[0].name,
7402
7403
  className: "text-sm text-(--slate-11) truncate shrink-0 w-fit max-w-24",
7403
- children: C[0].name
7404
+ children: T[0].name
7404
7405
  }),
7405
- C && C.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
7406
- title: [...C].map((e19) => e19.name).join("\n"),
7406
+ T && T.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
7407
+ title: [...T].map((e19) => e19.name).join("\n"),
7407
7408
  className: "text-sm text-(--slate-11) truncate shrink-0",
7408
- children: [C.length, " files"]
7409
+ children: [T.length, " files"]
7409
7410
  }),
7410
- C && C.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
7411
+ T && T.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
7411
7412
  type: "button",
7412
7413
  variant: "text",
7413
7414
  size: "sm",
7414
7415
  onClick: () => {
7415
- w(void 0), T.current && (T.current.value = "");
7416
+ E(void 0), D.current && (D.current.value = "");
7416
7417
  },
7417
7418
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "size-3" })
7418
7419
  }),
@@ -7422,17 +7423,17 @@ const Chatbot = (e18) => {
7422
7423
  size: "sm",
7423
7424
  onClick: () => {
7424
7425
  var _a2;
7425
- return (_a2 = T.current) == null ? void 0 : _a2.click();
7426
+ return (_a2 = D.current) == null ? void 0 : _a2.click();
7426
7427
  },
7427
7428
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Paperclip, { className: "h-4" })
7428
7429
  }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
7429
7430
  type: "file",
7430
- ref: T,
7431
+ ref: D,
7431
7432
  className: "hidden",
7432
7433
  multiple: true,
7433
7434
  accept: Array.isArray(e18.allowAttachments) ? e18.allowAttachments.join(",") : void 0,
7434
7435
  onChange: (e19) => {
7435
- e19.target.files && w([...e19.target.files]);
7436
+ e19.target.files && E([...e19.target.files]);
7436
7437
  }
7437
7438
  })] }),
7438
7439
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
@@ -7601,8 +7602,8 @@ var configDescriptions = {
7601
7602
  })] }) }), _[8] = D, _[9] = O);
7602
7603
  let k;
7603
7604
  _[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => x(false), _[10] = k) : k = _[10];
7604
- let j;
7605
- _[11] !== y || _[12] !== S ? (j = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContent, {
7605
+ let A;
7606
+ _[11] !== y || _[12] !== S ? (A = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContent, {
7606
7607
  side: "right",
7607
7608
  align: "end",
7608
7609
  className: "min-w-80 px-2",
@@ -7611,13 +7612,13 @@ var configDescriptions = {
7611
7612
  onClose: k,
7612
7613
  onSelect: y
7613
7614
  })
7614
- }), _[11] = y, _[12] = S, _[13] = j) : j = _[13];
7615
+ }), _[11] = y, _[12] = S, _[13] = A) : A = _[13];
7615
7616
  let M;
7616
- return _[14] !== b || _[15] !== O || _[16] !== j ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Popover, {
7617
+ return _[14] !== b || _[15] !== O || _[16] !== A ? (M = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Popover, {
7617
7618
  open: b,
7618
7619
  onOpenChange: x,
7619
- children: [O, j]
7620
- }), _[14] = b, _[15] = O, _[16] = j, _[17] = M) : M = _[17], M;
7620
+ children: [O, A]
7621
+ }), _[14] = b, _[15] = O, _[16] = A, _[17] = M) : M = _[17], M;
7621
7622
  }, PromptVariablesForm = (e18) => {
7622
7623
  let _ = (0, import_compiler_runtime.c)(32), { prompt: v, onClose: y, onSelect: b } = e18, x;
7623
7624
  _[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {}, _[0] = x) : x = _[0];
@@ -1,4 +1,4 @@
1
- import { l as createLucideIcon } from "./dist-D2Rk1j4R.js";
1
+ import { l as createLucideIcon } from "./dist-D_UjpfOY.js";
2
2
  var Check = createLucideIcon("check", [["path", {
3
3
  d: "M20 6 9 17l-5-5",
4
4
  key: "1gmf2c"
@@ -1,5 +1,5 @@
1
1
  var _a;
2
- import { a as GitGraphGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, i as CommonValueConverter, m as inject, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-BAhzIqBO.js";
2
+ import { a as GitGraphGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, i as CommonValueConverter, m as inject, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-Clbl-fTg.js";
3
3
  var GitGraphTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
4
4
  constructor() {
5
5
  super(["gitGraph"]);
@@ -1,4 +1,4 @@
1
- import { t as purify } from "./purify.es-ukiMXY-F.js";
1
+ import { t as purify } from "./purify.es-hTCfRGdl.js";
2
2
  import { a as setLogLevel, i as log, n as __export, r as __name } from "./src-DbP20yFZ.js";
3
3
  let rgba_default, parseGenericTypes, setAccTitle, getDiagramTitle, getUserDefinedConfig, getUrl, sanitizeDirective, setupGraphViewbox, setConfig2, sanitizeText, themes_default, setupGraphViewbox2, sanitizeText3, registerLazyLoadedDiagrams, renderKatexSanitized, hasKatex, reset, is_dark_default, saveConfigFromInitialize, getDiagramLoader, getThemeVariables3, setDiagramTitle, setConfig, setSiteConfig, darken_default, updateSiteConfig, lighten_default, getAccDescription, clear, getConfig2, configureSvgSize, defaultConfig_default, color_default, detectType, frontMatterRegex, evaluate, calculateMathMLDimensions, registerDiagram, lineBreakRegex, defaultConfig, directiveRegex, addDirective, commonDb_exports, detectors, styles_default, assignWithDepth_default, common_default, UnknownDiagramError, utils_default, defaultConfig2, getAccTitle, getSiteConfig, getDiagram, getConfig, setAccDescription;
4
4
  let __tla = (async () => {
@@ -1,5 +1,5 @@
1
1
  import { r as __name } from "./src-DbP20yFZ.js";
2
- import { b as getConfig2 } from "./chunk-ABZYJK2D-D5YIs71w.js";
2
+ import { b as getConfig2 } from "./chunk-ABZYJK2D-CZYCCtLy.js";
3
3
  var solidStateFill = /* @__PURE__ */ __name((e) => {
4
4
  let { handDrawnSeed: r } = getConfig2();
5
5
  return {
@@ -1,5 +1,5 @@
1
1
  var _a, _b, _c;
2
- import { d as TreemapGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-BAhzIqBO.js";
2
+ import { d as TreemapGrammarGeneratedModule, f as __name, g as createDefaultSharedCoreModule, h as createDefaultCoreModule, m as inject, n as AbstractMermaidValueConverter, p as EmptyFileSystem, s as MermaidGeneratedSharedModule, t as AbstractMermaidTokenBuilder } from "./chunk-TCCFYFTB-Clbl-fTg.js";
3
3
  var TreemapTokenBuilder = (_a = class extends AbstractMermaidTokenBuilder {
4
4
  constructor() {
5
5
  super(["treemap"]);
@@ -1,11 +1,11 @@
1
1
  var _a, _b;
2
- import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-D3Rys9ZW.js";
2
+ import { c as getEdgeId, g as utils_default } from "./chunk-S3R3BYOJ-B0UOFJwq.js";
3
3
  import { i as log, r as __name, t as select_default } from "./src-DbP20yFZ.js";
4
- import { A as parseGenericTypes, B as setAccTitle, C as getDiagramTitle, I as sanitizeText, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-D5YIs71w.js";
5
- import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-2qzGzAxT.js";
4
+ import { A as parseGenericTypes, B as setAccTitle, C as getDiagramTitle, I as sanitizeText, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-CZYCCtLy.js";
5
+ import { r as render, t as getRegisteredLayoutAlgorithm } from "./chunk-N4CR4FBY-CpZSuGSU.js";
6
6
  import { t as getIconStyles } from "./chunk-FMBD7UC4-BjIaI-XO.js";
7
7
  import { t as getDiagramElement } from "./chunk-55IACEB6-DRsSqxbU.js";
8
- import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-Dp1qBo28.js";
8
+ import { t as setupViewPortForSVG } from "./chunk-QN33PNHL-B9p5ojHB.js";
9
9
  var parser = (function() {
10
10
  var e = /* @__PURE__ */ __name(function(e2, t2, n2, r) {
11
11
  for (n2 || (n2 = {}), r = e2.length; r--; n2[e2[r]] = t2) ;