@marimo-team/islands 0.25.3-dev500 → 0.25.3-dev501

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 (73) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BV2GFVYn.js → ConnectedDataExplorerComponent-DtwVgVpX.js} +13 -13
  2. package/dist/{ErrorBoundary-CpSSnt9y.js → ErrorBoundary-UjAniyR8.js} +8 -8
  3. package/dist/{abnfDiagram-VCTEODGH-1AWrWE-o.js → abnfDiagram-VCTEODGH-BbZOIueZ.js} +2 -2
  4. package/dist/{any-language-editor-Dqpg95i0.js → any-language-editor-yG-YmLaK.js} +2 -2
  5. package/dist/{architectureDiagram-5GKGNRK7-D0zM5fGn.js → architectureDiagram-5GKGNRK7-qjLjxapm.js} +1 -1
  6. package/dist/{assertNever-BQEDS5Ew.js → assertNever-DywGMo-S.js} +2 -2
  7. package/dist/{chat-ui-JmYr7eaD.js → chat-ui-CCmVFbcB.js} +41 -41
  8. package/dist/{check-BTnCP_6g.js → check-jchHMCfs.js} +1 -1
  9. package/dist/{chunk-IMKFNOWR-CTe-GyEo.js → chunk-IMKFNOWR-BzDY1_I7.js} +1 -1
  10. package/dist/{chunk-SHT3W25Y-mDvz0_Bb.js → chunk-SHT3W25Y-DbHsMKdo.js} +1 -1
  11. package/dist/{chunk-SVP7TREG-TQe5CTi-.js → chunk-SVP7TREG-CtwnwAE6.js} +1 -1
  12. package/dist/{chunk-TICWLB2K-DueGZcaL.js → chunk-TICWLB2K-C5Z5QMbO.js} +1 -1
  13. package/dist/{classDiagram-ZZMXUADV-C80WtbRl.js → classDiagram-ZZMXUADV-B8E5Hn78.js} +2 -2
  14. package/dist/{classDiagram-v2-VYDZK3BY-BGUFGXB1.js → classDiagram-v2-VYDZK3BY-DeGsK9bT.js} +2 -2
  15. package/dist/{code-visibility-CXdUXvjR.js → code-visibility-8tHEJpUk.js} +19 -19
  16. package/dist/{common-Bgx8DW-s.js → common-CxL4wPFF.js} +162 -162
  17. package/dist/{config-DbjezUyA.js → config-qTaTHnpE.js} +3 -3
  18. package/dist/{copy-icon-7bY-OuK1.js → copy-icon-BI7vZHEW.js} +2 -2
  19. package/dist/{createReducer-BTiEYD5d.js → createReducer-DdSLRfBT.js} +5 -5
  20. package/dist/{cynefinDiagram-5FMLGOSQ-B1FxtX7q.js → cynefinDiagram-5FMLGOSQ-NDedRwsw.js} +1 -1
  21. package/dist/{dagre-GXQ25YYZ-DsaxsLKR.js → dagre-GXQ25YYZ-De0sSZO7.js} +1 -1
  22. package/dist/{data-grid-overlay-editor-Db7nCoNJ.js → data-grid-overlay-editor-BKYGAMTU.js} +1 -1
  23. package/dist/{diagram-S7CK7UJ4-0_x8Q-Gz.js → diagram-S7CK7UJ4-wBtVl61y.js} +1 -1
  24. package/dist/{diagram-UQ7AKVKN-nvR7yqd-.js → diagram-UQ7AKVKN-CKWE3c1T.js} +1 -1
  25. package/dist/{diagram-VX7I27RA-BnEUU78X.js → diagram-VX7I27RA-D2Ac5198.js} +1 -1
  26. package/dist/{diagram-Z3DM3KII-BHX2x9ql.js → diagram-Z3DM3KII-CYaFOQcI.js} +1 -1
  27. package/dist/{dialog-CBKdXrw9.js → dialog-Ic6dh09m.js} +31 -31
  28. package/dist/{dropdown-menu-218IIk7S.js → dropdown-menu-Dhv4fcNl.js} +86 -86
  29. package/dist/{ebnfDiagram-PWID7BFC-DYZD7-aw.js → ebnfDiagram-PWID7BFC-Ds7f42dj.js} +2 -2
  30. package/dist/{erDiagram-RLTQ6QDP-Bv-0tHzX.js → erDiagram-RLTQ6QDP-b58Sz2Mc.js} +1 -1
  31. package/dist/{error-banner-cub3qDum.js → error-banner-CJVLr5_a.js} +15 -15
  32. package/dist/{error-entries-MZLN-feW.js → error-entries-BoO7a296.js} +378 -378
  33. package/dist/{feedback-button-Vn4lQguX.js → feedback-button-6ukwIFn4.js} +120 -120
  34. package/dist/{flowDiagram-HODETNUW-BV2Dug--.js → flowDiagram-HODETNUW-BH9U7VZK.js} +2 -2
  35. package/dist/{formats-CBWqzCiR.js → formats-BLNFWWhV.js} +1 -1
  36. package/dist/{glide-data-editor-SVSB_FrV.js → glide-data-editor-TUEJ7QJU.js} +11 -11
  37. package/dist/{glide-utils-DlglW_uh.js → glide-utils-Cn2_NadX.js} +2 -2
  38. package/dist/{globals-DLg0VAFW.js → globals-DdYss8Nz.js} +3 -3
  39. package/dist/{html-to-image-D6h4lzXj.js → html-to-image-rvMfQD46.js} +326 -326
  40. package/dist/{infoDiagram-27XIBGKW-xekhSKlY.js → infoDiagram-27XIBGKW-xbjwrcNi.js} +1 -1
  41. package/dist/{ishikawaDiagram-5VMMS53U-Coe7mUqv.js → ishikawaDiagram-5VMMS53U-DKtukhGS.js} +1 -1
  42. package/dist/{kanban-definition-UXKFOSKX-Znywqtyi.js → kanban-definition-UXKFOSKX-BEhlkZBb.js} +1 -1
  43. package/dist/main.js +5887 -5861
  44. package/dist/{mermaid-DRT7MewO.js → mermaid-D1CZDNoB.js} +34 -34
  45. package/dist/{mindmap-definition-YA3MSWOX-Do_NrRXE.js → mindmap-definition-YA3MSWOX-DQcnJPcV.js} +1 -1
  46. package/dist/{number-overlay-editor-Cl-4xrmj.js → number-overlay-editor-DvLF2HiC.js} +1 -1
  47. package/dist/{pegDiagram-XKGWAZYB-CTuwofVH.js → pegDiagram-XKGWAZYB-BFQuPYfI.js} +2 -2
  48. package/dist/{pencil-qedVMD6q.js → pencil-DVYzq-iR.js} +1 -1
  49. package/dist/{pieDiagram-E7YTZNPT-CFHRBvha.js → pieDiagram-E7YTZNPT-l7aqNrem.js} +1 -1
  50. package/dist/{process-output-MYh-Vr__.js → process-output-BXff1USQ.js} +4 -4
  51. package/dist/{railroadDiagram-O6MQD6OU-BJBqS4A3.js → railroadDiagram-O6MQD6OU-6R3C1lwQ.js} +2 -2
  52. package/dist/{requirementDiagram-BXWQKSXE-CoMoIh3b.js → requirementDiagram-BXWQKSXE-DdWYu8fn.js} +1 -1
  53. package/dist/{reveal-component-CSm--bq9.js → reveal-component-DuUxTG4p.js} +1008 -1008
  54. package/dist/{select-BcEi9lad.js → select-CDUxhHZg.js} +109 -109
  55. package/dist/{sequenceDiagram-WJ2MYXX4-Cu7Mpp-z.js → sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js} +1 -1
  56. package/dist/{spec-AxyC1vc5.js → spec-ZAt4P01J.js} +4 -4
  57. package/dist/{stateDiagram-D77RDMKH-DX7_Rnib.js → stateDiagram-D77RDMKH-BGnTUhFJ.js} +2 -2
  58. package/dist/{stateDiagram-v2-MP3YSRHH-oFXVbGoo.js → stateDiagram-v2-MP3YSRHH-DsJbmDf1.js} +2 -2
  59. package/dist/{static-state-CqzVppxA.js → static-state-C4bAlKTU.js} +9 -9
  60. package/dist/{swimlanes-42K2YHIH-CxzCGtVZ.js → swimlanes-42K2YHIH-Bd4Bzh9r.js} +1 -1
  61. package/dist/{swimlanesDiagram-VR7AAH4N-1a1GRLNf.js → swimlanesDiagram-VR7AAH4N-BlY12Jf6.js} +2 -2
  62. package/dist/{timeline-definition-24CTP7MA-Pfn2awsU.js → timeline-definition-24CTP7MA-m0LanyCH.js} +1 -1
  63. package/dist/{toast-aYa8V5tR.js → toast-U3NpO2x3.js} +192 -192
  64. package/dist/{tooltip-CwQmweEz.js → tooltip-UzJukb3F.js} +65 -65
  65. package/dist/{use-restore-focus-DlX1CSiq.js → use-restore-focus-DaTVz6S6.js} +679 -668
  66. package/dist/{useDateFormatter-BAckjdIS.js → useDateFormatter-LQNtoXyh.js} +2 -2
  67. package/dist/{useDeepCompareMemoize-C6mte0N8.js → useDeepCompareMemoize-CmNbQ9TT.js} +1 -1
  68. package/dist/{useLifecycle-XZ5KJAFU.js → useLifecycle-DTMczKkf.js} +1 -1
  69. package/dist/{vega-component-_We1FoNw.js → vega-component-ZTdbCcwI.js} +6 -6
  70. package/dist/{vennDiagram-4TSXK5OY-DrIqDugg.js → vennDiagram-4TSXK5OY-BJ7vqDmn.js} +1 -1
  71. package/dist/{wardleyDiagram-VM6X3IG4-DBPVNfc3.js → wardleyDiagram-VM6X3IG4-D5kWacsn.js} +1 -1
  72. package/dist/{xychartDiagram-S5SC5T6Z-64Isocef.js → xychartDiagram-S5SC5T6Z-gr15Ws_z.js} +1 -1
  73. package/package.json +1 -1
@@ -2,19 +2,19 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { g as t, h as n, p as r } from "./button-qQhINE7z.js";
3
3
  import { t as i } from "./react-Bgs_wQh3.js";
4
4
  import { t as a } from "./compiler-runtime-C5KHtL5D.js";
5
- import { i as o } from "./copy-icon-7bY-OuK1.js";
6
- import { f as s, h as c } from "./tooltip-CwQmweEz.js";
7
- import { t as l } from "./check-BTnCP_6g.js";
8
- import { n as u, r as d } from "./assertNever-BQEDS5Ew.js";
5
+ import { i as o } from "./copy-icon-BI7vZHEW.js";
6
+ import { f as s, h as c } from "./tooltip-UzJukb3F.js";
7
+ import { t as l } from "./check-jchHMCfs.js";
8
+ import { n as u, r as d } from "./assertNever-DywGMo-S.js";
9
9
  import { t as f } from "./jsx-runtime-D8btoEHk.js";
10
- import { At as p, Dt as m, Et as h, Ft as g, Nt as _, Pt as ee, Rt as v, St as y, Tt as b, Vt as x, _n as te, f as ne, fn as re, gn as ie, kt as S, mn as ae, pn as oe, wt as se, xt as ce } from "./use-restore-focus-DlX1CSiq.js";
11
- import { n as le } from "./toast-aYa8V5tR.js";
10
+ import { At as p, Ct as m, Dt as h, Et as g, Ft as ee, Ht as _, It as v, Ot as y, Pt as b, St as x, Tt as te, _n as ne, f as re, hn as ie, jt as ae, mn as oe, pn as se, vn as ce, zt as S } from "./use-restore-focus-DaTVz6S6.js";
11
+ import { n as le } from "./toast-U3NpO2x3.js";
12
12
  import { t as ue } from "./objects-DCmMvZtn.js";
13
13
  import { t as C } from "./invariant-DLmrl-hA.js";
14
14
  import { t as de } from "./purify.es-DmnrIjg4.js";
15
- import { t as fe } from "./createReducer-BTiEYD5d.js";
15
+ import { t as fe } from "./createReducer-DdSLRfBT.js";
16
16
  import { H as pe, N as me, P as he, _ as ge } from "./dist-D92tYjLc.js";
17
- import { a as _e, i as ve, l as ye, m as be, u as xe } from "./static-state-CqzVppxA.js";
17
+ import { a as _e, i as ve, l as ye, m as be, u as xe } from "./static-state-C4bAlKTU.js";
18
18
  import { t as Se } from "./capabilities-DKqMqBzm.js";
19
19
  var Ce = c("external-link", [
20
20
  ["path", {
@@ -35,14 +35,14 @@ var Ce = c("external-link", [
35
35
  }]]), w = /* @__PURE__ */ e(i(), 1), T = f(), Te = Object.defineProperty, E = (e, t) => Te(e, "name", {
36
36
  value: t,
37
37
  configurable: !0
38
- }), Ee = "Checkbox", [De, Oe] = ie(Ee), [ke, Ae] = De(Ee);
38
+ }), Ee = "Checkbox", [De, Oe] = ne(Ee), [ke, Ae] = De(Ee);
39
39
  function je(e) {
40
40
  let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = oe({
41
41
  prop: n,
42
42
  defaultProp: i ?? !1,
43
43
  onChange: c,
44
44
  caller: Ee
45
- }), [m, h] = w.useState(null), [g, _] = w.useState(null), [ee, v] = w.useState(null), y = !m || !!o || !!m.closest("form"), b = {
45
+ }), [m, h] = w.useState(null), [g, ee] = w.useState(null), [_, v] = w.useState(null), y = !m || !!o || !!m.closest("form"), b = {
46
46
  checked: f,
47
47
  disabled: a,
48
48
  setChecked: p,
@@ -51,13 +51,13 @@ function je(e) {
51
51
  name: s,
52
52
  form: o,
53
53
  value: u,
54
- userClick: ee,
54
+ userClick: _,
55
55
  onUserClick: v,
56
56
  required: l,
57
57
  defaultChecked: !D(i) && i,
58
58
  isFormControl: y,
59
59
  bubbleInput: g,
60
- setBubbleInput: _
60
+ setBubbleInput: ee
61
61
  };
62
62
  return /* @__PURE__ */ (0, T.jsx)(ke, {
63
63
  scope: t,
@@ -67,14 +67,14 @@ function je(e) {
67
67
  }
68
68
  E(je, "CheckboxProvider");
69
69
  var Me = "CheckboxTrigger", Ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(function({ __scopeCheckbox: e, onKeyDown: t, onClick: n, ...i }, a) {
70
- let { control: o, value: s, disabled: c, checked: l, required: u, setControl: d, setChecked: f, onUserClick: p, isFormControl: m, bubbleInput: h } = Ae(Me, e), g = r(a, d), _ = w.useRef(l);
70
+ let { control: o, value: s, disabled: c, checked: l, required: u, setControl: d, setChecked: f, onUserClick: p, isFormControl: m, bubbleInput: h } = Ae(Me, e), g = r(a, d), ee = w.useRef(l);
71
71
  return w.useEffect(() => {
72
72
  let e = o?.form;
73
73
  if (e) {
74
- let t = /* @__PURE__ */ E(() => f(_.current), "reset");
74
+ let t = /* @__PURE__ */ E(() => f(ee.current), "reset");
75
75
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
76
76
  }
77
- }, [o, f]), /* @__PURE__ */ (0, T.jsx)(te.button, {
77
+ }, [o, f]), /* @__PURE__ */ (0, T.jsx)(ce.button, {
78
78
  type: "button",
79
79
  role: "checkbox",
80
80
  "aria-checked": D(l) ? "mixed" : l,
@@ -85,10 +85,10 @@ var Me = "CheckboxTrigger", Ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(
85
85
  value: s,
86
86
  ...i,
87
87
  ref: g,
88
- onKeyDown: ae(t, (e) => {
88
+ onKeyDown: ie(t, (e) => {
89
89
  e.key === "Enter" && e.preventDefault();
90
90
  }),
91
- onClick: ae(n, (e) => {
91
+ onClick: ie(n, (e) => {
92
92
  let t = e.isPropagationStopped();
93
93
  p({
94
94
  requestedChecked: D(l) ? !0 : !l,
@@ -116,9 +116,9 @@ var Me = "CheckboxTrigger", Ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(
116
116
  });
117
117
  }, "Checkbox")), Fe = "CheckboxIndicator", Ie = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(function(e, t) {
118
118
  let { __scopeCheckbox: n, forceMount: r, ...i } = e, a = Ae(Fe, n);
119
- return /* @__PURE__ */ (0, T.jsx)(re, {
119
+ return /* @__PURE__ */ (0, T.jsx)(se, {
120
120
  present: r || D(a.checked) || a.checked === !0,
121
- children: /* @__PURE__ */ (0, T.jsx)(te.span, {
121
+ children: /* @__PURE__ */ (0, T.jsx)(ce.span, {
122
122
  "data-state": Be(a.checked),
123
123
  "data-disabled": a.disabled ? "" : void 0,
124
124
  ...i,
@@ -130,7 +130,7 @@ var Me = "CheckboxTrigger", Ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(
130
130
  })
131
131
  });
132
132
  }, "CheckboxIndicator")), Le = "CheckboxBubbleInput", Re = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(function({ __scopeCheckbox: e, onClick: t, ...n }, i) {
133
- let { control: a, userClick: o, checked: c, defaultChecked: l, required: u, disabled: d, name: f, value: p, form: m, bubbleInput: h, setBubbleInput: g } = Ae(Le, e), _ = r(i, g), ee = s(a), v = w.useRef(!1), y = w.useRef(c), b = w.useRef(o), x = w.useRef(null);
133
+ let { control: a, userClick: o, checked: c, defaultChecked: l, required: u, disabled: d, name: f, value: p, form: m, bubbleInput: h, setBubbleInput: g } = Ae(Le, e), ee = r(i, g), _ = s(a), v = w.useRef(!1), y = w.useRef(c), b = w.useRef(o), x = w.useRef(null);
134
134
  w.useEffect(() => {
135
135
  let e = h;
136
136
  if (!e) return;
@@ -151,11 +151,11 @@ var Me = "CheckboxTrigger", Ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(
151
151
  c,
152
152
  o
153
153
  ]);
154
- let ne = w.useRef(!D(c) && c);
155
- return /* @__PURE__ */ (0, T.jsx)(te.input, {
154
+ let te = w.useRef(!D(c) && c);
155
+ return /* @__PURE__ */ (0, T.jsx)(ce.input, {
156
156
  type: "checkbox",
157
157
  "aria-hidden": !0,
158
- defaultChecked: l ?? ne.current,
158
+ defaultChecked: l ?? te.current,
159
159
  required: u,
160
160
  disabled: d,
161
161
  name: f,
@@ -163,13 +163,13 @@ var Me = "CheckboxTrigger", Ne = /* @__PURE__ */ w.forwardRef(/* @__PURE__ */ E(
163
163
  form: m,
164
164
  ...n,
165
165
  tabIndex: -1,
166
- ref: _,
167
- onClick: ae(t, (e) => {
166
+ ref: ee,
167
+ onClick: ie(t, (e) => {
168
168
  v.current && e.stopPropagation();
169
169
  }),
170
170
  style: {
171
171
  ...n.style,
172
- ...ee,
172
+ ..._,
173
173
  position: "absolute",
174
174
  pointerEvents: "none",
175
175
  opacity: 0,
@@ -815,14 +815,14 @@ var Wt = {
815
815
  latest: /* @__PURE__ */ new Map(),
816
816
  results: /* @__PURE__ */ new Map(),
817
817
  scratch: null
818
- }, Gt = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new Set(), qt = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set(), Yt = /* @__PURE__ */ new Map(), L = x(null);
819
- function Xt(e, t) {
818
+ }, Gt = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new Map(), qt = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set(), Yt = /* @__PURE__ */ new Set(), Xt = /* @__PURE__ */ new Map(), I = _(null);
819
+ function Zt(e, t) {
820
820
  return t !== null && e.replica === t.replica && e.id === t.id && e.generation === t.generation;
821
821
  }
822
- function Zt(e, t, n) {
823
- return e !== null && Xt(e.notebook, t) ? e.value : n;
822
+ function Qt(e, t, n) {
823
+ return e !== null && Zt(e.notebook, t) ? e.value : n;
824
824
  }
825
- var R = x((e) => {
825
+ var $t = _((e) => {
826
826
  let t = e(h), n = t === null ? null : e(t.notebookAtom);
827
827
  return t === null || n === null ? null : {
828
828
  replica: t,
@@ -830,32 +830,32 @@ var R = x((e) => {
830
830
  generation: e(t.generationAtom)
831
831
  };
832
832
  });
833
- function Qt(e, t) {
834
- return Xt(t.notebook, e.get(R));
835
- }
836
- var $t = x((e) => {
837
- let t = Zt(e(L), e(R), Kt);
838
- return t.size === 0 ? qt : new Set([...t].flatMap((e) => e.cells));
839
- }), en = x((e) => {
840
- let t = e(h), n = t && e(t.analysisAtom), r = n ? Lt(n.analysis, n.document.cells.values()) : Jt;
833
+ function en(e, t) {
834
+ return Zt(t.notebook, e.get($t));
835
+ }
836
+ var tn = _((e) => {
837
+ let t = Qt(e(I), e($t), qt);
838
+ return t.size === 0 ? Jt : new Set([...t].flatMap((e) => e.cells));
839
+ }), nn = _((e) => {
840
+ let t = e(h), n = t && e(t.analysisAtom), r = n ? Lt(n.analysis, n.document.cells.values()) : Yt;
841
841
  return {
842
842
  shownBlocked: r,
843
- blocked: n?.freshness === "current" ? r : Jt
843
+ blocked: n?.freshness === "current" ? r : Yt
844
844
  };
845
- }), z = x((e) => {
845
+ }), rn = _((e) => {
846
846
  let t = e(h), n = t === null ? null : e(t.shownDocumentAtom);
847
847
  return {
848
848
  executions: t === null ? Wt : e(t.executionsAtom),
849
849
  results: t === null ? Gt : e(t.resultsAtom),
850
- cells: n?.cells ?? I,
851
- requested: e($t),
852
- ...e(en),
850
+ cells: n?.cells ?? Kt,
851
+ requested: e(tn),
852
+ ...e(nn),
853
853
  runtimeId: t === null ? null : e(t.runtimeAtom)?.id ?? null
854
854
  };
855
- }), tn = x((e) => {
855
+ }), an = _((e) => {
856
856
  let t = e(h), n = t === null ? null : e(t.shownDocumentAtom);
857
857
  return t === null || n === null ? {
858
- cells: I,
858
+ cells: Kt,
859
859
  executions: Wt,
860
860
  results: Gt
861
861
  } : {
@@ -863,27 +863,27 @@ var $t = x((e) => {
863
863
  executions: e(t.executionsAtom),
864
864
  results: e(t.resultsAtom)
865
865
  };
866
- }), nn = x((e) => gt(e(tn))), rn = x(null), an = x((e) => {
866
+ }), on = _((e) => gt(e(an))), sn = _(null), cn = _((e) => {
867
867
  let t = e(h), n = t === null ? null : e(t.shownDocumentAtom);
868
868
  return t === null || n === null ? null : {
869
869
  replica: t,
870
870
  id: n.revision.notebook_id,
871
871
  generation: e(t.generationAtom)
872
872
  };
873
- }), on = x((e) => {
873
+ }), ln = _((e) => {
874
874
  let t = e(h);
875
875
  return {
876
876
  executions: t === null ? Wt : e(t.executionsAtom),
877
877
  results: t === null ? Gt : e(t.resultsAtom),
878
- cleared: Zt(e(rn), e(an), Yt),
879
- cells: t === null ? I : e(t.documentAtom)?.cells ?? I
878
+ cleared: Qt(e(sn), e(cn), Xt),
879
+ cells: t === null ? Kt : e(t.documentAtom)?.cells ?? Kt
880
880
  };
881
- }), sn = x((e) => Mt(e(on))), B = S((e) => _(sn, (t) => t.get(e) ?? null, g)), cn = S((e) => x((t) => Ye(t(B(e)))));
882
- function ln(e) {
883
- B.remove(e), cn.remove(e);
881
+ }), un = _((e) => Mt(e(ln))), L = p((e) => b(un, (t) => t.get(e) ?? null, v)), dn = p((e) => _((t) => Ye(t(L(e)))));
882
+ function fn(e) {
883
+ L.remove(e), dn.remove(e);
884
884
  }
885
- function un(e, t) {
886
- let n = e.get(on), r = new Map(n.cleared);
885
+ function pn(e, t) {
886
+ let n = e.get(ln), r = new Map(n.cleared);
887
887
  for (let e of t) {
888
888
  let t = kt(n, e);
889
889
  t != null && k(t) !== null && r.set(e, {
@@ -891,18 +891,18 @@ function un(e, t) {
891
891
  version: t.outputVersion
892
892
  });
893
893
  }
894
- let i = e.get(an);
895
- e.set(rn, i === null ? null : {
894
+ let i = e.get(cn);
895
+ e.set(sn, i === null ? null : {
896
896
  notebook: i,
897
897
  value: r
898
898
  });
899
899
  }
900
- var dn = x((e) => {
900
+ var mn = _((e) => {
901
901
  let t = e(h);
902
902
  return t === null ? null : e(t.runtimeAtom)?.state.status ?? null;
903
903
  });
904
- x((e) => Ht(e(z).executions)), x((e) => Ut(e(z)));
905
- var fn = x((e) => {
904
+ _((e) => Ht(e(rn).executions)), _((e) => Ut(e(rn)));
905
+ var hn = _((e) => {
906
906
  let t = e(h);
907
907
  if (t === null) return { refused: "No notebook is connected" };
908
908
  if (e(t.connectionAtom).state === O.CLOSED) return { refused: "The notebook is disconnected" };
@@ -918,58 +918,58 @@ var fn = x((e) => {
918
918
  default: return "waiting";
919
919
  }
920
920
  });
921
- function pn(e) {
921
+ function gn(e) {
922
922
  return new Promise((t, n) => {
923
- let r = e.sub(fn, i);
923
+ let r = e.sub(hn, i);
924
924
  function i() {
925
- let i = e.get(fn);
925
+ let i = e.get(hn);
926
926
  i !== "waiting" && (r(), i === "running" ? t() : n(Error(i.refused)));
927
927
  }
928
928
  i();
929
929
  });
930
930
  }
931
- function mn(e, t) {
932
- let n = e.get(R);
931
+ function _n(e, t) {
932
+ let n = e.get($t);
933
933
  if (n === null) return null;
934
934
  let r = {
935
935
  notebook: n,
936
936
  cells: [...t]
937
- }, i = Zt(e.get(L), n, Kt);
938
- return e.set(L, {
937
+ }, i = Qt(e.get(I), n, qt);
938
+ return e.set(I, {
939
939
  notebook: n,
940
940
  value: new Set(i).add(r)
941
941
  }), r;
942
942
  }
943
- function hn(e, t) {
944
- let n = e.get(L);
943
+ function vn(e, t) {
944
+ let n = e.get(I);
945
945
  if (n === null || !n.value.has(t)) return;
946
946
  let r = new Set(n.value);
947
- r.delete(t), e.set(L, {
947
+ r.delete(t), e.set(I, {
948
948
  notebook: n.notebook,
949
949
  value: r
950
950
  });
951
951
  }
952
- function gn(e, t, n) {
953
- let r = x((e) => Xt(t.notebook, e(R)) && !e(t.notebook.replica.executionsAtom).runs.has(n.id)), i = e.sub(r, a);
952
+ function yn(e, t, n) {
953
+ let r = _((e) => Zt(t.notebook, e($t)) && !e(t.notebook.replica.executionsAtom).runs.has(n.id)), i = e.sub(r, a);
954
954
  function a() {
955
- e.get(r) || (i(), hn(e, t));
955
+ e.get(r) || (i(), vn(e, t));
956
956
  }
957
957
  a();
958
958
  }
959
959
  //#endregion
960
960
  //#region src/core/codemirror/editing/commands.ts
961
- var _n = a();
962
- function vn(e) {
961
+ var bn = a();
962
+ function xn(e) {
963
963
  return (t) => {
964
964
  let n = !1;
965
965
  for (let r of t) r && (n = e(r) || n);
966
966
  return n;
967
967
  };
968
968
  }
969
- var yn = vn(ge), bn = vn(he);
969
+ var Sn = xn(ge), Cn = xn(he);
970
970
  //#endregion
971
971
  //#region src/utils/schedule-task.ts
972
- function xn() {
972
+ function wn() {
973
973
  let e = globalThis.scheduler;
974
974
  if (typeof e?.postTask == "function") return (t) => {
975
975
  e.postTask(t, { priority: "user-visible" }).catch((e) => {
@@ -990,10 +990,10 @@ function xn() {
990
990
  setTimeout(e, 0);
991
991
  };
992
992
  }
993
- var Sn = xn();
993
+ var Tn = wn();
994
994
  //#endregion
995
995
  //#region src/core/codemirror/editor-mount-scheduler.ts
996
- function Cn(e = Sn) {
996
+ function En(e = Tn) {
997
997
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = !1;
998
998
  function i() {
999
999
  r || t.size === 0 || (r = !0, e(o));
@@ -1036,21 +1036,21 @@ function Cn(e = Sn) {
1036
1036
  }
1037
1037
  };
1038
1038
  }
1039
- var wn = Cn();
1039
+ var Dn = En();
1040
1040
  //#endregion
1041
1041
  //#region src/core/mime.ts
1042
- function Tn(e) {
1042
+ function On(e) {
1043
1043
  return e === "application/vnd.marimo+error";
1044
1044
  }
1045
- function En(e) {
1045
+ function kn(e) {
1046
1046
  return e === "application/vnd.marimo+traceback";
1047
1047
  }
1048
- function Dn(e) {
1049
- return Tn(e) || En(e);
1048
+ function R(e) {
1049
+ return On(e) || kn(e);
1050
1050
  }
1051
1051
  //#endregion
1052
1052
  //#region src/core/cells/command-console.ts
1053
- function On(e, { op: t, entries: n, replace: r, after_seq: i }, a) {
1053
+ function An(e, { op: t, entries: n, replace: r, after_seq: i }, a) {
1054
1054
  if (t === "callback-output" && !r && n.length === 0) return { entries: [] };
1055
1055
  let o = r || n.length === 0, s = e?.entries ?? [], c = r && a !== void 0 ? n.findIndex((e) => e.command_id === a) : -1, l = n.slice(c + 1).map((e, n) => ({
1056
1056
  ...e,
@@ -1061,16 +1061,16 @@ function On(e, { op: t, entries: n, replace: r, after_seq: i }, a) {
1061
1061
  }
1062
1062
  //#endregion
1063
1063
  //#region src/core/dom/ui-element-constants.ts
1064
- var kn = "object-id", An = "random-id", jn = "abcdefghijklmnopqrstuvwxyz", Mn = jn + jn.toUpperCase(), Nn = /* @__PURE__ */ new Set(), V = "__scratch__", Pn = "setup", Fn = { create() {
1064
+ var jn = "object-id", Mn = "random-id", Nn = "abcdefghijklmnopqrstuvwxyz", Pn = Nn + Nn.toUpperCase(), Fn = /* @__PURE__ */ new Set(), z = "__scratch__", In = "setup", Ln = { create() {
1065
1065
  let e = 0, t;
1066
1066
  do {
1067
1067
  let n = "";
1068
- for (let e = 0; e < 4; e++) n += Mn[Math.floor(Math.random() * 52)];
1068
+ for (let e = 0; e < 4; e++) n += Pn[Math.floor(Math.random() * 52)];
1069
1069
  t = n, e++;
1070
- } while (Nn.has(t) && e < 100);
1070
+ } while (Fn.has(t) && e < 100);
1071
1071
  if (e >= 100) throw Error("Failed to generate unique CellId after 100 attempts");
1072
- return Nn.add(t), t;
1073
- } }, H = {
1072
+ return Fn.add(t), t;
1073
+ } }, B = {
1074
1074
  create(e) {
1075
1075
  return C(e != null, "cellId is required"), `cell-${e}`;
1076
1076
  },
@@ -1083,7 +1083,7 @@ var kn = "object-id", An = "random-id", jn = "abcdefghijklmnopqrstuvwxyz", Mn =
1083
1083
  findElementThroughShadowDOMs(e) {
1084
1084
  let t = e;
1085
1085
  for (; t;) {
1086
- let e = H.findElement(t);
1086
+ let e = B.findElement(t);
1087
1087
  if (e) return e;
1088
1088
  let n = t.getRootNode();
1089
1089
  if (t = n instanceof ShadowRoot ? n.host : t.parentElement, t === n) break;
@@ -1091,21 +1091,21 @@ var kn = "object-id", An = "random-id", jn = "abcdefghijklmnopqrstuvwxyz", Mn =
1091
1091
  return null;
1092
1092
  }
1093
1093
  };
1094
- function In(e) {
1095
- let t = null, n = H.findElementThroughShadowDOMs(e);
1096
- return n && (t = H.parse(n.id)), t;
1094
+ function Rn(e) {
1095
+ let t = null, n = B.findElementThroughShadowDOMs(e);
1096
+ return n && (t = B.parse(n.id)), t;
1097
1097
  }
1098
- var Ln = {
1098
+ var zn = {
1099
1099
  parse(e) {
1100
- return e.getAttribute(kn);
1100
+ return e.getAttribute(jn);
1101
1101
  },
1102
1102
  parseOrThrow(e) {
1103
- let t = Ln.parse(e);
1103
+ let t = zn.parse(e);
1104
1104
  return C(t, "<marimo-ui-element/> missing object-id attribute"), t;
1105
1105
  }
1106
- }, Rn = { create(e) {
1106
+ }, Bn = { create(e) {
1107
1107
  return `output-${e}`;
1108
- } }, zn = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, Bn = class e {
1108
+ } }, Vn = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, Hn = class e {
1109
1109
  static get INSTANCE() {
1110
1110
  let t = "_marimo_private_VirtualFileTracker";
1111
1111
  return window[t] || (window[t] = new e()), window[t];
@@ -1127,7 +1127,7 @@ var Ln = {
1127
1127
  switch (t.mimetype) {
1128
1128
  case "application/json":
1129
1129
  case "text/html": {
1130
- let r = n.get(e), i = Vn(t.data);
1130
+ let r = n.get(e), i = Un(t.data);
1131
1131
  r?.forEach((e) => i.add(e)), n.set(e, i);
1132
1132
  return;
1133
1133
  }
@@ -1143,15 +1143,15 @@ var Ln = {
1143
1143
  this.virtualFiles.delete(e), this.callbackFiles.delete(e);
1144
1144
  }
1145
1145
  };
1146
- function Vn(e) {
1146
+ function Un(e) {
1147
1147
  if (!e) return /* @__PURE__ */ new Set();
1148
- let t = /* @__PURE__ */ new Set(), n = (typeof e == "string" ? e : JSON.stringify(e)).match(zn);
1148
+ let t = /* @__PURE__ */ new Set(), n = (typeof e == "string" ? e : JSON.stringify(e)).match(Vn);
1149
1149
  if (n) for (let e of n) t.add(e);
1150
1150
  return t;
1151
1151
  }
1152
1152
  //#endregion
1153
1153
  //#region src/components/editor/output/ansi-reduce.ts
1154
- var Hn = class e {
1154
+ var Wn = class e {
1155
1155
  lines = [""];
1156
1156
  cursor = {
1157
1157
  row: 0,
@@ -1253,7 +1253,7 @@ var Hn = class e {
1253
1253
  render() {
1254
1254
  return this.lines.join("\n");
1255
1255
  }
1256
- }, Un = class {
1256
+ }, Gn = class {
1257
1257
  ESC_REGEX = new RegExp(String.raw`\u001B(?:\[[0-9;]*[A-Za-z]|\([0-9A-Za-z])`, "gu");
1258
1258
  parse(e) {
1259
1259
  let t = [], n = 0;
@@ -1272,13 +1272,13 @@ var Hn = class e {
1272
1272
  value: e.slice(n)
1273
1273
  }), t;
1274
1274
  }
1275
- }, Wn = class e {
1276
- parser = new Un();
1275
+ }, Kn = class e {
1276
+ parser = new Gn();
1277
1277
  buffer;
1278
1278
  incompleteEscape = "";
1279
1279
  static INCOMPLETE_ESCAPE = new RegExp(String.raw`\u001B(?:\[[0-9;]*|\()?$`, "u");
1280
1280
  constructor(e = 0) {
1281
- this.buffer = new Hn(e);
1281
+ this.buffer = new Wn(e);
1282
1282
  }
1283
1283
  copy(t = 0) {
1284
1284
  let n = new e();
@@ -1302,7 +1302,7 @@ var Hn = class e {
1302
1302
  for (let e of r) e.type === "text" ? this.processText(e.value) : this.buffer.handleEscape(e.value);
1303
1303
  }
1304
1304
  reset() {
1305
- this.buffer = new Hn(), this.incompleteEscape = "";
1305
+ this.buffer = new Wn(), this.incompleteEscape = "";
1306
1306
  }
1307
1307
  render() {
1308
1308
  return this.buffer.render();
@@ -1346,7 +1346,7 @@ var Hn = class e {
1346
1346
  return n;
1347
1347
  }
1348
1348
  };
1349
- function Gn(e) {
1349
+ function qn(e) {
1350
1350
  let t = 1;
1351
1351
  for (let n = 0; n < e.length; n++) {
1352
1352
  let r = e.charCodeAt(n);
@@ -1355,7 +1355,7 @@ function Gn(e) {
1355
1355
  }
1356
1356
  return t;
1357
1357
  }
1358
- var U = class e {
1358
+ var V = class e {
1359
1359
  mimetype;
1360
1360
  channel;
1361
1361
  timestamp;
@@ -1377,14 +1377,14 @@ var U = class e {
1377
1377
  }
1378
1378
  appendData(t) {
1379
1379
  if (!this.terminal) {
1380
- let n = Gn(t);
1380
+ let n = qn(t);
1381
1381
  if (n !== void 0) return new e(this, {
1382
1382
  data: this.data + t,
1383
1383
  lineCount: this.lineCount + n - 1,
1384
1384
  firstPlainRow: this.firstPlainRow
1385
1385
  });
1386
1386
  }
1387
- let n = this.terminal?.copy() ?? new Wn(this.firstPlainRow);
1387
+ let n = this.terminal?.copy() ?? new Kn(this.firstPlainRow);
1388
1388
  this.terminal || n.append(this.data), n.append(t);
1389
1389
  let r = n.render();
1390
1390
  return new e(this, {
@@ -1412,52 +1412,52 @@ var U = class e {
1412
1412
  ...this.code === void 0 ? {} : { code: this.code }
1413
1413
  };
1414
1414
  }
1415
- }, Kn = 5e3;
1416
- function qn(e, t = Kn) {
1415
+ }, Jn = 5e3;
1416
+ function Yn(e, t = Jn) {
1417
1417
  let n = e.slice(0, -1), r = e.at(-1);
1418
- return r && Yn(n, r), er(n, t);
1418
+ return r && Zn(n, r), nr(n, t);
1419
1419
  }
1420
- function Jn(e) {
1420
+ function Xn(e) {
1421
1421
  let t = [];
1422
1422
  for (let n = 0; n < e.length;) {
1423
1423
  let r = e[n], i = n + 1;
1424
- for (; i < e.length && Xn(r, e[i]);) i++;
1425
- if (i === n + 1) Yn(t, r);
1424
+ for (; i < e.length && Qn(r, e[i]);) i++;
1425
+ if (i === n + 1) Zn(t, r);
1426
1426
  else {
1427
- let a = e.slice(n, i).map((e) => ($n(e), e.data));
1428
- t.push(U.create({
1427
+ let a = e.slice(n, i).map((e) => (tr(e), e.data));
1428
+ t.push(V.create({
1429
1429
  ...r,
1430
1430
  data: a.join("")
1431
1431
  }));
1432
1432
  }
1433
1433
  n = i;
1434
1434
  }
1435
- return er(t, Kn);
1435
+ return nr(t, Jn);
1436
1436
  }
1437
- function Yn(e, t) {
1437
+ function Zn(e, t) {
1438
1438
  let n = e.at(-1);
1439
- n && Xn(n, t) ? ($n(n), $n(t), e[e.length - 1] = Qn(n, t)) : e.push(Zn(t));
1439
+ n && Qn(n, t) ? (tr(n), tr(t), e[e.length - 1] = er(n, t)) : e.push($n(t));
1440
1440
  }
1441
- function Xn(e, t) {
1441
+ function Qn(e, t) {
1442
1442
  let n = e.mimetype === "text/plain" && t.mimetype === "text/plain";
1443
1443
  if (!n) return !1;
1444
1444
  let r = e.channel === t.channel, i = e.channel !== "stdin";
1445
1445
  return n && r && i;
1446
1446
  }
1447
- function Zn(e) {
1448
- return e instanceof U ? e : e.mimetype === "text/plain" && e.channel !== "stdin" && typeof e.data == "string" ? U.create(e) : e;
1447
+ function $n(e) {
1448
+ return e instanceof V ? e : e.mimetype === "text/plain" && e.channel !== "stdin" && typeof e.data == "string" ? V.create(e) : e;
1449
1449
  }
1450
- function Qn(e, t) {
1451
- return e instanceof U ? e.appendData(t.data) : U.create(e).appendData(t.data);
1450
+ function er(e, t) {
1451
+ return e instanceof V ? e.appendData(t.data) : V.create(e).appendData(t.data);
1452
1452
  }
1453
- function $n(e) {
1453
+ function tr(e) {
1454
1454
  C(typeof e.data == "string", "expected string output");
1455
1455
  }
1456
- function er(e, t) {
1456
+ function nr(e, t) {
1457
1457
  let n = 0, r;
1458
1458
  for (r = e.length - 1; r >= 0 && n < t; r--) {
1459
1459
  let t = e[r];
1460
- t.mimetype === "text/plain" ? (C(typeof t.data == "string", "expected string"), n += t instanceof U ? t.lineCount : t.data.split("\n").length) : n++;
1460
+ t.mimetype === "text/plain" ? (C(typeof t.data == "string", "expected string"), n += t instanceof V ? t.lineCount : t.data.split("\n").length) : n++;
1461
1461
  }
1462
1462
  if (n < t) return e;
1463
1463
  let i = r + 1, a = [{
@@ -1469,7 +1469,7 @@ function er(e, t) {
1469
1469
  if (o?.channel === "stdin" && o.response === void 0) return [...a, ...e.slice(i)];
1470
1470
  if (o?.mimetype === "text/plain") {
1471
1471
  C(typeof o.data == "string", "expected string");
1472
- let r = n - t, s = o instanceof U ? o.dropFirstLines(r) : {
1472
+ let r = n - t, s = o instanceof V ? o.dropFirstLines(r) : {
1473
1473
  ...o,
1474
1474
  data: o.data.split("\n").slice(r).join("\n")
1475
1475
  };
@@ -1483,18 +1483,18 @@ function er(e, t) {
1483
1483
  }
1484
1484
  //#endregion
1485
1485
  //#region ../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/fromUnixTime.js
1486
- function tr(e, t) {
1486
+ function rr(e, t) {
1487
1487
  return xe(e * 1e3, t?.in);
1488
1488
  }
1489
1489
  //#endregion
1490
1490
  //#region ../node_modules/.pnpm/ansi_up@6.0.6/node_modules/ansi_up/ansi_up.js
1491
- var nr = function(e, t) {
1491
+ var ir = function(e, t) {
1492
1492
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
1493
- }, W;
1493
+ }, H;
1494
1494
  (function(e) {
1495
1495
  e[e.EOS = 0] = "EOS", e[e.Text = 1] = "Text", e[e.Incomplete = 2] = "Incomplete", e[e.ESC = 3] = "ESC", e[e.Unknown = 4] = "Unknown", e[e.SGR = 5] = "SGR", e[e.OSCURL = 6] = "OSCURL";
1496
- })(W ||= {});
1497
- var rr = class {
1496
+ })(H ||= {});
1497
+ var ar = class {
1498
1498
  constructor() {
1499
1499
  this.VERSION = "6.0.6", this.setup_palettes(), this._use_classes = !1, this.bold = !1, this.faint = !1, this.italic = !1, this.underline = !1, this.fg = this.bg = null, this._buffer = "", this._url_allowlist = {
1500
1500
  http: 1,
@@ -1726,57 +1726,57 @@ var rr = class {
1726
1726
  }
1727
1727
  get_next_packet() {
1728
1728
  var e = {
1729
- kind: W.EOS,
1729
+ kind: H.EOS,
1730
1730
  text: "",
1731
1731
  url: ""
1732
1732
  }, t = this._buffer.length;
1733
1733
  if (t == 0) return e;
1734
1734
  var n = this._buffer.indexOf("\x1B");
1735
- if (n == -1) return e.kind = W.Text, e.text = this._buffer, this._buffer = "", e;
1736
- if (n > 0) return e.kind = W.Text, e.text = this._buffer.slice(0, n), this._buffer = this._buffer.slice(n), e;
1735
+ if (n == -1) return e.kind = H.Text, e.text = this._buffer, this._buffer = "", e;
1736
+ if (n > 0) return e.kind = H.Text, e.text = this._buffer.slice(0, n), this._buffer = this._buffer.slice(n), e;
1737
1737
  if (n == 0) {
1738
- if (t < 3) return e.kind = W.Incomplete, e;
1738
+ if (t < 3) return e.kind = H.Incomplete, e;
1739
1739
  var r = this._buffer.charAt(1);
1740
- if (r != "[" && r != "]" && r != "(") return e.kind = W.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1740
+ if (r != "[" && r != "]" && r != "(") return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1741
1741
  if (r == "[") {
1742
- this._csi_regex ||= ir(or ||= nr(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1B[ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
1742
+ this._csi_regex ||= or(cr ||= ir(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1B[ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
1743
1743
  let t = this._buffer.match(this._csi_regex);
1744
- if (t === null) return e.kind = W.Incomplete, e;
1745
- if (t[4]) return e.kind = W.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1746
- e.kind = t[1] != "" || t[3] != "m" ? W.Unknown : W.SGR, e.text = t[2];
1744
+ if (t === null) return e.kind = H.Incomplete, e;
1745
+ if (t[4]) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1746
+ e.kind = t[1] != "" || t[3] != "m" ? H.Unknown : H.SGR, e.text = t[2];
1747
1747
  var i = t[0].length;
1748
1748
  return this._buffer = this._buffer.slice(i), e;
1749
1749
  }
1750
1750
  if (r == "]") {
1751
- if (t < 4) return e.kind = W.Incomplete, e;
1752
- if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") return e.kind = W.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1753
- this._osc_st ||= ar(sr ||= nr(["\n (?: # legal sequence\n (\x1B\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])), this._osc_st.lastIndex = 0;
1751
+ if (t < 4) return e.kind = H.Incomplete, e;
1752
+ if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1753
+ this._osc_st ||= sr(lr ||= ir(["\n (?: # legal sequence\n (\x1B\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])), this._osc_st.lastIndex = 0;
1754
1754
  {
1755
1755
  let t = this._osc_st.exec(this._buffer);
1756
- if (t === null) return e.kind = W.Incomplete, e;
1757
- if (t[3]) return e.kind = W.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1756
+ if (t === null) return e.kind = H.Incomplete, e;
1757
+ if (t[3]) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1758
1758
  }
1759
1759
  {
1760
1760
  let t = this._osc_st.exec(this._buffer);
1761
- if (t === null) return e.kind = W.Incomplete, e;
1762
- if (t[3]) return e.kind = W.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1761
+ if (t === null) return e.kind = H.Incomplete, e;
1762
+ if (t[3]) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1763
1763
  }
1764
- this._osc_regex ||= ir(cr ||= nr(["\n ^ # beginning of line\n #\n \x1B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
1764
+ this._osc_regex ||= or(ur ||= ir(["\n ^ # beginning of line\n #\n \x1B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
1765
1765
  let n = this._buffer.match(this._osc_regex);
1766
- if (n === null) return e.kind = W.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1767
- e.kind = W.OSCURL, e.url = n[1], e.text = n[2];
1766
+ if (n === null) return e.kind = H.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
1767
+ e.kind = H.OSCURL, e.url = n[1], e.text = n[2];
1768
1768
  var i = n[0].length;
1769
1769
  return this._buffer = this._buffer.slice(i), e;
1770
1770
  }
1771
- if (r == "(") return e.kind = W.Unknown, this._buffer = this._buffer.slice(3), e;
1771
+ if (r == "(") return e.kind = H.Unknown, this._buffer = this._buffer.slice(3), e;
1772
1772
  }
1773
1773
  }
1774
1774
  ansi_to_html(e) {
1775
1775
  this.append_buffer(e);
1776
1776
  for (var t = [];;) {
1777
1777
  var n = this.get_next_packet();
1778
- if (n.kind == W.EOS || n.kind == W.Incomplete) break;
1779
- n.kind != W.ESC && n.kind != W.Unknown && (n.kind == W.Text ? t.push(this.transform_to_html(this.with_state(n))) : n.kind == W.SGR ? this.process_ansi(n) : n.kind == W.OSCURL && t.push(this.process_hyperlink(n)));
1778
+ if (n.kind == H.EOS || n.kind == H.Incomplete) break;
1779
+ n.kind != H.ESC && n.kind != H.Unknown && (n.kind == H.Text ? t.push(this.transform_to_html(this.with_state(n))) : n.kind == H.SGR ? this.process_ansi(n) : n.kind == H.OSCURL && t.push(this.process_hyperlink(n)));
1780
1780
  }
1781
1781
  return t.join("");
1782
1782
  }
@@ -1846,16 +1846,16 @@ var rr = class {
1846
1846
  return t.length < 1 || !this._url_allowlist[t[0]] ? "" : `<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`;
1847
1847
  }
1848
1848
  };
1849
- function ir(e, ...t) {
1849
+ function or(e, ...t) {
1850
1850
  let n = e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm, "");
1851
1851
  return new RegExp(n);
1852
1852
  }
1853
- function ar(e, ...t) {
1853
+ function sr(e, ...t) {
1854
1854
  let n = e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm, "");
1855
1855
  return new RegExp(n, "g");
1856
1856
  }
1857
- var or, sr, cr, lr = new rr();
1858
- function G(e) {
1857
+ var cr, lr, ur, dr = new ar();
1858
+ function U(e) {
1859
1859
  try {
1860
1860
  let t = document.createElement("div");
1861
1861
  return t.innerHTML = e, (t.textContent || t.innerText || "").split("\n").map((e) => e.trimEnd()).join("\n");
@@ -1863,24 +1863,24 @@ function G(e) {
1863
1863
  return t.error("Error parsing HTML content:", n), e;
1864
1864
  }
1865
1865
  }
1866
- function ur(e) {
1866
+ function fr(e) {
1867
1867
  if (!e) return "";
1868
1868
  try {
1869
- return G(lr.ansi_to_html(e));
1869
+ return U(dr.ansi_to_html(e));
1870
1870
  } catch (n) {
1871
1871
  return t.error("Error converting ANSI to plain text:", n), e;
1872
1872
  }
1873
1873
  }
1874
1874
  //#endregion
1875
1875
  //#region src/core/errors/traceback-atom.ts
1876
- var dr = x(null);
1876
+ var pr = _(null);
1877
1877
  //#endregion
1878
1878
  //#region src/core/cells/logs.ts
1879
- function fr(e) {
1879
+ function mr(e) {
1880
1880
  return e.type === "cell" ? e.cellId : `lsp:${e.name}`;
1881
1881
  }
1882
- var pr = !1;
1883
- function mr(e) {
1882
+ var hr = !1;
1883
+ function gr(e) {
1884
1884
  let t = [], n = [e.console].filter(Boolean).flat();
1885
1885
  for (let r of n) {
1886
1886
  let n = r.mimetype === "text/plain", i = r.mimetype === "text/html" || r.mimetype === "application/vnd.marimo+traceback";
@@ -1890,7 +1890,7 @@ function mr(e) {
1890
1890
  case "stdout":
1891
1891
  case "stderr":
1892
1892
  case "marimo-error": {
1893
- let a = d.asString(r.data), o = i ? G(a) : a;
1893
+ let a = d.asString(r.data), o = i ? U(a) : a;
1894
1894
  t.push({
1895
1895
  timestamp: r.timestamp || Date.now(),
1896
1896
  level: n ? "stderr" : "stdout",
@@ -1905,9 +1905,9 @@ function mr(e) {
1905
1905
  }
1906
1906
  }
1907
1907
  }
1908
- if (t.forEach(hr.log), n.length === 0 && Dn(e.output?.mimetype) && Array.isArray(e.output.data)) {
1908
+ if (t.forEach(_r.log), n.length === 0 && R(e.output?.mimetype) && Array.isArray(e.output.data)) {
1909
1909
  e.output.data.forEach((t) => {
1910
- hr.log({
1910
+ _r.log({
1911
1911
  level: "stderr",
1912
1912
  source: {
1913
1913
  type: "cell",
@@ -1917,9 +1917,9 @@ function mr(e) {
1917
1917
  message: JSON.stringify(t)
1918
1918
  });
1919
1919
  });
1920
- let t = e.output.data.filter((e) => "type" in e && e.type === "exception" || e.type === "internal"), n = y.get(ve) === "read";
1921
- if (t.length > 0 && !pr && n) {
1922
- pr = !0;
1920
+ let t = e.output.data.filter((e) => "type" in e && e.type === "exception" || e.type === "internal"), n = m.get(ve) === "read";
1921
+ if (t.length > 0 && !hr && n) {
1922
+ hr = !0;
1923
1923
  let e = t.find((e) => e.traceback);
1924
1924
  o(e ? {
1925
1925
  title: "An internal error occurred",
@@ -1928,7 +1928,7 @@ function mr(e) {
1928
1928
  action: w.createElement(le, {
1929
1929
  altText: "View traceback",
1930
1930
  onClick: () => {
1931
- y.set(dr, {
1931
+ m.set(pr, {
1932
1932
  traceback: e.traceback,
1933
1933
  errorMessage: e.msg || "An internal error occurred"
1934
1934
  });
@@ -1943,13 +1943,13 @@ function mr(e) {
1943
1943
  }
1944
1944
  return t;
1945
1945
  }
1946
- var hr = { log: (e) => {
1946
+ var _r = { log: (e) => {
1947
1947
  let t = e.level === "stdout" ? "gray" : e.level === "stderr" ? "red" : "orange", n = e.level.toUpperCase();
1948
- console.log(`%c[${n}]`, `color:${t}; padding:2px 0; border-radius:2px; font-weight:bold`, `[${gr(e.timestamp)}]`, `(${fr(e.source)}) ${e.message}`);
1948
+ console.log(`%c[${n}]`, `color:${t}; padding:2px 0; border-radius:2px; font-weight:bold`, `[${vr(e.timestamp)}]`, `(${mr(e.source)}) ${e.message}`);
1949
1949
  } };
1950
- function gr(e) {
1950
+ function vr(e) {
1951
1951
  try {
1952
- return tr(e).toLocaleTimeString(void 0, {
1952
+ return rr(e).toLocaleTimeString(void 0, {
1953
1953
  hour12: !0,
1954
1954
  hour: "numeric",
1955
1955
  minute: "numeric",
@@ -1959,26 +1959,26 @@ function gr(e) {
1959
1959
  return "";
1960
1960
  }
1961
1961
  }
1962
- var _r = /* @__PURE__ */ new Set(/* @__PURE__ */ "__*.marimo.app.False.None.True.__peg_parser__.and.as.assert.async.await.break.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.nonlocal.not.or.pass.raise.return.try.while.with.yield.None.setup".split("."));
1963
- function vr(e, t = !0) {
1962
+ var yr = /* @__PURE__ */ new Set(/* @__PURE__ */ "__*.marimo.app.False.None.True.__peg_parser__.and.as.assert.async.await.break.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.nonlocal.not.or.pass.raise.return.try.while.with.yield.None.setup".split("."));
1963
+ function br(e, t = !0) {
1964
1964
  return e = e.trim(), e ? (/^\d/.test(e) && (e = `_${e}`), e = e.replaceAll(/\W/g, "_"), t ? e.toLowerCase() : e) : "_";
1965
1965
  }
1966
- function yr(e, t) {
1967
- let n = new Set(t), r = e, i = (e) => !n.has(e) && !_r.has(e);
1966
+ function xr(e, t) {
1967
+ let n = new Set(t), r = e, i = (e) => !n.has(e) && !yr.has(e);
1968
1968
  if (i(e)) return e;
1969
1969
  let a = 1;
1970
1970
  for (; !i(r);) r = `${e}_${a}`, a++;
1971
1971
  return r;
1972
1972
  }
1973
- function br(e, t) {
1974
- return xr(e) ? `cell-${t}` : e;
1973
+ function Sr(e, t) {
1974
+ return Cr(e) ? `cell-${t}` : e;
1975
1975
  }
1976
- function xr(e) {
1976
+ function Cr(e) {
1977
1977
  return !e || e === "_" || e === "__";
1978
1978
  }
1979
1979
  //#endregion
1980
1980
  //#region src/core/cells/types.ts
1981
- function Sr({ id: e, name: t = "_", code: n = "", config: r }) {
1981
+ function wr({ id: e, name: t = "_", code: n = "", config: r }) {
1982
1982
  return {
1983
1983
  id: e,
1984
1984
  config: r || {
@@ -1991,7 +1991,7 @@ function Sr({ id: e, name: t = "_", code: n = "", config: r }) {
1991
1991
  code: n
1992
1992
  };
1993
1993
  }
1994
- function Cr(e) {
1994
+ function Tr(e) {
1995
1995
  return {
1996
1996
  hide_code: !1,
1997
1997
  disabled: !1,
@@ -2000,7 +2000,7 @@ function Cr(e) {
2000
2000
  ...e
2001
2001
  };
2002
2002
  }
2003
- function wr(e) {
2003
+ function Er(e) {
2004
2004
  return {
2005
2005
  embeddedConsole: [],
2006
2006
  ...e
@@ -2008,7 +2008,7 @@ function wr(e) {
2008
2008
  }
2009
2009
  //#endregion
2010
2010
  //#region src/core/cells/execution-console.ts
2011
- function Tr(e, t, n) {
2011
+ function Dr(e, t, n) {
2012
2012
  let r = e.time === void 0 ? t : Date.parse(e.time) / 1e3, i = e.seq + 1;
2013
2013
  switch (e.kind) {
2014
2014
  case "console":
@@ -2039,27 +2039,27 @@ function Tr(e, t, n) {
2039
2039
  };
2040
2040
  }
2041
2041
  }
2042
- function Er(e, t) {
2042
+ function Or(e, t) {
2043
2043
  return {
2044
2044
  onOutput(e, t) {
2045
- Bn.INSTANCE.trackOutput(e, t);
2045
+ Hn.INSTANCE.trackOutput(e, t);
2046
2046
  },
2047
2047
  onExecution(n, r) {
2048
2048
  r && (n.state.status === "running" && e.startCellConsole({ cellId: n.cell_id ?? "__scratch__" }), t?.(n));
2049
2049
  },
2050
2050
  onItem(t, n, r) {
2051
- let i = t.cell_id ?? "__scratch__", a = A(t), o = Tr(n, a ? Date.parse(a) / 1e3 : 0);
2052
- o.channel === "media" && Bn.INSTANCE.track({
2051
+ let i = t.cell_id ?? "__scratch__", a = A(t), o = Dr(n, a ? Date.parse(a) / 1e3 : 0);
2052
+ o.channel === "media" && Hn.INSTANCE.track({
2053
2053
  cell_id: i,
2054
2054
  output: o
2055
- }), r && (o.channel === "stdout" || o.channel === "stderr") && e.addLogs({ logs: mr({
2055
+ }), r && (o.channel === "stdout" || o.channel === "stderr") && e.addLogs({ logs: gr({
2056
2056
  cell_id: i,
2057
2057
  console: o
2058
2058
  }) });
2059
2059
  }
2060
2060
  };
2061
2061
  }
2062
- function Dr(e, t) {
2062
+ function kr(e, t) {
2063
2063
  let n = e(h);
2064
2064
  if (!n) return;
2065
2065
  let r = e(n.executionsAtom);
@@ -2067,19 +2067,19 @@ function Dr(e, t) {
2067
2067
  let i = r.latest.get(t);
2068
2068
  return i === void 0 ? void 0 : r.executions.get(i);
2069
2069
  }
2070
- function Or(e, t) {
2070
+ function Ar(e, t) {
2071
2071
  let { local: n, execution: r, code: i } = e;
2072
2072
  if (t && t.local === n && t.code === i && t.execution?.items === r?.items) return t;
2073
2073
  let a = r?.record, o = n.clearedConsole, s = n.clearedConsoleInputs, c = a && A(a), l = c ? Date.parse(c) / 1e3 : 0, u = (e) => {
2074
2074
  if (o && o.executionId === a?.id && e.seq <= o.seq && !(e.kind === "input" && o.prompts.has(e.id)) || e.kind === "input" && s?.executionId === e.execution_id && s.ids.has(e.id)) return;
2075
- let t = Tr(e, l, i);
2075
+ let t = Dr(e, l, i);
2076
2076
  return e.kind === "input" && !e.password && n.answers?.has(e.id) && (t.response = n.answers.get(e.id)), t;
2077
2077
  }, d = n.commandConsole?.entries, f = r?.append;
2078
2078
  if (t && t.local === n && t.code === i && t.execution && f && f.before.deref() === t.execution.items && (!d?.length || d.every((e) => e.afterSeq !== void 0 && e.afterSeq < f.item.seq))) {
2079
2079
  let n = u(f.item), r = t.rendered.consoleOutputs;
2080
2080
  return {
2081
2081
  ...e,
2082
- rendered: { consoleOutputs: n ? qn([...r, n]) : r }
2082
+ rendered: { consoleOutputs: n ? Yn([...r, n]) : r }
2083
2083
  };
2084
2084
  }
2085
2085
  let p = !r || a?.runtime_id === "embedded" && !r.items.size ? n.embeddedConsole : rt(r).flatMap((e) => u(e) ?? []);
@@ -2092,12 +2092,12 @@ function Or(e, t) {
2092
2092
  }
2093
2093
  return {
2094
2094
  ...e,
2095
- rendered: { consoleOutputs: Jn(p) }
2095
+ rendered: { consoleOutputs: Xn(p) }
2096
2096
  };
2097
2097
  }
2098
2098
  //#endregion
2099
2099
  //#region src/core/cells/columns.ts
2100
- function kr(e) {
2100
+ function jr(e) {
2101
2101
  let t = /* @__PURE__ */ new Map(), n = 0;
2102
2102
  for (let r of e.order) {
2103
2103
  let i = e.cells.get(r)?.config.column;
@@ -2105,9 +2105,9 @@ function kr(e) {
2105
2105
  }
2106
2106
  return t;
2107
2107
  }
2108
- function Ar(e) {
2108
+ function Mr(e) {
2109
2109
  let t = [[]];
2110
- for (let [n, r] of kr(e)) {
2110
+ for (let [n, r] of jr(e)) {
2111
2111
  for (; t.length <= r;) t.push([]);
2112
2112
  t[r].push(n);
2113
2113
  }
@@ -2115,19 +2115,19 @@ function Ar(e) {
2115
2115
  }
2116
2116
  //#endregion
2117
2117
  //#region src/core/cells/layout.ts
2118
- var jr = x(/* @__PURE__ */ new Set()), Mr = x([]), Nr = x([]);
2119
- function Pr() {
2120
- return `column-${Fn.create()}`;
2118
+ var Nr = _(/* @__PURE__ */ new Set()), Pr = _([]), W = _([]);
2119
+ function Fr() {
2120
+ return `column-${Ln.create()}`;
2121
2121
  }
2122
- var Fr = x(null, (e, t, n) => {
2123
- let r = Ar(n).length, i = e(Mr);
2122
+ var Ir = _(null, (e, t, n) => {
2123
+ let r = Mr(n).length, i = e(Pr);
2124
2124
  if (i.length === r) return;
2125
- let a = e(Nr), o = [...i, ...a].slice(0, r);
2126
- for (; o.length < r;) o.push(Pr());
2127
- t(Mr, o), t(Nr, a.slice(Math.max(0, r - i.length)));
2125
+ let a = e(W), o = [...i, ...a].slice(0, r);
2126
+ for (; o.length < r;) o.push(Fr());
2127
+ t(Pr, o), t(W, a.slice(Math.max(0, r - i.length)));
2128
2128
  });
2129
- function Ir(e, t, n) {
2130
- return [...(e === null ? [[]] : Ar(e)).map((e, n) => ({
2129
+ function Lr(e, t, n) {
2130
+ return [...(e === null ? [[]] : Mr(e)).map((e, n) => ({
2131
2131
  id: t[n] ?? `column-${n}`,
2132
2132
  ids: e
2133
2133
  })), ...n.map((e) => ({
@@ -2135,7 +2135,7 @@ function Ir(e, t, n) {
2135
2135
  ids: []
2136
2136
  }))];
2137
2137
  }
2138
- function Lr(e, t, n) {
2138
+ function Rr(e, t, n) {
2139
2139
  let r = /* @__PURE__ */ new Map();
2140
2140
  return e.forEach((i, a) => {
2141
2141
  let o = t[a];
@@ -2144,9 +2144,9 @@ function Lr(e, t, n) {
2144
2144
  s !== null && r.set(i, e.slice(a + 1, s[1] + 1));
2145
2145
  }), r;
2146
2146
  }
2147
- function Rr(e, t, n) {
2147
+ function zr(e, t, n) {
2148
2148
  return { columns: e.map(({ id: e, ids: r }) => {
2149
- let i = Lr(r, r.map(t), n), a = new Set([...i.values()].flat());
2149
+ let i = Rr(r, r.map(t), n), a = new Set([...i.values()].flat());
2150
2150
  return {
2151
2151
  id: e,
2152
2152
  ids: r,
@@ -2155,36 +2155,36 @@ function Rr(e, t, n) {
2155
2155
  };
2156
2156
  }) };
2157
2157
  }
2158
- var zr = x((e) => {
2159
- let t = e(b), n = t === null ? null : e(t.documentAtom), r = e(va);
2160
- return Rr(Ir(n, e(Mr), e(Nr)), (e) => r[e] ?? null, e(jr));
2161
- }), Br = () => v(zr), Vr = x((e) => e(zr).columns.length);
2162
- function Hr(e, t) {
2158
+ var Br = _((e) => {
2159
+ let t = e(g), n = t === null ? null : e(t.documentAtom), r = e(va);
2160
+ return zr(Lr(n, e(Pr), e(W)), (e) => r[e] ?? null, e(Nr));
2161
+ }), Vr = () => S(Br), Hr = _((e) => e(Br).columns.length);
2162
+ function Ur(e, t) {
2163
2163
  return e.columns.find((e) => e.id === t);
2164
2164
  }
2165
- function Ur(e, t) {
2165
+ function Wr(e, t) {
2166
2166
  let n = e.columns.find((e) => e.ids.includes(t));
2167
2167
  if (n === void 0) throw Error(`Cell ${t} is not in the layout`);
2168
2168
  return n;
2169
2169
  }
2170
- function Wr(e, t) {
2170
+ function Gr(e, t) {
2171
2171
  for (let n of e.columns) {
2172
2172
  let e = n.folds.get(t);
2173
2173
  if (e !== void 0) return e;
2174
2174
  }
2175
2175
  }
2176
- function Gr(e, t) {
2176
+ function Kr(e, t) {
2177
2177
  let n = e.columns.find((e) => e.ids.includes(t));
2178
2178
  return n === void 0 ? [] : [...n.folds].filter(([, e]) => e.includes(t)).map(([e]) => e);
2179
2179
  }
2180
- function Kr(e, t) {
2181
- let n = Gr(e, t);
2182
- return Wr(e, t) === void 0 ? n : [...n, t];
2180
+ function qr(e, t) {
2181
+ let n = Kr(e, t);
2182
+ return Gr(e, t) === void 0 ? n : [...n, t];
2183
2183
  }
2184
2184
  //#endregion
2185
2185
  //#region src/core/cells/document.ts
2186
- function qr(e, t) {
2187
- let n = t.code ?? e.code, r = g(e.config, t.config) ? e.config : Cr(t.config);
2186
+ function Jr(e, t) {
2187
+ let n = t.code ?? e.code, r = v(e.config, t.config) ? e.config : Tr(t.config);
2188
2188
  return n === e.code && t.name === e.name && r === e.config ? e : n === e.code ? {
2189
2189
  ...e,
2190
2190
  name: t.name,
@@ -2196,30 +2196,30 @@ function qr(e, t) {
2196
2196
  config: r
2197
2197
  };
2198
2198
  }
2199
- function Jr(e, t) {
2200
- let n = g(t.order, e.cellIds) ? e.cellIds : [...t.order], { cellData: r, cellRuntime: i, cellHandles: a } = e;
2199
+ function Yr(e, t) {
2200
+ let n = v(t.order, e.cellIds) ? e.cellIds : [...t.order], { cellData: r, cellRuntime: i, cellHandles: a } = e;
2201
2201
  for (let o of n) {
2202
2202
  let n = t.cells.get(o), s = e.cellData[o];
2203
2203
  if (n === void 0) continue;
2204
2204
  if (s === void 0) {
2205
2205
  r = {
2206
2206
  ...r,
2207
- [o]: Sr({
2207
+ [o]: wr({
2208
2208
  id: o,
2209
2209
  code: n.code ?? "",
2210
2210
  name: n.name,
2211
- config: Cr(n.config)
2211
+ config: Tr(n.config)
2212
2212
  })
2213
2213
  }, i = {
2214
2214
  ...i,
2215
- [o]: i[o] ?? wr()
2215
+ [o]: i[o] ?? Er()
2216
2216
  }, a = {
2217
2217
  ...a,
2218
2218
  [o]: (0, w.createRef)()
2219
2219
  };
2220
2220
  continue;
2221
2221
  }
2222
- let c = qr(s, n);
2222
+ let c = Jr(s, n);
2223
2223
  c !== s && (r = {
2224
2224
  ...r,
2225
2225
  [o]: c
@@ -2238,46 +2238,46 @@ function Jr(e, t) {
2238
2238
  cellHandles: a
2239
2239
  };
2240
2240
  }
2241
- function Yr({ store: e, model: t, reconcile: n, signal: r }) {
2241
+ function Xr({ store: e, model: t, reconcile: n, signal: r }) {
2242
2242
  let i = () => {
2243
2243
  let r = e.get(t.documentAtom);
2244
- r !== null && (n(r), e.set(Fr, r));
2244
+ r !== null && (n(r), e.set(Ir, r));
2245
2245
  }, a = e.sub(t.documentAtom, i);
2246
2246
  r.addEventListener("abort", a, { once: !0 }), i();
2247
2247
  }
2248
- async function Xr() {
2249
- let e = y.get(b);
2250
- e !== null && y.get(e.syncStatusAtom).status !== "unavailable" && await e.flush();
2248
+ async function Zr() {
2249
+ let e = m.get(g);
2250
+ e !== null && m.get(e.syncStatusAtom).status !== "unavailable" && await e.flush();
2251
2251
  }
2252
2252
  //#endregion
2253
2253
  //#region src/core/cells/editor.ts
2254
- var K = x(/* @__PURE__ */ new Set());
2255
- function Zr(e, t, n) {
2254
+ var G = _(/* @__PURE__ */ new Set());
2255
+ function Qr(e, t, n) {
2256
2256
  return !!e && !t.has(n);
2257
2257
  }
2258
- x(null, (e, t, { cellId: n }) => {
2259
- t(K, (e) => /* @__PURE__ */ new Set([...e, n]));
2260
- }), x(null, (e, t, { cellId: n }) => e(K).has(n) ? (t(K, (e) => {
2258
+ _(null, (e, t, { cellId: n }) => {
2259
+ t(G, (e) => /* @__PURE__ */ new Set([...e, n]));
2260
+ }), _(null, (e, t, { cellId: n }) => e(G).has(n) ? (t(G, (e) => {
2261
2261
  let t = new Set(e);
2262
2262
  return t.delete(n), t;
2263
2263
  }), !0) : !1);
2264
- var Qr = x(/* @__PURE__ */ new Map());
2265
- x(null, (e, t, { cellId: n }) => {
2266
- t(Qr, (e) => {
2264
+ var $r = _(/* @__PURE__ */ new Map());
2265
+ _(null, (e, t, { cellId: n }) => {
2266
+ t($r, (e) => {
2267
2267
  let t = new Map(e);
2268
2268
  return t.delete(n), t;
2269
2269
  });
2270
2270
  });
2271
2271
  //#endregion
2272
2272
  //#region src/components/editor/navigation/focus-utils.ts
2273
- function $r(e, n) {
2274
- let r = document.getElementById(H.create(e));
2275
- r ? ti(r, n) : t.warn(`[CellFocusManager] focusCell: element not found: ${e}`);
2273
+ function ei(e, n) {
2274
+ let r = document.getElementById(B.create(e));
2275
+ r ? ni(r, n) : t.warn(`[CellFocusManager] focusCell: element not found: ${e}`);
2276
2276
  }
2277
- function ei() {
2277
+ function ti() {
2278
2278
  return document.activeElement instanceof HTMLElement && document.activeElement.classList.contains("marimo-cell");
2279
2279
  }
2280
- function ti(e, n) {
2280
+ function ni(e, n) {
2281
2281
  try {
2282
2282
  e.focus(n);
2283
2283
  } catch {
@@ -2286,7 +2286,7 @@ function ti(e, n) {
2286
2286
  }
2287
2287
  //#endregion
2288
2288
  //#region src/utils/timeout.ts
2289
- function ni(e, n) {
2289
+ function ri(e, n) {
2290
2290
  let { retries: r, delay: i, initialDelay: a = 0 } = n, o = 0, s = () => {
2291
2291
  if (o < r) {
2292
2292
  try {
@@ -2301,75 +2301,75 @@ function ni(e, n) {
2301
2301
  }
2302
2302
  //#endregion
2303
2303
  //#region src/core/cells/utils.ts
2304
- function ri(e) {
2304
+ function ii(e) {
2305
2305
  return e.cellIds.map((t) => e.cellData[t]);
2306
2306
  }
2307
- function ii(e) {
2307
+ function ai(e) {
2308
2308
  let { cellIds: t, cellData: n } = e, r = [];
2309
2309
  for (let e of t) n[e].config.disabled && r.push(e);
2310
2310
  return r;
2311
2311
  }
2312
- function ai(e) {
2312
+ function oi(e) {
2313
2313
  let { cellIds: t, cellData: n } = e, r = [];
2314
2314
  for (let e of t) n[e].config.disabled || r.push(e);
2315
2315
  return r;
2316
2316
  }
2317
- function oi(e) {
2317
+ function si(e) {
2318
2318
  return e.history.length > 0;
2319
2319
  }
2320
- function si(e) {
2320
+ function ci(e) {
2321
2321
  let t = e.history[e.history.length - 1];
2322
2322
  return t && t.type === "move" ? "Undo move" : "Undo cell deletion";
2323
2323
  }
2324
- function ci(e, t, n) {
2325
- return e.status === "idle" ? fi(e) && n.code.trim() ? "not-run" : t.sourceChanged ? "source" : e.outcome === "cancelled" ? "interrupted" : t.inputsChanged && !n.config.disabled && !e.blocked ? "inputs" : null : null;
2324
+ function li(e, t, n) {
2325
+ return e.status === "idle" ? pi(e) && n.code.trim() ? "not-run" : t.sourceChanged ? "source" : e.outcome === "cancelled" ? "interrupted" : t.inputsChanged && !n.config.disabled && !e.blocked ? "inputs" : null : null;
2326
2326
  }
2327
- function* li(e, t, n) {
2327
+ function* ui(e, t, n) {
2328
2328
  for (let r of e.cellIds) {
2329
- let i = Bt(t, r), a = n(r), o = ci(i, a, e.cellData[r]);
2330
- o === null ? a.sourceChanged && di(t.executions, r) && (yield [r, "source"]) : yield [r, o];
2329
+ let i = Bt(t, r), a = n(r), o = li(i, a, e.cellData[r]);
2330
+ o === null ? a.sourceChanged && fi(t.executions, r) && (yield [r, "source"]) : yield [r, o];
2331
2331
  }
2332
2332
  }
2333
- function ui(e, t, n) {
2333
+ function di(e, t, n) {
2334
2334
  let r = null;
2335
- for (let [, i] of li(e, t, n)) {
2335
+ for (let [, i] of ui(e, t, n)) {
2336
2336
  if (i !== "inputs") return i;
2337
2337
  r = i;
2338
2338
  }
2339
2339
  return r;
2340
2340
  }
2341
- function di(e, t) {
2341
+ function fi(e, t) {
2342
2342
  let n = e.latest.get(t), r = n === void 0 ? void 0 : e.executions.get(n)?.record;
2343
2343
  return r !== void 0 && r.state.status !== "completed";
2344
2344
  }
2345
- function fi({ status: e, outcome: t, live: n }) {
2345
+ function pi({ status: e, outcome: t, live: n }) {
2346
2346
  return (t === null || !n) && e !== "queued" && e !== "running";
2347
2347
  }
2348
- function pi({ errored: e, stopped: t }) {
2348
+ function mi({ errored: e, stopped: t }) {
2349
2349
  return {
2350
2350
  published: !0,
2351
2351
  "has-error": e,
2352
2352
  stopped: t
2353
2353
  };
2354
2354
  }
2355
- function mi({ errored: e, interrupted: t, stopped: n, output: r, showErrorTracebacks: i }) {
2356
- let a = Dn(r?.mimetype), o = i && a && Array.isArray(r?.data) && r.data.some((e) => e.type === "exception" && "traceback" in e && e.traceback);
2355
+ function hi({ errored: e, interrupted: t, stopped: n, output: r, showErrorTracebacks: i }) {
2356
+ let a = R(r?.mimetype), o = i && a && Array.isArray(r?.data) && r.data.some((e) => e.type === "exception" && "traceback" in e && e.traceback);
2357
2357
  return (e || t || n || a) && !o;
2358
2358
  }
2359
2359
  //#endregion
2360
2360
  //#region src/core/network/requests.ts
2361
- var hi = x(null);
2362
- function gi() {
2363
- let e = v(hi);
2361
+ var gi = _(null);
2362
+ function _i() {
2363
+ let e = S(gi);
2364
2364
  return C(e, "useRequestClient() requires setting requestClientAtom."), e;
2365
2365
  }
2366
- function _i() {
2367
- let e = y.get(hi);
2366
+ function vi() {
2367
+ let e = m.get(gi);
2368
2368
  return C(e, "getRequestClient() requires requestClientAtom to be set."), e;
2369
2369
  }
2370
2370
  //#endregion
2371
2371
  //#region src/utils/storage/storage.ts
2372
- var vi = class {
2372
+ var yi = class {
2373
2373
  store = /* @__PURE__ */ new Map();
2374
2374
  get length() {
2375
2375
  return this.store.size;
@@ -2390,16 +2390,16 @@ var vi = class {
2390
2390
  this.store.set(e, t);
2391
2391
  }
2392
2392
  };
2393
- function yi() {
2393
+ function bi() {
2394
2394
  let { hasLocalStorage: e, hasSessionStorage: t } = Se();
2395
- return e ? window.localStorage : t ? window.sessionStorage : new vi();
2395
+ return e ? window.localStorage : t ? window.sessionStorage : new yi();
2396
2396
  }
2397
- var bi = yi(), xi = /(https?:\/\/[^\s"<>`{}|\\^]+)/, Si = /\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i, Ci = /^data:image\//i, wi = ["avatars.githubusercontent.com"];
2398
- function Ti(e) {
2399
- return Ci.test(e) ? [{
2397
+ var xi = bi(), Si = /(https?:\/\/[^\s"<>`{}|\\^]+)/, Ci = /\.(png|jpe?g|gif|webp|svg|ico)(\?.*)?$/i, wi = /^data:image\//i, Ti = ["avatars.githubusercontent.com"];
2398
+ function Ei(e) {
2399
+ return wi.test(e) ? [{
2400
2400
  type: "image",
2401
2401
  url: e
2402
- }] : e.split(xi).filter((e) => e !== "").map((e) => xi.test(e) ? Si.test(e) || Ci.test(e) || wi.some((t) => e.includes(t)) ? {
2402
+ }] : e.split(Si).filter((e) => e !== "").map((e) => Si.test(e) ? Ci.test(e) || wi.test(e) || Ti.some((t) => e.includes(t)) ? {
2403
2403
  type: "image",
2404
2404
  url: e
2405
2405
  } : {
@@ -2412,48 +2412,48 @@ function Ti(e) {
2412
2412
  }
2413
2413
  //#endregion
2414
2414
  //#region src/utils/json/json-parser.ts
2415
- var Ei = new RegExp(xi.source, "g");
2415
+ var Di = new RegExp(Si.source, "g");
2416
2416
  BigInt.prototype.toJSON = function() {
2417
2417
  return JSON.rawJSON(this.toString());
2418
2418
  };
2419
- function Di(e) {
2419
+ function Oi(e) {
2420
2420
  try {
2421
- return JSON.parse(e, (e, t) => ji(t));
2421
+ return JSON.parse(e, (e, t) => Mi(t));
2422
2422
  } catch {}
2423
2423
  if (e == null || e === "") return {};
2424
2424
  try {
2425
- return e ??= "", e = e.replaceAll(/(?<=\s|^|\[|,|:)(NaN|-Infinity|Infinity)(?=(?:[^"'\\]*(\\.|'([^'\\]*\\.)*[^'\\]*'|"([^"\\]*\\.)*[^"\\]*"))*[^"']*$)/g, "\"◐$1◐\""), JSON.parse(e, (e, t) => typeof t == "string" ? t === "◐NaN◐" ? NaN : t === "◐Infinity◐" ? Infinity : t === "◐-Infinity◐" ? -Infinity : ji(t) : ji(t));
2425
+ return e ??= "", e = e.replaceAll(/(?<=\s|^|\[|,|:)(NaN|-Infinity|Infinity)(?=(?:[^"'\\]*(\\.|'([^'\\]*\\.)*[^'\\]*'|"([^"\\]*\\.)*[^"\\]*"))*[^"']*$)/g, "\"◐$1◐\""), JSON.parse(e, (e, t) => typeof t == "string" ? t === "◐NaN◐" ? NaN : t === "◐Infinity◐" ? Infinity : t === "◐-Infinity◐" ? -Infinity : Mi(t) : Mi(t));
2426
2426
  } catch {
2427
2427
  return {};
2428
2428
  }
2429
2429
  }
2430
- function Oi(e) {
2430
+ function ki(e) {
2431
2431
  if (e.length === 0) return "";
2432
2432
  let t = Object.keys(e[0]);
2433
2433
  return [
2434
2434
  `| ${t.join(" | ")} |`,
2435
2435
  `|${t.map(() => "---").join("|")}|`,
2436
- ...e.map((e) => `| ${t.map((t) => ki(e[t])).join(" | ")} |`)
2436
+ ...e.map((e) => `| ${t.map((t) => Ai(e[t])).join(" | ")} |`)
2437
2437
  ].join("\n");
2438
2438
  }
2439
- function ki(e) {
2439
+ function Ai(e) {
2440
2440
  if (e == null) return "";
2441
- if (Array.isArray(e) || typeof e == "object") return Ai(JSON.stringify(e));
2441
+ if (Array.isArray(e) || typeof e == "object") return ji(JSON.stringify(e));
2442
2442
  let t = String(e), n = /\[([^\]]+)]\((https?:\/\/[^)]+)\)/g, r = /* @__PURE__ */ new Map(), i = 0;
2443
2443
  t = t.replaceAll(n, (e) => {
2444
2444
  let t = `__MDLINK_${i++}__`;
2445
2445
  return r.set(t, e), t;
2446
- }), t = t.replaceAll(Ei, "[$1]($1)");
2446
+ }), t = t.replaceAll(Di, "[$1]($1)");
2447
2447
  for (let [e, n] of r) t = t.replace(e, n);
2448
- return Ai(t);
2448
+ return ji(t);
2449
2449
  }
2450
- function Ai(e) {
2450
+ function ji(e) {
2451
2451
  return e.replaceAll("\\", "\\\\").replaceAll("|", "\\|").replaceAll("\n", " ").replaceAll("\r", "");
2452
2452
  }
2453
- function ji(e) {
2453
+ function Mi(e) {
2454
2454
  return typeof e == "object" && e && "$bigint" in e && typeof e.$bigint == "string" ? BigInt(e.$bigint) : e;
2455
2455
  }
2456
- var Mi = new class {
2456
+ var Ni = new class {
2457
2457
  getFilename() {
2458
2458
  return this.getSearchParam("filename");
2459
2459
  }
@@ -2480,20 +2480,20 @@ var Mi = new class {
2480
2480
  }();
2481
2481
  //#endregion
2482
2482
  //#region src/core/dom/htmlUtils.ts
2483
- function Ni(e) {
2484
- return Di(e ?? "");
2485
- }
2486
2483
  function Pi(e) {
2487
- return ue.mapValues(e.dataset, (e) => typeof e == "string" ? Ni(e) : e);
2484
+ return Oi(e ?? "");
2485
+ }
2486
+ function Fi(e) {
2487
+ return ue.mapValues(e.dataset, (e) => typeof e == "string" ? Pi(e) : e);
2488
2488
  }
2489
- function Fi(e, t) {
2490
- let n = e.parentElement ? Ln.parse(e.parentElement) : void 0;
2491
- return n && t.has(n) ? t.lookupValue(n) : Ni(e.dataset.initialValue);
2489
+ function Ii(e, t) {
2490
+ let n = e.parentElement ? zn.parse(e.parentElement) : void 0;
2491
+ return n && t.has(n) ? t.lookupValue(n) : Pi(e.dataset.initialValue);
2492
2492
  }
2493
- function Ii() {
2494
- if (ne()) return document.title || null;
2493
+ function Li() {
2494
+ if (re()) return document.title || null;
2495
2495
  if (be()) {
2496
- let e = Mi.getFilename();
2496
+ let e = Ni.getFilename();
2497
2497
  if (e) return e;
2498
2498
  }
2499
2499
  let e = document.querySelector("marimo-filename");
@@ -2503,16 +2503,16 @@ function Ii() {
2503
2503
  }
2504
2504
  //#endregion
2505
2505
  //#region src/core/saving/file-state.ts
2506
- var Li = x(Ii());
2507
- x(null);
2508
- var Ri = x(null);
2509
- x(void 0);
2506
+ var K = _(Li());
2507
+ _(null);
2508
+ var Ri = _(null);
2509
+ _(void 0);
2510
2510
  //#endregion
2511
2511
  //#region src/utils/storage/typed.ts
2512
2512
  var zi = class {
2513
2513
  defaultValue;
2514
2514
  storage;
2515
- constructor(e, t = bi) {
2515
+ constructor(e, t = xi) {
2516
2516
  this.defaultValue = e, this.storage = t;
2517
2517
  }
2518
2518
  get(e) {
@@ -2533,7 +2533,7 @@ var zi = class {
2533
2533
  schema;
2534
2534
  getDefaultValue;
2535
2535
  storage;
2536
- constructor(e, t, n = bi) {
2536
+ constructor(e, t, n = xi) {
2537
2537
  this.schema = e, this.getDefaultValue = t, this.storage = n;
2538
2538
  }
2539
2539
  get(e) {
@@ -2556,11 +2556,11 @@ var zi = class {
2556
2556
  filename;
2557
2557
  unsubscribeFromFilename;
2558
2558
  constructor(e, t, n) {
2559
- let r = y.get(Li);
2559
+ let r = m.get(K);
2560
2560
  super(t, n), this.filename = r;
2561
2561
  try {
2562
- this.unsubscribeFromFilename = y.sub(Li, () => {
2563
- let t = y.get(Li);
2562
+ this.unsubscribeFromFilename = m.sub(K, () => {
2563
+ let t = m.get(K);
2564
2564
  this.handleFilenameChange(e, t);
2565
2565
  });
2566
2566
  } catch {
@@ -2849,25 +2849,25 @@ function na(e, t) {
2849
2849
  }
2850
2850
  //#endregion
2851
2851
  //#region src/core/network/connection.ts
2852
- var X = x({ state: O.NOT_STARTED });
2853
- p(null, (e, t) => t === null ? null : {
2852
+ var X = _({ state: O.NOT_STARTED });
2853
+ ae(null, (e, t) => t === null ? null : {
2854
2854
  phase: t.phase,
2855
2855
  logs: t.log_mode === "append" && e?.phase === t.phase ? e.logs + t.logs : t.logs
2856
2856
  });
2857
2857
  function ra() {
2858
- return se(X, (e) => e.state === O.OPEN);
2858
+ return te(X, (e) => e.state === O.OPEN);
2859
2859
  }
2860
2860
  function ia() {
2861
2861
  return _e() ? ra() : Promise.resolve();
2862
2862
  }
2863
- x((e) => e(X).state === O.CONNECTING), x((e) => e(X).state === O.OPEN), x((e) => {
2863
+ _((e) => e(X).state === O.CONNECTING), _((e) => e(X).state === O.OPEN), _((e) => {
2864
2864
  let t = e(X);
2865
2865
  return t.state === O.OPEN || t.state === O.NOT_STARTED;
2866
- }), x((e) => e(X).state === O.CLOSED);
2866
+ }), _((e) => e(X).state === O.CLOSED);
2867
2867
  //#endregion
2868
2868
  //#region src/components/ui/checkbox.tsx
2869
2869
  var aa = w.forwardRef((e, t) => {
2870
- let r = (0, _n.c)(13), i, a;
2870
+ let r = (0, bn.c)(13), i, a;
2871
2871
  r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
2872
2872
  let o;
2873
2873
  r[3] === i ? o = r[4] : (o = n("flex items-center justify-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground", i), r[3] = i, r[4] = o);
@@ -2891,20 +2891,20 @@ aa.displayName = Pe.displayName;
2891
2891
  //#region src/core/cells/scrollCellIntoView.ts
2892
2892
  function oa({ cellId: e, cell: n, isCodeHidden: r, codeFocus: i, variableName: a }) {
2893
2893
  if (!n) return;
2894
- let o = document.getElementById(H.create(e));
2894
+ let o = document.getElementById(B.create(e));
2895
2895
  if (!o) t.warn("scrollCellIntoView: element not found");
2896
- else if (ei()) ti(o);
2896
+ else if (ti()) ni(o);
2897
2897
  else {
2898
- if (r) ti(o);
2898
+ if (r) ni(o);
2899
2899
  else {
2900
- wn.promote(e);
2900
+ Dn.promote(e);
2901
2901
  let r = n.current?.editorView;
2902
2902
  if (!r) {
2903
2903
  t.warn("scrollCellIntoView: editor not found", e);
2904
2904
  return;
2905
2905
  }
2906
2906
  if (r.hasFocus || !document.hasFocus()) return;
2907
- if (ni(() => (r.focus(), r.hasFocus), {
2907
+ if (ri(() => (r.focus(), r.hasFocus), {
2908
2908
  retries: 5,
2909
2909
  delay: 20
2910
2910
  }), i === "top") r.dispatch({ selection: {
@@ -2939,7 +2939,7 @@ function ca() {
2939
2939
  });
2940
2940
  }
2941
2941
  function la(e) {
2942
- let t = document.getElementById(H.create(e));
2942
+ let t = document.getElementById(B.create(e));
2943
2943
  return t?.scrollIntoView({
2944
2944
  behavior: "smooth",
2945
2945
  block: "center"
@@ -2957,18 +2957,18 @@ function ua(e) {
2957
2957
  return {
2958
2958
  ...e,
2959
2959
  cellData: {
2960
- [V]: Sr({
2961
- id: V,
2960
+ [z]: wr({
2961
+ id: z,
2962
2962
  config: t
2963
2963
  }),
2964
2964
  ...e.cellData
2965
2965
  },
2966
2966
  cellRuntime: {
2967
- [V]: wr(),
2967
+ [z]: Er(),
2968
2968
  ...e.cellRuntime
2969
2969
  },
2970
2970
  cellHandles: {
2971
- [V]: (0, w.createRef)(),
2971
+ [z]: (0, w.createRef)(),
2972
2972
  ...e.cellHandles
2973
2973
  }
2974
2974
  };
@@ -3002,12 +3002,12 @@ var { reducer: fa, createActions: pa, useActions: ma, valueAtom: Z } = fe(da, {
3002
3002
  cellId: n,
3003
3003
  cellReducer: (e) => ({
3004
3004
  ...e,
3005
- commandConsole: On(e.commandConsole, t, e.clearedCommandIds?.[t.op])
3005
+ commandConsole: An(e.commandConsole, t, e.clearedCommandIds?.[t.op])
3006
3006
  })
3007
3007
  });
3008
3008
  return i || t.op === "pdb-output" ? a : {
3009
3009
  ...a,
3010
- cellLogs: [...a.cellLogs, ...mr({
3010
+ cellLogs: [...a.cellLogs, ...gr({
3011
3011
  cell_id: n,
3012
3012
  console: r
3013
3013
  })]
@@ -3033,7 +3033,7 @@ var { reducer: fa, createActions: pa, useActions: ma, valueAtom: Z } = fe(da, {
3033
3033
  let n = t[e];
3034
3034
  n.commandConsole?.entries.some((e) => e.source === "pdb-output") && (t[e] = {
3035
3035
  ...n,
3036
- commandConsole: On(n.commandConsole, {
3036
+ commandConsole: An(n.commandConsole, {
3037
3037
  op: "pdb-output",
3038
3038
  cell_id: e,
3039
3039
  entries: [],
@@ -3051,7 +3051,7 @@ var { reducer: fa, createActions: pa, useActions: ma, valueAtom: Z } = fe(da, {
3051
3051
  cellLogs: [...e.cellLogs, ...t.logs]
3052
3052
  }),
3053
3053
  reconcileDocument: (e, t) => {
3054
- let n = Jr(e, t);
3054
+ let n = Yr(e, t);
3055
3055
  for (let t of e.cellIds) t in n.cellData || Aa(t);
3056
3056
  return n;
3057
3057
  },
@@ -3068,9 +3068,9 @@ var { reducer: fa, createActions: pa, useActions: ma, valueAtom: Z } = fe(da, {
3068
3068
  },
3069
3069
  resetCellRuntimes: (e, t) => {
3070
3070
  let n = be(), r = { ...e.cellRuntime };
3071
- for (let i of [...e.cellIds, V]) {
3071
+ for (let i of [...e.cellIds, z]) {
3072
3072
  let a = e.cellRuntime[i];
3073
- r[i] = n && a !== void 0 && a.embeddedConsole.length > 0 ? a : wr({
3073
+ r[i] = n && a !== void 0 && a.embeddedConsole.length > 0 ? a : Er({
3074
3074
  clearedConsole: t ? a?.clearedConsole : void 0,
3075
3075
  clearedCommandIds: t ? a?.clearedCommandIds : void 0
3076
3076
  });
@@ -3087,7 +3087,7 @@ var { reducer: fa, createActions: pa, useActions: ma, valueAtom: Z } = fe(da, {
3087
3087
  return oa({
3088
3088
  cellId: n,
3089
3089
  cell: e.cellHandles[n],
3090
- isCodeHidden: Zr(e.cellData[n]?.config.hide_code, y.get(K), n),
3090
+ isCodeHidden: Qr(e.cellData[n]?.config.hide_code, m.get(G), n),
3091
3091
  codeFocus: void 0,
3092
3092
  variableName: void 0
3093
3093
  }), {
@@ -3095,8 +3095,8 @@ var { reducer: fa, createActions: pa, useActions: ma, valueAtom: Z } = fe(da, {
3095
3095
  scrollKey: null
3096
3096
  };
3097
3097
  },
3098
- foldAll: (e) => (yn(Object.values(e.cellHandles).map((e) => e.current?.editorView)), e),
3099
- unfoldAll: (e) => (bn(Object.values(e.cellHandles).map((e) => e.current?.editorView)), e),
3098
+ foldAll: (e) => (Sn(Object.values(e.cellHandles).map((e) => e.current?.editorView)), e),
3099
+ unfoldAll: (e) => (Cn(Object.values(e.cellHandles).map((e) => e.current?.editorView)), e),
3100
3100
  clearLogs: (e) => ({
3101
3101
  ...e,
3102
3102
  cellLogs: []
@@ -3127,16 +3127,16 @@ function Q({ state: e, cellId: n, cellReducer: r }) {
3127
3127
  } : (t.warn(`Cell ${n} not found in state`), e);
3128
3128
  }
3129
3129
  var ha = pa((e) => {
3130
- y.set(Z, (t) => fa(t, e));
3131
- }).addLogs, $ = x((e) => e(Z).cellIds);
3132
- x((e) => e($).length === 1), x((e) => ii(e(Z)).length > 0), x((e) => ai(e(Z)).length > 0), x((e) => oi(e(Z))), x((e) => si(e(Z)));
3133
- var ga = x((e) => ui(e(Z), e(z), e(nn)));
3134
- x((e) => e(ga) !== null);
3135
- var _a = x((e) => {
3130
+ m.set(Z, (t) => fa(t, e));
3131
+ }).addLogs, $ = _((e) => e(Z).cellIds);
3132
+ _((e) => e($).length === 1), _((e) => ai(e(Z)).length > 0), _((e) => oi(e(Z)).length > 0), _((e) => si(e(Z))), _((e) => ci(e(Z)));
3133
+ var ga = _((e) => di(e(Z), e(rn), e(on)));
3134
+ _((e) => e(ga) !== null);
3135
+ var _a = _((e) => {
3136
3136
  let { cellIds: t, cellData: n } = e(Z);
3137
3137
  return t.map((t) => {
3138
- let r = e(B(t)), { name: i } = n[t];
3139
- if (r !== null && Dn(r.mimetype)) {
3138
+ let r = e(L(t)), { name: i } = n[t];
3139
+ if (r !== null && R(r.mimetype)) {
3140
3140
  C(Array.isArray(r.data), "Expected array data");
3141
3141
  let e = r.data.filter((e) => !e.type.includes("ancestor"));
3142
3142
  if (e.length > 0) return {
@@ -3150,47 +3150,47 @@ var _a = x((e) => {
3150
3150
  }
3151
3151
  return null;
3152
3152
  }).filter(Boolean);
3153
- }), va = ce(x((e) => {
3153
+ }), va = x(_((e) => {
3154
3154
  let t = {};
3155
3155
  for (let n of e($)) {
3156
- let r = e(cn(n));
3156
+ let r = e(dn(n));
3157
3157
  r !== null && r.items.length > 0 && (t[n] = r);
3158
3158
  }
3159
3159
  return t;
3160
- })), ya = x((e) => Je(e($).map((t) => e(cn(t)))));
3161
- x((e) => e(_a).length);
3162
- var ba = ce(x((e) => {
3160
+ })), ya = _((e) => Je(e($).map((t) => e(dn(t)))));
3161
+ _((e) => e(_a).length);
3162
+ var ba = x(_((e) => {
3163
3163
  let { cellIds: t, cellData: n } = e(Z);
3164
3164
  return ue.fromEntries(t.map((e) => [e, n[e]?.name]));
3165
3165
  }));
3166
- x((e) => e(Z).scrollKey);
3167
- var xa = () => v($), Sa = () => v(ba), Ca = () => y.get(Z), wa = () => y.get(Z).cellIds, Ta = () => {
3168
- let { cellIds: e, cellData: t } = y.get(Z);
3166
+ _((e) => e(Z).scrollKey);
3167
+ var xa = () => S($), Sa = () => S(ba), Ca = () => m.get(Z), wa = () => m.get(Z).cellIds, Ta = () => {
3168
+ let { cellIds: e, cellData: t } = m.get(Z);
3169
3169
  return e.map((e) => t[e]?.name).filter(Boolean);
3170
3170
  };
3171
- ee(_(Z, (e) => e.cellIds.map((t) => e.cellData[t]))), x((e) => e(Z).cellIds.length > 0);
3172
- var Ea = S((e) => x((t) => t(Z).cellData[e])), Da = wr(), Oa = S((e) => {
3173
- let t = x((t) => {
3174
- let n = Dr(t, e), r = t(m)?.cells;
3171
+ ee(b(Z, (e) => e.cellIds.map((t) => e.cellData[t]))), _((e) => e(Z).cellIds.length > 0);
3172
+ var Ea = p((e) => _((t) => t(Z).cellData[e])), Da = Er(), Oa = p((e) => {
3173
+ let t = _((t) => {
3174
+ let n = kr(t, e), r = t(y)?.cells;
3175
3175
  return {
3176
3176
  local: t(Z).cellRuntime[e] ?? Da,
3177
3177
  execution: n,
3178
3178
  code: n && Et(n.record, r)
3179
3179
  };
3180
- }), n = _(t, Or);
3181
- return x((e) => e(n).rendered);
3182
- }), ka = S((e) => x((t) => t(Z).cellHandles[e]));
3180
+ }), n = b(t, Ar);
3181
+ return _((e) => e(n).rendered);
3182
+ }), ka = p((e) => _((t) => t(Z).cellHandles[e]));
3183
3183
  function Aa(e) {
3184
- Ea.remove(e), Oa.remove(e), ka.remove(e), ln(e);
3184
+ Ea.remove(e), Oa.remove(e), ka.remove(e), fn(e);
3185
3185
  }
3186
3186
  var ja = (e) => {
3187
- let { cellHandles: t } = y.get(Z);
3187
+ let { cellHandles: t } = m.get(Z);
3188
3188
  return t[e].current?.editorView;
3189
- }, Ma = (e) => (wn.promote(e), ja(e));
3190
- x((e) => e($).map((t) => ({
3189
+ }, Ma = (e) => (Dn.promote(e), ja(e));
3190
+ _((e) => e($).map((t) => ({
3191
3191
  ...e(Ea(t)),
3192
3192
  ...e(Oa(t)),
3193
- output: e(B(t))
3193
+ output: e(L(t))
3194
3194
  })));
3195
3195
  function Na() {
3196
3196
  return ma();
@@ -3198,12 +3198,12 @@ function Na() {
3198
3198
  //#endregion
3199
3199
  //#region src/core/errors/error-entries.ts
3200
3200
  function Pa(e) {
3201
- if (Tn(e.mimetype)) {
3201
+ if (On(e.mimetype)) {
3202
3202
  if (!Array.isArray(e.data)) return null;
3203
3203
  let t = e.data.filter((e) => !e.type.includes("ancestor"));
3204
3204
  return t.length === 0 ? null : { errorData: t };
3205
3205
  }
3206
- return En(e.mimetype) ? typeof e.data != "string" || e.data.length === 0 ? null : {
3206
+ return kn(e.mimetype) ? typeof e.data != "string" || e.data.length === 0 ? null : {
3207
3207
  errorData: [],
3208
3208
  tracebackHtml: e.data
3209
3209
  } : null;
@@ -3212,7 +3212,7 @@ function Fa(e) {
3212
3212
  return e.some((e) => "traceback" in e && e.traceback);
3213
3213
  }
3214
3214
  function Ia(e) {
3215
- let t = e?.find((e) => En(e.mimetype));
3215
+ let t = e?.find((e) => kn(e.mimetype));
3216
3216
  if (t && typeof t.data == "string" && t.data.length !== 0) return t.data;
3217
3217
  }
3218
3218
  function La(e, t) {
@@ -3222,11 +3222,11 @@ function La(e, t) {
3222
3222
  function Ra(e) {
3223
3223
  let { cellIds: t, cellData: n } = e.get(Z), r = [];
3224
3224
  for (let [i, a] of t.entries()) {
3225
- let t = e.get(B(a));
3226
- if (t === null || !Dn(t.mimetype)) continue;
3225
+ let t = e.get(L(a));
3226
+ if (t === null || !R(t.mimetype)) continue;
3227
3227
  let o = Pa(t);
3228
3228
  if (!o) continue;
3229
- let s = br(n[a].name, i), c = t.code ?? n[a].code;
3229
+ let s = Sr(n[a].name, i), c = t.code ?? n[a].code;
3230
3230
  r.push({
3231
3231
  cellId: a,
3232
3232
  cellName: s,
@@ -3242,11 +3242,11 @@ function za(e) {
3242
3242
  }
3243
3243
  function Ba(e) {
3244
3244
  let t = za(e);
3245
- return "traceback" in e && e.traceback && (t += `\n\nTraceback:\n${G(e.traceback)}`), t;
3245
+ return "traceback" in e && e.traceback && (t += `\n\nTraceback:\n${U(e.traceback)}`), t;
3246
3246
  }
3247
3247
  function Va(e) {
3248
3248
  let t = [e.cellName];
3249
- return e.tracebackHtml && t.push(G(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(Ba).join("\n\n")), t.join("\n\n");
3249
+ return e.tracebackHtml && t.push(U(e.tracebackHtml)), e.errorData.length > 0 && t.push(e.errorData.map(Ba).join("\n\n")), t.join("\n\n");
3250
3250
  }
3251
3251
  //#endregion
3252
- export { Zr as $, O as $t, ia as A, H as At, Fi as B, cn as Bt, oa as C, mr as Ct, aa as D, Bn as Dt, ca as E, rr as Et, Bi as F, kn as Ft, _i as G, mn as Gt, Oi as H, on as Ht, Li as I, An as It, fi as J, hn as Jt, hi as K, dn as Kt, Ri as L, gn as Lt, Ui as M, Pn as Mt, Vi as N, Ln as Nt, X as O, Fn as Ot, zi as P, In as Pt, $r as Q, Qe as Qt, Ni as R, z as Rt, Na as S, vr as St, la as T, G as Tt, Ti as U, un as Ut, Di as V, B as Vt, bi as W, Qt as Wt, pi as X, pt as Xt, ri as Y, Bt as Yt, mi as Z, ft as Zt, ya as _, Dr as _t, ha as a, Mr as at, xa as b, yr as bt, Oa as c, Hr as ct, ja as d, Gr as dt, Xe as en, Qr as et, Ta as f, zr as ft, Z as g, kr as gt, da as h, Br as ht, Ra as i, Ce as in, jr as it, na as j, V as jt, ra as k, Rn as kt, pa as l, Wr as lt, Ca as m, Vr as mt, Va as n, He as nn, Xr as nt, Ea as o, Ur as ot, wa as p, Pr as pt, gi as q, pn as qt, Ba as r, we as rn, Yr as rt, $ as s, Nr as st, za as t, qe as tn, K as tt, Ma as u, Kr as ut, fa as v, Er as vt, sa as w, ur as wt, Sa as x, xr as xt, Aa as y, br as yt, Pi as z, nn as zt };
3252
+ export { Qr as $, O as $t, ia as A, B as At, Ii as B, dn as Bt, oa as C, gr as Ct, aa as D, Hn as Dt, ca as E, ar as Et, Bi as F, jn as Ft, vi as G, _n as Gt, ki as H, ln as Ht, K as I, Mn as It, pi as J, vn as Jt, gi as K, mn as Kt, Ri as L, yn as Lt, Ui as M, In as Mt, Vi as N, zn as Nt, X as O, Ln as Ot, zi as P, Rn as Pt, ei as Q, Qe as Qt, Pi as R, rn as Rt, Na as S, br as St, la as T, U as Tt, Ei as U, pn as Ut, Oi as V, L as Vt, xi as W, en as Wt, mi as X, pt as Xt, ii as Y, Bt as Yt, hi as Z, ft as Zt, ya as _, kr as _t, ha as a, Pr as at, xa as b, xr as bt, Oa as c, Ur as ct, ja as d, Kr as dt, Xe as en, $r as et, Ta as f, Br as ft, Z as g, jr as gt, da as h, Vr as ht, Ra as i, Ce as in, Nr as it, na as j, z as jt, ra as k, Bn as kt, pa as l, Gr as lt, Ca as m, Hr as mt, Va as n, He as nn, Zr as nt, Ea as o, Wr as ot, wa as p, Fr as pt, _i as q, gn as qt, Ba as r, we as rn, Xr as rt, $ as s, W as st, za as t, qe as tn, G as tt, Ma as u, qr as ut, fa as v, Or as vt, sa as w, fr as wt, Sa as x, Cr as xt, Aa as y, Sr as yt, Fi as z, on as zt };