@marimo-team/frontend 0.17.3 → 0.17.4

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 (64) hide show
  1. package/dist/assets/{CellStatus-C3bK7-wN.js → CellStatus-c0SAQ-F-.js} +1 -1
  2. package/dist/assets/{ConsoleOutput-DWvKgTax.js → ConsoleOutput-CDSftFlX.js} +1 -1
  3. package/dist/assets/{MarimoErrorOutput-BgZFHyAp.js → MarimoErrorOutput-BMyX5A6l.js} +1 -1
  4. package/dist/assets/{Output-C8n2C1Pu.js → Output-pZgeySyq.js} +1 -1
  5. package/dist/assets/RenderHTML-BUSbsjNK.js +1 -0
  6. package/dist/assets/{add-cell-with-ai-Bwg9bH8i.js → add-cell-with-ai-D5ovEhXx.js} +1 -1
  7. package/dist/assets/{add-database-form-dbmUeWp4.js → add-database-form-p8983nDn.js} +1 -1
  8. package/dist/assets/{add-missing-import-qki9bte9.js → add-missing-import-BwGZ98W0.js} +1 -1
  9. package/dist/assets/{agent-panel-Dhy20Enr.js → agent-panel-B5iI79QW.js} +1 -1
  10. package/dist/assets/{app-config-button-CYwoclvk.js → app-config-button-BFmqvqPu.js} +1 -1
  11. package/dist/assets/{cell-actions-c22Lh_IO.js → cell-actions-Cc2JYtcT.js} +1 -1
  12. package/dist/assets/{cell-editor-GZrtvFJW.js → cell-editor-DJ46IITP.js} +1 -1
  13. package/dist/assets/{cell-link-sTcnY1Ng.js → cell-link-DFNTDaPd.js} +1 -1
  14. package/dist/assets/{cells-ChcCEAp9.js → cells-DNq9ng4B.js} +3 -5
  15. package/dist/assets/{chat-components-2Txp_uWE.js → chat-components-BJMCzZRK.js} +1 -1
  16. package/dist/assets/{chat-panel-B-aSH1sh.js → chat-panel-DajnoQHz.js} +1 -1
  17. package/dist/assets/{client-DphVxIGq.js → client-B0dO9skM.js} +1 -1
  18. package/dist/assets/{column-preview-CXzpLY8T.js → column-preview-BiiXdwvw.js} +1 -1
  19. package/dist/assets/{command-palette-DisdRO5p.js → command-palette-DbfvqoOB.js} +1 -1
  20. package/dist/assets/{common-D0IIv-_3.js → common-U0RDob8X.js} +1 -1
  21. package/dist/assets/{datasources-panel-6PT8Bek6.js → datasources-panel-Bo6UM72J.js} +1 -1
  22. package/dist/assets/{dependency-graph-panel-6gaUZ9_z.js → dependency-graph-panel-DcOypoYV.js} +1 -1
  23. package/dist/assets/{documentation-panel-CuORNaIe.js → documentation-panel-BPa77v-x.js} +1 -1
  24. package/dist/assets/{edit-page-CF6ZT6DW.js → edit-page-CYfYSIzk.js} +3 -3
  25. package/dist/assets/{error-panel-DsYYzWCa.js → error-panel-C4Dh4_Gz.js} +1 -1
  26. package/dist/assets/{file-explorer-panel-CPZ1gNhJ.js → file-explorer-panel-BTjjB1ys.js} +1 -1
  27. package/dist/assets/{floating-outline-BjOLeg9Q.js → floating-outline-DwAgRZTh.js} +1 -1
  28. package/dist/assets/{focus-BrbV9nqw.js → focus-BwMl5m5_.js} +1 -1
  29. package/dist/assets/{form-BogImzlM.js → form-CQCzdh1o.js} +1 -1
  30. package/dist/assets/{form-wmMKGeHm.js → form-D69llIWP.js} +1 -1
  31. package/dist/assets/{home-page-XcjCdiYR.js → home-page-F1w05vyJ.js} +1 -1
  32. package/dist/assets/{index-B6c28rYm.css → index-BmcO-QYJ.css} +1 -1
  33. package/dist/assets/{index-BXJ0L2ZN.js → index-q8eVuDDk.js} +3 -3
  34. package/dist/assets/{kiosk-mode-DW0KYuDo.js → kiosk-mode-Dd1ooBaF.js} +1 -1
  35. package/dist/assets/{layout-CNCmZJQH.js → layout-C8ytLSQd.js} +1 -1
  36. package/dist/assets/{logs-panel-KRi5a3Yd.js → logs-panel-C8ChYhO8.js} +1 -1
  37. package/dist/assets/{mode-47luhzpx.js → mode-BWw7rz82.js} +1 -1
  38. package/dist/assets/{name-cell-input-iv2D5yrk.js → name-cell-input-F8bM4E5e.js} +1 -1
  39. package/dist/assets/{outline-panel-CwQOW3hr.js → outline-panel-QjRV3Zps.js} +1 -1
  40. package/dist/assets/{packages-panel-bIuFo_yZ.js → packages-panel-_yihtFbB.js} +1 -1
  41. package/dist/assets/{readonly-python-code-DOMir81o.js → readonly-python-code-gmO6162d.js} +1 -1
  42. package/dist/assets/{run-page-DcyDyVAW.js → run-page-BsulC5PQ.js} +1 -1
  43. package/dist/assets/{scratchpad-panel-6URLLQyW.js → scratchpad-panel-A9G8o9jf.js} +1 -1
  44. package/dist/assets/{snippets-panel-DQjHx5dH.js → snippets-panel-C6FwSaZz.js} +1 -1
  45. package/dist/assets/{state-OU5IKSGK.js → state-C7T5AXo0.js} +1 -1
  46. package/dist/assets/{state-Ds5BCDZt.js → state-CIEHjRfF.js} +1 -1
  47. package/dist/assets/{storage-CCZ0kBEN.js → storage-CmIwledL.js} +1 -1
  48. package/dist/assets/{tracing-DlcXZDiG.js → tracing-Cq1z4XC3.js} +1 -1
  49. package/dist/assets/{tracing-panel-BNZEX5NU.js → tracing-panel-Mt1B8lhs.js} +2 -2
  50. package/dist/assets/{types-XAhA2qP3.js → types-UoG2cq5J.js} +1 -1
  51. package/dist/assets/{useAddCell-CG6KWlO3.js → useAddCell-xX3fIjF2.js} +1 -1
  52. package/dist/assets/{useCellActionButton-DFWFWfvs.js → useCellActionButton-jH-t2BrR.js} +1 -1
  53. package/dist/assets/{useDeleteCell-BPNrZc-g.js → useDeleteCell-CJ4WX9R2.js} +1 -1
  54. package/dist/assets/{useNotebookActions-DhHVJ3q5.js → useNotebookActions-Cf9b-Ef9.js} +1 -1
  55. package/dist/assets/{useRunCells-BmIxLPpn.js → useRunCells-DjmsNJ7r.js} +1 -1
  56. package/dist/assets/{useSplitCell-CDjHCs8K.js → useSplitCell-ueztloAj.js} +1 -1
  57. package/dist/assets/{utilities.esm-B_umFSka.js → utilities.esm-D8HYU14D.js} +1 -1
  58. package/dist/assets/{variable-panel-E1eImuWQ.js → variable-panel-DAhAueP9.js} +1 -1
  59. package/dist/index.html +24 -24
  60. package/package.json +1 -1
  61. package/src/css/md.css +6 -0
  62. package/src/plugins/core/__test__/sanitize.test.ts +27 -0
  63. package/src/plugins/core/sanitize.ts +1 -1
  64. package/dist/assets/RenderHTML-DockW4fh.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./terminal-BLwVAXVy.js","./renderShortcut-a-3t8sis.js","./dropdown-menu-ChUikXiI.js","./Combination-DWHMUa0d.js","./useEventListener-D1FLsfmf.js","./compiler-runtime-Cr9loedd.js","./react-BcIddLXZ.js","./chunk-DZLz74EQ.js","./jsx-runtime-mwDPpfh_.js","./react-dom-D6bRRS5R.js","./menu-items-Dm8s6sMr.js","./cn-DEUt_IsG.js","./dist-1ZdxNBaX.js","./createLucideIcon-CaU6_Jtx.js","./check-Dc7YCRim.js","./chevron-right-BExEgq1M.js","./kbd-BfBY_QKr.js","./tooltip-CerBk_un.js","./utils-BpjB6B-Y.js","./hotkeys-ClCtr3_I.js","./jotai-BTnrNcC1.js","./_baseIsEqual-CVFfFJm2.js","./_getTag-CVRrQL_Q.js","./_Uint8Array-D5Z9rM2X.js","./invariant-D5a0EE05.js","./merge-Dvc5opZF.js","./isArrayLikeObject-DKyJYtr8.js","./zod-U2NFpcFA.js","./state-DyQ1h-I-.js","./createReducer-C6dJ71nW.js","./uuid-4lb_EYpq.js","./constants-CEISdYm1.js","./config-e9OVB2bJ.js","./Deferred-Mppm0cvJ.js","./connection-CsVOmbVi.js","./useDebounce--Sw2WRQ5.js","./debounce-BUM2losY.js","./toNumber-CTOPJrpu.js","./isSymbol-xTSywenE.js","./now-BXqTLlmI.js","./useEvent-itkPNnCe.js","./copy-SPzF4B1M.js","./clipboard-paste-DD5fiO8j.js","./copy-CDDalEhv.js","./trash-2-D1jEfGpj.js","./terminal-ByuMlBP_.css","./chat-panel-B-aSH1sh.js","./preload-helper-DImqtvgl.js","./ai-model-dropdown-CCxgO0mJ.js","./multi-map-COQ6MvP7.js","./select-Di-JjADd.js","./button-Zjtz1syG.js","./requests-DD3OWR81.js","./once-3GsqimLM.js","./toDate-CnvLb18a.js","./capitalize-CBqvgOfA.js","./upperFirst-CBQfDRod.js","./_baseSlice-BWZ0PeaJ.js","./toString-CBnct2wx.js","./_arrayMap-DQI2GUNb.js","./_hasUnicode-3DIK_jNi.js","./state-OU5IKSGK.js","./cells-ChcCEAp9.js","./badge-CxcKOiwY.js","./use-toast-BPMVOfO3.js","./key-BOd4SjWu.js","./useLifecycle-CxNbfWnk.js","./useNonce-CL3DrH5R.js","./useTheme-DcMAIbRt.js","./capabilities-CEL4hxAo.js","./dist-DdXBxU_X.js","./dist-o3-gJN-A.js","./dist-CzgFQFBf.js","./dist-ws1ADWL0.js","./dist-BOJjflZo.js","./dist-w3K5vvwl.js","./dist-DXPWGCwf.js","./dist-BGbJQ9FV.js","./dist-dCpey1ug.js","./stex-w1KpyykF.js","./_baseProperty-c4IQJQis.js","./toInteger-Bor4StOs.js","./type-DVCC-93H.js","./marked.esm-BB_RKOA5.js","./main-CCaZmKLi.js","./cells-BvrC6Bsv.css","./spinner-1oeuzoUk.js","./dialog-CzmSXArA.js","./alert-dialog-BZHeDuaE.js","./form-wmMKGeHm.js","./label-FIGQlkj5.js","./input-DuVApvWu.js","./numbers-Dft9TKC1.js","./useNumberFormatter-BPGR7t2W.js","./context-BqH7Jigl.js","./SSRProvider-CMB_HLxO.js","./usePress-C2JVmCUi.js","./links-90C38wV6.js","./popover-BoRNi4dY.js","./switch-p-zRh0zu.js","./table-Bj1zHGNd.js","./tabs-CGHt3Blh.js","./textarea-DA_SbCD5.js","./client-DphVxIGq.js","./useHotkey-Ca6pS8sJ.js","./api-qc-D7yz9.js","./strings-DRRWXNT2.js","./startCase-RfubwhHM.js","./_arrayReduce-DV4IVFuG.js","./useAsyncData-BPaRR7vx.js","./error-banner-rdjPobI5.js","./VisuallyHidden-B9I0t9He.js","./get-BUGWIXZE.js","./_toKey-16owuO_q.js","./memoize-DhF8x4Aa.js","./plug-DqB_ZVdt.js","./circle-x-Bb-EcEyG.js","./plus-DWAWtOBJ.js","./refresh-cw-DKt4M-wV.js","./shim-FF_l0CN4.js","./useDeleteCell-BPNrZc-g.js","./lazy-tfeVHpGH.js","./tooltip-Yli91_uW.js","./vega-loader.browser-Cp1bHVeU.js","./precisionRound-BLxyDkD7.js","./defaultLocale-DEWTIUVh.js","./defaultLocale-B9-NA0ur.js","./chat-components-2Txp_uWE.js","./add-missing-import-qki9bte9.js","./focus-BrbV9nqw.js","./LazyAnyLanguageCodeMirror-BzY5E2SR.js","./katex-CRQIlYbs.js","./between-horizontal-start-t72OrVBT.js","./download-kgdScOCd.js","./file-text-Z92DzmMA.js","./file-Cesos4Qp.js","./image-CVwcB3Mo.js","./chat-components-Rg1FqrFy.css","./add-cell-with-ai-Bwg9bH8i.js","./Output-C8n2C1Pu.js","./ErrorBoundary-5_63wxX3.js","./MarimoErrorOutput-BgZFHyAp.js","./cell-link-sTcnY1Ng.js","./ImperativeModal-ExH1h9et.js","./alert-B5fh2kMN.js","./state-Ds5BCDZt.js","./command-DhuV6_de.js","./RenderHTML-DockW4fh.js","./useRunCells-BmIxLPpn.js","./copy-icon-Ckew1l1_.js","./mode-47luhzpx.js","./purify.es-CmG1k0Cr.js","./useIframeCapabilities-BLQ5-OdI.js","./formats-Cit8Tr_y.js","./maps-cpHLsM9S.js","./en-US-Bxm1PGFP.js","./isValid-CFczudfT.js","./download-DrI1Gw05.js","./extends-DhnjMUSs.js","./emotion-is-prop-valid.esm-CjexKXdD.js","./useDateFormatter-CQ9jB95h.js","./range-ZclXTdAh.js","./table-CmDieCGZ.js","./Output-j3zW187k.css","./ConsoleOutput-DWvKgTax.js","./name-cell-input-iv2D5yrk.js","./esm-D8ZMWeYP.js","./objectWithoutPropertiesLoose-CNyONSoo.js","./esm-DXHMyc8g.js","./dist-bbz7Slba.js","./dist-Duhp104c.js","./dist-CH5tSYom.js","./dist-Zii08NWl.js","./dist-C27NmZjJ.js","./dist-DWvYBldG.js","./dist-B309G_89.js","./dist-5c-fdIcP.js","./dist-COzB_eCZ.js","./dist-BMfw4eeq.js","./dist-Z76N9TEr.js","./dist-C3eCrV3K.js","./dist-3nYEuz31.js","./apl-DOdxvsp7.js","./asciiarmor-iHsvYBsh.js","./asn1-CjQdFpKC.js","./brainfuck-DtaPUQOb.js","./clike-CEj-3lIu.js","./clojure-BoRNIjWi.js","./cmake-BDPy65SJ.js","./cobol-B1NZRKFh.js","./coffeescript-C6u-3CUG.js","./commonlisp-PnS0RzOo.js","./crystal-CmwgoX1x.js","./css-BOMeM4Jz.js","./cypher-BNcNWKra.js","./d-BMO4C4Kr.js","./diff-pLFk18zx.js","./dtd-Cufzm3tN.js","./dylan-CohSy5uK.js","./ecl-BhEt80nJ.js","./eiffel-CKJVLfM7.js","./elm-ClkLCCoU.js","./erlang-D2TH4-Et.js","./factor-6NmCZvh-.js","./simple-mode-CXCwEnyS.js","./forth-DV7ZwZS0.js","./fortran-C9_PuY2l.js","./gas-CGuyKmgF.js","./gherkin-BwmPTL6e.js","./groovy-DJxiqoVo.js","./haskell-DOcPZqkO.js","./haxe-BVSsVSdX.js","./idl-D5drHePd.js","./javascript-rI4fd75W.js","./jinja2-BrZGqXAx.js","./julia-z0xq3uqV.js","./livescript-BbVvVfSY.js","./lua-CtEmKXsU.js","./mathematica-B-SjlQIm.js","./mbox-BdnWvTJv.js","./mirc-Cyycx3am.js","./mllike-ZkoLEmrh.js","./modelica-DIZcE54y.js","./mscgen-MISBZbzR.js","./mumps-Cnu1tNUa.js","./nsis-CUebodQn.js","./ntriples-2rre165b.js","./octave-C7u5CeUZ.js","./oz-D5aE2uST.js","./pascal-DTApZM3o.js","./perl-Ckgh9LJK.js","./pig-jAl9a1Kh.js","./powershell-C_IKzlOl.js","./properties-BdVxDpDJ.js","./protobuf-DLu_SUI6.js","./pug-fgP-dIQ4.js","./puppet-CShRizHW.js","./python-ChTwa-ru.js","./q-D2OTJZH4.js","./r-DRqIAgj1.js","./rpm-BStFD27m.js","./ruby-C37hkPS4.js","./sas-CCEIl8BG.js","./scheme-B0jflgrk.js","./shell-Cq7B0hFW.js","./sieve-DS0lS4kt.js","./smalltalk-HHM53Uii.js","./sparql-BMqtnWzI.js","./stylus-Br2gMpMI.js","./swift-BJ8qi_zI.js","./tcl-D0knbOX7.js","./textile-DrRQSuh3.js","./toml-C2kDGfZi.js","./troff-2dFxqWQa.js","./ttcn-cfg-CBXajWEo.js","./ttcn-Cj4sIofh.js","./turtle-CDdPtp5F.js","./vb-CtEhAMYU.js","./vbscript-B0nzdgzL.js","./velocity-DR7TSall.js","./verilog-MmKxT9bW.js","./vhdl-0jJrpQNA.js","./webidl-D9f20BkN.js","./xquery-B0eSGN9q.js","./yacas-BS613OH9.js","./z80-CJYC52xh.js","./trash-DpmcvlCC.js","./ConsoleOutput-BFFTcC5Y.css","./icons-HGhpVPVr.js","./blob-B96v6VlX.js","./empty-state-n1MMYrpv.js","./isEmpty-B-9PYDiJ.js","./square-B9bfYM_2.js","./send-C0pANzAH.js","./settings-DvMaGwYY.js","./prop-types-BAY7nW8B.js","./agent-panel-Dhy20Enr.js","./dist-CKjmAYFu.js","./file-video-camera-gcIrLbdD.js","./square-terminal-Cenbgr6k.js","./agent-panel-uD4NfS9H.css","./dependency-graph-panel-6gaUZ9_z.js","./useCellActionButton-DFWFWfvs.js","./useSplitCell-CDjHCs8K.js","./multi-icon-C4RX3Man.js","./multi-icon-DGEaRcEm.css","./circle-plus-UevqeQZu.js","./eye-off-BIDUS-iw.js","./link-DmSljZn4.js","./TinyCode-CgC7YtPL.js","./TinyCode-ujOhus_y.css","./cell-actions-c22Lh_IO.js","./common-D0IIv-_3.js","./timer-DPMc0rso.js","./src-DnZfSL8R.js","./ellipsis-vertical-DsdK_SPL.js","./square-function-DncO0xCM.js","./workflow-BmOhe3mQ.js","./dependency-graph-panel-DZccg5W0.css","./datasources-panel-6PT8Bek6.js","./column-preview-CXzpLY8T.js","./useInstallPackage-B1IBfLxp.js","./useAddCell-CG6KWlO3.js","./write-secret-modal-DNQ4_yXQ.js","./field-mNGJv_67.js","./add-database-form-dbmUeWp4.js","./form-BogImzlM.js","./toggle-CPnmDQd7.js","./refresh-ccw-ETV_gv20.js","./request-registry-4Ayu0iWH.js","./_createAggregator-CP8XSJVt.js","./_baseEach-CMG9RfnR.js","./hasIn-BgJKauE7.js","./_baseFlatten-ViL-mfkw.js","./_baseMap-Cw6xPrGQ.js","./sortBy-B2UQBZri.js","./documentation-panel-CuORNaIe.js","./text-search-ClAG-7sc.js","./error-panel-DsYYzWCa.js","./file-explorer-panel-CPZ1gNhJ.js","./icon-32x32-BdJNpplD.js","./types-XAhA2qP3.js","./Inputs-aaNuvYOb.js","./Inputs-De9ocXZ0.css","./links-nvlVnGWE.js","./es-CM14OBji.js","./tree-wsZjF85r.js","./arrow-left-Z4SeogmW.js","./file-plus-2-CCnTSf5c.js","./save-CQAHDr9Q.js","./bundle.esm-Bah18HX6.js","./logs-panel-KRi5a3Yd.js","./clear-button-Dg2Po4rR.js","./outline-panel-CwQOW3hr.js","./floating-outline-BjOLeg9Q.js","./outline-panel-DiqosgsD.css","./packages-panel-bIuFo_yZ.js","./constants-llOk-Qrr.js","./scratchpad-panel-6URLLQyW.js","./loro_wasm_bg-BPmEUFaG.js","./cell-editor-GZrtvFJW.js","./readonly-python-code-DOMir81o.js","./layout-CNCmZJQH.js","./ellipsis-B3_6K4nC.js","./layout-BMz7tbdg.css","./globals-Bcw0dX52.js","./useInterval-DpN2C7T8.js","./circle-check-DQpKgZLQ.js","./ws-CjDdq9XP.js","./cell-editor-CJeTtuDg.css","./kiosk-mode-DW0KYuDo.js","./secrets-panel-ii29X28D.js","./snippets-panel-DQjHx5dH.js","./snippets-panel-BbRzKrpQ.css","./tracing-panel-BNZEX5NU.js","./variable-panel-E1eImuWQ.js","./cache-panel-BDEhA_NV.js","./requests-DsLpX_Nh.js","./database-zap-qZPyZzpI.js","./command-palette-DisdRO5p.js","./useNotebookActions-DhHVJ3q5.js","./types-BAj-eUz8.js","./share-Bur20myQ.js","./activity-CwCrFh0w.js","./youtube-IyU5o7JU.js","./globe-BGR7PZfb.js"])))=>i.map(i=>d[i]);
2
- var x0=Object.defineProperty;var g0=(Ge,Xe,xt)=>Xe in Ge?x0(Ge,Xe,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Ge[Xe]=xt;var Wa=(Ge,Xe,xt)=>g0(Ge,typeof Xe!="symbol"?Xe+"":Xe,xt);import{s as W}from"./chunk-DZLz74EQ.js";import{a as v0,c as Z,d as ur,l as Nt,n as dt,r as b0,s as mr,u as Va}from"./jotai-BTnrNcC1.js";import{t as y0}from"./react-BcIddLXZ.js";import{$ as j0,A as w0,Cr as _0,D as Ft,E as We,F as N0,Ft as sn,G as on,Gn as C0,I as k0,J as S0,Jn as cn,K as Ba,Ln as I0,Mt as Ha,P as Wt,Q as qa,Rt as R0,S as E0,T as z0,Y as D0,Yn as M0,Zn as O0,_t as hr,a as T0,b as A0,c as P0,cr as L0,d as pr,g as F0,h as fr,hr as W0,j as dn,jt as V0,l as B0,ln as qe,lr as $a,n as H0,nr as q0,on as xr,p as Ua,qn as gr,r as $0,rr as U0,rt as K0,s as Ka,sn as Ga,w as G0,wn as Xa,x as un,y as X0,zr as Y0,__tla as J0}from"./cells-ChcCEAp9.js";import{t as Q0}from"./react-dom-D6bRRS5R.js";import{F as Ya,H as Z0,L as e1,z as Ja}from"./zod-U2NFpcFA.js";import{t as H}from"./compiler-runtime-Cr9loedd.js";import"./_Uint8Array-D5Z9rM2X.js";import"./isSymbol-xTSywenE.js";import"./_arrayMap-DQI2GUNb.js";import"./toString-CBnct2wx.js";import"./toNumber-CTOPJrpu.js";import"./toInteger-Bor4StOs.js";import"./isArrayLikeObject-DKyJYtr8.js";import"./_getTag-CVRrQL_Q.js";import"./_baseIsEqual-CVFfFJm2.js";import"./_toKey-16owuO_q.js";import"./memoize-DhF8x4Aa.js";import"./get-BUGWIXZE.js";import"./merge-Dvc5opZF.js";import"./_baseSlice-BWZ0PeaJ.js";import"./upperFirst-CBQfDRod.js";import"./_hasUnicode-3DIK_jNi.js";import"./capitalize-CBqvgOfA.js";import"./_arrayReduce-DV4IVFuG.js";import{t as t1}from"./startCase-RfubwhHM.js";import"./_baseEach-CMG9RfnR.js";import"./hasIn-BgJKauE7.js";import"./_baseProperty-c4IQJQis.js";import"./_createAggregator-CP8XSJVt.js";import"./now-BXqTLlmI.js";import{t as r1}from"./debounce-BUM2losY.js";import"./tooltip-Yli91_uW.js";import"./_baseSet-L2qemYhz.js";import"./add-database-form-dbmUeWp4.js";import"./range-ZclXTdAh.js";import{A as Qa,C as Vt,D as n1,E as Za,O as vr,S as br,_ as l1,a as mn,b as Bt,c as es,d as a1,f as s1,g as ts,h as i1,i as o1,k as rs,l as yr,m as Ht,n as Ct,o as kt,p as hn,r as pn,s as Qe,t as jr,u as fn,v as lt,w as c1,x as wr,y as qt}from"./utilities.esm-B_umFSka.js";import{a as d1,i as u1,r as m1,s as ns}from"./client-DphVxIGq.js";import{d as St,u as Ve}from"./hotkeys-ClCtr3_I.js";import{t as $t}from"./invariant-D5a0EE05.js";import{E as h1,T as p1,_ as f1,b as x1,f as g1,g as v1,n as b1,r as ls,v as xn,x as y1}from"./utils-BpjB6B-Y.js";import{n as j1,t as gn}from"./constants-CEISdYm1.js";import{a as w1,g as It,o as _1}from"./config-e9OVB2bJ.js";import"./api-qc-D7yz9.js";import{n as N1}from"./globals-Bcw0dX52.js";import{t as as}from"./ErrorBoundary-5_63wxX3.js";import{n as C1,t as k1}from"./useEventListener-D1FLsfmf.js";import{t as S1}from"./jsx-runtime-mwDPpfh_.js";import{i as _r,n as I1,t as V}from"./cn-DEUt_IsG.js";import{r as Nr,t as oe}from"./button-Zjtz1syG.js";import{Lt as vn,rt as R1}from"./dist-o3-gJN-A.js";import{s as E1}from"./dist-CzgFQFBf.js";import{W as bn,Y as z1,q as D1,t as yn,y as jn}from"./Output-C8n2C1Pu.js";import{r as M1,u as O1}from"./once-3GsqimLM.js";import"./capabilities-CEL4hxAo.js";import"./createReducer-C6dJ71nW.js";import{r as Ze,t as T1}from"./requests-DD3OWR81.js";import{t as Ne}from"./preload-helper-DImqtvgl.js";import{c as A1,l as P1,o as L1}from"./dist-DdXBxU_X.js";import"./dist-ws1ADWL0.js";import"./dist-BOJjflZo.js";import"./dist-w3K5vvwl.js";import"./dist-DXPWGCwf.js";import"./dist-BGbJQ9FV.js";import"./stex-w1KpyykF.js";import"./Deferred-Mppm0cvJ.js";import"./uuid-4lb_EYpq.js";import"./key-BOd4SjWu.js";import{t as Ut}from"./use-toast-BPMVOfO3.js";import"./main-CCaZmKLi.js";import"./marked.esm-BB_RKOA5.js";import{i as F1,n as W1,r as ss,s as at,t as Rt}from"./connection-CsVOmbVi.js";import"./dist-dCpey1ug.js";import{i as is,t as os}from"./useLifecycle-CxNbfWnk.js";import{r as V1}from"./useTheme-DcMAIbRt.js";import{t as Me}from"./createLucideIcon-CaU6_Jtx.js";import"./activity-CwCrFh0w.js";import{c as B1,l as wn,__tla as H1}from"./layout-CNCmZJQH.js";import{t as q1}from"./arrow-left-Z4SeogmW.js";import{r as $1,t as U1}from"./cell-actions-c22Lh_IO.js";import{a as K1,b as cs,o as G1,r as X1,t as Y1,v as _n}from"./add-cell-with-ai-Bwg9bH8i.js";import{r as J1,t as Q1}from"./CellStatus-C3bK7-wN.js";import{t as ds}from"./square-B9bfYM_2.js";import"./ai-model-dropdown-CCxgO0mJ.js";import{a as Et,f as Z1,l as eh,n as us,p as Nn}from"./state-OU5IKSGK.js";import"./type-DVCC-93H.js";import{i as th,r as rh,t as nh}from"./useBoolean-CG31RE8p.js";import"./table-CmDieCGZ.js";import{t as lh}from"./check-Dc7YCRim.js";import{_ as ut,g as Cn,h as $e,l as kn}from"./select-Di-JjADd.js";import{c as ah}from"./download-DrI1Gw05.js";import{t as Sn}from"./chevron-right-BExEgq1M.js";import{d as sh,l as ih,p as oh}from"./maps-cpHLsM9S.js";import{a as ch,c as dh,i as Ue,n as uh,r as Ke,s as mh,t as hh}from"./useCellActionButton-DFWFWfvs.js";import"./plug-DqB_ZVdt.js";import{t as ms}from"./circle-check-DQpKgZLQ.js";import{a as hs,c as ph,d as fh,i as xh,l as gh,n as vh,o as bh,r as yh,s as jh,t as wh,u as _h}from"./useNotebookActions-DhHVJ3q5.js";import"./circle-plus-UevqeQZu.js";import{u as ps}from"./toDate-CnvLb18a.js";import{t as Nh}from"./circle-x-Bb-EcEyG.js";import{A as fs,C as Ch,D as kh,E as Sh,O as Ih,P as Rh,S as Eh,T as zh,_ as Dh,a as Cr,b as Mh,c as mt,d as Oh,f as Th,g as Ah,h as Ph,k as Lh,m as Fh,n as xs,o as Wh,p as ht,r as pt,s as Vh,t as ft,u as Bh,v as Hh,w as qh,x as $h,y as Uh}from"./dropdown-menu-ChUikXiI.js";import{t as Kh}from"./clipboard-paste-DD5fiO8j.js";import{n as Gh,t as Xh}from"./eye-off-BIDUS-iw.js";import{t as Yh}from"./copy-CDDalEhv.js";import"./database-zap-qZPyZzpI.js";import"./download-kgdScOCd.js";import{t as In}from"./ellipsis-B3_6K4nC.js";import"./types-XAhA2qP3.js";import"./file-video-camera-gcIrLbdD.js";import{_ as Jh,a as Rn,c as Qh,d as Zh,f as gs,g as ep,h as tp,i as rp,l as np,m as Kt,n as vs,o as lp,p as ap,r as sp,s as bs,t as ys,u as ip,v as En,__tla as op}from"./cell-editor-GZrtvFJW.js";import"./file-plus-2-CCnTSf5c.js";import"./file-text-Z92DzmMA.js";import"./file-Cesos4Qp.js";import"./youtube-IyU5o7JU.js";import"./globe-BGR7PZfb.js";import{a as cp,c as dp,d as js,f as up,i as ws,l as mp,m as hp,n as pp,o as fp,p as xp,r as gp,s as vp,t as bp,u as _s}from"./storage-CCZ0kBEN.js";import{t as yp}from"./image-CVwcB3Mo.js";import"./link-DmSljZn4.js";import{n as jp,t as kr}from"./spinner-1oeuzoUk.js";import{t as wp}from"./readonly-python-code-DOMir81o.js";import"./MarimoErrorOutput-BgZFHyAp.js";import{r as Gt}from"./name-cell-input-iv2D5yrk.js";import{t as zn}from"./plus-DWAWtOBJ.js";import{n as _p,r as Xt,t as Np}from"./app-config-button-CYwoclvk.js";import{t as Cp}from"./refresh-ccw-ETV_gv20.js";import"./refresh-cw-DKt4M-wV.js";import{n as kp,t as Sp}from"./square-terminal-Cenbgr6k.js";import"./save-CQAHDr9Q.js";import{J as Ip,ot as Ns,q as Rp,r as Dn,st as Ep}from"./input-DuVApvWu.js";import"./settings-DvMaGwYY.js";import{t as Cs}from"./ConsoleOutput-DWvKgTax.js";import{a as Sr,n as ks}from"./state-Ds5BCDZt.js";import{t as zp}from"./square-function-DncO0xCM.js";import{a as Dp,c as Mp,g as Op,n as Tp,o as Ap,p as Pp,t as Lp,u as Fp}from"./form-wmMKGeHm.js";import"./text-search-ClAG-7sc.js";import{t as Ss}from"./trash-2-D1jEfGpj.js";import"./trash-DpmcvlCC.js";import{i as Mn,o as Wp,v as On}from"./VisuallyHidden-B9I0t9He.js";import"./workflow-BmOhe3mQ.js";import"./badge-CxcKOiwY.js";import{C as Vp,c as Is,g as Bp,h as Hp,l as qp,o as $p,s as Up,x as Yt,y as Kp}from"./Combination-DWHMUa0d.js";import"./dist-1ZdxNBaX.js";import{i as Rs,s as Ir,t as te}from"./tooltip-CerBk_un.js";import{c as Gp,i as Rr,l as Xp,o as Es,r as zs,s as Yp}from"./menu-items-Dm8s6sMr.js";import"./useNonce-CL3DrH5R.js";import"./en-US-Bxm1PGFP.js";import"./isValid-CFczudfT.js";import{a as Jp,r as Qp}from"./mode-47luhzpx.js";import"./alert-dialog-BZHeDuaE.js";import{a as Zp,c as ef,n as tf,r as rf}from"./dialog-CzmSXArA.js";import{I as nf,T as Ds}from"./usePress-C2JVmCUi.js";import"./SSRProvider-CMB_HLxO.js";import"./useDateFormatter-CQ9jB95h.js";import{t as Ms}from"./context-BqH7Jigl.js";import{t as Er}from"./useNumberFormatter-BPGR7t2W.js";import"./shim-FF_l0CN4.js";import{t as Re}from"./useHotkey-Ca6pS8sJ.js";import"./numbers-Dft9TKC1.js";import{n as je,t as lf}from"./useEvent-itkPNnCe.js";import"./useDebounce--Sw2WRQ5.js";import{n as af}from"./ImperativeModal-ExH1h9et.js";import"./share-Bur20myQ.js";import"./strings-DRRWXNT2.js";import{t as zt}from"./error-banner-rdjPobI5.js";import"./vega-loader.browser-Cp1bHVeU.js";import"./precisionRound-BLxyDkD7.js";import"./defaultLocale-DEWTIUVh.js";import"./defaultLocale-B9-NA0ur.js";import{t as sf}from"./copy-SPzF4B1M.js";import"./copy-icon-Ckew1l1_.js";import{t as of}from"./RenderHTML-DockW4fh.js";import"./purify.es-CmG1k0Cr.js";import{a as Os,i as Tn,o as cf,r as df}from"./useRunCells-BmIxLPpn.js";import"./multi-map-COQ6MvP7.js";import"./emotion-is-prop-valid.esm-CjexKXdD.js";import"./extends-DhnjMUSs.js";import"./prop-types-BAY7nW8B.js";import"./objectWithoutPropertiesLoose-CNyONSoo.js";import"./alert-B5fh2kMN.js";import{n as An}from"./useAsyncData-BPaRR7vx.js";import"./dist-I8SxGjN9.js";import{t as uf}from"./kbd-BfBY_QKr.js";import{a as et,i as mf,r as Pn,t as hf}from"./renderShortcut-a-3t8sis.js";import"./label-FIGQlkj5.js";import{i as pf,r as ff,t as xf}from"./popover-BoRNi4dY.js";import{a as gf,i as vf,o as bf,t as yf}from"./cell-link-sTcnY1Ng.js";import"./dist-bbz7Slba.js";import"./dist-Duhp104c.js";import"./dist-CH5tSYom.js";import"./dist-Zii08NWl.js";import"./dist-C27NmZjJ.js";import"./dist-DWvYBldG.js";import"./dist-B309G_89.js";import"./dist-5c-fdIcP.js";import"./dist-COzB_eCZ.js";import"./dist-Z76N9TEr.js";import"./dist-C3eCrV3K.js";import"./dist-3nYEuz31.js";import"./apl-DOdxvsp7.js";import"./asciiarmor-iHsvYBsh.js";import"./asn1-CjQdFpKC.js";import"./brainfuck-DtaPUQOb.js";import"./cobol-B1NZRKFh.js";import"./clike-CEj-3lIu.js";import"./clojure-BoRNIjWi.js";import"./css-BOMeM4Jz.js";import"./cmake-BDPy65SJ.js";import"./coffeescript-C6u-3CUG.js";import"./commonlisp-PnS0RzOo.js";import"./cypher-BNcNWKra.js";import"./python-ChTwa-ru.js";import"./crystal-CmwgoX1x.js";import"./d-BMO4C4Kr.js";import"./diff-pLFk18zx.js";import"./dtd-Cufzm3tN.js";import"./dylan-CohSy5uK.js";import"./ecl-BhEt80nJ.js";import"./eiffel-CKJVLfM7.js";import"./elm-ClkLCCoU.js";import"./erlang-D2TH4-Et.js";import"./simple-mode-CXCwEnyS.js";import"./factor-6NmCZvh-.js";import"./forth-DV7ZwZS0.js";import"./fortran-C9_PuY2l.js";import"./mllike-ZkoLEmrh.js";import"./gas-CGuyKmgF.js";import"./gherkin-BwmPTL6e.js";import"./groovy-DJxiqoVo.js";import"./haskell-DOcPZqkO.js";import"./haxe-BVSsVSdX.js";import"./idl-D5drHePd.js";import"./javascript-rI4fd75W.js";import"./jinja2-BrZGqXAx.js";import"./julia-z0xq3uqV.js";import"./livescript-BbVvVfSY.js";import"./lua-CtEmKXsU.js";import"./mirc-Cyycx3am.js";import"./mathematica-B-SjlQIm.js";import"./modelica-DIZcE54y.js";import"./mumps-Cnu1tNUa.js";import"./mbox-BdnWvTJv.js";import"./nsis-CUebodQn.js";import"./ntriples-2rre165b.js";import"./octave-C7u5CeUZ.js";import"./oz-D5aE2uST.js";import"./pascal-DTApZM3o.js";import"./perl-Ckgh9LJK.js";import"./pig-jAl9a1Kh.js";import"./powershell-C_IKzlOl.js";import"./properties-BdVxDpDJ.js";import"./protobuf-DLu_SUI6.js";import"./pug-fgP-dIQ4.js";import"./puppet-CShRizHW.js";import"./q-D2OTJZH4.js";import"./r-DRqIAgj1.js";import"./rpm-BStFD27m.js";import"./ruby-C37hkPS4.js";import"./sas-CCEIl8BG.js";import"./scheme-B0jflgrk.js";import"./shell-Cq7B0hFW.js";import"./sieve-DS0lS4kt.js";import"./smalltalk-HHM53Uii.js";import"./sparql-BMqtnWzI.js";import"./stylus-Br2gMpMI.js";import"./swift-BJ8qi_zI.js";import"./verilog-MmKxT9bW.js";import"./tcl-D0knbOX7.js";import"./textile-DrRQSuh3.js";import"./toml-C2kDGfZi.js";import"./troff-2dFxqWQa.js";import"./ttcn-Cj4sIofh.js";import"./ttcn-cfg-CBXajWEo.js";import"./turtle-CDdPtp5F.js";import"./webidl-D9f20BkN.js";import"./vb-CtEhAMYU.js";import"./vbscript-B0nzdgzL.js";import"./velocity-DR7TSall.js";import"./vhdl-0jJrpQNA.js";import"./xquery-B0eSGN9q.js";import"./yacas-BS613OH9.js";import"./z80-CJYC52xh.js";import"./mscgen-MISBZbzR.js";import"./dist-BMfw4eeq.js";import"./esm-DXHMyc8g.js";import"./esm-D8ZMWeYP.js";import{t as jf}from"./links-90C38wV6.js";import"./useIframeCapabilities-BLQ5-OdI.js";import{__tla as wf}from"./lazy-tfeVHpGH.js";import"./tabs-CGHt3Blh.js";import"./command-DhuV6_de.js";import"./table-Bj1zHGNd.js";import"./formats-Cit8Tr_y.js";import"./blob-B96v6VlX.js";import{n as Ts,r as _f,t as As}from"./useDeleteCell-BPNrZc-g.js";import{n as zr}from"./add-missing-import-qki9bte9.js";import{n as Nf,t as Cf}from"./icons-HGhpVPVr.js";import"./form-BogImzlM.js";import{a as kf,t as Sf}from"./focus-BrbV9nqw.js";import"./useAddCell-CG6KWlO3.js";import{t as Ln}from"./toggle-CPnmDQd7.js";import"./field-mNGJv_67.js";import"./textarea-DA_SbCD5.js";import{t as Ps}from"./switch-p-zRh0zu.js";import{t as If}from"./floating-outline-BjOLeg9Q.js";import"./dist-CKjmAYFu.js";import"./requests-DsLpX_Nh.js";import"./request-registry-4Ayu0iWH.js";import"./write-secret-modal-DNQ4_yXQ.js";import"./TinyCode-CgC7YtPL.js";import"./multi-icon-C4RX3Man.js";import"./useSplitCell-CDjHCs8K.js";import"./links-nvlVnGWE.js";import{t as st}from"./Inputs-aaNuvYOb.js";import"./constants-llOk-Qrr.js";import{__tla as Rf}from"./loro_wasm_bg-BPmEUFaG.js";import"./ws-CjDdq9XP.js";import{t as Ls}from"./useInterval-DpN2C7T8.js";import{n as Ef,t as Fs}from"./kiosk-mode-DW0KYuDo.js";import"./types-BAj-eUz8.js";import"./runs-CgQqWMmh.js";let Ws,zf=Promise.all([(()=>{try{return J0}catch{}})(),(()=>{try{return H1}catch{}})(),(()=>{try{return op}catch{}})(),(()=>{try{return wf}catch{}})(),(()=>{try{return Rf}catch{}})()]).then(async()=>{var Ge=Me("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),Xe=Me("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),xt=Me("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),Vs=Me("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),Bs=Me("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),Hs=Me("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),qs=Me("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),$s=Me("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),Us=Me("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Fn=Me("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),Ks=Me("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Gs=Me("square-code",[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),Xs=Me("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Ys=Me("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),Js=Me("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),v=W(y0(),1);function Qs(t,e){let{"aria-label":r,"aria-labelledby":n,orientation:a="horizontal"}=t,[s,i]=(0,v.useState)(!1);nf(()=>{var f;i(!!(e.current&&((f=e.current.parentElement)!=null&&f.closest('[role="toolbar"]'))))});let{direction:o}=Ms(),c=o==="rtl"&&a==="horizontal",d=Wp(e),u=f=>{if(f.currentTarget.contains(f.target)){if(a==="horizontal"&&f.key==="ArrowRight"||a==="vertical"&&f.key==="ArrowDown")c?d.focusPrevious():d.focusNext();else if(a==="horizontal"&&f.key==="ArrowLeft"||a==="vertical"&&f.key==="ArrowUp")c?d.focusNext():d.focusPrevious();else if(f.key==="Tab"){f.stopPropagation(),m.current=document.activeElement,f.shiftKey?d.focusFirst():d.focusLast();return}else return;f.stopPropagation(),f.preventDefault()}},m=(0,v.useRef)(null),h=f=>{!f.currentTarget.contains(f.relatedTarget)&&!m.current&&(m.current=f.target)},p=f=>{var x;if(m.current&&!f.currentTarget.contains(f.relatedTarget)&&((x=e.current)!=null&&x.contains(f.target))){var g;(g=m.current)==null||g.focus(),m.current=null}};return{toolbarProps:{...Ns(t,{labelable:!0}),role:s?"group":"toolbar","aria-orientation":a,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:s?void 0:u,onFocusCapture:s?void 0:p,onBlurCapture:s?void 0:h}}}var Zs=(0,v.createContext)({}),ei=(0,v.forwardRef)(function(t,e){[t,e]=Rp(t,e,Zs);let{toolbarProps:r}=Qs(t,e),n=Ip({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),a=Ns(t,{global:!0});return delete a.id,v.createElement("div",{...Ds(a,n,r),ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},n.children)}),ti=W(H(),1),l=W(S1(),1);const ri=t=>{let e=(0,ti.c)(33),{disabled:r,tooltip:n}=t,a=r===void 0?!1:r,s=n===void 0?"Actions":n,i=wh(),{locale:o}=Ms(),c;e[0]===s?c=e[1]:(c=(0,l.jsx)("div",{children:s}),e[0]=s,e[1]=c);let d;e[2]===a?d=e[3]:(d=!a&&(0,l.jsxs)("div",{className:"text-xs text-muted-foreground font-medium pt-1 -mt-2 border-t border-border flex items-center gap-2",children:[(0,l.jsx)("span",{children:"Open command palette"}),et("global.commandPalette",!1)]}),e[2]=a,e[3]=d);let u;e[4]!==c||e[5]!==d?(u=(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[c,d]}),e[4]=c,e[5]=d,e[6]=u):u=e[6];let m=u,h=a?"disabled":"hint-green",p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(hp,{strokeWidth:1.8}),e[7]=p):p=e[7];let f;e[8]===m?f=e[9]:(f=(0,l.jsx)(te,{content:m,children:p}),e[8]=m,e[9]=f);let g;e[10]!==a||e[11]!==h||e[12]!==f?(g=(0,l.jsx)(st,{"aria-label":"Config",shape:"circle",size:"small",className:"h-[27px] w-[27px]","data-testid":"notebook-menu-dropdown",disabled:a,color:h,children:f}),e[10]=a,e[11]=h,e[12]=f,e[13]=g):g=e[13];let x=g,b=ni,y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=z=>{let E=(0,l.jsx)(Cr,{variant:z.variant,disabled:z.disabled,onSelect:O=>z.handle(O),"data-testid":`notebook-menu-dropdown-${z.label}`,children:b(z)},z.label);return z.tooltip?(0,l.jsx)(te,{content:z.tooltip,side:"left",delayDuration:100,children:(0,l.jsx)("span",{children:E})},z.label):E},e[14]=y):y=e[14];let j=y,w;e[15]!==x||e[16]!==a?(w=(0,l.jsx)(ht,{asChild:!0,disabled:a,children:x}),e[15]=x,e[16]=a,e[17]=w):w=e[17];let _;if(e[18]!==i){let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=E=>E.hidden?null:E.dropdown?(0,l.jsxs)(Bh,{children:[(0,l.jsx)(Th,{"data-testid":`notebook-menu-dropdown-${E.label}`,children:b(E)}),(0,l.jsx)(Vh,{children:(0,l.jsx)(Oh,{children:E.dropdown.map(O=>(0,l.jsxs)(v.Fragment,{children:[O.divider&&(0,l.jsx)(mt,{}),j(O)]},O.label))})})]},E.label):(0,l.jsxs)(v.Fragment,{children:[E.divider&&(0,l.jsx)(mt,{}),j(E)]},E.label),e[20]=z):z=e[20],_=i.map(z),e[18]=i,e[19]=_}else _=e[19];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=(0,l.jsx)(mt,{}),e[21]=N):N=e[21];let C;e[22]===o?C=e[23]:(C=(0,l.jsxs)("span",{children:["Locale: ",o]}),e[22]=o,e[23]=C);let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=(0,l.jsxs)("span",{children:["Version: ",N1()]}),e[24]=I):I=e[24];let R;e[25]===C?R=e[26]:(R=(0,l.jsxs)("div",{className:"flex-1 px-2 text-xs text-muted-foreground flex flex-col gap-1",children:[C,I]}),e[25]=C,e[26]=R);let k;e[27]!==_||e[28]!==R?(k=(0,l.jsxs)(pt,{align:"end",className:"no-print w-[240px]",children:[_,N,R]}),e[27]=_,e[28]=R,e[29]=k):k=e[29];let S;return e[30]!==w||e[31]!==k?(S=(0,l.jsxs)(ft,{modal:!1,children:[w,k]}),e[30]=w,e[31]=k,e[32]=S):S=e[32],S};function ni(t){return(0,l.jsxs)(l.Fragment,{children:[t.icon&&(0,l.jsx)("span",{className:"flex-0 mr-2",children:t.icon}),(0,l.jsx)("span",{className:"flex-1",children:t.labelElement||t.label}),t.hotkey&&(0,l.jsx)(Pn,{shortcut:t.hotkey,className:"ml-4"}),t.rightElement]})}function Jt(t){return()=>{let e=dt.get(Kt),r=new E1({search:e.findText,caseSensitive:e.caseSensitive,regexp:e.regexp,replace:e.replaceText,wholeWord:e.wholeWord});return r.valid?t({query:ep(r).create(),search:r}):!1}}var Wn=t=>Jt(({query:e})=>{let r=pr(),n=dt.get(Kt).currentView||{view:r[0],range:{from:0,to:0}},a=n.range.to;t==="prev"&&(r.reverse(),a=n.range.from);let s=r.indexOf(n.view);s<0&&(s=0);let i=[...r,...r].slice(s);for(let o of i){let c=t==="next"?e.nextMatch(o.state,0,a??0):e.prevMatch(o.state,a??o.state.doc.length,o.state.doc.length);if(!c){a=null,o.dispatch({selection:vn.single(0)});continue}let d=vn.single(c.from,c.to);return o.dispatch({selection:d,effects:[R1.scrollIntoView(d.main,{y:"center"})],userEvent:"select.search"}),dt.set(Kt,{type:"setCurrentView",view:o,range:{from:c.from,to:c.to}}),c}return!1});const Dr=Wn("next"),Vn=Wn("prev"),li=Jt(({query:t})=>{var n;let e=pr(),r=[];for(let a of e){if(a.state.readOnly)continue;let s=(n=t.matchAll(a.state,1e9))==null?void 0:n.map(o=>{let{from:c,to:d}=o;return{from:c,to:d,insert:t.getReplacement(o)}});if(!s||s.length===0)continue;let i=a.state.doc.toString();r.push(()=>{W0(a,i,{userEvent:"input.replace.all"})}),a.dispatch({changes:s,userEvent:"input.replace.all"})}return()=>{for(let a of r)a()}}),ai=Jt(({query:t})=>{let e=pr(),r=dt.get(Kt).currentView||{view:e[0],range:{from:0,to:0}},n=r.range.from,a=e.indexOf(r.view);a<0&&(a=0);let s=[...e,...e].slice(a);for(let i of s){let o=t.nextMatch(i.state,0,n??0);if(!o){n=null,i.dispatch({selection:vn.single(0)});continue}let c=i.state.toText(t.getReplacement(o));return i.dispatch({changes:[{from:o.from,to:o.to,insert:c}],userEvent:"input.replace"}),Dr()}return!1}),si=Jt(({query:t})=>{let e=pr(),r=0,n=new Map;for(let a of e){let s=t.matchAll(a.state,1e9)||[];for(let i of s){let{from:o,to:c}=i,d=n.get(a)||new Map;d.set(`${o}:${c}`,r++),n.set(a,d)}}return{count:r,position:n}});var ii=W(H(),1);const oi=()=>{var re;let t=(0,ii.c)(102),[e,r]=(0,v.useState)(!1),[n,a]=mr(Kt),[s,i]=(0,v.useState)(),o=(0,v.useRef)(null),c=Z(g1),d;t[0]!==e||t[1]!==n.isOpen?(d=()=>e&&n.isOpen?!1:tp(),t[0]=e,t[1]=n.isOpen,t[2]=d):d=t[2],Re("cell.findAndReplace",d);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{let U=si();i(U===!1?void 0:U)},t[3]=u):u=t[3];let m=u,h,p;t[4]===n.isOpen?(h=t[5],p=t[6]):(h=()=>{n.isOpen&&o.current&&(o.current.focus(),o.current.select())},p=[n.isOpen],t[4]=n.isOpen,t[5]=h,t[6]=p),(0,v.useEffect)(h,p);let f;t[7]!==n.findText||t[8]!==n.isOpen?(f=()=>{if(!n.isOpen){gs();return}if(n.findText===""){i(void 0),gs();return}m(),ap()},t[7]=n.findText,t[8]=n.isOpen,t[9]=f):f=t[9];let g;if(t[10]!==n.caseSensitive||t[11]!==n.findText||t[12]!==n.isOpen||t[13]!==n.regexp||t[14]!==n.wholeWord?(g=[n.findText,n.isOpen,n.caseSensitive,n.regexp,n.wholeWord],t[10]=n.caseSensitive,t[11]=n.findText,t[12]=n.isOpen,t[13]=n.regexp,t[14]=n.wholeWord,t[15]=g):g=t[15],(0,v.useEffect)(f,g),!n.isOpen)return null;let x=n.currentView,b;t[16]!==s||t[17]!==x?(b=x&&s?(re=s.position.get(x.view))==null?void 0:re.get(`${x.range.from}:${x.range.to}`):void 0,t[16]=s,t[17]=x,t[18]=b):b=t[18];let y=b,j;t[19]===Symbol.for("react.memo_cache_sentinel")?(j=()=>r(!0),t[19]=j):j=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=()=>r(!1),t[20]=w):w=t[20];let _;t[21]===a?_=t[22]:(_=U=>{U.key==="Escape"&&a({type:"setIsOpen",isOpen:!1})},t[21]=a,t[22]=_);let N;t[23]===a?N=t[24]:(N=()=>a({type:"setIsOpen",isOpen:!1}),t[23]=a,t[24]=N);let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,l.jsx)($e,{className:"w-4 h-4"}),t[25]=C):C=t[25];let I;t[26]===N?I=t[27]:(I=(0,l.jsx)("div",{className:"absolute top-0 right-0",children:(0,l.jsx)(oe,{"data-testid":"close-find-replace-button",onClick:N,size:"xs",variant:"text",children:C})}),t[26]=N,t[27]=I);let R;t[28]===a?R=t[29]:(R=U=>{a({type:"setFind",find:U.target.value})},t[28]=a,t[29]=R);let k;t[30]!==n.findText||t[31]!==R?(k=(0,l.jsx)(Dn,{ref:o,"data-testid":"find-input",value:n.findText,autoFocus:!0,className:"mr-2 mb-0",placeholder:"Find",onKeyDown:di,onChange:R}),t[30]=n.findText,t[31]=R,t[32]=k):k=t[32];let S;t[33]===a?S=t[34]:(S=U=>{a({type:"setReplace",replace:U.target.value})},t[33]=a,t[34]=S);let z;t[35]!==n.replaceText||t[36]!==S?(z=(0,l.jsx)(Dn,{"data-testid":"replace-input",value:n.replaceText,placeholder:"Replace",onChange:S}),t[35]=n.replaceText,t[36]=S,t[37]=z):z=t[37];let E;t[38]!==k||t[39]!==z?(E=(0,l.jsxs)("div",{className:"flex flex-col flex-2 gap-2 w-[55%]",children:[k,z]}),t[38]=k,t[39]=z,t[40]=E):E=t[40];let O=n.caseSensitive?"on":"off",P;t[41]===a?P=t[42]:(P=U=>a({type:"setCaseSensitive",caseSensitive:U}),t[41]=a,t[42]=P);let D;t[43]===Symbol.for("react.memo_cache_sentinel")?(D=(0,l.jsx)(th,{className:"w-4 h-4"}),t[43]=D):D=t[43];let M;t[44]!==n.caseSensitive||t[45]!==O||t[46]!==P?(M=(0,l.jsx)(te,{content:"Case Sensitive",children:(0,l.jsx)(Ln,{size:"sm",pressed:n.caseSensitive,"data-state":O,onPressedChange:P,children:D})}),t[44]=n.caseSensitive,t[45]=O,t[46]=P,t[47]=M):M=t[47];let T=n.wholeWord?"on":"off",L;t[48]===a?L=t[49]:(L=U=>a({type:"setWholeWord",wholeWord:U}),t[48]=a,t[49]=L);let A;t[50]===Symbol.for("react.memo_cache_sentinel")?(A=(0,l.jsx)(Js,{className:"w-4 h-4"}),t[50]=A):A=t[50];let q;t[51]!==n.wholeWord||t[52]!==T||t[53]!==L?(q=(0,l.jsx)(te,{content:"Match Whole Word",children:(0,l.jsx)(Ln,{size:"sm",pressed:n.wholeWord,"data-state":T,onPressedChange:L,children:A})}),t[51]=n.wholeWord,t[52]=T,t[53]=L,t[54]=q):q=t[54];let X=n.regexp?"on":"off",K;t[55]===a?K=t[56]:(K=U=>a({type:"setRegex",regexp:U}),t[55]=a,t[56]=K);let $;t[57]===Symbol.for("react.memo_cache_sentinel")?($=(0,l.jsx)(Ks,{className:"w-4 h-4"}),t[57]=$):$=t[57];let Q;t[58]!==n.regexp||t[59]!==X||t[60]!==K?(Q=(0,l.jsx)(te,{content:"Use Regular Expression",children:(0,l.jsx)(Ln,{size:"sm",pressed:n.regexp,"data-state":X,onPressedChange:K,children:$})}),t[58]=n.regexp,t[59]=X,t[60]=K,t[61]=Q):Q=t[61];let B;t[62]!==M||t[63]!==q||t[64]!==Q?(B=(0,l.jsxs)("div",{className:"flex items-center gap-[2px]",children:[M,q,Q]}),t[62]=M,t[63]=q,t[64]=Q,t[65]=B):B=t[65];let le;t[66]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{ai()&&m()},t[66]=le):le=t[66];let F=n.findText==="",G;t[67]===F?G=t[68]:(G=(0,l.jsx)(oe,{"data-testid":"replace-next-button",size:"xs",variant:"outline",className:"h-6 text-xs",onClick:le,disabled:F,children:"Replace Next"}),t[67]=F,t[68]=G);let Y;t[69]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{let U=li();if(!U)return;m();let{dismiss:Ye}=Ut({title:"Replaced all occurrences",action:(0,l.jsx)(_f,{"data-testid":"undo-replace-all-button",onClick:()=>{U(),Be()}})}),Be=Ye},t[69]=Y):Y=t[69];let J=n.findText==="",ee;t[70]===J?ee=t[71]:(ee=(0,l.jsx)(oe,{"data-testid":"replace-all-button",size:"xs",variant:"outline",className:"h-6 text-xs",onClick:Y,disabled:J,children:"Replace All"}),t[70]=J,t[71]=ee);let se;t[72]!==G||t[73]!==ee?(se=(0,l.jsxs)("div",{className:"flex items-center gap-[2px]",children:[G,ee]}),t[72]=G,t[73]=ee,t[74]=se):se=t[74];let ae;t[75]!==B||t[76]!==se?(ae=(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[B,se]}),t[75]=B,t[76]=se,t[77]=ae):ae=t[77];let de;t[78]!==E||t[79]!==ae?(de=(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[E,ae]}),t[78]=E,t[79]=ae,t[80]=de):de=t[80];let ce;t[81]===Symbol.for("react.memo_cache_sentinel")?(ce=(0,l.jsx)(te,{content:"Find Previous",children:(0,l.jsx)(oe,{"data-testid":"find-prev-button",size:"xs",variant:"secondary",onClick:ui,children:(0,l.jsx)(q1,{className:"w-4 h-4"})})}),t[81]=ce):ce=t[81];let ve;t[82]===Symbol.for("react.memo_cache_sentinel")?(ve=(0,l.jsx)(te,{content:"Find Next",children:(0,l.jsx)(oe,{"data-testid":"find-next-button",size:"xs",variant:"secondary",onClick:mi,children:(0,l.jsx)($1,{className:"w-4 h-4"})})}),t[82]=ve):ve=t[82];let me;t[83]!==y||t[84]!==s?(me=s!=null&&y==null&&(0,l.jsxs)("span",{className:"text-sm",children:[s.count," matches"]}),t[83]=y,t[84]=s,t[85]=me):me=t[85];let pe;t[86]!==y||t[87]!==s?(pe=s!=null&&y!=null&&(0,l.jsxs)("span",{className:"text-sm",children:[y+1," of ",s.count]}),t[86]=y,t[87]=s,t[88]=pe):pe=t[88];let ie;t[89]!==me||t[90]!==pe?(ie=(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[ce,ve,me,pe]}),t[89]=me,t[90]=pe,t[91]=ie):ie=t[91];let ue;t[92]===c?ue=t[93]:(ue=c.getHotkey("cell.findAndReplace"),t[92]=c,t[93]=ue);let he;t[94]===ue.key?he=t[95]:(he=(0,l.jsxs)("div",{className:"text-xs text-muted-foreground flex gap-1 mt-2",children:["Press"," ",(0,l.jsx)(hf,{shortcut:ue.key})," ","again to open the native browser search."]}),t[94]=ue.key,t[95]=he);let ye;return t[96]!==I||t[97]!==de||t[98]!==ie||t[99]!==he||t[100]!==_?(ye=(0,l.jsx)(Mn,{restoreFocus:!0,autoFocus:!0,children:(0,l.jsxs)("div",{onFocus:j,onClick:ci,onBlur:w,className:"fixed top-0 right-0 w-[500px] flex flex-col bg-(--sage-1) p-4 z-50 mt-2 mr-3 rounded-md shadow-lg border gap-2 print:hidden",onKeyDown:_,children:[I,de,ie,he]})}),t[96]=I,t[97]=de,t[98]=ie,t[99]=he,t[100]=_,t[101]=ye):ye=t[101],ye};function ci(t){t.stopPropagation(),t.preventDefault()}function di(t){t.key==="Enter"&&(t.shiftKey?Vn():Dr())}function ui(){return Vn()}function mi(){return Dr()}var hi=W(H(),1),pi=200;function Bn(t){let e=(0,hi.c)(3),[r,n]=(0,v.useState)(!1),a,s;return e[0]===t?(a=e[1],s=e[2]):(a=()=>{if(!t)return;n(!1);let i=setTimeout(()=>{n(!0)},pi);return()=>clearTimeout(i)},s=[t],e[0]=t,e[1]=a,e[2]=s),(0,v.useEffect)(a,s),t&&r}var fi=W(H(),1);const xi=()=>{let t=(0,fi.c)(6),e=Nt(xh),r;t[0]===e?r=t[1]:(r=()=>e(gi),t[0]=e,t[1]=r);let n=r,a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=et("global.commandPalette"),t[2]=a):a=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(_h,{strokeWidth:1.5,size:18}),t[3]=s):s=t[3];let i;return t[4]===n?i=t[5]:(i=(0,l.jsx)(te,{content:a,children:(0,l.jsx)(st,{"data-testid":"command-palette-button",onClick:n,shape:"rectangle",color:"hint-green",children:s})}),t[4]=n,t[5]=i),i};function gi(t){return!t}var Mr=W(H(),1);const vi=t=>{let e=(0,Mr.c)(47),{presenting:r,onTogglePresenting:n,onInterrupt:a,onRun:s,connectionState:i,running:o,appConfig:c}=t,d=c.width,u=Z($0),m=Z(A0),{undoDeleteCell:h}=We(),p=i===at.CLOSED,f=null;if(!p&&u){let L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=(0,l.jsx)(jh,{size:16,strokeWidth:1.5}),e[0]=L):L=e[0];let A;e[1]===h?A=e[2]:(A=(0,l.jsx)(te,{content:"Undo cell deletion",children:(0,l.jsx)(st,{"data-testid":"undo-delete-cell",size:"medium",color:"hint-green",shape:"circle",onClick:h,children:L})}),e[1]=h,e[2]=A),f=A}let g;e[3]===i?g=e[4]:(g=qe(i),e[3]=i,e[4]=g);let x=g,b;e[5]!==i||e[6]!==x?(b=x?xr(i):void 0,e[5]=i,e[6]=x,e[7]=b):b=e[7];let y=b,j;e[8]===r?j=e[9]:(j=!r&&(0,l.jsx)(oi,{}),e[8]=r,e[9]=j);let w;e[10]!==p||e[11]!==y||e[12]!==x||e[13]!==r?(w=!p&&(0,l.jsxs)("div",{className:ji,children:[r&&(0,l.jsx)(yh,{}),(0,l.jsx)(ri,{disabled:x,tooltip:y}),(0,l.jsx)(Np,{disabled:x,tooltip:y}),(0,l.jsx)(_p,{description:"This will terminate the Python kernel. You'll lose all data that's in memory.",disabled:x,tooltip:y})]}),e[10]=p,e[11]=y,e[12]=x,e[13]=r,e[14]=w):w=e[14];let _=d==="compact"&&"xl:flex-row items-end",N;e[15]===_?N=e[16]:(N=V(wi,_),e[15]=_,e[16]=N);let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=(0,l.jsx)(Fs,{children:(0,l.jsx)(Qh,{kioskMode:!1})}),e[17]=C):C=e[17];let I;e[18]===Symbol.for("react.memo_cache_sentinel")?(I=et("global.hideCode"),e[18]=I):I=e[18];let R;e[19]===r?R=e[20]:(R=r?(0,l.jsx)(Op,{strokeWidth:1.5,size:18}):(0,l.jsx)(ph,{strokeWidth:1.5,size:18}),e[19]=r,e[20]=R);let k;e[21]!==n||e[22]!==R?(k=(0,l.jsx)(te,{content:I,children:(0,l.jsx)(st,{"data-testid":"hide-code-button",id:"preview-button",shape:"rectangle",color:"hint-green",onClick:n,children:R})}),e[21]=n,e[22]=R,e[23]=k):k=e[23];let S,z,E;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=(0,l.jsx)(xi,{}),z=(0,l.jsx)(eh,{}),E=(0,l.jsx)("div",{}),e[24]=S,e[25]=z,e[26]=E):(S=e[24],z=e[25],E=e[26]);let O;e[27]!==p||e[28]!==a||e[29]!==o?(O=!p&&(0,l.jsx)(yi,{running:o,onInterrupt:a}),e[27]=p,e[28]=a,e[29]=o,e[30]=O):O=e[30];let P;e[31]!==p||e[32]!==m||e[33]!==s?(P=!p&&(0,l.jsx)(bi,{needsRun:m,onRun:s}),e[31]=p,e[32]=m,e[33]=s,e[34]=P):P=e[34];let D;e[35]!==O||e[36]!==P||e[37]!==f?(D=(0,l.jsx)(Fs,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[f,O,P]})}),e[35]=O,e[36]=P,e[37]=f,e[38]=D):D=e[38];let M;e[39]!==k||e[40]!==D||e[41]!==N?(M=(0,l.jsxs)("div",{className:N,children:[C,k,S,z,E,D]}),e[39]=k,e[40]=D,e[41]=N,e[42]=M):M=e[42];let T;return e[43]!==M||e[44]!==j||e[45]!==w?(T=(0,l.jsxs)(l.Fragment,{children:[j,w,M]}),e[43]=M,e[44]=j,e[45]=w,e[46]=T):T=e[46],T};var bi=t=>{let e=(0,Mr.c)(8),{needsRun:r,onRun:n}=t,a=Z(ss);if(r){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=et("global.runStale"),e[0]=c):c=e[0];let d=a?n:void 0,u=!a,m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(Gt,{strokeWidth:1.5,size:16}),e[1]=m):m=e[1];let h;return e[2]!==d||e[3]!==u?(h=(0,l.jsx)(te,{content:c,children:(0,l.jsx)(st,{"data-testid":"run-button",size:"medium",color:"yellow",shape:"circle",onClick:d,disabled:u,children:m})}),e[2]=d,e[3]=u,e[4]=h):h=e[4],h}let s=!a,i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(Gt,{strokeWidth:1.5,size:16}),e[5]=i):i=e[5];let o;return e[6]===s?o=e[7]:(o=(0,l.jsx)(te,{content:"Nothing to run",children:(0,l.jsx)(st,{"data-testid":"run-button",className:"inactive-button",color:"disabled",size:"medium",shape:"circle",disabled:s,children:i})}),e[6]=s,e[7]=o),o},yi=t=>{let e=(0,Mr.c)(8),{running:r,onInterrupt:n}=t,a=Bn(r),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=et("global.interrupt"),e[0]=s):s=e[0];let i=!a&&"inactive-button active:shadow-xs-solid",o;e[1]===i?o=e[2]:(o=V(i),e[1]=i,e[2]=o);let c=a?"yellow":"disabled",d=a?n:St.NOOP,u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(ds,{strokeWidth:1.5,size:16}),e[3]=u):u=e[3];let m;return e[4]!==o||e[5]!==c||e[6]!==d?(m=(0,l.jsx)(te,{content:s,children:(0,l.jsx)(st,{className:o,"data-testid":"interrupt-button",size:"medium",color:c,shape:"circle",onClick:d,children:u})}),e[4]=o,e[5]=c,e[6]=d,e[7]=m):m=e[7],m},ji="absolute top-3 right-5 m-0 flex items-center gap-2 min-h-[28px] no-print pointer-events-auto z-30 print:hidden",wi="absolute bottom-5 right-5 flex flex-col gap-2 items-center no-print pointer-events-auto z-30 print:hidden",_i=W(H(),1);const Ni=t=>{let e=(0,_i.c)(7),{filename:r}=t,n=bf(),a;e[0]===r?a=e[1]:(a=r?Xa.basename(r):"untitled marimo notebook",e[0]=r,e[1]=a);let s=r===null?"missing-filename":"filename",i;return e[2]!==r||e[3]!==n||e[4]!==a||e[5]!==s?(i=(0,l.jsx)(ip,{placeholderText:a,initialValue:r,onNameChange:n,flexibleWidth:!0,resetOnBlur:!0,"data-testid":"filename-input",className:s}),e[2]=r,e[3]=n,e[4]=a,e[5]=s,e[6]=i):i=e[6],i};var gt=W(H(),1),Ci=t=>{let e=(0,gt.c)(14),{actions:r,cellIds:n,disabled:a}=t,s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(In,{size:13,strokeWidth:1.5}),e[0]=s):s=e[0];let i;e[1]===a?i=e[2]:(i=(0,l.jsx)(ht,{asChild:!0,children:(0,l.jsx)(oe,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",title:"More actions",disabled:a,children:s})}),e[1]=a,e[2]=i);let o;if(e[3]!==r||e[4]!==n){let u;e[6]!==r.length||e[7]!==n?(u=(m,h)=>{let p=m.map(f=>(0,l.jsx)(Cr,{onSelect:()=>f.handle(n),className:"flex items-center gap-2",children:(0,l.jsxs)("div",{className:"flex items-center flex-1",children:[f.icon&&(0,l.jsx)("div",{className:"mr-2 w-5 text-muted-foreground",children:f.icon}),(0,l.jsx)("div",{className:"flex-1",children:f.label}),f.hotkey&&(0,l.jsx)(Pn,{shortcut:f.hotkey,className:"ml-4"})]})},f.label));return(0,l.jsxs)(v.Fragment,{children:[p,h<r.length-1&&(0,l.jsx)(mt,{})]},h)},e[6]=r.length,e[7]=n,e[8]=u):u=e[8],o=r.flatMap(u),e[3]=r,e[4]=n,e[5]=o}else o=e[5];let c;e[9]===o?c=e[10]:(c=(0,l.jsx)(pt,{align:"start","data-keep-cell-selection":!0,children:o}),e[9]=o,e[10]=c);let d;return e[11]!==i||e[12]!==c?(d=(0,l.jsxs)(ft,{children:[i,c]}),e[11]=i,e[12]=c,e[13]=d):d=e[13],d};function ki(t){let e=(0,gt.c)(31),{updateCellConfig:r,moveCell:n,clearCellOutput:a,sendToTop:s,sendToBottom:i}=We(),o=Ts(),c=Z(X0),d=Rn(),u=Os(),m=En(),h=Z(y1),{saveCellConfig:p}=Ze(),f=t.length,g=!c||f<t.length,x;e[0]!==o||e[1]!==m||e[2]!==d||e[3]!==h?(x=D=>{if(m.idle&&h.keymap.destructive_delete){m.submit(D);return}o({cellIds:D}),m.clear(),d.clear()},e[0]=o,e[1]=m,e[2]=d,e[3]=h,e[4]=x):x=e[4];let b=je(x),y;e[5]===n?y=e[6]:(y=(D,M)=>{if(M==="down"){let T=D[D.length-1];if(dt.get(un).cellIds.findWithId(T).last()===T)return}if(M==="up"){let T=D[0];if(dt.get(un).cellIds.findWithId(T).first()===T)return}(M==="up"?D:[...D].reverse()).forEach(T=>{n({cellId:T,before:M==="up"})})},e[5]=n,e[6]=y);let j=je(y),w;e[7]===s?w=e[8]:(w=D=>{[...D].reverse().forEach(M=>{s({cellId:M})})},e[7]=s,e[8]=w);let _=je(w),N;e[9]===i?N=e[10]:(N=D=>{D.forEach(M=>{i({cellId:M})})},e[9]=i,e[10]=N);let C=je(N),I=je(Mi),R;e[11]===a?R=e[12]:(R=D=>{D.forEach(M=>{a({cellId:M})})},e[11]=a,e[12]=R);let k=je(R),S;e[13]!==p||e[14]!==r?(S=async(D,M,T)=>{let L={};D.forEach(A=>{L[A]={[M]:T}}),await p({configs:L}),D.forEach(A=>{r({cellId:A,config:L[A]})})},e[13]=p,e[14]=r,e[15]=S):S=e[15];let z=je(S),E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=(0,l.jsx)(Gt,{size:13,strokeWidth:1.5}),e[16]=E):E=e[16];let O;e[17]===u?O=e[18]:(O=D=>u(D),e[17]=u,e[18]=O);let P;if(e[19]!==g||e[20]!==k||e[21]!==b||e[22]!==I||e[23]!==j||e[24]!==C||e[25]!==_||e[26]!==O||e[27]!==z){let D=[[{icon:E,label:"Run cells",handle:O,hotkey:"cell.run"}],[{icon:(0,l.jsx)(Cn,{size:13,strokeWidth:1.5}),label:"Move up",handle:A=>j(A,"up"),hotkey:"cell.moveUp"},{icon:(0,l.jsx)(ut,{size:13,strokeWidth:1.5}),label:"Move down",handle:A=>j(A,"down"),hotkey:"cell.moveDown"}],[{icon:(0,l.jsx)(Ss,{size:13,strokeWidth:1.5}),label:"Delete cells",variant:"danger",hidden:!g,handle:b}]],M=[[{icon:(0,l.jsx)(Gh,{size:13,strokeWidth:1.5}),label:"Format cells",handle:I,hotkey:"cell.format"},{icon:(0,l.jsx)(Nh,{size:13,strokeWidth:1.5}),label:"Clear outputs",handle:k}],[{icon:(0,l.jsx)(Xh,{size:13,strokeWidth:1.5}),label:"Hide code",handle:A=>z(A,"hide_code",!0),hotkey:"cell.hideCode"},{icon:(0,l.jsx)(V0,{size:13,strokeWidth:1.5}),label:"Show code",handle:A=>z(A,"hide_code",!1),hotkey:"cell.hideCode"}],[{icon:(0,l.jsx)(Cn,{size:13,strokeWidth:1.5}),label:"Move up",handle:A=>j(A,"up"),hotkey:"cell.moveUp"},{icon:(0,l.jsx)(ut,{size:13,strokeWidth:1.5}),label:"Move down",handle:A=>j(A,"down"),hotkey:"cell.moveDown"},{icon:(0,l.jsx)(mh,{size:13,strokeWidth:1.5}),label:"Send to top",handle:_,hotkey:"cell.sendToTop"},{icon:(0,l.jsx)(dh,{size:13,strokeWidth:1.5}),label:"Send to bottom",handle:C,hotkey:"cell.sendToBottom"}],[{icon:(0,l.jsx)(Ue,{size:13,strokeWidth:1.5}),label:"Disable cells",handle:A=>z(A,"disabled",!0)},{icon:(0,l.jsx)(Ke,{size:13,strokeWidth:1.5}),label:"Enable cells",handle:A=>z(A,"disabled",!1)}]],T=D.map(zi),L;e[29]===T?L=e[30]:(L=T.filter(Ei),e[29]=T,e[30]=L),P={actions:L,moreActions:M.map(Ii).filter(Si)},e[19]=g,e[20]=k,e[21]=b,e[22]=I,e[23]=j,e[24]=C,e[25]=_,e[26]=O,e[27]=z,e[28]=P}else P=e[28];return P}function Si(t){return t.length>0}function Ii(t){return t.filter(Ri)}function Ri(t){return!t.hidden}function Ei(t){return t.length>0}function zi(t){return t.filter(Di)}function Di(t){return!t.hidden}function Mi(t){let e={};t.forEach(r=>{let n=Ua(r);n&&(e[r]=n)}),U0(e)}const Oi=()=>{let t=(0,gt.c)(4),e=lp(),r;t[0]===e.selected?r=t[1]:(r=[...e.selected],t[0]=e.selected,t[1]=r);let n=r;if(n.length<2)return null;let a;return t[2]===n?a=t[3]:(a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Ai,{cellIds:n}),(0,l.jsx)(Ti,{cellIds:n})]}),t[2]=n,t[3]=a),a};var Or=()=>{let t=(0,gt.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"h-4 w-px bg-border mx-1"}),t[0]=e):e=t[0],e},Ti=t=>{let e=(0,gt.c)(12),{cellIds:r}=t,n=En(),a=Ts(),s=Rn();if(!n.shouldConfirmDelete)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(On,{className:"w-4 h-4 text-(--amber-11) mt-0.5 shrink-0"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsxs)("div",{className:"font-code text-sm text-[0.84375rem]",children:[(0,l.jsx)("p",{className:"text-(--amber-11) font-medium",children:"Some cells in selection may contain expensive operations."}),(0,l.jsx)("p",{className:"text-(--amber-11) mt-1",children:"Are you sure you want to delete?"})]}),e[1]=o):o=e[1];let c;e[2]===n?c=e[3]:(c=(0,l.jsx)(oe,{size:"xs",variant:"ghost",onClick:()=>n.clear(),className:"text-(--amber-11) hover:bg-(--amber-4) hover:text-(--amber-11)",children:"Cancel"}),e[2]=n,e[3]=c);let d;e[4]!==r||e[5]!==a||e[6]!==n||e[7]!==s?(d=(0,l.jsx)(oe,{size:"xs",variant:"secondary",onClick:()=>{a({cellIds:r}),n.clear(),s.clear()},className:"bg-(--amber-11) hover:bg-(--amber-12) text-white border-(--amber-11)",children:"Delete"}),e[4]=r,e[5]=a,e[6]=n,e[7]=s,e[8]=d):d=e[8];let u;return e[9]!==c||e[10]!==d?(u=(0,l.jsx)("div",{className:"absolute top-12 justify-center flex w-full left-0 right-0 z-50","data-keep-cell-selection":!0,children:(0,l.jsx)("div",{className:"mx-20",children:(0,l.jsx)("div",{className:"bg-(--amber-2) border border-(--amber-6) rounded-lg shadow-lg mt-14 px-4 py-3 animate-in slide-in-from-top-2 duration-200",children:(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[i,(0,l.jsxs)("div",{className:"flex-1",children:[o,(0,l.jsx)(Mn,{restoreFocus:!0,autoFocus:!0,children:(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-3",onKeyDown:Pi,children:[c,d]})})]})]})})})}),e[9]=c,e[10]=d,e[11]=u):u=e[11],u},Ai=t=>{let e=(0,gt.c)(23),{cellIds:r}=t,n=Rn(),a=En(),{actions:s,moreActions:i}=ki(r),o=r.length,c;e[0]!==a||e[1]!==n?(c=x=>{(x.target instanceof HTMLElement||x.target instanceof SVGElement)&&x.target.closest("[data-keep-cell-selection]")!==null||x.target instanceof HTMLHtmlElement||(a.clear(),n.clear())},e[0]=a,e[1]=n,e[2]=c):c=e[2],k1(window,"mousedown",c);let d=!a.idle,u;e[3]===o?u=e[4]:(u=(0,l.jsxs)("span",{className:"text-sm font-medium text-muted-foreground px-2 shrink-0",children:[o," cells selected"]}),e[3]=o,e[4]=u);let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(Or,{}),e[5]=m):m=e[5];let h;if(e[6]!==s||e[7]!==r||e[8]!==d){let x;e[10]!==s.length||e[11]!==r||e[12]!==d?(x=(b,y)=>(0,l.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[b.map(j=>(0,l.jsxs)(oe,{variant:j.variant==="danger"?"linkDestructive":"ghost",size:"sm",onClick:()=>j.handle(r),className:"h-8 px-2 gap-1 shrink-0 flex items-center",title:j.label,disabled:d&&j.label!=="Delete cells",children:[j.icon,(0,l.jsx)("span",{className:"text-xs",children:j.label}),j.hotkey&&(0,l.jsx)("div",{className:"ml-1 border bg-muted rounded-md px-1",children:(0,l.jsx)(Pn,{shortcut:j.hotkey})})]},j.label)),y<s.length-1&&(0,l.jsx)(Or,{})]},y),e[10]=s.length,e[11]=r,e[12]=d,e[13]=x):x=e[13],h=s.map(x),e[6]=s,e[7]=r,e[8]=d,e[9]=h}else h=e[9];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(Or,{}),e[14]=p):p=e[14];let f;e[15]!==r||e[16]!==d||e[17]!==i?(f=(0,l.jsx)(Ci,{actions:i,cellIds:r,disabled:d}),e[15]=r,e[16]=d,e[17]=i,e[18]=f):f=e[18];let g;return e[19]!==u||e[20]!==h||e[21]!==f?(g=(0,l.jsx)("div",{className:"absolute top-12 justify-center flex w-full left-0 right-0 z-50","data-keep-cell-selection":!0,children:(0,l.jsx)("div",{className:"bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 border border-(--slate-7) rounded-lg shadow-lg p-2 overflow-x-auto overflow-y-hidden mx-20 scrollbar-thin",children:(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[u,m,h,p,f]})})}),e[19]=u,e[20]=h,e[21]=f,e[22]=g):g=e[22],g};function Pi(t){t.stopPropagation()}var Dt=W(Q0()),Li={display:"none"};function Fi(t){let{id:e,value:r}=t;return v.createElement("div",{id:e,style:Li},r)}function Wi(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;return v.createElement("div",{id:e,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}function Vi(){let[t,e]=(0,v.useState)("");return{announce:(0,v.useCallback)(r=>{r!=null&&e(r)},[]),announcement:t}}var Hn=(0,v.createContext)(null);function Bi(t){let e=(0,v.useContext)(Hn);(0,v.useEffect)(()=>{if(!e)throw Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function Hi(){let[t]=(0,v.useState)(()=>new Set),e=(0,v.useCallback)(r=>(t.add(r),()=>t.delete(r)),[t]);return[(0,v.useCallback)(r=>{let{type:n,event:a}=r;t.forEach(s=>{var i;return(i=s[n])==null?void 0:i.call(s,a)})},[t]),e]}var qi={draggable:`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./terminal-BLwVAXVy.js","./renderShortcut-a-3t8sis.js","./dropdown-menu-ChUikXiI.js","./Combination-DWHMUa0d.js","./useEventListener-D1FLsfmf.js","./compiler-runtime-Cr9loedd.js","./react-BcIddLXZ.js","./chunk-DZLz74EQ.js","./jsx-runtime-mwDPpfh_.js","./react-dom-D6bRRS5R.js","./menu-items-Dm8s6sMr.js","./cn-DEUt_IsG.js","./dist-1ZdxNBaX.js","./createLucideIcon-CaU6_Jtx.js","./check-Dc7YCRim.js","./chevron-right-BExEgq1M.js","./kbd-BfBY_QKr.js","./tooltip-CerBk_un.js","./utils-BpjB6B-Y.js","./hotkeys-ClCtr3_I.js","./jotai-BTnrNcC1.js","./_baseIsEqual-CVFfFJm2.js","./_getTag-CVRrQL_Q.js","./_Uint8Array-D5Z9rM2X.js","./invariant-D5a0EE05.js","./merge-Dvc5opZF.js","./isArrayLikeObject-DKyJYtr8.js","./zod-U2NFpcFA.js","./state-DyQ1h-I-.js","./createReducer-C6dJ71nW.js","./uuid-4lb_EYpq.js","./constants-CEISdYm1.js","./config-e9OVB2bJ.js","./Deferred-Mppm0cvJ.js","./connection-CsVOmbVi.js","./useDebounce--Sw2WRQ5.js","./debounce-BUM2losY.js","./toNumber-CTOPJrpu.js","./isSymbol-xTSywenE.js","./now-BXqTLlmI.js","./useEvent-itkPNnCe.js","./copy-SPzF4B1M.js","./clipboard-paste-DD5fiO8j.js","./copy-CDDalEhv.js","./trash-2-D1jEfGpj.js","./terminal-ByuMlBP_.css","./chat-panel-DajnoQHz.js","./preload-helper-DImqtvgl.js","./ai-model-dropdown-CCxgO0mJ.js","./multi-map-COQ6MvP7.js","./select-Di-JjADd.js","./button-Zjtz1syG.js","./requests-DD3OWR81.js","./once-3GsqimLM.js","./toDate-CnvLb18a.js","./capitalize-CBqvgOfA.js","./upperFirst-CBQfDRod.js","./_baseSlice-BWZ0PeaJ.js","./toString-CBnct2wx.js","./_arrayMap-DQI2GUNb.js","./_hasUnicode-3DIK_jNi.js","./state-C7T5AXo0.js","./cells-DNq9ng4B.js","./badge-CxcKOiwY.js","./use-toast-BPMVOfO3.js","./key-BOd4SjWu.js","./useLifecycle-CxNbfWnk.js","./useNonce-CL3DrH5R.js","./useTheme-DcMAIbRt.js","./capabilities-CEL4hxAo.js","./dist-DdXBxU_X.js","./dist-o3-gJN-A.js","./dist-CzgFQFBf.js","./dist-ws1ADWL0.js","./dist-BOJjflZo.js","./dist-w3K5vvwl.js","./dist-DXPWGCwf.js","./dist-BGbJQ9FV.js","./dist-dCpey1ug.js","./stex-w1KpyykF.js","./_baseProperty-c4IQJQis.js","./toInteger-Bor4StOs.js","./type-DVCC-93H.js","./marked.esm-BB_RKOA5.js","./main-CCaZmKLi.js","./cells-BvrC6Bsv.css","./spinner-1oeuzoUk.js","./dialog-CzmSXArA.js","./alert-dialog-BZHeDuaE.js","./form-D69llIWP.js","./label-FIGQlkj5.js","./input-DuVApvWu.js","./numbers-Dft9TKC1.js","./useNumberFormatter-BPGR7t2W.js","./context-BqH7Jigl.js","./SSRProvider-CMB_HLxO.js","./usePress-C2JVmCUi.js","./links-90C38wV6.js","./popover-BoRNi4dY.js","./switch-p-zRh0zu.js","./table-Bj1zHGNd.js","./tabs-CGHt3Blh.js","./textarea-DA_SbCD5.js","./client-B0dO9skM.js","./useHotkey-Ca6pS8sJ.js","./api-qc-D7yz9.js","./strings-DRRWXNT2.js","./startCase-RfubwhHM.js","./_arrayReduce-DV4IVFuG.js","./useAsyncData-BPaRR7vx.js","./error-banner-rdjPobI5.js","./VisuallyHidden-B9I0t9He.js","./get-BUGWIXZE.js","./_toKey-16owuO_q.js","./memoize-DhF8x4Aa.js","./plug-DqB_ZVdt.js","./circle-x-Bb-EcEyG.js","./plus-DWAWtOBJ.js","./refresh-cw-DKt4M-wV.js","./shim-FF_l0CN4.js","./useDeleteCell-CJ4WX9R2.js","./lazy-tfeVHpGH.js","./tooltip-Yli91_uW.js","./vega-loader.browser-Cp1bHVeU.js","./precisionRound-BLxyDkD7.js","./defaultLocale-DEWTIUVh.js","./defaultLocale-B9-NA0ur.js","./chat-components-BJMCzZRK.js","./add-missing-import-BwGZ98W0.js","./focus-BwMl5m5_.js","./LazyAnyLanguageCodeMirror-BzY5E2SR.js","./katex-CRQIlYbs.js","./between-horizontal-start-t72OrVBT.js","./download-kgdScOCd.js","./file-text-Z92DzmMA.js","./file-Cesos4Qp.js","./image-CVwcB3Mo.js","./chat-components-Rg1FqrFy.css","./add-cell-with-ai-D5ovEhXx.js","./Output-pZgeySyq.js","./ErrorBoundary-5_63wxX3.js","./MarimoErrorOutput-BMyX5A6l.js","./cell-link-DFNTDaPd.js","./ImperativeModal-ExH1h9et.js","./alert-B5fh2kMN.js","./state-CIEHjRfF.js","./command-DhuV6_de.js","./RenderHTML-BUSbsjNK.js","./useRunCells-DjmsNJ7r.js","./copy-icon-Ckew1l1_.js","./mode-BWw7rz82.js","./purify.es-CmG1k0Cr.js","./useIframeCapabilities-BLQ5-OdI.js","./formats-Cit8Tr_y.js","./maps-cpHLsM9S.js","./en-US-Bxm1PGFP.js","./isValid-CFczudfT.js","./download-DrI1Gw05.js","./extends-DhnjMUSs.js","./emotion-is-prop-valid.esm-CjexKXdD.js","./useDateFormatter-CQ9jB95h.js","./range-ZclXTdAh.js","./table-CmDieCGZ.js","./Output-j3zW187k.css","./ConsoleOutput-CDSftFlX.js","./name-cell-input-F8bM4E5e.js","./esm-D8ZMWeYP.js","./objectWithoutPropertiesLoose-CNyONSoo.js","./esm-DXHMyc8g.js","./dist-bbz7Slba.js","./dist-Duhp104c.js","./dist-CH5tSYom.js","./dist-Zii08NWl.js","./dist-C27NmZjJ.js","./dist-DWvYBldG.js","./dist-B309G_89.js","./dist-5c-fdIcP.js","./dist-COzB_eCZ.js","./dist-BMfw4eeq.js","./dist-Z76N9TEr.js","./dist-C3eCrV3K.js","./dist-3nYEuz31.js","./apl-DOdxvsp7.js","./asciiarmor-iHsvYBsh.js","./asn1-CjQdFpKC.js","./brainfuck-DtaPUQOb.js","./clike-CEj-3lIu.js","./clojure-BoRNIjWi.js","./cmake-BDPy65SJ.js","./cobol-B1NZRKFh.js","./coffeescript-C6u-3CUG.js","./commonlisp-PnS0RzOo.js","./crystal-CmwgoX1x.js","./css-BOMeM4Jz.js","./cypher-BNcNWKra.js","./d-BMO4C4Kr.js","./diff-pLFk18zx.js","./dtd-Cufzm3tN.js","./dylan-CohSy5uK.js","./ecl-BhEt80nJ.js","./eiffel-CKJVLfM7.js","./elm-ClkLCCoU.js","./erlang-D2TH4-Et.js","./factor-6NmCZvh-.js","./simple-mode-CXCwEnyS.js","./forth-DV7ZwZS0.js","./fortran-C9_PuY2l.js","./gas-CGuyKmgF.js","./gherkin-BwmPTL6e.js","./groovy-DJxiqoVo.js","./haskell-DOcPZqkO.js","./haxe-BVSsVSdX.js","./idl-D5drHePd.js","./javascript-rI4fd75W.js","./jinja2-BrZGqXAx.js","./julia-z0xq3uqV.js","./livescript-BbVvVfSY.js","./lua-CtEmKXsU.js","./mathematica-B-SjlQIm.js","./mbox-BdnWvTJv.js","./mirc-Cyycx3am.js","./mllike-ZkoLEmrh.js","./modelica-DIZcE54y.js","./mscgen-MISBZbzR.js","./mumps-Cnu1tNUa.js","./nsis-CUebodQn.js","./ntriples-2rre165b.js","./octave-C7u5CeUZ.js","./oz-D5aE2uST.js","./pascal-DTApZM3o.js","./perl-Ckgh9LJK.js","./pig-jAl9a1Kh.js","./powershell-C_IKzlOl.js","./properties-BdVxDpDJ.js","./protobuf-DLu_SUI6.js","./pug-fgP-dIQ4.js","./puppet-CShRizHW.js","./python-ChTwa-ru.js","./q-D2OTJZH4.js","./r-DRqIAgj1.js","./rpm-BStFD27m.js","./ruby-C37hkPS4.js","./sas-CCEIl8BG.js","./scheme-B0jflgrk.js","./shell-Cq7B0hFW.js","./sieve-DS0lS4kt.js","./smalltalk-HHM53Uii.js","./sparql-BMqtnWzI.js","./stylus-Br2gMpMI.js","./swift-BJ8qi_zI.js","./tcl-D0knbOX7.js","./textile-DrRQSuh3.js","./toml-C2kDGfZi.js","./troff-2dFxqWQa.js","./ttcn-cfg-CBXajWEo.js","./ttcn-Cj4sIofh.js","./turtle-CDdPtp5F.js","./vb-CtEhAMYU.js","./vbscript-B0nzdgzL.js","./velocity-DR7TSall.js","./verilog-MmKxT9bW.js","./vhdl-0jJrpQNA.js","./webidl-D9f20BkN.js","./xquery-B0eSGN9q.js","./yacas-BS613OH9.js","./z80-CJYC52xh.js","./trash-DpmcvlCC.js","./ConsoleOutput-BFFTcC5Y.css","./icons-HGhpVPVr.js","./blob-B96v6VlX.js","./empty-state-n1MMYrpv.js","./isEmpty-B-9PYDiJ.js","./square-B9bfYM_2.js","./send-C0pANzAH.js","./settings-DvMaGwYY.js","./prop-types-BAY7nW8B.js","./agent-panel-B5iI79QW.js","./dist-CKjmAYFu.js","./file-video-camera-gcIrLbdD.js","./square-terminal-Cenbgr6k.js","./agent-panel-uD4NfS9H.css","./dependency-graph-panel-DcOypoYV.js","./useCellActionButton-jH-t2BrR.js","./useSplitCell-ueztloAj.js","./multi-icon-C4RX3Man.js","./multi-icon-DGEaRcEm.css","./circle-plus-UevqeQZu.js","./eye-off-BIDUS-iw.js","./link-DmSljZn4.js","./TinyCode-CgC7YtPL.js","./TinyCode-ujOhus_y.css","./cell-actions-Cc2JYtcT.js","./common-U0RDob8X.js","./timer-DPMc0rso.js","./src-DnZfSL8R.js","./ellipsis-vertical-DsdK_SPL.js","./square-function-DncO0xCM.js","./workflow-BmOhe3mQ.js","./dependency-graph-panel-DZccg5W0.css","./datasources-panel-Bo6UM72J.js","./column-preview-BiiXdwvw.js","./useInstallPackage-B1IBfLxp.js","./useAddCell-xX3fIjF2.js","./write-secret-modal-DNQ4_yXQ.js","./field-mNGJv_67.js","./add-database-form-p8983nDn.js","./form-CQCzdh1o.js","./toggle-CPnmDQd7.js","./refresh-ccw-ETV_gv20.js","./request-registry-4Ayu0iWH.js","./_createAggregator-CP8XSJVt.js","./_baseEach-CMG9RfnR.js","./hasIn-BgJKauE7.js","./_baseFlatten-ViL-mfkw.js","./_baseMap-Cw6xPrGQ.js","./sortBy-B2UQBZri.js","./documentation-panel-BPa77v-x.js","./text-search-ClAG-7sc.js","./error-panel-C4Dh4_Gz.js","./file-explorer-panel-BTjjB1ys.js","./icon-32x32-BdJNpplD.js","./types-UoG2cq5J.js","./Inputs-aaNuvYOb.js","./Inputs-De9ocXZ0.css","./links-nvlVnGWE.js","./es-CM14OBji.js","./tree-wsZjF85r.js","./arrow-left-Z4SeogmW.js","./file-plus-2-CCnTSf5c.js","./save-CQAHDr9Q.js","./bundle.esm-Bah18HX6.js","./logs-panel-C8ChYhO8.js","./clear-button-Dg2Po4rR.js","./outline-panel-QjRV3Zps.js","./floating-outline-DwAgRZTh.js","./outline-panel-DiqosgsD.css","./packages-panel-_yihtFbB.js","./constants-llOk-Qrr.js","./scratchpad-panel-A9G8o9jf.js","./loro_wasm_bg-BPmEUFaG.js","./cell-editor-DJ46IITP.js","./readonly-python-code-gmO6162d.js","./layout-C8ytLSQd.js","./ellipsis-B3_6K4nC.js","./layout-BMz7tbdg.css","./globals-Bcw0dX52.js","./useInterval-DpN2C7T8.js","./circle-check-DQpKgZLQ.js","./ws-CjDdq9XP.js","./cell-editor-CJeTtuDg.css","./kiosk-mode-Dd1ooBaF.js","./secrets-panel-ii29X28D.js","./snippets-panel-C6FwSaZz.js","./snippets-panel-BbRzKrpQ.css","./tracing-panel-Mt1B8lhs.js","./variable-panel-DAhAueP9.js","./cache-panel-BDEhA_NV.js","./requests-DsLpX_Nh.js","./database-zap-qZPyZzpI.js","./command-palette-DbfvqoOB.js","./useNotebookActions-Cf9b-Ef9.js","./types-BAj-eUz8.js","./share-Bur20myQ.js","./activity-CwCrFh0w.js","./youtube-IyU5o7JU.js","./globe-BGR7PZfb.js"])))=>i.map(i=>d[i]);
2
+ var x0=Object.defineProperty;var g0=(Ge,Xe,xt)=>Xe in Ge?x0(Ge,Xe,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Ge[Xe]=xt;var Wa=(Ge,Xe,xt)=>g0(Ge,typeof Xe!="symbol"?Xe+"":Xe,xt);import{s as W}from"./chunk-DZLz74EQ.js";import{a as v0,c as Z,d as ur,l as Nt,n as dt,r as b0,s as mr,u as Va}from"./jotai-BTnrNcC1.js";import{t as y0}from"./react-BcIddLXZ.js";import{$ as j0,A as w0,Cr as _0,D as Ft,E as We,F as N0,Ft as sn,G as on,Gn as C0,I as k0,J as S0,Jn as cn,K as Ba,Ln as I0,Mt as Ha,P as Wt,Q as qa,Rt as R0,S as E0,T as z0,Y as D0,Yn as M0,Zn as O0,_t as hr,a as T0,b as A0,c as P0,cr as L0,d as pr,g as F0,h as fr,hr as W0,j as dn,jt as V0,l as B0,ln as qe,lr as $a,n as H0,nr as q0,on as xr,p as Ua,qn as gr,r as $0,rr as U0,rt as K0,s as Ka,sn as Ga,w as G0,wn as Xa,x as un,y as X0,zr as Y0,__tla as J0}from"./cells-DNq9ng4B.js";import{t as Q0}from"./react-dom-D6bRRS5R.js";import{F as Ya,H as Z0,L as e1,z as Ja}from"./zod-U2NFpcFA.js";import{t as H}from"./compiler-runtime-Cr9loedd.js";import"./_Uint8Array-D5Z9rM2X.js";import"./isSymbol-xTSywenE.js";import"./_arrayMap-DQI2GUNb.js";import"./toString-CBnct2wx.js";import"./toNumber-CTOPJrpu.js";import"./toInteger-Bor4StOs.js";import"./isArrayLikeObject-DKyJYtr8.js";import"./_getTag-CVRrQL_Q.js";import"./_baseIsEqual-CVFfFJm2.js";import"./_toKey-16owuO_q.js";import"./memoize-DhF8x4Aa.js";import"./get-BUGWIXZE.js";import"./merge-Dvc5opZF.js";import"./_baseSlice-BWZ0PeaJ.js";import"./upperFirst-CBQfDRod.js";import"./_hasUnicode-3DIK_jNi.js";import"./capitalize-CBqvgOfA.js";import"./_arrayReduce-DV4IVFuG.js";import{t as t1}from"./startCase-RfubwhHM.js";import"./_baseEach-CMG9RfnR.js";import"./hasIn-BgJKauE7.js";import"./_baseProperty-c4IQJQis.js";import"./_createAggregator-CP8XSJVt.js";import"./now-BXqTLlmI.js";import{t as r1}from"./debounce-BUM2losY.js";import"./tooltip-Yli91_uW.js";import"./_baseSet-L2qemYhz.js";import"./add-database-form-p8983nDn.js";import"./range-ZclXTdAh.js";import{A as Qa,C as Vt,D as n1,E as Za,O as vr,S as br,_ as l1,a as mn,b as Bt,c as es,d as a1,f as s1,g as ts,h as i1,i as o1,k as rs,l as yr,m as Ht,n as Ct,o as kt,p as hn,r as pn,s as Qe,t as jr,u as fn,v as lt,w as c1,x as wr,y as qt}from"./utilities.esm-D8HYU14D.js";import{a as d1,i as u1,r as m1,s as ns}from"./client-B0dO9skM.js";import{d as St,u as Ve}from"./hotkeys-ClCtr3_I.js";import{t as $t}from"./invariant-D5a0EE05.js";import{E as h1,T as p1,_ as f1,b as x1,f as g1,g as v1,n as b1,r as ls,v as xn,x as y1}from"./utils-BpjB6B-Y.js";import{n as j1,t as gn}from"./constants-CEISdYm1.js";import{a as w1,g as It,o as _1}from"./config-e9OVB2bJ.js";import"./api-qc-D7yz9.js";import{n as N1}from"./globals-Bcw0dX52.js";import{t as as}from"./ErrorBoundary-5_63wxX3.js";import{n as C1,t as k1}from"./useEventListener-D1FLsfmf.js";import{t as S1}from"./jsx-runtime-mwDPpfh_.js";import{i as _r,n as I1,t as V}from"./cn-DEUt_IsG.js";import{r as Nr,t as oe}from"./button-Zjtz1syG.js";import{Lt as vn,rt as R1}from"./dist-o3-gJN-A.js";import{s as E1}from"./dist-CzgFQFBf.js";import{W as bn,Y as z1,q as D1,t as yn,y as jn}from"./Output-pZgeySyq.js";import{r as M1,u as O1}from"./once-3GsqimLM.js";import"./capabilities-CEL4hxAo.js";import"./createReducer-C6dJ71nW.js";import{r as Ze,t as T1}from"./requests-DD3OWR81.js";import{t as Ne}from"./preload-helper-DImqtvgl.js";import{c as A1,l as P1,o as L1}from"./dist-DdXBxU_X.js";import"./dist-ws1ADWL0.js";import"./dist-BOJjflZo.js";import"./dist-w3K5vvwl.js";import"./dist-DXPWGCwf.js";import"./dist-BGbJQ9FV.js";import"./stex-w1KpyykF.js";import"./Deferred-Mppm0cvJ.js";import"./uuid-4lb_EYpq.js";import"./key-BOd4SjWu.js";import{t as Ut}from"./use-toast-BPMVOfO3.js";import"./main-CCaZmKLi.js";import"./marked.esm-BB_RKOA5.js";import{i as F1,n as W1,r as ss,s as at,t as Rt}from"./connection-CsVOmbVi.js";import"./dist-dCpey1ug.js";import{i as is,t as os}from"./useLifecycle-CxNbfWnk.js";import{r as V1}from"./useTheme-DcMAIbRt.js";import{t as Me}from"./createLucideIcon-CaU6_Jtx.js";import"./activity-CwCrFh0w.js";import{c as B1,l as wn,__tla as H1}from"./layout-C8ytLSQd.js";import{t as q1}from"./arrow-left-Z4SeogmW.js";import{r as $1,t as U1}from"./cell-actions-Cc2JYtcT.js";import{a as K1,b as cs,o as G1,r as X1,t as Y1,v as _n}from"./add-cell-with-ai-D5ovEhXx.js";import{r as J1,t as Q1}from"./CellStatus-c0SAQ-F-.js";import{t as ds}from"./square-B9bfYM_2.js";import"./ai-model-dropdown-CCxgO0mJ.js";import{a as Et,f as Z1,l as eh,n as us,p as Nn}from"./state-C7T5AXo0.js";import"./type-DVCC-93H.js";import{i as th,r as rh,t as nh}from"./useBoolean-CG31RE8p.js";import"./table-CmDieCGZ.js";import{t as lh}from"./check-Dc7YCRim.js";import{_ as ut,g as Cn,h as $e,l as kn}from"./select-Di-JjADd.js";import{c as ah}from"./download-DrI1Gw05.js";import{t as Sn}from"./chevron-right-BExEgq1M.js";import{d as sh,l as ih,p as oh}from"./maps-cpHLsM9S.js";import{a as ch,c as dh,i as Ue,n as uh,r as Ke,s as mh,t as hh}from"./useCellActionButton-jH-t2BrR.js";import"./plug-DqB_ZVdt.js";import{t as ms}from"./circle-check-DQpKgZLQ.js";import{a as hs,c as ph,d as fh,i as xh,l as gh,n as vh,o as bh,r as yh,s as jh,t as wh,u as _h}from"./useNotebookActions-Cf9b-Ef9.js";import"./circle-plus-UevqeQZu.js";import{u as ps}from"./toDate-CnvLb18a.js";import{t as Nh}from"./circle-x-Bb-EcEyG.js";import{A as fs,C as Ch,D as kh,E as Sh,O as Ih,P as Rh,S as Eh,T as zh,_ as Dh,a as Cr,b as Mh,c as mt,d as Oh,f as Th,g as Ah,h as Ph,k as Lh,m as Fh,n as xs,o as Wh,p as ht,r as pt,s as Vh,t as ft,u as Bh,v as Hh,w as qh,x as $h,y as Uh}from"./dropdown-menu-ChUikXiI.js";import{t as Kh}from"./clipboard-paste-DD5fiO8j.js";import{n as Gh,t as Xh}from"./eye-off-BIDUS-iw.js";import{t as Yh}from"./copy-CDDalEhv.js";import"./database-zap-qZPyZzpI.js";import"./download-kgdScOCd.js";import{t as In}from"./ellipsis-B3_6K4nC.js";import"./types-UoG2cq5J.js";import"./file-video-camera-gcIrLbdD.js";import{_ as Jh,a as Rn,c as Qh,d as Zh,f as gs,g as ep,h as tp,i as rp,l as np,m as Kt,n as vs,o as lp,p as ap,r as sp,s as bs,t as ys,u as ip,v as En,__tla as op}from"./cell-editor-DJ46IITP.js";import"./file-plus-2-CCnTSf5c.js";import"./file-text-Z92DzmMA.js";import"./file-Cesos4Qp.js";import"./youtube-IyU5o7JU.js";import"./globe-BGR7PZfb.js";import{a as cp,c as dp,d as js,f as up,i as ws,l as mp,m as hp,n as pp,o as fp,p as xp,r as gp,s as vp,t as bp,u as _s}from"./storage-CmIwledL.js";import{t as yp}from"./image-CVwcB3Mo.js";import"./link-DmSljZn4.js";import{n as jp,t as kr}from"./spinner-1oeuzoUk.js";import{t as wp}from"./readonly-python-code-gmO6162d.js";import"./MarimoErrorOutput-BMyX5A6l.js";import{r as Gt}from"./name-cell-input-F8bM4E5e.js";import{t as zn}from"./plus-DWAWtOBJ.js";import{n as _p,r as Xt,t as Np}from"./app-config-button-BFmqvqPu.js";import{t as Cp}from"./refresh-ccw-ETV_gv20.js";import"./refresh-cw-DKt4M-wV.js";import{n as kp,t as Sp}from"./square-terminal-Cenbgr6k.js";import"./save-CQAHDr9Q.js";import{J as Ip,ot as Ns,q as Rp,r as Dn,st as Ep}from"./input-DuVApvWu.js";import"./settings-DvMaGwYY.js";import{t as Cs}from"./ConsoleOutput-CDSftFlX.js";import{a as Sr,n as ks}from"./state-CIEHjRfF.js";import{t as zp}from"./square-function-DncO0xCM.js";import{a as Dp,c as Mp,g as Op,n as Tp,o as Ap,p as Pp,t as Lp,u as Fp}from"./form-D69llIWP.js";import"./text-search-ClAG-7sc.js";import{t as Ss}from"./trash-2-D1jEfGpj.js";import"./trash-DpmcvlCC.js";import{i as Mn,o as Wp,v as On}from"./VisuallyHidden-B9I0t9He.js";import"./workflow-BmOhe3mQ.js";import"./badge-CxcKOiwY.js";import{C as Vp,c as Is,g as Bp,h as Hp,l as qp,o as $p,s as Up,x as Yt,y as Kp}from"./Combination-DWHMUa0d.js";import"./dist-1ZdxNBaX.js";import{i as Rs,s as Ir,t as te}from"./tooltip-CerBk_un.js";import{c as Gp,i as Rr,l as Xp,o as Es,r as zs,s as Yp}from"./menu-items-Dm8s6sMr.js";import"./useNonce-CL3DrH5R.js";import"./en-US-Bxm1PGFP.js";import"./isValid-CFczudfT.js";import{a as Jp,r as Qp}from"./mode-BWw7rz82.js";import"./alert-dialog-BZHeDuaE.js";import{a as Zp,c as ef,n as tf,r as rf}from"./dialog-CzmSXArA.js";import{I as nf,T as Ds}from"./usePress-C2JVmCUi.js";import"./SSRProvider-CMB_HLxO.js";import"./useDateFormatter-CQ9jB95h.js";import{t as Ms}from"./context-BqH7Jigl.js";import{t as Er}from"./useNumberFormatter-BPGR7t2W.js";import"./shim-FF_l0CN4.js";import{t as Re}from"./useHotkey-Ca6pS8sJ.js";import"./numbers-Dft9TKC1.js";import{n as je,t as lf}from"./useEvent-itkPNnCe.js";import"./useDebounce--Sw2WRQ5.js";import{n as af}from"./ImperativeModal-ExH1h9et.js";import"./share-Bur20myQ.js";import"./strings-DRRWXNT2.js";import{t as zt}from"./error-banner-rdjPobI5.js";import"./vega-loader.browser-Cp1bHVeU.js";import"./precisionRound-BLxyDkD7.js";import"./defaultLocale-DEWTIUVh.js";import"./defaultLocale-B9-NA0ur.js";import{t as sf}from"./copy-SPzF4B1M.js";import"./copy-icon-Ckew1l1_.js";import{t as of}from"./RenderHTML-BUSbsjNK.js";import"./purify.es-CmG1k0Cr.js";import{a as Os,i as Tn,o as cf,r as df}from"./useRunCells-DjmsNJ7r.js";import"./multi-map-COQ6MvP7.js";import"./emotion-is-prop-valid.esm-CjexKXdD.js";import"./extends-DhnjMUSs.js";import"./prop-types-BAY7nW8B.js";import"./objectWithoutPropertiesLoose-CNyONSoo.js";import"./alert-B5fh2kMN.js";import{n as An}from"./useAsyncData-BPaRR7vx.js";import"./dist-I8SxGjN9.js";import{t as uf}from"./kbd-BfBY_QKr.js";import{a as et,i as mf,r as Pn,t as hf}from"./renderShortcut-a-3t8sis.js";import"./label-FIGQlkj5.js";import{i as pf,r as ff,t as xf}from"./popover-BoRNi4dY.js";import{a as gf,i as vf,o as bf,t as yf}from"./cell-link-DFNTDaPd.js";import"./dist-bbz7Slba.js";import"./dist-Duhp104c.js";import"./dist-CH5tSYom.js";import"./dist-Zii08NWl.js";import"./dist-C27NmZjJ.js";import"./dist-DWvYBldG.js";import"./dist-B309G_89.js";import"./dist-5c-fdIcP.js";import"./dist-COzB_eCZ.js";import"./dist-Z76N9TEr.js";import"./dist-C3eCrV3K.js";import"./dist-3nYEuz31.js";import"./apl-DOdxvsp7.js";import"./asciiarmor-iHsvYBsh.js";import"./asn1-CjQdFpKC.js";import"./brainfuck-DtaPUQOb.js";import"./cobol-B1NZRKFh.js";import"./clike-CEj-3lIu.js";import"./clojure-BoRNIjWi.js";import"./css-BOMeM4Jz.js";import"./cmake-BDPy65SJ.js";import"./coffeescript-C6u-3CUG.js";import"./commonlisp-PnS0RzOo.js";import"./cypher-BNcNWKra.js";import"./python-ChTwa-ru.js";import"./crystal-CmwgoX1x.js";import"./d-BMO4C4Kr.js";import"./diff-pLFk18zx.js";import"./dtd-Cufzm3tN.js";import"./dylan-CohSy5uK.js";import"./ecl-BhEt80nJ.js";import"./eiffel-CKJVLfM7.js";import"./elm-ClkLCCoU.js";import"./erlang-D2TH4-Et.js";import"./simple-mode-CXCwEnyS.js";import"./factor-6NmCZvh-.js";import"./forth-DV7ZwZS0.js";import"./fortran-C9_PuY2l.js";import"./mllike-ZkoLEmrh.js";import"./gas-CGuyKmgF.js";import"./gherkin-BwmPTL6e.js";import"./groovy-DJxiqoVo.js";import"./haskell-DOcPZqkO.js";import"./haxe-BVSsVSdX.js";import"./idl-D5drHePd.js";import"./javascript-rI4fd75W.js";import"./jinja2-BrZGqXAx.js";import"./julia-z0xq3uqV.js";import"./livescript-BbVvVfSY.js";import"./lua-CtEmKXsU.js";import"./mirc-Cyycx3am.js";import"./mathematica-B-SjlQIm.js";import"./modelica-DIZcE54y.js";import"./mumps-Cnu1tNUa.js";import"./mbox-BdnWvTJv.js";import"./nsis-CUebodQn.js";import"./ntriples-2rre165b.js";import"./octave-C7u5CeUZ.js";import"./oz-D5aE2uST.js";import"./pascal-DTApZM3o.js";import"./perl-Ckgh9LJK.js";import"./pig-jAl9a1Kh.js";import"./powershell-C_IKzlOl.js";import"./properties-BdVxDpDJ.js";import"./protobuf-DLu_SUI6.js";import"./pug-fgP-dIQ4.js";import"./puppet-CShRizHW.js";import"./q-D2OTJZH4.js";import"./r-DRqIAgj1.js";import"./rpm-BStFD27m.js";import"./ruby-C37hkPS4.js";import"./sas-CCEIl8BG.js";import"./scheme-B0jflgrk.js";import"./shell-Cq7B0hFW.js";import"./sieve-DS0lS4kt.js";import"./smalltalk-HHM53Uii.js";import"./sparql-BMqtnWzI.js";import"./stylus-Br2gMpMI.js";import"./swift-BJ8qi_zI.js";import"./verilog-MmKxT9bW.js";import"./tcl-D0knbOX7.js";import"./textile-DrRQSuh3.js";import"./toml-C2kDGfZi.js";import"./troff-2dFxqWQa.js";import"./ttcn-Cj4sIofh.js";import"./ttcn-cfg-CBXajWEo.js";import"./turtle-CDdPtp5F.js";import"./webidl-D9f20BkN.js";import"./vb-CtEhAMYU.js";import"./vbscript-B0nzdgzL.js";import"./velocity-DR7TSall.js";import"./vhdl-0jJrpQNA.js";import"./xquery-B0eSGN9q.js";import"./yacas-BS613OH9.js";import"./z80-CJYC52xh.js";import"./mscgen-MISBZbzR.js";import"./dist-BMfw4eeq.js";import"./esm-DXHMyc8g.js";import"./esm-D8ZMWeYP.js";import{t as jf}from"./links-90C38wV6.js";import"./useIframeCapabilities-BLQ5-OdI.js";import{__tla as wf}from"./lazy-tfeVHpGH.js";import"./tabs-CGHt3Blh.js";import"./command-DhuV6_de.js";import"./table-Bj1zHGNd.js";import"./formats-Cit8Tr_y.js";import"./blob-B96v6VlX.js";import{n as Ts,r as _f,t as As}from"./useDeleteCell-CJ4WX9R2.js";import{n as zr}from"./add-missing-import-BwGZ98W0.js";import{n as Nf,t as Cf}from"./icons-HGhpVPVr.js";import"./form-CQCzdh1o.js";import{a as kf,t as Sf}from"./focus-BwMl5m5_.js";import"./useAddCell-xX3fIjF2.js";import{t as Ln}from"./toggle-CPnmDQd7.js";import"./field-mNGJv_67.js";import"./textarea-DA_SbCD5.js";import{t as Ps}from"./switch-p-zRh0zu.js";import{t as If}from"./floating-outline-DwAgRZTh.js";import"./dist-CKjmAYFu.js";import"./requests-DsLpX_Nh.js";import"./request-registry-4Ayu0iWH.js";import"./write-secret-modal-DNQ4_yXQ.js";import"./TinyCode-CgC7YtPL.js";import"./multi-icon-C4RX3Man.js";import"./useSplitCell-ueztloAj.js";import"./links-nvlVnGWE.js";import{t as st}from"./Inputs-aaNuvYOb.js";import"./constants-llOk-Qrr.js";import{__tla as Rf}from"./loro_wasm_bg-BPmEUFaG.js";import"./ws-CjDdq9XP.js";import{t as Ls}from"./useInterval-DpN2C7T8.js";import{n as Ef,t as Fs}from"./kiosk-mode-Dd1ooBaF.js";import"./types-BAj-eUz8.js";import"./runs-CgQqWMmh.js";let Ws,zf=Promise.all([(()=>{try{return J0}catch{}})(),(()=>{try{return H1}catch{}})(),(()=>{try{return op}catch{}})(),(()=>{try{return wf}catch{}})(),(()=>{try{return Rf}catch{}})()]).then(async()=>{var Ge=Me("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),Xe=Me("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),xt=Me("hard-drive-download",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m16 6-4 4-4-4",key:"6wukr"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",key:"w68u3i"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 18h.01",key:"h775k"}]]),Vs=Me("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]),Bs=Me("memory-stick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]),Hs=Me("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),qs=Me("microchip",[["path",{d:"M18 12h2",key:"quuxs7"}],["path",{d:"M18 16h2",key:"zsn3lv"}],["path",{d:"M18 20h2",key:"9x5y9y"}],["path",{d:"M18 4h2",key:"1luxfb"}],["path",{d:"M18 8h2",key:"nxqzg"}],["path",{d:"M4 12h2",key:"1ltxp0"}],["path",{d:"M4 16h2",key:"8a5zha"}],["path",{d:"M4 20h2",key:"27dk57"}],["path",{d:"M4 4h2",key:"10groj"}],["path",{d:"M4 8h2",key:"18vq6w"}],["path",{d:"M8 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-1.5c-.276 0-.494.227-.562.495a2 2 0 0 1-3.876 0C9.994 2.227 9.776 2 9.5 2z",key:"1681fp"}]]),$s=Me("octagon-alert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]),Us=Me("package-check",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]),Fn=Me("package-x",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]),Ks=Me("regex",[["path",{d:"M17 3v10",key:"15fgeh"}],["path",{d:"m12.67 5.5 8.66 5",key:"1gpheq"}],["path",{d:"m12.67 10.5 8.66-5",key:"1dkfa6"}],["path",{d:"M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z",key:"swwfx4"}]]),Gs=Me("square-code",[["path",{d:"m10 9-3 3 3 3",key:"1oro0q"}],["path",{d:"m14 15 3-3-3-3",key:"bz13h7"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]),Xs=Me("square-m",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]),Ys=Me("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),Js=Me("whole-word",[["circle",{cx:"7",cy:"12",r:"3",key:"12clwm"}],["path",{d:"M10 9v6",key:"17i7lo"}],["circle",{cx:"17",cy:"12",r:"3",key:"gl7c2s"}],["path",{d:"M14 7v8",key:"dl84cr"}],["path",{d:"M22 17v1c0 .5-.5 1-1 1H3c-.5 0-1-.5-1-1v-1",key:"lt2kga"}]]),v=W(y0(),1);function Qs(t,e){let{"aria-label":r,"aria-labelledby":n,orientation:a="horizontal"}=t,[s,i]=(0,v.useState)(!1);nf(()=>{var f;i(!!(e.current&&((f=e.current.parentElement)!=null&&f.closest('[role="toolbar"]'))))});let{direction:o}=Ms(),c=o==="rtl"&&a==="horizontal",d=Wp(e),u=f=>{if(f.currentTarget.contains(f.target)){if(a==="horizontal"&&f.key==="ArrowRight"||a==="vertical"&&f.key==="ArrowDown")c?d.focusPrevious():d.focusNext();else if(a==="horizontal"&&f.key==="ArrowLeft"||a==="vertical"&&f.key==="ArrowUp")c?d.focusNext():d.focusPrevious();else if(f.key==="Tab"){f.stopPropagation(),m.current=document.activeElement,f.shiftKey?d.focusFirst():d.focusLast();return}else return;f.stopPropagation(),f.preventDefault()}},m=(0,v.useRef)(null),h=f=>{!f.currentTarget.contains(f.relatedTarget)&&!m.current&&(m.current=f.target)},p=f=>{var x;if(m.current&&!f.currentTarget.contains(f.relatedTarget)&&((x=e.current)!=null&&x.contains(f.target))){var g;(g=m.current)==null||g.focus(),m.current=null}};return{toolbarProps:{...Ns(t,{labelable:!0}),role:s?"group":"toolbar","aria-orientation":a,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:s?void 0:u,onFocusCapture:s?void 0:p,onBlurCapture:s?void 0:h}}}var Zs=(0,v.createContext)({}),ei=(0,v.forwardRef)(function(t,e){[t,e]=Rp(t,e,Zs);let{toolbarProps:r}=Qs(t,e),n=Ip({...t,values:{orientation:t.orientation||"horizontal"},defaultClassName:"react-aria-Toolbar"}),a=Ns(t,{global:!0});return delete a.id,v.createElement("div",{...Ds(a,n,r),ref:e,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal"},n.children)}),ti=W(H(),1),l=W(S1(),1);const ri=t=>{let e=(0,ti.c)(33),{disabled:r,tooltip:n}=t,a=r===void 0?!1:r,s=n===void 0?"Actions":n,i=wh(),{locale:o}=Ms(),c;e[0]===s?c=e[1]:(c=(0,l.jsx)("div",{children:s}),e[0]=s,e[1]=c);let d;e[2]===a?d=e[3]:(d=!a&&(0,l.jsxs)("div",{className:"text-xs text-muted-foreground font-medium pt-1 -mt-2 border-t border-border flex items-center gap-2",children:[(0,l.jsx)("span",{children:"Open command palette"}),et("global.commandPalette",!1)]}),e[2]=a,e[3]=d);let u;e[4]!==c||e[5]!==d?(u=(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[c,d]}),e[4]=c,e[5]=d,e[6]=u):u=e[6];let m=u,h=a?"disabled":"hint-green",p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(hp,{strokeWidth:1.8}),e[7]=p):p=e[7];let f;e[8]===m?f=e[9]:(f=(0,l.jsx)(te,{content:m,children:p}),e[8]=m,e[9]=f);let g;e[10]!==a||e[11]!==h||e[12]!==f?(g=(0,l.jsx)(st,{"aria-label":"Config",shape:"circle",size:"small",className:"h-[27px] w-[27px]","data-testid":"notebook-menu-dropdown",disabled:a,color:h,children:f}),e[10]=a,e[11]=h,e[12]=f,e[13]=g):g=e[13];let x=g,b=ni,y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=z=>{let E=(0,l.jsx)(Cr,{variant:z.variant,disabled:z.disabled,onSelect:O=>z.handle(O),"data-testid":`notebook-menu-dropdown-${z.label}`,children:b(z)},z.label);return z.tooltip?(0,l.jsx)(te,{content:z.tooltip,side:"left",delayDuration:100,children:(0,l.jsx)("span",{children:E})},z.label):E},e[14]=y):y=e[14];let j=y,w;e[15]!==x||e[16]!==a?(w=(0,l.jsx)(ht,{asChild:!0,disabled:a,children:x}),e[15]=x,e[16]=a,e[17]=w):w=e[17];let _;if(e[18]!==i){let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=E=>E.hidden?null:E.dropdown?(0,l.jsxs)(Bh,{children:[(0,l.jsx)(Th,{"data-testid":`notebook-menu-dropdown-${E.label}`,children:b(E)}),(0,l.jsx)(Vh,{children:(0,l.jsx)(Oh,{children:E.dropdown.map(O=>(0,l.jsxs)(v.Fragment,{children:[O.divider&&(0,l.jsx)(mt,{}),j(O)]},O.label))})})]},E.label):(0,l.jsxs)(v.Fragment,{children:[E.divider&&(0,l.jsx)(mt,{}),j(E)]},E.label),e[20]=z):z=e[20],_=i.map(z),e[18]=i,e[19]=_}else _=e[19];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=(0,l.jsx)(mt,{}),e[21]=N):N=e[21];let C;e[22]===o?C=e[23]:(C=(0,l.jsxs)("span",{children:["Locale: ",o]}),e[22]=o,e[23]=C);let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=(0,l.jsxs)("span",{children:["Version: ",N1()]}),e[24]=I):I=e[24];let R;e[25]===C?R=e[26]:(R=(0,l.jsxs)("div",{className:"flex-1 px-2 text-xs text-muted-foreground flex flex-col gap-1",children:[C,I]}),e[25]=C,e[26]=R);let k;e[27]!==_||e[28]!==R?(k=(0,l.jsxs)(pt,{align:"end",className:"no-print w-[240px]",children:[_,N,R]}),e[27]=_,e[28]=R,e[29]=k):k=e[29];let S;return e[30]!==w||e[31]!==k?(S=(0,l.jsxs)(ft,{modal:!1,children:[w,k]}),e[30]=w,e[31]=k,e[32]=S):S=e[32],S};function ni(t){return(0,l.jsxs)(l.Fragment,{children:[t.icon&&(0,l.jsx)("span",{className:"flex-0 mr-2",children:t.icon}),(0,l.jsx)("span",{className:"flex-1",children:t.labelElement||t.label}),t.hotkey&&(0,l.jsx)(Pn,{shortcut:t.hotkey,className:"ml-4"}),t.rightElement]})}function Jt(t){return()=>{let e=dt.get(Kt),r=new E1({search:e.findText,caseSensitive:e.caseSensitive,regexp:e.regexp,replace:e.replaceText,wholeWord:e.wholeWord});return r.valid?t({query:ep(r).create(),search:r}):!1}}var Wn=t=>Jt(({query:e})=>{let r=pr(),n=dt.get(Kt).currentView||{view:r[0],range:{from:0,to:0}},a=n.range.to;t==="prev"&&(r.reverse(),a=n.range.from);let s=r.indexOf(n.view);s<0&&(s=0);let i=[...r,...r].slice(s);for(let o of i){let c=t==="next"?e.nextMatch(o.state,0,a??0):e.prevMatch(o.state,a??o.state.doc.length,o.state.doc.length);if(!c){a=null,o.dispatch({selection:vn.single(0)});continue}let d=vn.single(c.from,c.to);return o.dispatch({selection:d,effects:[R1.scrollIntoView(d.main,{y:"center"})],userEvent:"select.search"}),dt.set(Kt,{type:"setCurrentView",view:o,range:{from:c.from,to:c.to}}),c}return!1});const Dr=Wn("next"),Vn=Wn("prev"),li=Jt(({query:t})=>{var n;let e=pr(),r=[];for(let a of e){if(a.state.readOnly)continue;let s=(n=t.matchAll(a.state,1e9))==null?void 0:n.map(o=>{let{from:c,to:d}=o;return{from:c,to:d,insert:t.getReplacement(o)}});if(!s||s.length===0)continue;let i=a.state.doc.toString();r.push(()=>{W0(a,i,{userEvent:"input.replace.all"})}),a.dispatch({changes:s,userEvent:"input.replace.all"})}return()=>{for(let a of r)a()}}),ai=Jt(({query:t})=>{let e=pr(),r=dt.get(Kt).currentView||{view:e[0],range:{from:0,to:0}},n=r.range.from,a=e.indexOf(r.view);a<0&&(a=0);let s=[...e,...e].slice(a);for(let i of s){let o=t.nextMatch(i.state,0,n??0);if(!o){n=null,i.dispatch({selection:vn.single(0)});continue}let c=i.state.toText(t.getReplacement(o));return i.dispatch({changes:[{from:o.from,to:o.to,insert:c}],userEvent:"input.replace"}),Dr()}return!1}),si=Jt(({query:t})=>{let e=pr(),r=0,n=new Map;for(let a of e){let s=t.matchAll(a.state,1e9)||[];for(let i of s){let{from:o,to:c}=i,d=n.get(a)||new Map;d.set(`${o}:${c}`,r++),n.set(a,d)}}return{count:r,position:n}});var ii=W(H(),1);const oi=()=>{var re;let t=(0,ii.c)(102),[e,r]=(0,v.useState)(!1),[n,a]=mr(Kt),[s,i]=(0,v.useState)(),o=(0,v.useRef)(null),c=Z(g1),d;t[0]!==e||t[1]!==n.isOpen?(d=()=>e&&n.isOpen?!1:tp(),t[0]=e,t[1]=n.isOpen,t[2]=d):d=t[2],Re("cell.findAndReplace",d);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{let U=si();i(U===!1?void 0:U)},t[3]=u):u=t[3];let m=u,h,p;t[4]===n.isOpen?(h=t[5],p=t[6]):(h=()=>{n.isOpen&&o.current&&(o.current.focus(),o.current.select())},p=[n.isOpen],t[4]=n.isOpen,t[5]=h,t[6]=p),(0,v.useEffect)(h,p);let f;t[7]!==n.findText||t[8]!==n.isOpen?(f=()=>{if(!n.isOpen){gs();return}if(n.findText===""){i(void 0),gs();return}m(),ap()},t[7]=n.findText,t[8]=n.isOpen,t[9]=f):f=t[9];let g;if(t[10]!==n.caseSensitive||t[11]!==n.findText||t[12]!==n.isOpen||t[13]!==n.regexp||t[14]!==n.wholeWord?(g=[n.findText,n.isOpen,n.caseSensitive,n.regexp,n.wholeWord],t[10]=n.caseSensitive,t[11]=n.findText,t[12]=n.isOpen,t[13]=n.regexp,t[14]=n.wholeWord,t[15]=g):g=t[15],(0,v.useEffect)(f,g),!n.isOpen)return null;let x=n.currentView,b;t[16]!==s||t[17]!==x?(b=x&&s?(re=s.position.get(x.view))==null?void 0:re.get(`${x.range.from}:${x.range.to}`):void 0,t[16]=s,t[17]=x,t[18]=b):b=t[18];let y=b,j;t[19]===Symbol.for("react.memo_cache_sentinel")?(j=()=>r(!0),t[19]=j):j=t[19];let w;t[20]===Symbol.for("react.memo_cache_sentinel")?(w=()=>r(!1),t[20]=w):w=t[20];let _;t[21]===a?_=t[22]:(_=U=>{U.key==="Escape"&&a({type:"setIsOpen",isOpen:!1})},t[21]=a,t[22]=_);let N;t[23]===a?N=t[24]:(N=()=>a({type:"setIsOpen",isOpen:!1}),t[23]=a,t[24]=N);let C;t[25]===Symbol.for("react.memo_cache_sentinel")?(C=(0,l.jsx)($e,{className:"w-4 h-4"}),t[25]=C):C=t[25];let I;t[26]===N?I=t[27]:(I=(0,l.jsx)("div",{className:"absolute top-0 right-0",children:(0,l.jsx)(oe,{"data-testid":"close-find-replace-button",onClick:N,size:"xs",variant:"text",children:C})}),t[26]=N,t[27]=I);let R;t[28]===a?R=t[29]:(R=U=>{a({type:"setFind",find:U.target.value})},t[28]=a,t[29]=R);let k;t[30]!==n.findText||t[31]!==R?(k=(0,l.jsx)(Dn,{ref:o,"data-testid":"find-input",value:n.findText,autoFocus:!0,className:"mr-2 mb-0",placeholder:"Find",onKeyDown:di,onChange:R}),t[30]=n.findText,t[31]=R,t[32]=k):k=t[32];let S;t[33]===a?S=t[34]:(S=U=>{a({type:"setReplace",replace:U.target.value})},t[33]=a,t[34]=S);let z;t[35]!==n.replaceText||t[36]!==S?(z=(0,l.jsx)(Dn,{"data-testid":"replace-input",value:n.replaceText,placeholder:"Replace",onChange:S}),t[35]=n.replaceText,t[36]=S,t[37]=z):z=t[37];let E;t[38]!==k||t[39]!==z?(E=(0,l.jsxs)("div",{className:"flex flex-col flex-2 gap-2 w-[55%]",children:[k,z]}),t[38]=k,t[39]=z,t[40]=E):E=t[40];let O=n.caseSensitive?"on":"off",P;t[41]===a?P=t[42]:(P=U=>a({type:"setCaseSensitive",caseSensitive:U}),t[41]=a,t[42]=P);let D;t[43]===Symbol.for("react.memo_cache_sentinel")?(D=(0,l.jsx)(th,{className:"w-4 h-4"}),t[43]=D):D=t[43];let M;t[44]!==n.caseSensitive||t[45]!==O||t[46]!==P?(M=(0,l.jsx)(te,{content:"Case Sensitive",children:(0,l.jsx)(Ln,{size:"sm",pressed:n.caseSensitive,"data-state":O,onPressedChange:P,children:D})}),t[44]=n.caseSensitive,t[45]=O,t[46]=P,t[47]=M):M=t[47];let T=n.wholeWord?"on":"off",L;t[48]===a?L=t[49]:(L=U=>a({type:"setWholeWord",wholeWord:U}),t[48]=a,t[49]=L);let A;t[50]===Symbol.for("react.memo_cache_sentinel")?(A=(0,l.jsx)(Js,{className:"w-4 h-4"}),t[50]=A):A=t[50];let q;t[51]!==n.wholeWord||t[52]!==T||t[53]!==L?(q=(0,l.jsx)(te,{content:"Match Whole Word",children:(0,l.jsx)(Ln,{size:"sm",pressed:n.wholeWord,"data-state":T,onPressedChange:L,children:A})}),t[51]=n.wholeWord,t[52]=T,t[53]=L,t[54]=q):q=t[54];let X=n.regexp?"on":"off",K;t[55]===a?K=t[56]:(K=U=>a({type:"setRegex",regexp:U}),t[55]=a,t[56]=K);let $;t[57]===Symbol.for("react.memo_cache_sentinel")?($=(0,l.jsx)(Ks,{className:"w-4 h-4"}),t[57]=$):$=t[57];let Q;t[58]!==n.regexp||t[59]!==X||t[60]!==K?(Q=(0,l.jsx)(te,{content:"Use Regular Expression",children:(0,l.jsx)(Ln,{size:"sm",pressed:n.regexp,"data-state":X,onPressedChange:K,children:$})}),t[58]=n.regexp,t[59]=X,t[60]=K,t[61]=Q):Q=t[61];let B;t[62]!==M||t[63]!==q||t[64]!==Q?(B=(0,l.jsxs)("div",{className:"flex items-center gap-[2px]",children:[M,q,Q]}),t[62]=M,t[63]=q,t[64]=Q,t[65]=B):B=t[65];let le;t[66]===Symbol.for("react.memo_cache_sentinel")?(le=()=>{ai()&&m()},t[66]=le):le=t[66];let F=n.findText==="",G;t[67]===F?G=t[68]:(G=(0,l.jsx)(oe,{"data-testid":"replace-next-button",size:"xs",variant:"outline",className:"h-6 text-xs",onClick:le,disabled:F,children:"Replace Next"}),t[67]=F,t[68]=G);let Y;t[69]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{let U=li();if(!U)return;m();let{dismiss:Ye}=Ut({title:"Replaced all occurrences",action:(0,l.jsx)(_f,{"data-testid":"undo-replace-all-button",onClick:()=>{U(),Be()}})}),Be=Ye},t[69]=Y):Y=t[69];let J=n.findText==="",ee;t[70]===J?ee=t[71]:(ee=(0,l.jsx)(oe,{"data-testid":"replace-all-button",size:"xs",variant:"outline",className:"h-6 text-xs",onClick:Y,disabled:J,children:"Replace All"}),t[70]=J,t[71]=ee);let se;t[72]!==G||t[73]!==ee?(se=(0,l.jsxs)("div",{className:"flex items-center gap-[2px]",children:[G,ee]}),t[72]=G,t[73]=ee,t[74]=se):se=t[74];let ae;t[75]!==B||t[76]!==se?(ae=(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[B,se]}),t[75]=B,t[76]=se,t[77]=ae):ae=t[77];let de;t[78]!==E||t[79]!==ae?(de=(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[E,ae]}),t[78]=E,t[79]=ae,t[80]=de):de=t[80];let ce;t[81]===Symbol.for("react.memo_cache_sentinel")?(ce=(0,l.jsx)(te,{content:"Find Previous",children:(0,l.jsx)(oe,{"data-testid":"find-prev-button",size:"xs",variant:"secondary",onClick:ui,children:(0,l.jsx)(q1,{className:"w-4 h-4"})})}),t[81]=ce):ce=t[81];let ve;t[82]===Symbol.for("react.memo_cache_sentinel")?(ve=(0,l.jsx)(te,{content:"Find Next",children:(0,l.jsx)(oe,{"data-testid":"find-next-button",size:"xs",variant:"secondary",onClick:mi,children:(0,l.jsx)($1,{className:"w-4 h-4"})})}),t[82]=ve):ve=t[82];let me;t[83]!==y||t[84]!==s?(me=s!=null&&y==null&&(0,l.jsxs)("span",{className:"text-sm",children:[s.count," matches"]}),t[83]=y,t[84]=s,t[85]=me):me=t[85];let pe;t[86]!==y||t[87]!==s?(pe=s!=null&&y!=null&&(0,l.jsxs)("span",{className:"text-sm",children:[y+1," of ",s.count]}),t[86]=y,t[87]=s,t[88]=pe):pe=t[88];let ie;t[89]!==me||t[90]!==pe?(ie=(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[ce,ve,me,pe]}),t[89]=me,t[90]=pe,t[91]=ie):ie=t[91];let ue;t[92]===c?ue=t[93]:(ue=c.getHotkey("cell.findAndReplace"),t[92]=c,t[93]=ue);let he;t[94]===ue.key?he=t[95]:(he=(0,l.jsxs)("div",{className:"text-xs text-muted-foreground flex gap-1 mt-2",children:["Press"," ",(0,l.jsx)(hf,{shortcut:ue.key})," ","again to open the native browser search."]}),t[94]=ue.key,t[95]=he);let ye;return t[96]!==I||t[97]!==de||t[98]!==ie||t[99]!==he||t[100]!==_?(ye=(0,l.jsx)(Mn,{restoreFocus:!0,autoFocus:!0,children:(0,l.jsxs)("div",{onFocus:j,onClick:ci,onBlur:w,className:"fixed top-0 right-0 w-[500px] flex flex-col bg-(--sage-1) p-4 z-50 mt-2 mr-3 rounded-md shadow-lg border gap-2 print:hidden",onKeyDown:_,children:[I,de,ie,he]})}),t[96]=I,t[97]=de,t[98]=ie,t[99]=he,t[100]=_,t[101]=ye):ye=t[101],ye};function ci(t){t.stopPropagation(),t.preventDefault()}function di(t){t.key==="Enter"&&(t.shiftKey?Vn():Dr())}function ui(){return Vn()}function mi(){return Dr()}var hi=W(H(),1),pi=200;function Bn(t){let e=(0,hi.c)(3),[r,n]=(0,v.useState)(!1),a,s;return e[0]===t?(a=e[1],s=e[2]):(a=()=>{if(!t)return;n(!1);let i=setTimeout(()=>{n(!0)},pi);return()=>clearTimeout(i)},s=[t],e[0]=t,e[1]=a,e[2]=s),(0,v.useEffect)(a,s),t&&r}var fi=W(H(),1);const xi=()=>{let t=(0,fi.c)(6),e=Nt(xh),r;t[0]===e?r=t[1]:(r=()=>e(gi),t[0]=e,t[1]=r);let n=r,a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=et("global.commandPalette"),t[2]=a):a=t[2];let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(_h,{strokeWidth:1.5,size:18}),t[3]=s):s=t[3];let i;return t[4]===n?i=t[5]:(i=(0,l.jsx)(te,{content:a,children:(0,l.jsx)(st,{"data-testid":"command-palette-button",onClick:n,shape:"rectangle",color:"hint-green",children:s})}),t[4]=n,t[5]=i),i};function gi(t){return!t}var Mr=W(H(),1);const vi=t=>{let e=(0,Mr.c)(47),{presenting:r,onTogglePresenting:n,onInterrupt:a,onRun:s,connectionState:i,running:o,appConfig:c}=t,d=c.width,u=Z($0),m=Z(A0),{undoDeleteCell:h}=We(),p=i===at.CLOSED,f=null;if(!p&&u){let L;e[0]===Symbol.for("react.memo_cache_sentinel")?(L=(0,l.jsx)(jh,{size:16,strokeWidth:1.5}),e[0]=L):L=e[0];let A;e[1]===h?A=e[2]:(A=(0,l.jsx)(te,{content:"Undo cell deletion",children:(0,l.jsx)(st,{"data-testid":"undo-delete-cell",size:"medium",color:"hint-green",shape:"circle",onClick:h,children:L})}),e[1]=h,e[2]=A),f=A}let g;e[3]===i?g=e[4]:(g=qe(i),e[3]=i,e[4]=g);let x=g,b;e[5]!==i||e[6]!==x?(b=x?xr(i):void 0,e[5]=i,e[6]=x,e[7]=b):b=e[7];let y=b,j;e[8]===r?j=e[9]:(j=!r&&(0,l.jsx)(oi,{}),e[8]=r,e[9]=j);let w;e[10]!==p||e[11]!==y||e[12]!==x||e[13]!==r?(w=!p&&(0,l.jsxs)("div",{className:ji,children:[r&&(0,l.jsx)(yh,{}),(0,l.jsx)(ri,{disabled:x,tooltip:y}),(0,l.jsx)(Np,{disabled:x,tooltip:y}),(0,l.jsx)(_p,{description:"This will terminate the Python kernel. You'll lose all data that's in memory.",disabled:x,tooltip:y})]}),e[10]=p,e[11]=y,e[12]=x,e[13]=r,e[14]=w):w=e[14];let _=d==="compact"&&"xl:flex-row items-end",N;e[15]===_?N=e[16]:(N=V(wi,_),e[15]=_,e[16]=N);let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=(0,l.jsx)(Fs,{children:(0,l.jsx)(Qh,{kioskMode:!1})}),e[17]=C):C=e[17];let I;e[18]===Symbol.for("react.memo_cache_sentinel")?(I=et("global.hideCode"),e[18]=I):I=e[18];let R;e[19]===r?R=e[20]:(R=r?(0,l.jsx)(Op,{strokeWidth:1.5,size:18}):(0,l.jsx)(ph,{strokeWidth:1.5,size:18}),e[19]=r,e[20]=R);let k;e[21]!==n||e[22]!==R?(k=(0,l.jsx)(te,{content:I,children:(0,l.jsx)(st,{"data-testid":"hide-code-button",id:"preview-button",shape:"rectangle",color:"hint-green",onClick:n,children:R})}),e[21]=n,e[22]=R,e[23]=k):k=e[23];let S,z,E;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=(0,l.jsx)(xi,{}),z=(0,l.jsx)(eh,{}),E=(0,l.jsx)("div",{}),e[24]=S,e[25]=z,e[26]=E):(S=e[24],z=e[25],E=e[26]);let O;e[27]!==p||e[28]!==a||e[29]!==o?(O=!p&&(0,l.jsx)(yi,{running:o,onInterrupt:a}),e[27]=p,e[28]=a,e[29]=o,e[30]=O):O=e[30];let P;e[31]!==p||e[32]!==m||e[33]!==s?(P=!p&&(0,l.jsx)(bi,{needsRun:m,onRun:s}),e[31]=p,e[32]=m,e[33]=s,e[34]=P):P=e[34];let D;e[35]!==O||e[36]!==P||e[37]!==f?(D=(0,l.jsx)(Fs,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[f,O,P]})}),e[35]=O,e[36]=P,e[37]=f,e[38]=D):D=e[38];let M;e[39]!==k||e[40]!==D||e[41]!==N?(M=(0,l.jsxs)("div",{className:N,children:[C,k,S,z,E,D]}),e[39]=k,e[40]=D,e[41]=N,e[42]=M):M=e[42];let T;return e[43]!==M||e[44]!==j||e[45]!==w?(T=(0,l.jsxs)(l.Fragment,{children:[j,w,M]}),e[43]=M,e[44]=j,e[45]=w,e[46]=T):T=e[46],T};var bi=t=>{let e=(0,Mr.c)(8),{needsRun:r,onRun:n}=t,a=Z(ss);if(r){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=et("global.runStale"),e[0]=c):c=e[0];let d=a?n:void 0,u=!a,m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(Gt,{strokeWidth:1.5,size:16}),e[1]=m):m=e[1];let h;return e[2]!==d||e[3]!==u?(h=(0,l.jsx)(te,{content:c,children:(0,l.jsx)(st,{"data-testid":"run-button",size:"medium",color:"yellow",shape:"circle",onClick:d,disabled:u,children:m})}),e[2]=d,e[3]=u,e[4]=h):h=e[4],h}let s=!a,i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(Gt,{strokeWidth:1.5,size:16}),e[5]=i):i=e[5];let o;return e[6]===s?o=e[7]:(o=(0,l.jsx)(te,{content:"Nothing to run",children:(0,l.jsx)(st,{"data-testid":"run-button",className:"inactive-button",color:"disabled",size:"medium",shape:"circle",disabled:s,children:i})}),e[6]=s,e[7]=o),o},yi=t=>{let e=(0,Mr.c)(8),{running:r,onInterrupt:n}=t,a=Bn(r),s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=et("global.interrupt"),e[0]=s):s=e[0];let i=!a&&"inactive-button active:shadow-xs-solid",o;e[1]===i?o=e[2]:(o=V(i),e[1]=i,e[2]=o);let c=a?"yellow":"disabled",d=a?n:St.NOOP,u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(ds,{strokeWidth:1.5,size:16}),e[3]=u):u=e[3];let m;return e[4]!==o||e[5]!==c||e[6]!==d?(m=(0,l.jsx)(te,{content:s,children:(0,l.jsx)(st,{className:o,"data-testid":"interrupt-button",size:"medium",color:c,shape:"circle",onClick:d,children:u})}),e[4]=o,e[5]=c,e[6]=d,e[7]=m):m=e[7],m},ji="absolute top-3 right-5 m-0 flex items-center gap-2 min-h-[28px] no-print pointer-events-auto z-30 print:hidden",wi="absolute bottom-5 right-5 flex flex-col gap-2 items-center no-print pointer-events-auto z-30 print:hidden",_i=W(H(),1);const Ni=t=>{let e=(0,_i.c)(7),{filename:r}=t,n=bf(),a;e[0]===r?a=e[1]:(a=r?Xa.basename(r):"untitled marimo notebook",e[0]=r,e[1]=a);let s=r===null?"missing-filename":"filename",i;return e[2]!==r||e[3]!==n||e[4]!==a||e[5]!==s?(i=(0,l.jsx)(ip,{placeholderText:a,initialValue:r,onNameChange:n,flexibleWidth:!0,resetOnBlur:!0,"data-testid":"filename-input",className:s}),e[2]=r,e[3]=n,e[4]=a,e[5]=s,e[6]=i):i=e[6],i};var gt=W(H(),1),Ci=t=>{let e=(0,gt.c)(14),{actions:r,cellIds:n,disabled:a}=t,s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(In,{size:13,strokeWidth:1.5}),e[0]=s):s=e[0];let i;e[1]===a?i=e[2]:(i=(0,l.jsx)(ht,{asChild:!0,children:(0,l.jsx)(oe,{variant:"ghost",size:"sm",className:"h-8 px-2 gap-1",title:"More actions",disabled:a,children:s})}),e[1]=a,e[2]=i);let o;if(e[3]!==r||e[4]!==n){let u;e[6]!==r.length||e[7]!==n?(u=(m,h)=>{let p=m.map(f=>(0,l.jsx)(Cr,{onSelect:()=>f.handle(n),className:"flex items-center gap-2",children:(0,l.jsxs)("div",{className:"flex items-center flex-1",children:[f.icon&&(0,l.jsx)("div",{className:"mr-2 w-5 text-muted-foreground",children:f.icon}),(0,l.jsx)("div",{className:"flex-1",children:f.label}),f.hotkey&&(0,l.jsx)(Pn,{shortcut:f.hotkey,className:"ml-4"})]})},f.label));return(0,l.jsxs)(v.Fragment,{children:[p,h<r.length-1&&(0,l.jsx)(mt,{})]},h)},e[6]=r.length,e[7]=n,e[8]=u):u=e[8],o=r.flatMap(u),e[3]=r,e[4]=n,e[5]=o}else o=e[5];let c;e[9]===o?c=e[10]:(c=(0,l.jsx)(pt,{align:"start","data-keep-cell-selection":!0,children:o}),e[9]=o,e[10]=c);let d;return e[11]!==i||e[12]!==c?(d=(0,l.jsxs)(ft,{children:[i,c]}),e[11]=i,e[12]=c,e[13]=d):d=e[13],d};function ki(t){let e=(0,gt.c)(31),{updateCellConfig:r,moveCell:n,clearCellOutput:a,sendToTop:s,sendToBottom:i}=We(),o=Ts(),c=Z(X0),d=Rn(),u=Os(),m=En(),h=Z(y1),{saveCellConfig:p}=Ze(),f=t.length,g=!c||f<t.length,x;e[0]!==o||e[1]!==m||e[2]!==d||e[3]!==h?(x=D=>{if(m.idle&&h.keymap.destructive_delete){m.submit(D);return}o({cellIds:D}),m.clear(),d.clear()},e[0]=o,e[1]=m,e[2]=d,e[3]=h,e[4]=x):x=e[4];let b=je(x),y;e[5]===n?y=e[6]:(y=(D,M)=>{if(M==="down"){let T=D[D.length-1];if(dt.get(un).cellIds.findWithId(T).last()===T)return}if(M==="up"){let T=D[0];if(dt.get(un).cellIds.findWithId(T).first()===T)return}(M==="up"?D:[...D].reverse()).forEach(T=>{n({cellId:T,before:M==="up"})})},e[5]=n,e[6]=y);let j=je(y),w;e[7]===s?w=e[8]:(w=D=>{[...D].reverse().forEach(M=>{s({cellId:M})})},e[7]=s,e[8]=w);let _=je(w),N;e[9]===i?N=e[10]:(N=D=>{D.forEach(M=>{i({cellId:M})})},e[9]=i,e[10]=N);let C=je(N),I=je(Mi),R;e[11]===a?R=e[12]:(R=D=>{D.forEach(M=>{a({cellId:M})})},e[11]=a,e[12]=R);let k=je(R),S;e[13]!==p||e[14]!==r?(S=async(D,M,T)=>{let L={};D.forEach(A=>{L[A]={[M]:T}}),await p({configs:L}),D.forEach(A=>{r({cellId:A,config:L[A]})})},e[13]=p,e[14]=r,e[15]=S):S=e[15];let z=je(S),E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=(0,l.jsx)(Gt,{size:13,strokeWidth:1.5}),e[16]=E):E=e[16];let O;e[17]===u?O=e[18]:(O=D=>u(D),e[17]=u,e[18]=O);let P;if(e[19]!==g||e[20]!==k||e[21]!==b||e[22]!==I||e[23]!==j||e[24]!==C||e[25]!==_||e[26]!==O||e[27]!==z){let D=[[{icon:E,label:"Run cells",handle:O,hotkey:"cell.run"}],[{icon:(0,l.jsx)(Cn,{size:13,strokeWidth:1.5}),label:"Move up",handle:A=>j(A,"up"),hotkey:"cell.moveUp"},{icon:(0,l.jsx)(ut,{size:13,strokeWidth:1.5}),label:"Move down",handle:A=>j(A,"down"),hotkey:"cell.moveDown"}],[{icon:(0,l.jsx)(Ss,{size:13,strokeWidth:1.5}),label:"Delete cells",variant:"danger",hidden:!g,handle:b}]],M=[[{icon:(0,l.jsx)(Gh,{size:13,strokeWidth:1.5}),label:"Format cells",handle:I,hotkey:"cell.format"},{icon:(0,l.jsx)(Nh,{size:13,strokeWidth:1.5}),label:"Clear outputs",handle:k}],[{icon:(0,l.jsx)(Xh,{size:13,strokeWidth:1.5}),label:"Hide code",handle:A=>z(A,"hide_code",!0),hotkey:"cell.hideCode"},{icon:(0,l.jsx)(V0,{size:13,strokeWidth:1.5}),label:"Show code",handle:A=>z(A,"hide_code",!1),hotkey:"cell.hideCode"}],[{icon:(0,l.jsx)(Cn,{size:13,strokeWidth:1.5}),label:"Move up",handle:A=>j(A,"up"),hotkey:"cell.moveUp"},{icon:(0,l.jsx)(ut,{size:13,strokeWidth:1.5}),label:"Move down",handle:A=>j(A,"down"),hotkey:"cell.moveDown"},{icon:(0,l.jsx)(mh,{size:13,strokeWidth:1.5}),label:"Send to top",handle:_,hotkey:"cell.sendToTop"},{icon:(0,l.jsx)(dh,{size:13,strokeWidth:1.5}),label:"Send to bottom",handle:C,hotkey:"cell.sendToBottom"}],[{icon:(0,l.jsx)(Ue,{size:13,strokeWidth:1.5}),label:"Disable cells",handle:A=>z(A,"disabled",!0)},{icon:(0,l.jsx)(Ke,{size:13,strokeWidth:1.5}),label:"Enable cells",handle:A=>z(A,"disabled",!1)}]],T=D.map(zi),L;e[29]===T?L=e[30]:(L=T.filter(Ei),e[29]=T,e[30]=L),P={actions:L,moreActions:M.map(Ii).filter(Si)},e[19]=g,e[20]=k,e[21]=b,e[22]=I,e[23]=j,e[24]=C,e[25]=_,e[26]=O,e[27]=z,e[28]=P}else P=e[28];return P}function Si(t){return t.length>0}function Ii(t){return t.filter(Ri)}function Ri(t){return!t.hidden}function Ei(t){return t.length>0}function zi(t){return t.filter(Di)}function Di(t){return!t.hidden}function Mi(t){let e={};t.forEach(r=>{let n=Ua(r);n&&(e[r]=n)}),U0(e)}const Oi=()=>{let t=(0,gt.c)(4),e=lp(),r;t[0]===e.selected?r=t[1]:(r=[...e.selected],t[0]=e.selected,t[1]=r);let n=r;if(n.length<2)return null;let a;return t[2]===n?a=t[3]:(a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Ai,{cellIds:n}),(0,l.jsx)(Ti,{cellIds:n})]}),t[2]=n,t[3]=a),a};var Or=()=>{let t=(0,gt.c)(1),e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)("div",{className:"h-4 w-px bg-border mx-1"}),t[0]=e):e=t[0],e},Ti=t=>{let e=(0,gt.c)(12),{cellIds:r}=t,n=En(),a=Ts(),s=Rn();if(!n.shouldConfirmDelete)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(On,{className:"w-4 h-4 text-(--amber-11) mt-0.5 shrink-0"}),e[0]=i):i=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsxs)("div",{className:"font-code text-sm text-[0.84375rem]",children:[(0,l.jsx)("p",{className:"text-(--amber-11) font-medium",children:"Some cells in selection may contain expensive operations."}),(0,l.jsx)("p",{className:"text-(--amber-11) mt-1",children:"Are you sure you want to delete?"})]}),e[1]=o):o=e[1];let c;e[2]===n?c=e[3]:(c=(0,l.jsx)(oe,{size:"xs",variant:"ghost",onClick:()=>n.clear(),className:"text-(--amber-11) hover:bg-(--amber-4) hover:text-(--amber-11)",children:"Cancel"}),e[2]=n,e[3]=c);let d;e[4]!==r||e[5]!==a||e[6]!==n||e[7]!==s?(d=(0,l.jsx)(oe,{size:"xs",variant:"secondary",onClick:()=>{a({cellIds:r}),n.clear(),s.clear()},className:"bg-(--amber-11) hover:bg-(--amber-12) text-white border-(--amber-11)",children:"Delete"}),e[4]=r,e[5]=a,e[6]=n,e[7]=s,e[8]=d):d=e[8];let u;return e[9]!==c||e[10]!==d?(u=(0,l.jsx)("div",{className:"absolute top-12 justify-center flex w-full left-0 right-0 z-50","data-keep-cell-selection":!0,children:(0,l.jsx)("div",{className:"mx-20",children:(0,l.jsx)("div",{className:"bg-(--amber-2) border border-(--amber-6) rounded-lg shadow-lg mt-14 px-4 py-3 animate-in slide-in-from-top-2 duration-200",children:(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[i,(0,l.jsxs)("div",{className:"flex-1",children:[o,(0,l.jsx)(Mn,{restoreFocus:!0,autoFocus:!0,children:(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-3",onKeyDown:Pi,children:[c,d]})})]})]})})})}),e[9]=c,e[10]=d,e[11]=u):u=e[11],u},Ai=t=>{let e=(0,gt.c)(23),{cellIds:r}=t,n=Rn(),a=En(),{actions:s,moreActions:i}=ki(r),o=r.length,c;e[0]!==a||e[1]!==n?(c=x=>{(x.target instanceof HTMLElement||x.target instanceof SVGElement)&&x.target.closest("[data-keep-cell-selection]")!==null||x.target instanceof HTMLHtmlElement||(a.clear(),n.clear())},e[0]=a,e[1]=n,e[2]=c):c=e[2],k1(window,"mousedown",c);let d=!a.idle,u;e[3]===o?u=e[4]:(u=(0,l.jsxs)("span",{className:"text-sm font-medium text-muted-foreground px-2 shrink-0",children:[o," cells selected"]}),e[3]=o,e[4]=u);let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(Or,{}),e[5]=m):m=e[5];let h;if(e[6]!==s||e[7]!==r||e[8]!==d){let x;e[10]!==s.length||e[11]!==r||e[12]!==d?(x=(b,y)=>(0,l.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[b.map(j=>(0,l.jsxs)(oe,{variant:j.variant==="danger"?"linkDestructive":"ghost",size:"sm",onClick:()=>j.handle(r),className:"h-8 px-2 gap-1 shrink-0 flex items-center",title:j.label,disabled:d&&j.label!=="Delete cells",children:[j.icon,(0,l.jsx)("span",{className:"text-xs",children:j.label}),j.hotkey&&(0,l.jsx)("div",{className:"ml-1 border bg-muted rounded-md px-1",children:(0,l.jsx)(Pn,{shortcut:j.hotkey})})]},j.label)),y<s.length-1&&(0,l.jsx)(Or,{})]},y),e[10]=s.length,e[11]=r,e[12]=d,e[13]=x):x=e[13],h=s.map(x),e[6]=s,e[7]=r,e[8]=d,e[9]=h}else h=e[9];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(Or,{}),e[14]=p):p=e[14];let f;e[15]!==r||e[16]!==d||e[17]!==i?(f=(0,l.jsx)(Ci,{actions:i,cellIds:r,disabled:d}),e[15]=r,e[16]=d,e[17]=i,e[18]=f):f=e[18];let g;return e[19]!==u||e[20]!==h||e[21]!==f?(g=(0,l.jsx)("div",{className:"absolute top-12 justify-center flex w-full left-0 right-0 z-50","data-keep-cell-selection":!0,children:(0,l.jsx)("div",{className:"bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 border border-(--slate-7) rounded-lg shadow-lg p-2 overflow-x-auto overflow-y-hidden mx-20 scrollbar-thin",children:(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[u,m,h,p,f]})})}),e[19]=u,e[20]=h,e[21]=f,e[22]=g):g=e[22],g};function Pi(t){t.stopPropagation()}var Dt=W(Q0()),Li={display:"none"};function Fi(t){let{id:e,value:r}=t;return v.createElement("div",{id:e,style:Li},r)}function Wi(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;return v.createElement("div",{id:e,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}function Vi(){let[t,e]=(0,v.useState)("");return{announce:(0,v.useCallback)(r=>{r!=null&&e(r)},[]),announcement:t}}var Hn=(0,v.createContext)(null);function Bi(t){let e=(0,v.useContext)(Hn);(0,v.useEffect)(()=>{if(!e)throw Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function Hi(){let[t]=(0,v.useState)(()=>new Set),e=(0,v.useCallback)(r=>(t.add(r),()=>t.delete(r)),[t]);return[(0,v.useCallback)(r=>{let{type:n,event:a}=r;t.forEach(s=>{var i;return(i=s[n])==null?void 0:i.call(s,a)})},[t]),e]}var qi={draggable:`
3
3
  To pick up a draggable item, press the space bar.
4
4
  While dragging, use the arrow keys to move the item.
5
5
  Press space again to drop the item in its new position, or press escape to cancel.
@@ -9,4 +9,4 @@ var x0=Object.defineProperty;var g0=(Ge,Xe,xt)=>Xe in Ge?x0(Ge,Xe,{enumerable:!0
9
9
  hover/column:bg-[var(--slate-3)] dark:hover/column:bg-[var(--slate-5)]
10
10
  hover/column:hover:bg-primary/60 dark:hover/column:hover:bg-primary/60`})}var Sa=W(H(),1);const _u=t=>{let e=(0,Sa.c)(10),{width:r}=t,{banners:n}=fp(),{removeBanner:a}=vp();if(n.length===0)return null;let s=r==="columns"&&"sticky left-12 w-full max-w-[80vw]",i;e[0]===s?i=e[1]:(i=V("flex flex-col gap-4 mb-5 print:hidden",s),e[0]=s,e[1]=i);let o;if(e[2]!==n||e[3]!==a){let d;e[5]===a?d=e[6]:(d=u=>(0,l.jsxs)(zt,{kind:u.variant||"info",className:"flex flex-col rounded p-3",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsxs)("span",{className:"font-bold text-lg flex items-center mb-2",children:[(0,l.jsx)(sn,{className:"w-5 h-5 inline-block mr-2"}),u.title]}),(0,l.jsx)(oe,{"data-testid":"remove-banner-button",variant:"text",size:"icon",onClick:()=>a(u.id),children:(0,l.jsx)($e,{className:"w-5 h-5"})})]}),(0,l.jsxs)("div",{className:"flex justify-between items-end",children:[(0,l.jsx)("span",{children:of({html:u.description})}),u.action==="restart"&&(0,l.jsx)(Nu,{})]})]},u.id),e[5]=a,e[6]=d),o=n.map(d),e[2]=n,e[3]=a,e[4]=o}else o=e[4];let c;return e[7]!==i||e[8]!==o?(c=(0,l.jsx)("div",{className:i,children:o}),e[7]=i,e[8]=o,e[9]=c):c=e[9],c};var Nu=()=>{let t=(0,Sa.c)(3),e=vh(),r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)(kp,{className:"w-3 h-3 mr-2"}),t[0]=r):r=t[0];let n;return t[1]===e?n=t[2]:(n=(0,l.jsxs)(oe,{"data-testid":"restart-session-button",variant:"link",size:"xs",onClick:e,children:[r,"Restart"]}),t[1]=e,t[2]=n),n},Cu=W(H(),1),ku=ur(t=>{let e=t(un);for(let r of e.cellIds.inOrderIds){let n=e.cellRuntime[r];if(n.status==="idle"&&n.consoleOutputs.some(a=>a.channel==="stdin"&&a.response===void 0))return!0}return!1});const Su=()=>{let t=(0,Cu.c)(3),e=Z(ku),r=Iu;if(!e)return null;let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)("div",{className:"flex justify-between",children:(0,l.jsx)("span",{className:"font-bold text-lg flex items-center mb-1",children:"Program waiting for input"})}),t[0]=n):n=t[0];let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(uf,{className:"inline",children:"stdin"}),t[1]=a):a=t[1];let s;return t[2]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(jn,{milliseconds:2e3,children:(0,l.jsx)("div",{className:"flex flex-col gap-4 mb-5 fixed top-5 left-1/2 transform -translate-x-1/2 z-200 opacity-95",children:(0,l.jsxs)(zt,{kind:"info",className:"flex flex-col rounded py-2 px-4 animate-in slide-in-from-top w-fit",children:[n,(0,l.jsx)("div",{className:"flex flex-col gap-4 justify-between items-start text-muted-foreground text-base",children:(0,l.jsx)("div",{children:(0,l.jsxs)("p",{children:["The program is still running, but blocked on"," ",a,".",(0,l.jsx)(oe,{variant:"link",className:"h-auto font-normal",onClick:r,children:"Jump to the cell"})]})})})]})})}),t[2]=s):s=t[2],s};function Iu(){let t=document.querySelector("[data-stdin-blocking]");t?(t.scrollIntoView({behavior:"smooth",block:"center"}),requestAnimationFrame(()=>{t.focus()})):Ve.error("No element with data-stdin-blocking found")}function Ru(){os(Eu)}function Eu(){let t=setTimeout(zu,100);return()=>clearTimeout(t)}function zu(){requestAnimationFrame(Du)}function Du(){let t=window.location.hash,e=uh(t);if(e)Mu(e);else try{Ia()}catch(r){let n=r;Ve.warn("Error focusing first editor",n)}}function Ia(){var n,a;let{cellIds:t,cellData:e,cellHandles:r}=fr();for(let s of t.iterateTopLevelIds){let i=r[s];if(!((n=e[s])!=null&&n.config.hide_code)&&((a=i==null?void 0:i.current)!=null&&a.editorView)){i.current.editorView.focus();return}}}var Ra=!1;function Mu(t){var r,n;if(Ra)return;let e=document.querySelector(`[data-cell-name="${t}"]`);if(e){if(e.scrollIntoView({behavior:"smooth",block:"start"}),Ra=!0,e instanceof HTMLElement){e.focus();let{cellHandles:a}=fr(),s=e.dataset.cellId;if(!s){Ve.error(`Missing cellId for cell with name ${t}`);return}let i=(n=(r=a[s])==null?void 0:r.current)==null?void 0:n.editorView;i&&i.focus()}}else Ve.warn(`Cannot focus cell with name ${t} because it was not found`),Ia()}var dr=W(H(),1);const Ou=t=>{let e=(0,dr.c)(8),r=Z(P0),n=t.appConfig.width==="columns",a;e[0]===t?a=e[1]:(a=(0,l.jsx)(Tu,{...t}),e[0]=t,e[1]=a);let s;e[2]!==r||e[3]!==a?(s=(0,l.jsx)(jl,{"data-testid":"column-container",items:r,strategy:ic,children:a}),e[2]=r,e[3]=a,e[4]=s):s=e[4];let i;return e[5]!==n||e[6]!==s?(i=(0,l.jsx)(iu,{multiColumn:n,children:s}),e[5]=n,e[6]=s,e[7]=i):i=e[7],i};var Tu=t=>{let e=(0,dr.c)(28),{mode:r,userConfig:n,appConfig:a}=t,s=We(),{theme:i}=V1(),{toggleSidebarPanel:o}=gr();Ru(),Re("global.focusTop",s.focusTopCell),Re("global.focusBottom",s.focusBottomCell),Re("global.toggleSidebar",o),Re("global.foldCode",s.foldAll),Re("global.unfoldCode",s.unfoldAll),Re("global.formatAll",Lu),Re("cell.hideCode",St.NOOP),Re("cell.format",St.NOOP);let c=dn(),d=k0(),u=c.getColumnIds(),m=s.scrollToTarget,h;e[0]!==d||e[1]!==m?(h=()=>{d!==null&&m()},e[0]=d,e[1]=m,e[2]=h):h=e[2];let p;e[3]!==c||e[4]!==d||e[5]!==m?(p=[c,d,m],e[3]=c,e[4]=d,e[5]=m,e[6]=p):p=e[6],(0,v.useEffect)(h,p);let f=B1,g,x,b,y;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=(0,l.jsx)(Bd,{}),x=(0,l.jsx)(wc,{}),b=(0,l.jsx)(Su,{}),y=(0,l.jsx)(fu,{}),e[7]=g,e[8]=x,e[9]=b,e[10]=y):(g=e[7],x=e[8],b=e[9],y=e[10]);let j;e[11]===a.width?j=e[12]:(j=(0,l.jsx)(_u,{width:a.width}),e[11]=a.width,e[12]=j);let w=a.width==="columns"&&"grid grid-flow-col auto-cols-min gap-6",_;e[13]===w?_=e[14]:(_=V(w),e[13]=w,e[14]=_);let N=u.map((k,S)=>(0,l.jsx)(Au,{columnId:k,index:S,columnsLength:u.length,appConfig:a,mode:r,userConfig:n,theme:i},k)),C;e[15]!==_||e[16]!==N?(C=(0,l.jsx)("div",{className:_,children:N}),e[15]=_,e[16]=N,e[17]=C):C=e[17];let I;e[18]===Symbol.for("react.memo_cache_sentinel")?(I=(0,l.jsx)(If,{}),e[18]=I):I=e[18];let R;return e[19]!==f||e[20]!==a||e[21]!==j||e[22]!==C||e[23]!==g||e[24]!==x||e[25]!==b||e[26]!==y?(R=(0,l.jsxs)(f,{className:"pb-[40vh]",invisible:!1,appConfig:a,innerClassName:"pr-4",children:[g,x,b,y,j,C,I]}),e[19]=f,e[20]=a,e[21]=j,e[22]=C,e[23]=g,e[24]=x,e[25]=b,e[26]=y,e[27]=R):R=e[27],R},Au=t=>{let e=(0,dr.c)(54),{columnId:r,index:n,columnsLength:a,appConfig:s,mode:i,userConfig:o,theme:c}=t,d=dn(),u,m,h,p,f,g,x,b,y,j,w,_,N,C;if(e[0]!==s.width||e[1]!==d||e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==i||e[6]!==c||e[7]!==o){let k=d.get(r);$t(k,`Expected column for: ${r}`);let S;e[22]===d?S=e[23]:(S=d.hasOnlyOneId(),e[22]=d,e[23]=S);let z=S,E;e[24]===d.inOrderIds?E=e[25]:(E=d.inOrderIds.includes(H0),e[24]=d.inOrderIds,e[25]=E);let O=E;m=ka,w=r,_=n,N=n>0,C=n<a-1,p=s.width,f=a>1;let P=s.width==="columns"&&"opacity-0 group-hover/column:opacity-100",D;e[26]===P?D=e[27]:(D=V(P),e[26]=P,e[27]=D),e[28]!==r||e[29]!==D?(g=(0,l.jsx)(Pu,{columnId:r,className:D}),e[28]=r,e[29]=D,e[30]=g):g=e[30],u=jl,h=`column-${n+1}`,x=k.topLevelIds,b=cc,e[31]!==O||e[32]!==n||e[33]!==i||e[34]!==c||e[35]!==o?(y=n===0&&O&&(0,l.jsx)(ba,{cellId:"setup",theme:c,showPlaceholder:!1,canDelete:!0,mode:i,userConfig:o,isCollapsed:!1,collapseCount:0,canMoveX:!1},"setup"),e[31]=O,e[32]=n,e[33]=i,e[34]=c,e[35]=o,e[36]=y):y=e[36],j=k.topLevelIds.map(M=>M==="setup"?null:(0,l.jsx)(ba,{cellId:M,theme:c,showPlaceholder:z,canDelete:!z,mode:i,userConfig:o,isCollapsed:k.isCollapsed(M),collapseCount:k.getCount(M),canMoveX:s.width==="columns"},M)),e[0]=s.width,e[1]=d,e[2]=r,e[3]=a,e[4]=n,e[5]=i,e[6]=c,e[7]=o,e[8]=u,e[9]=m,e[10]=h,e[11]=p,e[12]=f,e[13]=g,e[14]=x,e[15]=b,e[16]=y,e[17]=j,e[18]=w,e[19]=_,e[20]=N,e[21]=C}else u=e[8],m=e[9],h=e[10],p=e[11],f=e[12],g=e[13],x=e[14],b=e[15],y=e[16],j=e[17],w=e[18],_=e[19],N=e[20],C=e[21];let I;e[37]!==u||e[38]!==h||e[39]!==x||e[40]!==b||e[41]!==y||e[42]!==j?(I=(0,l.jsxs)(u,{id:h,items:x,strategy:b,children:[y,j]}),e[37]=u,e[38]=h,e[39]=x,e[40]=b,e[41]=y,e[42]=j,e[43]=I):I=e[43];let R;return e[44]!==m||e[45]!==p||e[46]!==f||e[47]!==g||e[48]!==I||e[49]!==w||e[50]!==_||e[51]!==N||e[52]!==C?(R=(0,l.jsx)(m,{columnId:w,index:_,canMoveLeft:N,canMoveRight:C,width:p,canDelete:f,footer:g,children:I}),e[44]=m,e[45]=p,e[46]=f,e[47]=g,e[48]=I,e[49]=w,e[50]=_,e[51]=N,e[52]=C,e[53]=R):R=e[53],R},Pu=t=>{let e=(0,dr.c)(18),{columnId:r,className:n}=t,{createNewCell:a}=We(),[s,i]=nh(!1),o=Z(ls),c=Z(ss),d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=V("mb-0 rounded-none sm:px-4 md:px-5 lg:px-8 tracking-wide no-wrap whitespace-nowrap","hover:bg-accent hover:text-accent-foreground font-semibold uppercase text-xs"),e[0]=d):d=e[0];let u=d,m;e[1]!==o||e[2]!==r||e[3]!==a||e[4]!==s||e[5]!==i.toggle||e[6]!==c?(m=()=>s?(0,l.jsx)(Y1,{onClose:i.toggle}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(oe,{className:u,variant:"text",size:"sm",disabled:!c,onClick:()=>a({cellId:{type:"__end__",columnId:r},before:!1}),children:[(0,l.jsx)(Gs,{className:"mr-2 size-4 shrink-0"}),"Python"]}),(0,l.jsxs)(oe,{className:u,variant:"text",size:"sm",disabled:!c,onClick:()=>{zr({autoInstantiate:!0,createNewCell:a}),a({cellId:{type:"__end__",columnId:r},before:!1,code:hr.markdown.defaultCode,hideCode:!0})},children:[(0,l.jsx)(Xs,{className:"mr-2 size-4 shrink-0"}),"Markdown"]}),(0,l.jsxs)(oe,{className:u,variant:"text",size:"sm",disabled:!c,onClick:()=>{zr({autoInstantiate:!0,createNewCell:a}),a({cellId:{type:"__end__",columnId:r},before:!1,code:hr.sql.defaultCode})},children:[(0,l.jsx)(Ha,{className:"mr-2 size-4 shrink-0"}),"SQL"]}),(0,l.jsx)(te,{content:o?null:(0,l.jsx)("span",{children:"Enable via settings under AI Assist"}),delayDuration:100,asChild:!1,children:(0,l.jsxs)(oe,{className:u,variant:"text",size:"sm",disabled:!o||!c,onClick:i.toggle,children:[(0,l.jsx)(Sr,{className:"mr-2 size-4 shrink-0"}),"Generate with AI"]})})]}),e[1]=o,e[2]=r,e[3]=a,e[4]=s,e[5]=i.toggle,e[6]=c,e[7]=m):m=e[7];let h=m,p=!s&&"w-fit",f=s&&"w-full max-w-4xl shadow-lg shadow-(color:--blue-3)",g=s&&"opacity-100",x;e[8]!==n||e[9]!==p||e[10]!==f||e[11]!==g?(x=V("shadow-sm border border-border rounded transition-all duration-200 overflow-hidden divide-x divide-border flex",p,f,n,g),e[8]=n,e[9]=p,e[10]=f,e[11]=g,e[12]=x):x=e[12];let b;e[13]===h?b=e[14]:(b=h(),e[13]=h,e[14]=b);let y;return e[15]!==x||e[16]!==b?(y=(0,l.jsx)("div",{className:"flex justify-center mt-4 pt-6 pb-32 group gap-4 w-full print:hidden",children:(0,l.jsx)("div",{className:x,children:b})}),e[15]=x,e[16]=b,e[17]=y):y=e[17],y};function Lu(){q0()}var Fu=r1(t=>T1().syncCellIds(t),400);const Wu={onCellIdsChange:(t,e)=>{dt.get(Qp)||t.isEmpty()||e.isEmpty()||v0(t.inOrderIds,e.inOrderIds)||Fu({cell_ids:t.inOrderIds})}};var Vu=W(H(),1);const Ea=t=>{let e=(0,Vu.c)(70),{userConfig:r,appConfig:n,hideControls:a}=t,s=a===void 0?!1:a;b0(Ka,Wu.onCellIdsChange);let{setCells:i,mergeAllColumns:o,collapseAllCells:c,expandAllCells:d}=We(),u=Z(Jp),m=Z(z0),h=Z(F0),p=gf(),f=Nt(np),{sendComponentValues:g,sendInterrupt:x}=Ze(),b=u.mode==="edit",y=u.mode==="present",j=Z(E0),w;e[0]===g?w=e[1]:(w=()=>(ws.INSTANCE.start(g),Bu),e[0]=g,e[1]=w);let _;e[2]===Symbol.for("react.memo_cache_sentinel")?(_=[],e[2]=_):_=e[2],(0,v.useEffect)(w,_);let N=r.runtime.auto_instantiate,C;e[3]!==i||e[4]!==f?(C=(ce,ve)=>{i(ce),f({names:ce.map(Hu),codes:ce.map(qu),configs:ce.map($u),layout:ve})},e[3]=i,e[4]=f,e[5]=C):C=e[5];let I;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=_1(),e[6]=I):I=e[6];let R;e[7]!==C||e[8]!==r.runtime.auto_instantiate?(R={autoInstantiate:N,setCells:C,sessionId:I},e[7]=C,e[8]=r.runtime.auto_instantiate,e[9]=R):R=e[9];let{connection:k}=gp(R),S,z;e[10]!==n.app_title||e[11]!==p?(S=()=>{document.title=n.app_title||Xa.basename(p??"")||"Untitled Notebook"},z=[n.app_title,p],e[10]=n.app_title,e[11]=p,e[12]=S,e[13]=z):(S=e[12],z=e[13]),(0,v.useEffect)(S,z);let E=br(n.width),O;e[14]!==n.width||e[15]!==o||e[16]!==E?(O=()=>{E==="columns"&&n.width!=="columns"&&o()},e[14]=n.width,e[15]=o,e[16]=E,e[17]=O):O=e[17];let P;e[18]!==n.width||e[19]!==o||e[20]!==m||e[21]!==E?(P=[n.width,E,o,m],e[18]=n.width,e[19]=o,e[20]=m,e[21]=E,e[22]=P):P=e[22],(0,v.useEffect)(O,P);let D=cf(),M=df(),T=bh(),L;e[23]===D?L=e[24]:(L=()=>{D()},e[23]=D,e[24]=L),Re("global.runStale",L);let A;e[25]===x?A=e[26]:(A=()=>{x()},e[25]=x,e[26]=A),Re("global.interrupt",A);let q;e[27]===T?q=e[28]:(q=()=>{T()},e[27]=T,e[28]=q),Re("global.hideCode",q);let X;e[29]===M?X=e[30]:(X=()=>{M()},e[29]=M,e[30]=X),Re("global.runAll",X);let K;e[31]===c?K=e[32]:(K=()=>{c()},e[31]=c,e[32]=K),Re("global.collapseAllSections",K);let $;e[33]===d?$=e[34]:($=()=>{d()},e[33]=d,e[34]=$),Re("global.expandAllSections",$);let Q;e[35]!==n||e[36]!==r||e[37]!==u.mode?(Q=(0,l.jsx)(Ou,{mode:u.mode,userConfig:r,appConfig:n}),e[35]=n,e[36]=r,e[37]=u.mode,e[38]=Q):Q=e[38];let B=Q,le=n.width,F;e[39]===Symbol.for("react.memo_cache_sentinel")?(F=V("pt-4 sm:pt-12 pb-2 mb-4 print:hidden z-50","sticky left-0"),e[39]=F):F=e[39];let G;e[40]!==p||e[41]!==b?(G=b&&(0,l.jsx)("div",{className:"flex items-center justify-center container",children:(0,l.jsx)(Ni,{filename:p})}),e[40]=p,e[41]=b,e[42]=G):G=e[42];let Y;e[43]!==k||e[44]!==G?(Y=(0,l.jsx)(xp,{connection:k,className:F,children:G}),e[43]=k,e[44]=G,e[45]=Y):Y=e[45];let J;e[46]!==n||e[47]!==B||e[48]!==h||e[49]!==u.mode?(J=h&&(0,l.jsx)(cp,{appConfig:n,mode:u.mode,children:B}),e[46]=n,e[47]=B,e[48]=h,e[49]=u.mode,e[50]=J):J=e[50];let ee;e[51]!==n.width||e[52]!==k||e[53]!==j||e[54]!==Y||e[55]!==J?(ee=(0,l.jsxs)(up,{connection:k,isRunning:j,width:le,children:[Y,J]}),e[51]=n.width,e[52]=k,e[53]=j,e[54]=Y,e[55]=J,e[56]=ee):ee=e[56];let se;e[57]===Symbol.for("react.memo_cache_sentinel")?(se=(0,l.jsx)(Oi,{}),e[57]=se):se=e[57];let ae;e[58]!==n||e[59]!==k||e[60]!==s||e[61]!==y||e[62]!==j||e[63]!==D||e[64]!==x||e[65]!==T?(ae=!s&&(0,l.jsx)(Ir,{children:(0,l.jsx)(vi,{presenting:y,onTogglePresenting:T,onInterrupt:x,onRun:D,connectionState:k.state,running:j,appConfig:n})}),e[58]=n,e[59]=k,e[60]=s,e[61]=y,e[62]=j,e[63]=D,e[64]=x,e[65]=T,e[66]=ae):ae=e[66];let de;return e[67]!==ee||e[68]!==ae?(de=(0,l.jsxs)(l.Fragment,{children:[ee,se,ae]}),e[67]=ee,e[68]=ae,e[69]=de):de=e[69],de};function Bu(){ws.INSTANCE.stop()}function Hu(t){return t.name}function qu(t){return t.code}function $u(t){return t.config}const za=t=>Z(C0)[t.capability]?t.children:null;var Uu=W(H(),1);const Ae=(0,v.forwardRef)((t,e)=>{let r=(0,Uu.c)(18),n,a,s,i,o;r[0]===t?(n=r[1],a=r[2],s=r[3],i=r[4],o=r[5]):({children:n,tooltip:o,selected:i,className:a,...s}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=s,r[4]=i,r[5]=o);let c=!i&&"hover:bg-(--sage-3)",d=i&&"bg-(--sage-4)",u;r[6]!==a||r[7]!==c||r[8]!==d?(u=V("h-full flex items-center p-2 text-sm shadow-inset font-mono cursor-pointer rounded",c,d,a),r[6]=a,r[7]=c,r[8]=d,r[9]=u):u=r[9];let m;r[10]!==n||r[11]!==e||r[12]!==s||r[13]!==u?(m=(0,l.jsx)("div",{ref:e,className:u,...s,children:n}),r[10]=n,r[11]=e,r[12]=s,r[13]=u,r[14]=m):m=r[14];let h=m;if(o){let p;return r[15]!==h||r[16]!==o?(p=(0,l.jsx)(te,{content:o,side:"top",delayDuration:200,children:h}),r[15]=h,r[16]=o,r[17]=p):p=r[17],p}return h});Ae.displayName="FooterItem";var Ku=W(H(),1);const Gu=()=>{var p,f;let t=(0,Ku.c)(17),e=Z(b1),r=Z(ls),n=((p=e==null?void 0:e.models)==null?void 0:p.chat_model)||"openai/gpt-4o",a=((f=e==null?void 0:e.models)==null?void 0:f.edit_model)||n,{handleClick:s}=us();if(!r){let g;t[0]===s?g=t[1]:(g=()=>s("ai"),t[0]=s,t[1]=g);let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsx)(Sr,{className:"h-4 w-4 opacity-60"}),t[2]=x):x=t[2];let b;return t[3]===g?b=t[4]:(b=(0,l.jsx)(Ae,{tooltip:"Assist is disabled",selected:!1,onClick:g,"data-testid":"footer-ai-disabled",children:x}),t[3]=g,t[4]=b),b}let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)("b",{children:"Chat model:"}),t[5]=i):i=t[5];let o,c;t[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)("br",{}),c=(0,l.jsx)("b",{children:"Edit model:"}),t[6]=o,t[7]=c):(o=t[6],c=t[7]);let d;t[8]!==n||t[9]!==a?(d=(0,l.jsxs)(l.Fragment,{children:[i," ",n,o,c," ",a]}),t[8]=n,t[9]=a,t[10]=d):d=t[10];let u;t[11]===s?u=t[12]:(u=()=>s("ai"),t[11]=s,t[12]=u);let m;t[13]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)(Sr,{className:"h-4 w-4"}),t[13]=m):m=t[13];let h;return t[14]!==d||t[15]!==u?(h=(0,l.jsx)(Ae,{tooltip:d,onClick:u,selected:!1,"data-testid":"footer-ai-enabled",children:m}),t[14]=d,t[15]=u,t[16]=h):h=t[16],h};var Xu=W(H(),1),Yu=3e4;const Ju=()=>{let t=(0,Xu.c)(26),e=Z(Rt).state,r=w1(),n,a;t[0]!==e||t[1]!==r?(n=async()=>{if(e===at.OPEN){if(It())return{isHealthy:!0,lastChecked:new Date,error:void 0};try{return{isHealthy:await r.isHealthy(),lastChecked:new Date,error:void 0}}catch(w){let _=w;return{isHealthy:!1,lastChecked:new Date,error:_ instanceof Error?_.message:"Unknown error"}}}},a=[r,e],t[0]=e,t[1]=r,t[2]=n,t[3]=a):(n=t[2],a=t[3]);let{isFetching:s,error:i,data:o,refetch:c}=An(n,a),d=e===at.OPEN?Yu:null,u;t[4]===d?u=t[5]:(u={delayMs:d,whenVisible:!0},t[4]=d,t[5]=u),Ls(c,u);let m;t[6]!==e||t[7]!==o||t[8]!==i?(m=()=>[t1(e.toLowerCase()),o!=null&&o.lastChecked?o.isHealthy?"\u2713 Healthy":"\u2717 Unhealthy":"Health: Unknown",i?`Error: ${i}`:""].filter(Boolean).join(`
11
11
  `),t[6]=e,t[7]=o,t[8]=i,t[9]=m):m=t[9];let h=m,p;t[10]!==e||t[11]!==(o==null?void 0:o.isHealthy)||t[12]!==(o==null?void 0:o.lastChecked)||t[13]!==s?(p=()=>s||e===at.CONNECTING?(0,l.jsx)(kr,{size:"small"}):e===at.CLOSING?(0,l.jsx)(kr,{className:"text-destructive",size:"small"}):e===at.OPEN?o!=null&&o.isHealthy?(0,l.jsx)(ms,{className:"w-4 h-4 text-(--green-9)"}):o!=null&&o.lastChecked?(0,l.jsx)(sn,{className:"w-4 h-4 text-(--yellow-9)"}):(0,l.jsx)(ms,{className:"w-4 h-4"}):(0,l.jsx)(Xt,{className:"w-4 h-4 text-red-500"}),t[10]=e,t[11]=o==null?void 0:o.isHealthy,t[12]=o==null?void 0:o.lastChecked,t[13]=s,t[14]=p):p=t[14];let f=p,g=h(),x;t[15]===e?x=t[16]:(x=e===at.OPEN&&(0,l.jsx)("div",{className:"mt-2 text-xs text-muted-foreground",children:"Click to refresh health status"}),t[15]=e,t[16]=x);let b;t[17]!==g||t[18]!==x?(b=(0,l.jsxs)("div",{className:"text-sm whitespace-pre-line",children:[g,x]}),t[17]=g,t[18]=x,t[19]=b):b=t[19];let y;t[20]===f?y=t[21]:(y=f(),t[20]=f,t[21]=y);let j;return t[22]!==c||t[23]!==b||t[24]!==y?(j=(0,l.jsx)(Ae,{tooltip:b,selected:!1,onClick:c,"data-testid":"footer-backend-status",children:y}),t[22]=c,t[23]=b,t[24]=y,t[25]=j):j=t[25],j};var Qu=W(H(),1);const Zu=t=>{let e=(0,Qu.c)(3),r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,l.jsx)("path",{d:"M205.28 31.36c14.096 14.88 20.016 35.2 22.512 63.68c6.626 0 12.805 1.47 16.976 7.152l7.792 10.56A17.55 17.55 0 0 1 256 123.2v28.688c-.008 3.704-1.843 7.315-4.832 9.504C215.885 187.222 172.35 208 128 208c-49.066 0-98.19-28.273-123.168-46.608c-2.989-2.189-4.825-5.8-4.832-9.504V123.2c0-3.776 1.2-7.424 3.424-10.464l7.792-10.544c4.173-5.657 10.38-7.152 16.992-7.152c2.496-28.48 8.4-48.8 22.512-63.68C77.331 3.165 112.567.06 127.552 0H128c14.72 0 50.4 2.88 77.28 31.36m-77.264 47.376c-3.04 0-6.544.176-10.272.544c-1.312 4.896-3.248 9.312-6.08 12.128c-11.2 11.2-24.704 12.928-31.936 12.928c-6.802 0-13.927-1.42-19.744-5.088c-5.502 1.808-10.786 4.415-11.136 10.912c-.586 12.28-.637 24.55-.688 36.824c-.026 6.16-.05 12.322-.144 18.488c.024 3.579 2.182 6.903 5.44 8.384C79.936 185.92 104.976 192 128.016 192c23.008 0 48.048-6.08 74.512-18.144c3.258-1.48 5.415-4.805 5.44-8.384c.317-18.418.062-36.912-.816-55.312h.016c-.342-6.534-5.648-9.098-11.168-10.912c-5.82 3.652-12.927 5.088-19.728 5.088c-7.232 0-20.72-1.728-31.936-12.928c-2.832-2.816-4.768-7.232-6.08-12.128a106 106 0 0 0-10.24-.544m-26.941 43.93c5.748 0 10.408 4.66 10.408 10.409v19.183c0 5.749-4.66 10.409-10.408 10.409s-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408m53.333 0c5.749 0 10.409 4.66 10.409 10.409v19.183c0 5.749-4.66 10.409-10.409 10.409c-5.748 0-10.408-4.66-10.408-10.409v-19.183c0-5.748 4.66-10.408 10.408-10.408M81.44 28.32c-11.2 1.12-20.64 4.8-25.44 9.92c-10.4 11.36-8.16 40.16-2.24 46.24c4.32 4.32 12.48 7.2 21.28 7.2c6.72 0 19.52-1.44 30.08-12.16c4.64-4.48 7.52-15.68 7.2-27.04c-.32-9.12-2.88-16.64-6.72-19.84c-4.16-3.68-13.6-5.28-24.16-4.32m68.96 4.32c-3.84 3.2-6.4 10.72-6.72 19.84c-.32 11.36 2.56 22.56 7.2 27.04c10.56 10.72 23.36 12.16 30.08 12.16c8.8 0 16.96-2.88 21.28-7.2c5.92-6.08 8.16-34.88-2.24-46.24c-4.8-5.12-14.24-8.8-25.44-9.92c-10.56-.96-20 .64-24.16 4.32M128 56c-2.56 0-5.6.16-8.96.48c.32 1.76.48 3.68.64 5.76c0 1.44 0 2.88-.16 4.48c3.2-.32 5.92-.32 8.48-.32s5.28 0 8.48.32c-.16-1.6-.16-3.04-.16-4.48c.16-2.08.32-4 .64-5.76c-3.36-.32-6.4-.48-8.96-.48"}),e[0]=r):r=e[0];let n;return e[1]===t?n=e[2]:(n=(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.24em",height:"1em",viewBox:"0 0 256 208",fill:"currentColor",...t,children:r}),e[1]=t,e[2]=n),n};var em=W(H(),1),tm=ur(t=>t(v1).completion.copilot);const rm=()=>{let t=(0,em.c)(1);if(Z(tm)==="github"){let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,l.jsx)(nm,{}),t[0]=e):e=t[0],e}return null};var Da=Ve.get("[copilot-status-bar]"),nm=()=>{let t=Z(ns),e=Z(d1)!==null,{handleClick:r}=us(),n=()=>r("ai"),a=t?"Ready":"Not connected",s=Nt(ns),i=Nt(u1);return os(()=>{let o=m1(),c=!0;return(async()=>{try{if(await o.initializePromise.catch(u=>{throw Da.error("Failed to initialize",u),o.close(),u}),!c)return;let d=await o.signedIn();if(!c)return;s(d),i(d?"signedIn":"signedOut")}catch(d){if(!c)return;Da.warn("Connection failed",d),s(!1),i("connectionError"),Ut({title:"GitHub Copilot Connection Error",description:"Failed to connect to GitHub Copilot. Check settings and try again.",variant:"danger",action:(0,l.jsx)(oe,{variant:"link",onClick:n,children:"Settings"})})}})(),()=>{c=!1}}),(0,l.jsx)(Ae,{tooltip:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("b",{children:"GitHub Copilot:"})," ",a]}),selected:!1,onClick:n,"data-testid":"footer-copilot-status",children:(0,l.jsx)("span",{children:e?(0,l.jsx)(kr,{className:"h-4 w-4"}):(0,l.jsx)(Zu,{className:V("h-4 w-4",!t&&"opacity-60")})})})},At=W(H(),1);const lm=()=>{let t=(0,At.c)(18),[e,r]=(0,v.useState)(0),n=Z(Rt),{getUsageStats:a}=Ze(),s,i;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(om),i={delayMs:1e4,whenVisible:!0},t[0]=s,t[1]=i):(s=t[0],i=t[1]),Ls(s,i);let o;t[2]!==n.state||t[3]!==a?(o=async()=>It()||n.state!==at.OPEN?null:a(),t[2]=n.state,t[3]=a,t[4]=o):o=t[4];let c;t[5]!==n.state||t[6]!==e?(c=[e,n.state],t[5]=n.state,t[6]=e,t[7]=c):c=t[7];let{data:d}=An(o,c),u;t[8]===d?u=t[9]:(u=(d==null?void 0:d.gpu)&&d.gpu.length>0&&(0,l.jsx)(im,{gpus:d.gpu}),t[8]=d,t[9]=u);let m;t[10]===d?m=t[11]:(m=d&&(0,l.jsx)(am,{memory:d.memory,kernel:d.kernel,server:d.server}),t[10]=d,t[11]=m);let h;t[12]===d?h=t[13]:(h=d&&(0,l.jsx)(sm,{cpu:d.cpu}),t[12]=d,t[13]=h);let p;return t[14]!==u||t[15]!==m||t[16]!==h?(p=(0,l.jsxs)("div",{className:"flex gap-2 items-center px-1",children:[u,m,h]}),t[14]=u,t[15]=m,t[16]=h,t[17]=p):p=t[17],p};var am=t=>{let e=(0,At.c)(36),{memory:r,kernel:n,server:a}=t,{percent:s,total:i,available:o}=r,c;e[0]===s?c=e[1]:(c=Math.round(s),e[0]=s,e[1]=c);let d=c,u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u={maximumFractionDigits:2},e[2]=u):u=e[2];let m=Er(u),h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h={maximumFractionDigits:0},e[3]=h):h=e[3];let p=Er(h),f;e[4]!==m||e[5]!==p?(f=E=>E>1073741824?`${m.format(E/1073741824)} GB`:`${p.format(E/1048576)} MB`,e[4]=m,e[5]=p,e[6]=f):f=e[6];let g=f,x;e[7]===m?x=e[8]:(x=E=>m.format(E/1073741824),e[7]=m,e[8]=x);let b=x,y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=(0,l.jsx)("b",{children:"computer memory:"}),e[9]=y):y=e[9];let j=i-o,w;e[10]!==b||e[11]!==j?(w=b(j),e[10]=b,e[11]=j,e[12]=w):w=e[12];let _;e[13]!==b||e[14]!==i?(_=b(i),e[13]=b,e[14]=i,e[15]=_):_=e[15];let N;e[16]!==d||e[17]!==w||e[18]!==_?(N=(0,l.jsxs)("span",{children:[y," ",w," /"," ",_," GB (",d,"%)"]}),e[16]=d,e[17]=w,e[18]=_,e[19]=N):N=e[19];let C;e[20]!==g||e[21]!==a?(C=(a==null?void 0:a.memory)&&(0,l.jsxs)("span",{children:[(0,l.jsx)("b",{children:"marimo server:"})," ",g(a.memory)]}),e[20]=g,e[21]=a,e[22]=C):C=e[22];let I;e[23]!==g||e[24]!==n?(I=(n==null?void 0:n.memory)&&(0,l.jsxs)("span",{children:[(0,l.jsx)("b",{children:"kernel:"})," ",g(n.memory)]}),e[23]=g,e[24]=n,e[25]=I):I=e[25];let R;e[26]!==N||e[27]!==C||e[28]!==I?(R=(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[N,C,I]}),e[26]=N,e[27]=C,e[28]=I,e[29]=R):R=e[29];let k;e[30]===Symbol.for("react.memo_cache_sentinel")?(k=(0,l.jsx)(Bs,{className:"w-4 h-4"}),e[30]=k):k=e[30];let S;e[31]===d?S=e[32]:(S=(0,l.jsxs)("div",{className:"flex items-center gap-1","data-testid":"memory-usage-bar",children:[k,(0,l.jsx)(tn,{percent:d,colorClassName:"bg-primary"})]}),e[31]=d,e[32]=S);let z;return e[33]!==R||e[34]!==S?(z=(0,l.jsx)(te,{delayDuration:200,content:R,children:S}),e[33]=R,e[34]=S,e[35]=z):z=e[35],z},sm=t=>{let e=(0,At.c)(11),{cpu:r}=t,{percent:n}=r,a;e[0]===n?a=e[1]:(a=Math.round(n),e[0]=n,e[1]=a);let s=a,i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)("b",{children:"CPU:"}),e[2]=i):i=e[2];let o;e[3]===s?o=e[4]:(o=(0,l.jsxs)("span",{children:[i," ",s,"%"]}),e[3]=s,e[4]=o);let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(Z1,{className:"w-4 h-4"}),e[5]=c):c=e[5];let d;e[6]===s?d=e[7]:(d=(0,l.jsxs)("div",{className:"flex items-center gap-1","data-testid":"cpu-bar",children:[c,(0,l.jsx)(tn,{percent:s,colorClassName:"bg-primary"})]}),e[6]=s,e[7]=d);let u;return e[8]!==o||e[9]!==d?(u=(0,l.jsx)(te,{delayDuration:200,content:o,children:d}),e[8]=o,e[9]=d,e[10]=u):u=e[10],u},im=t=>{let e=(0,At.c)(20),{gpus:r}=t,n;e[0]===r?n=e[1]:(n=Math.round(r.reduce(cm,0)/r.length),e[0]=r,e[1]=n);let a=n,s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={maximumFractionDigits:2},e[2]=s):s=e[2];let i=Er(s),o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={maximumFractionDigits:0},e[3]=o):o=e[3];let c=Er(o),d;e[4]!==i||e[5]!==c?(d=x=>x>1073741824?`${i.format(x/1073741824)} GB`:`${c.format(x/1048576)} MB`,e[4]=i,e[5]=c,e[6]=d):d=e[6];let u=d,m;if(e[7]!==u||e[8]!==r){let x;e[10]===u?x=e[11]:(x=b=>(0,l.jsxs)("span",{children:[(0,l.jsxs)("b",{children:["GPU ",b.index," (",b.name,"):"]})," ",u(b.memory.used)," / ",u(b.memory.total)," (",Math.round(b.memory.percent),"%)"]},b.index),e[10]=u,e[11]=x),m=r.map(x),e[7]=u,e[8]=r,e[9]=m}else m=e[9];let h;e[12]===m?h=e[13]:(h=(0,l.jsx)("div",{className:"flex flex-col gap-1",children:m}),e[12]=m,e[13]=h);let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(qs,{className:"w-4 h-4"}),e[14]=p):p=e[14];let f;e[15]===a?f=e[16]:(f=(0,l.jsxs)("div",{className:"flex items-center gap-1","data-testid":"gpu-bar",children:[p,(0,l.jsx)(tn,{percent:a,colorClassName:"bg-(--grass-9)"})]}),e[15]=a,e[16]=f);let g;return e[17]!==h||e[18]!==f?(g=(0,l.jsx)(te,{delayDuration:200,content:h,children:f}),e[17]=h,e[18]=f,e[19]=g):g=e[19],g},tn=t=>{let e=(0,At.c)(7),{percent:r,colorClassName:n}=t,a;e[0]===n?a=e[1]:(a=V("h-full bg-primary",n),e[0]=n,e[1]=a);let s=`${r}%`,i;e[2]===s?i=e[3]:(i={width:s},e[2]=s,e[3]=i);let o;return e[4]!==a||e[5]!==i?(o=(0,l.jsx)("div",{className:"h-3 w-20 bg-(--slate-4) rounded-lg overflow-hidden border",children:(0,l.jsx)("div",{className:a,style:i})}),e[4]=a,e[5]=i,e[6]=o):o=e[6],o};function om(t){return t+1}function cm(t,e){return t+e.memory.percent}const Ma=ur(!1);function rn(t,e,r=new Set){if(r.has(t))return new Set;r.add(t);let n=new Set;for(let a of e(t)){n.add(a);for(let s of rn(a,e,r))n.add(s)}return n}function dm(t,e){var a,s,i;let r=new Map;for(let o of t)r.set(o,{variables:new Set,parents:new Set,children:new Set});for(let o of Object.values(e))if(o.dataType!=="module")for(let c of o.declaredBy){(a=r.get(c))==null||a.variables.add(o.name);for(let d of o.usedBy)c!==d&&((s=r.get(d))==null||s.parents.add(c),(i=r.get(c))==null||i.children.add(d))}let n={};for(let[o,c]of r.entries())n[o]={parents:c.parents,children:c.children,variables:[...c.variables],ancestors:rn(o,d=>{var u;return((u=r.get(d))==null?void 0:u.parents)??new Set}),descendants:rn(o,d=>{var u;return((u=r.get(d))==null?void 0:u.children)??new Set})};return n}const um=ur(t=>{let e=t(Ka),r=t(O0);return dm(e.inOrderIds,r)});function mm(t,e){return e?t.usedBy.includes(e.id)||t.declaredBy.includes(e.id)?!0:t.declaredBy.some(r=>e.graph.parents.has(r))?t.usedBy.some(r=>e.graph.parents.has(r)):!!t.declaredBy.some(r=>e.graph.children.has(r)):!1}var hm=W(H(),1);const pm=()=>{let t=(0,hm.c)(6),[e,r]=mr(Ma),n;t[0]===r?n=t[1]:(n=()=>r(fm),t[0]=r,t[1]=n);let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(Vs,{className:"h-4 w-4"}),t[2]=a):a=t[2];let s;return t[3]!==e||t[4]!==n?(s=(0,l.jsx)(Ae,{tooltip:"Toggle Minimap",selected:e,onClick:n,"data-testid":"footer-minimap",children:a}),t[3]=e,t[4]=n,t[5]=s):s=t[5],s};function fm(t){return!t}var xm=W(H(),1);const gm=()=>{let t=(0,xm.c)(13),e=Z(Zh),[r,n]=mr(D0),[a,s]=(0,v.useState)(!1);if(!S0()||e==="disabled")return null;let i=e?"Real-time collaboration active":"Connecting to real-time collaboration",o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)(Ys,{className:"w-4 h-4"}),t[0]=o):o=t[0];let c;t[1]===i?c=t[2]:(c=(0,l.jsx)(pf,{asChild:!0,children:(0,l.jsx)(Ae,{tooltip:i,selected:!1,"data-testid":"footer-rtc-status",children:o})}),t[1]=i,t[2]=c);let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("h4",{className:"font-medium leading-none",children:"Username"}),(0,l.jsx)("p",{className:"text-sm text-muted-foreground",children:"Set your username for real-time collaboration"})]}),t[3]=d):d=t[3];let u;t[4]===n?u=t[5]:(u=p=>n(p.target.value),t[4]=n,t[5]=u);let m;t[6]!==u||t[7]!==r?(m=(0,l.jsx)(ff,{className:"w-80",children:(0,l.jsxs)("div",{className:"space-y-4",children:[d,(0,l.jsx)(Dn,{value:r,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",onChange:u,placeholder:"Enter your username"})]})}),t[6]=u,t[7]=r,t[8]=m):m=t[8];let h;return t[9]!==a||t[10]!==c||t[11]!==m?(h=(0,l.jsxs)(xf,{open:a,onOpenChange:s,children:[c,m]}),t[9]=a,t[10]=c,t[11]=m,t[12]=h):h=t[12],h};var vm=W(H(),1);const bm=t=>{let e=(0,vm.c)(104),{className:r}=t,{saveUserConfig:n}=Ze(),[a,s]=x1(),i=xn()[0],[o,c]=(0,v.useState)(!1),d,u;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{let re=window.matchMedia("(min-width: 768px)"),U=()=>{re.matches&&c(!1)};return re.addEventListener("change",U),()=>re.removeEventListener("change",U)},u=[],e[0]=d,e[1]=u):(d=e[0],u=e[1]),(0,v.useEffect)(d,u);let m;e[2]!==i||e[3]!==n||e[4]!==s?(m=async re=>{let U={...i,runtime:{...i.runtime,auto_instantiate:re}};await n({config:U}).then(()=>s(U))},e[2]=i,e[3]=n,e[4]=s,e[5]=m):m=e[5];let h=m,p;e[6]!==n||e[7]!==s||e[8]!==a?(p=async re=>{let U={...a,runtime:{...a.runtime,on_cell_change:re?"autorun":"lazy"}};await n({config:U}).then(()=>s(U))},e[6]=n,e[7]=s,e[8]=a,e[9]=p):p=e[9];let f=p,g;e[10]!==n||e[11]!==s||e[12]!==a?(g=async re=>{let U={...a,runtime:{...a.runtime,auto_reload:re}};await n({config:U}).then(()=>s(U))},e[10]=n,e[11]=s,e[12]=a,e[13]=g):g=e[13];let x=g,b;e[14]!==i.runtime.auto_instantiate||e[15]!==i.runtime.auto_reload||e[16]!==i.runtime.on_cell_change?(b=!i.runtime.auto_instantiate&&i.runtime.on_cell_change==="lazy"&&(It()||i.runtime.auto_reload!=="autorun"),e[14]=i.runtime.auto_instantiate,e[15]=i.runtime.auto_reload,e[16]=i.runtime.on_cell_change,e[17]=b):b=e[17];let y=b,j;e[18]===r?j=e[19]:(j=V("flex items-center",r),e[18]=r,e[19]=j);let w=i.runtime.auto_instantiate?"Disable autorun on startup":"Enable autorun on startup",_;e[20]!==i.runtime.auto_instantiate||e[21]!==h?(_=()=>h(!i.runtime.auto_instantiate),e[20]=i.runtime.auto_instantiate,e[21]=h,e[22]=_):_=e[22];let N;e[23]===Symbol.for("react.memo_cache_sentinel")?(N=(0,l.jsx)("span",{children:"on startup: "}),e[23]=N):N=e[23];let C;e[24]===i.runtime.auto_instantiate?C=e[25]:(C=i.runtime.auto_instantiate?(0,l.jsx)(Ke,{size:14}):(0,l.jsx)(Ue,{size:14}),e[24]=i.runtime.auto_instantiate,e[25]=C);let I=i.runtime.auto_instantiate?"autorun":"lazy",R;e[26]===I?R=e[27]:(R=(0,l.jsx)("span",{children:I}),e[26]=I,e[27]=R);let k;e[28]!==C||e[29]!==R?(k=(0,l.jsxs)("div",{className:"font-prose text-sm flex items-center gap-1 whitespace-nowrap",children:[N,C,R]}),e[28]=C,e[29]=R,e[30]=k):k=e[30];let S;e[31]!==k||e[32]!==w||e[33]!==_?(S=(0,l.jsx)(Et,{name:"runtime.auto_instantiate",children:(0,l.jsx)(Ae,{tooltip:w,selected:!1,onClick:_,"data-testid":"footer-autorun-startup",children:k})}),e[31]=k,e[32]=w,e[33]=_,e[34]=S):S=e[34];let z;e[35]===Symbol.for("react.memo_cache_sentinel")?(z=(0,l.jsx)("div",{className:"border-r border-border h-6 mx-1"}),e[35]=z):z=e[35];let E=i.runtime.on_cell_change==="autorun"?"Disable autorun":"Enable autorun",O;e[36]!==i.runtime.on_cell_change||e[37]!==f?(O=()=>f(i.runtime.on_cell_change!=="autorun"),e[36]=i.runtime.on_cell_change,e[37]=f,e[38]=O):O=e[38];let P;e[39]===Symbol.for("react.memo_cache_sentinel")?(P=(0,l.jsx)("span",{children:"on cell change: "}),e[39]=P):P=e[39];let D;e[40]===i.runtime.on_cell_change?D=e[41]:(D=(0,l.jsxs)("div",{className:"font-prose text-sm flex items-center gap-1 whitespace-nowrap",children:[P,i.runtime.on_cell_change==="autorun"?(0,l.jsx)(Ke,{size:14}):(0,l.jsx)(Ue,{size:14}),(0,l.jsx)("span",{children:i.runtime.on_cell_change})]}),e[40]=i.runtime.on_cell_change,e[41]=D);let M;e[42]!==E||e[43]!==O||e[44]!==D?(M=(0,l.jsx)(Et,{name:"runtime.on_cell_change",children:(0,l.jsx)(Ae,{tooltip:E,selected:!1,onClick:O,"data-testid":"footer-autorun-cell-change",children:D})}),e[42]=E,e[43]=O,e[44]=D,e[45]=M):M=e[45];let T;e[46]!==i.runtime.auto_reload||e[47]!==x?(T=!It()&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"border-r border-border h-6 mx-1"}),(0,l.jsx)(Et,{name:"runtime.auto_reload",children:(0,l.jsx)(Ae,{tooltip:null,selected:!1,"data-testid":"footer-module-reload",children:(0,l.jsxs)(ft,{children:[(0,l.jsxs)(ht,{className:"font-prose text-sm flex items-center gap-1 whitespace-nowrap",children:[(0,l.jsx)("span",{children:"on module change: "}),i.runtime.auto_reload==="off"&&(0,l.jsx)(Xt,{size:14}),i.runtime.auto_reload==="lazy"&&(0,l.jsx)(Ue,{size:14}),i.runtime.auto_reload==="autorun"&&(0,l.jsx)(Ke,{size:14}),(0,l.jsx)("span",{children:i.runtime.auto_reload}),(0,l.jsx)(ut,{size:14})]}),(0,l.jsx)(pt,{children:["off","lazy","autorun"].map(re=>(0,l.jsxs)(Cr,{onClick:()=>x(re),children:[re==="off"&&(0,l.jsx)(Xt,{size:14,className:"mr-2 text-muted-foreground"}),re==="lazy"&&(0,l.jsx)(Ue,{size:14,className:"mr-2 text-muted-foreground"}),re==="autorun"&&(0,l.jsx)(Ke,{size:14,className:"mr-2 text-muted-foreground"}),re]},re))})]})})})]}),e[46]=i.runtime.auto_reload,e[47]=x,e[48]=T):T=e[48];let L;e[49]!==S||e[50]!==M||e[51]!==T?(L=(0,l.jsxs)("div",{className:"hidden md:flex md:items-center",children:[S,z,M,T]}),e[49]=S,e[50]=M,e[51]=T,e[52]=L):L=e[52];let A;e[53]===y?A=e[54]:(A=y?(0,l.jsx)(Ue,{size:16,className:"text-muted-foreground"}):(0,l.jsx)(Ke,{size:16,className:"text-amber-500"}),e[53]=y,e[54]=A);let q;e[55]===Symbol.for("react.memo_cache_sentinel")?(q=(0,l.jsx)(ut,{size:14}),e[55]=q):q=e[55];let X;e[56]===A?X=e[57]:(X=(0,l.jsx)(ht,{asChild:!0,children:(0,l.jsx)(Ae,{tooltip:"Runtime reactivity",selected:!1,"data-testid":"footer-runtime-settings",children:(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[A,q]})})}),e[56]=A,e[57]=X);let K,$;e[58]===Symbol.for("react.memo_cache_sentinel")?(K=(0,l.jsx)(Wh,{children:"Runtime reactivity"}),$=(0,l.jsx)(mt,{}),e[58]=K,e[59]=$):(K=e[58],$=e[59]);let Q;e[60]===i.runtime.auto_instantiate?Q=e[61]:(Q=i.runtime.auto_instantiate?(0,l.jsx)(Ke,{size:14,className:"text-amber-500"}):(0,l.jsx)(Ue,{size:14,className:"text-muted-foreground"}),e[60]=i.runtime.auto_instantiate,e[61]=Q);let B;e[62]===Symbol.for("react.memo_cache_sentinel")?(B=(0,l.jsx)("div",{className:"text-sm font-medium",children:"On startup"}),e[62]=B):B=e[62];let le=i.runtime.auto_instantiate?"autorun":"lazy",F;e[63]===le?F=e[64]:(F=(0,l.jsxs)("div",{children:[B,(0,l.jsx)("div",{className:"text-xs text-muted-foreground",children:le})]}),e[63]=le,e[64]=F);let G;e[65]!==Q||e[66]!==F?(G=(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[Q,F]}),e[65]=Q,e[66]=F,e[67]=G):G=e[67];let Y;e[68]!==i.runtime.auto_instantiate||e[69]!==h?(Y=(0,l.jsx)(Ps,{checked:i.runtime.auto_instantiate,onCheckedChange:h,size:"sm"}),e[68]=i.runtime.auto_instantiate,e[69]=h,e[70]=Y):Y=e[70];let J;e[71]!==G||e[72]!==Y?(J=(0,l.jsx)(Et,{name:"runtime.auto_instantiate",children:(0,l.jsxs)("div",{className:"flex items-center justify-between px-2 py-2",children:[G,Y]})}),e[71]=G,e[72]=Y,e[73]=J):J=e[73];let ee;e[74]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,l.jsx)(mt,{}),e[74]=ee):ee=e[74];let se;e[75]===i.runtime.on_cell_change?se=e[76]:(se=i.runtime.on_cell_change==="autorun"?(0,l.jsx)(Ke,{size:14,className:"text-amber-500"}):(0,l.jsx)(Ue,{size:14,className:"text-muted-foreground"}),e[75]=i.runtime.on_cell_change,e[76]=se);let ae;e[77]===Symbol.for("react.memo_cache_sentinel")?(ae=(0,l.jsx)("div",{className:"text-sm font-medium",children:"On cell change"}),e[77]=ae):ae=e[77];let de;e[78]===i.runtime.on_cell_change?de=e[79]:(de=(0,l.jsxs)("div",{children:[ae,(0,l.jsx)("div",{className:"text-xs text-muted-foreground",children:i.runtime.on_cell_change})]}),e[78]=i.runtime.on_cell_change,e[79]=de);let ce;e[80]!==se||e[81]!==de?(ce=(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[se,de]}),e[80]=se,e[81]=de,e[82]=ce):ce=e[82];let ve=i.runtime.on_cell_change==="autorun",me;e[83]!==f||e[84]!==ve?(me=(0,l.jsx)(Ps,{checked:ve,onCheckedChange:f,size:"sm"}),e[83]=f,e[84]=ve,e[85]=me):me=e[85];let pe;e[86]!==ce||e[87]!==me?(pe=(0,l.jsx)(Et,{name:"runtime.on_cell_change",children:(0,l.jsxs)("div",{className:"flex items-center justify-between px-2 py-2",children:[ce,me]})}),e[86]=ce,e[87]=me,e[88]=pe):pe=e[88];let ie;e[89]!==i.runtime.auto_reload||e[90]!==x?(ie=!It()&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(mt,{}),(0,l.jsx)(Et,{name:"runtime.auto_reload",children:(0,l.jsxs)("div",{className:"px-2 py-1",children:[(0,l.jsxs)("div",{className:"flex items-center space-x-2 mb-2",children:[i.runtime.auto_reload==="off"&&(0,l.jsx)(Xt,{size:14,className:"text-muted-foreground"}),i.runtime.auto_reload==="lazy"&&(0,l.jsx)(Ue,{size:14,className:"text-muted-foreground"}),i.runtime.auto_reload==="autorun"&&(0,l.jsx)(Ke,{size:14,className:"text-amber-500"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"text-sm font-medium",children:"On module change"}),(0,l.jsx)("div",{className:"text-xs text-muted-foreground",children:i.runtime.auto_reload})]})]}),(0,l.jsx)("div",{className:"space-y-1",children:["off","lazy","autorun"].map(re=>(0,l.jsxs)("button",{onClick:()=>x(re),className:V("w-full flex items-center px-2 py-1 text-sm rounded hover:bg-accent",re===i.runtime.auto_reload&&"bg-accent"),children:[re==="off"&&(0,l.jsx)(Xt,{size:12,className:"mr-2"}),re==="lazy"&&(0,l.jsx)(Ue,{size:12,className:"mr-2"}),re==="autorun"&&(0,l.jsx)(Ke,{size:12,className:"mr-2"}),(0,l.jsx)("span",{className:"capitalize",children:re}),re===i.runtime.auto_reload&&(0,l.jsx)("span",{className:"ml-auto",children:"\u2713"})]},re))})]})})]}),e[89]=i.runtime.auto_reload,e[90]=x,e[91]=ie):ie=e[91];let ue;e[92]!==J||e[93]!==pe||e[94]!==ie?(ue=(0,l.jsxs)(pt,{align:"start",className:"w-64",children:[K,$,J,ee,pe,ie]}),e[92]=J,e[93]=pe,e[94]=ie,e[95]=ue):ue=e[95];let he;e[96]!==o||e[97]!==X||e[98]!==ue?(he=(0,l.jsx)("div",{className:"flex md:hidden",children:(0,l.jsxs)(ft,{open:o,onOpenChange:c,children:[X,ue]})}),e[96]=o,e[97]=X,e[98]=ue,e[99]=he):he=e[99];let ye;return e[100]!==L||e[101]!==he||e[102]!==j?(ye=(0,l.jsxs)("div",{className:j,children:[L,he]}),e[100]=L,e[101]=he,e[102]=j,e[103]=ye):ye=e[103],ye};var ym=W(H(),1);const jm=()=>{let t=(0,ym.c)(24),{selectedPanel:e,isTerminalOpen:r}=cn(),{toggleApplication:n,toggleTerminal:a}=gr(),s=Z(T0),i=wm,o=hs.find(_m);$t(o,"Error panel not found");let c;t[0]===a?c=t[1]:(c=()=>{a()},t[0]=a,t[1]=c),Re("global.toggleTerminal",c);let d=Ae,u=o.tooltip,m=e===o.type,h=()=>n(o.type),p=i(o,s>0?"text-destructive":""),f;t[2]===s?f=t[3]:(f=(0,l.jsx)("span",{className:"ml-1 font-mono mt-0.5",children:s}),t[2]=s,t[3]=f);let g;t[4]!==d||t[5]!==o||t[6]!==m||t[7]!==h||t[8]!==p||t[9]!==f?(g=(0,l.jsxs)(d,{tooltip:u,selected:m,onClick:h,"data-testid":"footer-errors",children:[p,f]}),t[4]=d,t[5]=o,t[6]=m,t[7]=h,t[8]=p,t[9]=f,t[10]=g):g=t[10];let x;t[11]===a?x=t[12]:(x=()=>a(),t[11]=a,t[12]=x);let b;t[13]===Symbol.for("react.memo_cache_sentinel")?(b=(0,l.jsx)(Sp,{className:"h-5 w-5"}),t[13]=b):b=t[13];let y;t[14]!==r||t[15]!==x?(y=(0,l.jsx)(za,{capability:"terminal",children:(0,l.jsx)(Ae,{tooltip:"Open terminal",selected:r,onClick:x,"data-testid":"footer-terminal",children:b})}),t[14]=r,t[15]=x,t[16]=y):y=t[16];let j,w;t[17]===Symbol.for("react.memo_cache_sentinel")?(j=(0,l.jsx)(bm,{}),w=(0,l.jsx)("div",{className:"mx-auto"}),t[17]=j,t[18]=w):(j=t[17],w=t[18]);let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(Ef,{children:(0,l.jsx)(te,{content:(0,l.jsx)("div",{className:"w-[200px]",children:"Kiosk mode is enabled. This allows you to view the outputs of the cells without the ability to edit them."}),children:(0,l.jsx)("span",{className:"text-muted-foreground text-sm mr-4",children:"kiosk mode"})})}),t[19]=_):_=t[19];let N;t[20]===Symbol.for("react.memo_cache_sentinel")?(N=(0,l.jsxs)("div",{className:"flex items-center shrink-0 min-w-0",children:[(0,l.jsx)(lm,{}),(0,l.jsx)(pm,{}),(0,l.jsx)(Gu,{}),(0,l.jsx)(rm,{}),(0,l.jsx)(gm,{}),(0,l.jsx)(Ju,{})]}),t[20]=N):N=t[20];let C;return t[21]!==y||t[22]!==g?(C=(0,l.jsxs)("footer",{className:"h-10 py-2 bg-background flex items-center text-muted-foreground text-md px-1 border-t border-border select-none no-print text-sm shadow-[0_0_4px_1px_rgba(0,0,0,0.1)] z-50 print:hidden hide-on-fullscreen overflow-x-auto overflow-y-hidden scrollbar-thin",children:[g,y,j,w,_,N]}),t[21]=y,t[22]=g,t[23]=C):C=t[23],C};function wm(t,e){let{Icon:r}=t;return(0,l.jsx)(r,{className:V("h-5 w-5",e)})}function _m(t){return t.type==="errors"}var Oa=W(H(),1);const Nm=t=>{let e=(0,Oa.c)(6),{children:r}=t,{openModal:n,closeModal:a}=af(),s;e[0]!==a||e[1]!==n?(s=()=>n((0,l.jsx)(Cm,{onClose:a})),e[0]=a,e[1]=n,e[2]=s):s=e[2];let i;return e[3]!==r||e[4]!==s?(i=(0,l.jsx)(C1,{onClick:s,children:r}),e[3]=r,e[4]=s,e[5]=i):i=e[5],i};var Cm=t=>{let e=(0,Oa.c)(9),{onClose:r}=t,n;e[0]===r?n=e[1]:(n=async u=>{u.preventDefault();let m=new FormData(u.target),h=m.get("rating"),p=m.get("message");fetch("https://marimo.io/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rating:h,message:p})}),r(),Ut({title:"Feedback sent!",description:"Thank you for your feedback!"})},e[0]=r,e[1]=n);let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,l.jsx)(ef,{children:"Send Feedback"}),e[2]=a):a=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)("p",{className:"my-2 prose dark:prose-invert",children:"We want to hear from you \u2014 from minor bug reports to wishlist features and everything in between. Here are some ways you can get in touch:"}),e[3]=s):s=e[3];let i;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsxs)("li",{className:"my-0",children:["Take our"," ",(0,l.jsx)("a",{href:gn.feedbackForm,target:"_blank",className:"underline",children:"two-minute survey."})]}),e[4]=i):i=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsxs)("li",{className:"my-0",children:["File a"," ",(0,l.jsx)("a",{href:gn.issuesPage,target:"_blank",className:"underline",children:"GitHub issue."})]}),e[5]=o):o=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsxs)(Zp,{children:[a,(0,l.jsxs)(rf,{children:[s,(0,l.jsxs)("ul",{className:"list-disc ml-8 my-2 prose dark:prose-invert",children:[i,o,(0,l.jsxs)("li",{className:"my-0",children:["Chat with us on"," ",(0,l.jsx)("a",{href:gn.discordLink,target:"_blank",className:"underline",children:"Discord."})]})]}),(0,l.jsx)("p",{className:"my-2 prose dark:prose-invert",children:"We're excited you're here as we build the future of Python data tooling. Thanks for being part of our community!"})]})]}),e[6]=c):c=e[6];let d;return e[7]===n?d=e[8]:(d=(0,l.jsx)(tf,{className:"w-fit",children:(0,l.jsx)("form",{onSubmit:n,children:c})}),e[7]=n,e[8]=d),d},nn=W(H(),1);const km=()=>{let t=(0,nn.c)(10),{selectedPanel:e}=cn(),{toggleApplication:r}=gr(),n=Im,a,s;if(t[0]!==e||t[1]!==r){let u=hs.filter(Rm);a="h-full pt-4 pb-1 px-1 flex flex-col items-start text-muted-foreground text-md select-none no-print text-sm z-50 dark:bg-background print:hidden hide-on-fullscreen",s=u.map(m=>(0,l.jsx)(Ta,{tooltip:m.tooltip,selected:e===m.type,onClick:()=>r(m.type),children:n(m)},m.type)),t[0]=e,t[1]=r,t[2]=a,t[3]=s}else a=t[2],s=t[3];let i,o,c;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(Nm,{children:(0,l.jsx)(Ta,{tooltip:"Send feedback!",selected:!1,children:(0,l.jsx)(Hs,{className:"h-5 w-5"})})}),o=(0,l.jsx)("div",{className:"flex-1"}),c=(0,l.jsx)(Sm,{}),t[4]=i,t[5]=o,t[6]=c):(i=t[4],o=t[5],c=t[6]);let d;return t[7]!==a||t[8]!==s?(d=(0,l.jsxs)("div",{className:a,children:[s,i,o,c]}),t[7]=a,t[8]=s,t[9]=d):d=t[9],d};var Sm=()=>{let t=(0,nn.c)(7),e=Z(G0),r;t[0]===e?r=t[1]:(r=e>0?(0,l.jsxs)("span",{children:[e," cell",e>1?"s":""," queued or running"]}):"No cells queued or running",t[0]=e,t[1]=r);let n;t[2]===e?n=t[3]:(n=(0,l.jsx)("div",{className:"flex flex-col-reverse gap-px overflow-hidden",children:Array.from({length:e}).map(Em)}),t[2]=e,t[3]=n);let a;return t[4]!==r||t[5]!==n?(a=(0,l.jsx)(te,{content:r,side:"right",delayDuration:200,children:n}),t[4]=r,t[5]=n,t[6]=a):a=t[6],a},Ta=t=>{let e=(0,nn.c)(17),r,n,a,s,i;e[0]===t?(r=e[1],n=e[2],a=e[3],s=e[4],i=e[5]):({children:r,tooltip:i,selected:s,className:n,...a}=t,e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=s,e[5]=i);let o=!s&&"hover:bg-(--sage-3)",c=s&&"bg-(--sage-4)",d;e[6]!==n||e[7]!==o||e[8]!==c?(d=V("flex items-center p-2 text-sm mx-px shadow-inset font-mono rounded",o,c,n),e[6]=n,e[7]=o,e[8]=c,e[9]=d):d=e[9];let u;e[10]!==r||e[11]!==a||e[12]!==d?(u=(0,l.jsx)("button",{className:d,...a,children:r}),e[10]=r,e[11]=a,e[12]=d,e[13]=u):u=e[13];let m;return e[14]!==u||e[15]!==i?(m=(0,l.jsx)(te,{content:i,side:"right",delayDuration:200,children:u}),e[14]=u,e[15]=i,e[16]=m):m=e[16],m};function Im(t,e){let{Icon:r}=t;return(0,l.jsx)(r,{className:V("h-5 w-5",e)})}function Rm(t){return!t.hidden&&t.position==="sidebar"}function Em(t,e){return(0,l.jsx)("div",{className:"shrink-0 h-1 w-2 bg-(--grass-6) border border-(--grass-7)"},e.toString())}var zm=W(H(),1);const Dm=t=>{let e=(0,zm.c)(4),{isOpen:r,children:n}=t,[a,s]=v.useState(!1),i,o;return e[0]!==a||e[1]!==r?(i=()=>{r&&!a&&s(!0)},o=[r,a],e[0]=a,e[1]=r,e[2]=i,e[3]=o):(i=e[2],o=e[3]),v.useEffect(i,o),a?n:null};var Pt=W(H(),1),Mm=t=>{let e=(0,Pt.c)(43),r=Z(Sf),n=Z(um),a=We(),s=kf(),i=t.cellId,o=n[t.cellId],c=Ft(t.cellId),d=c.code,u=Wt(t.cellId),m,h,p,f,g,x,b,y,j,w,_;if(e[0]!==a||e[1]!==s||e[2]!==r.focusedCellId||e[3]!==n||e[4]!==t.cellId||e[5]!==o||e[6]!==c.code||e[7]!==u.errored){m={id:i,graph:o,code:d,hasError:u.errored},r.focusedCellId&&n[r.focusedCellId]&&(f={id:r.focusedCellId,graph:n[r.focusedCellId]}),p=(f==null?void 0:f.id)===m.id,h=Pa(m.graph)?1.5:3;let k=()=>{p?s.blurCell():(a.focusCell({cellId:m.id,where:"exact"}),s.focusCell({cellId:m.id}))};y="button",j=m.id;let S=p?"text-primary-foreground":"text-(--gray-8) hover:text-(--gray-9)";e[19]===S?w=e[20]:(w=V("group bg-transparent text-left w-full flex relative justify-between items-center","border-none rounded cursor-pointer","h-[21px] pl-[51px] font-inherit",S),e[19]=S,e[20]=w),_=k,g=Vm;let z=p&&"bg-primary group-hover:bg-primary",E;e[21]===z?E=e[22]:(E=V("group-hover:bg-(--gray-2) flex h-full w-full px-0.5 items-center rounded",z),e[21]=z,e[22]=E),x=(0,l.jsx)("div",{className:E,children:(0,l.jsx)("div",{className:"truncate px-1 font-mono text-sm flex gap-1",title:m.code,children:m.graph.variables.length>0?(0,l.jsx)(Pm,{cell:m,selectedCell:f}):(0,l.jsx)("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap max-w-full",children:Am(m.code)??(0,l.jsx)("span",{className:"italic",children:"empty"})})})}),b=V("absolute overflow-visible top-[10.5px] left-[calc(var(--spacing-extra-small,8px)+17px)] pointer-events-none",p?"z-30":"z-20",Wm({cell:m,selectedCell:f})),e[0]=a,e[1]=s,e[2]=r.focusedCellId,e[3]=n,e[4]=t.cellId,e[5]=o,e[6]=c.code,e[7]=u.errored,e[8]=m,e[9]=h,e[10]=p,e[11]=f,e[12]=g,e[13]=x,e[14]=b,e[15]=y,e[16]=j,e[17]=w,e[18]=_}else m=e[8],h=e[9],p=e[10],f=e[11],g=e[12],x=e[13],b=e[14],y=e[15],j=e[16],w=e[17],_=e[18];let N;e[23]===m.id?N=e[24]:(N=(0,l.jsxs)("title",{children:["Cell dependency connections for cell ",m.id]}),e[23]=m.id,e[24]=N);let C;e[25]!==m||e[26]!==h||e[27]!==p||e[28]!==t.cellPositions||e[29]!==f?(C=p?(0,l.jsx)(Lm,{cell:m,cellPositions:t.cellPositions,circleRadius:h}):(0,l.jsx)(Fm,{cell:m,selectedCell:f,circleRadius:h}),e[25]=m,e[26]=h,e[27]=p,e[28]=t.cellPositions,e[29]=f,e[30]=C):C=e[30];let I;e[31]!==N||e[32]!==C||e[33]!==b?(I=(0,l.jsxs)("svg",{className:b,width:"1",height:"1",children:[N,C]}),e[31]=N,e[32]=C,e[33]=b,e[34]=I):I=e[34];let R;return e[35]!==g||e[36]!==x||e[37]!==I||e[38]!==y||e[39]!==j||e[40]!==w||e[41]!==_?(R=(0,l.jsxs)("button",{type:y,"data-node-id":j,className:w,onClick:_,onMouseDown:g,children:[x,I]}),e[35]=g,e[36]=x,e[37]=I,e[38]=y,e[39]=j,e[40]=w,e[41]=_,e[42]=R):R=e[42],R},Om=t=>{let e=(0,Pt.c)(28),{open:r,setOpen:n}=t,a=dn(),s;e[0]===a.inOrderIds?s=e[1]:(s=Object.fromEntries(a.inOrderIds.map(Bm)),e[0]=a.inOrderIds,e[1]=s);let i=s,o;if(e[2]!==a){o=[];let j=0;for(let[w,_]of a.getColumns().entries())w>0&&o.push(j),j+=_.inOrderIds.length;e[2]=a,e[3]=o}else o=e[3];let c=r?"translate-x-0":"translate-x-[calc(100%+20px)]",d;e[4]===c?d=e[5]:(d=V("fixed top-14 right-5 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/60 rounded-lg border shadow-lg w-64 flex flex-col max-h-[58vh]","motion-safe:transition-transform motion-safe:duration-200 motion-safe:ease-in-out",c),e[4]=c,e[5]=d);let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Minimap"}),e[6]=u):u=e[6];let m;e[7]===n?m=e[8]:(m=()=>n(!1),e[7]=n,e[8]=m);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=(0,l.jsx)($e,{className:"h-4 w-4"}),e[9]=h):h=e[9];let p;e[10]===m?p=e[11]:(p=(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 border-b",children:[u,(0,l.jsx)(oe,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:m,children:h})]}),e[10]=m,e[11]=p);let f;if(e[12]!==a.inOrderIds||e[13]!==i||e[14]!==o){let j;e[16]!==i||e[17]!==o?(j=(w,_)=>{let N=o.includes(_);return(0,l.jsxs)(v.Fragment,{children:[N&&(0,l.jsx)("div",{className:"absolute left-5 w-[36px] h-px bg-(--gray-4) pointer-events-none","aria-hidden":"true"}),(0,l.jsx)(Mm,{cellId:w,cellPositions:i})]},w)},e[16]=i,e[17]=o,e[18]=j):j=e[18],f=a.inOrderIds.map(j),e[12]=a.inOrderIds,e[13]=i,e[14]=o,e[15]=f}else f=e[15];let g;e[19]===f?g=e[20]:(g=(0,l.jsx)("div",{className:"py-3 pl-3 pr-4 relative min-h-full",children:f}),e[19]=f,e[20]=g);let x;e[21]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsx)("div",{className:"h-0 overflow-hidden","aria-hidden":"true"}),e[21]=x):x=e[21];let b;e[22]===g?b=e[23]:(b=(0,l.jsxs)("div",{className:"overflow-y-auto overflow-x-hidden flex-1 scrollbar-none",children:[g,x]}),e[22]=g,e[23]=b);let y;return e[24]!==b||e[25]!==d||e[26]!==p?(y=(0,l.jsxs)("div",{className:d,children:[p,b]}),e[24]=b,e[25]=d,e[26]=p,e[27]=y):y=e[27],y};const Tm=()=>{let t=(0,Pt.c)(5),[e,r]=mr(Ma),n;t[0]===r?n=t[1]:(n=()=>r(Hm),t[0]=r,t[1]=n),Re("global.toggleMinimap",n);let a;return t[2]!==e||t[3]!==r?(a=(0,l.jsx)(Om,{open:e,setOpen:r}),t[2]=e,t[3]=r,t[4]=a):a=t[4],a};function Am(t){return t.split(`
12
- `)[0].trim()||void 0}var Pm=t=>{let e=(0,Pt.c)(11),{cell:r,selectedCell:n}=t,a=M0(),s=r.id===(n==null?void 0:n.id),i;if(e[0]!==r.graph.variables||e[1]!==s||e[2]!==n||e[3]!==a){let c;e[5]!==s||e[6]!==n||e[7]!==a?(c=(d,u)=>{let m=a[d];return(0,l.jsxs)(v.Fragment,{children:[u>0&&", ",(0,l.jsx)("span",{className:V({"font-bold":s,"text-foreground":n===void 0,"text-primary font-medium":!s&&mm(m,n)}),children:d})]},d)},e[5]=s,e[6]=n,e[7]=a,e[8]=c):c=e[8],i=r.graph.variables.map(c),e[0]=r.graph.variables,e[1]=s,e[2]=n,e[3]=a,e[4]=i}else i=e[4];let o;return e[9]===i?o=e[10]:(o=(0,l.jsx)(l.Fragment,{children:i}),e[9]=i,e[10]=o),o},Lm=t=>{let e=(0,Pt.c)(12),{cell:r,cellPositions:n,circleRadius:a}=t,s;if(e[0]!==r.graph.children||e[1]!==r.graph.parents||e[2]!==r.id||e[3]!==n){s=[];let d=n[r.id]??0,u=new Set;for(let m of r.graph.parents)r.graph.children.has(m)&&u.add(m);for(let m of u){let h=n[m];if(h!==void 0){let p=(h-d)*21;s.push((0,l.jsx)("path",{d:`M -3 0 H -7 v ${p} h 14 v ${-p} H 3`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${r.id}-cycle-${m}`))}}for(let m of r.graph.parents){if(u.has(m))continue;let h=n[m];if(h!==void 0){let p=(h-d)*21;s.push((0,l.jsx)("path",{d:`M -3 0 H -7 v ${p} h -4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${r.id}-up-${m}`))}}for(let m of r.graph.children){if(u.has(m))continue;let h=n[m];if(h!==void 0){let p=(h-d)*21;s.push((0,l.jsx)("path",{d:`M 3 0 H 7 v ${p} h 4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${r.id}-down-${m}`))}}e[0]=r.graph.children,e[1]=r.graph.parents,e[2]=r.id,e[3]=n,e[4]=s}else s=e[4];let i;e[5]===a?i=e[6]:(i=(0,l.jsx)("circle",{r:a,fill:"currentColor",className:"pointer-events-auto"}),e[5]=a,e[6]=i);let o;e[7]===s?o=e[8]:(o=(0,l.jsx)("g",{className:"pen pointer-events-auto",children:s}),e[7]=s,e[8]=o);let c;return e[9]!==i||e[10]!==o?(c=(0,l.jsxs)("g",{transform:"translate(0, 0)",children:[i,o]}),e[9]=i,e[10]=o,e[11]=c):c=e[11],c};function Fm(t){let{cell:e,selectedCell:r,circleRadius:n}=t,a=e.graph.ancestors.size>0,s=e.graph.descendants.size>0;if(!r)return Aa({circleRadius:n,leftWisker:a,rightWisker:s});let i=r.graph.ancestors.has(e.id),o=r.graph.descendants.has(e.id);return Aa(i||o?{circleRadius:n,leftWisker:a,rightWisker:s,shift:i&&o?void 0:i?"left":"right"}:{circleRadius:n,leftWisker:!1,rightWisker:!1})}function Aa(t){let{circleRadius:e,leftWisker:r,rightWisker:n,shift:a}=t;return(0,l.jsxs)("g",{transform:`translate(${a===void 0?0:a==="left"?-14:14}, 0)`,children:[(0,l.jsxs)("g",{children:[r&&(0,l.jsx)("path",{d:"M 0 0 h -8",fill:"none",strokeWidth:"2",stroke:"currentColor"}),n&&(0,l.jsx)("path",{d:"M 0 0 h 8",fill:"none",strokeWidth:"2",stroke:"currentColor"})]}),(0,l.jsx)("circle",{r:e,fill:"currentColor",className:"pointer-events-auto"})]})}function Wm({cell:t,selectedCell:e}){return t.hasError?"text-destructive":!e&&!Pa(t.graph)?"text-foreground":(e==null?void 0:e.id)===t.id||e!=null&&e.graph.parents.has(t.id)||e!=null&&e.graph.children.has(t.id)?"text-primary":"text-(--gray-8)"}function Pa(t){return t.variables.length===0&&t.ancestors.size===0&&t.descendants.size===0}function Vm(t){return t.preventDefault()}function Bm(t,e){return[t,e]}function Hm(t){return!t}var qm=W(H(),1);const $m=()=>{let t=(0,qm.c)(46),[e,r]=(0,v.useState)(null),n=Z(_n),a;t[0]===n?a=t[1]:(a=[...n.keys()],t[0]=n,t[1]=a);let s=a,{deleteStagedCell:i,removeStagedCell:o}=cs(Va()),c=Os();if(n.size===0)return null;let d=Um,u;t[2]!==e||t[3]!==s?(u=T=>{let L=O1(e,s.length,T);r(L),d(s[L])},t[2]=e,t[3]=s,t[4]=u):u=t[4];let m=u,h;t[5]!==i||t[6]!==o||t[7]!==n?(h=()=>{for(let[T,L]of n)oa(T,L,o,i)},t[5]=i,t[6]=o,t[7]=n,t[8]=h):h=t[8];let p=h,f;t[9]!==i||t[10]!==o||t[11]!==n?(f=()=>{for(let[T,L]of n)ca(T,L,o,i)},t[9]=i,t[10]=o,t[11]=n,t[12]=f):f=t[12];let g=f,x;t[13]!==s||t[14]!==c?(x=()=>{c(s)},t[13]=s,t[14]=c,t[15]=x):x=t[15];let b=x,y,j;t[16]===Symbol.for("react.memo_cache_sentinel")?(y=V("fixed bottom-16 left-1/2 transform -translate-x-1/2 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/80 border border-border rounded-lg px-3 py-2 flex items-center justify-between gap-2.5 w-100","shadow-[0_0_6px_0_#00A2C733]"),j=(0,l.jsx)(Sr,{className:"h-4 w-4 text-primary"}),t[16]=y,t[17]=j):(y=t[16],j=t[17]);let w;t[18]===m?w=t[19]:(w=()=>m("up"),t[18]=m,t[19]=w);let _;t[20]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(Cn,{className:"h-3.5 w-3.5"}),t[20]=_):_=t[20];let N;t[21]===w?N=t[22]:(N=(0,l.jsx)(oe,{variant:"ghost",size:"icon",onClick:w,children:_}),t[21]=w,t[22]=N);let C=e===null?`${s.length} pending`:`${e+1} / ${s.length}`,I;t[23]===C?I=t[24]:(I=(0,l.jsx)("span",{className:"text-xs font-mono min-w-[3.5rem] text-center",children:C}),t[23]=C,t[24]=I);let R;t[25]===m?R=t[26]:(R=()=>m("down"),t[25]=m,t[26]=R);let k;t[27]===Symbol.for("react.memo_cache_sentinel")?(k=(0,l.jsx)(ut,{className:"h-3.5 w-3.5"}),t[27]=k):k=t[27];let S;t[28]===R?S=t[29]:(S=(0,l.jsx)(oe,{variant:"ghost",size:"icon",onClick:R,children:k}),t[28]=R,t[29]=S);let z;t[30]!==I||t[31]!==S||t[32]!==N?(z=(0,l.jsxs)("div",{className:"flex items-center",children:[N,I,S]}),t[30]=I,t[31]=S,t[32]=N,t[33]=z):z=t[33];let E;t[34]===Symbol.for("react.memo_cache_sentinel")?(E=(0,l.jsx)("div",{className:"h-5 w-px bg-border"}),t[34]=E):E=t[34];let O;t[35]!==p||t[36]!==b?(O=(0,l.jsx)(X1,{multipleCompletions:!0,onAccept:p,isLoading:!1,size:"xs",buttonStyles:"h-6.5",playButtonStyles:"h-6.5",runCell:b}),t[35]=p,t[36]=b,t[37]=O):O=t[37];let P;t[38]===g?P=t[39]:(P=(0,l.jsx)(G1,{multipleCompletions:!0,onDecline:g,size:"xs",className:"h-6.5"}),t[38]=g,t[39]=P);let D;t[40]!==O||t[41]!==P?(D=(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[O,P]}),t[40]=O,t[41]=P,t[42]=D):D=t[42];let M;return t[43]!==z||t[44]!==D?(M=(0,l.jsxs)("div",{className:y,children:[j,z,E,D]}),t[43]=z,t[44]=D,t[45]=M):M=t[45],M};function Um(t){vf(t,"focus")}var Km=W(H(),1),Gm=v.lazy(()=>Ne(()=>import("./terminal-BLwVAXVy.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]),import.meta.url)),Xm=v.lazy(()=>Ne(()=>import("./chat-panel-B-aSH1sh.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([46,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,61,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,86,1,16,87,88,89,90,91,35,40,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,41,111,112,113,114,115,116,43,117,118,44,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275]),import.meta.url)),Ym=v.lazy(()=>Ne(()=>import("./agent-panel-Dhy20Enr.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([276,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,120,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,1,16,40,121,122,123,124,125,126,127,128,129,130,41,131,132,43,133,134,135,136,137,138,139,140,141,142,143,88,87,91,35,92,93,94,95,96,144,97,145,86,146,106,107,108,98,147,148,149,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,162,163,164,165,104,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,28,277,272,115,116,278,273,118,279,275,280]),import.meta.url)),Jm=v.lazy(()=>Ne(()=>import("./dependency-graph-panel-6gaUZ9_z.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([281,47,120,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,1,2,15,16,40,165,91,35,92,93,94,95,96,282,268,148,283,284,285,143,88,87,90,99,145,128,150,41,157,119,286,116,287,136,288,44,289,166,158,167,290,291,146,106,107,108,56,57,58,60,98,129,292,142,293,294,295,274,296,297,298]),import.meta.url)),Qm=v.lazy(()=>Ne(()=>import("./datasources-panel-6PT8Bek6.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([299,47,121,6,7,62,63,11,5,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,300,149,41,43,86,128,129,301,16,92,94,95,15,140,268,302,270,303,87,88,304,91,35,40,93,96,90,97,305,306,146,106,107,108,56,57,58,60,2,89,98,102,307,116,117,308,44,143,309,109,310,311,112,113,114,312,286,313,314,315,118]),import.meta.url)),Zm=v.lazy(()=>Ne(()=>import("./documentation-panel-CuORNaIe.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([316,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,148,40,270,149,41,43,147,150,96,95,151,317]),import.meta.url)),e0=v.lazy(()=>Ne(()=>import("./error-panel-DsYYzWCa.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([318,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,270,141,142,143,88,87,91,35,40,92,93,94,95,96,49,144,2,15,97,145]),import.meta.url)),t0=v.lazy(()=>Ne(()=>import("./file-explorer-panel-CPZ1gNhJ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([319,47,320,121,6,7,122,19,123,124,125,126,23,139,62,63,11,5,8,51,4,3,9,50,10,12,13,14,17,64,18,20,21,22,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,140,141,142,143,88,87,91,35,40,92,93,94,95,96,49,144,2,15,97,145,86,146,106,107,108,56,57,58,60,16,98,147,148,149,41,43,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,55,162,163,321,278,134,135,322,323,1,129,130,269,324,325,275,326,167,327,132,133,295,328,308,329,44,330]),import.meta.url)),r0=v.lazy(()=>Ne(()=>import("./logs-panel-KRi5a3Yd.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([331,47,332,11,5,6,7,8,62,63,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,270,142,143,88,87,91,35,40,92,93,94,95,96,134]),import.meta.url)),n0=v.lazy(()=>Ne(()=>import("./outline-panel-CwQOW3hr.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([333,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,270,334,150,335]),import.meta.url)),l0=v.lazy(()=>Ne(()=>import("./packages-panel-bIuFo_yZ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([336,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,61,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,86,1,16,87,88,89,90,91,35,40,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,41,111,112,113,114,115,116,43,117,118,44,119,337,270,301]),import.meta.url)),a0=v.lazy(()=>Ne(()=>import("./scratchpad-panel-6URLLQyW.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([338,47,339,7,48,49,3,4,5,6,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,120,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,1,16,40,121,122,123,124,125,126,138,139,140,141,142,143,88,87,91,35,92,93,94,95,96,144,97,145,86,146,106,107,108,98,147,148,149,41,43,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,162,163,164,165,104,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,128,269,340,283,337,341,302,129,287,117,342,289,290,334,90,99,105,343,136,275,344,321,278,134,135,322,323,103,345,346,277,347,329,348,349,350,130,132]),import.meta.url)),s0=v.lazy(()=>Ne(()=>import("./secrets-panel-ii29X28D.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([351,270,5,6,7,8,303,51,19,4,11,87,88,3,9,50,10,12,13,14,304,91,35,36,23,37,38,39,40,92,53,24,93,94,95,96,90,97,64,52,20,21,22,86,143,63,100,65,33,30,309,109,110,27,41,43,117]),import.meta.url)),i0=v.lazy(()=>Ne(()=>import("./snippets-panel-DQjHx5dH.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([352,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,148,40,270,350,150,149,41,43,86,143,88,87,91,35,92,93,94,95,96,146,106,107,108,56,57,58,60,147,151,102,129,109,130,110,132,117,353]),import.meta.url)),o0=v.lazy(()=>Ne(()=>import("./tracing-panel-BNZEX5NU.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([354,47,86,11,13,6,7,5,8]),import.meta.url)),c0=v.lazy(()=>Ne(()=>import("./variable-panel-E1eImuWQ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([355,47,121,6,7,122,19,123,124,125,126,23,139,62,63,11,5,8,51,4,3,9,50,10,12,13,14,17,64,18,20,21,22,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,140,141,142,143,88,87,91,35,40,92,93,94,95,96,49,144,2,15,97,145,86,146,106,107,108,56,57,58,60,16,98,147,148,149,41,43,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,55,162,163,270,292,311,112,113,114,312,313,314,315,296,297,275]),import.meta.url)),d0=v.lazy(()=>Ne(()=>import("./cache-panel-BDEhA_NV.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([356,270,5,6,7,8,86,11,13,88,51,19,4,3,9,64,357,20,21,22,23,52,24,109,40,53,92,94,95,358,118,44]),import.meta.url));const u0=t=>{let e=(0,Km.c)(131),{children:r}=t,{isSidebarOpen:n,isTerminalOpen:a,selectedPanel:s}=cn(),{setIsSidebarOpen:i,setIsTerminalOpen:o}=gr(),c=v.useRef(null),d=v.useRef(null),u=(0,v.useId)(),m=(0,v.useId)(),h,p;e[0]===n?(h=e[1],p=e[2]):(h=()=>{if(!c.current)return;let Ie=c.current.isCollapsed();n&&Ie&&c.current.expand(),!n&&!Ie&&c.current.collapse(),requestAnimationFrame(h0)},p=[n],e[0]=n,e[1]=h,e[2]=p),(0,v.useEffect)(h,p);let f,g;e[3]===a?(f=e[4],g=e[5]):(f=()=>{if(!d.current)return;let Ie=d.current.isCollapsed();a&&Ie&&d.current.expand(),!a&&!Ie&&d.current.collapse(),requestAnimationFrame(f0)},g=[a],e[3]=a,e[4]=f,e[5]=g),(0,v.useEffect)(f,g);let x;e[6]===r?x=e[7]:(x=(0,l.jsx)(vr,{id:"app",className:"relative h-full",children:(0,l.jsx)(v.Suspense,{children:r})},"app"),e[6]=r,e[7]=x);let b=x,y=n?"resize-handle":"resize-handle-collapsed",j;e[8]===y?j=e[9]:(j=V("border-border no-print z-10",y,"vertical"),e[8]=y,e[9]=j);let w;e[10]===j?w=e[11]:(w=(0,l.jsx)(Qa,{onDragging:Za,className:j}),e[10]=j,e[11]=w);let _=w,N=a?"resize-handle":"resize-handle-collapsed",C;e[12]===N?C=e[13]:(C=V("border-border no-print z-20",N,"horizontal"),e[12]=N,e[13]=C);let I;e[14]===C?I=e[15]:(I=(0,l.jsx)(Qa,{onDragging:Za,className:C}),e[14]=C,e[15]=I);let R=I,k;e[16]===s?k=e[17]:(k=(0,l.jsx)("div",{className:"text-sm text-(--slate-11) uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=k);let S;e[18]===i?S=e[19]:(S=()=>i(!1),e[18]=i,e[19]=S);let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=(0,l.jsx)($e,{className:"w-4 h-4"}),e[20]=z):z=e[20];let E;e[21]===S?E=e[22]:(E=(0,l.jsx)(oe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:S,children:z}),e[21]=S,e[22]=E);let O;e[23]!==k||e[24]!==E?(O=(0,l.jsxs)("div",{className:"p-3 border-b flex justify-between items-center",children:[k,E]}),e[23]=k,e[24]=E,e[25]=O):O=e[25];let P;e[26]===s?P=e[27]:(P=s==="files"&&(0,l.jsx)(t0,{}),e[26]=s,e[27]=P);let D;e[28]===s?D=e[29]:(D=s==="errors"&&(0,l.jsx)(e0,{}),e[28]=s,e[29]=D);let M;e[30]===s?M=e[31]:(M=s==="variables"&&(0,l.jsx)(c0,{}),e[30]=s,e[31]=M);let T;e[32]===s?T=e[33]:(T=s==="dependencies"&&(0,l.jsx)(Jm,{}),e[32]=s,e[33]=T);let L;e[34]===s?L=e[35]:(L=s==="packages"&&(0,l.jsx)(l0,{}),e[34]=s,e[35]=L);let A;e[36]===s?A=e[37]:(A=s==="outline"&&(0,l.jsx)(n0,{}),e[36]=s,e[37]=A);let q;e[38]===s?q=e[39]:(q=s==="datasources"&&(0,l.jsx)(Qm,{}),e[38]=s,e[39]=q);let X;e[40]===s?X=e[41]:(X=s==="documentation"&&(0,l.jsx)(Zm,{}),e[40]=s,e[41]=X);let K;e[42]===s?K=e[43]:(K=s==="snippets"&&(0,l.jsx)(i0,{}),e[42]=s,e[43]=K);let $;e[44]===s?$=e[45]:($=s==="scratchpad"&&(0,l.jsx)(a0,{}),e[44]=s,e[45]=$);let Q;e[46]===s?Q=e[47]:(Q=s==="chat"&&(0,l.jsx)(Xm,{}),e[46]=s,e[47]=Q);let B;e[48]===s?B=e[49]:(B=s==="agents"&&(0,l.jsx)(Ym,{}),e[48]=s,e[49]=B);let le;e[50]===s?le=e[51]:(le=s==="logs"&&(0,l.jsx)(r0,{}),e[50]=s,e[51]=le);let F;e[52]===s?F=e[53]:(F=s==="tracing"&&(0,l.jsx)(o0,{}),e[52]=s,e[53]=F);let G;e[54]===s?G=e[55]:(G=s==="secrets"&&(0,l.jsx)(s0,{}),e[54]=s,e[55]=G);let Y;e[56]===s?Y=e[57]:(Y=s==="cache"&&(0,l.jsx)(d0,{}),e[56]=s,e[57]=Y);let J;e[58]!==P||e[59]!==D||e[60]!==M||e[61]!==T||e[62]!==L||e[63]!==A||e[64]!==q||e[65]!==X||e[66]!==K||e[67]!==$||e[68]!==Q||e[69]!==B||e[70]!==le||e[71]!==F||e[72]!==G||e[73]!==Y?(J=(0,l.jsx)(v.Suspense,{children:(0,l.jsxs)(Ir,{children:[P,D,M,T,L,A,q,X,K,$,Q,B,le,F,G,Y]})}),e[58]=P,e[59]=D,e[60]=M,e[61]=T,e[62]=L,e[63]=A,e[64]=q,e[65]=X,e[66]=K,e[67]=$,e[68]=Q,e[69]=B,e[70]=le,e[71]=F,e[72]=G,e[73]=Y,e[74]=J):J=e[74];let ee;e[75]!==O||e[76]!==J?(ee=(0,l.jsx)(as,{children:(0,l.jsxs)("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[O,J]})}),e[75]=O,e[76]=J,e[77]=ee):ee=e[77];let se=ee,ae=`helper-${u}`,de=n&&"border-r border-l border-(--slate-7)",ce;e[78]===de?ce=e[79]:(ce=V("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",de),e[78]=de,e[79]=ce);let ve;e[80]===Symbol.for("react.memo_cache_sentinel")?(ve=(Ie,Pe)=>{var Te;Pe===0&&Ie===10&&((Te=c.current)==null||Te.resize(30))},e[80]=ve):ve=e[80];let me,pe;e[81]===i?(me=e[82],pe=e[83]):(me=()=>i(!1),pe=()=>i(!0),e[81]=i,e[82]=me,e[83]=pe);let ie;e[84]!==se||e[85]!==_?(ie=(0,l.jsxs)("span",{className:"flex flex-row h-full",children:[se," ",_]}),e[84]=se,e[85]=_,e[86]=ie):ie=e[86];let ue;e[87]!==ae||e[88]!==ce||e[89]!==me||e[90]!==pe||e[91]!==ie?(ue=(0,l.jsx)(vr,{ref:c,id:ae,"data-testid":"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:ve,onCollapse:me,onExpand:pe,children:ie},"helper"),e[87]=ae,e[88]=ce,e[89]=me,e[90]=pe,e[91]=ie,e[92]=ue):ue=e[92];let he=ue,ye=`terminal-${m}`,re=a&&"border-(--slate-7)",U;e[93]===re?U=e[94]:(U=V("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",re),e[93]=re,e[94]=U);let Ye;e[95]===Symbol.for("react.memo_cache_sentinel")?(Ye=(Ie,Pe)=>{var Te;Pe===0&&Ie===10&&((Te=d.current)==null||Te.resize(30))},e[95]=Ye):Ye=e[95];let Be,He;e[96]===o?(Be=e[97],He=e[98]):(Be=()=>o(!1),He=()=>o(!0),e[96]=o,e[97]=Be,e[98]=He);let ct;e[99]===Symbol.for("react.memo_cache_sentinel")?(ct=(0,l.jsx)("div",{}),e[99]=ct):ct=e[99];let Je;e[100]===o?Je=e[101]:(Je=()=>o(!1),e[100]=o,e[101]=Je);let rt;e[102]!==a||e[103]!==Je?(rt=(0,l.jsx)(v.Suspense,{fallback:ct,children:(0,l.jsx)(Gm,{visible:a,onClose:Je})}),e[102]=a,e[103]=Je,e[104]=rt):rt=e[104];let nt;e[105]!==a||e[106]!==rt?(nt=(0,l.jsx)(Dm,{isOpen:a,children:rt}),e[105]=a,e[106]=rt,e[107]=nt):nt=e[107];let wt;e[108]!==ye||e[109]!==U||e[110]!==Be||e[111]!==He||e[112]!==nt||e[113]!==R?(wt=(0,l.jsxs)(vr,{ref:d,id:ye,"data-testid":"terminal",collapsedSize:0,collapsible:!0,className:U,minSize:10,defaultSize:0,maxSize:75,onResize:Ye,onCollapse:Be,onExpand:He,children:[R,nt]},"terminal"),e[108]=ye,e[109]=U,e[110]=Be,e[111]=He,e[112]=nt,e[113]=R,e[114]=wt):wt=e[114];let _t=wt,ke;e[115]===Symbol.for("react.memo_cache_sentinel")?(ke=bp("left"),e[115]=ke):ke=e[115];let _e;e[116]===Symbol.for("react.memo_cache_sentinel")?(_e=(0,l.jsx)(Ir,{children:(0,l.jsx)(km,{})}),e[116]=_e):_e=e[116];let be;e[117]===_t?be=e[118]:(be=(0,l.jsx)(za,{capability:"terminal",children:_t}),e[117]=_t,e[118]=be);let De;e[119]!==b||e[120]!==be?(De=(0,l.jsx)(vr,{children:(0,l.jsxs)(rs,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[b,be]})}),e[119]=b,e[120]=be,e[121]=De):De=e[121];let Se;e[122]===Symbol.for("react.memo_cache_sentinel")?(Se=(0,l.jsx)(c1,{}),e[122]=Se):Se=e[122];let xe;e[123]!==he||e[124]!==De?(xe=(0,l.jsxs)(rs,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:ke,children:[_e,he,De,Se]}),e[123]=he,e[124]=De,e[125]=xe):xe=e[125];let ze,fe;e[126]===Symbol.for("react.memo_cache_sentinel")?(ze=(0,l.jsx)(Tm,{}),fe=(0,l.jsx)($m,{}),e[126]=ze,e[127]=fe):(ze=e[126],fe=e[127]);let ge;e[128]===Symbol.for("react.memo_cache_sentinel")?(ge=(0,l.jsx)(as,{children:(0,l.jsx)(Ir,{children:(0,l.jsx)(jm,{})})}),e[128]=ge):ge=e[128];let Oe;return e[129]===xe?Oe=e[130]:(Oe=(0,l.jsxs)(pp,{children:[xe,ze,fe,ge]}),e[129]=xe,e[130]=Oe),Oe};function m0(){window.dispatchEvent(new Event("resize"))}function h0(){requestAnimationFrame(m0)}function p0(){window.dispatchEvent(new Event("resize"))}function f0(){requestAnimationFrame(p0)}let La,ln,Fa;La=W(H(),1),ln=(0,v.lazy)(()=>Ne(()=>import("./command-palette-DisdRO5p.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([359,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,61,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,86,1,16,87,88,89,90,91,35,40,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,41,111,112,113,114,115,116,43,117,118,44,119,120,121,122,123,124,125,126,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,282,268,283,284,285,128,286,287,136,288,360,342,289,290,334,341,302,129,343,275,344,305,303,304,306,307,308,309,310,311,312,361,362,324,363,272,358,133,328,134,135,364,365,274,296,317]),import.meta.url)),Fa=new URL(window.location.href).searchParams.get(j1.showChrome)==="false",Ws=t=>{let e=(0,La.c)(10);if(Fa){let s;e[0]===t?s=e[1]:(s=(0,l.jsx)(Ea,{hideControls:!0,...t}),e[0]=t,e[1]=s);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(ln,{}),e[2]=i):i=e[2];let o;return e[3]===s?o=e[4]:(o=(0,l.jsxs)(l.Fragment,{children:[s,i]}),e[3]=s,e[4]=o),o}let r;e[5]===t?r=e[6]:(r=(0,l.jsx)(Ea,{...t}),e[5]=t,e[6]=r);let n;e[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(ln,{}),e[7]=n):n=e[7];let a;return e[8]===r?a=e[9]:(a=(0,l.jsxs)(u0,{children:[r,n]}),e[8]=r,e[9]=a),a}});export{zf as __tla,Ws as default};
12
+ `)[0].trim()||void 0}var Pm=t=>{let e=(0,Pt.c)(11),{cell:r,selectedCell:n}=t,a=M0(),s=r.id===(n==null?void 0:n.id),i;if(e[0]!==r.graph.variables||e[1]!==s||e[2]!==n||e[3]!==a){let c;e[5]!==s||e[6]!==n||e[7]!==a?(c=(d,u)=>{let m=a[d];return(0,l.jsxs)(v.Fragment,{children:[u>0&&", ",(0,l.jsx)("span",{className:V({"font-bold":s,"text-foreground":n===void 0,"text-primary font-medium":!s&&mm(m,n)}),children:d})]},d)},e[5]=s,e[6]=n,e[7]=a,e[8]=c):c=e[8],i=r.graph.variables.map(c),e[0]=r.graph.variables,e[1]=s,e[2]=n,e[3]=a,e[4]=i}else i=e[4];let o;return e[9]===i?o=e[10]:(o=(0,l.jsx)(l.Fragment,{children:i}),e[9]=i,e[10]=o),o},Lm=t=>{let e=(0,Pt.c)(12),{cell:r,cellPositions:n,circleRadius:a}=t,s;if(e[0]!==r.graph.children||e[1]!==r.graph.parents||e[2]!==r.id||e[3]!==n){s=[];let d=n[r.id]??0,u=new Set;for(let m of r.graph.parents)r.graph.children.has(m)&&u.add(m);for(let m of u){let h=n[m];if(h!==void 0){let p=(h-d)*21;s.push((0,l.jsx)("path",{d:`M -3 0 H -7 v ${p} h 14 v ${-p} H 3`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${r.id}-cycle-${m}`))}}for(let m of r.graph.parents){if(u.has(m))continue;let h=n[m];if(h!==void 0){let p=(h-d)*21;s.push((0,l.jsx)("path",{d:`M -3 0 H -7 v ${p} h -4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${r.id}-up-${m}`))}}for(let m of r.graph.children){if(u.has(m))continue;let h=n[m];if(h!==void 0){let p=(h-d)*21;s.push((0,l.jsx)("path",{d:`M 3 0 H 7 v ${p} h 4`,fill:"none",strokeWidth:"2",stroke:"currentColor"},`${r.id}-down-${m}`))}}e[0]=r.graph.children,e[1]=r.graph.parents,e[2]=r.id,e[3]=n,e[4]=s}else s=e[4];let i;e[5]===a?i=e[6]:(i=(0,l.jsx)("circle",{r:a,fill:"currentColor",className:"pointer-events-auto"}),e[5]=a,e[6]=i);let o;e[7]===s?o=e[8]:(o=(0,l.jsx)("g",{className:"pen pointer-events-auto",children:s}),e[7]=s,e[8]=o);let c;return e[9]!==i||e[10]!==o?(c=(0,l.jsxs)("g",{transform:"translate(0, 0)",children:[i,o]}),e[9]=i,e[10]=o,e[11]=c):c=e[11],c};function Fm(t){let{cell:e,selectedCell:r,circleRadius:n}=t,a=e.graph.ancestors.size>0,s=e.graph.descendants.size>0;if(!r)return Aa({circleRadius:n,leftWisker:a,rightWisker:s});let i=r.graph.ancestors.has(e.id),o=r.graph.descendants.has(e.id);return Aa(i||o?{circleRadius:n,leftWisker:a,rightWisker:s,shift:i&&o?void 0:i?"left":"right"}:{circleRadius:n,leftWisker:!1,rightWisker:!1})}function Aa(t){let{circleRadius:e,leftWisker:r,rightWisker:n,shift:a}=t;return(0,l.jsxs)("g",{transform:`translate(${a===void 0?0:a==="left"?-14:14}, 0)`,children:[(0,l.jsxs)("g",{children:[r&&(0,l.jsx)("path",{d:"M 0 0 h -8",fill:"none",strokeWidth:"2",stroke:"currentColor"}),n&&(0,l.jsx)("path",{d:"M 0 0 h 8",fill:"none",strokeWidth:"2",stroke:"currentColor"})]}),(0,l.jsx)("circle",{r:e,fill:"currentColor",className:"pointer-events-auto"})]})}function Wm({cell:t,selectedCell:e}){return t.hasError?"text-destructive":!e&&!Pa(t.graph)?"text-foreground":(e==null?void 0:e.id)===t.id||e!=null&&e.graph.parents.has(t.id)||e!=null&&e.graph.children.has(t.id)?"text-primary":"text-(--gray-8)"}function Pa(t){return t.variables.length===0&&t.ancestors.size===0&&t.descendants.size===0}function Vm(t){return t.preventDefault()}function Bm(t,e){return[t,e]}function Hm(t){return!t}var qm=W(H(),1);const $m=()=>{let t=(0,qm.c)(46),[e,r]=(0,v.useState)(null),n=Z(_n),a;t[0]===n?a=t[1]:(a=[...n.keys()],t[0]=n,t[1]=a);let s=a,{deleteStagedCell:i,removeStagedCell:o}=cs(Va()),c=Os();if(n.size===0)return null;let d=Um,u;t[2]!==e||t[3]!==s?(u=T=>{let L=O1(e,s.length,T);r(L),d(s[L])},t[2]=e,t[3]=s,t[4]=u):u=t[4];let m=u,h;t[5]!==i||t[6]!==o||t[7]!==n?(h=()=>{for(let[T,L]of n)oa(T,L,o,i)},t[5]=i,t[6]=o,t[7]=n,t[8]=h):h=t[8];let p=h,f;t[9]!==i||t[10]!==o||t[11]!==n?(f=()=>{for(let[T,L]of n)ca(T,L,o,i)},t[9]=i,t[10]=o,t[11]=n,t[12]=f):f=t[12];let g=f,x;t[13]!==s||t[14]!==c?(x=()=>{c(s)},t[13]=s,t[14]=c,t[15]=x):x=t[15];let b=x,y,j;t[16]===Symbol.for("react.memo_cache_sentinel")?(y=V("fixed bottom-16 left-1/2 transform -translate-x-1/2 z-50 bg-background/95 backdrop-blur-sm supports-backdrop-filter:bg-background/80 border border-border rounded-lg px-3 py-2 flex items-center justify-between gap-2.5 w-100","shadow-[0_0_6px_0_#00A2C733]"),j=(0,l.jsx)(Sr,{className:"h-4 w-4 text-primary"}),t[16]=y,t[17]=j):(y=t[16],j=t[17]);let w;t[18]===m?w=t[19]:(w=()=>m("up"),t[18]=m,t[19]=w);let _;t[20]===Symbol.for("react.memo_cache_sentinel")?(_=(0,l.jsx)(Cn,{className:"h-3.5 w-3.5"}),t[20]=_):_=t[20];let N;t[21]===w?N=t[22]:(N=(0,l.jsx)(oe,{variant:"ghost",size:"icon",onClick:w,children:_}),t[21]=w,t[22]=N);let C=e===null?`${s.length} pending`:`${e+1} / ${s.length}`,I;t[23]===C?I=t[24]:(I=(0,l.jsx)("span",{className:"text-xs font-mono min-w-[3.5rem] text-center",children:C}),t[23]=C,t[24]=I);let R;t[25]===m?R=t[26]:(R=()=>m("down"),t[25]=m,t[26]=R);let k;t[27]===Symbol.for("react.memo_cache_sentinel")?(k=(0,l.jsx)(ut,{className:"h-3.5 w-3.5"}),t[27]=k):k=t[27];let S;t[28]===R?S=t[29]:(S=(0,l.jsx)(oe,{variant:"ghost",size:"icon",onClick:R,children:k}),t[28]=R,t[29]=S);let z;t[30]!==I||t[31]!==S||t[32]!==N?(z=(0,l.jsxs)("div",{className:"flex items-center",children:[N,I,S]}),t[30]=I,t[31]=S,t[32]=N,t[33]=z):z=t[33];let E;t[34]===Symbol.for("react.memo_cache_sentinel")?(E=(0,l.jsx)("div",{className:"h-5 w-px bg-border"}),t[34]=E):E=t[34];let O;t[35]!==p||t[36]!==b?(O=(0,l.jsx)(X1,{multipleCompletions:!0,onAccept:p,isLoading:!1,size:"xs",buttonStyles:"h-6.5",playButtonStyles:"h-6.5",runCell:b}),t[35]=p,t[36]=b,t[37]=O):O=t[37];let P;t[38]===g?P=t[39]:(P=(0,l.jsx)(G1,{multipleCompletions:!0,onDecline:g,size:"xs",className:"h-6.5"}),t[38]=g,t[39]=P);let D;t[40]!==O||t[41]!==P?(D=(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[O,P]}),t[40]=O,t[41]=P,t[42]=D):D=t[42];let M;return t[43]!==z||t[44]!==D?(M=(0,l.jsxs)("div",{className:y,children:[j,z,E,D]}),t[43]=z,t[44]=D,t[45]=M):M=t[45],M};function Um(t){vf(t,"focus")}var Km=W(H(),1),Gm=v.lazy(()=>Ne(()=>import("./terminal-BLwVAXVy.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]),import.meta.url)),Xm=v.lazy(()=>Ne(()=>import("./chat-panel-DajnoQHz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([46,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,61,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,86,1,16,87,88,89,90,91,35,40,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,41,111,112,113,114,115,116,43,117,118,44,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275]),import.meta.url)),Ym=v.lazy(()=>Ne(()=>import("./agent-panel-B5iI79QW.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([276,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,120,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,1,16,40,121,122,123,124,125,126,127,128,129,130,41,131,132,43,133,134,135,136,137,138,139,140,141,142,143,88,87,91,35,92,93,94,95,96,144,97,145,86,146,106,107,108,98,147,148,149,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,162,163,164,165,104,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,28,277,272,115,116,278,273,118,279,275,280]),import.meta.url)),Jm=v.lazy(()=>Ne(()=>import("./dependency-graph-panel-DcOypoYV.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([281,47,120,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,1,2,15,16,40,165,91,35,92,93,94,95,96,282,268,148,283,284,285,143,88,87,90,99,145,128,150,41,157,119,286,116,287,136,288,44,289,166,158,167,290,291,146,106,107,108,56,57,58,60,98,129,292,142,293,294,295,274,296,297,298]),import.meta.url)),Qm=v.lazy(()=>Ne(()=>import("./datasources-panel-Bo6UM72J.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([299,47,121,6,7,62,63,11,5,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,300,149,41,43,86,128,129,301,16,92,94,95,15,140,268,302,270,303,87,88,304,91,35,40,93,96,90,97,305,306,146,106,107,108,56,57,58,60,2,89,98,102,307,116,117,308,44,143,309,109,310,311,112,113,114,312,286,313,314,315,118]),import.meta.url)),Zm=v.lazy(()=>Ne(()=>import("./documentation-panel-BPa77v-x.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([316,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,148,40,270,149,41,43,147,150,96,95,151,317]),import.meta.url)),e0=v.lazy(()=>Ne(()=>import("./error-panel-C4Dh4_Gz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([318,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,270,141,142,143,88,87,91,35,40,92,93,94,95,96,49,144,2,15,97,145]),import.meta.url)),t0=v.lazy(()=>Ne(()=>import("./file-explorer-panel-BTjjB1ys.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([319,47,320,121,6,7,122,19,123,124,125,126,23,139,62,63,11,5,8,51,4,3,9,50,10,12,13,14,17,64,18,20,21,22,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,140,141,142,143,88,87,91,35,40,92,93,94,95,96,49,144,2,15,97,145,86,146,106,107,108,56,57,58,60,16,98,147,148,149,41,43,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,55,162,163,321,278,134,135,322,323,1,129,130,269,324,325,275,326,167,327,132,133,295,328,308,329,44,330]),import.meta.url)),r0=v.lazy(()=>Ne(()=>import("./logs-panel-C8ChYhO8.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([331,47,332,11,5,6,7,8,62,63,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,270,142,143,88,87,91,35,40,92,93,94,95,96,134]),import.meta.url)),n0=v.lazy(()=>Ne(()=>import("./outline-panel-QjRV3Zps.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([333,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,270,334,150,335]),import.meta.url)),l0=v.lazy(()=>Ne(()=>import("./packages-panel-_yihtFbB.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([336,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,61,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,86,1,16,87,88,89,90,91,35,40,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,41,111,112,113,114,115,116,43,117,118,44,119,337,270,301]),import.meta.url)),a0=v.lazy(()=>Ne(()=>import("./scratchpad-panel-A9G8o9jf.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([338,47,339,7,48,49,3,4,5,6,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,120,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,1,16,40,121,122,123,124,125,126,138,139,140,141,142,143,88,87,91,35,92,93,94,95,96,144,97,145,86,146,106,107,108,98,147,148,149,41,43,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,162,163,164,165,104,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,128,269,340,283,337,341,302,129,287,117,342,289,290,334,90,99,105,343,136,275,344,321,278,134,135,322,323,103,345,346,277,347,329,348,349,350,130,132]),import.meta.url)),s0=v.lazy(()=>Ne(()=>import("./secrets-panel-ii29X28D.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([351,270,5,6,7,8,303,51,19,4,11,87,88,3,9,50,10,12,13,14,304,91,35,36,23,37,38,39,40,92,53,24,93,94,95,96,90,97,64,52,20,21,22,86,143,63,100,65,33,30,309,109,110,27,41,43,117]),import.meta.url)),i0=v.lazy(()=>Ne(()=>import("./snippets-panel-C6FwSaZz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([352,47,62,63,11,5,6,7,8,51,19,4,3,9,50,10,12,13,14,17,64,18,20,21,22,23,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,148,40,270,350,150,149,41,43,86,143,88,87,91,35,92,93,94,95,96,146,106,107,108,56,57,58,60,147,151,102,129,109,130,110,132,117,353]),import.meta.url)),o0=v.lazy(()=>Ne(()=>import("./tracing-panel-Mt1B8lhs.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([354,47,86,11,13,6,7,5,8]),import.meta.url)),c0=v.lazy(()=>Ne(()=>import("./variable-panel-DAhAueP9.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([355,47,121,6,7,122,19,123,124,125,126,23,139,62,63,11,5,8,51,4,3,9,50,10,12,13,14,17,64,18,20,21,22,24,25,26,27,32,31,33,65,30,34,52,66,67,68,53,69,29,70,71,72,73,74,75,76,77,78,79,54,59,80,36,37,38,39,81,82,83,84,85,140,141,142,143,88,87,91,35,40,92,93,94,95,96,49,144,2,15,97,145,86,146,106,107,108,56,57,58,60,16,98,147,148,149,41,43,150,151,100,101,109,152,110,153,154,155,156,157,119,158,159,160,161,55,162,163,270,292,311,112,113,114,312,313,314,315,296,297,275]),import.meta.url)),d0=v.lazy(()=>Ne(()=>import("./cache-panel-BDEhA_NV.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([356,270,5,6,7,8,86,11,13,88,51,19,4,3,9,64,357,20,21,22,23,52,24,109,40,53,92,94,95,358,118,44]),import.meta.url));const u0=t=>{let e=(0,Km.c)(131),{children:r}=t,{isSidebarOpen:n,isTerminalOpen:a,selectedPanel:s}=cn(),{setIsSidebarOpen:i,setIsTerminalOpen:o}=gr(),c=v.useRef(null),d=v.useRef(null),u=(0,v.useId)(),m=(0,v.useId)(),h,p;e[0]===n?(h=e[1],p=e[2]):(h=()=>{if(!c.current)return;let Ie=c.current.isCollapsed();n&&Ie&&c.current.expand(),!n&&!Ie&&c.current.collapse(),requestAnimationFrame(h0)},p=[n],e[0]=n,e[1]=h,e[2]=p),(0,v.useEffect)(h,p);let f,g;e[3]===a?(f=e[4],g=e[5]):(f=()=>{if(!d.current)return;let Ie=d.current.isCollapsed();a&&Ie&&d.current.expand(),!a&&!Ie&&d.current.collapse(),requestAnimationFrame(f0)},g=[a],e[3]=a,e[4]=f,e[5]=g),(0,v.useEffect)(f,g);let x;e[6]===r?x=e[7]:(x=(0,l.jsx)(vr,{id:"app",className:"relative h-full",children:(0,l.jsx)(v.Suspense,{children:r})},"app"),e[6]=r,e[7]=x);let b=x,y=n?"resize-handle":"resize-handle-collapsed",j;e[8]===y?j=e[9]:(j=V("border-border no-print z-10",y,"vertical"),e[8]=y,e[9]=j);let w;e[10]===j?w=e[11]:(w=(0,l.jsx)(Qa,{onDragging:Za,className:j}),e[10]=j,e[11]=w);let _=w,N=a?"resize-handle":"resize-handle-collapsed",C;e[12]===N?C=e[13]:(C=V("border-border no-print z-20",N,"horizontal"),e[12]=N,e[13]=C);let I;e[14]===C?I=e[15]:(I=(0,l.jsx)(Qa,{onDragging:Za,className:C}),e[14]=C,e[15]=I);let R=I,k;e[16]===s?k=e[17]:(k=(0,l.jsx)("div",{className:"text-sm text-(--slate-11) uppercase tracking-wide font-semibold flex-1",children:s}),e[16]=s,e[17]=k);let S;e[18]===i?S=e[19]:(S=()=>i(!1),e[18]=i,e[19]=S);let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=(0,l.jsx)($e,{className:"w-4 h-4"}),e[20]=z):z=e[20];let E;e[21]===S?E=e[22]:(E=(0,l.jsx)(oe,{"data-testid":"close-helper-pane",className:"m-0",size:"xs",variant:"text",onClick:S,children:z}),e[21]=S,e[22]=E);let O;e[23]!==k||e[24]!==E?(O=(0,l.jsxs)("div",{className:"p-3 border-b flex justify-between items-center",children:[k,E]}),e[23]=k,e[24]=E,e[25]=O):O=e[25];let P;e[26]===s?P=e[27]:(P=s==="files"&&(0,l.jsx)(t0,{}),e[26]=s,e[27]=P);let D;e[28]===s?D=e[29]:(D=s==="errors"&&(0,l.jsx)(e0,{}),e[28]=s,e[29]=D);let M;e[30]===s?M=e[31]:(M=s==="variables"&&(0,l.jsx)(c0,{}),e[30]=s,e[31]=M);let T;e[32]===s?T=e[33]:(T=s==="dependencies"&&(0,l.jsx)(Jm,{}),e[32]=s,e[33]=T);let L;e[34]===s?L=e[35]:(L=s==="packages"&&(0,l.jsx)(l0,{}),e[34]=s,e[35]=L);let A;e[36]===s?A=e[37]:(A=s==="outline"&&(0,l.jsx)(n0,{}),e[36]=s,e[37]=A);let q;e[38]===s?q=e[39]:(q=s==="datasources"&&(0,l.jsx)(Qm,{}),e[38]=s,e[39]=q);let X;e[40]===s?X=e[41]:(X=s==="documentation"&&(0,l.jsx)(Zm,{}),e[40]=s,e[41]=X);let K;e[42]===s?K=e[43]:(K=s==="snippets"&&(0,l.jsx)(i0,{}),e[42]=s,e[43]=K);let $;e[44]===s?$=e[45]:($=s==="scratchpad"&&(0,l.jsx)(a0,{}),e[44]=s,e[45]=$);let Q;e[46]===s?Q=e[47]:(Q=s==="chat"&&(0,l.jsx)(Xm,{}),e[46]=s,e[47]=Q);let B;e[48]===s?B=e[49]:(B=s==="agents"&&(0,l.jsx)(Ym,{}),e[48]=s,e[49]=B);let le;e[50]===s?le=e[51]:(le=s==="logs"&&(0,l.jsx)(r0,{}),e[50]=s,e[51]=le);let F;e[52]===s?F=e[53]:(F=s==="tracing"&&(0,l.jsx)(o0,{}),e[52]=s,e[53]=F);let G;e[54]===s?G=e[55]:(G=s==="secrets"&&(0,l.jsx)(s0,{}),e[54]=s,e[55]=G);let Y;e[56]===s?Y=e[57]:(Y=s==="cache"&&(0,l.jsx)(d0,{}),e[56]=s,e[57]=Y);let J;e[58]!==P||e[59]!==D||e[60]!==M||e[61]!==T||e[62]!==L||e[63]!==A||e[64]!==q||e[65]!==X||e[66]!==K||e[67]!==$||e[68]!==Q||e[69]!==B||e[70]!==le||e[71]!==F||e[72]!==G||e[73]!==Y?(J=(0,l.jsx)(v.Suspense,{children:(0,l.jsxs)(Ir,{children:[P,D,M,T,L,A,q,X,K,$,Q,B,le,F,G,Y]})}),e[58]=P,e[59]=D,e[60]=M,e[61]=T,e[62]=L,e[63]=A,e[64]=q,e[65]=X,e[66]=K,e[67]=$,e[68]=Q,e[69]=B,e[70]=le,e[71]=F,e[72]=G,e[73]=Y,e[74]=J):J=e[74];let ee;e[75]!==O||e[76]!==J?(ee=(0,l.jsx)(as,{children:(0,l.jsxs)("div",{className:"flex flex-col h-full flex-1 overflow-hidden mr-[-4px]",children:[O,J]})}),e[75]=O,e[76]=J,e[77]=ee):ee=e[77];let se=ee,ae=`helper-${u}`,de=n&&"border-r border-l border-(--slate-7)",ce;e[78]===de?ce=e[79]:(ce=V("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",de),e[78]=de,e[79]=ce);let ve;e[80]===Symbol.for("react.memo_cache_sentinel")?(ve=(Ie,Pe)=>{var Te;Pe===0&&Ie===10&&((Te=c.current)==null||Te.resize(30))},e[80]=ve):ve=e[80];let me,pe;e[81]===i?(me=e[82],pe=e[83]):(me=()=>i(!1),pe=()=>i(!0),e[81]=i,e[82]=me,e[83]=pe);let ie;e[84]!==se||e[85]!==_?(ie=(0,l.jsxs)("span",{className:"flex flex-row h-full",children:[se," ",_]}),e[84]=se,e[85]=_,e[86]=ie):ie=e[86];let ue;e[87]!==ae||e[88]!==ce||e[89]!==me||e[90]!==pe||e[91]!==ie?(ue=(0,l.jsx)(vr,{ref:c,id:ae,"data-testid":"helper",collapsedSize:0,collapsible:!0,className:ce,minSize:10,defaultSize:0,maxSize:75,onResize:ve,onCollapse:me,onExpand:pe,children:ie},"helper"),e[87]=ae,e[88]=ce,e[89]=me,e[90]=pe,e[91]=ie,e[92]=ue):ue=e[92];let he=ue,ye=`terminal-${m}`,re=a&&"border-(--slate-7)",U;e[93]===re?U=e[94]:(U=V("dark:bg-(--slate-1) no-print print:hidden hide-on-fullscreen",re),e[93]=re,e[94]=U);let Ye;e[95]===Symbol.for("react.memo_cache_sentinel")?(Ye=(Ie,Pe)=>{var Te;Pe===0&&Ie===10&&((Te=d.current)==null||Te.resize(30))},e[95]=Ye):Ye=e[95];let Be,He;e[96]===o?(Be=e[97],He=e[98]):(Be=()=>o(!1),He=()=>o(!0),e[96]=o,e[97]=Be,e[98]=He);let ct;e[99]===Symbol.for("react.memo_cache_sentinel")?(ct=(0,l.jsx)("div",{}),e[99]=ct):ct=e[99];let Je;e[100]===o?Je=e[101]:(Je=()=>o(!1),e[100]=o,e[101]=Je);let rt;e[102]!==a||e[103]!==Je?(rt=(0,l.jsx)(v.Suspense,{fallback:ct,children:(0,l.jsx)(Gm,{visible:a,onClose:Je})}),e[102]=a,e[103]=Je,e[104]=rt):rt=e[104];let nt;e[105]!==a||e[106]!==rt?(nt=(0,l.jsx)(Dm,{isOpen:a,children:rt}),e[105]=a,e[106]=rt,e[107]=nt):nt=e[107];let wt;e[108]!==ye||e[109]!==U||e[110]!==Be||e[111]!==He||e[112]!==nt||e[113]!==R?(wt=(0,l.jsxs)(vr,{ref:d,id:ye,"data-testid":"terminal",collapsedSize:0,collapsible:!0,className:U,minSize:10,defaultSize:0,maxSize:75,onResize:Ye,onCollapse:Be,onExpand:He,children:[R,nt]},"terminal"),e[108]=ye,e[109]=U,e[110]=Be,e[111]=He,e[112]=nt,e[113]=R,e[114]=wt):wt=e[114];let _t=wt,ke;e[115]===Symbol.for("react.memo_cache_sentinel")?(ke=bp("left"),e[115]=ke):ke=e[115];let _e;e[116]===Symbol.for("react.memo_cache_sentinel")?(_e=(0,l.jsx)(Ir,{children:(0,l.jsx)(km,{})}),e[116]=_e):_e=e[116];let be;e[117]===_t?be=e[118]:(be=(0,l.jsx)(za,{capability:"terminal",children:_t}),e[117]=_t,e[118]=be);let De;e[119]!==b||e[120]!==be?(De=(0,l.jsx)(vr,{children:(0,l.jsxs)(rs,{autoSaveId:"marimo:chrome:v1:l1",direction:"vertical",children:[b,be]})}),e[119]=b,e[120]=be,e[121]=De):De=e[121];let Se;e[122]===Symbol.for("react.memo_cache_sentinel")?(Se=(0,l.jsx)(c1,{}),e[122]=Se):Se=e[122];let xe;e[123]!==he||e[124]!==De?(xe=(0,l.jsxs)(rs,{autoSaveId:"marimo:chrome:v1:l2",direction:"horizontal",storage:ke,children:[_e,he,De,Se]}),e[123]=he,e[124]=De,e[125]=xe):xe=e[125];let ze,fe;e[126]===Symbol.for("react.memo_cache_sentinel")?(ze=(0,l.jsx)(Tm,{}),fe=(0,l.jsx)($m,{}),e[126]=ze,e[127]=fe):(ze=e[126],fe=e[127]);let ge;e[128]===Symbol.for("react.memo_cache_sentinel")?(ge=(0,l.jsx)(as,{children:(0,l.jsx)(Ir,{children:(0,l.jsx)(jm,{})})}),e[128]=ge):ge=e[128];let Oe;return e[129]===xe?Oe=e[130]:(Oe=(0,l.jsxs)(pp,{children:[xe,ze,fe,ge]}),e[129]=xe,e[130]=Oe),Oe};function m0(){window.dispatchEvent(new Event("resize"))}function h0(){requestAnimationFrame(m0)}function p0(){window.dispatchEvent(new Event("resize"))}function f0(){requestAnimationFrame(p0)}let La,ln,Fa;La=W(H(),1),ln=(0,v.lazy)(()=>Ne(()=>import("./command-palette-DbfvqoOB.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([359,47,48,49,3,4,5,6,7,8,9,10,11,50,51,19,12,13,14,2,15,17,18,20,21,22,23,24,25,26,27,52,53,54,55,56,57,58,59,38,60,61,62,63,64,32,31,33,65,30,34,66,67,68,69,29,70,71,72,73,74,75,76,77,78,79,80,36,37,39,81,82,83,84,85,86,1,16,87,88,89,90,91,35,40,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,41,111,112,113,114,115,116,43,117,118,44,119,120,121,122,123,124,125,126,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,282,268,283,284,285,128,286,287,136,288,360,342,289,290,334,341,302,129,343,275,344,305,303,304,306,307,308,309,310,311,312,361,362,324,363,272,358,133,328,134,135,364,365,274,296,317]),import.meta.url)),Fa=new URL(window.location.href).searchParams.get(j1.showChrome)==="false",Ws=t=>{let e=(0,La.c)(10);if(Fa){let s;e[0]===t?s=e[1]:(s=(0,l.jsx)(Ea,{hideControls:!0,...t}),e[0]=t,e[1]=s);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,l.jsx)(ln,{}),e[2]=i):i=e[2];let o;return e[3]===s?o=e[4]:(o=(0,l.jsxs)(l.Fragment,{children:[s,i]}),e[3]=s,e[4]=o),o}let r;e[5]===t?r=e[6]:(r=(0,l.jsx)(Ea,{...t}),e[5]=t,e[6]=r);let n;e[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(ln,{}),e[7]=n):n=e[7];let a;return e[8]===r?a=e[9]:(a=(0,l.jsxs)(u0,{children:[r,n]}),e[8]=r,e[9]=a),a}});export{zf as __tla,Ws as default};