@marimo-team/islands 0.24.3-dev3 → 0.24.3-dev5

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.
package/dist/main.js CHANGED
@@ -3,22 +3,22 @@ import { _ as a, c as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p,
3
3
  import { t as y } from "./react-DMWcHin-.js";
4
4
  import { t as b } from "./compiler-runtime-CAH9RLw2.js";
5
5
  import { n as x, r as S, t as C } from "./copy-CD7S58CY.js";
6
- import { At as w, B as T, Bn as E, Bt as D, C as O, Cn as k, Ct as A, Dn as j, Dt as M, En as N, Et as P, F, Ft as I, G as L, Gn as ee, Hn as te, I as R, It as ne, J as z, Jn as re, Jt as ie, K as ae, Kt as oe, L as se, Ln as ce, Mn as le, Mt as ue, Nn as de, Nt as fe, On as pe, Ot as me, P as he, Pn as ge, Q as _e, Qn as ve, R as ye, Rn as be, St as xe, Tn as Se, U as Ce, Un as we, Ut as Te, W as Ee, X as De, Xn as Oe, Xt as ke, Y as Ae, Yn as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, a as Ie, an as Le, at as Re, b as ze, bn as Be, bt as Ve, cn as He, dn as Ue, dt as We, en as Ge, er as Ke, et as qe, g as Je, gn as Ye, i as Xe, in as Ze, ir as Qe, it as $e, j as et, jt as tt, k as nt, kn as rt, ln as it, lt as at, n as ot, o as st, on as ct, ot as lt, q as ut, qt as dt, rr as ft, sn as pt, st as mt, tr as ht, un as gt, ut as _t, v as vt, xn as yt, xt as bt, y as xt, yn as St, yt as Ct, z as wt, zn as Tt, zt as Et } from "./html-to-image-BTYnN4ev.js";
6
+ import { $n as w, An as T, B as E, Bn as D, Bt as O, C as k, Ct as A, Dn as j, Dt as M, En as N, F as P, Fn as F, G as I, I as L, It as ee, J as te, Jt as R, K as ne, Kn as z, L as re, Lt as ie, Mt as ae, Nn as oe, Nt as se, On as ce, Ot as le, P as ue, Pn as de, Pt as fe, Q as pe, Qn as me, Qt as he, R as ge, Rn as _e, Sn as ve, St as ye, U as be, Un as xe, Vn as Se, Vt as Ce, W as we, Wn as Te, Wt as Ee, X as De, Xn as Oe, Y as ke, Yn as Ae, Yt as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, _n as Ie, a as Le, an as Re, ar as ze, at as Be, b as Ve, bn as He, bt as Ue, cn as We, ct as Ge, dn as Ke, dt as qe, et as Je, fn as Ye, ft as Xe, g as Ze, i as Qe, ir as $e, j as et, jt as tt, k as nt, kn as rt, kt as it, ln as at, n as ot, nr as st, o as ct, on as lt, ot as ut, q as dt, qt as ft, sn as pt, st as mt, tn as ht, tr as gt, un as _t, ut as vt, v as yt, wn as bt, wt as xt, xn as St, xt as Ct, y as wt, z as Tt, zn as Et } from "./html-to-image-BhNoIBSU.js";
7
7
  import { o as Dt, s as Ot, u as kt } from "./dist-3_o3T78I.js";
8
8
  import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-CutWdqo3.js";
9
- import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-CwJerb7K.js";
9
+ import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-xHoep60C.js";
10
10
  import { c as gi, i as _i, n as vi, o as yi, t as bi } from "./useLifecycle-B4RGlyf0.js";
11
11
  import { t as xi } from "./check-CHig47QV.js";
12
12
  import { A as Si, C as Ci, D as wi, E as Ti, F as Ei, I as Di, M as Oi, N as ki, P as Ai, R as ji, S as Mi, a as Ni, b as Pi, c as Fi, i as Ii, j as Li, l as Ri, n as zi, o as Bi, r as Vi, s as Hi, t as Ui, w as Wi, x as Gi } from "./select-3qHpFKF9.js";
13
13
  import { B as Ki, C as qi, Ft as Ji, J as Yi, Pt as Xi, S as Zi, Ut as Qi, W as $i, Y as ea, _ as ta, a as na, at as ra, bt as ia, c as aa, f as oa, ft as sa, g as ca, h as la, hn as ua, i as da, m as fa, mn as pa, n as ma, ot as ha, p as ga, r as _a, s as va, t as ya, v as ba, x as xa, z as Sa } from "./dropdown-menu-DhCfcscX.js";
14
14
  import { _ as Ca, c as wa, d as Ta, f as Ea, g as Da, h as Oa, m as ka, u as Aa, v as ja } from "./toDate-D-Rx3ux5.js";
15
- import { a as Ma, c as Na, d as Pa, f as Fa, i as Ia, l as La, n as Ra, o as za, r as Ba, s as Va, t as Ha } from "./process-output-CsALk6tp.js";
15
+ import { a as Ma, c as Na, d as Pa, f as Fa, i as Ia, l as La, n as Ra, o as za, r as Ba, s as Va, t as Ha } from "./process-output-CpK6fX_C.js";
16
16
  import { a as Ua, c as Wa, d as Ga, i as Ka, l as qa, r as Ja, u as Ya } from "./glide-utils-NShAPPtn.js";
17
17
  import { n as Xa, t as Za } from "./ErrorBoundary-CR-ZQN_c.js";
18
18
  import { t as Qa } from "./react-dom-C94wmq5w.js";
19
19
  import { t as $a } from "./jsx-runtime-CpoKNRgu.js";
20
20
  import { $ as eo, $a as to, $i as no, $n as ro, $o as io, $r as ao, $s as oo, $t as so, A as co, Aa as lo, Ac as uo, Ai as fo, An as po, Ao as mo, Ar as ho, As as go, At as _o, B as vo, Ba as yo, Bc as bo, Bi as xo, Bn as So, Bo as Co, Br as wo, Bs as To, Bt as Eo, C as Do, Ca as Oo, Cc as ko, Ci as Ao, Cn as B, Co as jo, Cr as Mo, Cs as No, Ct as Po, D as Fo, Da as Io, Dc as Lo, Di as Ro, Dn as zo, Do as Bo, Dr as Vo, Ds as Ho, Dt as Uo, E as Wo, Ea as Go, Ei as Ko, En as qo, Eo as Jo, Er as Yo, Es as Xo, Et as Zo, F as Qo, Fa as $o, Fi as es, Fn as ts, Fo as ns, Fr as rs, Fs as is, Ft as as, G as os, Ga as ss, Gc as cs, Gi as ls, Gn as us, Go as ds, Gr as fs, Gs as ps, Gt as ms, H as hs, Ha as gs, Hc as _s, Hi as vs, Hn as ys, Ho as bs, Hr as xs, Hs as Ss, Ht as Cs, I as ws, Ia as Ts, Ii as Es, In as V, Io as Ds, Ir as Os, Is as ks, It as As, J as js, Ja as Ms, Jc as Ns, Ji as Ps, Jn as Fs, Jo as Is, Jr as Ls, Js as Rs, Jt as zs, K as Bs, Ka as Vs, Ki as Hs, Kn as Us, Ko as Ws, Kr as Gs, Ks, Kt as qs, L as Js, La as Ys, Li as Xs, Ln as Zs, Lo as Qs, Lr as $s, Ls as ec, Lt as tc, M as nc, Ma as rc, Mi as ic, Mn as ac, Mo as oc, Mr as sc, Ms as cc, Mt as lc, N as uc, Na as dc, Nc as fc, Ni as pc, Nn as mc, No as hc, Nr as gc, Ns as _c, Nt as vc, O as yc, Oa as bc, Oi as xc, On as Sc, Oo as Cc, Or as wc, Os as Tc, Ot as Ec, P as Dc, Pa as Oc, Pi as kc, Pn as Ac, Po as jc, Pr as Mc, Ps as Nc, Pt as Pc, Q as Fc, Qa as Ic, Qi as Lc, Qn as Rc, Qo as zc, Qr as Bc, Qs as Vc, Qt as Hc, R as Uc, Ra as Wc, Rc as Gc, Ri as Kc, Rn as qc, Ro as Jc, Rr as Yc, Rs as Xc, Rt as Zc, S as Qc, Sa as $c, Sc as el, Si as tl, Sn as H, So as nl, Sr as rl, Ss as il, St as al, T as ol, Ta as sl, Ti as cl, Tn as ll, To as ul, Tr as dl, Ts as fl, Tt as U, U as pl, Ua as ml, Uc as hl, Ui as gl, Un as _l, Uo as vl, Ur as yl, Us as bl, Ut as xl, V as Sl, Va as Cl, Vc as wl, Vi as Tl, Vn as El, Vo as Dl, Vr as Ol, Vs as kl, Vt as Al, W as jl, Wa as Ml, Wc as Nl, Wi as Pl, Wn as Fl, Wo as Il, Wr as Ll, Ws as Rl, Wt as zl, X as Bl, Xa as Vl, Xi as Hl, Xn as Ul, Xo as Wl, Xr as Gl, Xs as Kl, Xt as ql, Y as Jl, Ya as Yl, Yc as Xl, Yi as Zl, Yn as Ql, Yo as $l, Yr as eu, Ys as tu, Yt as nu, Z as ru, Za as iu, Zi as au, Zn as ou, Zo as su, Zr as cu, Zs as lu, Zt as uu, _ as du, _a as fu, _c as pu, _i as mu, _n as hu, _o as gu, _r as _u, _s as vu, _t as yu, a as bu, aa as xu, ac as Su, ai as Cu, an as wu, ao as Tu, ar as Eu, as as Du, at as Ou, b as ku, ba as Au, bc as ju, bi as Mu, bn as Nu, bo as Pu, br as Fu, bs as Iu, bt as Lu, c as Ru, ca as zu, cc as Bu, ci as Vu, cn as Hu, co as Uu, cr as Wu, cs as Gu, ct as Ku, d as qu, da as Ju, dc as Yu, di as Xu, dn as Zu, do as Qu, dr as $u, ds as ed, dt as td, ea as nd, ec as rd, ei as id, en as ad, eo as od, er as sd, es as cd, et as ld, f as ud, fa as dd, fc as fd, fi as pd, fn as md, fo as hd, fr as gd, fs as _d, ft as vd, g as yd, ga as bd, gc as xd, gi as Sd, gn as Cd, go as wd, gr as Td, gs as Ed, gt as Dd, h as Od, ha as kd, hc as Ad, hi as jd, hn as Md, ho as Nd, hr as Pd, hs as Fd, ht as Id, i as Ld, ia as Rd, ic as zd, ii as Bd, in as Vd, io as Hd, ir as Ud, is as Wd, it as Gd, j as Kd, ja as qd, ji as Jd, jn as Yd, jo as Xd, jr as Zd, js as Qd, jt as $d, k as ef, ka as tf, kc as nf, ki as rf, kn as af, ko as of, kr as sf, ks as cf, kt as W, l as lf, la as uf, lc as df, li as ff, ln as pf, lo as mf, lr as hf, ls as gf, lt as _f, m as vf, ma as yf, mc as bf, mi as xf, mn as Sf, mo as Cf, mr as wf, ms as Tf, mt as Ef, n as Df, na as Of, nc as kf, ni as Af, nn as jf, no as Mf, nr as Nf, ns as Pf, nt as Ff, o as If, oa as Lf, oc as Rf, oi as zf, on as Bf, oo as Vf, or as Hf, os as Uf, ot as Wf, p as Gf, pa as Kf, pc as G, pi as qf, pn as Jf, po as Yf, pr as Xf, ps as Zf, pt as Qf, q as $f, qa as ep, qc as tp, qi as np, qn as rp, qo as ip, qr as ap, qs as op, qt as sp, r as cp, ra as lp, rc as up, ri as dp, rn as fp, ro as pp, rr as mp, rs as hp, rt as gp, s as _p, sa as vp, sc as yp, si as bp, sn as xp, so as Sp, sr as Cp, ss as wp, st as Tp, t as Ep, ta as Dp, tc as Op, ti as kp, tn as Ap, to as jp, tr as Mp, ts as Np, tt as Pp, u as Fp, ua as Ip, uc as Lp, ui as Rp, un as zp, uo as Bp, ur as Vp, us as Hp, ut as Up, v as Wp, va as Gp, vc as Kp, vi as qp, vn as Jp, vo as Yp, vr as Xp, vs as Zp, vt as Qp, w as $p, wa as em, wi as tm, wn as nm, wo as rm, wr as im, ws as am, wt as om, x as sm, xa as cm, xc as lm, xi as um, xn as dm, xo as fm, xr as pm, xs as mm, xt as hm, y as gm, ya as _m, yc as vm, yi as ym, yn as bm, yo as xm, yr as Sm, ys as Cm, yt as wm, z as Tm, za as Em, zi as Dm, zn as Om, zo as km, zr as Am, zs as jm, zt as Mm } from "./schemas-DzK6U94N.js";
21
- import { i as Nm, n as Pm, r as Fm, t as Im } from "./error-banner-WDhUzJyg.js";
21
+ import { i as Nm, n as Pm, r as Fm, t as Im } from "./error-banner-CsXbEEjo.js";
22
22
  import { t as Lm } from "./label-lwzzBHUW.js";
23
23
  import { a as Rm, i as zm, n as Bm, o as Vm, r as Hm, t as Um } from "./tooltip-Dt77sBeT.js";
24
24
  import { f as Wm } from "./extends-BPB6_lTK.js";
@@ -8285,7 +8285,7 @@ var cC = /* @__PURE__ */ r({
8285
8285
  el(dx());
8286
8286
  //#endregion
8287
8287
  //#region ../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
8288
- var lC = cC, uC = /* @__PURE__ */ e(Ge(), 1), dC = Oa(), fC = (e) => e.type === "checkbox", pC = (e) => e instanceof Date, mC = (e) => e == null, hC = (e) => typeof e == "object", gC = (e) => !mC(e) && !Array.isArray(e) && hC(e) && !pC(e), _C = (e) => gC(e) && e.target ? fC(e.target) ? e.target.checked : e.target.value : e, vC = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, yC = (e, t) => e.has(vC(t)), bC = (e) => {
8288
+ var lC = cC, uC = /* @__PURE__ */ e(ht(), 1), dC = Oa(), fC = (e) => e.type === "checkbox", pC = (e) => e instanceof Date, mC = (e) => e == null, hC = (e) => typeof e == "object", gC = (e) => !mC(e) && !Array.isArray(e) && hC(e) && !pC(e), _C = (e) => gC(e) && e.target ? fC(e.target) ? e.target.checked : e.target.value : e, vC = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, yC = (e, t) => e.has(vC(t)), bC = (e) => {
8289
8289
  let t = e.constructor && e.constructor.prototype;
8290
8290
  return gC(t) && t.hasOwnProperty("isPrototypeOf");
8291
8291
  }, xC = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
@@ -9687,7 +9687,7 @@ var bT = (e) => {
9687
9687
  let a;
9688
9688
  t[0] === n ? a = t[1] : (a = l("stroke-[1.8px]", n), t[0] = n, t[1] = a);
9689
9689
  let o;
9690
- t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, J.jsx)(ft, { className: a }), t[2] = a, t[3] = o);
9690
+ t[2] === a ? o = t[3] : (o = /* @__PURE__ */ (0, J.jsx)($e, { className: a }), t[2] = a, t[3] = o);
9691
9691
  let s;
9692
9692
  return t[4] !== i || t[5] !== o ? (s = /* @__PURE__ */ (0, J.jsx)(Um, {
9693
9693
  content: i,
@@ -10050,7 +10050,7 @@ function HT({ schema: e, form: t, path: n, renderers: r }) {
10050
10050
  name: n,
10051
10051
  render: ({ field: e }) => /* @__PURE__ */ (0, J.jsxs)(hT, { children: [/* @__PURE__ */ (0, J.jsxs)("div", {
10052
10052
  className: l("flex flex-row gap-2", a ? "items-start" : "items-center"),
10053
- children: [/* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(xe, {
10053
+ children: [/* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(A, {
10054
10054
  "data-testid": "marimo-plugin-data-frames-boolean-checkbox",
10055
10055
  checked: e.value,
10056
10056
  onCheckedChange: e.onChange,
@@ -10262,7 +10262,7 @@ var UT = (e) => {
10262
10262
  form: r,
10263
10263
  path: `${i}[${t}]`,
10264
10264
  renderers: o
10265
- }), v && /* @__PURE__ */ (0, J.jsx)(te, {
10265
+ }), v && /* @__PURE__ */ (0, J.jsx)(xe, {
10266
10266
  className: "w-4 h-4 ml-2 my-1 text-muted-foreground hover:text-destructive cursor-pointer absolute right-0 top-5",
10267
10267
  onClick: () => {
10268
10268
  h(t);
@@ -10670,18 +10670,18 @@ function oE(e) {
10670
10670
  return typeof e == "function";
10671
10671
  }
10672
10672
  function sE(e) {
10673
- return ue(e) && (aE(e.render) || oE(e.initialize));
10673
+ return se(e) && (aE(e.render) || oE(e.initialize));
10674
10674
  }
10675
10675
  function cE(e) {
10676
10676
  return typeof e == "function" || sE(e);
10677
10677
  }
10678
10678
  function lE(e) {
10679
- return ue(e) && cE(e.default);
10679
+ return se(e) && cE(e.default);
10680
10680
  }
10681
10681
  var uE = /* @__PURE__ */ new Set(), dE = /* @__PURE__ */ new WeakMap();
10682
10682
  function fE(e, t) {
10683
10683
  if (lE(e)) return e.default;
10684
- if (!ue(e) || e.default !== void 0) return null;
10684
+ if (!se(e) || e.default !== void 0) return null;
10685
10685
  let n = aE(e.render) ? e.render : void 0, r = oE(e.initialize) ? e.initialize : void 0;
10686
10686
  if (n === void 0 && r === void 0) return null;
10687
10687
  let i = dE.get(e);
@@ -10694,8 +10694,8 @@ function fE(e, t) {
10694
10694
  return dE.set(e, a), a;
10695
10695
  }
10696
10696
  function pE(e, t) {
10697
- let n = "https://anywidget.dev/en/afm/", r = ue(e) && tt(e, "render"), i = ue(e) && tt(e, "initialize");
10698
- if (ue(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
10697
+ let n = "https://anywidget.dev/en/afm/", r = se(e) && ae(e, "render"), i = se(e) && ae(e, "initialize");
10698
+ if (se(e) && e.default !== void 0) return /* @__PURE__ */ Error(`Anywidget module at ${t} has an invalid default export. Expected a factory function or an object with \`render\` or \`initialize\`. See ${n}`);
10699
10699
  if (r || i) {
10700
10700
  let e = [r ? "`render`" : null, i ? "`initialize`" : null].filter(Boolean).join(" and "), a = [r ? "render" : null, i ? "initialize" : null].filter((e) => e !== null), o = `export default { ${a.join(", ")} }`, s = a.length === 1 ? `export function ${a[0]}` : "named export function ...";
10701
10701
  return /* @__PURE__ */ Error(`Anywidget module at ${t} uses named exports (${e}). Per the AFM spec, use a default export instead: \`${o}\` (not \`${s}\`). See ${n}`);
@@ -10729,7 +10729,7 @@ function vE(e) {
10729
10729
  return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || bE(e));
10730
10730
  }
10731
10731
  function yE() {
10732
- return $m.get(ye) || se();
10732
+ return $m.get(ge) || re();
10733
10733
  }
10734
10734
  function bE(e) {
10735
10735
  return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? yE() : !1;
@@ -11112,7 +11112,7 @@ function PE(e) {
11112
11112
  //#endregion
11113
11113
  //#region src/plugins/impl/anywidget/registry.ts
11114
11114
  function FE() {
11115
- let e = $m.get(w).mode;
11115
+ let e = $m.get(tt).mode;
11116
11116
  return e === "edit" || e === "present";
11117
11117
  }
11118
11118
  var IE = new class {
@@ -11192,7 +11192,7 @@ async function LE(e, t) {
11192
11192
  return;
11193
11193
  }
11194
11194
  let { state: r, buffers: i, bufferPaths: a } = NE(t);
11195
- await Le().sendModelValue({
11195
+ await lt().sendModelValue({
11196
11196
  modelId: n,
11197
11197
  message: {
11198
11198
  method: "update",
@@ -11207,7 +11207,7 @@ async function LE(e, t) {
11207
11207
  c.debug(`[Model] sendCustomMessage suppressed for model=${n} (signal aborted)`);
11208
11208
  return;
11209
11209
  }
11210
- await Le().sendModelValue({
11210
+ await lt().sendModelValue({
11211
11211
  modelId: n,
11212
11212
  message: {
11213
11213
  method: "custom",
@@ -11244,7 +11244,7 @@ async function LE(e, t) {
11244
11244
  default: Mi(r);
11245
11245
  }
11246
11246
  }
11247
- oe(IE, "WIDGET_REGISTRY");
11247
+ ft(IE, "WIDGET_REGISTRY");
11248
11248
  //#endregion
11249
11249
  //#region src/components/ui/navigation.tsx
11250
11250
  var RE = q.forwardRef((e, t) => {
@@ -11295,7 +11295,7 @@ var VE = Jy, HE = g("group inline-flex rounded-md bg-background px-4 py-2 text-l
11295
11295
  let o;
11296
11296
  n[4] === i ? o = n[5] : (o = l(HE(), "group", i), n[4] = i, n[5] = o);
11297
11297
  let s;
11298
- n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, J.jsx)(O, {
11298
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ (0, J.jsx)(k, {
11299
11299
  className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
11300
11300
  "aria-hidden": "true"
11301
11301
  }), n[6] = s) : s = n[6];
@@ -11397,7 +11397,7 @@ var ZE = (e) => {
11397
11397
  let t = (0, Y.c)(23), { item: n, preserveQueryParams: r, target: i } = e, a = q.useRef(null), [o, s] = q.useState(!1), c;
11398
11398
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = (e) => s(e !== ""), t[0] = c) : c = t[0];
11399
11399
  let l;
11400
- t[1] === n.label ? l = t[2] : (l = F({ html: n.label }), t[1] = n.label, t[2] = l);
11400
+ t[1] === n.label ? l = t[2] : (l = P({ html: n.label }), t[1] = n.label, t[2] = l);
11401
11401
  let u;
11402
11402
  t[3] === l ? u = t[4] : (u = /* @__PURE__ */ (0, J.jsx)(UE, {
11403
11403
  ref: a,
@@ -11410,7 +11410,7 @@ var ZE = (e) => {
11410
11410
  label: e.label,
11411
11411
  href: r(e.href),
11412
11412
  target: i(e.href),
11413
- children: e.description && F({ html: e.description })
11413
+ children: e.description && P({ html: e.description })
11414
11414
  }, e.label), t[9] = r, t[10] = i, t[11] = e) : e = t[11], d = n.items.map(e), t[5] = n.items, t[6] = r, t[7] = i, t[8] = d;
11415
11415
  } else d = t[8];
11416
11416
  let f;
@@ -11504,7 +11504,7 @@ var ZE = (e) => {
11504
11504
  target: a
11505
11505
  }, e.label) : /* @__PURE__ */ (0, J.jsxs)(VE, { children: [/* @__PURE__ */ (0, J.jsx)("div", {
11506
11506
  className: "inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-base font-medium text-muted-foreground/80 tracking-wide font-semibold",
11507
- children: F({ html: e.label })
11507
+ children: P({ html: e.label })
11508
11508
  }), /* @__PURE__ */ (0, J.jsx)(BE, {
11509
11509
  className: "ml-4 auto-collapse-nav",
11510
11510
  orientation: r,
@@ -11512,13 +11512,13 @@ var ZE = (e) => {
11512
11512
  href: o(e.href),
11513
11513
  target: a(e.href),
11514
11514
  className: HE({ orientation: r }),
11515
- children: F({ html: e.label })
11515
+ children: P({ html: e.label })
11516
11516
  }, e.label), e.description) }, e.label))
11517
11517
  })] }, e.label) : /* @__PURE__ */ (0, J.jsx)(VE, { children: /* @__PURE__ */ (0, J.jsx)(GE, {
11518
11518
  href: o(e.href),
11519
11519
  target: a(e.href),
11520
11520
  className: HE({ orientation: r }),
11521
- children: F({ html: e.label })
11521
+ children: P({ html: e.label })
11522
11522
  }) }, e.label), t[0] = r, t[1] = s);
11523
11523
  let c = s, l;
11524
11524
  if (t[2] !== n || t[3] !== c) {
@@ -11542,7 +11542,7 @@ var ZE = (e) => {
11542
11542
  let s;
11543
11543
  n[5] === i ? s = n[6] : (s = l("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", i), n[5] = i, n[6] = s);
11544
11544
  let c;
11545
- n[7] === a ? c = n[8] : (c = F({ html: a }), n[7] = a, n[8] = c);
11545
+ n[7] === a ? c = n[8] : (c = P({ html: a }), n[7] = a, n[8] = c);
11546
11546
  let u;
11547
11547
  n[9] === c ? u = n[10] : (u = /* @__PURE__ */ (0, J.jsx)("div", {
11548
11548
  className: "text-base font-medium leading-none",
@@ -11568,7 +11568,7 @@ rD.displayName = "ListItem";
11568
11568
  function iD(e, t) {
11569
11569
  return t ? /* @__PURE__ */ (0, J.jsx)(Um, {
11570
11570
  delayDuration: 200,
11571
- content: F({ html: t }),
11571
+ content: P({ html: t }),
11572
11572
  children: e
11573
11573
  }) : e;
11574
11574
  }
@@ -11611,7 +11611,7 @@ var cD = class e {
11611
11611
  let n = this.entries.get(e);
11612
11612
  n === void 0 ? this.entries.set(e, {
11613
11613
  objectId: e,
11614
- value: yt(t, this),
11614
+ value: ve(t, this),
11615
11615
  elements: /* @__PURE__ */ new Set([t])
11616
11616
  }) : n.elements.add(t);
11617
11617
  }
@@ -11676,8 +11676,8 @@ var cD = class e {
11676
11676
  detail: { objectId: t }
11677
11677
  })));
11678
11678
  }
11679
- }, lD = cD.INSTANCE, uD = new Et("function-call-result", async (e, t) => {
11680
- await Le().sendFunctionRequest({
11679
+ }, lD = cD.INSTANCE, uD = new O("function-call-result", async (e, t) => {
11680
+ await lt().sendFunctionRequest({
11681
11681
  functionCallId: e,
11682
11682
  ...t
11683
11683
  });
@@ -14551,7 +14551,7 @@ function zj(e) {
14551
14551
  }
14552
14552
  //#endregion
14553
14553
  //#region src/plugins/core/BadPlugin.tsx
14554
- var Bj = Tt, Vj = ce, Hj = be, Uj = E, Wj = (e) => {
14554
+ var Bj = D, Vj = _e, Hj = Et, Uj = Se, Wj = (e) => {
14555
14555
  let t = (0, Y.c)(16), { error: n, badData: r, shadowRoot: i } = e;
14556
14556
  if (n instanceof Pd) {
14557
14557
  let e;
@@ -14621,10 +14621,10 @@ function Kj(e) {
14621
14621
  //#region src/plugins/core/registerReactComponent.tsx
14622
14622
  var qj = 3, Jj = 150;
14623
14623
  function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14624
- let [s, l] = (0, q.useState)(n), [u, d] = (0, q.useState)(r()), { theme: f } = ah(), [p, m] = (0, q.useState)(() => t.validator.safeParse(Be(e))), [h, g] = (0, q.useState)(0);
14624
+ let [s, l] = (0, q.useState)(n), [u, d] = (0, q.useState)(r()), { theme: f } = ah(), [p, m] = (0, q.useState)(() => t.validator.safeParse(St(e))), [h, g] = (0, q.useState)(0);
14625
14625
  (0, q.useImperativeHandle)(i, () => ({
14626
14626
  reset: () => {
14627
- d(r()), m(t.validator.safeParse(Be(e))), g((e) => e + 1);
14627
+ d(r()), m(t.validator.safeParse(St(e))), g((e) => e + 1);
14628
14628
  },
14629
14629
  setChildren: (e) => {
14630
14630
  l(e);
@@ -14633,7 +14633,7 @@ function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14633
14633
  t.detail.element === e && d(t.detail.value);
14634
14634
  }), (0, q.useEffect)(() => {
14635
14635
  let n = new MutationObserver((n) => {
14636
- n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(Be(e)));
14636
+ n.some((e) => e.type === "attributes" && e.attributeName?.startsWith("data-")) && m(t.validator.safeParse(St(e)));
14637
14637
  });
14638
14638
  return n.observe(e, { attributes: !0 }), () => {
14639
14639
  n.disconnect();
@@ -14651,10 +14651,10 @@ function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14651
14651
  let { input: t, output: a } = i;
14652
14652
  n[r] = async (...n) => {
14653
14653
  mh(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
14654
- let i = Ta(), o = k.findElementThroughShadowDOMs(e)?.id, s = o ? k.parse(o) : null;
14654
+ let i = Ta(), o = bt.findElementThroughShadowDOMs(e)?.id, s = o ? bt.parse(o) : null;
14655
14655
  if (s && !i) {
14656
- let e = $m.get(ut), t = e.cellRuntime[s], n = e.cellData[s];
14657
- if (He({
14656
+ let e = $m.get(dt), t = e.cellRuntime[s], n = e.cellData[s];
14657
+ if (at({
14658
14658
  executionTime: t.runElapsedTimeMs ?? n.lastExecutionTime,
14659
14659
  status: t.status,
14660
14660
  errored: t.errored,
@@ -14701,7 +14701,7 @@ function Yj({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
14701
14701
  functions: v
14702
14702
  }) })
14703
14703
  })
14704
- }) }) : Gj(p.error, yh.mapValues(e.dataset, (e) => typeof e == "string" ? St(e) : e), e.shadowRoot);
14704
+ }) }) : Gj(p.error, yh.mapValues(e.dataset, (e) => typeof e == "string" ? He(e) : e), e.shadowRoot);
14705
14705
  }
14706
14706
  var Xj = q.forwardRef(Yj), Zj = /* @__PURE__ */ new Map(), Qj = "__custom_marimo_element__";
14707
14707
  function $j(e) {
@@ -14736,16 +14736,16 @@ function $j(e) {
14736
14736
  return !1;
14737
14737
  }
14738
14738
  reset() {
14739
- this.dispatchEvent(Na(St(this.dataset.initialValue), this)), this.rerender();
14739
+ this.dispatchEvent(Na(He(this.dataset.initialValue), this)), this.rerender();
14740
14740
  }
14741
14741
  rerender() {
14742
14742
  this.pluginRef.current?.reset();
14743
14743
  }
14744
14744
  getChildren() {
14745
- return this.children.length === 0 ? null : this.children.length === 1 ? F({
14745
+ return this.children.length === 0 ? null : this.children.length === 1 ? P({
14746
14746
  html: this.innerHTML,
14747
14747
  alwaysSanitizeHtml: !1
14748
- }) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, J.jsx)(q.Fragment, { children: F({
14748
+ }) : Array.from(this.children).map((e, t) => /* @__PURE__ */ (0, J.jsx)(q.Fragment, { children: P({
14749
14749
  html: e.outerHTML,
14750
14750
  alwaysSanitizeHtml: !1
14751
14751
  }) }, t));
@@ -14757,7 +14757,7 @@ function $j(e) {
14757
14757
  hostElement: this,
14758
14758
  plugin: e,
14759
14759
  ref: this.pluginRef,
14760
- getInitialValue: () => yt(this, cD.INSTANCE),
14760
+ getInitialValue: () => ve(this, cD.INSTANCE),
14761
14761
  children: this.getChildren()
14762
14762
  }) })
14763
14763
  }));
@@ -14828,7 +14828,7 @@ function iM() {
14828
14828
  inputListener = a.NOOP;
14829
14829
  init() {
14830
14830
  if (this.initialized) return;
14831
- let e = Se.parseOrThrow(this);
14831
+ let e = N.parseOrThrow(this);
14832
14832
  this.inputListener = (n) => {
14833
14833
  e !== null && n.detail.element === this.firstElementChild && (lD.has(e) || lD.registerInstance(e, t), lD.broadcastValueUpdate(t, e, n.detail.value));
14834
14834
  };
@@ -14849,14 +14849,14 @@ function iM() {
14849
14849
  }
14850
14850
  connectedCallback() {
14851
14851
  if (this.init(), this.initialized) {
14852
- let e = Se.parseOrThrow(this), t = this.firstElementChild;
14852
+ let e = N.parseOrThrow(this), t = this.firstElementChild;
14853
14853
  lD.registerInstance(e, t), document.addEventListener(Ma.TYPE, this.inputListener);
14854
14854
  }
14855
14855
  }
14856
14856
  disconnectedCallback() {
14857
14857
  if (this.initialized) {
14858
14858
  document.removeEventListener(Ma.TYPE, this.inputListener);
14859
- let e = Se.parseOrThrow(this);
14859
+ let e = N.parseOrThrow(this);
14860
14860
  lD.removeInstance(e, this.firstElementChild);
14861
14861
  }
14862
14862
  }
@@ -14865,7 +14865,7 @@ function iM() {
14865
14865
  tM(e) ? e.reset() : c.error("[marimo-ui-element] first child must have a reset method");
14866
14866
  }
14867
14867
  static get observedAttributes() {
14868
- return [pe];
14868
+ return [rt];
14869
14869
  }
14870
14870
  attributeChangedCallback(e, t, n) {
14871
14871
  if (this.initialized && e === "random-id" && t !== n) {
@@ -14879,16 +14879,16 @@ function iM() {
14879
14879
  }
14880
14880
  function aM(e) {
14881
14881
  if (!e) return null;
14882
- if (e.nodeName === rM) return Se.parseOrThrow(e);
14882
+ if (e.nodeName === rM) return N.parseOrThrow(e);
14883
14883
  let t = e.parentElement;
14884
- return t?.nodeName === rM ? Se.parseOrThrow(t) : null;
14884
+ return t?.nodeName === rM ? N.parseOrThrow(t) : null;
14885
14885
  }
14886
14886
  function oM(e) {
14887
14887
  return e.tagName === rM;
14888
14888
  }
14889
14889
  //#endregion
14890
14890
  //#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
14891
- var sM = le({ isOpen: !0 }, (e, t) => {
14891
+ var sM = oe({ isOpen: !0 }, (e, t) => {
14892
14892
  if (!t) return e;
14893
14893
  switch (t.type) {
14894
14894
  case "toggle": return {
@@ -14954,7 +14954,7 @@ function lM() {
14954
14954
  }
14955
14955
  }
14956
14956
  getContents() {
14957
- return F({ html: this.innerHTML });
14957
+ return P({ html: this.innerHTML });
14958
14958
  }
14959
14959
  });
14960
14960
  }
@@ -15221,7 +15221,7 @@ var bM = Qp([
15221
15221
  t || (n.stopPropagation(), e.setValue((e) => e + 1));
15222
15222
  },
15223
15223
  type: "submit",
15224
- children: F({ html: r })
15224
+ children: P({ html: r })
15225
15225
  }), c = o && !a ? /* @__PURE__ */ (0, J.jsx)(pM, { shortcut: o }) : a;
15226
15226
  return c ? /* @__PURE__ */ (0, J.jsx)(Um, {
15227
15227
  content: c,
@@ -15261,7 +15261,7 @@ var CM = (e) => {
15261
15261
  let d;
15262
15262
  t[8] === o ? d = t[9] : (d = l("font-prose", o), t[8] = o, t[9] = d);
15263
15263
  let f;
15264
- t[10] === n ? f = t[11] : (f = F({ html: n }), t[10] = n, t[11] = f);
15264
+ t[10] === n ? f = t[11] : (f = P({ html: n }), t[10] = n, t[11] = f);
15265
15265
  let p;
15266
15266
  t[12] !== c || t[13] !== d || t[14] !== f ? (p = /* @__PURE__ */ (0, J.jsx)("div", {
15267
15267
  part: "label",
@@ -15295,7 +15295,7 @@ var CM = (e) => {
15295
15295
  e !== "indeterminate" && r(e);
15296
15296
  }, t[0] = r, t[1] = a);
15297
15297
  let o = a, s = (0, q.useId)(), c;
15298
- t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, J.jsx)(xe, {
15298
+ t[2] !== i.disabled || t[3] !== s || t[4] !== o || t[5] !== n ? (c = /* @__PURE__ */ (0, J.jsx)(A, {
15299
15299
  "data-testid": "marimo-plugin-checkbox",
15300
15300
  checked: n,
15301
15301
  onCheckedChange: o,
@@ -15365,7 +15365,7 @@ var CM = (e) => {
15365
15365
  t[20] === Symbol.for("react.memo_cache_sentinel") ? (n = [], t[20] = n) : n = t[20], x = n;
15366
15366
  }
15367
15367
  let S = x, C = `cm *:outline-hidden border rounded overflow-hidden ${r}`, w = r === "dark" ? "dark" : "light", T = !e.disabled, E;
15368
- t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, J.jsx)(Xe, {
15368
+ t[21] !== S || t[22] !== g || t[23] !== o || t[24] !== a || t[25] !== i || t[26] !== e.language || t[27] !== e.placeholder || t[28] !== e.showCopyButton || t[29] !== C || t[30] !== w || t[31] !== T ? (E = /* @__PURE__ */ (0, J.jsx)(Qe, {
15369
15369
  className: C,
15370
15370
  theme: w,
15371
15371
  minHeight: i,
@@ -15392,7 +15392,7 @@ var CM = (e) => {
15392
15392
  output: t
15393
15393
  };
15394
15394
  } };
15395
- } }, kM = q.lazy(() => import("./chat-ui-DttQ-5Ut.js").then((e) => ({ default: e.Chatbot }))), AM = U(B({
15395
+ } }, kM = q.lazy(() => import("./chat-ui-DjTMZRVP.js").then((e) => ({ default: e.Chatbot }))), AM = U(B({
15396
15396
  id: V(),
15397
15397
  role: Qp([
15398
15398
  "system",
@@ -16291,9 +16291,9 @@ function tP(e) {
16291
16291
  //#endregion
16292
16292
  //#region src/components/editor/cell/useAddCell.ts
16293
16293
  function nP() {
16294
- let e = (0, Y.c)(4), t = Xm(nh), n = _t(), { createNewCell: r } = Me(), i;
16294
+ let e = (0, Y.c)(4), t = Xm(nh), n = qe(), { createNewCell: r } = Me(), i;
16295
16295
  return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
16296
- e.includes("alt") && We({
16296
+ e.includes("alt") && Xe({
16297
16297
  autoInstantiate: t,
16298
16298
  createNewCell: r,
16299
16299
  fromCellId: n
@@ -17564,7 +17564,7 @@ var iP = [rP({
17564
17564
  borderBottom: "2px solid var(--cm-reactive-reference-border-color)"
17565
17565
  },
17566
17566
  ".mo-cm-reactive-reference-hover": { cursor: "pointer" }
17567
- })], oP = [A(), uh.lineWrapping], sP = [xh(), uh.lineWrapping], cP = [Sh(), uh.lineWrapping];
17567
+ })], oP = [xt(), uh.lineWrapping], sP = [xh(), uh.lineWrapping], cP = [Sh(), uh.lineWrapping];
17568
17568
  function lP(e) {
17569
17569
  switch (e) {
17570
17570
  case "sql": return sP;
@@ -17648,7 +17648,7 @@ var dP = (e) => {
17648
17648
  }), t[3] = r, t[4] = a), a;
17649
17649
  }, fP = (e) => {
17650
17650
  let t = (0, Y.c)(9), n = e.hidden ? "Show code" : "Hide code", r = e.hidden ? "Show code" : "Hide code", i;
17651
- t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, J.jsx)(ve, {
17651
+ t[0] === e.hidden ? i = t[1] : (i = e.hidden ? /* @__PURE__ */ (0, J.jsx)(w, {
17652
17652
  size: 14,
17653
17653
  strokeWidth: 1.5
17654
17654
  }) : /* @__PURE__ */ (0, J.jsx)(cr, {
@@ -17703,7 +17703,7 @@ var hP = (e) => {
17703
17703
  let t = (0, Y.c)(5), { text: n, tooltip: r } = e, i;
17704
17704
  t[0] === r ? i = t[1] : (i = r && /* @__PURE__ */ (0, J.jsx)(Um, {
17705
17705
  content: r,
17706
- children: /* @__PURE__ */ (0, J.jsx)(Oe, { className: "w-3 h-3 mt-0.5" })
17706
+ children: /* @__PURE__ */ (0, J.jsx)(Ne, { className: "w-3 h-3 mt-0.5" })
17707
17707
  }), t[0] = r, t[1] = i);
17708
17708
  let a;
17709
17709
  return t[2] !== i || t[3] !== n ? (a = /* @__PURE__ */ (0, J.jsxs)("h2", {
@@ -17745,13 +17745,13 @@ var hP = (e) => {
17745
17745
  let t = (0, Y.c)(5), { children: n, className: r } = e, i;
17746
17746
  t[0] === r ? i = t[1] : (i = l("py-1", r), t[0] = r, t[1] = i);
17747
17747
  let a;
17748
- return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(xt, {
17748
+ return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(wt, {
17749
17749
  className: i,
17750
17750
  children: n
17751
17751
  }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
17752
17752
  }, xP = (e) => {
17753
17753
  let t = (0, Y.c)(3), { children: n, value: r } = e, i;
17754
- return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, J.jsx)(vt, {
17754
+ return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ (0, J.jsx)(yt, {
17755
17755
  value: r,
17756
17756
  className: "border-none",
17757
17757
  children: n
@@ -17909,7 +17909,7 @@ var hP = (e) => {
17909
17909
  let { field: t } = e;
17910
17910
  return /* @__PURE__ */ (0, J.jsxs)(hT, {
17911
17911
  className: l("flex flex-row items-center gap-2", i),
17912
- children: [/* @__PURE__ */ (0, J.jsx)(gT, { children: r }), /* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(xe, {
17912
+ children: [/* @__PURE__ */ (0, J.jsx)(gT, { children: r }), /* @__PURE__ */ (0, J.jsx)(_T, { children: /* @__PURE__ */ (0, J.jsx)(A, {
17913
17913
  checked: t.value ?? a ?? !1,
17914
17914
  onCheckedChange: t.onChange,
17915
17915
  className: "w-4 h-4"
@@ -18074,7 +18074,7 @@ var hP = (e) => {
18074
18074
  open: o,
18075
18075
  onOpenChange: s,
18076
18076
  children: [/* @__PURE__ */ (0, J.jsx)(Hi, { children: /* @__PURE__ */ (0, J.jsx)(Fi, { placeholder: "Select an option" }) }), /* @__PURE__ */ (0, J.jsx)(zi, { children: /* @__PURE__ */ (0, J.jsx)(Vi, { children: Rt.map((e) => {
18077
- let t = Pe[e], n = e === "string" ? "categorical" : e;
18077
+ let t = he[e], n = e === "string" ? "categorical" : e;
18078
18078
  return /* @__PURE__ */ (0, J.jsx)(Ii, {
18079
18079
  value: e,
18080
18080
  className: "flex flex-col items-start justify-center",
@@ -18197,7 +18197,7 @@ var hP = (e) => {
18197
18197
  };
18198
18198
  function RP(e) {
18199
18199
  if (e.name.trim() === "") return null;
18200
- let t = Pe[e.type];
18200
+ let t = he[e.type];
18201
18201
  return /* @__PURE__ */ (0, J.jsx)(Ii, {
18202
18202
  value: e.name,
18203
18203
  children: /* @__PURE__ */ (0, J.jsxs)("div", {
@@ -18644,12 +18644,12 @@ var lF = () => {
18644
18644
  p,
18645
18645
  /* @__PURE__ */ (0, J.jsxs)("p", {
18646
18646
  className: "text-xs",
18647
- children: [/* @__PURE__ */ (0, J.jsx)(Oe, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
18647
+ children: [/* @__PURE__ */ (0, J.jsx)(Ne, { className: "w-2.5 h-2.5 inline mb-1 mr-1" }), "If you are using color range, color scheme will be ignored."]
18648
18648
  })
18649
18649
  ] })]
18650
18650
  }), e[12] = m) : m = e[12];
18651
18651
  let h;
18652
- return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, J.jsxs)(Je, {
18652
+ return e[13] === a ? h = e[14] : (h = /* @__PURE__ */ (0, J.jsxs)(Ze, {
18653
18653
  type: "multiple",
18654
18654
  children: [
18655
18655
  a,
@@ -18687,7 +18687,7 @@ var lF = () => {
18687
18687
  saveFunction: t
18688
18688
  }), e[6] = i, e[7] = t, e[8] = l) : l = e[8];
18689
18689
  let u;
18690
- return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, J.jsxs)(Je, {
18690
+ return e[9] === l ? u = e[10] : (u = /* @__PURE__ */ (0, J.jsxs)(Ze, {
18691
18691
  type: "multiple",
18692
18692
  children: [o, /* @__PURE__ */ (0, J.jsxs)(xP, {
18693
18693
  value: "tooltips",
@@ -18937,7 +18937,7 @@ var TF = "marimo:charts:v2", EF = B({
18937
18937
  tabName: V().transform((e) => e),
18938
18938
  chartType: V().transform((e) => e),
18939
18939
  config: CF
18940
- }), DF = U(Fl([V().transform((e) => e), U(EF)])), OF = new Ye(TF, DF, () => []), kF = {
18940
+ }), DF = U(Fl([V().transform((e) => e), U(EF)])), OF = new Ie(TF, DF, () => []), kF = {
18941
18941
  getItem: (e) => {
18942
18942
  try {
18943
18943
  let t = OF.get(e);
@@ -19197,7 +19197,7 @@ var BF = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
19197
19197
  t[10] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, J.jsxs)(er, {
19198
19198
  value: "data",
19199
19199
  className: "w-1/2 h-6",
19200
- children: [/* @__PURE__ */ (0, J.jsx)(Ke, { className: "w-4 h-4 mr-2" }), "Data"]
19200
+ children: [/* @__PURE__ */ (0, J.jsx)(gt, { className: "w-4 h-4 mr-2" }), "Data"]
19201
19201
  }), t[10] = f) : f = t[10];
19202
19202
  let p;
19203
19203
  t[11] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, J.jsxs)(Xn, {
@@ -19205,7 +19205,7 @@ var BF = ({ cellId: e, data: t, dataTable: n, totalRows: r, columns: i, getDataU
19205
19205
  children: [f, /* @__PURE__ */ (0, J.jsxs)(er, {
19206
19206
  value: "style",
19207
19207
  className: "w-1/2 h-6",
19208
- children: [/* @__PURE__ */ (0, J.jsx)(ee, { className: "w-4 h-4 mr-2" }), "Style"]
19208
+ children: [/* @__PURE__ */ (0, J.jsx)(z, { className: "w-4 h-4 mr-2" }), "Style"]
19209
19209
  })]
19210
19210
  }), t[11] = p) : p = t[11];
19211
19211
  let m;
@@ -19260,7 +19260,7 @@ function GF(e) {
19260
19260
  //#endregion
19261
19261
  //#region src/components/data-table/hooks/use-panel-ownership.ts
19262
19262
  function KF(e, t) {
19263
- let n = (0, Y.c)(16), r = Xm(bD), { focusCell: i } = at(), a = _t(), [o, s] = Qm(vD), [l, u] = Qm(_D), [d, f] = Qm(yD), p = qF(e, t);
19263
+ let n = (0, Y.c)(16), r = Xm(bD), { focusCell: i } = vt(), a = qe(), [o, s] = Qm(vD), [l, u] = Qm(_D), [d, f] = Qm(yD), p = qF(e, t);
19264
19264
  !t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
19265
19265
  let m = (e) => l === p && d && e === o, h = a === t, g = l && JF(l, t);
19266
19266
  r && h && l !== p && !g && u(p);
@@ -19317,7 +19317,7 @@ function ZF({ stats: e, dataType: t, locale: n }) {
19317
19317
  children: [
19318
19318
  /* @__PURE__ */ (0, J.jsx)("span", {
19319
19319
  className: "text-xs min-w-[60px] capitalize",
19320
- children: Ze(e, t)
19320
+ children: Re(e, t)
19321
19321
  }),
19322
19322
  /* @__PURE__ */ (0, J.jsx)("span", {
19323
19323
  className: "text-xs font-bold text-muted-foreground tracking-wide",
@@ -19359,9 +19359,9 @@ function $F(e, t) {
19359
19359
  });
19360
19360
  }
19361
19361
  var eI = (e) => {
19362
- let t = (0, Y.c)(10), { chartCode: n } = e, r = Xm(nh), i = _t(), { createNewCell: a } = Me(), o;
19362
+ let t = (0, Y.c)(10), { chartCode: n } = e, r = Xm(nh), i = qe(), { createNewCell: a } = Me(), o;
19363
19363
  t[0] !== r || t[1] !== a || t[2] !== i ? (o = (e) => {
19364
- e.includes("alt") && We({
19364
+ e.includes("alt") && Xe({
19365
19365
  autoInstantiate: r,
19366
19366
  createNewCell: a,
19367
19367
  fromCellId: i
@@ -19421,7 +19421,7 @@ function tI({ previewColumn: e, fieldTypes: t, totalRows: n, totalColumns: r, ta
19421
19421
  className: "gap-1",
19422
19422
  disabled: f === 0,
19423
19423
  onClick: () => a.toggleAllColumnsVisible(!0),
19424
- children: [/* @__PURE__ */ (0, J.jsx)(ve, { className: "w-3 h-3" }), "Show all"]
19424
+ children: [/* @__PURE__ */ (0, J.jsx)(w, { className: "w-3 h-3" }), "Show all"]
19425
19425
  })
19426
19426
  }), /* @__PURE__ */ (0, J.jsx)(Um, {
19427
19427
  content: "Hide all columns",
@@ -19504,7 +19504,7 @@ function nI({ columnName: e, column: t, dataType: n, externalType: r, previewCol
19504
19504
  onClick: (e) => {
19505
19505
  e.preventDefault(), e.stopPropagation(), t.toggleVisibility(!t.getIsVisible());
19506
19506
  },
19507
- children: t.getIsVisible() ? /* @__PURE__ */ (0, J.jsx)(ve, {
19507
+ children: t.getIsVisible() ? /* @__PURE__ */ (0, J.jsx)(w, {
19508
19508
  className: "h-3 w-3",
19509
19509
  strokeWidth: 2.5
19510
19510
  }) : /* @__PURE__ */ (0, J.jsx)(cr, {
@@ -19597,7 +19597,7 @@ var rI = ({ previewColumn: e, columnName: t, dataType: n }) => {
19597
19597
  title: "Select/unselect the current row",
19598
19598
  children: [/* @__PURE__ */ (0, J.jsxs)("div", {
19599
19599
  className: "flex items-center gap-1.5",
19600
- children: [/* @__PURE__ */ (0, J.jsx)(xe, {
19600
+ children: [/* @__PURE__ */ (0, J.jsx)(A, {
19601
19601
  id: d,
19602
19602
  checked: o,
19603
19603
  onCheckedChange: v,
@@ -19673,7 +19673,7 @@ var rI = ({ previewColumn: e, columnName: t, dataType: n }) => {
19673
19673
  });
19674
19674
  if (n === 0) return /* @__PURE__ */ (0, J.jsx)(oI, {
19675
19675
  kind: "info",
19676
- Icon: Oe,
19676
+ Icon: Ne,
19677
19677
  message: "No rows selected"
19678
19678
  });
19679
19679
  if (!m) return /* @__PURE__ */ (0, J.jsx)(Jn, {
@@ -19999,8 +19999,8 @@ function bI(e, t) {
19999
19999
  var xI = (e) => {
20000
20000
  let t = (0, Y.c)(13), { isLazy: n, children: r, preload: i, host: a } = e, o, s, c, l;
20001
20001
  if (t[0] !== a || t[1] !== n || t[2] !== i) {
20002
- let e = a.closest(`[${j}]`);
20003
- l = e ? Se.parse(e) : null, o = a.closest(`[${pe}]`)?.getAttribute(pe), s = q.useState, c = n && !i && !yI(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
20002
+ let e = a.closest(`[${ce}]`);
20003
+ l = e ? N.parse(e) : null, o = a.closest(`[${rt}]`)?.getAttribute(rt), s = q.useState, c = n && !i && !yI(l, o), t[0] = a, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = l;
20004
20004
  } else o = t[3], s = t[4], c = t[5], l = t[6];
20005
20005
  let [u, d] = s(c);
20006
20006
  if (u) {
@@ -20009,7 +20009,7 @@ var xI = (e) => {
20009
20009
  bI(l, o), d(!1);
20010
20010
  }, t[7] = o, t[8] = l, t[9] = e) : e = t[9];
20011
20011
  let n;
20012
- t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, J.jsx)(we, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
20012
+ t[10] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ (0, J.jsx)(Te, { className: "mr-2 h-4 w-4" }), t[10] = n) : n = t[10];
20013
20013
  let r;
20014
20014
  return t[11] === e ? r = t[12] : (r = /* @__PURE__ */ (0, J.jsx)("div", {
20015
20015
  className: "flex h-20 items-center justify-center",
@@ -20024,7 +20024,7 @@ var xI = (e) => {
20024
20024
  return r;
20025
20025
  }, SI = (0, q.memo)((e) => {
20026
20026
  let t = (0, Y.c)(119), n;
20027
- t[0] === e.host ? n = t[1] : (n = N(e.host), t[0] = e.host, t[1] = n);
20027
+ t[0] === e.host ? n = t[1] : (n = j(e.host), t[0] = e.host, t[1] = n);
20028
20028
  let r = n, i = e.search, a = e.setValue, o;
20029
20029
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[2] = o) : o = t[2];
20030
20030
  let [s, l] = (0, q.useState)(o), u;
@@ -20098,11 +20098,11 @@ var xI = (e) => {
20098
20098
  d.pageSize,
20099
20099
  d.pageIndex
20100
20100
  ], t[35] = g, t[36] = d.pageIndex, t[37] = d.pageSize, t[38] = e.cellHoverTexts, t[39] = e.cellStyles, t[40] = e.data, t[41] = e.lazy, t[42] = e.totalRows, t[43] = i, t[44] = p, t[45] = s, t[46] = E, t[47] = D) : D = t[47];
20101
- let { data: O, error: k, isPending: A, isFetching: j } = Eh(T, D), M = Xm(vn), P;
20102
- t[48] !== M || t[49] !== e ? (P = async () => !M || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[48] = M, t[49] = e, t[50] = P) : P = t[50];
20101
+ let { data: O, error: k, isPending: A, isFetching: M } = Eh(T, D), N = Xm(vn), P;
20102
+ t[48] !== N || t[49] !== e ? (P = async () => !N || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[48] = N, t[49] = e, t[50] = P) : P = t[50];
20103
20103
  let F = e.showDownload, I = e.get_size_bytes, L = e.lazy, ee = e.totalRows, te = Ph(g), R = Ph(s), ne;
20104
- t[51] !== M || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !== te || t[58] !== R ? (ne = [
20105
- M,
20104
+ t[51] !== N || t[52] !== e.get_size_bytes || t[53] !== e.lazy || t[54] !== e.showDownload || t[55] !== e.totalRows || t[56] !== p || t[57] !== te || t[58] !== R ? (ne = [
20105
+ N,
20106
20106
  F,
20107
20107
  I,
20108
20108
  L,
@@ -20110,8 +20110,8 @@ var xI = (e) => {
20110
20110
  p,
20111
20111
  te,
20112
20112
  R
20113
- ], t[51] = M, t[52] = e.get_size_bytes, t[53] = e.lazy, t[54] = e.showDownload, t[55] = e.totalRows, t[56] = p, t[57] = te, t[58] = R, t[59] = ne) : ne = t[59];
20114
- let { data: z, isPending: re } = Eh(P, ne), ie = z ?? null, ae = !!M && e.showDownload && re, oe;
20113
+ ], t[51] = N, t[52] = e.get_size_bytes, t[53] = e.lazy, t[54] = e.showDownload, t[55] = e.totalRows, t[56] = p, t[57] = te, t[58] = R, t[59] = ne) : ne = t[59];
20114
+ let { data: z, isPending: re } = Eh(P, ne), ie = z ?? null, ae = !!N && e.showDownload && re, oe;
20115
20115
  t[60] !== g || t[61] !== i || t[62] !== p || t[63] !== s ? (oe = async (e) => {
20116
20116
  let t = s.length > 0 ? s.map(DI) : void 0, n = await i({
20117
20117
  page_number: e,
@@ -20176,7 +20176,7 @@ var xI = (e) => {
20176
20176
  t[84] === y ? ve = t[85] : (ve = () => {
20177
20177
  b(!y);
20178
20178
  }, t[84] = y, t[85] = ve);
20179
- let ye = ve, be = O?.rows ?? _h.EMPTY, xe = O?.rawRows, Se = j && !A, Ce = O?.totalRows ?? e.totalRows, we = O?.cellStyles ?? e.cellStyles, Te = O?.cellHoverTexts ?? e.cellHoverTexts, Ee;
20179
+ let ye = ve, be = O?.rows ?? _h.EMPTY, xe = O?.rawRows, Se = M && !A, Ce = O?.totalRows ?? e.totalRows, we = O?.cellStyles ?? e.cellStyles, Te = O?.cellHoverTexts ?? e.cellHoverTexts, Ee;
20180
20180
  t[86] !== r || t[87] !== pe || t[88] !== y || t[89] !== g || t[90] !== se || t[91] !== d || t[92] !== e || t[93] !== p || t[94] !== ie || t[95] !== ae || t[96] !== s || t[97] !== be || t[98] !== xe || t[99] !== Se || t[100] !== Ce || t[101] !== we || t[102] !== Te || t[103] !== ye ? (Ee = /* @__PURE__ */ (0, J.jsx)(CI, {
20181
20181
  ...e,
20182
20182
  data: be,
@@ -20796,7 +20796,7 @@ var HI = class {
20796
20796
  fullWidth: s,
20797
20797
  children: _
20798
20798
  }), t[20] = s, t[21] = u, t[22] = n, t[23] = _, t[24] = v) : v = t[24], v;
20799
- }, GI = q.lazy(() => import("./ConnectedDataExplorerComponent-qIKbwYin.js")), KI = uM("marimo-data-explorer").withData(B({
20799
+ }, GI = q.lazy(() => import("./ConnectedDataExplorerComponent-C9OF_75w.js")), KI = uM("marimo-data-explorer").withData(B({
20800
20800
  label: V().nullish(),
20801
20801
  data: V()
20802
20802
  })).renderer((e) => /* @__PURE__ */ (0, J.jsx)(GI, {
@@ -20808,7 +20808,7 @@ var HI = class {
20808
20808
  too_many_values: !1
20809
20809
  })), XI = (e) => {
20810
20810
  let t = (0, Y.c)(4), { type: n } = e, r;
20811
- t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, J.jsx)(hv, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, J.jsx)(_v, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, J.jsx)(gi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, J.jsx)(yi, { size: 14 }) : /* @__PURE__ */ (0, J.jsx)(Qe, { size: 14 }), t[0] = n, t[1] = r);
20811
+ t[0] === n ? r = t[1] : (r = () => n.startsWith("int") || n.startsWith("float") || n.startsWith("uint") || n.startsWith("number") || n.startsWith("complex") ? /* @__PURE__ */ (0, J.jsx)(hv, { size: 14 }) : n.startsWith("object") || n.startsWith("string") ? /* @__PURE__ */ (0, J.jsx)(_v, { size: 14 }) : n.startsWith("date") || n.startsWith("time") ? /* @__PURE__ */ (0, J.jsx)(gi, { size: 14 }) : n.startsWith("bool") ? /* @__PURE__ */ (0, J.jsx)(yi, { size: 14 }) : /* @__PURE__ */ (0, J.jsx)(ze, { size: 14 }), t[0] = n, t[1] = r);
20812
20812
  let i = r, a;
20813
20813
  return t[2] === i ? a = t[3] : (a = /* @__PURE__ */ (0, J.jsx)("div", {
20814
20814
  className: "border p-px border-border bg-(--slate-2) flex items-center justify-center rounded",
@@ -21286,7 +21286,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21286
21286
  "to automatically apply transformations."
21287
21287
  ] })]
21288
21288
  }),
21289
- children: /* @__PURE__ */ (0, J.jsx)(Oe, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
21289
+ children: /* @__PURE__ */ (0, J.jsx)(Ne, { className: "w-3 h-3 text-muted-foreground hover:text-foreground cursor-help" })
21290
21290
  })]
21291
21291
  })
21292
21292
  ]
@@ -21305,7 +21305,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21305
21305
  children: [/* @__PURE__ */ (0, J.jsx)("div", {
21306
21306
  className: "grow text-ellipsis",
21307
21307
  children: Pi.startCase(e.type)
21308
- }), /* @__PURE__ */ (0, J.jsx)(te, {
21308
+ }), /* @__PURE__ */ (0, J.jsx)(xe, {
21309
21309
  className: "w-3 h-3 hover-action text-muted-foreground hover:text-destructive",
21310
21310
  onClick: (e) => {
21311
21311
  o(t), e.stopPropagation();
@@ -21381,7 +21381,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21381
21381
  }), t[9] = i, t[10] = l, t[11] = u) : u = t[11], u;
21382
21382
  }, pL = {
21383
21383
  aggregate: At,
21384
- column_conversion: ht,
21384
+ column_conversion: st,
21385
21385
  filter_rows: wr,
21386
21386
  group_by: jv,
21387
21387
  rename_column: Ga,
@@ -21392,7 +21392,7 @@ var uL = ({ initialValue: e, columns: t, onChange: n, onInvalidChange: r, getCol
21392
21392
  explode_columns: gv,
21393
21393
  expand_dict: Sv,
21394
21394
  unique: bv,
21395
- pivot: we
21395
+ pivot: Te
21396
21396
  };
21397
21397
  function mL(e) {
21398
21398
  e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
@@ -21493,7 +21493,7 @@ var hL = uM("marimo-dataframe").withData(B({
21493
21493
  t[20] === O ? z = t[21] : (z = O && /* @__PURE__ */ (0, J.jsxs)(er, {
21494
21494
  value: "sql-code",
21495
21495
  className: "text-xs py-1",
21496
- children: [/* @__PURE__ */ (0, J.jsx)(Ke, { className: "w-3 h-3 mr-2" }), "SQL Code"]
21496
+ children: [/* @__PURE__ */ (0, J.jsx)(gt, { className: "w-3 h-3 mr-2" }), "SQL Code"]
21497
21497
  }), t[20] = O, t[21] = z);
21498
21498
  let re;
21499
21499
  t[22] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ (0, J.jsx)("div", { className: "grow" }), t[22] = re) : re = t[22];
@@ -21668,12 +21668,12 @@ var xL = {
21668
21668
  python: Cv,
21669
21669
  code: Cv,
21670
21670
  json: Sv,
21671
- text: Ne,
21671
+ text: me,
21672
21672
  image: Mv,
21673
21673
  audio: wv,
21674
21674
  video: Tv,
21675
21675
  data: Ev,
21676
- pdf: Ne,
21676
+ pdf: me,
21677
21677
  zip: Dv,
21678
21678
  unknown: Fa
21679
21679
  };
@@ -21733,7 +21733,7 @@ function TL(e) {
21733
21733
  let s = !r, c;
21734
21734
  t[2] === s ? c = t[3] : (c = l({ "hidden group-hover:flex group-focus:flex": s }), t[2] = s, t[3] = c);
21735
21735
  let u;
21736
- t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, J.jsx)(xe, {
21736
+ t[4] !== r || t[5] !== e || t[6] !== i || t[7] !== c ? (u = /* @__PURE__ */ (0, J.jsx)(A, {
21737
21737
  checked: r,
21738
21738
  "aria-label": e,
21739
21739
  tabIndex: -1,
@@ -21760,7 +21760,7 @@ function TL(e) {
21760
21760
  }), t[18] = a, t[19] = s), s;
21761
21761
  }
21762
21762
  var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i, label: a, restrictNavigation: o, list_directory: s, host: c }) => {
21763
- let [u, d] = nn(n), [f, p] = (0, q.useState)(!1), [m, h] = (0, q.useState)(!1), [g, v] = (0, q.useState)(0), y = (0, q.useRef)([]), b = (0, q.useRef)(null), x = (0, q.useRef)(!1), C = c.closest(`[${pe}]`)?.getAttribute(pe), { data: w, error: T, isPending: E } = Eh(() => s({ path: u }), [u, C]);
21763
+ let [u, d] = nn(n), [f, p] = (0, q.useState)(!1), [m, h] = (0, q.useState)(!1), [g, v] = (0, q.useState)(0), y = (0, q.useRef)([]), b = (0, q.useRef)(null), x = (0, q.useRef)(!1), C = c.closest(`[${rt}]`)?.getAttribute(rt), { data: w, error: T, isPending: E } = Eh(() => s({ path: u }), [u, C]);
21764
21764
  (0, q.useEffect)(() => {
21765
21765
  if (!E) {
21766
21766
  h(!1);
@@ -21777,20 +21777,20 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21777
21777
  O !== D && (k(D), v(0)), (0, q.useLayoutEffect)(() => {
21778
21778
  x.current && (x.current = !1, y.current[0]?.focus());
21779
21779
  }, [D]);
21780
- let A = w?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", P = A.filter((e) => M && e.is_directory || N && !e.is_directory), L = P.length > 0 && P.every((e) => j.has(e.path));
21780
+ let A = w?.files ?? [], j = new Set(e.map((e) => e.path)), M = r === "directory" || r === "all", N = r === "file" || r === "all", F = A.filter((e) => M && e.is_directory || N && !e.is_directory), I = F.length > 0 && F.every((e) => j.has(e.path));
21781
21781
  if (!w && T) return /* @__PURE__ */ (0, J.jsx)(Im, {
21782
21782
  kind: "danger",
21783
21783
  children: T.message
21784
21784
  });
21785
- let ee = I.guessDeliminator(n).deliminator, te = e.map((e) => /* @__PURE__ */ (0, J.jsx)("li", { children: e.path }, e.id));
21785
+ let L = ee.guessDeliminator(n).deliminator, te = e.map((e) => /* @__PURE__ */ (0, J.jsx)("li", { children: e.path }, e.id));
21786
21786
  function R(e) {
21787
21787
  if (f) return;
21788
21788
  if (p(!0), e === wL) {
21789
- if (u === ee) {
21789
+ if (u === L) {
21790
21790
  p(!1);
21791
21791
  return;
21792
21792
  }
21793
- e = ne.dirname(u), e === "" && (e = ee);
21793
+ e = ie.dirname(u), e === "" && (e = L);
21794
21794
  }
21795
21795
  let t = e.length < n.length;
21796
21796
  if (o && t) {
@@ -21803,7 +21803,7 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21803
21803
  }
21804
21804
  x.current = b.current?.contains(document.activeElement) ?? !1, d(e), p(!1);
21805
21805
  }
21806
- function z({ path: e, name: t, isDirectory: n }) {
21806
+ function ne({ path: e, name: t, isDirectory: n }) {
21807
21807
  return {
21808
21808
  id: e,
21809
21809
  name: t,
@@ -21811,22 +21811,22 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21811
21811
  is_directory: n
21812
21812
  };
21813
21813
  }
21814
- function re({ path: n, name: r, isDirectory: a }) {
21815
- let o = z({
21814
+ function z({ path: n, name: r, isDirectory: a }) {
21815
+ let o = ne({
21816
21816
  path: n,
21817
21817
  name: r,
21818
21818
  isDirectory: a
21819
21819
  });
21820
21820
  j.has(n) ? t(e.filter((e) => e.path !== n)) : t(i ? [...e, o] : [o]);
21821
21821
  }
21822
- function ie() {
21823
- t(e.filter((e) => ne.dirname(e.path) !== u));
21822
+ function re() {
21823
+ t(e.filter((e) => ie.dirname(e.path) !== u));
21824
21824
  }
21825
21825
  function ae() {
21826
21826
  let n = [];
21827
21827
  for (let e of A) {
21828
21828
  if (!M && e.is_directory || j.has(e.path)) continue;
21829
- let t = z({
21829
+ let t = ne({
21830
21830
  path: e.path,
21831
21831
  name: e.name,
21832
21832
  isDirectory: e.is_directory
@@ -21846,7 +21846,7 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21846
21846
  }, ...A.map((e) => {
21847
21847
  let t = e.path;
21848
21848
  t.startsWith("//") && (t = t.slice(1));
21849
- let n = M && e.is_directory || N && !e.is_directory, r = j.has(t), i = e.is_directory ? "directory" : bL(e.name), a = () => re({
21849
+ let n = M && e.is_directory || N && !e.is_directory, r = j.has(t), i = e.is_directory ? "directory" : bL(e.name), a = () => z({
21850
21850
  path: t,
21851
21851
  name: e.name,
21852
21852
  isDirectory: e.is_directory
@@ -21887,17 +21887,17 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21887
21887
  }
21888
21888
  let { parentDirectories: le } = SL({
21889
21889
  path: u,
21890
- delimiter: ee,
21890
+ delimiter: L,
21891
21891
  initialPath: n,
21892
21892
  restrictNavigation: o
21893
- }), ue = r === "all" ? ke.of("file", "folder") : r === "directory" ? ke.of("folder") : ke.of("file");
21893
+ }), ue = r === "all" ? Pe.of("file", "folder") : r === "directory" ? Pe.of("folder") : Pe.of("file");
21894
21894
  return /* @__PURE__ */ (0, J.jsxs)("div", { children: [
21895
21895
  T && /* @__PURE__ */ (0, J.jsx)(Im, {
21896
21896
  kind: "danger",
21897
21897
  children: T.message
21898
21898
  }),
21899
21899
  (() => {
21900
- let e = a ?? `Select ${ue.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, J.jsx)(Lm, { children: F({ html: e }) });
21900
+ let e = a ?? `Select ${ue.join(" and ", 2)}...`, t = /* @__PURE__ */ (0, J.jsx)(Lm, { children: P({ html: e }) });
21901
21901
  return i ? /* @__PURE__ */ (0, J.jsxs)("div", {
21902
21902
  className: "flex items-center justify-between border px-2",
21903
21903
  children: [/* @__PURE__ */ (0, J.jsx)("div", {
@@ -21906,8 +21906,8 @@ var EL = ({ value: e, setValue: t, initialPath: n, selectionMode: r, multiple: i
21906
21906
  }), /* @__PURE__ */ (0, J.jsx)("div", { children: /* @__PURE__ */ (0, J.jsx)(_, {
21907
21907
  size: "xs",
21908
21908
  variant: "link",
21909
- onClick: L ? ie : ae,
21910
- children: L ? "Deselect all" : "Select all"
21909
+ onClick: I ? re : ae,
21910
+ children: I ? "Deselect all" : "Select all"
21911
21911
  }) })]
21912
21912
  }) : t;
21913
21913
  })(),
@@ -24111,7 +24111,7 @@ var uz = (e) => {
24111
24111
  size: "xs"
24112
24112
  }), t[15] = a) : a = t[15];
24113
24113
  let o;
24114
- t[16] === n ? o = t[17] : (o = F({ html: n }), t[16] = n, t[17] = o);
24114
+ t[16] === n ? o = t[17] : (o = P({ html: n }), t[16] = n, t[17] = o);
24115
24115
  let c;
24116
24116
  t[18] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, J.jsx)(Kv, {
24117
24117
  size: 14,
@@ -24175,9 +24175,9 @@ var uz = (e) => {
24175
24175
  let O;
24176
24176
  t[43] === D ? O = t[44] : (O = /* @__PURE__ */ (0, J.jsx)("input", { ...D }), t[43] = D, t[44] = O);
24177
24177
  let k;
24178
- t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, J.jsxs)("span", { children: ["To re-upload: ", F({ html: S })] }) : /* @__PURE__ */ (0, J.jsx)("span", {
24178
+ t[45] !== S || t[46] !== x ? (k = x ? /* @__PURE__ */ (0, J.jsxs)("span", { children: ["To re-upload: ", P({ html: S })] }) : /* @__PURE__ */ (0, J.jsx)("span", {
24179
24179
  className: "mt-0",
24180
- children: F({ html: S })
24180
+ children: P({ html: S })
24181
24181
  }), t[45] = S, t[46] = x, t[47] = k) : k = t[47];
24182
24182
  let A = g && "text-primary", j = _ && "text-destructive", M;
24183
24183
  t[48] !== A || t[49] !== j ? (M = l(A, j), t[48] = A, t[49] = j, t[50] = M) : M = t[50];
@@ -24186,8 +24186,8 @@ var uz = (e) => {
24186
24186
  strokeWidth: 1.4,
24187
24187
  className: M
24188
24188
  }), t[51] = M, t[52] = N);
24189
- let P = g && "text-primary", I = _ && "text-destructive", L;
24190
- t[53] !== P || t[54] !== I ? (L = l(P, I), t[53] = P, t[54] = I, t[55] = L) : L = t[55];
24189
+ let F = g && "text-primary", I = _ && "text-destructive", L;
24190
+ t[53] !== F || t[54] !== I ? (L = l(F, I), t[53] = F, t[54] = I, t[55] = L) : L = t[55];
24191
24191
  let ee;
24192
24192
  t[56] === L ? ee = t[57] : (ee = /* @__PURE__ */ (0, J.jsx)(Bv, {
24193
24193
  strokeWidth: 1.4,
@@ -24338,7 +24338,7 @@ var _z = uM("marimo-form").withData(B({
24338
24338
  let j;
24339
24339
  t[11] === o ? j = t[12] : (j = o === null ? null : /* @__PURE__ */ (0, J.jsx)("div", {
24340
24340
  className: "text-center",
24341
- children: F({ html: o })
24341
+ children: P({ html: o })
24342
24342
  }), t[11] = o, t[12] = j);
24343
24343
  let M;
24344
24344
  t[13] === C ? M = t[14] : (M = C != null && /* @__PURE__ */ (0, J.jsx)(Im, {
@@ -24348,17 +24348,17 @@ var _z = uM("marimo-form").withData(B({
24348
24348
  }), t[13] = C, t[14] = M);
24349
24349
  let N;
24350
24350
  t[15] === n ? N = t[16] : (N = /* @__PURE__ */ (0, J.jsx)("div", { children: n }), t[15] = n, t[16] = N);
24351
- let P;
24352
- t[17] !== h || t[18] !== g || t[19] !== m ? (P = m && bz(/* @__PURE__ */ (0, J.jsx)(_, {
24351
+ let F;
24352
+ t[17] !== h || t[18] !== g || t[19] !== m ? (F = m && bz(/* @__PURE__ */ (0, J.jsx)(_, {
24353
24353
  "data-testid": "marimo-plugin-form-clear-button",
24354
24354
  variant: "text",
24355
24355
  onClick: (e) => {
24356
24356
  e.preventDefault(), E();
24357
24357
  },
24358
24358
  children: h
24359
- }), g), t[17] = h, t[18] = g, t[19] = m, t[20] = P) : P = t[20];
24359
+ }), g), t[17] = h, t[18] = g, t[19] = m, t[20] = F) : F = t[20];
24360
24360
  let I = f || c, L;
24361
- t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, J.jsx)(re, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = L);
24361
+ t[21] === c ? L = t[22] : (L = c && /* @__PURE__ */ (0, J.jsx)(Ae, { className: "h-4 w-4 mr-2 animate-spin" }), t[21] = c, t[22] = L);
24362
24362
  let ee;
24363
24363
  t[23] !== u || t[24] !== I || t[25] !== L || t[26] !== S ? (ee = /* @__PURE__ */ (0, J.jsxs)(_, {
24364
24364
  "data-testid": "marimo-plugin-form-submit-button",
@@ -24370,10 +24370,10 @@ var _z = uM("marimo-form").withData(B({
24370
24370
  let te;
24371
24371
  t[28] !== d || t[29] !== ee ? (te = bz(ee, d), t[28] = d, t[29] = ee, t[30] = te) : te = t[30];
24372
24372
  let R;
24373
- t[31] !== te || t[32] !== P ? (R = /* @__PURE__ */ (0, J.jsxs)("div", {
24373
+ t[31] !== te || t[32] !== F ? (R = /* @__PURE__ */ (0, J.jsxs)("div", {
24374
24374
  className: "flex justify-end gap-2 font-code",
24375
- children: [P, te]
24376
- }), t[31] = te, t[32] = P, t[33] = R) : R = t[33];
24375
+ children: [F, te]
24376
+ }), t[31] = te, t[32] = F, t[33] = R) : R = t[33];
24377
24377
  let ne;
24378
24378
  t[34] !== R || t[35] !== k || t[36] !== j || t[37] !== M || t[38] !== N ? (ne = /* @__PURE__ */ (0, J.jsxs)("div", {
24379
24379
  className: k,
@@ -26757,7 +26757,7 @@ var CV = (e) => {
26757
26757
  t[11] === p ? e = t[12] : (e = (e, t) => /* @__PURE__ */ (0, J.jsx)(er, {
26758
26758
  value: t.toString(),
26759
26759
  className: l(p && "w-full justify-start"),
26760
- children: F({ html: e })
26760
+ children: P({ html: e })
26761
26761
  }, t), t[11] = p, t[12] = e), b = n.map(e), t[8] = p, t[9] = n, t[10] = b;
26762
26762
  } else b = t[10];
26763
26763
  let x;
@@ -26925,7 +26925,7 @@ var kV = class {
26925
26925
  passwordHasValue: W().optional()
26926
26926
  });
26927
26927
  render(e) {
26928
- let t = e.data.kind === "password" ? e.host.closest(`[${pe}]`)?.getAttribute(pe) : void 0;
26928
+ let t = e.data.kind === "password" ? e.host.closest(`[${rt}]`)?.getAttribute(rt) : void 0;
26929
26929
  return /* @__PURE__ */ (0, J.jsx)(NV, {
26930
26930
  ...e.data,
26931
26931
  value: e.value,
@@ -27043,7 +27043,7 @@ function PV(e, t) {
27043
27043
  }
27044
27044
  //#endregion
27045
27045
  //#region src/plugins/impl/vega/VegaPlugin.tsx
27046
- var FV = q.lazy(() => import("./vega-component-D-IXRnlx.js")), IV = class {
27046
+ var FV = q.lazy(() => import("./vega-component-CPehZbUb.js")), IV = class {
27047
27047
  tagName = "marimo-vega";
27048
27048
  validator = B({
27049
27049
  spec: B({}).passthrough().transform((e) => e),
@@ -27078,11 +27078,11 @@ var FV = q.lazy(() => import("./vega-component-D-IXRnlx.js")), IV = class {
27078
27078
  let t = (0, Y.c)(8), { labels: n, multiple: r, children: i } = e, a = r ? "multiple" : "single", o;
27079
27079
  if (t[0] !== i || t[1] !== n) {
27080
27080
  let e;
27081
- t[3] === n ? e = t[4] : (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)(vt, {
27081
+ t[3] === n ? e = t[4] : (e = (e, t) => /* @__PURE__ */ (0, J.jsxs)(yt, {
27082
27082
  value: t.toString(),
27083
- children: [/* @__PURE__ */ (0, J.jsx)(xt, {
27083
+ children: [/* @__PURE__ */ (0, J.jsx)(wt, {
27084
27084
  className: "py-2 text-md",
27085
- children: F({ html: n[t] })
27085
+ children: P({ html: n[t] })
27086
27086
  }), /* @__PURE__ */ (0, J.jsx)(Fe, {
27087
27087
  className: "text-md",
27088
27088
  children: e
@@ -27090,7 +27090,7 @@ var FV = q.lazy(() => import("./vega-component-D-IXRnlx.js")), IV = class {
27090
27090
  }, t), t[3] = n, t[4] = e), o = q.Children.map(i, e), t[0] = i, t[1] = n, t[2] = o;
27091
27091
  } else o = t[2];
27092
27092
  let s;
27093
- return t[5] !== o || t[6] !== a ? (s = /* @__PURE__ */ (0, J.jsx)(Je, {
27093
+ return t[5] !== o || t[6] !== a ? (s = /* @__PURE__ */ (0, J.jsx)(Ze, {
27094
27094
  type: a,
27095
27095
  className: "text-muted-foreground",
27096
27096
  collapsible: !0,
@@ -27195,7 +27195,7 @@ var VV = class {
27195
27195
  } finally {
27196
27196
  r(!1);
27197
27197
  }
27198
- }, a = n ? re : mr, o = e.label ? F({ html: e.label }) : "Download";
27198
+ }, a = n ? Ae : mr, o = e.label ? P({ html: e.label }) : "Download";
27199
27199
  return /* @__PURE__ */ (0, J.jsxs)("a", {
27200
27200
  href: e.data,
27201
27201
  download: e.filename ?? "",
@@ -27265,7 +27265,7 @@ var VV = class {
27265
27265
  return t[6] === f ? e = t[7] : (e = /* @__PURE__ */ (0, J.jsx)(Pm, { error: f }), t[6] = f, t[7] = e), e;
27266
27266
  }
27267
27267
  let m;
27268
- t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, J.jsx)(re, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : d && F({ html: d.html }), t[8] = d, t[9] = p, t[10] = r, t[11] = m) : m = t[11];
27268
+ t[8] !== d || t[9] !== p || t[10] !== r ? (m = p && r ? /* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-12 h-12 animate-spin text-primary my-4 mx-4" }) : d && P({ html: d.html }), t[8] = d, t[9] = p, t[10] = r, t[11] = m) : m = t[11];
27269
27269
  let h;
27270
27270
  return t[12] !== s || t[13] !== m ? (h = /* @__PURE__ */ (0, J.jsx)("div", {
27271
27271
  ref: s,
@@ -27304,11 +27304,11 @@ var VV = class {
27304
27304
  themeVariables: e.data.theme_variables
27305
27305
  });
27306
27306
  }
27307
- }, oH = (0, q.lazy)(() => import("./mermaid-BsHdQeQf.js"));
27307
+ }, oH = (0, q.lazy)(() => import("./mermaid-Bi23Ibnw.js"));
27308
27308
  //#endregion
27309
27309
  //#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
27310
27310
  function sH() {
27311
- return P() === "edit" ? document.getElementById("App") : void 0;
27311
+ return M() === "edit" ? document.getElementById("App") : void 0;
27312
27312
  }
27313
27313
  function cH(e) {
27314
27314
  let t = (0, Y.c)(7), [n, r] = (0, q.useState)(void 0), [i, a] = (0, q.useState)(void 0), o = (0, q.useRef)(null), s = (0, q.useRef)(null), c;
@@ -27320,7 +27320,7 @@ function cH(e) {
27320
27320
  let n = e.target;
27321
27321
  e.isIntersecting ? (!s.current || n.getBoundingClientRect().top < s.current.getBoundingClientRect().top) && (s.current = n, t = !0) : n === s.current && (s.current = null, t = !0);
27322
27322
  }), t && s.current) {
27323
- let e = mt(s.current), t = "id" in e ? e.id : e.path;
27323
+ let e = Ge(s.current), t = "id" in e ? e.id : e.path;
27324
27324
  r(t), a(l.current.get(s.current));
27325
27325
  }
27326
27326
  }, {
@@ -27329,7 +27329,7 @@ function cH(e) {
27329
27329
  threshold: 0
27330
27330
  }), e.forEach((t) => {
27331
27331
  if (t) {
27332
- let n = mt(t[0]), r = e.map(lH).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
27332
+ let n = Ge(t[0]), r = e.map(lH).filter((e) => "id" in n ? e.id === n.id : e.textContent === t[0].textContent).indexOf(t[0]);
27333
27333
  l.current.set(t[0], r), o.current?.observe(t[0]);
27334
27334
  }
27335
27335
  }), () => {
@@ -27374,7 +27374,7 @@ function fH(e, t) {
27374
27374
  //#endregion
27375
27375
  //#region src/components/editor/chrome/panels/outline/floating-outline.tsx
27376
27376
  var pH = () => {
27377
- let e = (0, Y.c)(19), { items: t } = Xm(z), n;
27377
+ let e = (0, Y.c)(19), { items: t } = Xm(te), n;
27378
27378
  e[0] === t ? n = e[1] : (n = uH(t), e[0] = t, e[1] = n);
27379
27379
  let { activeHeaderId: r, activeOccurrences: i } = cH(n), [a, o] = q.useState(!1);
27380
27380
  if (t.length < 2) return null;
@@ -27445,7 +27445,7 @@ var pH = () => {
27445
27445
  children: s
27446
27446
  }), t[8] = o, t[9] = s, t[10] = c) : c = t[10], c;
27447
27447
  }, gH = (e) => {
27448
- let t = (0, Y.c)(12), { label: n } = e, { items: r } = Xm(z), i;
27448
+ let t = (0, Y.c)(12), { label: n } = e, { items: r } = Xm(te), i;
27449
27449
  t[0] === r ? i = t[1] : (i = uH(r), t[0] = r, t[1] = i);
27450
27450
  let { activeHeaderId: a, activeOccurrences: o } = cH(i);
27451
27451
  if (r.length === 0) {
@@ -28258,7 +28258,7 @@ var pH = () => {
28258
28258
  a
28259
28259
  ]
28260
28260
  })]
28261
- }) : /* @__PURE__ */ (0, J.jsx)(re, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
28261
+ }) : /* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-12 h-12 animate-spin text-primary mx-auto" }), t[0] = i, t[1] = a, t[2] = l) : l = t[2];
28262
28262
  let u = l, d;
28263
28263
  t[3] !== o || t[4] !== i || t[5] !== s || t[6] !== a ? (d = () => {
28264
28264
  let e = typeof i == "number" && a != null && i >= a, t = [];
@@ -28274,12 +28274,12 @@ var pH = () => {
28274
28274
  let f = d, p = `flex flex-col ${c} max-w-sm p-6 mx-auto`, m;
28275
28275
  t[8] === n ? m = t[9] : (m = n && /* @__PURE__ */ (0, J.jsx)("div", {
28276
28276
  className: "text-lg font-bold text-foreground/60",
28277
- children: F({ html: n })
28277
+ children: P({ html: n })
28278
28278
  }), t[8] = n, t[9] = m);
28279
28279
  let h;
28280
28280
  t[10] === r ? h = t[11] : (h = r && /* @__PURE__ */ (0, J.jsx)("div", {
28281
28281
  className: "text-sm text-muted-foreground",
28282
- children: F({ html: r })
28282
+ children: P({ html: r })
28283
28283
  }), t[10] = r, t[11] = h);
28284
28284
  let g;
28285
28285
  t[12] === u ? g = t[13] : (g = u(), t[12] = u, t[13] = g);
@@ -28568,7 +28568,7 @@ var wH = (/* @__PURE__ */ i(((e) => {
28568
28568
  let e = yn(u);
28569
28569
  if (e?.[0]) {
28570
28570
  let { mimetype: t, data: n } = e[0];
28571
- return t !== "text/html" && c.warn(`Expected text/html, got ${t}`), F({
28571
+ return t !== "text/html" && c.warn(`Expected text/html, got ${t}`), P({
28572
28572
  html: n,
28573
28573
  alwaysSanitizeHtml: !0
28574
28574
  });
@@ -31853,7 +31853,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
31853
31853
  cellId: t.id,
31854
31854
  output: t.output,
31855
31855
  status: t.status,
31856
- stale: lt(t, !1),
31856
+ stale: mt(t, !1),
31857
31857
  isScrollable: o,
31858
31858
  side: s,
31859
31859
  hidden: t.errored || t.interrupted || t.stopped
@@ -31929,7 +31929,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
31929
31929
  cellId: e.id,
31930
31930
  output: e.output,
31931
31931
  status: e.status,
31932
- stale: lt(e, !1),
31932
+ stale: mt(e, !1),
31933
31933
  isScrollable: !1,
31934
31934
  hidden: !1
31935
31935
  }, e.id), t[130] = a, t[131] = r), ge = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [le, /* @__PURE__ */ (0, J.jsx)("div", {
@@ -31987,7 +31987,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
31987
31987
  output: e.output,
31988
31988
  isScrollable: !1,
31989
31989
  status: e.status,
31990
- stale: lt(e, !1),
31990
+ stale: mt(e, !1),
31991
31991
  hidden: !1
31992
31992
  })
31993
31993
  }, e.id), t[146] = n.columns, t[147] = n.rowHeight, t[148] = a, t[149] = m) : m = t[149], fe = s.map(m);
@@ -32009,7 +32009,7 @@ var GU = (0, BU.WidthProvider)(BU.Responsive), KU = [0, 0], qU = "grid-drag-hand
32009
32009
  return t[158] !== he || t[159] !== ve ? (ye = /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [he, ve] }), t[158] = he, t[159] = ve, t[160] = ye) : ye = t[160], ye;
32010
32010
  }, YU = (0, q.memo)((e) => {
32011
32011
  let t = (0, Y.c)(21), { output: n, cellId: r, status: i, mode: a, code: o, hidden: s, isScrollable: c, side: u, className: d, stale: f } = e, p;
32012
- t[0] === i ? p = t[1] : (p = Re(i), t[0] = i, t[1] = p);
32012
+ t[0] === i ? p = t[1] : (p = ut(i), t[0] = i, t[1] = p);
32013
32013
  let m = p;
32014
32014
  if ((n == null || n.data === "") && a !== "read") {
32015
32015
  let e;
@@ -32115,7 +32115,7 @@ var XU = (e) => {
32115
32115
  t[21] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsxs)(Lm, {
32116
32116
  className: "flex flex-row items-center gap-1",
32117
32117
  htmlFor: "lock",
32118
- children: [/* @__PURE__ */ (0, J.jsx)(ze, { className: "h-3 w-3" }), "Bordered"]
32118
+ children: [/* @__PURE__ */ (0, J.jsx)(Ve, { className: "h-3 w-3" }), "Bordered"]
32119
32119
  }), t[21] = h) : h = t[21];
32120
32120
  let g;
32121
32121
  t[22] !== n || t[23] !== r ? (g = (e) => {
@@ -32433,10 +32433,10 @@ var cW = (e) => {
32433
32433
  //#endregion
32434
32434
  //#region src/components/editor/cell/useDeleteCell.tsx
32435
32435
  function lW() {
32436
- let e = (0, Y.c)(4), { deleteCell: t, undoDeleteCell: n } = Me(), { sendDeleteCell: r } = pt(), i;
32436
+ let e = (0, Y.c)(4), { deleteCell: t, undoDeleteCell: n } = Me(), { sendDeleteCell: r } = We(), i;
32437
32437
  return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
32438
- if ($m.get(L)) return;
32439
- let { cellId: i } = e, a = ($m.get(ut).cellData[i]?.code ?? "").trim() === "";
32438
+ if ($m.get(I)) return;
32439
+ let { cellId: i } = e, a = ($m.get(dt).cellData[i]?.code ?? "").trim() === "";
32440
32440
  if (t({ cellId: i }), r({ cellId: i }).catch(() => {
32441
32441
  n();
32442
32442
  }), !a) {
@@ -34966,7 +34966,7 @@ function Zq() {
34966
34966
  return /* @__PURE__ */ new Set();
34967
34967
  }
34968
34968
  var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skippedIds: i, noOutputIds: a, slideTypes: o, onSlideClick: s }) => {
34969
- let l = _e(), { moveCellToIndex: u, createNewCell: d } = Me(), f = lW(), p = (0, q.useRef)(null), m = Xq(p), [h, g] = (0, q.useState)(null), [_, v] = (0, q.useState)(null), y = Gq(t), b = (e, t) => {
34969
+ let l = pe(), { moveCellToIndex: u, createNewCell: d } = Me(), f = lW(), p = (0, q.useRef)(null), m = Xq(p), [h, g] = (0, q.useState)(null), [_, v] = (0, q.useState)(null), y = Gq(t), b = (e, t) => {
34970
34970
  d({
34971
34971
  cellId: e,
34972
34972
  before: t,
@@ -35050,7 +35050,7 @@ var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
35050
35050
  ref: p,
35051
35051
  children: [/* @__PURE__ */ (0, J.jsxs)("div", {
35052
35052
  className: "text-xs text-gray-500 flex items-center gap-0.5",
35053
- children: [/* @__PURE__ */ (0, J.jsx)(Oe, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
35053
+ children: [/* @__PURE__ */ (0, J.jsx)(Ne, { className: "h-3 w-3" }), "Reordering is not supported in multi-column mode"]
35054
35054
  }), e.map((e, t) => /* @__PURE__ */ (0, J.jsx)(tJ, {
35055
35055
  cell: e,
35056
35056
  dimensions: y,
@@ -35165,7 +35165,7 @@ var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
35165
35165
  t[51] === u ? F = t[52] : (F = u && /* @__PURE__ */ (0, J.jsxs)(tr, {
35166
35166
  variant: "danger",
35167
35167
  onSelect: u,
35168
- children: [/* @__PURE__ */ (0, J.jsx)(te, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
35168
+ children: [/* @__PURE__ */ (0, J.jsx)(xe, { className: "mr-2 h-3.5 w-3.5" }), "Delete cell"]
35169
35169
  }), t[51] = u, t[52] = F);
35170
35170
  let I;
35171
35171
  t[53] !== N || t[54] !== F ? (I = /* @__PURE__ */ (0, J.jsxs)(rr, { children: [
@@ -35238,7 +35238,7 @@ var Qq = ({ cells: e, thumbnailWidth: t, canReorder: n, activeCellId: r, skipped
35238
35238
  cellId: n.id,
35239
35239
  status: n.status,
35240
35240
  output: n.output,
35241
- stale: lt(n, !1)
35241
+ stale: mt(n, !1)
35242
35242
  })
35243
35243
  }), t[30] = n, t[31] = x, t[32] = y, t[33] = S, t[34] = k, t[35] = b, t[36] = P) : P = t[36];
35244
35244
  let F;
@@ -35311,8 +35311,8 @@ function lJ(e) {
35311
35311
  }
35312
35312
  //#endregion
35313
35313
  //#region src/components/editor/renderers/slides-layout/slides-layout.tsx
35314
- var uJ = q.lazy(() => import("./reveal-component-DVMzBxwv.js")), dJ = (e) => {
35315
- let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Xm(me), s = a === "read" || o, c = Xm(Ae) > 1, [l, u] = (0, q.useState)(null), d;
35314
+ var uJ = q.lazy(() => import("./reveal-component-DwuC-61O.js")), dJ = (e) => {
35315
+ let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Xm(it), s = a === "read" || o, c = Xm(ke) > 1, [l, u] = (0, q.useState)(null), d;
35316
35316
  t[0] !== i || t[1] !== n ? (d = sW(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
35317
35317
  let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
35318
35318
  t[3] !== l || t[4] !== f || t[5] !== g ? (_ = l ? f.findIndex((e) => e.id === l) : g, t[3] = l, t[4] = f, t[5] = g, t[6] = _) : _ = t[6];
@@ -35518,7 +35518,7 @@ var bJ = (e) => {
35518
35518
  let m;
35519
35519
  t[12] === n ? m = t[13] : (m = () => n("bt"), t[12] = n, t[13] = m);
35520
35520
  let h;
35521
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsx)(je, {
35521
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, J.jsx)(Oe, {
35522
35522
  fontSize: 36,
35523
35523
  className: "w-5 h-5"
35524
35524
  }), t[14] = h) : h = t[14];
@@ -35605,7 +35605,7 @@ var SJ = (e) => {
35605
35605
  name: e
35606
35606
  }), t[0] = r, t[1] = a, t[2] = o) : o = t[2];
35607
35607
  let s = CJ(n, o);
35608
- if (Ve(n)) return null;
35608
+ if (Ct(n)) return null;
35609
35609
  let c = s.focusing ? "" : "text-ellipsis", u;
35610
35610
  t[3] !== i || t[4] !== c ? (u = l("outline-hidden border hover:border-cyan-500/40 focus:border-cyan-500/40", c, i), t[3] = i, t[4] = c, t[5] = u) : u = t[5];
35611
35611
  let d;
@@ -35627,28 +35627,28 @@ function CJ(e, t) {
35627
35627
  let n = (0, Y.c)(13), [r, i] = (0, q.useState)(e), [a, o] = (0, q.useState)(!1), s;
35628
35628
  n[0] !== t || n[1] !== e ? (s = (n) => {
35629
35629
  if (n !== e) {
35630
- if (!n || Ve(n)) {
35630
+ if (!n || Ct(n)) {
35631
35631
  t(n);
35632
35632
  return;
35633
35633
  }
35634
- t(Ct(n, Ce()));
35634
+ t(Ue(n, be()));
35635
35635
  }
35636
35636
  }, n[0] = t, n[1] = e, n[2] = s) : s = n[2];
35637
35637
  let c = s, l;
35638
- n[3] === r ? l = n[4] : (l = Ve(r) ? "" : r, n[3] = r, n[4] = l);
35638
+ n[3] === r ? l = n[4] : (l = Ct(r) ? "" : r, n[3] = r, n[4] = l);
35639
35639
  let u;
35640
35640
  n[5] === Symbol.for("react.memo_cache_sentinel") ? (u = (e) => {
35641
- let t = e.target.value, n = bt(t);
35641
+ let t = e.target.value, n = ye(t);
35642
35642
  i(n);
35643
35643
  }, n[5] = u) : u = n[5];
35644
35644
  let d;
35645
35645
  n[6] === c ? d = n[7] : (d = (e) => {
35646
35646
  if (e.target instanceof HTMLInputElement) {
35647
35647
  let t = e.target.value;
35648
- c(bt(t));
35648
+ c(ye(t));
35649
35649
  } else if (e.target instanceof HTMLSpanElement) {
35650
35650
  let t = e.target.innerText.trim();
35651
- c(bt(t)), e.target.scrollLeft = 0, o(!1);
35651
+ c(ye(t)), e.target.scrollLeft = 0, o(!1);
35652
35652
  }
35653
35653
  }, n[6] = c, n[7] = d);
35654
35654
  let f;
@@ -35669,7 +35669,7 @@ function wJ(e) {
35669
35669
  }
35670
35670
  //#endregion
35671
35671
  //#region src/components/editor/output/useWrapText.ts
35672
- var TJ = de("marimo:console:wrapText", !1, Te);
35672
+ var TJ = de("marimo:console:wrapText", !1, Ee);
35673
35673
  function EJ() {
35674
35674
  let e = (0, Y.c)(3), [t, n] = Qm(TJ), r;
35675
35675
  return e[0] !== n || e[1] !== t ? (r = {
@@ -35689,7 +35689,7 @@ var OJ = (e) => {
35689
35689
  let t = (0, Y.c)(2), n;
35690
35690
  return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ (0, J.jsx)(Za, { children: /* @__PURE__ */ (0, J.jsx)(kJ, { ...e }) }), t[0] = e, t[1] = n), n;
35691
35691
  }, kJ = (e) => {
35692
- let t = (0, Y.c)(63), n = q.useRef(null), { wrapText: r, setWrapText: i } = EJ(), [a, o] = st(e.cellId), [s, c] = q.useState(""), u;
35692
+ let t = (0, Y.c)(63), n = q.useRef(null), { wrapText: r, setWrapText: i } = EJ(), [a, o] = ct(e.cellId), [s, c] = q.useState(""), u;
35693
35693
  t[0] === s ? u = t[1] : (u = {
35694
35694
  value: s,
35695
35695
  setValue: c
@@ -35700,7 +35700,7 @@ var OJ = (e) => {
35700
35700
  if (!e) return;
35701
35701
  let t = e.scrollHeight - e.clientHeight;
35702
35702
  t - e.scrollTop < 120 && (e.scrollTop = t);
35703
- }, t[2] = E) : E = t[2], (0, q.useLayoutEffect)(E), !C && Ve(h)) return null;
35703
+ }, t[2] = E) : E = t[2], (0, q.useLayoutEffect)(E), !C && Ct(h)) return null;
35704
35704
  let D, O, k, A, j, M, N, P, F, I;
35705
35705
  if (t[3] !== g || t[4] !== x || t[5] !== S || t[6] !== C || t[7] !== d || t[8] !== m || t[9] !== a || t[10] !== T || t[11] !== y || t[12] !== b || t[13] !== v || t[14] !== w || t[15] !== o || t[16] !== i || t[17] !== p || t[18] !== s || t[19] !== r) {
35706
35706
  let e = S.toReversed(), u = e.some(NJ), f = e.findIndex(PJ), h;
@@ -35871,7 +35871,7 @@ function IJ(e) {
35871
35871
  }
35872
35872
  //#endregion
35873
35873
  //#region src/core/cells/readonly-code-display.ts
35874
- var LJ = new ie(), RJ = new dt();
35874
+ var LJ = new je(), RJ = new R();
35875
35875
  function zJ(e) {
35876
35876
  let t = e.trim();
35877
35877
  return t ? LJ.isSupported(t) ? {
@@ -35891,7 +35891,7 @@ function zJ(e) {
35891
35891
  //#endregion
35892
35892
  //#region src/core/export/layout.ts
35893
35893
  async function BJ() {
35894
- return await $e(), gY();
35894
+ return await Be(), gY();
35895
35895
  }
35896
35896
  //#endregion
35897
35897
  //#region src/core/static/virtual-file-tracker.ts
@@ -35932,7 +35932,7 @@ function UJ(e) {
35932
35932
  //#endregion
35933
35933
  //#region src/core/static/download-html.ts
35934
35934
  async function WJ(e) {
35935
- let t = Le(), { includeCode: n } = e, r = await t.exportAsHTML({
35935
+ let t = lt(), { includeCode: n } = e, r = await t.exportAsHTML({
35936
35936
  download: !0,
35937
35937
  includeCode: n,
35938
35938
  files: HJ.INSTANCE.filenames(),
@@ -35978,7 +35978,7 @@ function YJ(e) {
35978
35978
  }), [...t.entries()].toSorted(([e], [t]) => e - t);
35979
35979
  }
35980
35980
  function XJ(e, t) {
35981
- let n = new fe().isSupported(e), r = t !== null && !Ie(t);
35981
+ let n = new fe().isSupported(e), r = t !== null && !Le(t);
35982
35982
  return n && r || e.trim() === "";
35983
35983
  }
35984
35984
  //#endregion
@@ -35999,7 +35999,7 @@ var ZJ = (e) => {
35999
35999
  children: h
36000
36000
  }), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
36001
36001
  }, QJ = (e) => {
36002
- let t = (0, Y.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = KJ(n.length, i), o = Xm(me), s = Xm(Xr), [c] = oh(), u = Xm(ur), d;
36002
+ let t = (0, Y.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = KJ(n.length, i), o = Xm(it), s = Xm(Xr), [c] = oh(), u = Xm(ur), d;
36003
36003
  t[0] !== o || t[1] !== u ? (d = () => qJ({
36004
36004
  showCodeInRunModePreference: u,
36005
36005
  kioskMode: o
@@ -36051,7 +36051,7 @@ var ZJ = (e) => {
36051
36051
  })
36052
36052
  }) : /* @__PURE__ */ (0, J.jsx)("div", {
36053
36053
  className: "flex-1 flex flex-col items-center justify-center py-8",
36054
- children: /* @__PURE__ */ (0, J.jsx)(re, { className: "w-8 h-8 animate-spin text-muted-foreground" })
36054
+ children: /* @__PURE__ */ (0, J.jsx)(Ae, { className: "w-8 h-8 animate-spin text-muted-foreground" })
36055
36055
  }) : /* @__PURE__ */ (0, J.jsx)(J.Fragment, { children: n.map(v) });
36056
36056
  }, t[10] = r.width, t[11] = n, t[12] = a, t[13] = s, t[14] = v, t[15] = y) : y = t[15];
36057
36057
  let b = y, x = f && m && "gap-5", S;
@@ -36082,7 +36082,7 @@ var ZJ = (e) => {
36082
36082
  ]
36083
36083
  }), t[28] = r, t[29] = a, t[30] = w, t[31] = T, t[32] = D) : D = t[32], D;
36084
36084
  }, $J = (e) => {
36085
- let t = (0, Y.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = pt(), o = rY, s = iY, c;
36085
+ let t = (0, Y.c)(26), { canShowCode: n, showCode: r, onToggleShowCode: i } = e, { readCode: a } = We(), o = rY, s = iY, c;
36086
36086
  t[0] === a ? c = t[1] : (c = async () => {
36087
36087
  let e = await a();
36088
36088
  Mr(new Blob([e.contents], { type: "text/plain" }), Ln.toPY(document.title));
@@ -36182,7 +36182,7 @@ var ZJ = (e) => {
36182
36182
  }), t[24] = p, t[25] = g), g;
36183
36183
  }, eY = (0, q.memo)((e) => {
36184
36184
  let t = (0, Y.c)(57), { output: n, consoleOutputs: r, cellOutputArea: i, cellId: a, status: o, stopped: s, errored: c, config: u, interrupted: d, staleInputs: f, runStartTimestamp: p, code: m, showCode: h, mode: g, name: _, kiosk: v, showErrorTracebacks: y } = e, b = (0, q.useRef)(null), x;
36185
- t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = lt({
36185
+ t[0] !== d || t[1] !== n || t[2] !== p || t[3] !== f || t[4] !== o ? (x = mt({
36186
36186
  status: o,
36187
36187
  output: n,
36188
36188
  interrupted: d,
@@ -36190,11 +36190,11 @@ var ZJ = (e) => {
36190
36190
  staleInputs: f
36191
36191
  }, !1), t[0] = d, t[1] = n, t[2] = p, t[3] = f, t[4] = o, t[5] = x) : x = t[5];
36192
36192
  let S = x, C;
36193
- t[6] === o ? C = t[7] : (C = Re(o), t[6] = o, t[7] = C);
36193
+ t[6] === o ? C = t[7] : (C = ut(o), t[6] = o, t[7] = C);
36194
36194
  let w = C, T = v && g !== "present", E;
36195
36195
  if (t[8] !== m || t[9] !== c || t[10] !== T || t[11] !== h || t[12] !== s) {
36196
36196
  let e = new fe().isSupported(m);
36197
- E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? gt({
36197
+ E = l("marimo-cell", "hover-actions-parent empty:invisible", !h && !T ? Ke({
36198
36198
  errored: c,
36199
36199
  stopped: s
36200
36200
  }) : {
@@ -36253,7 +36253,7 @@ var ZJ = (e) => {
36253
36253
  ]
36254
36254
  }), t[37] = D, t[38] = v, t[39] = y, t[40] = p, t[41] = h, t[42] = g, t[43] = x) : x = t[43], x;
36255
36255
  }
36256
- if (Ue({
36256
+ if (Ye({
36257
36257
  errored: c,
36258
36258
  interrupted: d,
36259
36259
  stopped: s,
@@ -36391,11 +36391,11 @@ function hY({ state: e, plugin: t, cells: n }) {
36391
36391
  }) : t.getInitialLayout(n));
36392
36392
  }
36393
36393
  function gY() {
36394
- let e = Ee(), t = $m.get(fY), { selectedLayout: n } = t;
36394
+ let e = we(), t = $m.get(fY), { selectedLayout: n } = t;
36395
36395
  if (n === "vertical") return null;
36396
36396
  let r = oY.find((e) => e.type === n);
36397
36397
  if (r === void 0) return c.error(`Unknown layout type: ${n}`), null;
36398
- let i = it(e), a = hY({
36398
+ let i = _t(e), a = hY({
36399
36399
  state: t,
36400
36400
  plugin: r,
36401
36401
  cells: i
@@ -36411,7 +36411,7 @@ function _Y(e) {
36411
36411
  let { codes: t, names: n, configs: r, cell_ids: i, last_executed_code: a, last_execution_time: o } = e, s = a || {}, c = o || {};
36412
36412
  return t.map((e, t) => {
36413
36413
  let a = i[t], o = s[a];
36414
- return qe({
36414
+ return Je({
36415
36415
  id: a,
36416
36416
  code: e,
36417
36417
  edited: o ? o !== e : !1,
@@ -36451,7 +36451,7 @@ function bY(e, t) {
36451
36451
  return;
36452
36452
  }
36453
36453
  let { objectIds: y, values: b } = yY(), x = g ? Object.fromEntries(n.map((e) => [e.id, e.code])) : void 0;
36454
- Le().sendInstantiate({
36454
+ lt().sendInstantiate({
36455
36455
  objectIds: y,
36456
36456
  values: b,
36457
36457
  autoRun: r,
@@ -36697,10 +36697,10 @@ function VY(e) {
36697
36697
  return null;
36698
36698
  }
36699
36699
  function HY(e) {
36700
- return ue(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && Array.isArray(e.cells) && e.cells.every(UY) : !1;
36700
+ return se(e) ? e.schemaVersion === 1 && typeof e.appId == "string" && Array.isArray(e.cells) && e.cells.every(UY) : !1;
36701
36701
  }
36702
36702
  function UY(e) {
36703
- return ue(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
36703
+ return se(e) ? typeof e.cellId == "string" && typeof e.code == "string" && typeof e.outputHtml == "string" && typeof e.outputMimetype == "string" && typeof e.reactive == "boolean" && typeof e.displayCode == "boolean" && typeof e.displayOutput == "boolean" : !1;
36704
36704
  }
36705
36705
  //#endregion
36706
36706
  //#region src/core/islands/components/IslandControls.tsx
@@ -36720,7 +36720,7 @@ var WY = (e) => {
36720
36720
  children: a
36721
36721
  }), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
36722
36722
  }, GY = (e) => {
36723
- let t = (0, Y.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = pt(), o;
36723
+ let t = (0, Y.c)(18), { cellId: n, codeCallback: r, visible: i } = e, { sendRun: a } = We(), o;
36724
36724
  t[0] === r ? o = t[1] : (o = () => {
36725
36725
  C(r());
36726
36726
  }, t[0] = r, t[1] = o);
@@ -36794,7 +36794,7 @@ var JY = (e) => {
36794
36794
  let t = (0, Y.c)(19), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = KY(i), s = (0, q.useRef)(null), c;
36795
36795
  t[0] === n ? c = t[1] : (c = (e) => e.cellRuntime[n], t[0] = n, t[1] = c);
36796
36796
  let l = c, u;
36797
- t[2] === l ? u = t[3] : (u = ge(ut, l), t[2] = l, t[3] = u);
36797
+ t[2] === l ? u = t[3] : (u = F(dt, l), t[2] = l, t[3] = u);
36798
36798
  let d = Xm(u), f = Xm(ri);
36799
36799
  if (YY(s, d?.status ?? "idle"), !f || !d?.output) {
36800
36800
  let e;
@@ -36804,7 +36804,7 @@ var JY = (e) => {
36804
36804
  children: a
36805
36805
  }), t[4] = a, t[5] = e), e;
36806
36806
  }
36807
- if (Ie(d.output)) {
36807
+ if (Le(d.output)) {
36808
36808
  let e;
36809
36809
  return t[6] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, J.jsx)("div", { ref: s }), t[6] = e) : e = t[6], e;
36810
36810
  }
@@ -36841,7 +36841,7 @@ var XY = (e) => {
36841
36841
  let e;
36842
36842
  return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, J.jsx)(ZY, { children: /* @__PURE__ */ (0, J.jsx)("div", {
36843
36843
  className: "absolute top-1 right-1",
36844
- children: /* @__PURE__ */ (0, J.jsx)(re, { className: "animate-spin size-4" })
36844
+ children: /* @__PURE__ */ (0, J.jsx)(Ae, { className: "animate-spin size-4" })
36845
36845
  }) }), t[0] = e) : e = t[0], e;
36846
36846
  }
36847
36847
  return null;
@@ -36884,7 +36884,7 @@ var XY = (e) => {
36884
36884
  return RY(this);
36885
36885
  }
36886
36886
  getCellIdFromIndex(e) {
36887
- let { cellIds: t } = $m.get(ut);
36887
+ let { cellIds: t } = $m.get(dt);
36888
36888
  return t.inOrderIds.at(e);
36889
36889
  }
36890
36890
  connectedCallback() {
@@ -36898,7 +36898,7 @@ var XY = (e) => {
36898
36898
  };
36899
36899
  syncCellIdsSubscription() {
36900
36900
  if (this.isReactive) {
36901
- this.unsubscribeCellIds ??= $m.sub(wt, () => {
36901
+ this.unsubscribeCellIds ??= $m.sub(Tt, () => {
36902
36902
  this.runtimeCellId = this.cellId, this.renderIsland();
36903
36903
  });
36904
36904
  return;
@@ -36911,7 +36911,7 @@ var XY = (e) => {
36911
36911
  code: r,
36912
36912
  output: t
36913
36913
  });
36914
- let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(j);
36914
+ let i = (this.querySelector(e.editorTagName)?.parentElement)?.getAttribute(ce);
36915
36915
  return {
36916
36916
  html: t,
36917
36917
  codeCallback: n && i ? () => {
@@ -36924,7 +36924,7 @@ var XY = (e) => {
36924
36924
  renderIsland() {
36925
36925
  let e = this.renderConfig;
36926
36926
  if (!e) return;
36927
- let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : F({ html: o });
36927
+ let { html: t, codeCallback: n, editor: r } = e, i = this.runtimeCellId, a = !!r, o = t.trim(), s = o === "<span></span>" || o === "" ? null : P({ html: o });
36928
36928
  if (!i) {
36929
36929
  this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, J.jsx)(Za, { children: /* @__PURE__ */ (0, J.jsx)(lh, {
36930
36930
  store: $m,
@@ -36945,7 +36945,7 @@ var XY = (e) => {
36945
36945
  getOptionalEditor() {
36946
36946
  let t = this.querySelector(e.editorTagName)?.parentNode?.outerHTML;
36947
36947
  if (t) {
36948
- let e = F({ html: t });
36948
+ let e = P({ html: t });
36949
36949
  if ((0, q.isValidElement)(e)) return e;
36950
36950
  }
36951
36951
  return null;
@@ -36970,7 +36970,7 @@ function nX() {
36970
36970
  //#region src/core/islands/bootstrap.ts
36971
36971
  async function rX(e) {
36972
36972
  let t = e.store || $m, n = e.root || document, r = e.bridge;
36973
- t.set(ct, r), t.set(M, "read"), t.set(pr, null), e.autoInitializePlugins !== !1 && RH();
36973
+ t.set(pt, r), t.set(le, "read"), t.set(pr, null), e.autoInitializePlugins !== !1 && RH();
36974
36974
  let i = Array.from(n.querySelectorAll(iv.ISLAND));
36975
36975
  if (i.length === 0) {
36976
36976
  c.log("No islands found, skipping initialization");
@@ -36978,8 +36978,8 @@ async function rX(e) {
36978
36978
  }
36979
36979
  c.log(`Initializing ${i.length} island(s)`);
36980
36980
  for (let e of i) e.classList.add(cv.NAMESPACE);
36981
- let a = T((e) => {
36982
- t.set(ut, (t) => De(t, e));
36981
+ let a = E((e) => {
36982
+ t.set(dt, (t) => De(t, e));
36983
36983
  });
36984
36984
  t.sub(ci, () => {
36985
36985
  let e = t.get(ci), r = n.querySelectorAll(iv.ISLAND);
@@ -36998,7 +36998,7 @@ async function rX(e) {
36998
36998
  }
36999
36999
  function iX(e, t, n, r) {
37000
37000
  try {
37001
- let i = rt(e);
37001
+ let i = T(e);
37002
37002
  switch (c.debug("Islands received message:", i.op), i.op) {
37003
37003
  case "banner":
37004
37004
  case "missing-package-alert":
@@ -37047,7 +37047,7 @@ function iX(e, t, n, r) {
37047
37047
  }), window.customElements?.get(iv.ISLAND) || mD(iv.ISLAND, QY);
37048
37048
  return;
37049
37049
  case "send-ui-element-message":
37050
- lD.broadcastMessage(i.data.ui_element, i.data.message, he(i.data));
37050
+ lD.broadcastMessage(i.data.ui_element, i.data.message, ue(i.data));
37051
37051
  return;
37052
37052
  case "remove-ui-elements":
37053
37053
  xY(i.data);
@@ -37061,7 +37061,7 @@ function iX(e, t, n, r) {
37061
37061
  case "alert":
37062
37062
  S({
37063
37063
  title: i.data.title,
37064
- description: F({ html: i.data.description }),
37064
+ description: P({ html: i.data.description }),
37065
37065
  variant: i.data.variant
37066
37066
  });
37067
37067
  return;
@@ -37363,7 +37363,7 @@ var xX = class {
37363
37363
  async startApps() {
37364
37364
  let e = EY(this.root, { materialize: !1 }), t = e.length === 1;
37365
37365
  c.debug(`Starting sessions for ${e.length} app(s):`, e.map((e) => `${e.id} (${e.cells.length} cells)`));
37366
- let n = (e.length === 1 && !e[0]?.payloadBacked ? R() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || FY(r) : void 0;
37366
+ let n = (e.length === 1 && !e[0]?.payloadBacked ? L() : void 0)?.notebookCode, r = t ? e[0] : void 0, i = r ? n || FY(r) : void 0;
37367
37367
  if (r && this.session?.appId === r.id && this.session.code === i) {
37368
37368
  EY(this.root);
37369
37369
  return;
@@ -37377,7 +37377,7 @@ var xX = class {
37377
37377
  appId: n.id,
37378
37378
  sessionGeneration: ++this.nextSessionGeneration
37379
37379
  }, a = this.session, o = t && a !== void 0;
37380
- this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(ut, ae()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new Da()), this.session = {
37380
+ this.activeSessionGenerations.add(r.sessionGeneration), o && this.store.set(dt, ne()), (t || !a) && (t && this.sessionReady.status !== "pending" && (this.sessionReady = new Da()), this.session = {
37381
37381
  ...r,
37382
37382
  code: t ? e : void 0
37383
37383
  });
@@ -37395,7 +37395,7 @@ var xX = class {
37395
37395
  t?.code === void 0 || e && t.appId !== e || (this.activeSessionGenerations.delete(t.sessionGeneration), await this.rpc.proxy.request.stopSession({
37396
37396
  appId: t.appId,
37397
37397
  sessionGeneration: t.sessionGeneration
37398
- }), this.store.set(pr, null), this.session = void 0, this.sessionReady = new Da(), this.store.set(ut, ae()));
37398
+ }), this.store.set(pr, null), this.session = void 0, this.sessionReady = new Da(), this.store.set(dt, ne()));
37399
37399
  });
37400
37400
  }
37401
37401
  enqueueAppTransition(e) {
@@ -37411,7 +37411,7 @@ var xX = class {
37411
37411
  sendComponentValues = async (e) => (await this.putControlRequest({
37412
37412
  type: "update-ui-element",
37413
37413
  ...e,
37414
- token: D()
37414
+ token: Ce()
37415
37415
  }), null);
37416
37416
  sendInstantiate = async () => null;
37417
37417
  sendFunctionRequest = async (e) => (await this.putControlRequest({