@marimo-team/islands 0.26.1-dev112 → 0.26.1-dev119

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 (43) hide show
  1. package/dist/{ErrorBoundary-pNKOBKXw.js → ErrorBoundary-CkXMIvMv.js} +1 -1
  2. package/dist/{chat-ui-C9NZA-bk.js → chat-ui-CMKYvKUz.js} +3 -3
  3. package/dist/{code-visibility-B9s3Hl8z.js → code-visibility-IpaMnOoU.js} +2 -2
  4. package/dist/{common-Bn3jx0X6.js → common-CtWT0mmS.js} +4766 -4749
  5. package/dist/{data-grid-overlay-editor-mxwwRaQy.js → data-grid-overlay-editor-DHlHNRoU.js} +1 -1
  6. package/dist/{error-entries-1DC4BiYB.js → error-entries-B4LgfizR.js} +759 -749
  7. package/dist/{feedback-button-BrzbnRTT.js → feedback-button-BK1A2jRH.js} +3 -3
  8. package/dist/{formats-Y52bg800.js → formats-CeuXJ_1f.js} +32 -25
  9. package/dist/{glide-data-editor-Cnsv3NcI.js → glide-data-editor-DCcfshI9.js} +3 -3
  10. package/dist/{globals-BGqfFPx8.js → globals-CG1ka6r5.js} +1 -1
  11. package/dist/{html-to-image-CsvAOgd3.js → html-to-image-CIkwg7mv.js} +1 -1
  12. package/dist/main.js +69 -66
  13. package/dist/{number-overlay-editor-DuSCOMTK.js → number-overlay-editor-Cvv8DaFJ.js} +1 -1
  14. package/dist/{process-output-CtfJ_Gbp.js → process-output-PS9YSLNu.js} +2 -2
  15. package/dist/{reveal-component-DzmiQyN9.js → reveal-component-50jFQHXp.js} +2 -2
  16. package/dist/{useDeepCompareMemoize-Dn-ZJVTd.js → semaphore-8KhQouXt.js} +5 -15
  17. package/dist/{vega-component-BIq0qzhQ.js → vega-component-CoJiBCaS.js} +11 -11
  18. package/package.json +1 -1
  19. package/src/__mocks__/executions.ts +1 -1
  20. package/src/__mocks__/intersection-observer.ts +5 -5
  21. package/src/components/editor/Output.tsx +3 -21
  22. package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +27 -0
  23. package/src/components/editor/actions/pair-with-agent-modal.tsx +8 -1
  24. package/src/components/editor/output/VegaOutput.tsx +35 -0
  25. package/src/components/find-replace/find-replace.tsx +1 -7
  26. package/src/core/cells/__tests__/cell-errors.test.tsx +179 -0
  27. package/src/core/cells/cells.ts +24 -27
  28. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +18 -15
  29. package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +90 -2
  30. package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +44 -10
  31. package/src/core/codemirror/find-replace/navigate.ts +4 -1
  32. package/src/core/codemirror/find-replace/search-highlight.ts +54 -58
  33. package/src/core/executions/__tests__/atoms.test.ts +0 -2
  34. package/src/core/executions/__tests__/output-lifecycle.test.ts +16 -0
  35. package/src/core/executions/atoms.ts +33 -36
  36. package/src/core/export/__tests__/output-snapshot.test.tsx +240 -0
  37. package/src/core/export/__tests__/output-subscription.test.tsx +79 -0
  38. package/src/core/export/hooks.ts +29 -13
  39. package/src/core/notebook/replica/frame.ts +8 -2
  40. package/src/core/notebook/replica/index.ts +5 -1
  41. package/src/core/notebook/replica/once-per-frame.ts +4 -3
  42. package/src/core/notebook/replica/resources/executions.ts +16 -1
  43. package/src/utils/shared-intersection-observer.ts +2 -1
package/dist/main.js CHANGED
@@ -3,20 +3,20 @@ import { _ as a, a as o, d as s, g as c, h as l, i as u, l as d, m as f, n as p,
3
3
  import { t as y } from "./react-Bgs_wQh3.js";
4
4
  import { t as b } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { i as x, n as S, r as C, t as w } from "./copy-icon-zP4__HPI.js";
6
- import { $ as T, Bt as E, E as D, Et as O, F as k, Ft as A, G as j, I as M, It as N, K as P, L as F, Lt as I, M as L, Mt as R, Nt as z, O as B, P as ee, Pt as te, Q as ne, Rt as re, Tt as ie, Vt as ae, _ as oe, _t as se, a as ce, at as le, b as ue, bt as de, c as fe, dt as pe, ft as me, ht as he, i as ge, j as _e, kt as ve, lt as ye, n as be, nt as xe, o as Se, ot as Ce, rt as we, st as Te, tt as Ee, ut as De, yt as Oe } from "./html-to-image-CsvAOgd3.js";
6
+ import { $ as T, Bt as E, E as D, Et as O, F as k, Ft as A, G as j, I as M, It as N, K as P, L as F, Lt as I, M as L, Mt as R, Nt as z, O as B, P as ee, Pt as te, Q as ne, Rt as re, Tt as ie, Vt as ae, _ as oe, _t as se, a as ce, at as le, b as ue, bt as de, c as fe, dt as pe, ft as me, ht as he, i as ge, j as _e, kt as ve, lt as ye, n as be, nt as xe, o as Se, ot as Ce, rt as we, st as Te, tt as Ee, ut as De, yt as Oe } from "./html-to-image-CIkwg7mv.js";
7
7
  import { a as ke, f as Ae, h as je, i as Me, m as Ne, n as Pe, o as Fe, r as Ie, t as Le } from "./tooltip-D-9pDheN.js";
8
8
  import { D as Re, E as ze, S as Be, T as Ve, _ as He, a as Ue, c as We, d as Ge, f as Ke, g as qe, h as Je, i as Ye, l as Xe, m as Ze, n as Qe, o as $e, p as et, r as tt, s as nt, t as rt, u as it, v as at, w as ot, x as st, y as ct } from "./spec-BEp9O9dy.js";
9
- import { $ as lt, $t as ut, A as dt, An as ft, At as pt, B as mt, Bt as ht, C as gt, D as _t, Dn as vt, Dt as yt, E as bt, En as xt, Et as St, F as Ct, Ft as wt, G as Tt, Gt as Et, H as Dt, Ht as Ot, I as kt, It as At, J as jt, Jt as Mt, K as Nt, Kt as Pt, L as Ft, Lt as It, M as Lt, Mn as Rt, Mt as zt, N as Bt, Nt as Vt, O as Ht, On as Ut, Ot as Wt, P as Gt, Pt as Kt, Q as qt, Qt as Jt, R as Yt, Rt as Xt, S as Zt, Sn as Qt, St as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jn as Un, jt as Wn, k as Gn, kn as Kn, kt as qn, ln as Jn, lt as Yn, m as Xn, mn as Zn, mt as Qn, nn as $n, on as er, ot as tr, p as nr, pn as rr, pt as ir, q as ar, qt as or, r as sr, rn as cr, rt as lr, sn as ur, st as dr, t as fr, tn as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, x as Sr, xn as Cr, xt as wr, y as Tr, yn as Er, yt as Dr, z as Or, zt as kr } from "./common-Bn3jx0X6.js";
9
+ import { $ as lt, $t as ut, A as dt, An as ft, At as pt, B as mt, Bt as ht, C as gt, D as _t, Dn as vt, Dt as yt, E as bt, En as xt, Et as St, F as Ct, Ft as wt, G as Tt, Gt as Et, H as Dt, Ht as Ot, I as kt, It as At, J as jt, Jt as Mt, K as Nt, Kt as Pt, L as Ft, Lt as It, M as Lt, Mn as Rt, Mt as zt, N as Bt, Nt as Vt, O as Ht, On as Ut, Ot as Wt, P as Gt, Pt as Kt, Q as qt, Qt as Jt, R as Yt, Rt as Xt, S as Zt, Sn as Qt, St as $t, T as en, Tn as tn, Tt as nn, U as rn, Ut as an, V as on, Vt as sn, W as cn, Wt as ln, X as un, Xt as dn, Y as fn, Yt as pn, Z as mn, Zt as hn, _ as gn, _n, _t as vn, an as yn, at as bn, b as xn, bn as Sn, bt as Cn, c as wn, cn as Tn, ct as En, d as Dn, dn as On, dt as kn, en as An, f as jn, fn as Mn, ft as Nn, g as Pn, gn as Fn, gt as In, h as Ln, hn as Rn, ht as zn, in as Bn, it as Vn, j as Hn, jn as Un, jt as Wn, k as Gn, kn as Kn, kt as qn, ln as Jn, lt as Yn, m as Xn, mn as Zn, mt as Qn, nn as $n, on as er, ot as tr, p as nr, pn as rr, pt as ir, q as ar, qt as or, r as sr, rn as cr, rt as lr, sn as ur, st as dr, t as fr, tn as pr, u as mr, un as hr, ut as gr, v as _r, vn as vr, vt as yr, w as br, wn as xr, x as Sr, xn as Cr, xt as wr, y as Tr, yn as Er, yt as Dr, z as Or, zt as kr } from "./common-CtWT0mmS.js";
10
10
  import { a as Ar, n as jr, s as Mr, t as Nr } from "./useLifecycle-yjK7JsRL.js";
11
11
  import { t as Pr } from "./check-BqF09bSG.js";
12
12
  import { A as Fr, C as Ir, D as Lr, M as Rr, O as zr, a as Br, c as Vr, d as Hr, i as Ur, k as Wr, l as Gr, n as Kr, o as qr, r as Jr, s as Yr, t as Xr, w as Zr, x as Qr } from "./select-Buk3aXi1.js";
13
13
  import { $ as $r, At as ei, Cn as ti, E as ni, H as ri, K as ii, Nt as ai, Q as oi, Sn as si, T as ci, V as li, X as ui, Y as di, Z as fi, _ as pi, a as mi, b as hi, c as gi, f as _i, g as vi, h as yi, i as bi, m as xi, mt as Si, n as Ci, r as wi, rt as Ti, s as Ei, t as Di, v as Oi, vt as ki, w as Ai, x as ji, xn as Mi, y as Ni } from "./dropdown-menu-Dge_SmqE.js";
14
14
  import { t as Pi } from "./circle-question-mark-YmLYXyvS.js";
15
- import { $t as Fi, A as Ii, At as Li, Bt as Ri, C as zi, Ct as Bi, Dt as Vi, Ft as Hi, H as Ui, I as Wi, It as Gi, J as Ki, Jt as qi, Nt as Ji, Pt as Yi, Qt as Xi, S as Zi, St as Qi, T as $i, U as ea, V as ta, W as na, X as ra, Y as ia, Zt as aa, _ as oa, bt as sa, en as ca, f as la, g as ua, h as da, ht as fa, kt as pa, l as ma, m as ha, mt as ga, nn as _a, nt as va, rn as ya, rt as ba, s as xa, tn as Sa, v as Ca, vt as wa, w as Ta, xt as Ea } from "./error-entries-1DC4BiYB.js";
16
- import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-CtfJ_Gbp.js";
15
+ import { $t as Fi, A as Ii, At as Li, Bt as Ri, C as zi, Ct as Bi, Dt as Vi, Ft as Hi, H as Ui, I as Wi, It as Gi, J as Ki, Jt as qi, Nt as Ji, Pt as Yi, Qt as Xi, S as Zi, St as Qi, T as $i, U as ea, V as ta, W as na, X as ra, Y as ia, Zt as aa, _ as oa, bt as sa, en as ca, f as la, g as ua, h as da, ht as fa, kt as pa, l as ma, m as ha, mt as ga, nn as _a, nt as va, rn as ya, rt as ba, s as xa, tn as Sa, v as Ca, vt as wa, w as Ta, xt as Ea } from "./error-entries-B4LgfizR.js";
16
+ import { a as Da, d as Oa, i as ka, n as Aa, o as ja, r as Ma, s as Na, t as Pa, u as Fa } from "./process-output-PS9YSLNu.js";
17
17
  import { t as Ia } from "./pencil-D7jyZPnP.js";
18
18
  import { a as La, c as Ra, d as za, f as Ba, i as Va, l as Ha, r as Ua } from "./glide-utils-BRcuSTCx.js";
19
- import { n as Wa, t as Ga } from "./globals-BGqfFPx8.js";
19
+ import { n as Wa, t as Ga } from "./globals-CG1ka6r5.js";
20
20
  import { a as Ka, i as qa, n as Ja, r as Ya, s as Xa, t as Za } from "./assertNever-B9_7z-dW.js";
21
21
  import { t as Qa } from "./react-dom-DdqGVp5N.js";
22
22
  import { t as $a } from "./jsx-runtime-D8btoEHk.js";
@@ -32,19 +32,19 @@ import { o as Ns, r as Ps, t as Fs } from "./arrays-DoQ-AILx.js";
32
32
  import { t as Is } from "./createReducer-CArOwUaJ.js";
33
33
  import { H as Ls, M as Rs, f as zs, t as Bs, z as q } from "./dist-BIaGGUbU.js";
34
34
  import { c as Vs, i as Hs, n as Us, o as Ws, r as Gs, t as Ks, u as qs } from "./static-state-D-aT9dOr.js";
35
- import { i as Js, n as Ys, r as Xs } from "./formats-Y52bg800.js";
36
- import { n as Zs } from "./once-NnpX_HnX.js";
37
- import { a as Qs, d as $s, l as ec, s as tc, t as nc, u as rc } from "./export-context-B1jdxzHF.js";
38
- import { n as ic, t as ac } from "./esm-Dw2ZydG_.js";
39
- import { n as oc } from "./dist-CQfpgadU.js";
40
- import { i as sc } from "./dist-BG-7Qpaj.js";
41
- import { p as cc } from "./dist-BidYR5m4.js";
42
- import { t as lc } from "./useAsyncData-P5-Oovhq.js";
43
- import { n as uc, r as dc, t as fc } from "./useDeepCompareMemoize-Dn-ZJVTd.js";
35
+ import { a as Js, i as Ys, n as Xs, r as Zs } from "./formats-CeuXJ_1f.js";
36
+ import { n as Qs } from "./once-NnpX_HnX.js";
37
+ import { a as $s, d as ec, l as tc, s as nc, t as rc, u as ic } from "./export-context-B1jdxzHF.js";
38
+ import { n as ac, t as oc } from "./esm-Dw2ZydG_.js";
39
+ import { n as sc } from "./dist-CQfpgadU.js";
40
+ import { i as cc } from "./dist-BG-7Qpaj.js";
41
+ import { p as lc } from "./dist-BidYR5m4.js";
42
+ import { t as uc } from "./useAsyncData-P5-Oovhq.js";
43
+ import { n as dc, t as fc } from "./semaphore-8KhQouXt.js";
44
44
  import { o as pc, r as mc, s as hc } from "./loader-C9-qRO3m.js";
45
- import { t as gc } from "./ErrorBoundary-pNKOBKXw.js";
45
+ import { t as gc } from "./ErrorBoundary-CkXMIvMv.js";
46
46
  import { G as _c, W as vc } from "./vega-loader.browser-Co9gYE8Z.js";
47
- import { a as yc, c as bc, i as xc, l as Sc, o as Cc, s as wc, t as Tc } from "./code-visibility-B9s3Hl8z.js";
47
+ import { a as yc, c as bc, i as xc, l as Sc, o as Cc, s as wc, t as Tc } from "./code-visibility-IpaMnOoU.js";
48
48
  import { t as Ec } from "./esm-DY8dGAjJ.js";
49
49
  //#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
50
50
  var Dc = Object.freeze({
@@ -2950,9 +2950,10 @@ function Jp(e, { signal: t }) {
2950
2950
  let n = r !== void 0;
2951
2951
  i(), n && !t.aborted && e();
2952
2952
  }
2953
- return t.aborted || (t.addEventListener("abort", i, { once: !0 }), globalThis.document?.addEventListener("visibilitychange", () => {
2953
+ t.aborted || (t.addEventListener("abort", i, { once: !0 }), globalThis.document?.addEventListener("visibilitychange", () => {
2954
2954
  globalThis.document.hidden && a();
2955
- }, { signal: t })), () => {
2955
+ }, { signal: t }));
2956
+ function o() {
2956
2957
  if (t.aborted || r) return;
2957
2958
  let e = n, i = () => {
2958
2959
  e === n && a();
@@ -2964,7 +2965,8 @@ function Jp(e, { signal: t }) {
2964
2965
  let e = requestAnimationFrame(i);
2965
2966
  r = () => cancelAnimationFrame(e);
2966
2967
  }
2967
- };
2968
+ }
2969
+ return Object.assign(o, { flush: a });
2968
2970
  }
2969
2971
  //#endregion
2970
2972
  //#region src/core/notebook/replica/frame.ts
@@ -2984,6 +2986,7 @@ function Yp(e, t, { signal: n }) {
2984
2986
  n.addEventListener("abort", t, { once: !0 });
2985
2987
  }
2986
2988
  return {
2989
+ flush: a.flush,
2987
2990
  notebookAtom: ss((e) => e(i).notebook),
2988
2991
  generationAtom: ss((e) => e(i).generation),
2989
2992
  documentAtom: ss((e) => e(i).document),
@@ -4947,7 +4950,7 @@ var V_ = /*#__PURE__*/ (0, J.createContext)({ isSelected: !1 }), H_ = /*#__PURE_
4947
4950
  "data-hovered": f || void 0,
4948
4951
  "data-focus-visible": u || void 0
4949
4952
  }, /*#__PURE__*/ J.createElement(V_.Provider, { value: { isSelected: o } }, p.children));
4950
- }), X = b(), G_ = rc(), K_ = /* @__PURE__ */ e(Te(), 1), q_ = (e) => e.type === "checkbox", J_ = (e) => e instanceof Date, Y_ = (e) => e == null, X_ = (e) => typeof e == "object", Z_ = (e) => !Y_(e) && !Array.isArray(e) && X_(e) && !J_(e), Q_ = (e) => Z_(e) && e.target ? q_(e.target) ? e.target.checked : e.target.value : e, $_ = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ev = (e, t) => e.has($_(t)), tv = (e) => {
4953
+ }), X = b(), G_ = ic(), K_ = /* @__PURE__ */ e(Te(), 1), q_ = (e) => e.type === "checkbox", J_ = (e) => e instanceof Date, Y_ = (e) => e == null, X_ = (e) => typeof e == "object", Z_ = (e) => !Y_(e) && !Array.isArray(e) && X_(e) && !J_(e), Q_ = (e) => Z_(e) && e.target ? q_(e.target) ? e.target.checked : e.target.value : e, $_ = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, ev = (e, t) => e.has($_(t)), tv = (e) => {
4951
4954
  let t = e.constructor && e.constructor.prototype;
4952
4955
  return Z_(t) && t.hasOwnProperty("isPrototypeOf");
4953
4956
  }, nv = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
@@ -7384,7 +7387,7 @@ var Qb = class {
7384
7387
  }
7385
7388
  async #t(e, t = {}) {
7386
7389
  if (!(hc(e) || t.kernelAuthored === !0 && /^(https?:|data:)/.test(e))) throw Error(`Refusing to load anywidget module from untrusted URL: ${String(e)}`);
7387
- let n = Qs(e).toString(), r = Us() ? qb(n) : n, i = () => {
7390
+ let n = $s(e).toString(), r = Us() ? qb(n) : n, i = () => {
7388
7391
  r !== n && URL.revokeObjectURL(r);
7389
7392
  };
7390
7393
  try {
@@ -7507,7 +7510,7 @@ var tx = class e {
7507
7510
  #r;
7508
7511
  #i;
7509
7512
  #a = new AbortController();
7510
- #o = new $s();
7513
+ #o = new ec();
7511
7514
  #s = /* @__PURE__ */ new Set();
7512
7515
  #c = /* @__PURE__ */ new Map();
7513
7516
  #l;
@@ -7817,7 +7820,7 @@ async function fx(e, t) {
7817
7820
  return;
7818
7821
  }
7819
7822
  e.createModel(n, (e) => {
7820
- let t = new uc(1), r = (r) => t.run(async () => {
7823
+ let t = new fc(1), r = (r) => t.run(async () => {
7821
7824
  e.aborted ? c.debug(`[Model] ${r.message.method} suppressed for model=${n} (signal aborted)`) : await Ki().sendModelValue(r);
7822
7825
  }), i = Us() ? {
7823
7826
  sendUpdate: async () => void 0,
@@ -8211,7 +8214,7 @@ function Px(e) {
8211
8214
  }
8212
8215
  function Fx(e) {
8213
8216
  let t = new URL(globalThis.location.href);
8214
- return tc({
8217
+ return nc({
8215
8218
  href: e,
8216
8219
  queryParams: t.search,
8217
8220
  keys: [Wo.filePath]
@@ -11845,7 +11848,7 @@ var cD = Rn, lD = Fn, uD = _n, dD = vr, fD = (e) => {
11845
11848
  })
11846
11849
  }), t[6] = r, t[7] = s);
11847
11850
  let c;
11848
- return t[8] !== a || t[9] !== s ? (c = /* @__PURE__ */ (0, Y.jsxs)(Ys, {
11851
+ return t[8] !== a || t[9] !== s ? (c = /* @__PURE__ */ (0, Y.jsxs)(Zs, {
11849
11852
  variant: "destructive",
11850
11853
  children: [
11851
11854
  e,
@@ -12629,7 +12632,7 @@ var GD = (e) => {
12629
12632
  output: t
12630
12633
  };
12631
12634
  } };
12632
- } }, ZD = J.lazy(() => import("./chat-ui-C9NZA-bk.js").then((e) => ({ default: e.Chatbot }))), QD = U(K({
12635
+ } }, ZD = J.lazy(() => import("./chat-ui-CMKYvKUz.js").then((e) => ({ default: e.Chatbot }))), QD = U(K({
12633
12636
  id: W(),
12634
12637
  role: V([
12635
12638
  "system",
@@ -13098,7 +13101,7 @@ function XO(e, t) {
13098
13101
  }
13099
13102
  //#endregion
13100
13103
  //#region src/plugins/impl/DataEditorPlugin.tsx
13101
- var ZO = J.lazy(() => import("./glide-data-editor-Cnsv3NcI.js").then((e) => e.t)), QO = MD("marimo-data-editor", { cssStyles: [tO, nO] }).withData(K({
13104
+ var ZO = J.lazy(() => import("./glide-data-editor-DCcfshI9.js").then((e) => e.t)), QO = MD("marimo-data-editor", { cssStyles: [tO, nO] }).withData(K({
13102
13105
  initialValue: K({ edits: U(K({
13103
13106
  rowIdx: G(),
13104
13107
  columnId: W(),
@@ -13143,14 +13146,14 @@ var ZO = J.lazy(() => import("./glide-data-editor-Cnsv3NcI.js").then((e) => e.t)
13143
13146
  }
13144
13147
  };
13145
13148
  }, a = [r], t[5] = r, t[6] = i, t[7] = a);
13146
- let { data: o, error: s } = lc(i, a), c;
13149
+ let { data: o, error: s } = uc(i, a), c;
13147
13150
  t[8] !== o || t[9] !== e.edits.edits || t[10] !== r ? (c = o?.source === r ? XO(o.state, e.edits.edits) : null, t[8] = o, t[9] = e.edits.edits, t[10] = r, t[11] = c) : c = t[11];
13148
13151
  let l = c;
13149
13152
  if (s) {
13150
13153
  let e;
13151
13154
  t[12] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Js, { children: "Error" }), t[12] = e) : e = t[12];
13152
13155
  let n = s.message || "An unknown error occurred", r;
13153
- return t[13] === n ? r = t[14] : (r = /* @__PURE__ */ (0, Y.jsxs)(Ys, {
13156
+ return t[13] === n ? r = t[14] : (r = /* @__PURE__ */ (0, Y.jsxs)(Zs, {
13154
13157
  variant: "destructive",
13155
13158
  className: "mb-2",
13156
13159
  children: [e, /* @__PURE__ */ (0, Y.jsx)("div", {
@@ -14809,7 +14812,7 @@ var Dk = [Ek({
14809
14812
  borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
14810
14813
  },
14811
14814
  ".mo-cm-reactive-reference-hover": { cursor: "pointer" }
14812
- })], kk = [T(), Ls.lineWrapping], Ak = [cc(), Ls.lineWrapping], jk = [oc(), Ls.lineWrapping];
14815
+ })], kk = [T(), Ls.lineWrapping], Ak = [lc(), Ls.lineWrapping], jk = [sc(), Ls.lineWrapping];
14813
14816
  function Mk(e) {
14814
14817
  switch (e) {
14815
14818
  case "sql": return Ak;
@@ -14851,7 +14854,7 @@ var Nk = (0, J.memo)((e) => {
14851
14854
  let E = h && "opacity-20 h-8 overflow-hidden", D;
14852
14855
  t[28] === E ? D = t[29] : (D = l("cm", E), t[28] = E, t[29] = D);
14853
14856
  let O;
14854
- t[30] !== i || t[31] !== b || t[32] !== s || t[33] !== D ? (O = /* @__PURE__ */ (0, Y.jsx)(ac, {
14857
+ t[30] !== i || t[31] !== b || t[32] !== s || t[33] !== D ? (O = /* @__PURE__ */ (0, Y.jsx)(oc, {
14855
14858
  ...s,
14856
14859
  className: D,
14857
14860
  theme: "none",
@@ -16347,7 +16350,7 @@ var uj = (e) => {
16347
16350
  defaultValues: p,
16348
16351
  resolver: m
16349
16352
  }, t[3] = p, t[4] = h);
16350
- let g = Ay(h), [v, y] = (0, J.useState)(i), [b, x] = (0, J.useState)(!1), [S, C] = (0, J.useState)(!u), { ref: w } = nk(), T = fc(d ? c : null), E;
16353
+ let g = Ay(h), [v, y] = (0, J.useState)(i), [b, x] = (0, J.useState)(!1), [S, C] = (0, J.useState)(!u), { ref: w } = nk(), T = Xs(d ? c : null), E;
16351
16354
  t[5] !== T || t[6] !== s || t[7] !== S || t[8] !== n ? (E = async () => {
16352
16355
  if (!s || n.length === 0 || !S) return [];
16353
16356
  let e = await s({});
@@ -16364,7 +16367,7 @@ var uj = (e) => {
16364
16367
  S,
16365
16368
  T
16366
16369
  ], t[10] = T, t[11] = S, t[12] = n, t[13] = D) : D = t[13];
16367
- let { data: O, isPending: k, error: A } = lc(E, D), j;
16370
+ let { data: O, isPending: k, error: A } = uc(E, D), j;
16368
16371
  t[14] === g.control ? j = t[15] : (j = { control: g.control }, t[14] = g.control, t[15] = j);
16369
16372
  let M = Tv(j), N;
16370
16373
  t[16] !== M || t[17] !== v || t[18] !== f ? (N = Qe({
@@ -16392,10 +16395,10 @@ var uj = (e) => {
16392
16395
  let n;
16393
16396
  t[24] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, Y.jsx)("span", { children: "Rendering large datasets is not well supported and may crash the browser" }), t[24] = n) : n = t[24];
16394
16397
  let r;
16395
- t[25] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, Y.jsxs)(Ys, {
16398
+ t[25] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, Y.jsxs)(Zs, {
16396
16399
  variant: "warning",
16397
16400
  className: "flex flex-row gap-2 items-center w-2/3 mx-auto",
16398
- children: [e, /* @__PURE__ */ (0, Y.jsxs)(Xs, {
16401
+ children: [e, /* @__PURE__ */ (0, Y.jsxs)(Ys, {
16399
16402
  className: "flex flex-row justify-between items-center w-full",
16400
16403
  children: [n, /* @__PURE__ */ (0, Y.jsx)(_, {
16401
16404
  variant: "warn",
@@ -16898,7 +16901,7 @@ function Nj({ columnName: e, column: t, dataType: n, externalType: r, previewCol
16898
16901
  }) })] });
16899
16902
  }
16900
16903
  var Pj = ({ previewColumn: e, columnName: t, dataType: n }) => {
16901
- let { theme: r } = Ho(), { locale: i } = Ir(), { data: a, error: o, isPending: s, refetch: c } = lc(async () => await e({ column: t }), []);
16904
+ let { theme: r } = Ho(), { locale: i } = Ir(), { data: a, error: o, isPending: s, refetch: c } = uc(async () => await e({ column: t }), []);
16902
16905
  if (o) return /* @__PURE__ */ (0, Y.jsx)(Lt, { error: o });
16903
16906
  if (s) return /* @__PURE__ */ (0, Y.jsx)(Bt, { message: "Loading..." });
16904
16907
  if (!a) return /* @__PURE__ */ (0, Y.jsx)(Hn, {
@@ -16935,7 +16938,7 @@ var Pj = ({ previewColumn: e, columnName: t, dataType: n }) => {
16935
16938
  n,
16936
16939
  i
16937
16940
  ], t[3] = o, t[4] = n, t[5] = i, t[6] = v) : v = t[6];
16938
- let { data: y, error: b } = lc(g, v), x;
16941
+ let { data: y, error: b } = uc(g, v), x;
16939
16942
  t[7] !== r || t[8] !== i ? (x = (e) => {
16940
16943
  e < 0 || typeof i == "number" && e >= i || r(e);
16941
16944
  }, t[7] = r, t[8] = i, t[9] = x) : x = t[9];
@@ -17520,7 +17523,7 @@ var eM = (e) => {
17520
17523
  cellHoverTexts: c
17521
17524
  };
17522
17525
  }, t[26] = g, t[27] = d.pageIndex, t[28] = d.pageSize, t[29] = e.cellHoverTexts, t[30] = e.cellStyles, t[31] = e.data, t[32] = e.lazy, t[33] = e.pageSize, t[34] = e.rawData, t[35] = e.totalRows, t[36] = i, t[37] = p, t[38] = s, t[39] = N) : N = t[39];
17523
- let P = fc(e.fieldTypes), F;
17526
+ let P = Xs(e.fieldTypes), F;
17524
17527
  t[40] !== g || t[41] !== d.pageIndex || t[42] !== d.pageSize || t[43] !== e.cellHoverTexts || t[44] !== e.cellStyles || t[45] !== e.data || t[46] !== e.lazy || t[47] !== e.totalRows || t[48] !== i || t[49] !== p || t[50] !== s || t[51] !== P ? (F = [
17525
17528
  s,
17526
17529
  i,
@@ -17535,9 +17538,9 @@ var eM = (e) => {
17535
17538
  d.pageSize,
17536
17539
  d.pageIndex
17537
17540
  ], t[40] = g, t[41] = d.pageIndex, t[42] = d.pageSize, t[43] = e.cellHoverTexts, t[44] = e.cellStyles, t[45] = e.data, t[46] = e.lazy, t[47] = e.totalRows, t[48] = i, t[49] = p, t[50] = s, t[51] = P, t[52] = F) : F = t[52];
17538
- let { data: I, error: L, isPending: R, isFetching: z } = lc(N, F), B = Mo(_t), ee;
17541
+ let { data: I, error: L, isPending: R, isFetching: z } = uc(N, F), B = Mo(_t), ee;
17539
17542
  t[53] !== B || t[54] !== e ? (ee = async () => !B || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[53] = B, t[54] = e, t[55] = ee) : ee = t[55];
17540
- let te = e.showDownload, ne = e.get_size_bytes, re = e.lazy, ie = e.totalRows, ae = fc(g), oe = fc(s), se;
17543
+ let te = e.showDownload, ne = e.get_size_bytes, re = e.lazy, ie = e.totalRows, ae = Xs(g), oe = Xs(s), se;
17541
17544
  t[56] !== B || t[57] !== e.get_size_bytes || t[58] !== e.lazy || t[59] !== e.showDownload || t[60] !== e.totalRows || t[61] !== p || t[62] !== ae || t[63] !== oe ? (se = [
17542
17545
  B,
17543
17546
  te,
@@ -17548,7 +17551,7 @@ var eM = (e) => {
17548
17551
  ae,
17549
17552
  oe
17550
17553
  ], t[56] = B, t[57] = e.get_size_bytes, t[58] = e.lazy, t[59] = e.showDownload, t[60] = e.totalRows, t[61] = p, t[62] = ae, t[63] = oe, t[64] = se) : se = t[64];
17551
- let { data: ce, isPending: le } = lc(ee, se), ue = ce ?? null, de = !!B && e.showDownload && le, fe;
17554
+ let { data: ce, isPending: le } = uc(ee, se), ue = ce ?? null, de = !!B && e.showDownload && le, fe;
17552
17555
  t[65] !== g || t[66] !== i || t[67] !== p || t[68] !== s ? (fe = async (e) => {
17553
17556
  let t = s.length > 0 ? s.map(sM) : void 0, n = await i({
17554
17557
  page_number: e,
@@ -17582,7 +17585,7 @@ var eM = (e) => {
17582
17585
  e.totalRows,
17583
17586
  e.data
17584
17587
  ], t[72] = g, t[73] = e.data, t[74] = e.get_column_summaries, t[75] = e.showColumnSummaries, t[76] = e.totalRows, t[77] = p, t[78] = _e) : _e = t[78];
17585
- let { data: ve, error: ye } = lc(ge, _e), be, xe;
17588
+ let { data: ve, error: ye } = uc(ge, _e), be, xe;
17586
17589
  if (t[79] === ye ? (be = t[80], xe = t[81]) : (be = () => {
17587
17590
  ye && c.error(ye);
17588
17591
  }, xe = [ye], t[79] = ye, t[80] = be, t[81] = xe), (0, J.useEffect)(be, xe), R) {
@@ -17596,7 +17599,7 @@ var eM = (e) => {
17596
17599
  if (L) {
17597
17600
  c.error(L);
17598
17601
  let e;
17599
- t[84] === L ? e = t[85] : (e = !Us() && /* @__PURE__ */ (0, Y.jsxs)(Ys, {
17602
+ t[84] === L ? e = t[85] : (e = !Us() && /* @__PURE__ */ (0, Y.jsxs)(Zs, {
17600
17603
  variant: "destructive",
17601
17604
  className: "mb-2",
17602
17605
  children: [/* @__PURE__ */ (0, Y.jsx)(Js, { children: "Error" }), /* @__PURE__ */ (0, Y.jsx)("div", {
@@ -17694,7 +17697,7 @@ var nM = (e) => {
17694
17697
  let [t] = e;
17695
17698
  return !Ne.has(t);
17696
17699
  }), t[15] = r, t[16] = S, t[17] = Ne, t[18] = Pe) : Pe = t[18];
17697
- let Fe = fc(Pe), Ie;
17700
+ let Fe = Xs(Pe), Ie;
17698
17701
  bb1: {
17699
17702
  if (u === "all") {
17700
17703
  Ie = Fe;
@@ -17720,7 +17723,7 @@ var nM = (e) => {
17720
17723
  }
17721
17724
  t[22] = r, t[23] = Le, t[24] = Re;
17722
17725
  } else Re = t[24];
17723
- let ze = Re, Be = fc(x), Ve = fc(te), He = fc(ne), Ue = fc(re), We = fc(je), Ge = fc(ze), Ke = Le.length, qe = !!(S && b), Je = ke ? null : f, Ye;
17726
+ let ze = Re, Be = Xs(x), Ve = Xs(te), He = Xs(ne), Ue = Xs(re), We = Xs(je), Ge = Xs(ze), Ke = Le.length, qe = !!(S && b), Je = ke ? null : f, Ye;
17724
17727
  t[25] !== fe || t[26] !== Ge || t[27] !== ie || t[28] !== We || t[29] !== Le || t[30] !== Ue || t[31] !== Be || t[32] !== Ve || t[33] !== He || t[34] !== Je || t[35] !== qe ? (Ye = Nn({
17725
17728
  rowHeaders: Be,
17726
17729
  selection: Je,
@@ -18389,7 +18392,7 @@ var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-DQaiOY7w.js")), D
18389
18392
  return !1;
18390
18393
  },
18391
18394
  Component: ({ schema: e, form: t, path: n }) => {
18392
- let { label: r, description: i, placeholder: a } = Vy.parse(e.description), o = J.use(kM), s = J.use(AM), { data: c, isPending: l } = lc(() => s({ column: o }), [o]), u = c?.values || [];
18395
+ let { label: r, description: i, placeholder: a } = Vy.parse(e.description), o = J.use(kM), s = J.use(AM), { data: c, isPending: l } = uc(() => s({ column: o }), [o]), u = c?.values || [];
18393
18396
  if (u.length === 0 && !l) return /* @__PURE__ */ (0, Y.jsx)(Jy, {
18394
18397
  control: t.control,
18395
18398
  name: n,
@@ -18438,7 +18441,7 @@ var EM = J.lazy(() => import("./ConnectedDataExplorerComponent-DQaiOY7w.js")), D
18438
18441
  return t === "column_values" && e instanceof Xo;
18439
18442
  },
18440
18443
  Component: ({ schema: e, form: t, path: n }) => {
18441
- let r = J.use(kM), i = J.use(AM), { data: a, isPending: o } = lc(() => i({ column: r }), [r]), s = a?.values || [];
18444
+ let r = J.use(kM), i = J.use(AM), { data: a, isPending: o } = uc(() => i({ column: r }), [r]), s = a?.values || [];
18442
18445
  if (s.length === 0 && !o) return /* @__PURE__ */ (0, Y.jsx)(Jy, {
18443
18446
  control: t.control,
18444
18447
  name: n,
@@ -18932,7 +18935,7 @@ var XM = MD("marimo-dataframe").withData(K({
18932
18935
  t[0] === l ? _ = t[1] : (_ = () => l({}), t[0] = l, t[1] = _);
18933
18936
  let v = s?.transforms, y;
18934
18937
  t[2] === v ? y = t[3] : (y = [v], t[2] = v, t[3] = y);
18935
- let { data: b, error: x, isPending: S } = lc(_, y), C;
18938
+ let { data: b, error: x, isPending: S } = uc(_, y), C;
18936
18939
  t[4] === b ? C = t[5] : (C = b || {}, t[4] = b, t[5] = C);
18937
18940
  let { url: w, total_rows: T, row_headers: E, field_types: D, column_types_per_step: O, python_code: k, sql_code: A } = C, j = D?.length, [M, N] = (0, J.useState)(s || ZM), P = (0, J.useRef)(null), F;
18938
18941
  t[6] === o ? F = t[7] : (F = (e) => {
@@ -19239,7 +19242,7 @@ function oN(e) {
19239
19242
  }), t[18] = a, t[19] = s), s;
19240
19243
  }
19241
19244
  var sN = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: c }) => {
19242
- let [u, d] = fi(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(0), g = (0, J.useRef)([]), v = (0, J.useRef)(null), y = (0, J.useRef)(!1), b = c.closest(`[${Gi}]`)?.getAttribute(Gi), { data: S, error: C, isPending: w } = lc(() => s({ path: u }), [
19245
+ let [u, d] = fi(n), [f, p] = (0, J.useState)(!1), [m, h] = (0, J.useState)(0), g = (0, J.useRef)([]), v = (0, J.useRef)(null), y = (0, J.useRef)(!1), b = c.closest(`[${Gi}]`)?.getAttribute(Gi), { data: S, error: C, isPending: w } = uc(() => s({ path: u }), [
19243
19246
  u,
19244
19247
  b,
19245
19248
  s
@@ -23624,7 +23627,7 @@ var sL = class {
23624
23627
  dragmode: e
23625
23628
  }));
23626
23629
  }, t[7] = u, t[8] = i, t[9] = m) : m = t[9];
23627
- let h = Ms(m), g = fc(a), _;
23630
+ let h = Ms(m), g = Xs(a), _;
23628
23631
  t[10] === c.data ? _ = t[11] : (_ = VI(c.data) || HI(c.data), t[10] = c.data, t[11] = _);
23629
23632
  let v = _, y, b, x, S;
23630
23633
  if (t[12] !== g || t[13] !== p || t[14] !== h || t[15] !== v) {
@@ -24657,7 +24660,7 @@ function zL(e, t) {
24657
24660
  }
24658
24661
  //#endregion
24659
24662
  //#region src/plugins/impl/vega/VegaPlugin.tsx
24660
- var BL = J.lazy(() => import("./vega-component-BIq0qzhQ.js")), VL = class {
24663
+ var BL = J.lazy(() => import("./vega-component-CoJiBCaS.js")), VL = class {
24661
24664
  tagName = "marimo-vega";
24662
24665
  validator = K({
24663
24666
  spec: cs({}).transform((e) => e),
@@ -24881,7 +24884,7 @@ var KL = class {
24881
24884
  t[6] !== n || t[7] !== i ? (f = (e) => i ? n({}) : (e.previous(), Promise.resolve(void 0)), t[6] = n, t[7] = i, t[8] = f) : f = t[8];
24882
24885
  let p;
24883
24886
  t[9] === i ? p = t[10] : (p = [i], t[9] = i, t[10] = p);
24884
- let { data: m, error: h, isPending: g } = lc(f, p);
24887
+ let { data: m, error: h, isPending: g } = uc(f, p);
24885
24888
  if (h) {
24886
24889
  let e;
24887
24890
  return t[11] === h ? e = t[12] : (e = /* @__PURE__ */ (0, Y.jsx)(ws, { error: h }), t[11] = h, t[12] = e), e;
@@ -26344,7 +26347,7 @@ var BR = (/* @__PURE__ */ i(((e) => {
26344
26347
  tex: e.host.textContent || e.host.innerHTML
26345
26348
  });
26346
26349
  }
26347
- }, qR = Zs(async () => (await import("./katex-wAapZGrX.js").then((e) => e.n)).default), JR = Zs(async () => {
26350
+ }, qR = Qs(async () => (await import("./katex-wAapZGrX.js").then((e) => e.n)).default), JR = Qs(async () => {
26348
26351
  await import("./mhchem-CX8M7Ktl.js");
26349
26352
  }), YR = { "\\mbox": "\\text{#1}" };
26350
26353
  async function XR(e, t) {
@@ -29429,7 +29432,7 @@ var Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz, Zz, Qz, $z,
29429
29432
  }
29430
29433
  })), nB = (/* @__PURE__ */ i(((e, t) => {
29431
29434
  t.exports = xz().default, t.exports.utils = iz(), t.exports.calculateUtils = az(), t.exports.Responsive = Cz().default, t.exports.Responsive.utils = Sz(), t.exports.WidthProvider = tB().default;
29432
- })))(), rB = [sc(), ic({
29435
+ })))(), rB = [cc(), ac({
29433
29436
  syntaxHighlighting: !0,
29434
29437
  highlightSpecialChars: !1,
29435
29438
  history: !1,
@@ -29440,7 +29443,7 @@ var Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz, Zz, Qz, $z,
29440
29443
  let t = (0, X.c)(8), { code: n, className: r } = e, { theme: i } = Ho(), a;
29441
29444
  t[0] === r ? a = t[1] : (a = l(r, "text-muted-foreground flex flex-col overflow-hidden"), t[0] = r, t[1] = a);
29442
29445
  let o = i === "dark" ? "dark" : "light", s;
29443
- t[2] !== n || t[3] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(ac, {
29446
+ t[2] !== n || t[3] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(oc, {
29444
29447
  minHeight: "10px",
29445
29448
  theme: o,
29446
29449
  height: "100%",
@@ -32993,7 +32996,7 @@ function TW(e) {
32993
32996
  }
32994
32997
  //#endregion
32995
32998
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
32996
- var EW = J.lazy(() => import("./reveal-component-DzmiQyN9.js")), DW = (e) => {
32999
+ var EW = J.lazy(() => import("./reveal-component-50jFQHXp.js")), DW = (e) => {
32997
33000
  let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Mo(Ws), s = a === "read" || o, c = Mo(ga) > 1, [l, u] = (0, J.useState)(null), d;
32998
33001
  t[0] !== i || t[1] !== n ? (d = CB(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
32999
33002
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
@@ -33142,7 +33145,7 @@ function PW(e) {
33142
33145
  //#region src/components/debugger/debugger-code.tsx
33143
33146
  var FW = (0, J.memo)((e) => {
33144
33147
  let t = J.useRef({});
33145
- return /* @__PURE__ */ (0, Y.jsx)(ac, {
33148
+ return /* @__PURE__ */ (0, Y.jsx)(oc, {
33146
33149
  minHeight: "200px",
33147
33150
  maxHeight: "200px",
33148
33151
  ref: t,
@@ -33669,7 +33672,7 @@ function cG({ showCodeInRunModePreference: e, kioskMode: t }) {
33669
33672
  return n === null ? Us() || qs() || t : n === "true";
33670
33673
  }
33671
33674
  function lG(e) {
33672
- Us() && ec((t) => {
33675
+ Us() && tc((t) => {
33673
33676
  t.set(Wo.showCode, String(e));
33674
33677
  });
33675
33678
  }
@@ -33744,9 +33747,9 @@ var fG = (e) => {
33744
33747
  children: /* @__PURE__ */ (0, Y.jsx)(R, { className: "w-8 h-8 animate-spin text-muted-foreground" })
33745
33748
  }) : /* @__PURE__ */ (0, Y.jsx)("div", {
33746
33749
  className: "flex-1 flex flex-col items-center justify-center py-8",
33747
- children: /* @__PURE__ */ (0, Y.jsxs)(Ys, {
33750
+ children: /* @__PURE__ */ (0, Y.jsxs)(Zs, {
33748
33751
  variant: "info",
33749
- children: [/* @__PURE__ */ (0, Y.jsx)(Js, { children: "Empty Notebook" }), /* @__PURE__ */ (0, Y.jsx)(Xs, { children: "This notebook has no code or outputs." })]
33752
+ children: [/* @__PURE__ */ (0, Y.jsx)(Js, { children: "Empty Notebook" }), /* @__PURE__ */ (0, Y.jsx)(Ys, { children: "This notebook has no code or outputs." })]
33750
33753
  })
33751
33754
  }) : /* @__PURE__ */ (0, Y.jsx)(Y.Fragment, { children: n.map(v) });
33752
33755
  }, t[10] = r.width, t[11] = n, t[12] = a, t[13] = v, t[14] = s, t[15] = y) : y = t[15];
@@ -34980,13 +34983,13 @@ var NK = class {
34980
34983
  store;
34981
34984
  root;
34982
34985
  session;
34983
- sessionReady = new $s();
34986
+ sessionReady = new ec();
34984
34987
  nextSessionGeneration = 0;
34985
34988
  activeSessions = /* @__PURE__ */ new Map();
34986
34989
  appTransition = Promise.resolve();
34987
- workerReady = new $s();
34990
+ workerReady = new ec();
34988
34991
  stream;
34989
- initialized = new $s();
34992
+ initialized = new ec();
34990
34993
  notebookBackend = {
34991
34994
  transport: ({ signal: e }, t) => new Promise((n) => {
34992
34995
  this.stream = t, t.open(), e.addEventListener("abort", () => {
@@ -35075,7 +35078,7 @@ var NK = class {
35075
35078
  async startApps() {
35076
35079
  let e = RG(this.root, { materialize: !1 }), t = e.length === 1;
35077
35080
  c.debug(`Starting sessions for ${e.length} app(s):`, e.map((e) => `${e.id} (${e.cells.length} cells)`));
35078
- let n = (e.length === 1 && !e[0]?.payloadBacked ? nc() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || qG(r) : void 0;
35081
+ let n = (e.length === 1 && !e[0]?.payloadBacked ? rc() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || qG(r) : void 0;
35079
35082
  if (r && this.session?.appId === r.id && this.session.code === i) RG(this.root);
35080
35083
  else {
35081
35084
  e.length > 0 && (this.activeSessions.clear(), this.store.set(wc, new Set(e.map((e, t) => this.nextSessionGeneration + t + 1)))), RG(this.root);
@@ -35087,7 +35090,7 @@ var NK = class {
35087
35090
  appId: n.id,
35088
35091
  sessionGeneration: ++this.nextSessionGeneration
35089
35092
  }, a = this.session, o = t && a !== void 0;
35090
- this.activeSessions.set(r.sessionGeneration, /* @__PURE__ */ new Map()), o && (this.resetNotebookStream(), this.store.set(ua, da())), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new $s()), this.session = {
35093
+ this.activeSessions.set(r.sessionGeneration, /* @__PURE__ */ new Map()), o && (this.resetNotebookStream(), this.store.set(ua, da())), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new ec()), this.session = {
35091
35094
  ...r,
35092
35095
  code: t ? e : void 0
35093
35096
  });
@@ -35106,7 +35109,7 @@ var NK = class {
35106
35109
  t?.code === void 0 || e && t.appId !== e || (this.activeSessions.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
35107
35110
  appId: t.appId,
35108
35111
  sessionGeneration: t.sessionGeneration
35109
- }), this.store.set(wc, null), this.session = void 0, this.sessionReady = new $s(), this.resetNotebookStream(), this.store.set(ua, da()));
35112
+ }), this.store.set(wc, null), this.session = void 0, this.sessionReady = new ec(), this.resetNotebookStream(), this.store.set(ua, da()));
35110
35113
  });
35111
35114
  }
35112
35115
  enqueueAppTransition(e) {
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
2
  import { t } from "./react-Bgs_wQh3.js";
3
- import { a as n } from "./glide-data-editor-Cnsv3NcI.js";
3
+ import { a as n } from "./glide-data-editor-DCcfshI9.js";
4
4
  //#region ../node_modules/.pnpm/@glideapps+glide-data-grid@6.0.4-alpha24_lodash@4.18.1_marked@15.0.12_react-dom@19.3.1__a94b4518d090e84da26f3a68e82f2953/node_modules/@glideapps/glide-data-grid/dist/esm/internal/data-grid-overlay-editor/private/number-overlay-editor-style.js
5
5
  var r = /* @__PURE__ */ e(t()), i = /*#__PURE__*/ n("div")({
6
6
  name: "NumberOverlayEditorStyle",
@@ -1,6 +1,6 @@
1
- import { T as e } from "./html-to-image-CsvAOgd3.js";
1
+ import { T as e } from "./html-to-image-CIkwg7mv.js";
2
2
  import { h as t } from "./tooltip-D-9pDheN.js";
3
- import { Tt as n, wt as r } from "./error-entries-1DC4BiYB.js";
3
+ import { Tt as n, wt as r } from "./error-entries-B4LgfizR.js";
4
4
  import { r as i } from "./assertNever-B9_7z-dW.js";
5
5
  var a = t("file", [["path", {
6
6
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
@@ -3,14 +3,14 @@ import { g as t, h as n, m as r, r as i, t as a } from "./button-Z2R2272J.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
5
  import { h as c, t as l } from "./tooltip-D-9pDheN.js";
6
- import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-Bn3jx0X6.js";
6
+ import { Cn as u, En as d, Sn as f, dn as p, et as m, f as h, i as g, l as _, n as v, nt as y, r as b, t as x, tt as S, u as C } from "./common-CtWT0mmS.js";
7
7
  import { M as w } from "./select-Buk3aXi1.js";
8
8
  import { X as T } from "./dropdown-menu-Dge_SmqE.js";
9
9
  import { t as E } from "./jsx-runtime-D8btoEHk.js";
10
10
  import { Wt as D, i as O, p as k, qt as A } from "./use-restore-focus-CCfk-ey2.js";
11
11
  import { t as j } from "./useEvent-BoN7U38T.js";
12
12
  import { o as ee } from "./static-state-D-aT9dOr.js";
13
- import { n as te, t as ne } from "./code-visibility-B9s3Hl8z.js";
13
+ import { n as te, t as ne } from "./code-visibility-IpaMnOoU.js";
14
14
  /* empty css */
15
15
  var M = c("sticky-note", [["path", {
16
16
  d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
@@ -1,8 +1,5 @@
1
- import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
- import { t } from "./react-Bgs_wQh3.js";
3
- import { Vt as n } from "./use-restore-focus-CCfk-ey2.js";
4
1
  //#region src/utils/semaphore.ts
5
- var r = class {
2
+ var e = class {
6
3
  maxPermits;
7
4
  permits;
8
5
  waiters = [];
@@ -38,16 +35,9 @@ var r = class {
38
35
  }
39
36
  }
40
37
  };
41
- function i(e, t, n) {
42
- let i = new r(t);
43
- return e.length === 0 ? Promise.resolve([]) : Promise.all(e.map((e, t) => i.run(() => n(e, t))));
38
+ function t(t, n, r) {
39
+ let i = new e(n);
40
+ return t.length === 0 ? Promise.resolve([]) : Promise.all(t.map((e, t) => i.run(() => r(e, t))));
44
41
  }
45
42
  //#endregion
46
- //#region src/hooks/useDeepCompareMemoize.ts
47
- var a = /* @__PURE__ */ e(t(), 1);
48
- function o(e) {
49
- let t = a.useRef(e);
50
- return n(e, t.current) || (t.current = e), t.current;
51
- }
52
- //#endregion
53
- export { r as n, i as r, o as t };
43
+ export { t as n, e as t };
@@ -11,10 +11,10 @@ import { t as f } from "./debounce-DrhhziJv.js";
11
11
  import { t as p } from "./objects-DCmMvZtn.js";
12
12
  import { t as ee } from "./useEvent-BoN7U38T.js";
13
13
  import { a as m, t as te } from "./arrays-DoQ-AILx.js";
14
- import { a as h, i as ne, n as re, t as ie } from "./formats-Y52bg800.js";
14
+ import { a as ne, n as re, o as h, r as ie, t as ae } from "./formats-CeuXJ_1f.js";
15
15
  import { a as g } from "./export-context-B1jdxzHF.js";
16
- import { t as ae } from "./useAsyncData-P5-Oovhq.js";
17
- import { n as _, t as oe } from "./useDeepCompareMemoize-Dn-ZJVTd.js";
16
+ import { t as oe } from "./useAsyncData-P5-Oovhq.js";
17
+ import { t as _ } from "./semaphore-8KhQouXt.js";
18
18
  import { o as se, r as ce, t as le } from "./loader-C9-qRO3m.js";
19
19
  import { W as ue, n as v } from "./vega-loader.browser-Co9gYE8Z.js";
20
20
  import { t as de } from "./react-vega-CGgQEf0O.js";
@@ -505,11 +505,11 @@ async function W(e) {
505
505
  //#endregion
506
506
  //#region src/plugins/impl/vega/vega-component.tsx
507
507
  var G = l();
508
- v("arrow", ie);
508
+ v("arrow", ae);
509
509
  var K = (e) => {
510
510
  let t = (0, pe.c)(12), { value: n, setValue: r, chartSelection: i, fieldSelection: a, spec: o, embedOptions: s } = e, c, l;
511
511
  t[0] === o ? (c = t[1], l = t[2]) : (c = async () => W(o), l = [o], t[0] = o, t[1] = c, t[2] = l);
512
- let { data: u, error: f } = ae(c, l);
512
+ let { data: u, error: f } = oe(c, l);
513
513
  if (f) {
514
514
  let e;
515
515
  return t[3] === f ? e = t[4] : (e = /* @__PURE__ */ (0, G.jsx)(d, { error: f }), t[3] = f, t[4] = e), e;
@@ -525,7 +525,7 @@ var K = (e) => {
525
525
  embedOptions: s
526
526
  }), t[5] = i, t[6] = s, t[7] = a, t[8] = u, t[9] = r, t[10] = n, t[11] = p) : p = t[11], p;
527
527
  }, q = (e) => {
528
- let a = (0, pe.c)(53), { value: o, setValue: l, chartSelection: d, fieldSelection: m, spec: te, embedOptions: h } = e, { theme: ie } = u(), g = (0, y.useRef)(null), ae = (0, y.useRef)(void 0), [_, ce] = (0, y.useState)(), v;
528
+ let a = (0, pe.c)(53), { value: o, setValue: l, chartSelection: d, fieldSelection: m, spec: te, embedOptions: h } = e, { theme: ae } = u(), g = (0, y.useRef)(null), oe = (0, y.useRef)(void 0), [_, ce] = (0, y.useState)(), v;
529
529
  bb0: {
530
530
  if (h && "actions" in h) {
531
531
  v = h.actions;
@@ -537,7 +537,7 @@ var K = (e) => {
537
537
  compiled: !1
538
538
  }, a[0] = e) : e = a[0], v = e;
539
539
  }
540
- let b = v, x = oe(te), S;
540
+ let b = v, x = re(te), S;
541
541
  a[1] !== d || a[2] !== m || a[3] !== x ? (S = ge(me(x), {
542
542
  chartSelection: d,
543
543
  fieldSelection: m
@@ -559,7 +559,7 @@ var K = (e) => {
559
559
  let r = p.mapValues(n, ve);
560
560
  r = p.mapValues(r, _e), he({ [e]: r });
561
561
  }, 100), a[12] = he, a[13] = j);
562
- let M = j, N = oe(k), P;
562
+ let M = j, N = re(k), P;
563
563
  if (a[14] !== M || a[15] !== N) {
564
564
  let e;
565
565
  a[17] === M ? e = a[18] : (e = (e, t) => (C.PAN_ZOOM === t || C.isBinColoring(t) || e.push({
@@ -573,7 +573,7 @@ var K = (e) => {
573
573
  }, a[19] = w, a[20] = I);
574
574
  let L = ee(I), R;
575
575
  a[21] === Symbol.for("react.memo_cache_sentinel") ? (R = (e) => {
576
- t.debug("[Vega view] created", e), ae.current = e, ce(void 0);
576
+ t.debug("[Vega view] created", e), oe.current = e, ce(void 0);
577
577
  }, a[21] = R) : R = a[21];
578
578
  let z = ee(R), B;
579
579
  a[22] === k ? B = a[23] : (B = () => {
@@ -592,7 +592,7 @@ var K = (e) => {
592
592
  children: /* @__PURE__ */ (0, G.jsx)(c, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" })
593
593
  });
594
594
  }, a[22] = k, a[23] = B);
595
- let V = B, H = ie === "dark" ? "dark" : void 0, U;
595
+ let V = B, H = ae === "dark" ? "dark" : void 0, U;
596
596
  a[24] !== b || a[25] !== E || a[26] !== H ? (U = {
597
597
  theme: H,
598
598
  actions: b,
@@ -634,7 +634,7 @@ var K = (e) => {
634
634
  });
635
635
  }), xe = [K, F], a[35] = K, a[36] = F, a[37] = be, a[38] = xe) : (be = a[37], xe = a[38]), (0, y.useEffect)(be, xe);
636
636
  let Y;
637
- a[39] === _ ? Y = a[40] : (Y = _ && /* @__PURE__ */ (0, G.jsxs)(re, {
637
+ a[39] === _ ? Y = a[40] : (Y = _ && /* @__PURE__ */ (0, G.jsxs)(ie, {
638
638
  variant: "destructive",
639
639
  children: [/* @__PURE__ */ (0, G.jsx)(ne, { children: _.message }), /* @__PURE__ */ (0, G.jsx)("div", {
640
640
  className: "text-md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/islands",
3
- "version": "0.26.1-dev112",
3
+ "version": "0.26.1-dev119",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",