@marimo-team/islands 0.25.1-dev7 → 0.25.1

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 (291) hide show
  1. package/dist/{ConnectedDataExplorerComponent-KVhjDMSe.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +8 -9
  2. package/dist/{ErrorBoundary-CMASlTBK.js → ErrorBoundary-1wHWKFoG.js} +1 -1
  3. package/dist/{ImageComparisonComponent-Dlm5aWnH.js → ImageComparisonComponent-Cpfz30OZ.js} +51 -52
  4. package/dist/{abnfDiagram-VCTEODGH-CpN0FRda.js → abnfDiagram-VCTEODGH-AFhOQTt8.js} +3 -3
  5. package/dist/{architectureDiagram-5GKGNRK7-DDyj5SRB.js → architectureDiagram-5GKGNRK7-BngksAAQ.js} +5 -5
  6. package/dist/{blockDiagram-I7D4REHJ-BbXEXJRu.js → blockDiagram-I7D4REHJ-CvBmppdy.js} +9 -9
  7. package/dist/{c4Diagram-7LVT6UL2-DcLsbQmR.js → c4Diagram-7LVT6UL2-EceL4_jH.js} +7 -7
  8. package/dist/{cells-B5-y5EY3.js → cells-Cv93oav_.js} +3 -3
  9. package/dist/{channel-B5XnTarr.js → channel-z7HZXHwv.js} +1 -1
  10. package/dist/{chat-ui-HJZsTl7o.js → chat-ui-fVyVOhYN.js} +6 -6
  11. package/dist/{chunk-4HAMMTFA-D2qv8E0X.js → chunk-4HAMMTFA-BPTTOOC5.js} +5 -5
  12. package/dist/{chunk-75Z2AOVW-5_HsvXwr.js → chunk-75Z2AOVW-C4AOleKf.js} +1 -1
  13. package/dist/{chunk-DU6HZSFF-BUgAHvnM.js → chunk-DU6HZSFF-1TwWR6gh.js} +1 -1
  14. package/dist/{chunk-F27PBJKO-DHmYWZXr.js → chunk-F27PBJKO-DMI1PBe4.js} +1 -1
  15. package/dist/{chunk-GMAD6QVW-Czynz8aA.js → chunk-GMAD6QVW-vStrMz2P.js} +3 -3
  16. package/dist/{chunk-GVQU2GXP-yQEdulRS.js → chunk-GVQU2GXP-2HwWgs4u.js} +2 -2
  17. package/dist/{chunk-IMKFNOWR-BfwTebD0.js → chunk-IMKFNOWR-UOVZuZVn.js} +5 -5
  18. package/dist/{chunk-L3NEJ4N5-DwRWnDDK.js → chunk-L3NEJ4N5-RhC7i0I2.js} +5 -5
  19. package/dist/{chunk-OSK3NFVY-BBKU_Ign.js → chunk-OSK3NFVY-CZV09N-U.js} +6 -6
  20. package/dist/{chunk-P2QGCYS3-C0iGU29N.js → chunk-P2QGCYS3-0TAWai9C.js} +1 -1
  21. package/dist/{chunk-POPQ4Y6H-BCbS3Ozc.js → chunk-POPQ4Y6H-Cc3_56GX.js} +1 -1
  22. package/dist/{chunk-PWAF6VOD-CTFCL0jI.js → chunk-PWAF6VOD-lNxB9k8z.js} +1 -1
  23. package/dist/{chunk-SHT3W25Y-BspJEJ5H.js → chunk-SHT3W25Y-CrEPyWy1.js} +7 -7
  24. package/dist/{chunk-SVP7TREG-DX3rFNTe.js → chunk-SVP7TREG-uIyyySp6.js} +2 -2
  25. package/dist/{chunk-TICWLB2K-fVF7Uujg.js → chunk-TICWLB2K-DdXM3eg6.js} +5 -5
  26. package/dist/classDiagram-ZZMXUADV-BiATbBE4.js +30 -0
  27. package/dist/classDiagram-v2-VYDZK3BY-JnH97GYw.js +30 -0
  28. package/dist/{code-visibility-mzCnOHAV.js → code-visibility-DMcT7AsU.js} +2 -2
  29. package/dist/{common-C8llK7vn.js → common-B58G5YN_.js} +6726 -6430
  30. package/dist/{cynefinDiagram-5FMLGOSQ-CFQrqzSX.js → cynefinDiagram-5FMLGOSQ-zknaAsGy.js} +3 -3
  31. package/dist/{dagre-GXQ25YYZ-xHNAUTyG.js → dagre-GXQ25YYZ-BhMOoMGJ.js} +10 -10
  32. package/dist/{data-grid-overlay-editor-BN-PsDKD.js → data-grid-overlay-editor-DUWqrgYI.js} +1 -1
  33. package/dist/{diagram-S7CK7UJ4-Bt1rPbAx.js → diagram-S7CK7UJ4-V5-Z-EDY.js} +4 -4
  34. package/dist/{diagram-UQ7AKVKN-D1sq5FoZ.js → diagram-UQ7AKVKN-qw8AjDal.js} +3 -3
  35. package/dist/{diagram-VSXAHHWV-BKpmG23x.js → diagram-VSXAHHWV-CR7BJygZ.js} +2 -2
  36. package/dist/{diagram-VX7I27RA-BMwGFVD6.js → diagram-VX7I27RA-DfuqFb1E.js} +5 -5
  37. package/dist/{diagram-Z3DM3KII--KLDR9Pl.js → diagram-Z3DM3KII-DpWwlYZB.js} +3 -3
  38. package/dist/{dist-BaHjhkpZ.js → dist-CcyKTBTF.js} +1 -1
  39. package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
  40. package/dist/{ebnfDiagram-PWID7BFC-WnG4cvSQ.js → ebnfDiagram-PWID7BFC-C20OnNMZ.js} +3 -3
  41. package/dist/{erDiagram-RLTQ6QDP-DhzKiYHc.js → erDiagram-RLTQ6QDP-DBXLWO9v.js} +12 -12
  42. package/dist/{error-entries-Bkbpx0T0.js → error-entries-DLl0XqoW.js} +1 -1
  43. package/dist/{feedback-button-BPfflWAE.js → feedback-button-BmlXbdJI.js} +4 -4
  44. package/dist/flowDiagram-HODETNUW-DL52nMkt.js +16 -0
  45. package/dist/{formats-C8rLgZT9.js → formats-Cl_67ghI.js} +1 -1
  46. package/dist/{ganttDiagram-EL5Y4UJY-DbzEBLbl.js → ganttDiagram-EL5Y4UJY-cRRaDt88.js} +2 -2
  47. package/dist/{gitGraphDiagram-WWUBYQGX-BMf0iKi1.js → gitGraphDiagram-WWUBYQGX-Pox5k9-Y.js} +2 -2
  48. package/dist/{glide-data-editor-CbZmNC6Q.js → glide-data-editor-DnxrqL3c.js} +5 -5
  49. package/dist/{globals-D7eXYEPA.js → globals-C6IYCw1c.js} +1 -1
  50. package/dist/{html-to-image-BAgJOlSW.js → html-to-image-CmkwfNkf.js} +3 -3
  51. package/dist/{infoDiagram-27XIBGKW-BagtCX_5.js → infoDiagram-27XIBGKW-ntpxMfrq.js} +2 -2
  52. package/dist/{ishikawaDiagram-5VMMS53U-DByDehYy.js → ishikawaDiagram-5VMMS53U-BllIlHE5.js} +3 -3
  53. package/dist/{journeyDiagram-3NMN7TZE-D2LcKDUO.js → journeyDiagram-3NMN7TZE-EPJDPlt0.js} +2 -2
  54. package/dist/{kanban-definition-UXKFOSKX-BxwkbBI_.js → kanban-definition-UXKFOSKX-GYtNMjtS.js} +9 -9
  55. package/dist/{katex-C6D4cX_N.js → katex-BNCmKUol.js} +983 -1120
  56. package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
  57. package/dist/{loader-D2W4oM-3.js → loader-DEZSzvma.js} +253 -248
  58. package/dist/main.js +122 -113
  59. package/dist/{mermaid-DPNuhemn.js → mermaid-Dnzoxjt1.js} +49 -49
  60. package/dist/{mhchem-DWCF06w9.js → mhchem-BEc7A1or.js} +1 -1
  61. package/dist/{mindmap-definition-YA3MSWOX-Cgvojw3y.js → mindmap-definition-YA3MSWOX-Cth76xgH.js} +11 -11
  62. package/dist/{number-overlay-editor-CJ0KuRNf.js → number-overlay-editor-BO78Sr4W.js} +1 -1
  63. package/dist/{pegDiagram-XKGWAZYB-DahHhYyN.js → pegDiagram-XKGWAZYB-Cu4uOXii.js} +3 -3
  64. package/dist/{pieDiagram-E7YTZNPT-CCtX0oCK.js → pieDiagram-E7YTZNPT-Bh3eDa9s.js} +3 -3
  65. package/dist/{process-output-zDX4jbhd.js → process-output-CYN5E-iO.js} +2 -2
  66. package/dist/{quadrantDiagram-AXDQQJYC-DftINo6g.js → quadrantDiagram-AXDQQJYC--kqzFC3w.js} +1 -1
  67. package/dist/{railroadDiagram-O6MQD6OU-Du5NsPUb.js → railroadDiagram-O6MQD6OU-DG-M6Rnc.js} +3 -3
  68. package/dist/{react-vega-5AcMW8gG.js → react-vega-ewj7q_U5.js} +1 -1
  69. package/dist/{requirementDiagram-BXWQKSXE-0pmmxL6_.js → requirementDiagram-BXWQKSXE-DCwsThh0.js} +11 -11
  70. package/dist/{reveal-component-D3YXogQI.js → reveal-component-C1yOCuj8.js} +4 -4
  71. package/dist/{sankeyDiagram-P5KCCOFB-CDKR5TJH.js → sankeyDiagram-P5KCCOFB-BdzhT0BM.js} +1 -1
  72. package/dist/{sequenceDiagram-WJ2MYXX4-DB-ChWwU.js → sequenceDiagram-WJ2MYXX4-CbXB1_PU.js} +4 -4
  73. package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
  74. package/dist/{stateDiagram-D77RDMKH-orN6AwMx.js → stateDiagram-D77RDMKH-A-Zf3Sb2.js} +13 -13
  75. package/dist/stateDiagram-v2-MP3YSRHH-D9YMnUGx.js +30 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{swimlanes-42K2YHIH-BkSDcqDT.js → swimlanes-42K2YHIH-B_pMf0J4.js} +10 -10
  78. package/dist/swimlanesDiagram-VR7AAH4N-Ctgy-yGP.js +30 -0
  79. package/dist/{timeline-definition-24CTP7MA-BuqJUIRZ.js → timeline-definition-24CTP7MA-DTXFjTTM.js} +3 -3
  80. package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
  81. package/dist/{vega-component-CNf5gcrm.js → vega-component-tFOzgarw.js} +4 -4
  82. package/dist/{vega-embed-container-CbnTccZi.js → vega-embed-container-sSR5hAsy.js} +2 -2
  83. package/dist/{vega-loader.browser-D95WfUcj.js → vega-loader.browser-DNST6uVf.js} +2 -2
  84. package/dist/{vennDiagram-4TSXK5OY-CTUlJ2PK.js → vennDiagram-4TSXK5OY-BPHjZo0R.js} +3 -3
  85. package/dist/{wardleyDiagram-VM6X3IG4-3evLUb0M.js → wardleyDiagram-VM6X3IG4-6fTLYBuD.js} +3 -3
  86. package/dist/{xychartDiagram-S5SC5T6Z-DL2E3K8-.js → xychartDiagram-S5SC5T6Z-BYjwjrzE.js} +5 -5
  87. package/package.json +1 -2
  88. package/src/__mocks__/common.ts +3 -3
  89. package/src/__tests__/CellStatus.test.tsx +1 -1
  90. package/src/__tests__/setup.ts +7 -7
  91. package/src/components/app-config/ai-config.tsx +2 -0
  92. package/src/components/app-config/optional-features.tsx +1 -1
  93. package/src/components/chat/chat-panel.tsx +19 -8
  94. package/src/components/data-table/TableTopBar.tsx +2 -2
  95. package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
  96. package/src/components/data-table/charts/__tests__/chart-panel.test.tsx +286 -0
  97. package/src/components/data-table/charts/charts.tsx +26 -13
  98. package/src/components/data-table/column-summary/chart-spec-model.tsx +4 -4
  99. package/src/components/data-table/data-table.tsx +1 -1
  100. package/src/components/data-table/export-actions.tsx +642 -176
  101. package/src/components/data-table/schemas.ts +25 -3
  102. package/src/components/dependency-graph/elements.ts +2 -2
  103. package/src/components/editor/__tests__/package-alert.test.tsx +140 -0
  104. package/src/components/editor/actions/__tests__/pair-with-agent.test.tsx +107 -0
  105. package/src/components/editor/actions/pair-with-agent.tsx +119 -0
  106. package/src/components/editor/actions/useNotebookActions.tsx +2 -1
  107. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -0
  108. package/src/components/editor/ai/staged-cell-submission.ts +2 -2
  109. package/src/components/editor/ai/transport/chat-transport.tsx +1 -1
  110. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +6 -1
  111. package/src/components/editor/connections/database/as-code.ts +44 -44
  112. package/src/components/editor/connections/storage/as-code.ts +3 -3
  113. package/src/components/editor/file-tree/requesting-tree.tsx +16 -13
  114. package/src/components/editor/navigation/clipboard.ts +2 -2
  115. package/src/components/editor/notebook-cell.tsx +2 -2
  116. package/src/components/editor/output/MarimoTracebackOutput.tsx +1 -1
  117. package/src/components/editor/output/VideoOutput.tsx +1 -1
  118. package/src/components/editor/output/ansi-reduce.ts +21 -17
  119. package/src/components/editor/output/console/ConsoleOutput.tsx +3 -3
  120. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +59 -0
  121. package/src/components/editor/output/console/text-rendering.tsx +3 -1
  122. package/src/components/editor/package-alert.tsx +20 -7
  123. package/src/components/home/components.tsx +1 -0
  124. package/src/components/markdown/markdown-renderer.css +1 -1
  125. package/src/components/pages/run-page.tsx +1 -0
  126. package/src/components/slides/__tests__/minimap-actions.test.tsx +7 -7
  127. package/src/components/slides/__tests__/minimap.test.ts +12 -12
  128. package/src/components/slides/__tests__/slide-scroll-hint.test.tsx +8 -8
  129. package/src/components/static-html/__tests__/share-modal.test.tsx +154 -0
  130. package/src/components/static-html/__tests__/stage-for-publish.test.ts +111 -0
  131. package/src/components/static-html/share-modal.tsx +114 -144
  132. package/src/components/static-html/stage-for-publish.ts +56 -0
  133. package/src/components/static-html/static-banner.tsx +2 -2
  134. package/src/components/ui/links.tsx +6 -1
  135. package/src/components/ui/typography.tsx +16 -8
  136. package/src/core/ai/context/__tests__/registry.test.ts +31 -28
  137. package/src/core/ai/context/providers/cell-output.ts +8 -8
  138. package/src/core/ai/context/providers/datasource.ts +10 -7
  139. package/src/core/ai/context/providers/error.ts +7 -7
  140. package/src/core/ai/context/providers/file.ts +8 -8
  141. package/src/core/ai/context/providers/tables.ts +7 -7
  142. package/src/core/ai/context/providers/variable.ts +7 -7
  143. package/src/core/ai/context/registry.ts +18 -18
  144. package/src/core/ai/ids/ids.ts +5 -5
  145. package/src/core/ai/model-registry.ts +12 -9
  146. package/src/core/ai/staged-cells.ts +6 -6
  147. package/src/core/ai/tools/base.ts +6 -6
  148. package/src/core/ai/tools/edit-notebook-tool.ts +6 -6
  149. package/src/core/ai/tools/registry.ts +4 -4
  150. package/src/core/ai/tools/run-cells-tool.ts +7 -7
  151. package/src/core/ai/tools/sample-tool.ts +6 -6
  152. package/src/core/cells/__tests__/cells.test.ts +27 -0
  153. package/src/core/cells/cells.ts +2 -1
  154. package/src/core/codemirror/cells/debugger-decorations.ts +13 -7
  155. package/src/core/codemirror/cells/line-timing-decorations.ts +9 -9
  156. package/src/core/codemirror/cells/traceback-decorations.ts +7 -4
  157. package/src/core/codemirror/code-lens/extension.ts +13 -13
  158. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +6 -6
  159. package/src/core/codemirror/copilot/__tests__/transport.test.ts +12 -12
  160. package/src/core/codemirror/copilot/language-server.ts +13 -13
  161. package/src/core/codemirror/copilot/transport.ts +1 -1
  162. package/src/core/codemirror/find-replace/search-highlight.ts +5 -5
  163. package/src/core/codemirror/go-to-definition/underline.ts +3 -3
  164. package/src/core/codemirror/keymaps/vim.ts +3 -3
  165. package/src/core/codemirror/language/languages/markdown.ts +8 -8
  166. package/src/core/codemirror/language/languages/python.ts +7 -7
  167. package/src/core/codemirror/language/languages/sql/completion-builder.ts +5 -5
  168. package/src/core/codemirror/language/languages/sql/completion-store.ts +4 -4
  169. package/src/core/codemirror/language/languages/sql/sql.ts +21 -21
  170. package/src/core/codemirror/lsp/__tests__/transports.test.ts +10 -10
  171. package/src/core/codemirror/lsp/federated-lsp.ts +29 -27
  172. package/src/core/codemirror/lsp/notebook-lsp.ts +21 -21
  173. package/src/core/codemirror/misc/__tests__/dnd.test.ts +10 -10
  174. package/src/core/codemirror/misc/__tests__/paste.test.ts +7 -4
  175. package/src/core/codemirror/reactive-references/extension.ts +3 -3
  176. package/src/core/codemirror/rtc/loro/awareness.ts +12 -12
  177. package/src/core/codemirror/rtc/loro/sync.ts +5 -5
  178. package/src/core/codemirror/vim/cursor-visibility.ts +3 -3
  179. package/src/core/dom/ui-element.ts +5 -5
  180. package/src/core/dom/uiregistry.ts +10 -10
  181. package/src/core/hotkeys/hotkeys.ts +9 -9
  182. package/src/core/islands/__tests__/bridge.test.ts +4 -4
  183. package/src/core/islands/__tests__/test-utils.tsx +4 -4
  184. package/src/core/islands/bridge.ts +85 -82
  185. package/src/core/islands/components/web-components.tsx +7 -7
  186. package/src/core/islands/worker/__tests__/controller.test.ts +1 -1
  187. package/src/core/islands/worker/controller.ts +6 -3
  188. package/src/core/islands/worker-factory.ts +2 -2
  189. package/src/core/kernel/RuntimeState.ts +4 -4
  190. package/src/core/lsp/__tests__/transport.test.ts +19 -19
  191. package/src/core/lsp/transport.ts +5 -5
  192. package/src/core/network/CachingRequestRegistry.ts +2 -2
  193. package/src/core/network/DeferredRequestRegistry.ts +4 -4
  194. package/src/core/network/__tests__/export-asset-url.test.ts +45 -0
  195. package/src/core/network/export-asset-url.ts +19 -0
  196. package/src/core/network/requests-network.ts +2 -7
  197. package/src/core/runtime/runtime.ts +25 -20
  198. package/src/core/static/virtual-file-tracker.ts +5 -5
  199. package/src/core/wasm/__tests__/bridge.test.ts +2 -2
  200. package/src/core/wasm/bridge.ts +132 -133
  201. package/src/core/wasm/router.ts +5 -5
  202. package/src/core/wasm/store.ts +4 -4
  203. package/src/core/wasm/worker/bootstrap.ts +8 -5
  204. package/src/core/wasm/worker/message-buffer.ts +3 -3
  205. package/src/core/websocket/transports/__tests__/ws.test.ts +8 -8
  206. package/src/core/websocket/transports/basic.ts +15 -8
  207. package/src/core/websocket/transports/sse.ts +7 -7
  208. package/src/core/websocket/transports/transport.ts +3 -3
  209. package/src/core/websocket/transports/ws.ts +9 -7
  210. package/src/css/globals.css +18 -21
  211. package/src/css/katex.min.css +260 -241
  212. package/src/hooks/__tests__/useOverflowDetection.test.tsx +5 -5
  213. package/src/hooks/__tests__/useResizeObserver.test.tsx +12 -12
  214. package/src/plugins/core/registerReactComponent.tsx +5 -5
  215. package/src/plugins/core/sidebar-element.tsx +2 -2
  216. package/src/plugins/impl/ButtonPlugin.tsx +3 -3
  217. package/src/plugins/impl/CheckboxPlugin.tsx +3 -3
  218. package/src/plugins/impl/CodeEditorPlugin.tsx +3 -3
  219. package/src/plugins/impl/DatePickerPlugin.tsx +3 -3
  220. package/src/plugins/impl/DateRangePlugin.tsx +3 -3
  221. package/src/plugins/impl/DateTimePickerPlugin.tsx +3 -3
  222. package/src/plugins/impl/DictPlugin.tsx +3 -3
  223. package/src/plugins/impl/DropdownPlugin.tsx +3 -3
  224. package/src/plugins/impl/FileUploadPlugin.tsx +3 -3
  225. package/src/plugins/impl/MatrixPlugin.tsx +4 -4
  226. package/src/plugins/impl/MicrophonePlugin.tsx +3 -3
  227. package/src/plugins/impl/MultiselectPlugin.tsx +3 -3
  228. package/src/plugins/impl/NumberPlugin.tsx +3 -3
  229. package/src/plugins/impl/RadioPlugin.tsx +9 -5
  230. package/src/plugins/impl/RangeSliderPlugin.tsx +3 -3
  231. package/src/plugins/impl/RefreshPlugin.tsx +3 -3
  232. package/src/plugins/impl/SliderPlugin.tsx +3 -3
  233. package/src/plugins/impl/SwitchPlugin.tsx +3 -3
  234. package/src/plugins/impl/TabsPlugin.tsx +3 -3
  235. package/src/plugins/impl/TextAreaPlugin.tsx +3 -3
  236. package/src/plugins/impl/TextInputPlugin.tsx +3 -3
  237. package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +2 -2
  238. package/src/plugins/impl/anywidget/model.ts +10 -10
  239. package/src/plugins/impl/anywidget/registry.ts +12 -9
  240. package/src/plugins/impl/anywidget/runtime.ts +11 -9
  241. package/src/plugins/impl/anywidget/widget-binding.ts +6 -6
  242. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +7 -6
  243. package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +3 -3
  244. package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +2 -2
  245. package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +2 -2
  246. package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +10 -10
  247. package/src/plugins/impl/panel/utils.ts +5 -5
  248. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +3 -3
  249. package/src/plugins/impl/vega/VegaPlugin.tsx +3 -3
  250. package/src/plugins/impl/vega/__tests__/use-vega-container-remeasure.test.ts +7 -7
  251. package/src/plugins/impl/vega/__tests__/utils.test.ts +16 -1
  252. package/src/plugins/impl/vega/__tests__/vega.test.ts +37 -0
  253. package/src/plugins/impl/vega/loader.ts +23 -1
  254. package/src/plugins/impl/vega/utils.ts +5 -4
  255. package/src/plugins/layout/AccordionPlugin.tsx +3 -3
  256. package/src/plugins/layout/CalloutPlugin.tsx +3 -3
  257. package/src/plugins/layout/ImageComparisonPlugin.tsx +5 -3
  258. package/src/plugins/layout/JsonOutputPlugin.tsx +3 -3
  259. package/src/plugins/layout/MimeRenderPlugin.tsx +3 -3
  260. package/src/plugins/layout/NavigationMenuPlugin.tsx +3 -3
  261. package/src/plugins/layout/OutlinePlugin.tsx +3 -3
  262. package/src/plugins/layout/ProgressPlugin.tsx +3 -3
  263. package/src/plugins/layout/RoutesPlugin.tsx +6 -8
  264. package/src/plugins/layout/StatPlugin.tsx +3 -3
  265. package/src/plugins/layout/TexPlugin.tsx +3 -3
  266. package/src/plugins/layout/carousel/CarouselPlugin.tsx +4 -4
  267. package/src/plugins/layout/mermaid/MermaidPlugin.tsx +3 -3
  268. package/src/utils/Deferred.ts +6 -6
  269. package/src/utils/async-capture-tracker.ts +10 -7
  270. package/src/utils/errors.ts +5 -5
  271. package/src/utils/id-tree.tsx +83 -80
  272. package/src/utils/lru.ts +1 -1
  273. package/src/utils/multi-map.ts +14 -12
  274. package/src/utils/paths.ts +6 -6
  275. package/src/utils/pluralize.ts +3 -3
  276. package/src/utils/progress.ts +6 -6
  277. package/src/utils/python-poet/poet.ts +14 -14
  278. package/src/utils/routes.ts +4 -2
  279. package/src/utils/semaphore.ts +6 -6
  280. package/src/utils/storage/storage.ts +6 -6
  281. package/src/utils/storage/typed.ts +16 -12
  282. package/src/utils/time.ts +9 -9
  283. package/src/utils/timed-cache.ts +4 -4
  284. package/src/utils/tracer.ts +9 -6
  285. package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +0 -30
  286. package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +0 -30
  287. package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +0 -16
  288. package/dist/katex-DFBiSucW.js +0 -21840
  289. package/dist/label-BJ49YTvk.js +0 -30
  290. package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +0 -30
  291. package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +0 -30
package/dist/main.js CHANGED
@@ -3,26 +3,25 @@ import { _ as a, c as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p,
3
3
  import { t as y } from "./react-ofJbxM4x.js";
4
4
  import { t as b } from "./compiler-runtime-Cj8ZWiNS.js";
5
5
  import { i as x, n as S, r as C, t as w } from "./copy-icon-CLdENY__.js";
6
- import { C as T, F as E, G as D, I as O, J as k, K as A, L as j, P as M, R as N, X as P, Z as F, _ as I, a as L, b as R, g as ee, i as z, j as te, k as B, n as ne, o as re, q as ie, v as ae, y as oe } from "./html-to-image-BAgJOlSW.js";
6
+ import { C as T, F as E, G as D, I as O, J as k, K as A, L as j, P as M, R as N, X as P, Z as F, _ as I, a as L, b as R, g as ee, i as z, j as te, k as B, n as ne, o as re, q as ie, v as ae, y as oe } from "./html-to-image-CmkwfNkf.js";
7
7
  import { a as se, f as ce, g as V, i as le, n as ue, o as de, p as fe, r as pe, t as me } from "./tooltip-qB8NlSqV.js";
8
- import { $ as he, $t as ge, B as _e, Bt as ve, C as ye, Ct as be, D as xe, Dt as Se, Et as Ce, F as we, G as Te, Gt as Ee, Ht as De, I as Oe, J as ke, Jt as Ae, Kt as je, L as Me, O as Ne, Ot as Pe, P as Fe, Pt as Ie, Q as Le, Qt as Re, Rt as ze, S as Be, St as Ve, T as He, Tt as Ue, U as We, W as Ge, Wt as Ke, bt as qe, c as Je, cn as Ye, ct as Xe, d as Ze, dn as Qe, dt as $e, en as et, f as tt, fn as nt, ft as rt, g as it, gt as at, h as ot, hn as st, k as ct, l as lt, ln as ut, m as dt, mn as ft, n as pt, o as mt, on as ht, ot as gt, p as _t, q as vt, qt as yt, r as bt, rn as xt, rt as St, sn as Ct, st as wt, tn as Tt, u as Et, v as Dt, w as Ot, wt as kt, zt as At } from "./cells-B5-y5EY3.js";
9
- import { D as jt, E as Mt, O as Nt, S as Pt, T as Ft, _ as It, a as Lt, c as Rt, d as zt, f as Bt, g as Vt, h as Ht, i as Ut, l as Wt, m as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as Xt, t as Zt, u as Qt, v as $t, w as en, x as tn, y as nn } from "./spec-CAYwFeV6.js";
10
- import { $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Ct as un, D as dn, Dt as fn, E as pn, Et as mn, F as hn, Ft as gn, G as _n, Gt as vn, H as yn, Ht as bn, I as xn, It as Sn, J as Cn, Jt as wn, K as Tn, Kt as En, L as Dn, Lt as On, M as kn, Mt as An, N as jn, Nt as Mn, O as Nn, Ot as Pn, P as Fn, Pt as In, Qt as Ln, R as Rn, Rt as zn, S as Bn, St as Vn, T as Hn, Tt as Un, U as Wn, Ut as Gn, V as Kn, Vt as qn, W as Jn, Wt as Yn, X as Xn, Xt as Zn, Y as Qn, Yt as $n, Zt as er, _ as tr, _t as nr, an as rr, at as ir, b as ar, c as or, cn as sr, ct as cr, d as lr, dn as ur, dt as dr, en as fr, et as pr, f as mr, fn as hr, ft as gr, g as _r, gt as vr, h as yr, hn as br, ht as xr, in as Sr, it as Cr, j as wr, jt as Tr, k as Er, kt as Dr, ln as Or, lt as kr, m as Ar, mn as jr, mt as Mr, nn as Nr, nt as Pr, ot as Fr, p as Ir, pn as Lr, pt as Rr, q as zr, qt as Br, r as Vr, rn as Hr, rt as Ur, sn as Wr, st as Gr, t as Kr, tn as qr, tt as Jr, u as Yr, un as Xr, ut as Zr, v as Qr, vt as $r, w as ei, wt as ti, x as ni, y as ri, yt as ii, z as ai, zt as oi } from "./common-C8llK7vn.js";
8
+ import { $ as he, $t as ge, B as _e, Bt as ve, C as ye, Ct as be, D as xe, Dt as Se, Et as Ce, F as we, G as Te, Gt as Ee, Ht as De, I as Oe, J as ke, Jt as Ae, Kt as je, L as Me, O as Ne, Ot as Pe, P as Fe, Pt as Ie, Q as Le, Qt as Re, Rt as ze, S as Be, St as Ve, T as He, Tt as Ue, U as We, W as Ge, Wt as Ke, bt as qe, c as Je, cn as Ye, ct as Xe, d as Ze, dn as Qe, dt as $e, en as et, f as tt, fn as nt, ft as rt, g as it, gt as at, h as ot, hn as st, k as ct, l as lt, ln as ut, m as dt, mn as ft, n as pt, o as mt, on as ht, ot as gt, p as _t, q as vt, qt as yt, r as bt, rn as xt, rt as St, sn as Ct, st as wt, tn as Tt, u as Et, v as Dt, w as Ot, wt as kt, zt as At } from "./cells-Cv93oav_.js";
9
+ import { D as jt, E as Mt, O as Nt, S as Pt, T as Ft, _ as It, a as Lt, c as Rt, d as zt, f as Bt, g as Vt, h as Ht, i as Ut, l as Wt, m as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as Xt, t as Zt, u as Qt, v as $t, w as en, x as tn, y as nn } from "./spec-DQBRQSba.js";
10
+ import { $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Ct as un, D as dn, Dt as fn, E as pn, Et as mn, F as hn, Ft as gn, G as _n, Gt as vn, H as yn, Ht as bn, I as xn, It as Sn, J as Cn, Jt as wn, K as Tn, Kt as En, L as Dn, Lt as On, M as kn, Mt as An, N as jn, Nt as Mn, O as Nn, Ot as Pn, P as Fn, Pt as In, Qt as Ln, R as Rn, Rt as zn, S as Bn, St as Vn, T as Hn, Tt as Un, U as Wn, Ut as Gn, V as Kn, Vt as qn, W as Jn, Wt as Yn, X as Xn, Xt as Zn, Y as Qn, Yt as $n, Zt as er, _ as tr, _t as nr, an as rr, at as ir, b as ar, c as or, cn as sr, ct as cr, d as lr, dn as ur, dt as dr, en as fr, et as pr, f as mr, fn as hr, ft as gr, g as _r, gt as vr, h as yr, hn as br, ht as xr, in as Sr, it as Cr, j as wr, jt as Tr, k as Er, kt as Dr, ln as Or, lt as kr, m as Ar, mn as jr, mt as Mr, nn as Nr, nt as Pr, ot as Fr, p as Ir, pn as Lr, pt as Rr, q as zr, qt as Br, r as Vr, rn as Hr, rt as Ur, sn as Wr, st as Gr, t as Kr, tn as qr, tt as Jr, u as Yr, un as Xr, ut as Zr, v as Qr, vt as $r, w as ei, wt as ti, x as ni, y as ri, yt as ii, z as ai, zt as oi } from "./common-B58G5YN_.js";
11
11
  import { c as si, i as ci, n as li, o as ui, t as di } from "./useLifecycle-DPgiiwwU.js";
12
12
  import { t as fi } from "./check-B7cIK6gb.js";
13
13
  import { A as pi, C as mi, D as hi, E as gi, M as _i, O as vi, S as yi, T as bi, a as xi, b as Si, c as Ci, i as wi, k as Ti, l as Ei, n as Di, o as Oi, r as ki, s as Ai, t as ji, w as Mi, x as Ni } from "./select-C6plhmZr.js";
14
- import { B as Pi, C as Fi, J as Ii, Mt as Li, Nt as Ri, S as zi, Vt as Bi, W as Vi, _ as Hi, a as Ui, at as Wi, c as Gi, dt as Ki, f as qi, fn as Ji, g as Yi, h as Xi, i as Zi, it as Qi, m as $i, n as ea, p as ta, pn as na, q as ra, r as ia, s as aa, t as oa, v as sa, vt as ca, x as la, z as ua } from "./dropdown-menu-CZgjYSAh.js";
14
+ import { B as Pi, C as Fi, J as Ii, Mt as Li, Nt as Ri, S as zi, Vt as Bi, W as Vi, _ as Hi, a as Ui, at as Wi, c as Gi, dt as Ki, f as qi, fn as Ji, g as Yi, h as Xi, i as Zi, it as Qi, m as $i, n as ea, p as ta, pn as na, q as ra, r as ia, s as aa, t as oa, v as sa, vt as ca, x as la, z as ua } from "./dropdown-menu-CZy06LAq.js";
15
15
  import { C as da, S as fa, T as pa, _ as ma, c as ha, d as ga, f as _a, g as va, h as ya, m as ba, u as xa, x as Sa, y as Ca } from "./toDate-C67bxMWn.js";
16
- import { a as wa, c as Ta, d as Ea, f as Da, i as Oa, l as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa } from "./process-output-zDX4jbhd.js";
16
+ import { a as wa, c as Ta, d as Ea, f as Da, i as Oa, l as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa } from "./process-output-CYN5E-iO.js";
17
17
  import { a as Fa, c as Ia, d as La, i as Ra, l as za, r as Ba, u as Va } from "./glide-utils-B3rUT5PI.js";
18
- import { n as Ha, t as Ua } from "./ErrorBoundary-CMASlTBK.js";
19
- import { n as Wa, t as Ga } from "./globals-D7eXYEPA.js";
18
+ import { n as Ha, t as Ua } from "./ErrorBoundary-1wHWKFoG.js";
19
+ import { n as Wa, t as Ga } from "./globals-C6IYCw1c.js";
20
20
  import { t as Ka } from "./react-dom-BUgJ-ab_.js";
21
21
  import { t as qa } from "./jsx-runtime-DgDPJV9S.js";
22
22
  import { B as Ja, C as H, Ct as Ya, D as Xa, E as Za, Et as Qa, F as U, G as $a, H as eo, I as to, L as no, M as W, N as ro, O as io, P as ao, Q as oo, R as so, S as G, St as co, Tt as lo, U as uo, W as fo, Y as po, Z as mo, _ as ho, a as go, b as _o, bt as vo, c as yo, d as bo, dt as xo, f as So, g as Co, gt as wo, h as To, i as Eo, j as K, k as Do, l as Oo, m as ko, n as Ao, o as jo, p as Mo, r as No, s as Po, u as Fo, v as Io, vt as Lo, w as Ro, wt as zo, x as Bo, xt as Vo, y as Ho, yt as Uo } from "./use-restore-focus-D5D9xEjZ.js";
23
23
  import { i as Wo, n as Go, r as Ko, t as qo } from "./error-banner-B94dcDmP.js";
24
- import { t as Jo } from "./label-BJ49YTvk.js";
25
- import { i as Yo, r as Xo, t as Zo } from "./useNumberFormatter-BfDpa21j.js";
24
+ import { a as Jo, i as Yo, n as Xo, t as Zo } from "./label-BslhXqL6.js";
26
25
  import { a as Qo } from "./hasIn-o2Us0uVx.js";
27
26
  import { n as $o, t as es } from "./pick-CJeoxYOS.js";
28
27
  import { t as ts } from "./debounce-C3jyATpc.js";
@@ -37,10 +36,10 @@ import { n as ks } from "./dist-BRxfaJgs.js";
37
36
  import { i as As } from "./dist-C2KzV-vf.js";
38
37
  import { n as js, t as Ms } from "./esm-h8f7-1CJ.js";
39
38
  import { t as Ns } from "./useAsyncData-BD6AStMt.js";
40
- import { i as Ps, n as Fs, r as Is } from "./formats-C8rLgZT9.js";
41
- import { M as Ls, N as Rs } from "./vega-loader.browser-D95WfUcj.js";
42
- import { a as zs, n as Bs } from "./loader-D2W4oM-3.js";
43
- import { c as Vs, d as Hs, i as Us, l as Ws, o as Gs, s as Ks, t as qs, u as Js } from "./code-visibility-mzCnOHAV.js";
39
+ import { i as Ps, n as Fs, r as Is } from "./formats-Cl_67ghI.js";
40
+ import { M as Ls, N as Rs } from "./vega-loader.browser-DNST6uVf.js";
41
+ import { a as zs, n as Bs } from "./loader-DEZSzvma.js";
42
+ import { c as Vs, d as Hs, i as Us, l as Ws, o as Gs, s as Ks, t as qs, u as Js } from "./code-visibility-DMcT7AsU.js";
44
43
  import { t as Ys } from "./useDeepCompareMemoize-D_HNdyvI.js";
45
44
  import { t as Xs } from "./esm-BElI3qKH.js";
46
45
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
@@ -4206,7 +4205,7 @@ var bh = J.forwardRef((e, t) => {
4206
4205
  let s = a && "text-destructive", c;
4207
4206
  n[3] !== r || n[4] !== s ? (c = l(s, r), n[3] = r, n[4] = s, n[5] = c) : c = n[5];
4208
4207
  let u;
4209
- return n[6] !== o || n[7] !== i || n[8] !== t || n[9] !== c ? (u = /* @__PURE__ */ (0, Y.jsx)(Jo, {
4208
+ return n[6] !== o || n[7] !== i || n[8] !== t || n[9] !== c ? (u = /* @__PURE__ */ (0, Y.jsx)(Zo, {
4210
4209
  ref: t,
4211
4210
  className: c,
4212
4211
  htmlFor: o,
@@ -4717,7 +4716,7 @@ function Kh({ schema: e, form: t, path: n, renderers: r }) {
4717
4716
  }
4718
4717
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
4719
4718
  className: "flex flex-col gap-1",
4720
- children: [/* @__PURE__ */ (0, Y.jsx)(Jo, { children: i }), /* @__PURE__ */ (0, Y.jsx)(qh, {
4719
+ children: [/* @__PURE__ */ (0, Y.jsx)(Zo, { children: i }), /* @__PURE__ */ (0, Y.jsx)(qh, {
4721
4720
  schema: e.element,
4722
4721
  form: t,
4723
4722
  path: n,
@@ -6264,7 +6263,7 @@ var f_ = class e {
6264
6263
  let t = (0, X.c)(5), { children: n } = e, r = rs(hs), i;
6265
6264
  t[0] === r ? i = t[1] : (i = bn(r), t[0] = r, t[1] = i);
6266
6265
  let a;
6267
- return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(Yo, {
6266
+ return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(Jo, {
6268
6267
  locale: i,
6269
6268
  children: n
6270
6269
  }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
@@ -9183,7 +9182,7 @@ var Zx = ie, Qx = D, $x = A, eS = k, tS = (e) => {
9183
9182
  className: "text-muted-foreground border-muted-foreground-20",
9184
9183
  children: [o, /* @__PURE__ */ (0, Y.jsx)(Qx, {
9185
9184
  className: "text-[0.84375rem]",
9186
- children: /* @__PURE__ */ (0, Y.jsx)(mr, { data: r })
9185
+ children: /* @__PURE__ */ (0, Y.jsx)(lr, { data: r })
9187
9186
  })]
9188
9187
  })
9189
9188
  }), t[6] = r, t[7] = s);
@@ -9866,7 +9865,7 @@ var PS = (e) => {
9866
9865
  t[12] !== c || t[13] !== d || t[14] !== f ? (p = /* @__PURE__ */ (0, Y.jsx)("div", {
9867
9866
  part: "label",
9868
9867
  className: "inline-flex items-center m-0 p-0",
9869
- children: /* @__PURE__ */ (0, Y.jsx)(Jo, {
9868
+ children: /* @__PURE__ */ (0, Y.jsx)(Zo, {
9870
9869
  htmlFor: c,
9871
9870
  className: d,
9872
9871
  children: f
@@ -9992,7 +9991,7 @@ var PS = (e) => {
9992
9991
  output: t
9993
9992
  };
9994
9993
  } };
9995
- } }, BS = J.lazy(() => import("./chat-ui-HJZsTl7o.js").then((e) => ({ default: e.Chatbot }))), VS = G(W({
9994
+ } }, BS = J.lazy(() => import("./chat-ui-fVyVOhYN.js").then((e) => ({ default: e.Chatbot }))), VS = G(W({
9996
9995
  id: U(),
9997
9996
  role: Io([
9998
9997
  "system",
@@ -10458,7 +10457,7 @@ function RC(e, t) {
10458
10457
  }
10459
10458
  //#endregion
10460
10459
  //#region src/plugins/impl/DataEditorPlugin.tsx
10461
- var zC = J.lazy(() => import("./glide-data-editor-CbZmNC6Q.js").then((e) => e.t)), BC = xS("marimo-data-editor", { cssStyles: [WS] }).withData(W({
10460
+ var zC = J.lazy(() => import("./glide-data-editor-DnxrqL3c.js").then((e) => e.t)), BC = xS("marimo-data-editor", { cssStyles: [WS] }).withData(W({
10462
10461
  initialValue: W({ edits: G(W({
10463
10462
  rowIdx: K(),
10464
10463
  columnId: U(),
@@ -10793,7 +10792,7 @@ function cw(e) {
10793
10792
  var lw = J.forwardRef((e, t) => {
10794
10793
  let n = (0, X.c)(26), r, i, a;
10795
10794
  n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, valueMap: a, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
10796
- let [o, s] = sw(!1), { locale: c } = Xo(), u;
10795
+ let [o, s] = sw(!1), { locale: c } = Yo(), u;
10797
10796
  n[4] === r ? u = n[5] : (u = l("relative flex touch-none select-none hover:cursor-pointer", "data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center", "data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center", "data-disabled:cursor-not-allowed", r), n[4] = r, n[5] = u);
10798
10797
  let d;
10799
10798
  n[6] === Symbol.for("react.memo_cache_sentinel") ? (d = l("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), n[6] = d) : d = n[6];
@@ -13668,26 +13667,33 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
13668
13667
  S(e.tabName, t);
13669
13668
  },
13670
13669
  getDataUrl: a,
13670
+ hasSchema: !!o?.length,
13671
13671
  fieldTypes: XT(o ?? Zr(n.props.data), s),
13672
13672
  isLargeDataset: C
13673
13673
  })
13674
13674
  }, r))
13675
13675
  ]
13676
13676
  });
13677
- }, QT = "X and Y columns are not set", $T = ({ tableData: e, chartConfig: t, chartType: n, saveChart: r, saveChartType: i, getDataUrl: a, fieldTypes: o, isLargeDataset: s }) => {
13678
- let { theme: c } = fs(), l = Qm({
13677
+ }, QT = "X and Y columns are not set", $T = ({ tableData: e, chartConfig: t, chartType: n, saveChart: r, saveChartType: i, getDataUrl: a, fieldTypes: o, hasSchema: s = !!o?.length, isLargeDataset: c }) => {
13678
+ let { theme: l } = fs(), u = Qm({
13679
13679
  defaultValues: t ?? FT(),
13680
13680
  resolver: ch(PT)
13681
- }), [u, d] = (0, J.useState)(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(!s), { ref: g } = WC(), { data: v, isPending: y, error: b } = Ns(async () => {
13682
- if (!a || e.length === 0 || !m) return [];
13681
+ }), [d, f] = (0, J.useState)(n), [p, m] = (0, J.useState)(!1), [h, g] = (0, J.useState)(!c), { ref: v } = WC(), y = Ys(s ? o : null), { data: b, isPending: x, error: S } = Ns(async () => {
13682
+ if (!a || e.length === 0 || !h) return [];
13683
13683
  let t = await a({});
13684
- return Array.isArray(t.data_url) ? t.data_url : await Bs(t.data_url, t.format === "arrow" ? { type: "arrow" } : t.format === "json" ? { type: "json" } : {
13684
+ if (Array.isArray(t.data_url)) return t.data_url;
13685
+ let n;
13686
+ return n = t.format === "arrow" ? { type: "arrow" } : t.format === "json" ? { type: "json" } : {
13685
13687
  type: "csv",
13686
- parse: "auto"
13687
- }, { replacePeriod: !0 });
13688
- }, [e, m]), x = l.watch(), S = (0, J.useMemo)(() => structuredClone(x), [x]), C = Kt(u, S, c, "container", qT), w = (0, J.useMemo)(() => y ? /* @__PURE__ */ (0, Y.jsx)(Sn, {}) : b ? /* @__PURE__ */ (0, Y.jsx)(In, { error: b }) : m ? /* @__PURE__ */ (0, Y.jsx)(DT, {
13689
- baseSpec: C,
13690
- data: v,
13688
+ parse: Rs(y && Object.fromEntries(y.map(([e, [t]]) => [e, t])), { parseDates: !0 })
13689
+ }, Bs(t.data_url, n);
13690
+ }, [
13691
+ e,
13692
+ h,
13693
+ y
13694
+ ]), C = u.watch(), w = (0, J.useMemo)(() => structuredClone(C), [C]), T = Kt(d, w, l, "container", qT), E = (0, J.useMemo)(() => x ? /* @__PURE__ */ (0, Y.jsx)(Sn, {}) : S ? /* @__PURE__ */ (0, Y.jsx)(In, { error: S }) : h ? /* @__PURE__ */ (0, Y.jsx)(DT, {
13695
+ baseSpec: T,
13696
+ data: b,
13691
13697
  height: qT
13692
13698
  }) : /* @__PURE__ */ (0, Y.jsxs)(Fs, {
13693
13699
  variant: "warning",
@@ -13696,45 +13702,45 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
13696
13702
  className: "flex flex-row justify-between items-center w-full",
13697
13703
  children: [/* @__PURE__ */ (0, Y.jsx)("span", { children: "Rendering large datasets is not well supported and may crash the browser" }), /* @__PURE__ */ (0, Y.jsx)(_, {
13698
13704
  variant: "warn",
13699
- onClick: () => h(!0),
13705
+ onClick: () => g(!0),
13700
13706
  className: "h-8",
13701
13707
  children: "Proceed"
13702
13708
  })]
13703
13709
  })]
13704
13710
  }), [
13705
- y,
13706
- b,
13707
- m,
13708
- C,
13709
- v
13711
+ x,
13712
+ S,
13713
+ h,
13714
+ T,
13715
+ b
13710
13716
  ]);
13711
13717
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
13712
13718
  className: "flex flex-row gap-2 h-full rounded-md border-t pr-2",
13713
13719
  children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
13714
- className: `relative flex flex-col gap-2 overflow-auto px-2 py-3 scrollbar-thin transition-width duration-200 ${f ? "w-8" : "w-[300px]"}`,
13715
- children: [!f && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(pT, {
13716
- value: u,
13720
+ className: `relative flex flex-col gap-2 overflow-auto px-2 py-3 scrollbar-thin transition-width duration-200 ${p ? "w-8" : "w-[300px]"}`,
13721
+ children: [!p && /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(pT, {
13722
+ value: d,
13717
13723
  onValueChange: (e) => {
13718
- d(e), i(e);
13724
+ f(e), i(e);
13719
13725
  }
13720
13726
  }), /* @__PURE__ */ (0, Y.jsx)(eE, {
13721
- form: l,
13727
+ form: u,
13722
13728
  saveChart: r,
13723
13729
  fieldTypes: o,
13724
- chartType: u
13730
+ chartType: d
13725
13731
  })] }), /* @__PURE__ */ (0, Y.jsx)(_, {
13726
13732
  variant: "outline",
13727
13733
  size: "icon",
13728
13734
  className: "border-border ml-auto",
13729
- onClick: () => p((e) => !e),
13730
- title: f ? "Expand sidebar" : "Collapse sidebar",
13731
- children: f ? /* @__PURE__ */ (0, Y.jsx)(na, { className: "w-4 h-5" }) : /* @__PURE__ */ (0, Y.jsx)(jr, { className: "w-4 h-5" })
13735
+ onClick: () => m((e) => !e),
13736
+ title: p ? "Expand sidebar" : "Collapse sidebar",
13737
+ children: p ? /* @__PURE__ */ (0, Y.jsx)(na, { className: "w-4 h-5" }) : /* @__PURE__ */ (0, Y.jsx)(jr, { className: "w-4 h-5" })
13732
13738
  })]
13733
13739
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
13734
13740
  className: "flex-1 overflow-auto h-full w-full mt-3",
13735
13741
  children: (() => {
13736
13742
  let e = QT;
13737
- return typeof C != "string" && (e = rw(C, "_df", "_chart")), /* @__PURE__ */ (0, Y.jsxs)(on, {
13743
+ return typeof T != "string" && (e = rw(T, "_df", "_chart")), /* @__PURE__ */ (0, Y.jsxs)(on, {
13738
13744
  defaultValue: "chart",
13739
13745
  children: [
13740
13746
  /* @__PURE__ */ (0, Y.jsx)("div", {
@@ -13755,8 +13761,8 @@ var ZT = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
13755
13761
  }),
13756
13762
  /* @__PURE__ */ (0, Y.jsx)(Tr, {
13757
13763
  value: "chart",
13758
- ref: g,
13759
- children: w
13764
+ ref: v,
13765
+ children: E
13760
13766
  }),
13761
13767
  /* @__PURE__ */ (0, Y.jsx)(Tr, {
13762
13768
  value: "code",
@@ -13885,12 +13891,19 @@ function aE(e, t) {
13885
13891
  }
13886
13892
  //#endregion
13887
13893
  //#region src/components/data-table/schemas.ts
13888
- var oE = zS.input(W({ format: Io([
13889
- "csv",
13890
- "json",
13891
- "parquet",
13892
- "tsv"
13893
- ]) })).output(W({
13894
+ var oE = zS.input(W({
13895
+ format: Io([
13896
+ "csv",
13897
+ "json",
13898
+ "parquet",
13899
+ "tsv"
13900
+ ]),
13901
+ options: W({
13902
+ separator: U().optional(),
13903
+ encoding: U().optional(),
13904
+ ensure_ascii: H().optional()
13905
+ }).optional()
13906
+ })).output(W({
13894
13907
  url: U(),
13895
13908
  filename: U(),
13896
13909
  error: U().nullish(),
@@ -13991,7 +14004,7 @@ var dE = (e) => {
13991
14004
  //#endregion
13992
14005
  //#region src/components/data-table/column-explorer-panel/column-explorer.tsx
13993
14006
  function fE({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, tableId: i, table: a }) {
13994
- let [o, s] = (0, J.useState)(""), { locale: c } = Xo(), l = t?.filter(([e]) => !(e === "__select__" || e === "_marimo_row_id" || e.startsWith("__m_column__"))), u = l?.filter(([e]) => rn(o, e)), { totalColumns: d, hiddenColumns: f } = jn(a, r), { visible: p } = hn(a), m = Fn(a), { rowsAndColumns: h, hiddenSuffix: g } = wr({
14007
+ let [o, s] = (0, J.useState)(""), { locale: c } = Yo(), l = t?.filter(([e]) => !(e === "__select__" || e === "_marimo_row_id" || e.startsWith("__m_column__"))), u = l?.filter(([e]) => rn(o, e)), { totalColumns: d, hiddenColumns: f } = jn(a, r), { visible: p } = hn(a), m = Fn(a), { rowsAndColumns: h, hiddenSuffix: g } = wr({
13995
14008
  numRows: n,
13996
14009
  totalColumns: d,
13997
14010
  locale: c,
@@ -14127,7 +14140,7 @@ function pE({ columnName: e, column: t, dataType: n, externalType: r, previewCol
14127
14140
  }) })] });
14128
14141
  }
14129
14142
  var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
14130
- let { theme: r } = fs(), { locale: i } = Xo(), { data: a, error: o, isPending: s, refetch: c } = Ns(async () => await e({ column: t }), []);
14143
+ let { theme: r } = fs(), { locale: i } = Yo(), { data: a, error: o, isPending: s, refetch: c } = Ns(async () => await e({ column: t }), []);
14131
14144
  if (o) return /* @__PURE__ */ (0, Y.jsx)(Er, { error: o });
14132
14145
  if (s) return /* @__PURE__ */ (0, Y.jsx)(an, { message: "Loading..." });
14133
14146
  if (!a) return /* @__PURE__ */ (0, Y.jsx)(Nn, {
@@ -14153,7 +14166,7 @@ var mE = ({ previewColumn: e, columnName: t, dataType: n }) => {
14153
14166
  ]
14154
14167
  });
14155
14168
  }, hE = ({ rowIdx: e, setRowIdx: t, totalRows: n, fieldTypes: r, getRow: i, isSelectable: a, isRowSelected: o, handleRowSelectionChange: s }) => {
14156
- let [c, l] = (0, J.useState)(""), u = (0, J.useRef)(null), d = (0, J.useId)(), { locale: f } = Xo(), p = n === Vn, { data: m, error: h } = Ns(async () => (await i(e)).rows, [
14169
+ let [c, l] = (0, J.useState)(""), u = (0, J.useRef)(null), d = (0, J.useId)(), { locale: f } = Yo(), p = n === Vn, { data: m, error: h } = Ns(async () => (await i(e)).rows, [
14157
14170
  i,
14158
14171
  e,
14159
14172
  n
@@ -14820,7 +14833,7 @@ var ME = (e) => {
14820
14833
  });
14821
14834
  NE.displayName = "LoadingDataTableComponent";
14822
14835
  var PE = (e) => {
14823
- let t = (0, X.c)(142), { label: n, data: r, rawData: i, totalRows: o, sizeBytes: s, sizeBytesIsLoading: c, maxColumns: l, pagination: u, selection: d, value: f, showFilters: p, showDownload: m, showPageSizeSelector: h, showColumnExplorer: g, showRowExplorer: _, showChartBuilder: v, showDataTypes: y, rowHeaders: b, fieldTypes: x, paginationState: S, setPaginationState: C, download_as: w, columnSummaries: T, className: E, setValue: D, sorting: O, setSorting: k, showSearch: A, searchQuery: j, setSearchQuery: M, filters: N, setFilters: P, reloading: F, freezeColumnsLeft: I, freezeColumnsRight: L, hiddenColumns: R, textJustifyColumns: ee, wrappedColumns: z, columnWidths: te, headerTooltip: B, totalColumns: ne, get_row_ids: re, cellStyles: ie, hoverTemplate: ae, cellHoverTexts: oe, toggleDisplayHeader: se, isChartBuilderOpen: ce, calculate_top_k_rows: V, preview_column: le, getRow: ue, cellId: de, maxHeight: fe } = e, pe = d, me = y, he = (0, J.useId)(), { locale: ge } = Xo(), [_e, ve] = (0, J.useState)(0), { isPanelOpen: ye, isAnyPanelOpen: be, togglePanel: xe, panelType: Se, setPanelType: Ce } = rE(he, de), we;
14836
+ let t = (0, X.c)(142), { label: n, data: r, rawData: i, totalRows: o, sizeBytes: s, sizeBytesIsLoading: c, maxColumns: l, pagination: u, selection: d, value: f, showFilters: p, showDownload: m, showPageSizeSelector: h, showColumnExplorer: g, showRowExplorer: _, showChartBuilder: v, showDataTypes: y, rowHeaders: b, fieldTypes: x, paginationState: S, setPaginationState: C, download_as: w, columnSummaries: T, className: E, setValue: D, sorting: O, setSorting: k, showSearch: A, searchQuery: j, setSearchQuery: M, filters: N, setFilters: P, reloading: F, freezeColumnsLeft: I, freezeColumnsRight: L, hiddenColumns: R, textJustifyColumns: ee, wrappedColumns: z, columnWidths: te, headerTooltip: B, totalColumns: ne, get_row_ids: re, cellStyles: ie, hoverTemplate: ae, cellHoverTexts: oe, toggleDisplayHeader: se, isChartBuilderOpen: ce, calculate_top_k_rows: V, preview_column: le, getRow: ue, cellId: de, maxHeight: fe } = e, pe = d, me = y, he = (0, J.useId)(), { locale: ge } = Yo(), [_e, ve] = (0, J.useState)(0), { isPanelOpen: ye, isAnyPanelOpen: be, togglePanel: xe, panelType: Se, setPanelType: Ce } = rE(he, de), we;
14824
14837
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (we = ga(), t[0] = we) : we = t[0];
14825
14838
  let Te = we, Ee;
14826
14839
  bb0: {
@@ -14995,7 +15008,7 @@ var PE = (e) => {
14995
15008
  let pt = m ? w : void 0, mt = v && !ot, ht = (_ || nt) && !it && !ot, gt;
14996
15009
  t[81] === ve ? gt = t[82] : (gt = (e) => ve(e), t[81] = ve, t[82] = gt);
14997
15010
  let _t;
14998
- t[83] !== V || t[84] !== oe || t[85] !== Qe || t[86] !== ie || t[87] !== E || t[88] !== We || t[89] !== r || t[90] !== N || t[91] !== I || t[92] !== L || t[93] !== re || t[94] !== et || t[95] !== Je || t[96] !== R || t[97] !== ae || t[98] !== be || t[99] !== ce || t[100] !== ye || t[101] !== fe || t[102] !== u || t[103] !== S || t[104] !== i || t[105] !== F || t[106] !== ct || t[107] !== Ke || t[108] !== j || t[109] !== pe || t[110] !== P || t[111] !== C || t[112] !== M || t[113] !== k || t[114] !== p || t[115] !== h || t[116] !== A || t[117] !== s || t[118] !== c || t[119] !== O || t[120] !== pt || t[121] !== mt || t[122] !== ht || t[123] !== gt || t[124] !== se || t[125] !== xe || t[126] !== ne || t[127] !== o || t[128] !== _e ? (_t = /* @__PURE__ */ (0, Y.jsx)(yr, {
15011
+ t[83] !== V || t[84] !== oe || t[85] !== Qe || t[86] !== ie || t[87] !== E || t[88] !== We || t[89] !== r || t[90] !== N || t[91] !== I || t[92] !== L || t[93] !== re || t[94] !== et || t[95] !== Je || t[96] !== R || t[97] !== ae || t[98] !== be || t[99] !== ce || t[100] !== ye || t[101] !== fe || t[102] !== u || t[103] !== S || t[104] !== i || t[105] !== F || t[106] !== ct || t[107] !== Ke || t[108] !== j || t[109] !== pe || t[110] !== P || t[111] !== C || t[112] !== M || t[113] !== k || t[114] !== p || t[115] !== h || t[116] !== A || t[117] !== s || t[118] !== c || t[119] !== O || t[120] !== pt || t[121] !== mt || t[122] !== ht || t[123] !== gt || t[124] !== se || t[125] !== xe || t[126] !== ne || t[127] !== o || t[128] !== _e ? (_t = /* @__PURE__ */ (0, Y.jsx)(Ar, {
14999
15012
  data: r,
15000
15013
  rawData: i,
15001
15014
  columns: We,
@@ -15396,7 +15409,7 @@ var $E = class {
15396
15409
  fullWidth: s,
15397
15410
  children: _
15398
15411
  }), t[20] = s, t[21] = u, t[22] = n, t[23] = _, t[24] = v) : v = t[24], v;
15399
- }, nD = J.lazy(() => import("./ConnectedDataExplorerComponent-KVhjDMSe.js")), rD = xS("marimo-data-explorer").withData(W({
15412
+ }, nD = J.lazy(() => import("./ConnectedDataExplorerComponent-C2d9ysUI.js")), rD = xS("marimo-data-explorer").withData(W({
15400
15413
  label: U().nullish(),
15401
15414
  data: U()
15402
15415
  })).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(nD, {
@@ -16507,7 +16520,7 @@ var LD = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
16507
16520
  children: T.message
16508
16521
  }),
16509
16522
  (() => {
16510
- let e = a ?? `Select ${ce.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Jo, { children: E({ html: e }) });
16523
+ let e = a ?? `Select ${ce.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, Y.jsx)(Zo, { children: E({ html: e }) });
16511
16524
  return i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
16512
16525
  className: "flex items-center justify-between border px-2",
16513
16526
  children: [/* @__PURE__ */ (0, Y.jsx)("div", {
@@ -19324,7 +19337,7 @@ function Gk() {
19324
19337
  minimumFractionDigits: 1,
19325
19338
  maximumFractionDigits: 1
19326
19339
  }, e[0] = i) : i = e[0];
19327
- let a = Zo(i), o;
19340
+ let a = Xo(i), o;
19328
19341
  e[1] === Symbol.for("react.memo_cache_sentinel") ? (o = () => {
19329
19342
  r.current = window.setInterval(() => {
19330
19343
  n(Kk);
@@ -20770,11 +20783,12 @@ var yj = class {
20770
20783
  if (t[2] !== n || t[3] !== e.options) {
20771
20784
  let r;
20772
20785
  t[5] === n ? r = t[6] : (r = (e, t) => /* @__PURE__ */ (0, Y.jsxs)("div", {
20773
- className: "flex items-center space-x-2",
20786
+ className: "flex items-start space-x-2",
20774
20787
  children: [/* @__PURE__ */ (0, Y.jsx)(Yn, {
20775
20788
  value: e,
20776
- id: `${n}-${t.toString()}`
20777
- }), /* @__PURE__ */ (0, Y.jsx)(Jo, {
20789
+ id: `${n}-${t.toString()}`,
20790
+ className: "shrink-0"
20791
+ }), /* @__PURE__ */ (0, Y.jsx)(Zo, {
20778
20792
  htmlFor: `${n}-${t.toString()}`,
20779
20793
  className: "text-sm font-normal",
20780
20794
  children: e
@@ -20801,7 +20815,7 @@ var yj = class {
20801
20815
  }, xj = J.forwardRef((e, t) => {
20802
20816
  let n = (0, X.c)(56), r, i, a;
20803
20817
  n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, valueMap: a, ...i} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
20804
- let [o, s] = sw(!1), { locale: c } = Xo(), u = J.useRef(!1), d = J.useRef(0), f = J.useRef(0), p;
20818
+ let [o, s] = sw(!1), { locale: c } = Yo(), u = J.useRef(!1), d = J.useRef(0), f = J.useRef(0), p;
20805
20819
  n[4] === Symbol.for("react.memo_cache_sentinel") ? (p = [], n[4] = p) : p = n[4];
20806
20820
  let m = J.useRef(p), h;
20807
20821
  n[5] === Symbol.for("react.memo_cache_sentinel") ? (h = [], n[5] = h) : h = n[5];
@@ -20937,7 +20951,7 @@ var Sj = class {
20937
20951
  });
20938
20952
  }
20939
20953
  }, Cj = (e) => {
20940
- let t = (0, X.c)(50), { label: n, setValue: r, value: i, start: a, stop: o, step: s, debounce: c, orientation: u, showValue: d, fullWidth: f, disabled: p, valueMap: m } = e, h = (0, J.useId)(), { locale: g } = Xo(), [_, v] = (0, J.useState)(i), y, b;
20954
+ let t = (0, X.c)(50), { label: n, setValue: r, value: i, start: a, stop: o, step: s, debounce: c, orientation: u, showValue: d, fullWidth: f, disabled: p, valueMap: m } = e, h = (0, J.useId)(), { locale: g } = Yo(), [_, v] = (0, J.useState)(i), y, b;
20941
20955
  t[0] === i ? (y = t[1], b = t[2]) : (y = () => {
20942
20956
  v(i);
20943
20957
  }, b = [i], t[0] = i, t[1] = y, t[2] = b), (0, J.useEffect)(y, b);
@@ -21210,7 +21224,7 @@ function Nj(e) {
21210
21224
  };
21211
21225
  }
21212
21226
  var Pj = (e) => {
21213
- let t = (0, X.c)(64), { label: n, setValue: r, value: i, start: a, stop: o, step: s, steps: c, debounce: u, orientation: d, showValue: f, fullWidth: p, valueMap: m, includeInput: h, disabled: g } = e, _ = (0, J.useId)(), { locale: v } = Xo(), [y, b] = (0, J.useState)(i), x, S;
21227
+ let t = (0, X.c)(64), { label: n, setValue: r, value: i, start: a, stop: o, step: s, steps: c, debounce: u, orientation: d, showValue: f, fullWidth: p, valueMap: m, includeInput: h, disabled: g } = e, _ = (0, J.useId)(), { locale: v } = Yo(), [y, b] = (0, J.useState)(i), x, S;
21214
21228
  t[0] === i ? (x = t[1], S = t[2]) : (x = () => {
21215
21229
  b(i);
21216
21230
  }, S = [i], t[0] = i, t[1] = x, t[2] = S), (0, J.useEffect)(x, S);
@@ -21317,7 +21331,7 @@ var Pj = (e) => {
21317
21331
  }
21318
21332
  }, Ij = (e) => {
21319
21333
  let t = (0, X.c)(9), { value: n, setValue: r, data: i } = e, a = (0, J.useId)(), o;
21320
- t[0] !== i.disabled || t[1] !== a || t[2] !== r || t[3] !== n ? (o = /* @__PURE__ */ (0, Y.jsx)(lr, {
21334
+ t[0] !== i.disabled || t[1] !== a || t[2] !== r || t[3] !== n ? (o = /* @__PURE__ */ (0, Y.jsx)(yr, {
21321
21335
  "data-testid": "marimo-plugin-switch",
21322
21336
  checked: n,
21323
21337
  onCheckedChange: r,
@@ -21653,7 +21667,7 @@ function Gj(e, t) {
21653
21667
  }
21654
21668
  //#endregion
21655
21669
  //#region src/plugins/impl/vega/VegaPlugin.tsx
21656
- var Kj = J.lazy(() => import("./vega-component-CNf5gcrm.js")), qj = class {
21670
+ var Kj = J.lazy(() => import("./vega-component-tFOzgarw.js")), qj = class {
21657
21671
  tagName = "marimo-vega";
21658
21672
  validator = W({
21659
21673
  spec: W({}).passthrough().transform((e) => e),
@@ -21825,7 +21839,7 @@ var Qj = class {
21825
21839
  }),
21826
21840
  children: [/* @__PURE__ */ (0, Y.jsx)(a, { className: l("w-3 h-3", e.label && "mr-2", n && "animate-spin") }), o]
21827
21841
  });
21828
- }, uM = J.lazy(() => import("./ImageComparisonComponent-Dlm5aWnH.js")), dM = class {
21842
+ }, uM = J.lazy(() => import("./ImageComparisonComponent-Cpfz30OZ.js")), dM = class {
21829
21843
  tagName = "marimo-image-comparison";
21830
21844
  validator = W({
21831
21845
  beforeSrc: U(),
@@ -21850,7 +21864,7 @@ var Qj = class {
21850
21864
  });
21851
21865
  render({ data: e }) {
21852
21866
  let t = e.name === void 0 ? !1 : e.name || "";
21853
- return /* @__PURE__ */ (0, Y.jsx)(mr, {
21867
+ return /* @__PURE__ */ (0, Y.jsx)(lr, {
21854
21868
  data: e.jsonData,
21855
21869
  format: "auto",
21856
21870
  valueTypes: e.valueTypes,
@@ -21900,7 +21914,7 @@ var Qj = class {
21900
21914
  ]).transform((e) => e)
21901
21915
  });
21902
21916
  render({ data: e }) {
21903
- return e.data ? /* @__PURE__ */ (0, Y.jsx)(Ar, { message: {
21917
+ return e.data ? /* @__PURE__ */ (0, Y.jsx)(Ir, { message: {
21904
21918
  data: e.data,
21905
21919
  channel: "output",
21906
21920
  mimetype: e.mime
@@ -21920,7 +21934,7 @@ var Qj = class {
21920
21934
  themeVariables: e.data.theme_variables
21921
21935
  });
21922
21936
  }
21923
- }, _M = (0, J.lazy)(() => import("./mermaid-DPNuhemn.js").then((e) => e.t));
21937
+ }, _M = (0, J.lazy)(() => import("./mermaid-Dnzoxjt1.js").then((e) => e.t));
21924
21938
  //#endregion
21925
21939
  //#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
21926
21940
  function vM() {
@@ -23133,7 +23147,7 @@ var FM = (/* @__PURE__ */ i(((e) => {
23133
23147
  });
23134
23148
  }
23135
23149
  }, RM = (e) => {
23136
- let t = (0, X.c)(14), { routes: n, children: r } = e, i = J.Children.count(r);
23150
+ let t = (0, X.c)(11), { routes: n, children: r } = e, i = J.Children.count(r);
23137
23151
  if (i !== n.length) throw Error(`Expected ${n.length} children, but got ${i}`);
23138
23152
  let a;
23139
23153
  t[0] === n ? a = t[1] : (a = new IM(n), t[0] = n, t[1] = a);
@@ -23155,14 +23169,9 @@ var FM = (/* @__PURE__ */ i(((e) => {
23155
23169
  return window.addEventListener("hashchange", e), window.addEventListener("popstate", e), () => {
23156
23170
  window.removeEventListener("hashchange", e), window.removeEventListener("popstate", e);
23157
23171
  };
23158
- }, p = [d], t[6] = d, t[7] = f, t[8] = p), (0, J.useEffect)(f, p), !c) {
23159
- let e;
23160
- return t[9] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, {}), t[9] = e) : e = t[9], e;
23161
- }
23172
+ }, p = [d], t[6] = d, t[7] = f, t[8] = p), (0, J.useEffect)(f, p), !c) return null;
23162
23173
  let m = n.indexOf(c), h;
23163
- t[10] === r ? h = t[11] : (h = J.Children.toArray(r), t[10] = r, t[11] = h);
23164
- let g = h[m], _;
23165
- return t[12] === g ? _ = t[13] : (_ = /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: g }), t[12] = g, t[13] = _), _;
23174
+ return t[9] === r ? h = t[10] : (h = J.Children.toArray(r), t[9] = r, t[10] = h), h[m];
23166
23175
  }, zM = class {
23167
23176
  tagName = "marimo-stat";
23168
23177
  validator = W({
@@ -23182,7 +23191,7 @@ var FM = (/* @__PURE__ */ i(((e) => {
23182
23191
  return /* @__PURE__ */ (0, Y.jsx)(BM, { ...e });
23183
23192
  }
23184
23193
  }, BM = (e) => {
23185
- let t = (0, X.c)(31), { value: n, label: r, caption: i, bordered: a, direction: o, target_direction: s, slot: u } = e, { locale: d } = Xo(), f;
23194
+ let t = (0, X.c)(31), { value: n, label: r, caption: i, bordered: a, direction: o, target_direction: s, slot: u } = e, { locale: d } = Yo(), f;
23186
23195
  t[0] !== d || t[1] !== n ? (f = () => n == null ? /* @__PURE__ */ (0, Y.jsx)("i", { children: "No value" }) : typeof n == "string" ? n : typeof n == "number" ? la(n, d) : typeof n == "boolean" ? n ? "True" : "False" : String(n), t[0] = d, t[1] = n, t[2] = f) : f = t[2];
23187
23196
  let p = f, m = o === s, h = m ? "var(--grass-8)" : "var(--red-8)", g = m ? "var(--grass-9)" : "var(--red-9)", _;
23188
23197
  t[3] === u ? _ = t[4] : (_ = () => {
@@ -23255,8 +23264,8 @@ var FM = (/* @__PURE__ */ i(((e) => {
23255
23264
  tex: e.host.textContent || e.host.innerHTML
23256
23265
  });
23257
23266
  }
23258
- }, HM = Ds(async () => (await import("./katex-DFBiSucW.js")).default), UM = Ds(async () => {
23259
- await import("./mhchem-DWCF06w9.js");
23267
+ }, HM = Ds(async () => (await import("./katex-BNCmKUol.js").then((e) => e.n)).default), UM = Ds(async () => {
23268
+ await import("./mhchem-BEc7A1or.js");
23260
23269
  }), WM = { "\\mbox": "\\text{#1}" };
23261
23270
  async function GM(e, t) {
23262
23271
  let [n] = await Promise.all([HM(), UM()]);
@@ -26642,7 +26651,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
26642
26651
  let h = s && "invisible", g = c ? "overflow-y-auto" : "overflow-y-hidden", _ = u === "top" && "flex items-start", v = u === "bottom" && "flex items-end", y = u === "left" && "flex justify-start", b = u === "right" && "flex justify-end", x;
26643
26652
  t[5] !== d || t[6] !== h || t[7] !== g || t[8] !== _ || t[9] !== v || t[10] !== y || t[11] !== b ? (x = l(d, "h-full w-full p-2 overflow-x-auto", h, g, _, v, y, b), t[5] = d, t[6] = h, t[7] = g, t[8] = _, t[9] = v, t[10] = y, t[11] = b, t[12] = x) : x = t[12];
26644
26653
  let S;
26645
- t[13] !== r || t[14] !== m || t[15] !== n || t[16] !== f ? (S = /* @__PURE__ */ (0, Y.jsx)(Ir, {
26654
+ t[13] !== r || t[14] !== m || t[15] !== n || t[16] !== f ? (S = /* @__PURE__ */ (0, Y.jsx)(mr, {
26646
26655
  allowExpand: !1,
26647
26656
  output: n,
26648
26657
  cellId: r,
@@ -26658,7 +26667,7 @@ var nP = (0, ZN.WidthProvider)(ZN.Responsive), rP = [0, 0], iP = "grid-drag-hand
26658
26667
  oP.displayName = "GridCell";
26659
26668
  var sP = (e) => {
26660
26669
  let t = (0, X.c)(38), { layout: n, setLayout: r, isLocked: i, setIsLocked: a } = e, o;
26661
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, Y.jsx)(Jo, {
26670
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ (0, Y.jsx)(Zo, {
26662
26671
  htmlFor: "columns",
26663
26672
  children: "Columns"
26664
26673
  }), t[0] = o) : o = t[0];
@@ -26683,7 +26692,7 @@ var sP = (e) => {
26683
26692
  })]
26684
26693
  }), t[4] = n.columns, t[5] = s, t[6] = c) : c = t[6];
26685
26694
  let l;
26686
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, Y.jsx)(Jo, {
26695
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, Y.jsx)(Zo, {
26687
26696
  htmlFor: "rowHeight",
26688
26697
  children: "Row Height (px)"
26689
26698
  }), t[7] = l) : l = t[7];
@@ -26708,7 +26717,7 @@ var sP = (e) => {
26708
26717
  })]
26709
26718
  }), t[11] = n.rowHeight, t[12] = u, t[13] = d) : d = t[13];
26710
26719
  let f;
26711
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsx)(Jo, {
26720
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, Y.jsx)(Zo, {
26712
26721
  htmlFor: "maxWidth",
26713
26722
  children: "Max Width (px)"
26714
26723
  }), t[14] = f) : f = t[14];
@@ -26733,7 +26742,7 @@ var sP = (e) => {
26733
26742
  })]
26734
26743
  }), t[18] = n.maxWidth, t[19] = p, t[20] = m) : m = t[20];
26735
26744
  let h;
26736
- t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsxs)(Jo, {
26745
+ t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, Y.jsxs)(Zo, {
26737
26746
  className: "flex flex-row items-center gap-1",
26738
26747
  htmlFor: "lock",
26739
26748
  children: [/* @__PURE__ */ (0, Y.jsx)(R, { className: "h-3 w-3" }), "Bordered"]
@@ -26748,7 +26757,7 @@ var sP = (e) => {
26748
26757
  let _;
26749
26758
  t[25] !== n.bordered || t[26] !== g ? (_ = /* @__PURE__ */ (0, Y.jsxs)("div", {
26750
26759
  className: "flex flex-row items-center gap-2",
26751
- children: [h, /* @__PURE__ */ (0, Y.jsx)(lr, {
26760
+ children: [h, /* @__PURE__ */ (0, Y.jsx)(yr, {
26752
26761
  "data-testid": "grid-bordered-switch",
26753
26762
  id: "lock",
26754
26763
  checked: n.bordered,
@@ -26757,7 +26766,7 @@ var sP = (e) => {
26757
26766
  })]
26758
26767
  }), t[25] = n.bordered, t[26] = g, t[27] = _) : _ = t[27];
26759
26768
  let v;
26760
- t[28] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ (0, Y.jsxs)(Jo, {
26769
+ t[28] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ (0, Y.jsxs)(Zo, {
26761
26770
  className: "flex flex-row items-center gap-1",
26762
26771
  htmlFor: "lock",
26763
26772
  children: [/* @__PURE__ */ (0, Y.jsx)(Ju, { className: "h-3 w-3" }), "Lock Grid"]
@@ -26765,7 +26774,7 @@ var sP = (e) => {
26765
26774
  let y;
26766
26775
  t[29] !== i || t[30] !== a ? (y = /* @__PURE__ */ (0, Y.jsxs)("div", {
26767
26776
  className: "flex flex-row items-center gap-2",
26768
- children: [v, /* @__PURE__ */ (0, Y.jsx)(lr, {
26777
+ children: [v, /* @__PURE__ */ (0, Y.jsx)(yr, {
26769
26778
  "data-testid": "grid-lock-switch",
26770
26779
  id: "lock",
26771
26780
  checked: i,
@@ -26860,7 +26869,7 @@ var lP = (e) => {
26860
26869
  children: "Scrollable"
26861
26870
  }), t[24] = E) : E = t[24];
26862
26871
  let D;
26863
- t[25] !== o || t[26] !== s ? (D = /* @__PURE__ */ (0, Y.jsx)(lr, {
26872
+ t[25] !== o || t[26] !== s ? (D = /* @__PURE__ */ (0, Y.jsx)(yr, {
26864
26873
  "data-testid": "grid-scrollable-switch",
26865
26874
  checked: o,
26866
26875
  size: "sm",
@@ -29932,7 +29941,7 @@ function bR(e) {
29932
29941
  }
29933
29942
  //#endregion
29934
29943
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
29935
- var xR = J.lazy(() => import("./reveal-component-D3YXogQI.js")), SR = (e) => {
29944
+ var xR = J.lazy(() => import("./reveal-component-C1yOCuj8.js")), SR = (e) => {
29936
29945
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = rs(Ca), s = a === "read" || o, c = rs(_t) > 1, [l, u] = (0, J.useState)(null), d;
29937
29946
  t[0] !== i || t[1] !== n ? (d = vP(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
29938
29947
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -30383,7 +30392,7 @@ var zR = (e) => {
30383
30392
  interrupted: m
30384
30393
  }, t);
30385
30394
  }
30386
- return /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: /* @__PURE__ */ (0, Y.jsx)(Ar, {
30395
+ return /* @__PURE__ */ (0, Y.jsx)(J.Fragment, { children: /* @__PURE__ */ (0, Y.jsx)(Ir, {
30387
30396
  cellId: g,
30388
30397
  onRefactorWithAI: b,
30389
30398
  message: e,
@@ -30414,26 +30423,26 @@ var zR = (e) => {
30414
30423
  children: [k, ee]
30415
30424
  }), t[59] = O, t[60] = k, t[61] = ee, t[62] = z) : z = t[62], z;
30416
30425
  }, VR = (e) => {
30417
- let t = (0, X.c)(25), { value: n, setValue: r, inputHistory: i, output: a, isPassword: o, isPdb: s, onSubmit: c, onClear: l } = e, { navigateUp: u, navigateDown: d, addToHistory: f } = i, p;
30426
+ let t = (0, X.c)(26), { value: n, setValue: r, inputHistory: i, output: a, isPassword: o, isPdb: s, onSubmit: c, onClear: l } = e, { navigateUp: u, navigateDown: d, addToHistory: f } = i, p;
30418
30427
  t[0] === a ? p = t[1] : (p = UR(a), t[0] = a, t[1] = p);
30419
30428
  let m = o ? "password" : "text", h;
30420
30429
  t[2] === r ? h = t[3] : (h = (e) => r(e.target.value), t[2] = r, t[3] = h);
30421
30430
  let g;
30422
30431
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ (0, Y.jsx)(na, { className: "w-5 h-5" }), t[4] = g) : g = t[4];
30423
30432
  let _;
30424
- t[5] !== f || t[6] !== d || t[7] !== u || t[8] !== c || t[9] !== r || t[10] !== n ? (_ = (e) => {
30425
- if (e.key === "ArrowUp") {
30433
+ t[5] !== f || t[6] !== o || t[7] !== d || t[8] !== u || t[9] !== c || t[10] !== r || t[11] !== n ? (_ = (e) => {
30434
+ if (!o && e.key === "ArrowUp") {
30426
30435
  u(), e.preventDefault();
30427
30436
  return;
30428
30437
  }
30429
- if (e.key === "ArrowDown") {
30438
+ if (!o && e.key === "ArrowDown") {
30430
30439
  d(), e.preventDefault();
30431
30440
  return;
30432
30441
  }
30433
- e.key === "Enter" && !e.shiftKey && (n && f(n), c(n), r(""), e.preventDefault(), e.stopPropagation()), e.key === "Enter" && e.metaKey && (e.preventDefault(), e.stopPropagation());
30434
- }, t[5] = f, t[6] = d, t[7] = u, t[8] = c, t[9] = r, t[10] = n, t[11] = _) : _ = t[11];
30442
+ e.key === "Enter" && !e.shiftKey && (n && !o && f(n), c(n), r(""), e.preventDefault(), e.stopPropagation()), e.key === "Enter" && e.metaKey && (e.preventDefault(), e.stopPropagation());
30443
+ }, t[5] = f, t[6] = o, t[7] = d, t[8] = u, t[9] = c, t[10] = r, t[11] = n, t[12] = _) : _ = t[12];
30435
30444
  let v;
30436
- t[12] !== m || t[13] !== h || t[14] !== _ || t[15] !== n ? (v = /* @__PURE__ */ (0, Y.jsx)(Xi, {
30445
+ t[13] !== m || t[14] !== h || t[15] !== _ || t[16] !== n ? (v = /* @__PURE__ */ (0, Y.jsx)(Xi, {
30437
30446
  "data-testid": "console-input",
30438
30447
  "data-stdin-blocking": !0,
30439
30448
  type: m,
@@ -30445,21 +30454,21 @@ var zR = (e) => {
30445
30454
  className: "m-0 h-8 focus-visible:shadow-xs-solid",
30446
30455
  placeholder: "stdin",
30447
30456
  onKeyDownCapture: _
30448
- }), t[12] = m, t[13] = h, t[14] = _, t[15] = n, t[16] = v) : v = t[16];
30457
+ }), t[13] = m, t[14] = h, t[15] = _, t[16] = n, t[17] = v) : v = t[17];
30449
30458
  let y;
30450
- t[17] !== s || t[18] !== l || t[19] !== c ? (y = s && /* @__PURE__ */ (0, Y.jsx)(jR, {
30459
+ t[18] !== s || t[19] !== l || t[20] !== c ? (y = s && /* @__PURE__ */ (0, Y.jsx)(jR, {
30451
30460
  onSubmit: c,
30452
30461
  onClear: l
30453
- }), t[17] = s, t[18] = l, t[19] = c, t[20] = y) : y = t[20];
30462
+ }), t[18] = s, t[19] = l, t[20] = c, t[21] = y) : y = t[21];
30454
30463
  let b;
30455
- return t[21] !== p || t[22] !== v || t[23] !== y ? (b = /* @__PURE__ */ (0, Y.jsxs)("div", {
30464
+ return t[22] !== p || t[23] !== v || t[24] !== y ? (b = /* @__PURE__ */ (0, Y.jsxs)("div", {
30456
30465
  className: "flex gap-2 items-center pt-2",
30457
30466
  children: [
30458
30467
  p,
30459
30468
  v,
30460
30469
  y
30461
30470
  ]
30462
- }), t[21] = p, t[22] = v, t[23] = y, t[24] = b) : b = t[24], b;
30471
+ }), t[22] = p, t[23] = v, t[24] = y, t[25] = b) : b = t[25], b;
30463
30472
  }, HR = (e) => {
30464
30473
  let t = (0, X.c)(10), { output: n, response: r, isPassword: i, interrupted: a } = e, o = r != null && r !== "", s = a && !o, c;
30465
30474
  t[0] === n ? c = t[1] : (c = UR(n), t[0] = n, t[1] = c);
@@ -30827,7 +30836,7 @@ var cz = (e) => {
30827
30836
  let D = E;
30828
30837
  if (g === "read" && h || T) {
30829
30838
  let e;
30830
- t[14] !== a || t[15] !== w || t[16] !== n || t[17] !== S ? (e = /* @__PURE__ */ (0, Y.jsx)(Ir, {
30839
+ t[14] !== a || t[15] !== w || t[16] !== n || t[17] !== S ? (e = /* @__PURE__ */ (0, Y.jsx)(mr, {
30831
30840
  allowExpand: !0,
30832
30841
  output: n,
30833
30842
  className: ms.outputArea,
@@ -30884,7 +30893,7 @@ var cz = (e) => {
30884
30893
  let O;
30885
30894
  t[44] !== a || t[45] !== _ ? (O = Kr(a, _), t[44] = a, t[45] = _, t[46] = O) : O = t[46];
30886
30895
  let k = g === "edit", A;
30887
- t[47] !== a || t[48] !== w || t[49] !== n || t[50] !== S || t[51] !== k ? (A = /* @__PURE__ */ (0, Y.jsx)(Ir, {
30896
+ t[47] !== a || t[48] !== w || t[49] !== n || t[50] !== S || t[51] !== k ? (A = /* @__PURE__ */ (0, Y.jsx)(mr, {
30888
30897
  allowExpand: k,
30889
30898
  output: n,
30890
30899
  className: ms.outputArea,
@@ -31435,7 +31444,7 @@ var aB = (e) => {
31435
31444
  return t[6] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)("div", { ref: s }), t[6] = e) : e = t[6], e;
31436
31445
  }
31437
31446
  let p;
31438
- t[7] === d.output ? p = t[8] : (p = /* @__PURE__ */ (0, Y.jsx)(Ar, { message: d.output }), t[7] = d.output, t[8] = p);
31447
+ t[7] === d.output ? p = t[8] : (p = /* @__PURE__ */ (0, Y.jsx)(Ir, { message: d.output }), t[7] = d.output, t[8] = p);
31439
31448
  let m;
31440
31449
  t[9] === d ? m = t[10] : (m = /* @__PURE__ */ (0, Y.jsx)(sB, { state: d }), t[9] = d, t[10] = m);
31441
31450
  let h;