@marimo-team/islands 0.26.1-dev21 → 0.26.1-dev25
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/{ConnectedDataExplorerComponent-CR9WyiEc.js → ConnectedDataExplorerComponent-jtTaDisw.js} +16 -16
- package/dist/{ErrorBoundary-C5X_T831.js → ErrorBoundary-Bs2ehxEI.js} +6 -6
- package/dist/{abnfDiagram-VCTEODGH-DGAbsdXT.js → abnfDiagram-VCTEODGH-cUj3Gnnh.js} +2 -2
- package/dist/{any-language-editor-DzGF1ll-.js → any-language-editor-BHgkY7jY.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-D4DnIo7R.js → architectureDiagram-5GKGNRK7-CIAZgn9d.js} +1 -1
- package/dist/{assertNever-CqwxSD_2.js → assertNever-BHnIohkX.js} +13 -13
- package/dist/{chat-ui-qZdDDrzU.js → chat-ui-DOvIzlMA.js} +46 -46
- package/dist/{check-D9vf6LYF.js → check-LtjuWmNn.js} +1 -1
- package/dist/{chunk-IMKFNOWR-Bc_i6jWx.js → chunk-IMKFNOWR-CB9N3qYR.js} +1 -1
- package/dist/{chunk-SHT3W25Y-CGML5pnF.js → chunk-SHT3W25Y-D9njV7TI.js} +1 -1
- package/dist/{chunk-SVP7TREG-ZpeFKfFT.js → chunk-SVP7TREG-CUCE0BFm.js} +1 -1
- package/dist/{chunk-TICWLB2K-C6cLmcg8.js → chunk-TICWLB2K-iQB6ttkI.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV--q40NTXr.js → classDiagram-ZZMXUADV-BI1VBNIo.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-Dt_Pp94L.js → classDiagram-v2-VYDZK3BY-BYL3asWh.js} +2 -2
- package/dist/{code-visibility-7FxdzbDq.js → code-visibility-BnMkbydx.js} +19 -19
- package/dist/{common-D-iTRwaQ.js → common-CQur5dRA.js} +156 -156
- package/dist/{config-B8JCQMby.js → config-DL9e-OWE.js} +3 -3
- package/dist/{copy-icon-BLig0ZKb.js → copy-icon-rYV2znAe.js} +2 -2
- package/dist/{createReducer-BIUQ3TbG.js → createReducer-BdiSrxHu.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-2FtF_-cc.js → cynefinDiagram-5FMLGOSQ-DpGtYvnZ.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Cymu2SPS.js → dagre-GXQ25YYZ-B5GDC2kN.js} +1 -1
- package/dist/{data-grid-overlay-editor-DoWUW2oW.js → data-grid-overlay-editor-BXEY35Xl.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-OwDa8kAa.js → diagram-S7CK7UJ4-B2T25t1t.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CzRDwZwd.js → diagram-UQ7AKVKN-Dy3B5L_z.js} +1 -1
- package/dist/{diagram-VX7I27RA-XRIcgMDs.js → diagram-VX7I27RA-tOptWvNh.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DdRDYAs6.js → diagram-Z3DM3KII-DsgZAokO.js} +1 -1
- package/dist/{dialog-DGh2HNAO.js → dialog-vs6x3On9.js} +19 -19
- package/dist/{dropdown-menu-ChH3oiqI.js → dropdown-menu-DYN2RV5d.js} +193 -193
- package/dist/{ebnfDiagram-PWID7BFC-CZMNMGNP.js → ebnfDiagram-PWID7BFC-CGWECzS1.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-ByxHAN4b.js → erDiagram-RLTQ6QDP-CZLi87y3.js} +1 -1
- package/dist/{error-banner-BvRaQnGH.js → error-banner-D-AC7pQx.js} +70 -70
- package/dist/{error-entries-DhI0hGvj.js → error-entries-CncQR572.js} +443 -436
- package/dist/{feedback-button-OUiV15AL.js → feedback-button-BAOp7zqu.js} +120 -120
- package/dist/{flowDiagram-HODETNUW-BQpzWx5O.js → flowDiagram-HODETNUW-CS86WYbX.js} +2 -2
- package/dist/{formats-BxP8k8Un.js → formats-BUFLQJXY.js} +1 -1
- package/dist/{glide-data-editor-CFouYM6e.js → glide-data-editor-Ce94qTW7.js} +11 -11
- package/dist/{glide-utils-bKdvDwwo.js → glide-utils-CZ-O-CB_.js} +2 -2
- package/dist/{globals-B_U6Frqj.js → globals-Uqg4j5z5.js} +3 -3
- package/dist/{html-to-image-B803aaWE.js → html-to-image-BU7H-AM1.js} +4323 -4318
- package/dist/{infoDiagram-27XIBGKW-C9EWHkak.js → infoDiagram-27XIBGKW-C9JBFfpC.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-D67SGFvp.js → ishikawaDiagram-5VMMS53U-Eh3iuw2D.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-CTMTiazR.js → kanban-definition-UXKFOSKX-DYtuVwYD.js} +1 -1
- package/dist/main.js +399 -398
- package/dist/{mermaid-DE_tvTGF.js → mermaid--k1o49nH.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX-LzNgDy8O.js → mindmap-definition-YA3MSWOX-Dn1Cnqys.js} +1 -1
- package/dist/{number-overlay-editor-CiQQjf9m.js → number-overlay-editor-Br_Vp3Ws.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-DFMS6feI.js → pegDiagram-XKGWAZYB-DiY7rITR.js} +2 -2
- package/dist/{pencil-CHkdsX07.js → pencil-AWgwbH4D.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-C0MSBop-.js → pieDiagram-E7YTZNPT-BL6InbDs.js} +1 -1
- package/dist/{process-output-CnCLfvnL.js → process-output-xJm8T5-E.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-mbdav2pV.js → railroadDiagram-O6MQD6OU-DterenMu.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-C1HNBBO6.js → requirementDiagram-BXWQKSXE-Vb5_9LHC.js} +1 -1
- package/dist/{reveal-component-B73BObRc.js → reveal-component-B7TgfbYJ.js} +1008 -1008
- package/dist/{select-CvorIE3l.js → select-CKLRKIzB.js} +298 -298
- package/dist/{sequenceDiagram-WJ2MYXX4-D6gBHifq.js → sequenceDiagram-WJ2MYXX4-BWsq8hMt.js} +1 -1
- package/dist/{spec-ayzaXGVq.js → spec-C4uOz0Em.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-Bx-fTtRZ.js → stateDiagram-D77RDMKH-nfKKy6aQ.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-Cec8T2yO.js → stateDiagram-v2-MP3YSRHH-DMUHA_9A.js} +2 -2
- package/dist/{static-state-CqwW3B_X.js → static-state-DZ1nSa6e.js} +9 -9
- package/dist/{swimlanes-42K2YHIH-C2bAgnov.js → swimlanes-42K2YHIH-N4qHIMoc.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CzeG-Mnb.js → swimlanesDiagram-VR7AAH4N-DQpDDjQb.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-DTJ0Rx8X.js → timeline-definition-24CTP7MA-Od8dY9F5.js} +1 -1
- package/dist/{toast-6V8Og7d5.js → toast-bhZHUEal.js} +187 -187
- package/dist/{tooltip-D0h-ZJ6j.js → tooltip-DSWC_Td_.js} +40 -40
- package/dist/{use-restore-focus-BFvwj2Hj.js → use-restore-focus-ocw7t85i.js} +1371 -1373
- package/dist/{useDateFormatter-D6o9PsWt.js → useDateFormatter-BiDS8uXQ.js} +2 -2
- package/dist/{useDeepCompareMemoize-D-Pbv7dN.js → useDeepCompareMemoize-BsaXfZ8C.js} +1 -1
- package/dist/{useLifecycle-CE0yGTMF.js → useLifecycle-CCV7yZ-v.js} +1 -1
- package/dist/{vega-component-DTf7GHQe.js → vega-component-DpTyTrz3.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-lIM3SAjl.js → vennDiagram-4TSXK5OY-Di3T2YMb.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-Bw_t7uvA.js → wardleyDiagram-VM6X3IG4-CKOF5DTi.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-BXwkLYKj.js → xychartDiagram-S5SC5T6Z-GYLPWSeb.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/executions.ts +25 -3
- package/src/__tests__/notebook-analysis.ts +48 -0
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
- package/src/components/editor/navigation/__tests__/navigation.test.ts +0 -4
- package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -11
- package/src/core/cells/add-missing-import.ts +2 -3
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +8 -13
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -13
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +16 -35
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
- package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +8 -14
- package/src/core/datasets/__tests__/data-source.test.ts +15 -17
- package/src/core/datasets/data-source-connections.ts +8 -11
- package/src/core/datasets/state.ts +7 -12
- package/src/core/executions/__tests__/freshness.test.ts +8 -3
- package/src/core/executions/__tests__/interrupt.test.ts +1 -0
- package/src/core/executions/__tests__/select.test.ts +1 -1
- package/src/core/executions/atoms.ts +1 -0
- package/src/core/executions/freshness.ts +2 -2
- package/src/core/islands/bootstrap.ts +0 -2
- package/src/core/notebook/replica/__tests__/executions.test.ts +4 -2
- package/src/core/notebook/replica/replica.ts +11 -2
- package/src/core/notebook/replica/resources/executions.ts +29 -20
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +192 -1
- package/src/core/session/useNotebookSession.tsx +37 -37
- package/src/core/storage/__tests__/state.test.ts +6 -9
- package/src/core/storage/state.ts +5 -8
- package/src/core/variables/state.ts +73 -68
- package/src/core/variables/types.ts +2 -2
- package/src/core/variables/__tests__/state.test.ts +0 -148
package/dist/main.js
CHANGED
|
@@ -2,36 +2,36 @@ import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { _ as a, a as o, d as s, g as c, h as l, i as u, l as d, m as f, n as p, p as m, r as h, s as g, t as _, v } from "./button-Z2R2272J.js";
|
|
3
3
|
import { t as y } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as b } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { i as x, n as S, r as C, t as w } from "./copy-icon-
|
|
6
|
-
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as te, Ut as ne, Vt as re, Wt as ie, X as ae, Z as oe, _ as se, _t as ce, a as le, at as ue, b as de, bt as fe, c as pe, ct as me, dt as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, o as Ce, ot as we, q as Te, rt as Ee, ut as De, vt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-
|
|
7
|
-
import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-
|
|
8
|
-
import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-
|
|
9
|
-
import { $ as ft, $t as pt, A as mt, An as ht, At as gt, B as _t, Bt as vt, C as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mn as Vt, Mt as Ht, N as Ut, Nt as Wt, O as Gt, On as Kt, Ot as qt, P as Jt, Pt as Yt, Q as Xt, Qt as Zt, R as Qt, Rt as $t, S as en, Sn as tn, St as nn, T as rn, Tn as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Z as _n, Zt as vn, _ as yn, _n as bn, _t as xn, an as Sn, at as Cn, b as wn, bn as Tn, bt as En, c as Dn, cn as On, ct as kn, d as An, dn as jn, dt as Mn, en as Nn, f as Pn, fn as Fn, ft as In, g as Ln, gn as Rn, gt as zn, h as Bn, hn as Vn, ht as Hn, in as Un, it as Wn, j as Gn, jn as Kn, jt as qn, k as Jn, kn as Yn, kt as Xn, ln as Zn, lt as Qn, m as $n, mn as er, mt as tr, nn as nr, on as rr, ot as ir, p as ar, pn as or, pt as sr, q as cr, qt as lr, r as ur, rn as dr, rt as fr, sn as pr, st as mr, t as hr, tn as gr, u as _r, un as vr, ut as yr, v as br, vn as xr, vt as Sr, w as Cr, wn as wr, x as Tr, xn as Er, xt as Dr, y as Or, yn as kr, yt as Ar, z as jr, zt as Mr } from "./common-
|
|
10
|
-
import { a as Nr, n as Pr, s as Fr, t as Ir } from "./useLifecycle-
|
|
11
|
-
import { t as Lr } from "./check-
|
|
12
|
-
import { A as Rr, C as zr, D as Br, M as Vr, O as Hr, a as Ur, c as Wr, d as Gr, i as Kr, k as qr, l as Jr, n as Yr, o as Xr, r as Zr, s as Qr, t as $r, w as ei, x as ti } from "./select-
|
|
13
|
-
import { $ as ni, At as ri, B as ii, C as ai, Cn as oi, G as si, Nt as ci, Q as li, Sn as ui, T as di, V as fi, X as pi, Y as mi, Z as hi, _ as gi, a as _i, b as vi, c as yi, f as bi, g as xi, h as Si, i as Ci, m as wi, mt as Ti, n as Ei, p as Di, r as Oi, rt as ki, s as Ai, t as ji, v as Mi, vt as Ni, w as Pi, xn as Fi, y as Ii } from "./dropdown-menu-
|
|
14
|
-
import { c as Li, i as Ri, l as zi, o as Bi, s as Vi, t as Hi } from "./config-
|
|
15
|
-
import { $t as Ui, At as Wi, B as Gi, Ct as Ki, D as qi, Dt as Ji, Ft as Yi, G as Xi, It as Zi, J as Qi, K as $i, Kt as ea, N as ta, Nt as na, Pt as ra, Qt as ia, R as aa, Rt as oa, St as sa, V as ca, X as la, Xt as ua, Y as da, Yt as fa, Z as pa, Zt as ma, _ as ha, bt as ga, f as _a, g as va, h as ya, ht as ba, l as xa, m as Sa, mt as Ca, nt as wa, q as Ta, rt as Ea, s as Da, tn as Oa, v as ka, vt as Aa, xt as ja, z as Ma } from "./error-entries-
|
|
16
|
-
import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-
|
|
17
|
-
import { t as Ha } from "./pencil-
|
|
18
|
-
import { a as Ua, c as Wa, d as Ga, f as Ka, i as qa, l as Ja, r as Ya } from "./glide-utils-
|
|
19
|
-
import { n as Xa, t as Za } from "./globals-
|
|
20
|
-
import { a as Qa, i as $a, n as eo, r as to, s as no, t as ro } from "./assertNever-
|
|
5
|
+
import { i as x, n as S, r as C, t as w } from "./copy-icon-rYV2znAe.js";
|
|
6
|
+
import { B as T, Bt as E, Ct as D, E as O, F as k, Ft as A, I as j, It as M, L as N, Lt as P, M as F, Mt as I, O as L, Ot as R, P as z, R as B, Rt as ee, St as te, Ut as ne, Vt as re, Wt as ie, X as ae, Z as oe, _ as se, _t as ce, a as le, at as ue, b as de, bt as fe, c as pe, ct as me, dt as he, i as ge, it as _e, j as ve, kt as ye, lt as be, mt as xe, n as Se, o as Ce, ot as we, q as Te, rt as Ee, ut as De, vt as Oe, yt as ke, z as Ae, zt as je } from "./html-to-image-BU7H-AM1.js";
|
|
7
|
+
import { a as Me, f as Ne, h as Pe, i as Fe, m as Ie, n as Le, o as Re, r as ze, t as Be } from "./tooltip-DSWC_Td_.js";
|
|
8
|
+
import { D as Ve, E as He, S as Ue, T as We, _ as Ge, a as Ke, c as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, l as $e, m as et, n as tt, o as nt, p as rt, r as it, s as at, t as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./spec-C4uOz0Em.js";
|
|
9
|
+
import { $ as ft, $t as pt, A as mt, An as ht, At as gt, B as _t, Bt as vt, C as yt, D as bt, Dn as xt, Dt as St, E as Ct, En as wt, Et as Tt, F as Et, Ft as Dt, G as Ot, Gt as kt, H as At, Ht as jt, I as Mt, It as Nt, J as Pt, Jt as Ft, K as It, Kt as Lt, L as Rt, Lt as zt, M as Bt, Mn as Vt, Mt as Ht, N as Ut, Nt as Wt, O as Gt, On as Kt, Ot as qt, P as Jt, Pt as Yt, Q as Xt, Qt as Zt, R as Qt, Rt as $t, S as en, Sn as tn, St as nn, T as rn, Tn as an, Tt as on, U as sn, Ut as cn, V as ln, Vt as un, W as dn, Wt as fn, X as pn, Xt as mn, Y as hn, Yt as gn, Z as _n, Zt as vn, _ as yn, _n as bn, _t as xn, an as Sn, at as Cn, b as wn, bn as Tn, bt as En, c as Dn, cn as On, ct as kn, d as An, dn as jn, dt as Mn, en as Nn, f as Pn, fn as Fn, ft as In, g as Ln, gn as Rn, gt as zn, h as Bn, hn as Vn, ht as Hn, in as Un, it as Wn, j as Gn, jn as Kn, jt as qn, k as Jn, kn as Yn, kt as Xn, ln as Zn, lt as Qn, m as $n, mn as er, mt as tr, nn as nr, on as rr, ot as ir, p as ar, pn as or, pt as sr, q as cr, qt as lr, r as ur, rn as dr, rt as fr, sn as pr, st as mr, t as hr, tn as gr, u as _r, un as vr, ut as yr, v as br, vn as xr, vt as Sr, w as Cr, wn as wr, x as Tr, xn as Er, xt as Dr, y as Or, yn as kr, yt as Ar, z as jr, zt as Mr } from "./common-CQur5dRA.js";
|
|
10
|
+
import { a as Nr, n as Pr, s as Fr, t as Ir } from "./useLifecycle-CCV7yZ-v.js";
|
|
11
|
+
import { t as Lr } from "./check-LtjuWmNn.js";
|
|
12
|
+
import { A as Rr, C as zr, D as Br, M as Vr, O as Hr, a as Ur, c as Wr, d as Gr, i as Kr, k as qr, l as Jr, n as Yr, o as Xr, r as Zr, s as Qr, t as $r, w as ei, x as ti } from "./select-CKLRKIzB.js";
|
|
13
|
+
import { $ as ni, At as ri, B as ii, C as ai, Cn as oi, G as si, Nt as ci, Q as li, Sn as ui, T as di, V as fi, X as pi, Y as mi, Z as hi, _ as gi, a as _i, b as vi, c as yi, f as bi, g as xi, h as Si, i as Ci, m as wi, mt as Ti, n as Ei, p as Di, r as Oi, rt as ki, s as Ai, t as ji, v as Mi, vt as Ni, w as Pi, xn as Fi, y as Ii } from "./dropdown-menu-DYN2RV5d.js";
|
|
14
|
+
import { c as Li, i as Ri, l as zi, o as Bi, s as Vi, t as Hi } from "./config-DL9e-OWE.js";
|
|
15
|
+
import { $t as Ui, At as Wi, B as Gi, Ct as Ki, D as qi, Dt as Ji, Ft as Yi, G as Xi, It as Zi, J as Qi, K as $i, Kt as ea, N as ta, Nt as na, Pt as ra, Qt as ia, R as aa, Rt as oa, St as sa, V as ca, X as la, Xt as ua, Y as da, Yt as fa, Z as pa, Zt as ma, _ as ha, bt as ga, f as _a, g as va, h as ya, ht as ba, l as xa, m as Sa, mt as Ca, nt as wa, q as Ta, rt as Ea, s as Da, tn as Oa, v as ka, vt as Aa, xt as ja, z as Ma } from "./error-entries-CncQR572.js";
|
|
16
|
+
import { a as Na, d as Pa, i as Fa, n as Ia, o as La, r as Ra, s as za, t as Ba, u as Va } from "./process-output-xJm8T5-E.js";
|
|
17
|
+
import { t as Ha } from "./pencil-AWgwbH4D.js";
|
|
18
|
+
import { a as Ua, c as Wa, d as Ga, f as Ka, i as qa, l as Ja, r as Ya } from "./glide-utils-CZ-O-CB_.js";
|
|
19
|
+
import { n as Xa, t as Za } from "./globals-Uqg4j5z5.js";
|
|
20
|
+
import { a as Qa, i as $a, n as eo, r as to, s as no, t as ro } from "./assertNever-BHnIohkX.js";
|
|
21
21
|
import { t as io } from "./react-dom-DdqGVp5N.js";
|
|
22
22
|
import { t as ao } from "./jsx-runtime-D8btoEHk.js";
|
|
23
|
-
import { $ as oo, A as so,
|
|
24
|
-
import { f as Es, n as Ds, p as Os, t as ks } from "./error-banner-
|
|
23
|
+
import { $ as oo, A as so, At as co, B as lo, Bt as uo, Ct as fo, D as po, Dt as mo, Et as ho, F as go, G as _o, H as vo, Ht as yo, I as bo, J as V, K as xo, L as So, Lt as Co, M as wo, Mt as To, N as Eo, Nt as Do, O as Oo, P as ko, Q as Ao, R as jo, Rt as Mo, S as No, T as Po, U as Fo, Ut as Io, V as Lo, W as H, X as Ro, Y as U, _n as zo, _t as Bo, at as W, bn as Vo, bt as Ho, c as Uo, ct as Wo, d as Go, dt as Ko, et as qo, f as Jo, fn as Yo, ft as Xo, gn as Zo, h as Qo, hn as $o, ht as es, j as ts, k as ns, l as rs, lt as is, mn as as, nt as os, o as ss, ot as G, p as cs, pn as ls, pt as us, q as ds, rn as fs, rt as ps, st as ms, tt as hs, u as gs, un as _s, ut as K, vn as vs, vt as ys, xt as bs, y as xs, yn as Ss, yt as Cs, z as ws, zt as Ts } from "./use-restore-focus-ocw7t85i.js";
|
|
24
|
+
import { f as Es, n as Ds, p as Os, t as ks } from "./error-banner-D-AC7pQx.js";
|
|
25
25
|
import { m as As } from "./isArrayLikeObject-B-HXCsex.js";
|
|
26
26
|
import { t as js } from "./pick-DgpAbcwP.js";
|
|
27
27
|
import { t as Ms } from "./debounce-DrhhziJv.js";
|
|
28
28
|
import { t as Ns } from "./objects-DCmMvZtn.js";
|
|
29
29
|
import { t as Ps } from "./invariant-DLmrl-hA.js";
|
|
30
30
|
import { t as Fs } from "./useEvent-BoN7U38T.js";
|
|
31
|
-
import { t as Is } from "./createReducer-
|
|
31
|
+
import { t as Is } from "./createReducer-BdiSrxHu.js";
|
|
32
32
|
import { H as Ls, M as Rs, f as zs, t as Bs, z as q } from "./dist-BIaGGUbU.js";
|
|
33
|
-
import { c as Vs, i as Hs, m as Us, n as Ws, o as Gs, r as Ks, t as qs } from "./static-state-
|
|
34
|
-
import { i as Js, n as Ys, r as Xs } from "./formats-
|
|
33
|
+
import { c as Vs, i as Hs, m as Us, n as Ws, o as Gs, r as Ks, t as qs } from "./static-state-DZ1nSa6e.js";
|
|
34
|
+
import { i as Js, n as Ys, r as Xs } from "./formats-BUFLQJXY.js";
|
|
35
35
|
import { o as Zs, r as Qs, t as $s } from "./arrays-DoQ-AILx.js";
|
|
36
36
|
import { n as ec } from "./once-NnpX_HnX.js";
|
|
37
37
|
import { n as tc } from "./dist-CQfpgadU.js";
|
|
@@ -39,11 +39,11 @@ import { i as nc } from "./dist-BG-7Qpaj.js";
|
|
|
39
39
|
import { n as rc, t as ic } from "./esm-Dw2ZydG_.js";
|
|
40
40
|
import { p as ac } from "./dist-BidYR5m4.js";
|
|
41
41
|
import { t as oc } from "./useAsyncData-P5-Oovhq.js";
|
|
42
|
-
import { n as sc, r as cc, t as lc } from "./useDeepCompareMemoize-
|
|
43
|
-
import { t as uc } from "./ErrorBoundary-
|
|
42
|
+
import { n as sc, r as cc, t as lc } from "./useDeepCompareMemoize-BsaXfZ8C.js";
|
|
43
|
+
import { t as uc } from "./ErrorBoundary-Bs2ehxEI.js";
|
|
44
44
|
import { G as dc, W as fc } from "./vega-loader.browser-Co9gYE8Z.js";
|
|
45
45
|
import { a as pc, n as mc } from "./loader-qPmiRXZd.js";
|
|
46
|
-
import { a as hc, c as gc, i as _c, l as vc, o as yc, s as bc, t as xc } from "./code-visibility-
|
|
46
|
+
import { a as hc, c as gc, i as _c, l as vc, o as yc, s as bc, t as xc } from "./code-visibility-BnMkbydx.js";
|
|
47
47
|
import { t as Sc } from "./esm-DY8dGAjJ.js";
|
|
48
48
|
//#region ../node_modules/.pnpm/iconify-icon@2.3.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
49
49
|
var Cc = Object.freeze({
|
|
@@ -1867,8 +1867,8 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
1867
1867
|
}, Vd = {
|
|
1868
1868
|
LTR: "ltr",
|
|
1869
1869
|
RTL: "rtl"
|
|
1870
|
-
}, Hd = "NavigationMenu", [Ud, Wd, Gd] = Qa(Hd), [Kd, qd, Jd] = Qa(Hd), [Yd, Xd] =
|
|
1871
|
-
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = Bd.Horizontal, dir: l, activationMode: u = zd.Automatic, ...d } = e, [f, p] = J.useState(null), h = m(t, p), g = Rr(l), _ = J.useRef(0), v = J.useRef(0), y = J.useRef(0), [b, x] = J.useState(!0), [S, C] =
|
|
1870
|
+
}, Hd = "NavigationMenu", [Ud, Wd, Gd] = Qa(Hd), [Kd, qd, Jd] = Qa(Hd), [Yd, Xd] = vs(Hd, [Gd, Jd]), [Zd, Qd] = Yd(Hd), [$d, ef] = Yd(Hd), tf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
1871
|
+
let { __scopeNavigationMenu: n, value: r, onValueChange: i, defaultValue: a, delayDuration: o = 200, skipDelayDuration: s = 300, orientation: c = Bd.Horizontal, dir: l, activationMode: u = zd.Automatic, ...d } = e, [f, p] = J.useState(null), h = m(t, p), g = Rr(l), _ = J.useRef(0), v = J.useRef(0), y = J.useRef(0), [b, x] = J.useState(!0), [S, C] = $o({
|
|
1872
1872
|
prop: r,
|
|
1873
1873
|
onChange: /* @__PURE__ */ Rd((e) => {
|
|
1874
1874
|
let t = e !== "", n = s > 0;
|
|
@@ -1915,7 +1915,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
1915
1915
|
C((t) => t === e ? "" : e);
|
|
1916
1916
|
},
|
|
1917
1917
|
onItemDismiss: () => C(""),
|
|
1918
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
1918
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.nav, {
|
|
1919
1919
|
"aria-label": "Main",
|
|
1920
1920
|
"data-orientation": c,
|
|
1921
1921
|
dir: g,
|
|
@@ -1931,7 +1931,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
1931
1931
|
rootNavigationMenu: r,
|
|
1932
1932
|
value: c,
|
|
1933
1933
|
previousValue: Fd(c),
|
|
1934
|
-
baseId:
|
|
1934
|
+
baseId: ls(),
|
|
1935
1935
|
dir: i,
|
|
1936
1936
|
orientation: a,
|
|
1937
1937
|
activationMode: o,
|
|
@@ -1939,12 +1939,12 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
1939
1939
|
onViewportChange: g,
|
|
1940
1940
|
indicatorTrack: y,
|
|
1941
1941
|
onIndicatorTrackChange: b,
|
|
1942
|
-
onTriggerEnter:
|
|
1943
|
-
onTriggerLeave:
|
|
1944
|
-
onContentEnter:
|
|
1945
|
-
onContentLeave:
|
|
1946
|
-
onItemSelect:
|
|
1947
|
-
onItemDismiss:
|
|
1942
|
+
onTriggerEnter: Yo(d),
|
|
1943
|
+
onTriggerLeave: Yo(f),
|
|
1944
|
+
onContentEnter: Yo(p),
|
|
1945
|
+
onContentLeave: Yo(m),
|
|
1946
|
+
onItemSelect: Yo(l),
|
|
1947
|
+
onItemDismiss: Yo(u),
|
|
1948
1948
|
onViewportContentChange: J.useCallback((e, t) => {
|
|
1949
1949
|
v((n) => (n.set(e, t), new Map(n)));
|
|
1950
1950
|
}, []),
|
|
@@ -1961,12 +1961,12 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
1961
1961
|
})
|
|
1962
1962
|
});
|
|
1963
1963
|
}, "NavigationMenuProvider"), rf = "NavigationMenuList", af = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
1964
|
-
let { __scopeNavigationMenu: n, ...r } = e, i = Qd(rf, n), a = /* @__PURE__ */ (0, Y.jsx)(
|
|
1964
|
+
let { __scopeNavigationMenu: n, ...r } = e, i = Qd(rf, n), a = /* @__PURE__ */ (0, Y.jsx)(Ss.ul, {
|
|
1965
1965
|
"data-orientation": i.orientation,
|
|
1966
1966
|
...r,
|
|
1967
1967
|
ref: t
|
|
1968
1968
|
});
|
|
1969
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
1969
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ss.div, {
|
|
1970
1970
|
style: { position: "relative" },
|
|
1971
1971
|
ref: i.onIndicatorTrackChange,
|
|
1972
1972
|
children: /* @__PURE__ */ (0, Y.jsx)(Ud.Slot, {
|
|
@@ -1978,7 +1978,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
1978
1978
|
})
|
|
1979
1979
|
});
|
|
1980
1980
|
}, "NavigationMenuList")), [of, sf] = Yd("NavigationMenuItem"), cf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
1981
|
-
let { __scopeNavigationMenu: n, value: r, ...i } = e, a =
|
|
1981
|
+
let { __scopeNavigationMenu: n, value: r, ...i } = e, a = ls(), o = r || a || "LEGACY_REACT_AUTO_VALUE", s = J.useRef(null), c = J.useRef(null), l = J.useRef(null), u = J.useRef(() => {}), d = J.useRef(!1), f = J.useCallback((e = "start") => {
|
|
1982
1982
|
if (s.current) {
|
|
1983
1983
|
u.current();
|
|
1984
1984
|
let t = jf(s.current);
|
|
@@ -2001,7 +2001,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2001
2001
|
onFocusProxyEnter: f,
|
|
2002
2002
|
onRootContentClose: p,
|
|
2003
2003
|
onContentFocusOutside: p,
|
|
2004
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2004
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.li, {
|
|
2005
2005
|
...i,
|
|
2006
2006
|
ref: t
|
|
2007
2007
|
})
|
|
@@ -2013,7 +2013,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2013
2013
|
value: o.value,
|
|
2014
2014
|
children: /* @__PURE__ */ (0, Y.jsx)(Af, {
|
|
2015
2015
|
asChild: !0,
|
|
2016
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2016
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.button, {
|
|
2017
2017
|
id: l,
|
|
2018
2018
|
disabled: r,
|
|
2019
2019
|
"data-disabled": r ? "" : void 0,
|
|
@@ -2056,7 +2056,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2056
2056
|
let { __scopeNavigationMenu: n, active: r, onSelect: i, ...a } = e;
|
|
2057
2057
|
return /* @__PURE__ */ (0, Y.jsx)(Af, {
|
|
2058
2058
|
asChild: !0,
|
|
2059
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2059
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.a, {
|
|
2060
2060
|
"data-active": r ? "" : void 0,
|
|
2061
2061
|
"aria-current": r ? "page" : void 0,
|
|
2062
2062
|
...a,
|
|
@@ -2066,19 +2066,19 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2066
2066
|
bubbles: !0,
|
|
2067
2067
|
cancelable: !0
|
|
2068
2068
|
});
|
|
2069
|
-
if (t.addEventListener(df, (e) => i?.(e), { once: !0 }),
|
|
2069
|
+
if (t.addEventListener(df, (e) => i?.(e), { once: !0 }), Vo(t, n), !n.defaultPrevented && !e.metaKey) {
|
|
2070
2070
|
let e = new CustomEvent(yf, {
|
|
2071
2071
|
bubbles: !0,
|
|
2072
2072
|
cancelable: !0
|
|
2073
2073
|
});
|
|
2074
|
-
|
|
2074
|
+
Vo(t, e);
|
|
2075
2075
|
}
|
|
2076
2076
|
}, { checkForDefaultPrevented: !1 })
|
|
2077
2077
|
})
|
|
2078
2078
|
});
|
|
2079
2079
|
}, "NavigationMenuLink")), pf = "NavigationMenuIndicator", mf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
2080
2080
|
let { forceMount: n, ...r } = e, i = Qd(pf, e.__scopeNavigationMenu), a = !!i.value;
|
|
2081
|
-
return i.indicatorTrack ? Id.createPortal(/* @__PURE__ */ (0, Y.jsx)(
|
|
2081
|
+
return i.indicatorTrack ? Id.createPortal(/* @__PURE__ */ (0, Y.jsx)(as, {
|
|
2082
2082
|
present: n || a,
|
|
2083
2083
|
children: /* @__PURE__ */ (0, Y.jsx)(hf, {
|
|
2084
2084
|
...r,
|
|
@@ -2097,7 +2097,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2097
2097
|
offset: u ? o.offsetLeft : o.offsetTop
|
|
2098
2098
|
});
|
|
2099
2099
|
}, "handlePositionChange");
|
|
2100
|
-
return Pf(o, f), Pf(i.indicatorTrack, f), c ? /* @__PURE__ */ (0, Y.jsx)(
|
|
2100
|
+
return Pf(o, f), Pf(i.indicatorTrack, f), c ? /* @__PURE__ */ (0, Y.jsx)(Ss.div, {
|
|
2101
2101
|
"aria-hidden": !0,
|
|
2102
2102
|
"data-state": d ? "visible" : "hidden",
|
|
2103
2103
|
"data-orientation": i.orientation,
|
|
@@ -2134,7 +2134,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2134
2134
|
forceMount: n,
|
|
2135
2135
|
...l,
|
|
2136
2136
|
ref: o
|
|
2137
|
-
}) : /* @__PURE__ */ (0, Y.jsx)(
|
|
2137
|
+
}) : /* @__PURE__ */ (0, Y.jsx)(as, {
|
|
2138
2138
|
present: n || s,
|
|
2139
2139
|
children: /* @__PURE__ */ (0, Y.jsx)(bf, {
|
|
2140
2140
|
"data-state": c,
|
|
@@ -2150,7 +2150,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2150
2150
|
});
|
|
2151
2151
|
}, "NavigationMenuContent")), vf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
2152
2152
|
let { onViewportContentChange: n, onViewportContentRemove: r } = Qd(gf, e.__scopeNavigationMenu);
|
|
2153
|
-
return
|
|
2153
|
+
return zo(() => {
|
|
2154
2154
|
n(e.value, {
|
|
2155
2155
|
ref: t,
|
|
2156
2156
|
...e
|
|
@@ -2159,7 +2159,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2159
2159
|
e,
|
|
2160
2160
|
t,
|
|
2161
2161
|
n
|
|
2162
|
-
]),
|
|
2162
|
+
]), zo(() => () => r(e.value), [e.value, r]), null;
|
|
2163
2163
|
}, "ViewportContentMounter")), yf = "navigationMenu.rootContentDismiss", bf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
2164
2164
|
let { __scopeNavigationMenu: n, value: r, triggerRef: i, focusProxyRef: a, wasEscapeCloseRef: o, onRootContentClose: s, onContentFocusOutside: c, ...l } = e, u = Qd(gf, n), d = J.useRef(null), f = m(d, t), p = If(u.baseId, r), h = Lf(u.baseId, r), g = Wd(n), _ = J.useRef(null), { onItemDismiss: v } = u;
|
|
2165
2165
|
J.useEffect(() => {
|
|
@@ -2199,7 +2199,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2199
2199
|
]);
|
|
2200
2200
|
return /* @__PURE__ */ (0, Y.jsx)(Df, {
|
|
2201
2201
|
asChild: !0,
|
|
2202
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2202
|
+
children: /* @__PURE__ */ (0, Y.jsx)(_s, {
|
|
2203
2203
|
id: h,
|
|
2204
2204
|
"aria-labelledby": p,
|
|
2205
2205
|
"data-motion": y,
|
|
@@ -2237,7 +2237,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2237
2237
|
});
|
|
2238
2238
|
}, "NavigationMenuContentImpl")), xf = "NavigationMenuViewport", Sf = s(xf), Cf = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Rd(function(e, t) {
|
|
2239
2239
|
let { forceMount: n, ...r } = e, i = !!Qd(xf, e.__scopeNavigationMenu).value;
|
|
2240
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2240
|
+
return /* @__PURE__ */ (0, Y.jsx)(as, {
|
|
2241
2241
|
present: n || i,
|
|
2242
2242
|
children: /* @__PURE__ */ (0, Y.jsx)(wf, {
|
|
2243
2243
|
...r,
|
|
@@ -2251,7 +2251,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2251
2251
|
width: u.offsetWidth,
|
|
2252
2252
|
height: u.offsetHeight
|
|
2253
2253
|
});
|
|
2254
|
-
}, "handleSizeChange")), /* @__PURE__ */ (0, Y.jsxs)(
|
|
2254
|
+
}, "handleSizeChange")), /* @__PURE__ */ (0, Y.jsxs)(Ss.div, {
|
|
2255
2255
|
"data-state": Ff(h),
|
|
2256
2256
|
"data-orientation": a.orientation,
|
|
2257
2257
|
...i,
|
|
@@ -2266,7 +2266,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2266
2266
|
onPointerLeave: Zo(e.onPointerLeave, Rf(a.onContentLeave)),
|
|
2267
2267
|
children: [/* @__PURE__ */ (0, Y.jsx)(Sf, { children: r }), Array.from(s.items).map(([e, { ref: t, forceMount: n, ...r }]) => {
|
|
2268
2268
|
let i = g === e;
|
|
2269
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2269
|
+
return /* @__PURE__ */ (0, Y.jsx)(as, {
|
|
2270
2270
|
present: n || i,
|
|
2271
2271
|
children: /* @__PURE__ */ (0, Y.jsx)(Tf, {
|
|
2272
2272
|
...r,
|
|
@@ -2291,7 +2291,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2291
2291
|
scope: n,
|
|
2292
2292
|
children: /* @__PURE__ */ (0, Y.jsx)(Kd.Slot, {
|
|
2293
2293
|
scope: n,
|
|
2294
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2294
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.div, {
|
|
2295
2295
|
dir: i.dir,
|
|
2296
2296
|
...r,
|
|
2297
2297
|
ref: t
|
|
@@ -2307,7 +2307,7 @@ var Id = /* @__PURE__ */ e(io(), 1), Y = ao(), Ld = Object.defineProperty, Rd =
|
|
|
2307
2307
|
let { __scopeNavigationMenu: n, ...r } = e, i = qd(n), a = Qd(kf, n);
|
|
2308
2308
|
return /* @__PURE__ */ (0, Y.jsx)(Kd.ItemSlot, {
|
|
2309
2309
|
scope: n,
|
|
2310
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2310
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.button, {
|
|
2311
2311
|
...r,
|
|
2312
2312
|
ref: t,
|
|
2313
2313
|
onKeyDown: Zo(e.onKeyDown, (e) => {
|
|
@@ -2357,8 +2357,8 @@ function Nf(e) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
Rd(Nf, "removeFromTabOrder");
|
|
2359
2359
|
function Pf(e, t) {
|
|
2360
|
-
let n =
|
|
2361
|
-
|
|
2360
|
+
let n = Yo(t);
|
|
2361
|
+
zo(() => {
|
|
2362
2362
|
let t = 0;
|
|
2363
2363
|
if (e) {
|
|
2364
2364
|
let r = new ResizeObserver(() => {
|
|
@@ -2428,8 +2428,8 @@ var zf = Object.defineProperty, Bf = (e, t) => zf(e, "name", {
|
|
|
2428
2428
|
"ArrowUp",
|
|
2429
2429
|
"ArrowLeft"
|
|
2430
2430
|
]
|
|
2431
|
-
}, Kf = "Slider", [qf, Jf, Yf] = Qa(Kf), [Xf, Zf] =
|
|
2432
|
-
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = Vf.Horizontal, disabled: s = !1, minStepsBetweenThumbs: c = 0, preserveThumbOrder: l = !1, defaultValue: u = [r], value: d, onValueChange: f = /* @__PURE__ */ Bf(() => {}, "onValueChange"), onValueCommit: p = /* @__PURE__ */ Bf(() => {}, "onValueCommit"), inverted: h = !1, form: g, ..._ } = e, v = J.useRef(/* @__PURE__ */ new Set()), y = J.useRef(0), b = J.useRef(!1), [x, S] = J.useState(null), C = o === Vf.Horizontal ? rp : ip, [w, T] = J.useState(null), E = m(t, T), [D = [], O] =
|
|
2431
|
+
}, Kf = "Slider", [qf, Jf, Yf] = Qa(Kf), [Xf, Zf] = vs(Kf, [Yf]), [Qf, $f] = Xf(Kf), ep = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Bf(function(e, t) {
|
|
2432
|
+
let { name: n, min: r = 0, max: i = 100, step: a = 1, orientation: o = Vf.Horizontal, disabled: s = !1, minStepsBetweenThumbs: c = 0, preserveThumbOrder: l = !1, defaultValue: u = [r], value: d, onValueChange: f = /* @__PURE__ */ Bf(() => {}, "onValueChange"), onValueCommit: p = /* @__PURE__ */ Bf(() => {}, "onValueCommit"), inverted: h = !1, form: g, ..._ } = e, v = J.useRef(/* @__PURE__ */ new Set()), y = J.useRef(0), b = J.useRef(!1), [x, S] = J.useState(null), C = o === Vf.Horizontal ? rp : ip, [w, T] = J.useState(null), E = m(t, T), [D = [], O] = $o({
|
|
2433
2433
|
prop: d,
|
|
2434
2434
|
defaultProp: u,
|
|
2435
2435
|
onChange: /* @__PURE__ */ Bf((e) => {
|
|
@@ -2619,7 +2619,7 @@ var zf = Object.defineProperty, Bf = (e, t) => zf(e, "name", {
|
|
|
2619
2619
|
});
|
|
2620
2620
|
}, "SliderVertical")), ap = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Bf(function(e, t) {
|
|
2621
2621
|
let { __scopeSlider: n, onSlideStart: r, onSlideMove: i, onSlideEnd: a, onHomeKeyDown: o, onEndKeyDown: s, onStepKeyDown: c, ...l } = e, u = $f(Kf, n);
|
|
2622
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2622
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ss.span, {
|
|
2623
2623
|
...l,
|
|
2624
2624
|
ref: t,
|
|
2625
2625
|
onKeyDown: Zo(e.onKeyDown, (e) => {
|
|
@@ -2642,7 +2642,7 @@ var zf = Object.defineProperty, Bf = (e, t) => zf(e, "name", {
|
|
|
2642
2642
|
});
|
|
2643
2643
|
}, "SliderImpl")), op = "SliderTrack", sp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Bf(function(e, t) {
|
|
2644
2644
|
let { __scopeSlider: n, ...r } = e, i = $f(op, n);
|
|
2645
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2645
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ss.span, {
|
|
2646
2646
|
"data-disabled": i.disabled ? "" : void 0,
|
|
2647
2647
|
"data-orientation": i.orientation,
|
|
2648
2648
|
...r,
|
|
@@ -2650,7 +2650,7 @@ var zf = Object.defineProperty, Bf = (e, t) => zf(e, "name", {
|
|
|
2650
2650
|
});
|
|
2651
2651
|
}, "SliderTrack")), cp = "SliderRange", lp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Bf(function(e, t) {
|
|
2652
2652
|
let { __scopeSlider: n, ...r } = e, i = $f(cp, n), a = np(cp, n), o = J.useRef(null), s = m(t, o), c = i.values.length, l = i.values.map((e) => bp(e, i.min, i.max)), u = c > 1 ? Math.min(...l) : 0, d = 100 - Math.max(...l);
|
|
2653
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2653
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ss.span, {
|
|
2654
2654
|
"data-orientation": i.orientation,
|
|
2655
2655
|
"data-disabled": i.disabled ? "" : void 0,
|
|
2656
2656
|
...r,
|
|
@@ -2697,7 +2697,7 @@ var mp = "SliderThumbTrigger", hp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2697
2697
|
},
|
|
2698
2698
|
children: /* @__PURE__ */ (0, Y.jsx)(qf.ItemSlot, {
|
|
2699
2699
|
scope: n,
|
|
2700
|
-
children: /* @__PURE__ */ (0, Y.jsx)(
|
|
2700
|
+
children: /* @__PURE__ */ (0, Y.jsx)(Ss.span, {
|
|
2701
2701
|
role: "slider",
|
|
2702
2702
|
"aria-label": e["aria-label"] || f,
|
|
2703
2703
|
"aria-valuemin": i.min,
|
|
@@ -2747,7 +2747,7 @@ var mp = "SliderThumbTrigger", hp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */
|
|
|
2747
2747
|
i,
|
|
2748
2748
|
a,
|
|
2749
2749
|
c
|
|
2750
|
-
]), /* @__PURE__ */ (0, Y.jsx)(
|
|
2750
|
+
]), /* @__PURE__ */ (0, Y.jsx)(Ss.input, {
|
|
2751
2751
|
style: { display: "none" },
|
|
2752
2752
|
name: o,
|
|
2753
2753
|
form: s,
|
|
@@ -2836,13 +2836,13 @@ var jp = Object.defineProperty, Mp = (e, t) => jp(e, "name", {
|
|
|
2836
2836
|
value: t,
|
|
2837
2837
|
configurable: !0
|
|
2838
2838
|
}), Np = "Toggle", Pp = /* @__PURE__ */ J.forwardRef(/* @__PURE__ */ Mp(function(e, t) {
|
|
2839
|
-
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] =
|
|
2839
|
+
let { pressed: n, defaultPressed: r, onPressedChange: i, ...a } = e, [o, s] = $o({
|
|
2840
2840
|
prop: n,
|
|
2841
2841
|
onChange: i,
|
|
2842
2842
|
defaultProp: r ?? !1,
|
|
2843
2843
|
caller: Np
|
|
2844
2844
|
});
|
|
2845
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
2845
|
+
return /* @__PURE__ */ (0, Y.jsx)(Ss.button, {
|
|
2846
2846
|
type: "button",
|
|
2847
2847
|
"aria-pressed": o,
|
|
2848
2848
|
"data-state": o ? "on" : "off",
|
|
@@ -2870,18 +2870,18 @@ Ip ||= {};
|
|
|
2870
2870
|
//#endregion
|
|
2871
2871
|
//#region ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/iso.js
|
|
2872
2872
|
function Lp(e) {
|
|
2873
|
-
return
|
|
2873
|
+
return Ho(ko, e);
|
|
2874
2874
|
}
|
|
2875
2875
|
//#endregion
|
|
2876
2876
|
//#region ../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/coerce.js
|
|
2877
2877
|
function Rp(e) {
|
|
2878
|
-
return Cs(
|
|
2878
|
+
return Cs(lo, e);
|
|
2879
2879
|
}
|
|
2880
2880
|
function zp(e) {
|
|
2881
|
-
return ys(
|
|
2881
|
+
return ys(bo, e);
|
|
2882
2882
|
}
|
|
2883
2883
|
function Bp(e) {
|
|
2884
|
-
return
|
|
2884
|
+
return Bo(so, e);
|
|
2885
2885
|
}
|
|
2886
2886
|
//#endregion
|
|
2887
2887
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/button/useToggleButton.mjs
|
|
@@ -2955,9 +2955,9 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
2955
2955
|
]).describe("How far a host has gotten finding the notebooks in a project.\nWhile it is `indexing`, more notebooks are coming. Once it is\n`indexed`, the host believes it has found every notebook under the\nroot. A `partial` project is one the host stopped scanning on\npurpose, or one with something it could not read.\n"), Xp = G({
|
|
2956
2956
|
id: Jp,
|
|
2957
2957
|
name: K().describe("A label to show people, usually the name of the root directory."),
|
|
2958
|
-
root:
|
|
2958
|
+
root: Xo([K(), xo()]).describe("The absolute path of the project's directory, written the way the host's operating system writes paths. Null when the project has no directory."),
|
|
2959
2959
|
status: Yp,
|
|
2960
|
-
message:
|
|
2960
|
+
message: Xo([K(), xo()]).describe("Why the host stopped scanning. Null unless `status` is `partial`."),
|
|
2961
2961
|
operations: V(K()).describe("Operations this client may call on the project, today `notebook.create`. A subset of `host.operations` selected by the client's permissions, independently of the project's current state. The host sends the project again when it changes.")
|
|
2962
2962
|
}).describe("A project is a group of notebooks that the host presents together, usually a directory."), Zp = G({
|
|
2963
2963
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -2970,10 +2970,10 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
2970
2970
|
}).describe("The `project` event, carried by the catalog stream."), $p = K().min(1).describe("Identifies a notebook. Unique within the host and unchanged while the notebook exists."), em = G({
|
|
2971
2971
|
id: $p,
|
|
2972
2972
|
project_id: Jp,
|
|
2973
|
-
path:
|
|
2973
|
+
path: Xo([K(), xo()]).describe("The file's path relative to the project root, written the way the host's operating system writes paths. Null when the notebook has no file, such as one not yet saved, or one deleted while a runtime still refers to it."),
|
|
2974
2974
|
name: K().describe("A label to show people. Derived from the filename when the host has nothing better."),
|
|
2975
2975
|
operations: V(K()).describe("Operations this client may call on the notebook, such as `notebook.edit` or `runtime.start`. A subset of `host.operations` selected by the client's permissions, independently of the notebook's current state. The `runtime` object shows whether a runtime is attached, and preconditions still apply when an operation is called. The host sends the notebook again when it changes."),
|
|
2976
|
-
modified_at:
|
|
2976
|
+
modified_at: Xo([Wp, xo()]).describe("A hint of when the file was last modified, for display and ordering. It can lag, since a host need not send the notebook again when only this value changes. Null when the host does not know.")
|
|
2977
2977
|
}).describe("A notebook is a document and its results as the host knows them,\nusually backed by a file. Its kernel, when it has one, is a\nseparate object, the runtime.\n"), tm = G({
|
|
2978
2978
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
2979
2979
|
time: Wp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -2985,12 +2985,12 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
2985
2985
|
}).describe("The `notebook` event, carried by the catalog and notebook streams."), rm = K().min(1).describe("Identifies a cell within its notebook. Stable while the host serves the notebook; whether it survives a reload of the store depends on the format. `setup` is the setup cell.").brand("CellId"), im = K().min(1).describe("An identifier a host derives from content, so the same content has the same etag. It is opaque to clients. They read etags from the stream and from responses, and send them back as preconditions."), am = G({
|
|
2986
2986
|
notebook_id: $p.describe("The notebook this document belongs to."),
|
|
2987
2987
|
order: V(rm).describe("Cell ids in display order. A permutation of the notebook's cells, each appearing exactly once."),
|
|
2988
|
-
app_config:
|
|
2988
|
+
app_config: os({}).describe("Notebook-level settings, the keyword arguments to `marimo.App` such as `width` and `app_title`. Informational for now; no change sets it over this protocol."),
|
|
2989
2989
|
etag: im.describe("Identifies the document as currently applied. It changes when the order, the app config, or any cell's `etag` does."),
|
|
2990
|
-
saved_etag:
|
|
2990
|
+
saved_etag: Xo([im, xo()]).describe("Identifies the document as last written to the host's store, computed the same way over that state. Equal to `etag` when every accepted change has been persisted. Null when nothing has been persisted, which is the case for a scratch copy."),
|
|
2991
2991
|
order_etag: im.describe("Identifies the order alone. Editing a cell does not change it."),
|
|
2992
2992
|
app_config_etag: im.describe("Identifies the app config alone."),
|
|
2993
|
-
version:
|
|
2993
|
+
version: Ao().min(1).describe("Counts changes to the cells, the order, or the app config. A save does not advance it. Comparable only within one notebook while it is in the catalog.")
|
|
2994
2994
|
}).describe("The document as a whole, without its cells, which are their own\nobjects: the cell order and app config. One per notebook,\nand removed with it. The order and the app\nconfig carry their own etags, so an edit to one does not conflict\nwith an edit to the other, or with edits to cells.\n"), om = G({
|
|
2995
2995
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
2996
2996
|
time: Wp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3000,19 +3000,19 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3000
3000
|
id: K().min(1).optional().describe("The resume cursor. Omitted on snapshot and reset events."),
|
|
3001
3001
|
data: om
|
|
3002
3002
|
}).describe("The `document` event, carried by the notebook stream."), cm = G({
|
|
3003
|
-
column:
|
|
3003
|
+
column: Xo([Ao(), xo()]).describe("The column the cell sits in, for multi-column layouts. Null in a single column."),
|
|
3004
3004
|
disabled: U().describe("Whether the cell is kept from running."),
|
|
3005
3005
|
hide_code: U().describe("Whether clients hide the code by default. This is a presentation preference; source availability is represented by `Cell.code`."),
|
|
3006
3006
|
expand_output: U().describe("Whether clients show the full output rather than a scrolled box.")
|
|
3007
3007
|
}).describe("How a cell is laid out and whether it runs. Every field is always present, so a cell's etag is well defined."), lm = K().min(1).describe("Opaque code identity assigned by the host. Clients compare cell and execution fingerprints for freshness. Incompatible schemes MUST produce distinct fingerprints."), um = G({
|
|
3008
3008
|
id: rm,
|
|
3009
3009
|
notebook_id: $p,
|
|
3010
|
-
code:
|
|
3010
|
+
code: Xo([K(), xo()]).describe("The cell's source code, with newline line endings, or null when the host does not expose source to this client. An empty string is an empty cell. A host normalizes other line endings when it loads a file. Source availability does not grant editing permission; see the notebook's operations."),
|
|
3011
3011
|
name: K().describe("The cell's name. `_` for an anonymous cell; otherwise a Python identifier, unique within the notebook."),
|
|
3012
3012
|
config: cm,
|
|
3013
3013
|
etag: im.describe("Precondition for edits and cell runs. Covers exact source, name, and config."),
|
|
3014
3014
|
code_fingerprint: lm.describe("Fingerprint of the actual source, including when `code` is null. Formatting-only edits may preserve it. Independent of cell name, config, and source visibility."),
|
|
3015
|
-
version:
|
|
3015
|
+
version: Ao().min(1).describe("The document version at which the cell was created or last changed.")
|
|
3016
3016
|
}).describe("A unit of code and configuration in the document. A cell event\nfires when its code, name, or config changes. Markdown and SQL\ncells are code that calls `mo.md` or `mo.sql`; a client chooses\nthe editor to show.\n"), dm = G({
|
|
3017
3017
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3018
3018
|
time: Wp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3023,15 +3023,15 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3023
3023
|
data: dm
|
|
3024
3024
|
}).describe("The `cell` event, carried by the notebook stream."), pm = K().min(1).describe("Identifies a runtime. Unique within the host; every start and restart creates a new id."), mm = G({
|
|
3025
3025
|
status: H(["starting"]),
|
|
3026
|
-
message:
|
|
3026
|
+
message: Xo([K(), xo()]).describe("A note about progress, such as the packages being installed. Null when the host has nothing to report.")
|
|
3027
3027
|
}), hm = G({ status: H(["ready"]) }), gm = G({ status: H(["stopping"]) }), _m = G({ kind: H(["stopped"]) }), vm = G({
|
|
3028
3028
|
kind: H(["failed"]),
|
|
3029
|
-
message:
|
|
3030
|
-
}), ym =
|
|
3029
|
+
message: Xo([K(), xo()]).describe("Why the kernel could not start or why it exited, to show people. Null when the host does not know.")
|
|
3030
|
+
}), ym = Xo([_m, vm]).describe("How a runtime ended, tagged on `kind`. A `stopped` runtime was\nended by a client or the host. A `failed` runtime could not start,\nor its kernel exited unexpectedly.\n"), bm = G({
|
|
3031
3031
|
status: H(["ended"]),
|
|
3032
3032
|
ended_at: Wp.describe("When the runtime ended."),
|
|
3033
3033
|
outcome: ym
|
|
3034
|
-
}), xm =
|
|
3034
|
+
}), xm = Xo([
|
|
3035
3035
|
mm,
|
|
3036
3036
|
hm,
|
|
3037
3037
|
gm,
|
|
@@ -3039,7 +3039,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3039
3039
|
]).describe("Where a runtime is in its life, tagged on `status`. A `starting`\nruntime is bringing its kernel up. A `ready` runtime accepts work.\nA `stopping` runtime is shutting its kernel down. An `ended`\nruntime has no kernel and does not change again.\n"), Sm = G({
|
|
3040
3040
|
id: pm,
|
|
3041
3041
|
notebook_id: $p,
|
|
3042
|
-
marimo_version:
|
|
3042
|
+
marimo_version: Xo([K(), xo()]).describe("The version of marimo running the kernel. Null until the host knows it."),
|
|
3043
3043
|
created_at: Wp.describe("When the host created this runtime and began starting it."),
|
|
3044
3044
|
state: xm
|
|
3045
3045
|
}).describe("A runtime is a kernel attached to one notebook, and a notebook has\nat most one. It ends when a client or the host stops it or its\nprocess exits. The notebook keeps the ended runtime, so clients can\nsee how it ended, until another one starts or the notebook closes.\nThe host then sends `runtime.removed`. Every start and restart\ncreates a new runtime with a new id. Executions carry their producer's\nruntime id, and their results are live while that runtime has not ended.\n"), Cm = G({
|
|
@@ -3053,9 +3053,9 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3053
3053
|
}).describe("The `runtime` event, carried by the catalog and notebook streams."), Tm = K().min(1).describe("Identifies an attachment. Unique within the host."), Em = /* @__PURE__ */ RegExp("^[!-~]+$"), Dm = /* @__PURE__ */ RegExp("^[a-z0-9-]+$"), Om = G({
|
|
3054
3054
|
id: Tm,
|
|
3055
3055
|
notebook_id: $p,
|
|
3056
|
-
identity:
|
|
3056
|
+
identity: Xo([K().min(1).max(128).regex(Em), xo()]).describe("The opaque client identity supplied by `Marimo-Attachment-Identity`.\nNull when none was supplied. Consumers can group attachments\nwith the same identity within a host. It does not identify an\nindividual connection or change its lifetime.\n"),
|
|
3057
3057
|
kind: K().regex(Dm).describe("What kind of thing is attached, supplied by `Marimo-Attachment-Kind`, such as `browser`, `editor`, or `agent`. Defaults to `client` when the header is omitted. Clients accept kinds they do not recognize."),
|
|
3058
|
-
name:
|
|
3058
|
+
name: Xo([K().max(256), xo()]).describe("A label to show people, supplied by `Marimo-Attachment-Name`, such as the browser or editor's name. Null when the header is omitted or empty."),
|
|
3059
3059
|
created_at: Wp.describe("When it attached.")
|
|
3060
3060
|
}).describe("An attachment is a consumer connected to a notebook, such as a\nbrowser tab, an editor, or an agent. Opening the notebook's stream\ncreates one. It is removed when that connection closes, and not\nwhen the notebook's runtime stops or restarts. Each stream has its\nown attachment, even when several share a client identity.\n"), km = G({
|
|
3061
3061
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3071,7 +3071,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3071
3071
|
}), Nm = G({
|
|
3072
3072
|
kind: H(["code"]),
|
|
3073
3073
|
code: K().describe("The submitted code, which the run's scratch execution evaluates.")
|
|
3074
|
-
}), Pm = G({ kind: H(["runtime"]) }), Fm =
|
|
3074
|
+
}), Pm = G({ kind: H(["runtime"]) }), Fm = Xo([
|
|
3075
3075
|
Mm,
|
|
3076
3076
|
Nm,
|
|
3077
3077
|
Pm
|
|
@@ -3080,17 +3080,17 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3080
3080
|
started_at: Wp.describe("When the first execution started.")
|
|
3081
3081
|
}), Rm = G({ kind: H(["succeeded"]) }), zm = G({
|
|
3082
3082
|
kind: H(["failed"]),
|
|
3083
|
-
message:
|
|
3084
|
-
}), Bm = G({ kind: H(["cancelled"]) }), Vm =
|
|
3083
|
+
message: Xo([K(), xo()]).describe("Why the host could not finish the cycle, to show people. Null when the run failed because an execution's code raised.")
|
|
3084
|
+
}), Bm = G({ kind: H(["cancelled"]) }), Vm = Xo([
|
|
3085
3085
|
Rm,
|
|
3086
3086
|
zm,
|
|
3087
3087
|
Bm
|
|
3088
3088
|
]).describe("How a run ended, tagged on `kind`. `succeeded` means its work\nsettled without an execution failing or being cancelled. `failed`\nmeans an execution's code raised or the host could not finish the\ncycle. An execution skipped because of another cell does not fail\nits run. `cancelled` means the cycle was cut short by a cancel,\nan interrupt, or its runtime stopping, even if an earlier execution\nfailed. Execution outcomes retain their individual results.\n"), Hm = G({
|
|
3089
3089
|
status: H(["completed"]),
|
|
3090
|
-
started_at:
|
|
3090
|
+
started_at: Xo([Wp, xo()]).describe("When the first execution started. Null if none started."),
|
|
3091
3091
|
completed_at: Wp.describe("When the run ended."),
|
|
3092
3092
|
outcome: Vm.describe("An execution failure does not complete a run while other work remains. Interruption must have taken effect, not merely been requested.")
|
|
3093
|
-
}), Um =
|
|
3093
|
+
}), Um = Xo([
|
|
3094
3094
|
Im,
|
|
3095
3095
|
Lm,
|
|
3096
3096
|
Hm
|
|
@@ -3113,8 +3113,8 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3113
3113
|
status: H(["running"]),
|
|
3114
3114
|
started_at: Wp.describe("When the code started executing.")
|
|
3115
3115
|
}), Xm = G({
|
|
3116
|
-
line:
|
|
3117
|
-
character:
|
|
3116
|
+
line: Ao().min(0).describe("Zero-based line within the code."),
|
|
3117
|
+
character: Ao().min(0).describe("Zero-based offset in the line, in UTF-16 code units.")
|
|
3118
3118
|
}).describe("A position within code, using LSP coordinates."), Zm = G({
|
|
3119
3119
|
start: Xm,
|
|
3120
3120
|
end: Xm.describe("Exclusive end. Equal to start when only a point is known.")
|
|
@@ -3123,21 +3123,21 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3123
3123
|
data: K().describe("The rendered value, embedded so clients can display it independently of the runtime. JSON mimetypes are encoded as text and binary mimetypes as base64.")
|
|
3124
3124
|
}).describe("A rendered value."), $m = G({
|
|
3125
3125
|
cell_id: rm,
|
|
3126
|
-
range:
|
|
3126
|
+
range: Xo([Zm, xo()]).describe("Where in that cell, when known."),
|
|
3127
3127
|
message: K().describe("What that cell contributes, such as `reads x from C`.")
|
|
3128
3128
|
}).describe("A cell involved in an error, possibly the one carrying it."), eh = G({
|
|
3129
3129
|
kind: K().describe("The producer's identifier, scoped by source. Open; this protocol defines `exception` and `internal` for executions. Clients show unrecognized kinds as plain errors."),
|
|
3130
3130
|
message: K().describe("A description of the error to show people."),
|
|
3131
|
-
source:
|
|
3131
|
+
source: Xo([K(), xo()]).describe("Who produced it, such as `marimo` or a SQL analyzer. Scopes kind."),
|
|
3132
3132
|
severity: H([
|
|
3133
3133
|
"error",
|
|
3134
3134
|
"warning",
|
|
3135
3135
|
"information",
|
|
3136
3136
|
"hint"
|
|
3137
3137
|
]).describe("Error unless the producer says otherwise. Only error affects scheduling."),
|
|
3138
|
-
range:
|
|
3139
|
-
name:
|
|
3140
|
-
traceback:
|
|
3138
|
+
range: Xo([Zm, xo()]).describe("Where in the code, when known."),
|
|
3139
|
+
name: Xo([K(), xo()]).describe("The exception class, such as `ZeroDivisionError`. Set when kind is exception, null otherwise."),
|
|
3140
|
+
traceback: Xo([Qm, xo()]).describe("The traceback as rendered by the runtime, plain text or HTML by its mimetype. Null when unavailable or not shown."),
|
|
3141
3141
|
related: V($m).describe("Every involved cell, including this one, in canonical order. Each copy of a cross-cell error carries the same list; clients deduplicate on kind and related cell ids. Empty when the error involves this code alone.")
|
|
3142
3142
|
}).describe("A problem shaped like an LSP diagnostic. Further members are\nkind-specific, as in Problem Details, and a client ignores\nmembers it does not know.\n"), th = G({
|
|
3143
3143
|
kind: H(["failed"]),
|
|
@@ -3147,32 +3147,32 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3147
3147
|
reason: K().describe("Why the cell did not evaluate. The string is open. This protocol\ndefines `upstream-failed`, a cell it depends on did not produce\nits value because it raised or could not resolve a reference,\n`upstream-stopped`, a cell it depends on stopped the cycle on\npurpose, and `superseded`, a later execution of the same cell\nreplaced this one before it started because the cell's source\nchanged while it waited. Clients show unrecognized reasons as\nskipped, with the message.\n"),
|
|
3148
3148
|
message: K().describe("Why the cell did not run, to show in place of its output."),
|
|
3149
3149
|
related: V($m).describe("The cells involved, the cause first and this cell last.")
|
|
3150
|
-
}), rh =
|
|
3150
|
+
}), rh = Xo([
|
|
3151
3151
|
Rm,
|
|
3152
3152
|
th,
|
|
3153
3153
|
Bm,
|
|
3154
3154
|
nh
|
|
3155
3155
|
]).describe("How an execution ended, tagged on `kind`. A `succeeded` execution\nevaluated its code without raising, and what it showed is its\n`output` item. A `failed` execution carries the error that ended it.\nA `cancelled` execution was stopped before or while it ran.\nA `skipped` execution did not evaluate because of another cell; it\nhas no value and binds no variables. Other kinds are defined by\nlater versions of this protocol.\n"), ih = G({
|
|
3156
3156
|
execution_id: qm.describe("The execution whose evaluation produced the value. Usually the variable's `execution_id`, and earlier when the runtime carried the value forward."),
|
|
3157
|
-
update:
|
|
3157
|
+
update: Ao().min(0).describe("How many times the value has been updated since it was produced. Zero at binding.")
|
|
3158
3158
|
}).describe("A variable's value at a point in time. Two revisions are equal\nwhen `execution_id` and `update` are equal. Clients compare\nrevisions for equality.\n"), ah = G({
|
|
3159
3159
|
status: H(["completed"]),
|
|
3160
|
-
started_at:
|
|
3161
|
-
completed_at:
|
|
3160
|
+
started_at: Xo([Wp, xo()]).describe("When the code started executing. Null if the execution never started or the start time of a restored result is unknown."),
|
|
3161
|
+
completed_at: Xo([Wp, xo()]).describe("When the execution ended. Null for a restored result whose store does not record it."),
|
|
3162
3162
|
outcome: rh,
|
|
3163
|
-
depends_on:
|
|
3164
|
-
}), oh =
|
|
3163
|
+
depends_on: Wo(K(), Xo([ih, xo()])).describe("The variable revisions this result is valid against, keyed by name. Null for a name no retained cell execution had bound. Stamped as the execution ends.")
|
|
3164
|
+
}), oh = Xo([
|
|
3165
3165
|
Jm,
|
|
3166
3166
|
Ym,
|
|
3167
3167
|
ah
|
|
3168
3168
|
]).describe("Where an execution is in its lifecycle, tagged on `status`. An\nexecution is `queued` until it starts, `running` while code\nexecutes, and `completed` once it has ended with its `outcome`.\n"), sh = G({
|
|
3169
3169
|
id: qm,
|
|
3170
|
-
run_id:
|
|
3171
|
-
runtime_id:
|
|
3172
|
-
caused_by_id:
|
|
3173
|
-
cell_id:
|
|
3170
|
+
run_id: Xo([jm, xo()]).describe("The run that owns this execution. Every live execution belongs to exactly one run. May name a run the host has dropped. Null only for a restored result whose run is unknown."),
|
|
3171
|
+
runtime_id: Xo([pm, xo()]).describe("The runtime that produced this execution. Live while that runtime is the notebook's and has not ended. Null when the producer is unknown."),
|
|
3172
|
+
caused_by_id: Xo([qm, xo()]).describe("The execution in the same run whose code was running when this one was scheduled, such as scratch code that ran a cell, set a UI element's value, or wrote state, and the cells that reacted to it. Null for an execution a client requested and for the cells that reacted to one."),
|
|
3173
|
+
cell_id: Xo([rm, xo()]).describe("The cell this execution belongs to. Null for a scratch execution, which evaluates the code in its run's `origin`."),
|
|
3174
3174
|
code_fingerprint: lm.describe("Fingerprint of the code the execution evaluates. Fixed when the execution is published, while it is still queued."),
|
|
3175
|
-
created_at:
|
|
3175
|
+
created_at: Xo([Wp, xo()]).describe("When the runtime scheduled this execution. Null for a restored result, whose timing is unknown."),
|
|
3176
3176
|
state: oh
|
|
3177
3177
|
}).describe("One cell evaluated within a run, or scratch code evaluated once.\nIt moves through `queued`, `running`, and `completed`, and ends with\none outcome. Side effects belong to the execution whose context\nproduced them, and items can arrive after completion while the\nexecution remains retained. Each new input belongs to a running\nexecution. Input calls from completed or removed executions raise\n`EOFError` in the calling code. A scratch execution has no cell and\nevaluates the code in its run's `origin`.\n"), ch = G({
|
|
3178
3178
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3185,7 +3185,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3185
3185
|
}).describe("The `execution` event, carried by the notebook stream."), uh = K().min(1).describe("Identifies an output, console, input, or variable item uniquely within the host. Sending an item again with the same id replaces it."), dh = G({
|
|
3186
3186
|
id: uh,
|
|
3187
3187
|
execution_id: qm,
|
|
3188
|
-
media:
|
|
3188
|
+
media: Xo([Qm, xo()]).describe("The output as last rendered. Null when the code set it to nothing or cleared it.")
|
|
3189
3189
|
}).describe("What an execution's code shows as its result, such as the value of\na cell's last expression. An execution has at most one, published\nonce the code first sets it. A producer replaces it by sending it\nagain with the same id, including after the execution completes,\nand it is removed with its execution.\n"), fh = G({
|
|
3190
3190
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3191
3191
|
time: Wp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3201,10 +3201,10 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3201
3201
|
}), hh = G({
|
|
3202
3202
|
kind: H(["media"]),
|
|
3203
3203
|
media: Qm.describe("Something rendered into the console, such as a figure from `plt.show()` or a formatted traceback.")
|
|
3204
|
-
}), gh =
|
|
3204
|
+
}), gh = Xo([mh, hh]), _h = G({
|
|
3205
3205
|
id: uh,
|
|
3206
3206
|
execution_id: qm,
|
|
3207
|
-
seq:
|
|
3207
|
+
seq: Ao().min(0).describe("Position among the execution's console and input items, increasing in the order they were produced."),
|
|
3208
3208
|
content: gh.describe("What was written, tagged on `kind`.")
|
|
3209
3209
|
}).describe("One entry in an execution's console, which is text written to\nstdout or stderr, or media rendered among it. A producer replaces\nan entry by sending it again with the same id, and entries are\nremoved with their execution.\n"), vh = G({
|
|
3210
3210
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
@@ -3221,7 +3221,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3221
3221
|
]).describe("An input starts `pending` while it waits for an answer. It becomes\n`answered` when the host accepts a reply for delivery, or `cancelled`\nwhen the host ends the wait while input is still pending. Both\n`answered` and `cancelled` are final. An answered input stays\nanswered if execution later fails before consuming the value.\n"), xh = G({
|
|
3222
3222
|
id: uh.describe("Identifies this prompt uniquely across executions and runtime restarts."),
|
|
3223
3223
|
execution_id: qm,
|
|
3224
|
-
seq:
|
|
3224
|
+
seq: Ao().min(0).describe("Position among the execution's console and input items, increasing in production order."),
|
|
3225
3225
|
prompt: K().describe("The prompt to display, which may be empty."),
|
|
3226
3226
|
password: U().describe("Whether clients must obscure the value as it is entered."),
|
|
3227
3227
|
status: bh
|
|
@@ -3238,8 +3238,8 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3238
3238
|
execution_id: qm.describe("The execution that bound the name."),
|
|
3239
3239
|
name: K().describe("The name in the namespace."),
|
|
3240
3240
|
revision: ih,
|
|
3241
|
-
type:
|
|
3242
|
-
preview:
|
|
3241
|
+
type: Xo([K(), xo()]).describe("The runtime's label for the value's type. A host may leave it null."),
|
|
3242
|
+
preview: Xo([K(), xo()]).describe("A short rendering of the value. A host may leave it null.")
|
|
3243
3243
|
}).describe("A name a cell's execution bound in the notebook's namespace, with\nthe revision of its value. The execution binds it as it ends, and\nthe item is removed with the execution. An update, as when a\nstate setter runs or a UI element's value changes, advances the revision\nwithout binding again, and the producer sends the item again with\nthe same id. Hosts publish a cell execution's variables before its\n`completed` status, and remove a cell's previous execution and\nits items before publishing the next one. A scratch execution's\nnames live only while it runs, so it publishes no variables.\n"), Th = G({
|
|
3244
3244
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3245
3245
|
time: Wp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3258,7 +3258,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3258
3258
|
"hint"
|
|
3259
3259
|
]),
|
|
3260
3260
|
message: K(),
|
|
3261
|
-
range:
|
|
3261
|
+
range: Xo([Zm, xo()]).describe("Span in this cell, or null for a whole-cell finding or unknown location."),
|
|
3262
3262
|
related: V($m)
|
|
3263
3263
|
}), Oh = G({
|
|
3264
3264
|
defs: V(K()).describe("Names this cell defines."),
|
|
@@ -3268,7 +3268,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3268
3268
|
}).describe("The definitions, references, direct dependencies, and diagnostics for one cell at this document revision."), kh = G({
|
|
3269
3269
|
notebook_id: $p.describe("The notebook this analysis belongs to."),
|
|
3270
3270
|
document_etag: im.describe("The document revision this analysis describes. Equal to the document's `etag` while the analysis is current."),
|
|
3271
|
-
cells:
|
|
3271
|
+
cells: Wo(K(), Oh).describe("Every cell of that revision, by id.")
|
|
3272
3272
|
}).describe("What a document's cells imply, computed together over one\nrevision of the document so that cross-cell errors agree. One\nper notebook, and removed with it. It follows the document it\ndescribes, and `document_etag` says which revision that is.\n"), Ah = G({
|
|
3273
3273
|
request_id: K().optional().describe("The `Idempotency-Key` of the request that caused this event. Omitted when no request did, and on snapshots unless that request's work is still in progress."),
|
|
3274
3274
|
time: Wp.optional().describe("When the host published this event. Present on live and replayed events; omitted on snapshots."),
|
|
@@ -3340,7 +3340,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3340
3340
|
event: H(["ready"]),
|
|
3341
3341
|
id: K().min(1).describe("The resume cursor. Omitted on snapshot and reset events."),
|
|
3342
3342
|
data: G({})
|
|
3343
|
-
}).describe("The `ready` event, carried by every stream."), Yh =
|
|
3343
|
+
}).describe("The `ready` event, carried by every stream."), Yh = Xo([
|
|
3344
3344
|
qp,
|
|
3345
3345
|
Qp,
|
|
3346
3346
|
nm,
|
|
@@ -3368,7 +3368,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3368
3368
|
Kh,
|
|
3369
3369
|
qh,
|
|
3370
3370
|
Jh
|
|
3371
|
-
]).describe("A record, removal, or control message from a host stream. The data is decoded JSON. Snapshot records and reset events omit the cursor, and ready and live events carry it. Unknown event names belong to later versions or host extensions."), Xh =
|
|
3371
|
+
]).describe("A record, removal, or control message from a host stream. The data is decoded JSON. Snapshot records and reset events omit the cursor, and ready and live events carry it. Unknown event names belong to later versions or host extensions."), Xh = Xo([
|
|
3372
3372
|
qp,
|
|
3373
3373
|
Qp,
|
|
3374
3374
|
nm,
|
|
@@ -3380,7 +3380,7 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3380
3380
|
Vh,
|
|
3381
3381
|
qh,
|
|
3382
3382
|
Jh
|
|
3383
|
-
]).describe("Any event the catalog stream carries."), Zh =
|
|
3383
|
+
]).describe("Any event the catalog stream carries."), Zh = Xo([
|
|
3384
3384
|
nm,
|
|
3385
3385
|
sm,
|
|
3386
3386
|
fm,
|
|
@@ -3422,11 +3422,11 @@ var Wp = Lp({ offset: !0 }).describe("A date and time with its offset from UTC,
|
|
|
3422
3422
|
"analysis",
|
|
3423
3423
|
"custom"
|
|
3424
3424
|
]).describe("The kinds a stream carries, and the values `kinds` accepts. The catalog stream carries host, project, notebook, runtime, and attachment. A notebook's stream carries notebook, document, cell, runtime, attachment, run, execution, output, console, input, variable, analysis, and custom. Custom events describe occurrences rather than object state."), $h = G({
|
|
3425
|
-
pid:
|
|
3425
|
+
pid: Ao().min(1).describe("The process id."),
|
|
3426
3426
|
started_at: Wp.describe("When the process started.")
|
|
3427
3427
|
}).describe("The process that wrote a record. A client checks that a process\nwith this `pid` that started at `started_at` still exists. If it\ndoes not, the record is stale and may be removed.\n");
|
|
3428
3428
|
G({
|
|
3429
|
-
version:
|
|
3429
|
+
version: hs(1).describe("The version of this record's format. This document describes version 1."),
|
|
3430
3430
|
process: $h,
|
|
3431
3431
|
name: K().describe("A label for the host to show people, such as `VS Code` or `marimo`. Two hosts can share a name; the filename is the identity."),
|
|
3432
3432
|
url: K().describe("Where the host's API is. The scheme is `http`, and the host part is `127.0.0.1` or `[::1]`, written exactly that way."),
|
|
@@ -3436,43 +3436,43 @@ var eg = G({
|
|
|
3436
3436
|
detail: K().optional(),
|
|
3437
3437
|
instance: K().optional(),
|
|
3438
3438
|
type: H(["urn:marimo:problem:invalid-request"]),
|
|
3439
|
-
status:
|
|
3439
|
+
status: hs(400).default(400),
|
|
3440
3440
|
title: K().default("Invalid request")
|
|
3441
3441
|
}), tg = G({
|
|
3442
3442
|
detail: K().optional(),
|
|
3443
3443
|
instance: K().optional(),
|
|
3444
3444
|
type: H(["urn:marimo:problem:unauthorized"]),
|
|
3445
|
-
status:
|
|
3445
|
+
status: hs(401).default(401),
|
|
3446
3446
|
title: K().default("Unauthorized")
|
|
3447
3447
|
}), ng = G({
|
|
3448
3448
|
detail: K().optional(),
|
|
3449
3449
|
instance: K().optional(),
|
|
3450
3450
|
type: H(["urn:marimo:problem:forbidden"]),
|
|
3451
|
-
status:
|
|
3451
|
+
status: hs(403).default(403),
|
|
3452
3452
|
title: K().default("Forbidden")
|
|
3453
3453
|
}), rg = G({
|
|
3454
3454
|
detail: K().optional(),
|
|
3455
3455
|
instance: K().optional(),
|
|
3456
3456
|
type: H(["urn:marimo:problem:not-found"]),
|
|
3457
|
-
status:
|
|
3457
|
+
status: hs(404).default(404),
|
|
3458
3458
|
title: K().default("Not found")
|
|
3459
3459
|
}), ig = G({
|
|
3460
3460
|
detail: K().optional(),
|
|
3461
3461
|
instance: K().optional(),
|
|
3462
3462
|
type: H(["urn:marimo:problem:method-not-allowed"]),
|
|
3463
|
-
status:
|
|
3463
|
+
status: hs(405).default(405),
|
|
3464
3464
|
title: K().default("Method not allowed")
|
|
3465
3465
|
}), ag = G({
|
|
3466
3466
|
detail: K().optional(),
|
|
3467
3467
|
instance: K().optional(),
|
|
3468
3468
|
type: H(["urn:marimo:problem:conflict"]),
|
|
3469
|
-
status:
|
|
3469
|
+
status: hs(409).default(409),
|
|
3470
3470
|
title: K().default("Conflict")
|
|
3471
3471
|
}), og = G({
|
|
3472
3472
|
detail: K().optional(),
|
|
3473
3473
|
instance: K().optional(),
|
|
3474
3474
|
type: H(["urn:marimo:problem:no-runtime"]),
|
|
3475
|
-
status:
|
|
3475
|
+
status: hs(409).default(409),
|
|
3476
3476
|
title: K().default("No runtime")
|
|
3477
3477
|
}), sg = G({
|
|
3478
3478
|
id: K().describe("Identifies this answer."),
|
|
@@ -3486,30 +3486,30 @@ var eg = G({
|
|
|
3486
3486
|
instance: K().optional(),
|
|
3487
3487
|
decisions: V(cg).describe("The choices the client has to make before the host can carry out the request."),
|
|
3488
3488
|
type: H(["urn:marimo:problem:decision-required"]),
|
|
3489
|
-
status:
|
|
3489
|
+
status: hs(409).default(409),
|
|
3490
3490
|
title: K().default("Decision required")
|
|
3491
3491
|
}), ug = G({
|
|
3492
3492
|
detail: K().optional(),
|
|
3493
3493
|
instance: K().optional(),
|
|
3494
|
-
index:
|
|
3495
|
-
cell:
|
|
3494
|
+
index: Ao().min(0).describe("The position of the first stale entry in the request, counted in an edit's `changes` or a run's `cells`. `0` for a save with a stale `If-Match`."),
|
|
3495
|
+
cell: Xo([um, xo()]).describe("The cell that entry named, as it now is. Null when the document does not have it, or when the entry named the order or the whole document."),
|
|
3496
3496
|
document: am.describe("The document as it now is."),
|
|
3497
3497
|
type: H(["urn:marimo:problem:precondition-failed"]),
|
|
3498
|
-
status:
|
|
3498
|
+
status: hs(412).default(412),
|
|
3499
3499
|
title: K().default("Precondition failed")
|
|
3500
3500
|
}), dg = G({
|
|
3501
3501
|
detail: K().optional(),
|
|
3502
3502
|
instance: K().optional(),
|
|
3503
3503
|
type: H(["urn:marimo:problem:internal"]),
|
|
3504
|
-
status:
|
|
3504
|
+
status: hs(500).default(500),
|
|
3505
3505
|
title: K().default("Internal error")
|
|
3506
3506
|
}), fg = G({
|
|
3507
3507
|
detail: K().optional(),
|
|
3508
3508
|
instance: K().optional(),
|
|
3509
3509
|
type: H(["urn:marimo:problem:unsupported-operation"]),
|
|
3510
|
-
status:
|
|
3510
|
+
status: hs(501).default(501),
|
|
3511
3511
|
title: K().default("Unsupported operation")
|
|
3512
|
-
}), pg =
|
|
3512
|
+
}), pg = Xo([
|
|
3513
3513
|
eg,
|
|
3514
3514
|
tg,
|
|
3515
3515
|
ng,
|
|
@@ -3521,58 +3521,58 @@ var eg = G({
|
|
|
3521
3521
|
ug,
|
|
3522
3522
|
dg,
|
|
3523
3523
|
fg
|
|
3524
|
-
]).describe("An error. Every error response is a problem, following RFC 9457, and is served as `application/problem+json`. `type` says which. A client ignores members it does not recognize. Hosts redact tokens from errors."), mg =
|
|
3524
|
+
]).describe("An error. Every error response is a problem, following RFC 9457, and is served as `application/problem+json`. `type` says which. A client ignores members it does not recognize. Hosts redact tokens from errors."), mg = os({
|
|
3525
3525
|
type: K().describe("What kind of problem this is, as a URI."),
|
|
3526
3526
|
title: K().describe("A short, human-readable name for the kind of problem."),
|
|
3527
|
-
status:
|
|
3527
|
+
status: Ao().min(400).max(599).describe("The HTTP status code of the response."),
|
|
3528
3528
|
detail: K().optional().describe("A human-readable explanation of what went wrong this time.")
|
|
3529
|
-
}).describe("A problem of a type this version does not define. A host on a later version can send one, and a client falls back to its `status`."), hg =
|
|
3529
|
+
}).describe("A problem of a type this version does not define. A host on a later version can send one, and a client falls back to its `status`."), hg = is({
|
|
3530
3530
|
type: K().min(1).describe("A namespaced event type under a namespace the producer controls, such as `marimo.pair.agent-message`. Clients ignore types they do not recognize while retaining the stream cursor."),
|
|
3531
3531
|
data: Mh.describe("Any JSON value, including null. The producer defines its schema and consumers of the type validate it.")
|
|
3532
|
-
}).describe("A custom event to publish on the notebook stream."), gg =
|
|
3532
|
+
}).describe("A custom event to publish on the notebook stream."), gg = is({
|
|
3533
3533
|
path: K().optional().describe("The new location, relative to the project root and written the way the host's operating system writes paths."),
|
|
3534
3534
|
name: K().optional().describe("The new label to show people.")
|
|
3535
3535
|
}).describe("The fields to change. At least one is present."), _g = G({
|
|
3536
3536
|
etag: im,
|
|
3537
3537
|
code_fingerprint: lm,
|
|
3538
|
-
version:
|
|
3538
|
+
version: Ao().min(1).describe("The cell's version after the edit.")
|
|
3539
3539
|
}).describe("A cell's etag, code fingerprint, and version after an edit."), vg = G({
|
|
3540
3540
|
document: am,
|
|
3541
|
-
cells:
|
|
3542
|
-
}).describe("The document as an edit or save left it, or at a later revision, and the cells it touched."), yg =
|
|
3541
|
+
cells: Wo(K(), Xo([_g, xo()])).describe("The version of each cell the request created or changed, by id, and null for each cell it deleted.")
|
|
3542
|
+
}).describe("The document as an edit or save left it, or at a later revision, and the cells it touched."), yg = is({ decisions: Wo(K(), K()).optional().describe("Answers to the questions in a `decision-required` problem, as for `runtime.start`.") }).describe("What a save needs from the client, which is nothing until the host asks a question. `{}` is the usual body."), bg = is({ decisions: Wo(K(), K()).optional().describe("Answers to the questions in a `decision-required` problem.\nEach key is a decision's `id` and each value is the `id` of\nthe chosen option. A client that already knows its choices can\nsend them the first time.\n") }), xg = is({ code: K().describe("Python code that can read the notebook's current values.\nAssignments stay local to the call. Changes to shared objects persist.\n") }).describe("Python code to execute with access to notebook values."), Sg = is({
|
|
3543
3543
|
id: rm,
|
|
3544
3544
|
etag: im.optional().describe("The cell's `etag` as last read. A cell whose source, name, or config differs is `precondition-failed`. Absent, the cell runs as it is.")
|
|
3545
|
-
}), Cg =
|
|
3546
|
-
column:
|
|
3545
|
+
}), Cg = is({ cells: V(Sg).min(1).describe("Cells to run by id. The notebook's execution settings determine their order and whether dependent cells run too.") }).describe("Notebook cells to run."), wg = is({ value: K().describe("The text to deliver to the input exactly as submitted, including an empty string when the answer is empty.") }).describe("The answer to one pending input."), Tg = G({ url: K().describe("The URL the host used to show the notebook, with the host's token omitted.") }), Eg = is({
|
|
3546
|
+
column: Xo([Ao(), xo()]).default(null),
|
|
3547
3547
|
disabled: U().default(!1),
|
|
3548
3548
|
hide_code: U().default(!1),
|
|
3549
3549
|
expand_output: U().default(!1)
|
|
3550
|
-
}).describe("A cell's settings as a client writes them. A field left out takes its default."), Dg =
|
|
3550
|
+
}).describe("A cell's settings as a client writes them. A field left out takes its default."), Dg = is({
|
|
3551
3551
|
id: rm.describe("The cell's id. A client chooses the id of a cell it creates."),
|
|
3552
3552
|
code: K().describe("The cell's source code."),
|
|
3553
3553
|
name: K().default("_").describe("The cell's name. `_` for an anonymous cell."),
|
|
3554
3554
|
config: Eg.optional()
|
|
3555
|
-
}).describe("A cell as a client writes it. Code must be a string, even when the host withholds source in cell records. Null is not an edit or a request to preserve existing source. The host derives the etags."), Og =
|
|
3555
|
+
}).describe("A cell as a client writes it. Code must be a string, even when the host withholds source in cell records. Null is not an edit or a request to preserve existing source. The host derives the etags."), Og = is({
|
|
3556
3556
|
kind: H(["create_cell"]),
|
|
3557
3557
|
cell: Dg
|
|
3558
|
-
}).describe("Appends a new cell. An existing id is a failed precondition."), kg =
|
|
3558
|
+
}).describe("Appends a new cell. An existing id is a failed precondition."), kg = is({
|
|
3559
3559
|
kind: H(["replace_cell"]),
|
|
3560
3560
|
base_etag: K().describe("The cell's etag as last read, or `*`."),
|
|
3561
3561
|
cell: Dg
|
|
3562
|
-
}).describe("Replaces an existing cell in place. A missing cell is a failed precondition."), Ag =
|
|
3562
|
+
}).describe("Replaces an existing cell in place. A missing cell is a failed precondition."), Ag = is({
|
|
3563
3563
|
kind: H(["delete_cell"]),
|
|
3564
3564
|
id: rm.describe("The cell to remove."),
|
|
3565
3565
|
base_etag: K().describe("The cell's etag as last read, or `*`.")
|
|
3566
|
-
}).describe("Removes a cell."), jg =
|
|
3566
|
+
}).describe("Removes a cell."), jg = is({
|
|
3567
3567
|
kind: H(["set_order"]),
|
|
3568
3568
|
base_etag: K().describe("The document's `order_etag` as last read, or `*`."),
|
|
3569
3569
|
order: V(rm).describe("Every cell id exactly once, in the new order, counting cells this edit creates and leaving out cells it deletes.")
|
|
3570
|
-
}).describe("Replaces the cell order."), Mg =
|
|
3570
|
+
}).describe("Replaces the cell order."), Mg = Xo([
|
|
3571
3571
|
Og,
|
|
3572
3572
|
kg,
|
|
3573
3573
|
Ag,
|
|
3574
3574
|
jg
|
|
3575
|
-
]).describe("One change to the document, tagged on `kind`."), Ng =
|
|
3575
|
+
]).describe("One change to the document, tagged on `kind`."), Ng = is({ changes: V(Mg).describe("The changes, applied in order as one unit.") }), Pg = is({
|
|
3576
3576
|
project_id: Jp,
|
|
3577
3577
|
path: K().optional().describe("Where to put the file, relative to the project root and written the way the host's operating system writes paths."),
|
|
3578
3578
|
name: K().optional().describe("A label to show people. In a project with a root it defaults to the filename.")
|
|
@@ -3931,7 +3931,7 @@ function Wg(e, t, n) {
|
|
|
3931
3931
|
}
|
|
3932
3932
|
var Gg = G({
|
|
3933
3933
|
status: W().int(),
|
|
3934
|
-
body:
|
|
3934
|
+
body: us()
|
|
3935
3935
|
});
|
|
3936
3936
|
async function Kg(e, t, { params: n = {}, body: r, headers: i = {}, options: a = {} }) {
|
|
3937
3937
|
let o = Bg[t], s = {};
|
|
@@ -4083,7 +4083,7 @@ function Qg(e, t = {}) {
|
|
|
4083
4083
|
//#region ../packages/client/dist/transport/stream.js
|
|
4084
4084
|
var $g = new Set(Yh.options.flatMap((e) => e.shape.event.options)), e_ = G({
|
|
4085
4085
|
event: K().min(1),
|
|
4086
|
-
data:
|
|
4086
|
+
data: us(),
|
|
4087
4087
|
id: K().optional()
|
|
4088
4088
|
});
|
|
4089
4089
|
function t_(e) {
|
|
@@ -4601,7 +4601,7 @@ var v_ = {
|
|
|
4601
4601
|
"variable",
|
|
4602
4602
|
"analysis",
|
|
4603
4603
|
"marimo"
|
|
4604
|
-
], x_ = G({ marimo:
|
|
4604
|
+
], x_ = G({ marimo: us() });
|
|
4605
4605
|
function S_(e, t, n) {
|
|
4606
4606
|
return t === null ? null : n?.document_etag === t.revision.etag ? e?.analysis === n && e.freshness === "current" ? e : {
|
|
4607
4607
|
freshness: "current",
|
|
@@ -4624,23 +4624,23 @@ function T_(e) {
|
|
|
4624
4624
|
return typeof e == "object" && !!e && "state" in e;
|
|
4625
4625
|
}
|
|
4626
4626
|
function E_(e) {
|
|
4627
|
-
return e instanceof Lg && T_(e.cause) ? e.cause : e instanceof Lg && e.cause instanceof
|
|
4627
|
+
return e instanceof Lg && T_(e.cause) ? e.cause : e instanceof Lg && e.cause instanceof es ? w_ : C_;
|
|
4628
4628
|
}
|
|
4629
4629
|
function D_(e) {
|
|
4630
|
-
let t =
|
|
4630
|
+
let t = Io({ state: Ui.NOT_STARTED }), n = Io(0), r = p_({
|
|
4631
4631
|
document: v_,
|
|
4632
4632
|
analysis: m_,
|
|
4633
4633
|
attachments: h_,
|
|
4634
4634
|
runtime: y_,
|
|
4635
4635
|
executions: ua
|
|
4636
|
-
}), i =
|
|
4636
|
+
}), i = Io({
|
|
4637
4637
|
stream: r.initial,
|
|
4638
4638
|
retained: null,
|
|
4639
4639
|
analyzed: null
|
|
4640
|
-
}), a =
|
|
4640
|
+
}), a = Io((e) => e(i).stream), o = Io((e) => {
|
|
4641
4641
|
let { stream: t, retained: n } = e(i);
|
|
4642
4642
|
return n ?? t;
|
|
4643
|
-
}), s =
|
|
4643
|
+
}), s = Io((e) => e(a).phase === "live" && e(t).state === Ui.OPEN), l = Io((e) => e(s) ? e(a).notebook : null), u = Io((e) => e(a).resources.document.current), d = Io((e) => e(i).analyzed), f = Io((e) => e(o).resources.document.current), p = Io((e) => e(s) ? e(a).resources.attachments : h_.initial), m = Io((e) => e(s) ? e(a).resources.runtime : null), h = Io((e) => e(o).resources.executions), g = Io((e) => e(h).results), _ = Io(null), v;
|
|
4644
4644
|
function y(t) {
|
|
4645
4645
|
e.set(i, (e) => {
|
|
4646
4646
|
let { stream: n, retained: r } = e;
|
|
@@ -4657,12 +4657,15 @@ function D_(e) {
|
|
|
4657
4657
|
return {
|
|
4658
4658
|
stream: t,
|
|
4659
4659
|
retained: null,
|
|
4660
|
-
analyzed: S_(e.analyzed, i.current, n)
|
|
4660
|
+
analyzed: S_(r && r.notebook?.id !== t.notebook?.id ? null : e.analyzed, i.current, n)
|
|
4661
4661
|
};
|
|
4662
4662
|
}
|
|
4663
4663
|
return {
|
|
4664
4664
|
stream: t,
|
|
4665
|
-
analyzed:
|
|
4665
|
+
analyzed: e.analyzed?.freshness === "current" ? {
|
|
4666
|
+
...e.analyzed,
|
|
4667
|
+
freshness: "stale"
|
|
4668
|
+
} : e.analyzed,
|
|
4666
4669
|
retained: n.phase === "snapshot" ? r : n
|
|
4667
4670
|
};
|
|
4668
4671
|
});
|
|
@@ -6114,13 +6117,13 @@ function Ty() {
|
|
|
6114
6117
|
//#endregion
|
|
6115
6118
|
//#region src/utils/zod-utils.ts
|
|
6116
6119
|
function Ey(e) {
|
|
6117
|
-
return e instanceof
|
|
6120
|
+
return e instanceof Oo;
|
|
6118
6121
|
}
|
|
6119
6122
|
function Dy(e) {
|
|
6120
6123
|
return e instanceof ws;
|
|
6121
6124
|
}
|
|
6122
6125
|
function Oy(e) {
|
|
6123
|
-
return e instanceof
|
|
6126
|
+
return e instanceof Lo;
|
|
6124
6127
|
}
|
|
6125
6128
|
//#endregion
|
|
6126
6129
|
//#region src/components/ui/form.tsx
|
|
@@ -6345,7 +6348,7 @@ var Ky = J.forwardRef((e, t) => {
|
|
|
6345
6348
|
defaultProp: o,
|
|
6346
6349
|
onChange: i
|
|
6347
6350
|
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
6348
|
-
let [l, u] =
|
|
6351
|
+
let [l, u] = $o(c), d, f;
|
|
6349
6352
|
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
6350
6353
|
s(l || "");
|
|
6351
6354
|
}, f = [l], n[8] = l, n[9] = d, n[10] = f), J.useEffect(d, f);
|
|
@@ -6374,11 +6377,11 @@ function qy(e) {
|
|
|
6374
6377
|
}
|
|
6375
6378
|
function Jy(e) {
|
|
6376
6379
|
let t = (e) => {
|
|
6377
|
-
if (e instanceof
|
|
6380
|
+
if (e instanceof go) {
|
|
6378
6381
|
let t = [...e.values];
|
|
6379
6382
|
return e.values.size === 1 ? t[0] : t;
|
|
6380
6383
|
}
|
|
6381
|
-
if (e instanceof
|
|
6384
|
+
if (e instanceof ts) {
|
|
6382
6385
|
let t = e.def.defaultValue;
|
|
6383
6386
|
return typeof t == "function" ? t() : t;
|
|
6384
6387
|
}
|
|
@@ -6386,16 +6389,16 @@ function Jy(e) {
|
|
|
6386
6389
|
if (Oy(e)) return e.def.items.map((e) => t(e));
|
|
6387
6390
|
if ("unwrap" in e) return t(qy(e));
|
|
6388
6391
|
};
|
|
6389
|
-
return e instanceof
|
|
6392
|
+
return e instanceof Fo || e instanceof wo ? t(e.options[0]) : Ey(e) ? Xy(e) ? [Jy(e.element)] : [] : e instanceof lo ? "" : e instanceof Eo ? e.options[0] : e instanceof So ? Object.fromEntries(Object.entries(e.shape).map(([e, n]) => [e, t(n)])) : t(e);
|
|
6390
6393
|
}
|
|
6391
6394
|
function Yy(e) {
|
|
6392
|
-
if (e instanceof
|
|
6393
|
-
if (e instanceof
|
|
6395
|
+
if (e instanceof go) return e;
|
|
6396
|
+
if (e instanceof So) {
|
|
6394
6397
|
let t = e.shape.type;
|
|
6395
|
-
if (t instanceof
|
|
6398
|
+
if (t instanceof go) return t;
|
|
6396
6399
|
throw Error("Invalid schema");
|
|
6397
6400
|
}
|
|
6398
|
-
if (e instanceof
|
|
6401
|
+
if (e instanceof Fo || e instanceof wo) return Yy(e.options[0]);
|
|
6399
6402
|
throw c.warn(e), Error("Invalid schema");
|
|
6400
6403
|
}
|
|
6401
6404
|
function Xy(e) {
|
|
@@ -6540,7 +6543,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6540
6543
|
});
|
|
6541
6544
|
}
|
|
6542
6545
|
let { label: i, description: a, special: o, direction: s = "column", minLength: c } = wy.parse(e.description || "");
|
|
6543
|
-
if (e instanceof
|
|
6546
|
+
if (e instanceof ts || e instanceof jo) {
|
|
6544
6547
|
let i = e.unwrap();
|
|
6545
6548
|
return i = !i.description && e.description ? i.describe(e.description) : i, sb({
|
|
6546
6549
|
schema: i,
|
|
@@ -6549,10 +6552,10 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6549
6552
|
renderers: r
|
|
6550
6553
|
});
|
|
6551
6554
|
}
|
|
6552
|
-
if (e instanceof
|
|
6555
|
+
if (e instanceof So) return /* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
6553
6556
|
className: l("flex", s === "row" ? "flex-row gap-6 items-start" : s === "two-columns" ? "grid grid-cols-2 gap-y-6" : "flex-col gap-6"),
|
|
6554
6557
|
children: [/* @__PURE__ */ (0, Y.jsx)(Fy, { children: i }), Ns.entries(e.shape).map(([e, i]) => {
|
|
6555
|
-
let a = i instanceof
|
|
6558
|
+
let a = i instanceof go, o = sb({
|
|
6556
6559
|
schema: i,
|
|
6557
6560
|
form: t,
|
|
6558
6561
|
path: pb(n, e),
|
|
@@ -6564,7 +6567,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6564
6567
|
}, e);
|
|
6565
6568
|
})]
|
|
6566
6569
|
});
|
|
6567
|
-
if (e instanceof
|
|
6570
|
+
if (e instanceof lo) return o === "time" ? /* @__PURE__ */ (0, Y.jsx)(jy, {
|
|
6568
6571
|
control: t.control,
|
|
6569
6572
|
name: n,
|
|
6570
6573
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(Py, { children: [
|
|
@@ -6583,7 +6586,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6583
6586
|
form: t,
|
|
6584
6587
|
path: n
|
|
6585
6588
|
});
|
|
6586
|
-
if (e instanceof
|
|
6589
|
+
if (e instanceof ns) return /* @__PURE__ */ (0, Y.jsx)(jy, {
|
|
6587
6590
|
control: t.control,
|
|
6588
6591
|
name: n,
|
|
6589
6592
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(Py, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
|
|
@@ -6599,7 +6602,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6599
6602
|
})]
|
|
6600
6603
|
}), /* @__PURE__ */ (0, Y.jsx)(Ry, {})] })
|
|
6601
6604
|
});
|
|
6602
|
-
if (e instanceof
|
|
6605
|
+
if (e instanceof bo) return o === "random_number_button" ? /* @__PURE__ */ (0, Y.jsx)(jy, {
|
|
6603
6606
|
control: t.control,
|
|
6604
6607
|
name: n,
|
|
6605
6608
|
render: ({ field: e }) => /* @__PURE__ */ (0, Y.jsxs)(_, {
|
|
@@ -6643,12 +6646,12 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6643
6646
|
] })
|
|
6644
6647
|
});
|
|
6645
6648
|
}
|
|
6646
|
-
if (e instanceof
|
|
6649
|
+
if (e instanceof po) return /* @__PURE__ */ (0, Y.jsx)(lb, {
|
|
6647
6650
|
schema: e,
|
|
6648
6651
|
form: t,
|
|
6649
6652
|
path: n
|
|
6650
6653
|
});
|
|
6651
|
-
if (e instanceof
|
|
6654
|
+
if (e instanceof Eo) {
|
|
6652
6655
|
let r = e.options.map((e) => e.toString());
|
|
6653
6656
|
return /* @__PURE__ */ (0, Y.jsx)(db, {
|
|
6654
6657
|
schema: e,
|
|
@@ -6657,14 +6660,14 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6657
6660
|
options: r
|
|
6658
6661
|
});
|
|
6659
6662
|
}
|
|
6660
|
-
if (e instanceof
|
|
6663
|
+
if (e instanceof Oo) {
|
|
6661
6664
|
if (o === "text_area_multiline") return /* @__PURE__ */ (0, Y.jsx)(ub, {
|
|
6662
6665
|
schema: e,
|
|
6663
6666
|
form: t,
|
|
6664
6667
|
path: n
|
|
6665
6668
|
});
|
|
6666
6669
|
let a = e.element;
|
|
6667
|
-
if (a instanceof
|
|
6670
|
+
if (a instanceof Eo) {
|
|
6668
6671
|
let r = a.options.map((e) => e.toString());
|
|
6669
6672
|
return /* @__PURE__ */ (0, Y.jsx)(fb, {
|
|
6670
6673
|
schema: e,
|
|
@@ -6685,7 +6688,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6685
6688
|
}, n)]
|
|
6686
6689
|
});
|
|
6687
6690
|
}
|
|
6688
|
-
if (e instanceof
|
|
6691
|
+
if (e instanceof wo) {
|
|
6689
6692
|
let a = e.def, o = a.options, s = a.discriminator, c = (e) => o.find((t) => Yy(t).value === e);
|
|
6690
6693
|
return /* @__PURE__ */ (0, Y.jsx)(jy, {
|
|
6691
6694
|
control: t.control,
|
|
@@ -6725,7 +6728,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6725
6728
|
}
|
|
6726
6729
|
});
|
|
6727
6730
|
}
|
|
6728
|
-
return e instanceof
|
|
6731
|
+
return e instanceof Fo ? /* @__PURE__ */ (0, Y.jsx)(jy, {
|
|
6729
6732
|
control: t.control,
|
|
6730
6733
|
name: n,
|
|
6731
6734
|
render: ({ field: a }) => {
|
|
@@ -6753,7 +6756,7 @@ function sb({ schema: e, form: t, path: n, renderers: r }) {
|
|
|
6753
6756
|
]
|
|
6754
6757
|
});
|
|
6755
6758
|
}
|
|
6756
|
-
}) : e instanceof
|
|
6759
|
+
}) : e instanceof go ? /* @__PURE__ */ (0, Y.jsx)(jy, {
|
|
6757
6760
|
control: t.control,
|
|
6758
6761
|
name: n,
|
|
6759
6762
|
render: ({ field: t }) => /* @__PURE__ */ (0, Y.jsx)("input", {
|
|
@@ -7261,7 +7264,7 @@ function Lb(e) {
|
|
|
7261
7264
|
return typeof e != "string" || e.length === 0 ? !1 : !!(/^(\.?\/)?@file\/[^?#]+$/.test(e) || zb(e));
|
|
7262
7265
|
}
|
|
7263
7266
|
function Rb() {
|
|
7264
|
-
return
|
|
7267
|
+
return fo.get(j) || k();
|
|
7265
7268
|
}
|
|
7266
7269
|
function zb(e) {
|
|
7267
7270
|
return e.startsWith("data:text/javascript;base64,") || e.startsWith("data:application/javascript;base64,") || e.startsWith("data:text/css;base64,") ? Rb() : !1;
|
|
@@ -7649,7 +7652,7 @@ function Qb(e) {
|
|
|
7649
7652
|
let t = As(e, a);
|
|
7650
7653
|
if (t instanceof DataView) {
|
|
7651
7654
|
let e = L(t);
|
|
7652
|
-
r.push(e), i.push(a),
|
|
7655
|
+
r.push(e), i.push(a), co(n, a, e);
|
|
7653
7656
|
}
|
|
7654
7657
|
}
|
|
7655
7658
|
return {
|
|
@@ -7665,14 +7668,14 @@ function $b(e) {
|
|
|
7665
7668
|
let i = t;
|
|
7666
7669
|
for (let [e, t] of n.entries()) {
|
|
7667
7670
|
let n = r?.[e];
|
|
7668
|
-
n == null ? c.warn("[anywidget] Could not find buffer at path", t) : typeof n == "string" ?
|
|
7671
|
+
n == null ? c.warn("[anywidget] Could not find buffer at path", t) : typeof n == "string" ? co(i, t, O(n)) : co(i, t, n);
|
|
7669
7672
|
}
|
|
7670
7673
|
return i;
|
|
7671
7674
|
}
|
|
7672
7675
|
//#endregion
|
|
7673
7676
|
//#region src/plugins/impl/anywidget/registry.ts
|
|
7674
7677
|
function ex() {
|
|
7675
|
-
let e =
|
|
7678
|
+
let e = fo.get(Vs).mode;
|
|
7676
7679
|
return e === "edit" || e === "present";
|
|
7677
7680
|
}
|
|
7678
7681
|
var tx = new class {
|
|
@@ -7997,7 +8000,7 @@ var gx = (e) => {
|
|
|
7997
8000
|
onValueChange: c,
|
|
7998
8001
|
children: [p, h]
|
|
7999
8002
|
}), t[20] = p, t[21] = h, t[22] = g) : g = t[22], g;
|
|
8000
|
-
}, _x =
|
|
8003
|
+
}, _x = ss(({ container: e, children: t }) => (0, Id.createPortal)(t, e ?? document.body)), vx = 8, yx = (e) => {
|
|
8001
8004
|
let t = (0, X.c)(18), { anchorRef: n, open: r, children: i } = e, [a, o] = J.useState(null), s = J.useRef(null), c;
|
|
8002
8005
|
t[0] === n ? c = t[1] : (c = () => {
|
|
8003
8006
|
if (!n.current) return;
|
|
@@ -8049,7 +8052,7 @@ var gx = (e) => {
|
|
|
8049
8052
|
items: V(this.menuItemValidator)
|
|
8050
8053
|
});
|
|
8051
8054
|
validator = G({
|
|
8052
|
-
items: V(
|
|
8055
|
+
items: V(Xo([this.menuItemValidator, this.menuItemGroupValidator])),
|
|
8053
8056
|
orientation: H(["horizontal", "vertical"])
|
|
8054
8057
|
});
|
|
8055
8058
|
render(e) {
|
|
@@ -8139,7 +8142,7 @@ function Tx(e) {
|
|
|
8139
8142
|
return Ri({
|
|
8140
8143
|
href: e,
|
|
8141
8144
|
queryParams: t.search,
|
|
8142
|
-
keys: [
|
|
8145
|
+
keys: [Qo.filePath]
|
|
8143
8146
|
});
|
|
8144
8147
|
}
|
|
8145
8148
|
//#endregion
|
|
@@ -8233,7 +8236,7 @@ var Dx = class e {
|
|
|
8233
8236
|
...t
|
|
8234
8237
|
});
|
|
8235
8238
|
}), Ax = (e) => {
|
|
8236
|
-
let t = (0, X.c)(5), { children: n } = e, r =
|
|
8239
|
+
let t = (0, X.c)(5), { children: n } = e, r = uo(No), i;
|
|
8237
8240
|
t[0] === r ? i = t[1] : (i = gn(r), t[0] = r, t[1] = i);
|
|
8238
8241
|
let a;
|
|
8239
8242
|
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ (0, Y.jsx)(ei, {
|
|
@@ -8517,20 +8520,20 @@ function lS(e) {
|
|
|
8517
8520
|
}
|
|
8518
8521
|
function uS({ store: e, source: t, shown: n, signal: r }) {
|
|
8519
8522
|
r.throwIfAborted();
|
|
8520
|
-
let i =
|
|
8523
|
+
let i = Io((e) => ({
|
|
8521
8524
|
confirmed: e(t),
|
|
8522
8525
|
shown: e(n)
|
|
8523
|
-
})), a =
|
|
8526
|
+
})), a = Io({
|
|
8524
8527
|
...e.get(i),
|
|
8525
8528
|
drafts: /* @__PURE__ */ new Map(),
|
|
8526
8529
|
pending: null
|
|
8527
|
-
}), o =
|
|
8530
|
+
}), o = Io((e) => {
|
|
8528
8531
|
let t = e(a), n = oS(t);
|
|
8529
8532
|
return n === null ? null : iS(n, sS(t));
|
|
8530
|
-
}), s =
|
|
8533
|
+
}), s = Io((e) => {
|
|
8531
8534
|
let t = e(a);
|
|
8532
8535
|
return t.confirmed === null ? null : aS(t.confirmed, sS(t));
|
|
8533
|
-
}), c =
|
|
8536
|
+
}), c = Io((e) => e(a).pending?.submission ?? null), l = e.sub(i, () => {
|
|
8534
8537
|
let { confirmed: t, shown: n } = e.get(i);
|
|
8535
8538
|
e.set(a, (e) => lS({
|
|
8536
8539
|
...e,
|
|
@@ -8538,7 +8541,7 @@ function uS({ store: e, source: t, shown: n, signal: r }) {
|
|
|
8538
8541
|
shown: n,
|
|
8539
8542
|
pending: t !== null && e.pending !== null && t.revision.notebook_id !== e.pending.submission.notebookId ? null : e.pending
|
|
8540
8543
|
}));
|
|
8541
|
-
}), u = !1, d =
|
|
8544
|
+
}), u = !1, d = Io(null, (e, i, o) => {
|
|
8542
8545
|
if (u) throw Error("Document transactions cannot be nested");
|
|
8543
8546
|
let s = e(a), c = oS(s);
|
|
8544
8547
|
if (!(r.aborted || c === null)) {
|
|
@@ -8551,7 +8554,7 @@ function uS({ store: e, source: t, shown: n, signal: r }) {
|
|
|
8551
8554
|
u = !1;
|
|
8552
8555
|
}
|
|
8553
8556
|
}
|
|
8554
|
-
}), f =
|
|
8557
|
+
}), f = Io(null, (e, t) => {
|
|
8555
8558
|
let n = e(a);
|
|
8556
8559
|
if (r.aborted || n.confirmed === null || n.pending !== null) return null;
|
|
8557
8560
|
let i = sS(n), o = aS(n.confirmed, i);
|
|
@@ -8569,7 +8572,7 @@ function uS({ store: e, source: t, shown: n, signal: r }) {
|
|
|
8569
8572
|
responseRevision: null
|
|
8570
8573
|
}
|
|
8571
8574
|
}), s;
|
|
8572
|
-
}), p =
|
|
8575
|
+
}), p = Io(null, (e, t, n, i) => {
|
|
8573
8576
|
let o = e(a);
|
|
8574
8577
|
if (!(r.aborted || o.pending?.submission !== n || o.pending.responseRevision !== null)) {
|
|
8575
8578
|
if (i !== null && i.notebook_id !== n.notebookId) throw Error("Edit response belongs to another notebook");
|
|
@@ -8665,7 +8668,7 @@ function _S(e, t) {
|
|
|
8665
8668
|
}
|
|
8666
8669
|
function vS({ store: e, documentAtom: t, backendAtom: n, state: r, signal: i }) {
|
|
8667
8670
|
i.throwIfAborted();
|
|
8668
|
-
let a =
|
|
8671
|
+
let a = Io({ status: "idle" }), o = Io((e) => ({
|
|
8669
8672
|
document: e(t),
|
|
8670
8673
|
backend: e(n),
|
|
8671
8674
|
pending: e(r.pendingAtom),
|
|
@@ -8793,20 +8796,20 @@ function vS({ store: e, documentAtom: t, backendAtom: n, state: r, signal: i })
|
|
|
8793
8796
|
//#endregion
|
|
8794
8797
|
//#region src/core/notebook/document/model.ts
|
|
8795
8798
|
function yS({ store: e, documentAtom: t, shownDocumentAtom: n, backendAtom: r }) {
|
|
8796
|
-
let i =
|
|
8799
|
+
let i = Io(null);
|
|
8797
8800
|
function a() {
|
|
8798
8801
|
return Promise.reject(/* @__PURE__ */ Error("The document model is not started"));
|
|
8799
8802
|
}
|
|
8800
8803
|
return {
|
|
8801
|
-
documentAtom:
|
|
8804
|
+
documentAtom: Io((e) => {
|
|
8802
8805
|
let t = e(i);
|
|
8803
8806
|
return t ? e(t.state.documentAtom) : null;
|
|
8804
8807
|
}),
|
|
8805
|
-
editAtom:
|
|
8808
|
+
editAtom: Io(null, (e, t, n) => {
|
|
8806
8809
|
let r = e(i);
|
|
8807
8810
|
r && t(r.state.editAtom, n);
|
|
8808
8811
|
}),
|
|
8809
|
-
syncStatusAtom:
|
|
8812
|
+
syncStatusAtom: Io((e) => {
|
|
8810
8813
|
let t = e(i);
|
|
8811
8814
|
return t ? e(t.sync.statusAtom) : { status: "unavailable" };
|
|
8812
8815
|
}),
|
|
@@ -8956,9 +8959,9 @@ function xS(e) {
|
|
|
8956
8959
|
}
|
|
8957
8960
|
//#endregion
|
|
8958
8961
|
//#region src/components/editor/chrome/panels/context-aware-panel/atoms.ts
|
|
8959
|
-
var SS =
|
|
8960
|
-
|
|
8961
|
-
var TS =
|
|
8962
|
+
var SS = Io(null), CS = Io(null), wS = Io(!1);
|
|
8963
|
+
Io(!1);
|
|
8964
|
+
var TS = Io(!1), ES = 0, DS = 1, OS = 2, kS = 4;
|
|
8962
8965
|
function AS(e) {
|
|
8963
8966
|
return () => e;
|
|
8964
8967
|
}
|
|
@@ -11742,7 +11745,7 @@ function ZE(e) {
|
|
|
11742
11745
|
//#region src/plugins/core/BadPlugin.tsx
|
|
11743
11746
|
var QE = Vn, $E = Rn, eD = bn, tD = xr, nD = (e) => {
|
|
11744
11747
|
let t = (0, X.c)(13), { error: n, badData: r } = e;
|
|
11745
|
-
if (n instanceof
|
|
11748
|
+
if (n instanceof es) {
|
|
11746
11749
|
let e;
|
|
11747
11750
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)(Js, { children: "Bad Data" }), t[0] = e) : e = t[0];
|
|
11748
11751
|
let i;
|
|
@@ -11804,7 +11807,7 @@ function iD(e) {
|
|
|
11804
11807
|
//#region src/plugins/core/registerReactComponent.tsx
|
|
11805
11808
|
var aD = 3, oD = 150;
|
|
11806
11809
|
function sD({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
11807
|
-
let [o, s] = (0, J.useState)(n), [l, u] = (0, J.useState)(r), d = (0, J.useRef)(l), { theme: f } =
|
|
11810
|
+
let [o, s] = (0, J.useState)(n), [l, u] = (0, J.useState)(r), d = (0, J.useRef)(l), { theme: f } = Go(), p = (e) => {
|
|
11808
11811
|
d.current = e, u(e);
|
|
11809
11812
|
}, [m, g] = (0, J.useState)(() => t.validator.safeParse(Ma(e))), [_, v] = (0, J.useState)(0);
|
|
11810
11813
|
(0, J.useImperativeHandle)(i, () => ({
|
|
@@ -11836,7 +11839,7 @@ function sD({ hostElement: e, plugin: t, children: n, getInitialValue: r }, i) {
|
|
|
11836
11839
|
Ps(n.length <= 1, `Plugin functions only supports a single argument. Called ${r}`);
|
|
11837
11840
|
let i = Ws(), o = Wi.findElementThroughShadowDOMs(e)?.id, s = o ? Wi.parse(o) : null;
|
|
11838
11841
|
if (s && !i) {
|
|
11839
|
-
if (Qi(fa(
|
|
11842
|
+
if (Qi(fa(fo.get(oa), s))) throw new Es();
|
|
11840
11843
|
} else c.warn(`Cell ID ${s} cannot be found`);
|
|
11841
11844
|
let l = mD(t, n[0]);
|
|
11842
11845
|
for (let t = 0;; t++) {
|
|
@@ -11925,8 +11928,8 @@ function dD(e) {
|
|
|
11925
11928
|
}) }, t));
|
|
11926
11929
|
}
|
|
11927
11930
|
async mountReactComponent() {
|
|
11928
|
-
this.mounted = !0, Ps(this.root, "Root must be defined"), this.root.render(/* @__PURE__ */ (0, Y.jsx)(
|
|
11929
|
-
store:
|
|
11931
|
+
this.mounted = !0, Ps(this.root, "Root must be defined"), this.root.render(/* @__PURE__ */ (0, Y.jsx)(Mo, {
|
|
11932
|
+
store: fo,
|
|
11930
11933
|
children: /* @__PURE__ */ (0, Y.jsx)(Ax, { children: /* @__PURE__ */ (0, Y.jsx)(cD, {
|
|
11931
11934
|
hostElement: this,
|
|
11932
11935
|
plugin: e,
|
|
@@ -12050,7 +12053,7 @@ function vD(e) {
|
|
|
12050
12053
|
}
|
|
12051
12054
|
//#endregion
|
|
12052
12055
|
//#region src/components/editor/renderers/vertical-layout/sidebar/state.ts
|
|
12053
|
-
var yD =
|
|
12056
|
+
var yD = To({ isOpen: !0 }, (e, t) => {
|
|
12054
12057
|
if (!t) return e;
|
|
12055
12058
|
switch (t.type) {
|
|
12056
12059
|
case "toggle": return {
|
|
@@ -12104,10 +12107,10 @@ function xD() {
|
|
|
12104
12107
|
syncWidth() {
|
|
12105
12108
|
try {
|
|
12106
12109
|
let e = this.dataset.width;
|
|
12107
|
-
e ?
|
|
12110
|
+
e ? fo.set(yD, {
|
|
12108
12111
|
type: "setWidth",
|
|
12109
12112
|
width: JSON.parse(e)
|
|
12110
|
-
}) :
|
|
12113
|
+
}) : fo.set(yD, {
|
|
12111
12114
|
type: "setWidth",
|
|
12112
12115
|
width: void 0
|
|
12113
12116
|
});
|
|
@@ -12149,8 +12152,8 @@ function SD(e, t = {}) {
|
|
|
12149
12152
|
}
|
|
12150
12153
|
//#endregion
|
|
12151
12154
|
//#region src/plugins/impl/anywidget/AnyWidgetPlugin.tsx
|
|
12152
|
-
var CD = SD("marimo-anywidget").withData(G({ modelId:
|
|
12153
|
-
let t = (0, X.c)(9), { modelId: n } = e.data, r = (0, J.useRef)(null), [i, a] = (0, J.useState)(), o =
|
|
12155
|
+
var CD = SD("marimo-anywidget").withData(G({ modelId: Ro(vb, { message: "Expected a non-empty widget model id" }) })).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(wD, { ...e })), wD = (e) => {
|
|
12156
|
+
let t = (0, X.c)(9), { modelId: n } = e.data, r = (0, J.useRef)(null), [i, a] = (0, J.useState)(), o = uo(hc), s, c;
|
|
12154
12157
|
t[0] !== o || t[1] !== n ? (s = () => {
|
|
12155
12158
|
if (!o) return;
|
|
12156
12159
|
let e = r.current;
|
|
@@ -12484,7 +12487,7 @@ var FD = (e) => {
|
|
|
12484
12487
|
minHeight: W().optional(),
|
|
12485
12488
|
maxHeight: W().optional(),
|
|
12486
12489
|
showCopyButton: U().optional(),
|
|
12487
|
-
debounce:
|
|
12490
|
+
debounce: Xo([U(), W()]).default(!1)
|
|
12488
12491
|
});
|
|
12489
12492
|
render(e) {
|
|
12490
12493
|
return /* @__PURE__ */ (0, Y.jsx)(zD, {
|
|
@@ -12494,7 +12497,7 @@ var FD = (e) => {
|
|
|
12494
12497
|
});
|
|
12495
12498
|
}
|
|
12496
12499
|
}, zD = (e) => {
|
|
12497
|
-
let t = (0, X.c)(36), { theme: n } =
|
|
12500
|
+
let t = (0, X.c)(36), { theme: n } = Go(), r = e.theme || n, i = e.minHeight ? `${e.minHeight}px` : "70px", a = e.maxHeight ? `${e.maxHeight}px` : void 0, [o, s] = (0, J.useState)(e.value), c = e.value, l = Number.isFinite(e.debounce) ? e.debounce : 0, u = e.setValue, d;
|
|
12498
12501
|
t[0] === e.debounce ? d = t[1] : (d = Number.isFinite(e.debounce), t[0] = e.debounce, t[1] = d);
|
|
12499
12502
|
let f = !d, p;
|
|
12500
12503
|
t[2] !== e.setValue || t[3] !== e.value || t[4] !== l || t[5] !== f ? (p = {
|
|
@@ -12555,7 +12558,7 @@ var FD = (e) => {
|
|
|
12555
12558
|
output: t
|
|
12556
12559
|
};
|
|
12557
12560
|
} };
|
|
12558
|
-
} }, VD = J.lazy(() => import("./chat-ui-
|
|
12561
|
+
} }, VD = J.lazy(() => import("./chat-ui-DOvIzlMA.js").then((e) => ({ default: e.Chatbot }))), HD = V(G({
|
|
12559
12562
|
id: K(),
|
|
12560
12563
|
role: H([
|
|
12561
12564
|
"system",
|
|
@@ -12563,8 +12566,8 @@ var FD = (e) => {
|
|
|
12563
12566
|
"assistant"
|
|
12564
12567
|
]),
|
|
12565
12568
|
content: K().nullable(),
|
|
12566
|
-
parts: V(
|
|
12567
|
-
metadata:
|
|
12569
|
+
parts: V(ds()),
|
|
12570
|
+
metadata: ds().optional()
|
|
12568
12571
|
})), UD = G({
|
|
12569
12572
|
max_tokens: W().nullable(),
|
|
12570
12573
|
temperature: W().nullable(),
|
|
@@ -12577,18 +12580,18 @@ var FD = (e) => {
|
|
|
12577
12580
|
showConfigurationControls: U(),
|
|
12578
12581
|
maxHeight: W().optional(),
|
|
12579
12582
|
config: UD,
|
|
12580
|
-
allowAttachments:
|
|
12583
|
+
allowAttachments: Xo([U(), K().array()]),
|
|
12581
12584
|
disabled: U().default(!1)
|
|
12582
12585
|
})).withFunctions({
|
|
12583
12586
|
get_chat_history: BD.input(G({})).output(G({ messages: HD })),
|
|
12584
|
-
delete_chat_history: BD.input(G({})).output(
|
|
12585
|
-
delete_chat_message: BD.input(G({ index: W() })).output(
|
|
12587
|
+
delete_chat_history: BD.input(G({})).output(xo()),
|
|
12588
|
+
delete_chat_message: BD.input(G({ index: W() })).output(xo()),
|
|
12586
12589
|
send_prompt: BD.input(G({
|
|
12587
12590
|
request_id: K(),
|
|
12588
12591
|
messages: HD,
|
|
12589
12592
|
config: UD
|
|
12590
|
-
})).output(
|
|
12591
|
-
cancel_prompt: BD.input(G({ request_id: K() })).output(
|
|
12593
|
+
})).output(us()),
|
|
12594
|
+
cancel_prompt: BD.input(G({ request_id: K() })).output(xo())
|
|
12592
12595
|
}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(J.Suspense, { children: /* @__PURE__ */ (0, Y.jsx)(VD, {
|
|
12593
12596
|
prompts: e.data.prompts,
|
|
12594
12597
|
showConfigurationControls: e.data.showConfigurationControls,
|
|
@@ -12777,14 +12780,14 @@ function pO(e, t) {
|
|
|
12777
12780
|
].flat();
|
|
12778
12781
|
return n.length === 0 || n.some((e) => e.safeParse(t).success);
|
|
12779
12782
|
}
|
|
12780
|
-
var mO = (e, t) => e[t] ? e[t] : [], hO = V(
|
|
12783
|
+
var mO = (e, t) => e[t] ? e[t] : [], hO = V(Ko([Rp(), Ko([H(QD).catch("unknown"), K()])])), gO = K().min(1, "Required").or(W()).transform((e) => e).describe(wy.of({
|
|
12781
12784
|
label: "Column",
|
|
12782
12785
|
special: "column_id"
|
|
12783
12786
|
})), _O = V(gO.describe(wy.of({ special: "column_id" }))).min(1, "At least one column is required").default([]).describe(wy.of({
|
|
12784
12787
|
label: "Columns",
|
|
12785
12788
|
minLength: 1
|
|
12786
12789
|
})), vO = G({
|
|
12787
|
-
type:
|
|
12790
|
+
type: hs("column_conversion"),
|
|
12788
12791
|
column_id: gO,
|
|
12789
12792
|
data_type: H($D).describe(wy.of({ label: "Data type (numpy)" })).default("bool"),
|
|
12790
12793
|
errors: H(["ignore", "raise"]).default("ignore").describe(wy.of({
|
|
@@ -12792,14 +12795,14 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12792
12795
|
special: "radio_group"
|
|
12793
12796
|
}))
|
|
12794
12797
|
}).describe(wy.of({})), yO = G({
|
|
12795
|
-
type:
|
|
12798
|
+
type: hs("rename_column"),
|
|
12796
12799
|
column_id: gO,
|
|
12797
12800
|
new_column_id: K().min(1, "Required").transform((e) => e).describe(wy.of({
|
|
12798
12801
|
label: "New column name",
|
|
12799
12802
|
minLength: 1
|
|
12800
12803
|
}))
|
|
12801
12804
|
}), bO = G({
|
|
12802
|
-
type:
|
|
12805
|
+
type: hs("sort_column"),
|
|
12803
12806
|
column_id: gO,
|
|
12804
12807
|
ascending: U().describe(wy.of({ label: "Ascending" })).default(!0),
|
|
12805
12808
|
na_position: H(["first", "last"]).describe(wy.of({
|
|
@@ -12809,19 +12812,19 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12809
12812
|
}), xO = G({
|
|
12810
12813
|
column_id: gO,
|
|
12811
12814
|
operator: H(Object.keys(lO)).describe(wy.of({ label: " " })),
|
|
12812
|
-
type:
|
|
12813
|
-
value:
|
|
12815
|
+
type: hs("condition").default("condition"),
|
|
12816
|
+
value: ds().optional().describe(wy.of({ label: "Value" })),
|
|
12814
12817
|
negate: U().default(!1)
|
|
12815
12818
|
}).describe(wy.of({
|
|
12816
12819
|
direction: "row",
|
|
12817
12820
|
special: "column_filter"
|
|
12818
|
-
})), SO =
|
|
12819
|
-
type:
|
|
12821
|
+
})), SO = qo(() => G({
|
|
12822
|
+
type: hs("group").default("group"),
|
|
12820
12823
|
operator: H(["and", "or"]).default("and"),
|
|
12821
|
-
children: V(
|
|
12824
|
+
children: V(Xo([xO, SO])).default([]),
|
|
12822
12825
|
negate: U().default(!1)
|
|
12823
12826
|
})), CO = G({
|
|
12824
|
-
type:
|
|
12827
|
+
type: hs("filter_rows"),
|
|
12825
12828
|
operation: H(["keep_rows", "remove_rows"]).default("keep_rows").describe(wy.of({ special: "radio_group" })),
|
|
12826
12829
|
where: V(xO).min(1).describe(wy.of({
|
|
12827
12830
|
label: "Value",
|
|
@@ -12834,7 +12837,7 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12834
12837
|
negate: !1
|
|
12835
12838
|
}]).transform((e) => e.filter((e) => pO(e.operator, e.value)))
|
|
12836
12839
|
}), wO = G({
|
|
12837
|
-
type:
|
|
12840
|
+
type: hs("group_by"),
|
|
12838
12841
|
column_ids: V(gO.describe(wy.of({ special: "column_id" }))).default([]).describe(wy.of({
|
|
12839
12842
|
label: "Group by columns",
|
|
12840
12843
|
minLength: 1
|
|
@@ -12843,17 +12846,17 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12843
12846
|
aggregation: H(eO).default("count").describe(wy.of({ label: "Aggregation" })),
|
|
12844
12847
|
drop_na: U().default(!1).describe(wy.of({ label: "Drop N/A" }))
|
|
12845
12848
|
}).describe(wy.of({})), TO = G({
|
|
12846
|
-
type:
|
|
12849
|
+
type: hs("aggregate"),
|
|
12847
12850
|
column_ids: _O,
|
|
12848
12851
|
aggregations: V(H(eO)).min(1, "At least one aggregation is required").default(["count"]).describe(wy.of({
|
|
12849
12852
|
label: "Aggregations",
|
|
12850
12853
|
minLength: 1
|
|
12851
12854
|
}))
|
|
12852
12855
|
}).describe(wy.of({ direction: "row" })), EO = G({
|
|
12853
|
-
type:
|
|
12856
|
+
type: hs("select_columns"),
|
|
12854
12857
|
column_ids: _O
|
|
12855
12858
|
}), DO = G({
|
|
12856
|
-
type:
|
|
12859
|
+
type: hs("sample_rows"),
|
|
12857
12860
|
n: W().positive().describe(wy.of({ label: "Number of rows" })),
|
|
12858
12861
|
seed: W().default(() => Ty()).describe(wy.of({
|
|
12859
12862
|
label: "Re-sample",
|
|
@@ -12861,19 +12864,19 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12861
12864
|
})),
|
|
12862
12865
|
replace: U().default(!1).describe(wy.of({ label: "Sample with replacement" }))
|
|
12863
12866
|
}), OO = G({
|
|
12864
|
-
type:
|
|
12867
|
+
type: hs("shuffle_rows"),
|
|
12865
12868
|
seed: W().default(() => Ty()).describe(wy.of({
|
|
12866
12869
|
label: "Re-shuffle",
|
|
12867
12870
|
special: "random_number_button"
|
|
12868
12871
|
}))
|
|
12869
12872
|
}), kO = G({
|
|
12870
|
-
type:
|
|
12873
|
+
type: hs("explode_columns"),
|
|
12871
12874
|
column_ids: _O
|
|
12872
12875
|
}), AO = G({
|
|
12873
|
-
type:
|
|
12876
|
+
type: hs("expand_dict"),
|
|
12874
12877
|
column_id: gO
|
|
12875
12878
|
}), jO = G({
|
|
12876
|
-
type:
|
|
12879
|
+
type: hs("unique"),
|
|
12877
12880
|
column_ids: _O,
|
|
12878
12881
|
keep: H([
|
|
12879
12882
|
"first",
|
|
@@ -12882,7 +12885,7 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12882
12885
|
"any"
|
|
12883
12886
|
]).default("first").describe(wy.of({ label: "Keep" }))
|
|
12884
12887
|
}).describe(wy.of({ direction: "row" })), MO = G({
|
|
12885
|
-
type:
|
|
12888
|
+
type: hs("pivot"),
|
|
12886
12889
|
column_ids: _O,
|
|
12887
12890
|
index_column_ids: V(gO.describe(wy.of({ special: "column_id" }))).default([]).describe(wy.of({ label: "Rows" })),
|
|
12888
12891
|
value_column_ids: V(gO.describe(wy.of({ special: "column_id" }))).default([]).describe(wy.of({
|
|
@@ -12890,7 +12893,7 @@ var mO = (e, t) => e[t] ? e[t] : [], hO = V(Wo([Rp(), Wo([H(QD).catch("unknown")
|
|
|
12890
12893
|
minLength: 1
|
|
12891
12894
|
})),
|
|
12892
12895
|
aggregation: H(eO).default("sum").describe(wy.of({ label: "Aggregation" }))
|
|
12893
|
-
}).describe(wy.of({})), NO =
|
|
12896
|
+
}).describe(wy.of({})), NO = Xo([
|
|
12894
12897
|
CO,
|
|
12895
12898
|
EO,
|
|
12896
12899
|
yO,
|
|
@@ -13024,18 +13027,18 @@ function BO(e, t) {
|
|
|
13024
13027
|
}
|
|
13025
13028
|
//#endregion
|
|
13026
13029
|
//#region src/plugins/impl/DataEditorPlugin.tsx
|
|
13027
|
-
var VO = J.lazy(() => import("./glide-data-editor-
|
|
13030
|
+
var VO = J.lazy(() => import("./glide-data-editor-Ce94qTW7.js").then((e) => e.t)), HO = SD("marimo-data-editor", { cssStyles: [GD, KD] }).withData(G({
|
|
13028
13031
|
initialValue: G({ edits: V(G({
|
|
13029
13032
|
rowIdx: W(),
|
|
13030
13033
|
columnId: K(),
|
|
13031
|
-
value:
|
|
13034
|
+
value: us()
|
|
13032
13035
|
})) }),
|
|
13033
13036
|
label: K().nullable(),
|
|
13034
|
-
data:
|
|
13037
|
+
data: Xo([K(), V(os({}))]),
|
|
13035
13038
|
fieldTypes: hO.nullish(),
|
|
13036
13039
|
columnNames: V(K()).default([]),
|
|
13037
|
-
editableColumns:
|
|
13038
|
-
columnTypes:
|
|
13040
|
+
editableColumns: Xo([V(K()), hs("all")]),
|
|
13041
|
+
columnTypes: Wo(K(), Xo([hs("boolean"), V(K())])).default({}),
|
|
13039
13042
|
columnSizingMode: H(["auto", "fit"]).default("auto")
|
|
13040
13043
|
})).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(UO, {
|
|
13041
13044
|
data: e.data.data,
|
|
@@ -13463,7 +13466,7 @@ function mk(e) {
|
|
|
13463
13466
|
//#endregion
|
|
13464
13467
|
//#region src/components/editor/cell/useAddCell.ts
|
|
13465
13468
|
function hk() {
|
|
13466
|
-
let e = (0, X.c)(4), t =
|
|
13469
|
+
let e = (0, X.c)(4), t = uo(xs), n = B(), { createCell: r } = Ae(), i;
|
|
13467
13470
|
return e[0] !== t || e[1] !== r || e[2] !== n ? (i = (e) => {
|
|
13468
13471
|
e.includes("alt") && T({
|
|
13469
13472
|
autoInstantiate: t,
|
|
@@ -14744,7 +14747,7 @@ function Sk(e) {
|
|
|
14744
14747
|
}
|
|
14745
14748
|
}
|
|
14746
14749
|
var Ck = (0, J.memo)((e) => {
|
|
14747
|
-
let t = (0, X.c)(39), { theme: n } =
|
|
14750
|
+
let t = (0, X.c)(39), { theme: n } = Go(), r, i, a, o, s, c, u, d;
|
|
14748
14751
|
t[0] === e ? (r = t[1], i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], u = t[7], d = t[8]) : ({code: i, className: r, initiallyHideCode: a, showHideCode: c, showCopyCode: u, insertNewCell: o, language: d, ...s} = e, t[0] = e, t[1] = r, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = u, t[8] = d);
|
|
14749
14752
|
let f = c === void 0 || c, p = u === void 0 || u, m = d === void 0 ? "python" : d, [h, g] = (0, J.useState)(!!a), _ = n === "dark" ? _k : vk, v;
|
|
14750
14753
|
t[9] === Symbol.for("react.memo_cache_sentinel") ? (v = Rs(zs, { fallback: !0 }), t[9] = v) : v = t[9];
|
|
@@ -15978,7 +15981,7 @@ var DA = () => {
|
|
|
15978
15981
|
_
|
|
15979
15982
|
] }), e[21] = u, e[22] = d, e[23] = h, e[24] = y) : y = e[24], y;
|
|
15980
15983
|
}, kA = (e) => {
|
|
15981
|
-
let t = (0, X.c)(8), { baseSpec: n, data: r, height: i } = e, { theme: a } =
|
|
15984
|
+
let t = (0, X.c)(8), { baseSpec: n, data: r, height: i } = e, { theme: a } = Go();
|
|
15982
15985
|
if (!r) {
|
|
15983
15986
|
let e;
|
|
15984
15987
|
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ (0, Y.jsx)("div", { children: "No data" }), t[0] = e) : e = t[0], e;
|
|
@@ -16116,7 +16119,7 @@ var RA = "marimo:charts:v2", zA = G({
|
|
|
16116
16119
|
}).transform((e) => ({
|
|
16117
16120
|
...e,
|
|
16118
16121
|
id: e.id ?? e.tabName
|
|
16119
|
-
})), BA = V(
|
|
16122
|
+
})), BA = V(Ko([K().transform((e) => e), V(zA)])), VA = new ta(RA, BA, () => []), HA = {
|
|
16120
16123
|
getItem: (e) => {
|
|
16121
16124
|
try {
|
|
16122
16125
|
let t = VA.get(e);
|
|
@@ -16131,7 +16134,7 @@ var RA = "marimo:charts:v2", zA = G({
|
|
|
16131
16134
|
removeItem: (e) => {
|
|
16132
16135
|
VA.remove(e);
|
|
16133
16136
|
}
|
|
16134
|
-
}, UA =
|
|
16137
|
+
}, UA = Do(RA, /* @__PURE__ */ new Map(), HA);
|
|
16135
16138
|
function WA() {
|
|
16136
16139
|
return he();
|
|
16137
16140
|
}
|
|
@@ -16152,7 +16155,7 @@ function $A(e, t) {
|
|
|
16152
16155
|
return !t || t.length === 0 ? n : Zs([...n, ...t], (e) => e[0]);
|
|
16153
16156
|
}
|
|
16154
16157
|
var ej = (e) => {
|
|
16155
|
-
let t = (0, X.c)(7), { cellId: n, data: r, dataTable: i, totalRows: a, columns: o, getDataUrl: s, fieldTypes: c, rowHeaders: l, displayHeader: u, onCloseChartBuilder: d } = e, [f, p] =
|
|
16158
|
+
let t = (0, X.c)(7), { cellId: n, data: r, dataTable: i, totalRows: a, columns: o, getDataUrl: s, fieldTypes: c, rowHeaders: l, displayHeader: u, onCloseChartBuilder: d } = e, [f, p] = Ts(UA), m = n ? f.get(n) ?? [] : [], [h, g] = (0, J.useState)(YA), [v, y] = (0, J.useState)(m.length), [b, x] = (0, J.useState)(u);
|
|
16156
16159
|
if (u !== b && x(u), u && !b && m.length === 0 && n) {
|
|
16157
16160
|
let e = GA(0, JA), t = new Map(f);
|
|
16158
16161
|
t.set(n, [{
|
|
@@ -16264,7 +16267,7 @@ var ej = (e) => {
|
|
|
16264
16267
|
]
|
|
16265
16268
|
});
|
|
16266
16269
|
}, tj = "X and Y columns are not set", nj = (e) => {
|
|
16267
|
-
let t = (0, X.c)(73), { tableData: n, chartConfig: r, chartType: i, saveChart: a, saveChartType: o, getDataUrl: s, fieldTypes: c, hasSchema: l, isLargeDataset: u } = e, d = l ?? !!c?.length, { theme: f } =
|
|
16270
|
+
let t = (0, X.c)(73), { tableData: n, chartConfig: r, chartType: i, saveChart: a, saveChartType: o, getDataUrl: s, fieldTypes: c, hasSchema: l, isLargeDataset: u } = e, d = l ?? !!c?.length, { theme: f } = Go(), p;
|
|
16268
16271
|
t[0] === r ? p = t[1] : (p = r ?? LA(), t[0] = r, t[1] = p);
|
|
16269
16272
|
let m;
|
|
16270
16273
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (m = Cy(IA), t[2] = m) : m = t[2];
|
|
@@ -16521,7 +16524,7 @@ function sj(e) {
|
|
|
16521
16524
|
//#endregion
|
|
16522
16525
|
//#region src/components/data-table/hooks/use-panel-ownership.ts
|
|
16523
16526
|
function cj(e, t) {
|
|
16524
|
-
let n = (0, X.c)(16), r =
|
|
16527
|
+
let n = (0, X.c)(16), r = uo(TS), { focusCell: i } = N(), a = B(), [o, s] = Ts(CS), [l, u] = Ts(SS), [d, f] = Ts(wS), p = lj(e, t);
|
|
16525
16528
|
!t && r && (c.error("CellId is not found, defaulting to fixed mode"), r = !1);
|
|
16526
16529
|
let m = (e) => l === p && d && e === o, h = a === t, g = l && uj(l, t);
|
|
16527
16530
|
r && h && l !== p && !g && u(p);
|
|
@@ -16573,7 +16576,7 @@ var dj = G({
|
|
|
16573
16576
|
"json",
|
|
16574
16577
|
"parquet",
|
|
16575
16578
|
"tsv"
|
|
16576
|
-
]) })).output(fj), mj = BD.input(dj.extend({ format:
|
|
16579
|
+
]) })).output(fj), mj = BD.input(dj.extend({ format: hs("geojson") })).output(fj.extend({ code: Xo([fj.shape.code, hs("missing_crs")]) })), hj = G({
|
|
16577
16580
|
geometry_columns: V(G({
|
|
16578
16581
|
name: K(),
|
|
16579
16582
|
encoding: H([
|
|
@@ -16582,11 +16585,11 @@ var dj = G({
|
|
|
16582
16585
|
"wkt",
|
|
16583
16586
|
"other"
|
|
16584
16587
|
]),
|
|
16585
|
-
crs:
|
|
16588
|
+
crs: Xo([K(), Wo(K(), us())]).nullable()
|
|
16586
16589
|
})),
|
|
16587
16590
|
primary_geometry_column: K().nullable(),
|
|
16588
16591
|
default_geometry_column: K().nullable(),
|
|
16589
|
-
formats:
|
|
16592
|
+
formats: Wo(K(), G({
|
|
16590
16593
|
available: U(),
|
|
16591
16594
|
reason: K().nullable(),
|
|
16592
16595
|
missing_packages: V(K())
|
|
@@ -16655,7 +16658,7 @@ function bj(e, t) {
|
|
|
16655
16658
|
});
|
|
16656
16659
|
}
|
|
16657
16660
|
var xj = (e) => {
|
|
16658
|
-
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i =
|
|
16661
|
+
let t = (0, X.c)(11), { chartCode: n, columnName: r } = e, i = uo(xs), a = B(), { createCell: o } = Ae(), s;
|
|
16659
16662
|
t[0] !== i || t[1] !== o || t[2] !== a ? (s = (e) => {
|
|
16660
16663
|
e.includes("alt") && T({
|
|
16661
16664
|
autoInstantiate: i,
|
|
@@ -16823,7 +16826,7 @@ function Cj({ columnName: e, column: t, dataType: n, externalType: r, previewCol
|
|
|
16823
16826
|
}) })] });
|
|
16824
16827
|
}
|
|
16825
16828
|
var wj = ({ previewColumn: e, columnName: t, dataType: n }) => {
|
|
16826
|
-
let { theme: r } =
|
|
16829
|
+
let { theme: r } = Go(), { locale: i } = zr(), { data: a, error: o, isPending: s, refetch: c } = oc(async () => await e({ column: t }), []);
|
|
16827
16830
|
if (o) return /* @__PURE__ */ (0, Y.jsx)(Bt, { error: o });
|
|
16828
16831
|
if (s) return /* @__PURE__ */ (0, Y.jsx)(Ut, { message: "Loading..." });
|
|
16829
16832
|
if (!a) return /* @__PURE__ */ (0, Y.jsx)(Gn, {
|
|
@@ -17186,9 +17189,9 @@ function Pj(e, t) {
|
|
|
17186
17189
|
}
|
|
17187
17190
|
//#endregion
|
|
17188
17191
|
//#region src/plugins/impl/DataTablePlugin.tsx
|
|
17189
|
-
var Fj =
|
|
17192
|
+
var Fj = Xo([
|
|
17190
17193
|
W(),
|
|
17191
|
-
|
|
17194
|
+
ps(),
|
|
17192
17195
|
K()
|
|
17193
17196
|
]).nullable(), Ij = G({
|
|
17194
17197
|
total: W().nullable(),
|
|
@@ -17206,29 +17209,29 @@ var Fj = Jo([
|
|
|
17206
17209
|
p75: Fj,
|
|
17207
17210
|
p95: Fj
|
|
17208
17211
|
}), Lj = V(G({
|
|
17209
|
-
bin_start:
|
|
17212
|
+
bin_start: Xo([
|
|
17210
17213
|
W(),
|
|
17211
17214
|
K(),
|
|
17212
|
-
|
|
17215
|
+
_o(Date)
|
|
17213
17216
|
]),
|
|
17214
|
-
bin_end:
|
|
17217
|
+
bin_end: Xo([
|
|
17215
17218
|
W(),
|
|
17216
17219
|
K(),
|
|
17217
|
-
|
|
17220
|
+
_o(Date)
|
|
17218
17221
|
]),
|
|
17219
17222
|
count: W()
|
|
17220
17223
|
})), Rj = V(G({
|
|
17221
17224
|
value: K(),
|
|
17222
17225
|
count: W()
|
|
17223
|
-
})), zj =
|
|
17224
|
-
initialValue:
|
|
17226
|
+
})), zj = Wo(K(), Wo(K(), K().nullable())).optional(), Bj = SD("marimo-table").withData(G({
|
|
17227
|
+
initialValue: Xo([V(W()), V(G({
|
|
17225
17228
|
rowId: K(),
|
|
17226
17229
|
columnName: K()
|
|
17227
17230
|
}))]),
|
|
17228
17231
|
label: K().nullable(),
|
|
17229
|
-
data:
|
|
17230
|
-
rawData:
|
|
17231
|
-
totalRows:
|
|
17232
|
+
data: Xo([K(), V(os({}))]),
|
|
17233
|
+
rawData: Xo([K(), V(os({}))]).nullish(),
|
|
17234
|
+
totalRows: Xo([W(), hs(on)]),
|
|
17232
17235
|
pagination: U().default(!1),
|
|
17233
17236
|
pageSize: W().default(10),
|
|
17234
17237
|
selection: H([
|
|
@@ -17239,7 +17242,7 @@ var Fj = Jo([
|
|
|
17239
17242
|
]).nullable().default(null),
|
|
17240
17243
|
showDownload: U().default(!1),
|
|
17241
17244
|
showFilters: U().default(!1),
|
|
17242
|
-
showColumnSummaries:
|
|
17245
|
+
showColumnSummaries: Xo([U(), H(["stats", "chart"])]).default(!0),
|
|
17243
17246
|
showDataTypes: U().default(!0),
|
|
17244
17247
|
showPageSizeSelector: U().default(!0),
|
|
17245
17248
|
showColumnExplorer: U().default(!0),
|
|
@@ -17250,20 +17253,20 @@ var Fj = Jo([
|
|
|
17250
17253
|
freezeColumnsLeft: V(K()).optional(),
|
|
17251
17254
|
freezeColumnsRight: V(K()).optional(),
|
|
17252
17255
|
hiddenColumns: V(K()).optional(),
|
|
17253
|
-
textJustifyColumns:
|
|
17256
|
+
textJustifyColumns: Wo(K(), H([
|
|
17254
17257
|
"left",
|
|
17255
17258
|
"center",
|
|
17256
17259
|
"right"
|
|
17257
17260
|
])).optional(),
|
|
17258
17261
|
wrappedColumns: V(K()).optional(),
|
|
17259
|
-
columnWidths:
|
|
17260
|
-
headerTooltip:
|
|
17262
|
+
columnWidths: Wo(K(), W().int().positive()).optional(),
|
|
17263
|
+
headerTooltip: Wo(K(), K()).optional(),
|
|
17261
17264
|
fieldTypes: hO.nullish(),
|
|
17262
17265
|
totalColumns: W(),
|
|
17263
|
-
maxColumns:
|
|
17266
|
+
maxColumns: Xo([W(), hs("all")]).default("all"),
|
|
17264
17267
|
hasStableRowId: U().default(!1),
|
|
17265
17268
|
maxHeight: W().optional(),
|
|
17266
|
-
cellStyles:
|
|
17269
|
+
cellStyles: Wo(K(), Wo(K(), os({}))).optional(),
|
|
17267
17270
|
hoverTemplate: K().optional(),
|
|
17268
17271
|
cellHoverTexts: zj,
|
|
17269
17272
|
lazy: U().default(!1),
|
|
@@ -17272,11 +17275,11 @@ var Fj = Jo([
|
|
|
17272
17275
|
download_as: pj,
|
|
17273
17276
|
download_geojson: mj,
|
|
17274
17277
|
get_export_metadata: gj,
|
|
17275
|
-
get_column_summaries: BD.input(
|
|
17276
|
-
data:
|
|
17277
|
-
stats:
|
|
17278
|
-
bin_values:
|
|
17279
|
-
value_counts:
|
|
17278
|
+
get_column_summaries: BD.input(os({})).output(G({
|
|
17279
|
+
data: Xo([K(), V(os({}))]).nullable(),
|
|
17280
|
+
stats: Wo(K(), Ij),
|
|
17281
|
+
bin_values: Wo(K(), Lj),
|
|
17282
|
+
value_counts: Wo(K(), Rj),
|
|
17280
17283
|
show_charts: U(),
|
|
17281
17284
|
is_disabled: U().optional()
|
|
17282
17285
|
})),
|
|
@@ -17291,20 +17294,20 @@ var Fj = Jo([
|
|
|
17291
17294
|
page_size: W(),
|
|
17292
17295
|
max_columns: W().nullable().optional()
|
|
17293
17296
|
})).output(G({
|
|
17294
|
-
data:
|
|
17295
|
-
total_rows:
|
|
17297
|
+
data: Xo([K(), V(os({}))]),
|
|
17298
|
+
total_rows: Xo([W(), hs(on)]),
|
|
17296
17299
|
has_next_page: U().nullish(),
|
|
17297
|
-
cell_styles:
|
|
17300
|
+
cell_styles: Wo(K(), Wo(K(), os({}))).nullable(),
|
|
17298
17301
|
cell_hover_texts: zj.nullable(),
|
|
17299
|
-
raw_data:
|
|
17302
|
+
raw_data: Xo([K(), V(os({}))]).nullish()
|
|
17300
17303
|
})),
|
|
17301
|
-
get_row_ids: BD.input(
|
|
17304
|
+
get_row_ids: BD.input(os({})).output(G({
|
|
17302
17305
|
row_ids: V(W()),
|
|
17303
17306
|
all_rows: U(),
|
|
17304
17307
|
error: K().nullable()
|
|
17305
17308
|
})),
|
|
17306
|
-
get_data_url: BD.input(
|
|
17307
|
-
data_url:
|
|
17309
|
+
get_data_url: BD.input(os({})).output(G({
|
|
17310
|
+
data_url: Xo([K(), V(os({}))]),
|
|
17308
17311
|
format: H([
|
|
17309
17312
|
"csv",
|
|
17310
17313
|
"json",
|
|
@@ -17314,7 +17317,7 @@ var Fj = Jo([
|
|
|
17314
17317
|
calculate_top_k_rows: BD.input(G({
|
|
17315
17318
|
column: K(),
|
|
17316
17319
|
k: W()
|
|
17317
|
-
})).output(G({ data: V(
|
|
17320
|
+
})).output(G({ data: V(Ko([ds(), W()])) })),
|
|
17318
17321
|
preview_column: BD.input(G({ column: K() })).output(G({
|
|
17319
17322
|
chart_spec: K().nullable(),
|
|
17320
17323
|
chart_code: K().nullable(),
|
|
@@ -17460,7 +17463,7 @@ var Wj = (e) => {
|
|
|
17460
17463
|
d.pageSize,
|
|
17461
17464
|
d.pageIndex
|
|
17462
17465
|
], t[40] = g, t[41] = d.pageIndex, t[42] = d.pageSize, t[43] = e.cellHoverTexts, t[44] = e.cellStyles, t[45] = e.data, t[46] = e.lazy, t[47] = e.totalRows, t[48] = i, t[49] = p, t[50] = s, t[51] = P, t[52] = F) : F = t[52];
|
|
17463
|
-
let { data: I, error: L, isPending: R, isFetching: z } = oc(N, F), B =
|
|
17466
|
+
let { data: I, error: L, isPending: R, isFetching: z } = oc(N, F), B = uo(bt), ee;
|
|
17464
17467
|
t[53] !== B || t[54] !== e ? (ee = async () => !B || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, t[53] = B, t[54] = e, t[55] = ee) : ee = t[55];
|
|
17465
17468
|
let te = e.showDownload, ne = e.get_size_bytes, re = e.lazy, ie = e.totalRows, ae = lc(g), oe = lc(s), se;
|
|
17466
17469
|
t[56] !== B || t[57] !== e.get_size_bytes || t[58] !== e.lazy || t[59] !== e.showDownload || t[60] !== e.totalRows || t[61] !== p || t[62] !== ae || t[63] !== oe ? (se = [
|
|
@@ -17695,9 +17698,9 @@ var Kj = (e) => {
|
|
|
17695
17698
|
}
|
|
17696
17699
|
}, t[49] = it, t[50] = Je, t[51] = A, t[52] = at) : at = t[52];
|
|
17697
17700
|
let ot = Fs(at), st = Je === "multi" || Je === "single", ct = _ && !!pe, lt;
|
|
17698
|
-
t[53] === Symbol.for("react.memo_cache_sentinel") ? (lt =
|
|
17701
|
+
t[53] === Symbol.for("react.memo_cache_sentinel") ? (lt = Uo(), t[53] = lt) : lt = t[53];
|
|
17699
17702
|
let ut = lt, dt;
|
|
17700
|
-
t[54] === Symbol.for("react.memo_cache_sentinel") ? (dt =
|
|
17703
|
+
t[54] === Symbol.for("react.memo_cache_sentinel") ? (dt = Jo(), t[54] = dt) : dt = t[54];
|
|
17701
17704
|
let ft = dt, pt;
|
|
17702
17705
|
bb2: {
|
|
17703
17706
|
if (!we || !(v || ct)) {
|
|
@@ -17840,8 +17843,8 @@ var Kj = (e) => {
|
|
|
17840
17843
|
] }), t[140] = ht, t[141] = gt, t[142] = _t, t[143] = vt, t[144] = Dt, t[145] = Ot) : Ot = t[145], Ot;
|
|
17841
17844
|
}, qj = (e) => {
|
|
17842
17845
|
let t = (0, X.c)(2), { children: n } = e, r;
|
|
17843
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, Y.jsx)(uc, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
17844
|
-
store:
|
|
17846
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ (0, Y.jsx)(uc, { children: /* @__PURE__ */ (0, Y.jsx)(Mo, {
|
|
17847
|
+
store: fo,
|
|
17845
17848
|
children: /* @__PURE__ */ (0, Y.jsx)(Wn, {
|
|
17846
17849
|
controller: ft,
|
|
17847
17850
|
children: n
|
|
@@ -17940,7 +17943,7 @@ var nM = class {
|
|
|
17940
17943
|
}, iM = class {
|
|
17941
17944
|
tagName = "marimo-date-range";
|
|
17942
17945
|
validator = G({
|
|
17943
|
-
initialValue:
|
|
17946
|
+
initialValue: Ko([K(), K()]),
|
|
17944
17947
|
label: K().nullable(),
|
|
17945
17948
|
start: K(),
|
|
17946
17949
|
stop: K(),
|
|
@@ -18051,7 +18054,7 @@ var nM = class {
|
|
|
18051
18054
|
tagName = "marimo-dict";
|
|
18052
18055
|
validator = G({
|
|
18053
18056
|
label: K().nullable(),
|
|
18054
|
-
elementIds:
|
|
18057
|
+
elementIds: Wo(K(), K())
|
|
18055
18058
|
});
|
|
18056
18059
|
render(e) {
|
|
18057
18060
|
return /* @__PURE__ */ (0, Y.jsx)(lM, {
|
|
@@ -18182,7 +18185,7 @@ function hM(e) {
|
|
|
18182
18185
|
}
|
|
18183
18186
|
//#endregion
|
|
18184
18187
|
//#region src/plugins/impl/data-explorer/DataExplorerPlugin.tsx
|
|
18185
|
-
var gM = J.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
18188
|
+
var gM = J.lazy(() => import("./ConnectedDataExplorerComponent-jtTaDisw.js")), _M = SD("marimo-data-explorer").withData(G({
|
|
18186
18189
|
label: K().nullish(),
|
|
18187
18190
|
data: K()
|
|
18188
18191
|
})).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(gM, {
|
|
@@ -18257,8 +18260,8 @@ var gM = J.lazy(() => import("./ConnectedDataExplorerComponent-CR9WyiEc.js")), _
|
|
|
18257
18260
|
}
|
|
18258
18261
|
}), CM = () => ({
|
|
18259
18262
|
isMatch: (e) => {
|
|
18260
|
-
if (e instanceof
|
|
18261
|
-
let t = e.element, n = t instanceof
|
|
18263
|
+
if (e instanceof Oo) {
|
|
18264
|
+
let t = e.element, n = t instanceof vo ? t.description : "", { special: r } = wy.parse(n || "");
|
|
18262
18265
|
return r === "column_id";
|
|
18263
18266
|
}
|
|
18264
18267
|
return !1;
|
|
@@ -18307,7 +18310,7 @@ var gM = J.lazy(() => import("./ConnectedDataExplorerComponent-CR9WyiEc.js")), _
|
|
|
18307
18310
|
}), t[9] = r.control, t[10] = i, t[11] = d, t[12] = f) : f = t[12], f;
|
|
18308
18311
|
}, TM = () => ({
|
|
18309
18312
|
isMatch: (e) => {
|
|
18310
|
-
if (e instanceof
|
|
18313
|
+
if (e instanceof Oo) {
|
|
18311
18314
|
let { special: t } = wy.parse(e.description || "");
|
|
18312
18315
|
return t === "column_values";
|
|
18313
18316
|
}
|
|
@@ -18360,7 +18363,7 @@ var gM = J.lazy(() => import("./ConnectedDataExplorerComponent-CR9WyiEc.js")), _
|
|
|
18360
18363
|
}), EM = () => ({
|
|
18361
18364
|
isMatch: (e) => {
|
|
18362
18365
|
let { special: t } = wy.parse(e.description || "");
|
|
18363
|
-
return t === "column_values" && e instanceof
|
|
18366
|
+
return t === "column_values" && e instanceof Oo;
|
|
18364
18367
|
},
|
|
18365
18368
|
Component: ({ schema: e, form: t, path: n }) => {
|
|
18366
18369
|
let r = J.use(yM), i = J.use(bM), { data: a, isPending: o } = oc(() => i({ column: r }), [r]), s = a?.values || [];
|
|
@@ -18398,7 +18401,7 @@ var gM = J.lazy(() => import("./ConnectedDataExplorerComponent-CR9WyiEc.js")), _
|
|
|
18398
18401
|
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ (0, Y.jsx)(zy, { className: r }), t[2] = r, t[3] = i), i;
|
|
18399
18402
|
}, OM = () => ({
|
|
18400
18403
|
isMatch: (e) => {
|
|
18401
|
-
if (e instanceof
|
|
18404
|
+
if (e instanceof So) {
|
|
18402
18405
|
let { special: t } = wy.parse(e.description || "");
|
|
18403
18406
|
return t === "column_filter";
|
|
18404
18407
|
}
|
|
@@ -18804,7 +18807,7 @@ var BM = SD("marimo-dataframe").withData(G({
|
|
|
18804
18807
|
pageSize: W().default(5),
|
|
18805
18808
|
showDownload: U().default(!0),
|
|
18806
18809
|
dataframeName: K().optional(),
|
|
18807
|
-
columns: V(
|
|
18810
|
+
columns: V(Ko([
|
|
18808
18811
|
K().or(W()),
|
|
18809
18812
|
K(),
|
|
18810
18813
|
K()
|
|
@@ -18826,7 +18829,7 @@ var BM = SD("marimo-dataframe").withData(G({
|
|
|
18826
18829
|
sql_code: K().nullish()
|
|
18827
18830
|
})),
|
|
18828
18831
|
get_column_values: BD.input(G({ column: K() })).output(G({
|
|
18829
|
-
values: V(
|
|
18832
|
+
values: V(ds()),
|
|
18830
18833
|
too_many_values: U()
|
|
18831
18834
|
})),
|
|
18832
18835
|
search: BD.input(G({
|
|
@@ -18839,7 +18842,7 @@ var BM = SD("marimo-dataframe").withData(G({
|
|
|
18839
18842
|
page_number: W(),
|
|
18840
18843
|
page_size: W()
|
|
18841
18844
|
})).output(G({
|
|
18842
|
-
data:
|
|
18845
|
+
data: Xo([K(), V(os({}))]),
|
|
18843
18846
|
total_rows: W()
|
|
18844
18847
|
})),
|
|
18845
18848
|
download_as: pj,
|
|
@@ -18918,7 +18921,7 @@ var BM = SD("marimo-dataframe").withData(G({
|
|
|
18918
18921
|
}), t[28] = oe, t[29] = se, t[30] = ce) : ce = t[30];
|
|
18919
18922
|
let le;
|
|
18920
18923
|
t[31] !== c || t[32] !== s ? (le = (e) => {
|
|
18921
|
-
|
|
18924
|
+
Co(e, s) || (c(e), P(e));
|
|
18922
18925
|
}, t[31] = c, t[32] = s, t[33] = le) : le = t[33];
|
|
18923
18926
|
let ue;
|
|
18924
18927
|
t[34] !== k || t[35] !== n || t[36] !== u || t[37] !== N || t[38] !== o || t[39] !== le ? (ue = /* @__PURE__ */ (0, Y.jsx)(Yt, {
|
|
@@ -20649,7 +20652,7 @@ function tN(e, t, n) {
|
|
|
20649
20652
|
//#region ../node_modules/.pnpm/file-selector@2.1.2/node_modules/file-selector/dist/es2015/file-selector.js
|
|
20650
20653
|
var nN = [".DS_Store", "Thumbs.db"];
|
|
20651
20654
|
function rN(e) {
|
|
20652
|
-
return
|
|
20655
|
+
return fs(this, void 0, void 0, function* () {
|
|
20653
20656
|
return oN(e) && iN(e.dataTransfer) ? lN(e.dataTransfer, e.type) : aN(e) ? sN(e) : Array.isArray(e) && e.every((e) => "getFile" in e && typeof e.getFile == "function") ? cN(e) : [];
|
|
20654
20657
|
});
|
|
20655
20658
|
}
|
|
@@ -20666,12 +20669,12 @@ function sN(e) {
|
|
|
20666
20669
|
return dN(e.target.files).map((e) => $M(e));
|
|
20667
20670
|
}
|
|
20668
20671
|
function cN(e) {
|
|
20669
|
-
return
|
|
20672
|
+
return fs(this, void 0, void 0, function* () {
|
|
20670
20673
|
return (yield Promise.all(e.map((e) => e.getFile()))).map((e) => $M(e));
|
|
20671
20674
|
});
|
|
20672
20675
|
}
|
|
20673
20676
|
function lN(e, t) {
|
|
20674
|
-
return
|
|
20677
|
+
return fs(this, void 0, void 0, function* () {
|
|
20675
20678
|
if (e.items) {
|
|
20676
20679
|
let n = dN(e.items).filter((e) => e.kind === "file");
|
|
20677
20680
|
return t === "drop" ? uN(pN(yield Promise.all(n.map(fN)))) : n;
|
|
@@ -20700,7 +20703,7 @@ function pN(e) {
|
|
|
20700
20703
|
return e.reduce((e, t) => [...e, ...Array.isArray(t) ? pN(t) : [t]], []);
|
|
20701
20704
|
}
|
|
20702
20705
|
function mN(e, t) {
|
|
20703
|
-
return
|
|
20706
|
+
return fs(this, void 0, void 0, function* () {
|
|
20704
20707
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
20705
20708
|
let t = yield e.getAsFileSystemHandle();
|
|
20706
20709
|
if (t === null) throw Error(`${e} is not a File`);
|
|
@@ -20715,7 +20718,7 @@ function mN(e, t) {
|
|
|
20715
20718
|
});
|
|
20716
20719
|
}
|
|
20717
20720
|
function hN(e) {
|
|
20718
|
-
return
|
|
20721
|
+
return fs(this, void 0, void 0, function* () {
|
|
20719
20722
|
return e.isDirectory ? gN(e) : _N(e);
|
|
20720
20723
|
});
|
|
20721
20724
|
}
|
|
@@ -20724,7 +20727,7 @@ function gN(e) {
|
|
|
20724
20727
|
return new Promise((e, n) => {
|
|
20725
20728
|
let r = [];
|
|
20726
20729
|
function i() {
|
|
20727
|
-
t.readEntries((t) =>
|
|
20730
|
+
t.readEntries((t) => fs(this, void 0, void 0, function* () {
|
|
20728
20731
|
if (t.length) {
|
|
20729
20732
|
let e = Promise.all(t.map(hN));
|
|
20730
20733
|
r.push(e), i();
|
|
@@ -20741,7 +20744,7 @@ function gN(e) {
|
|
|
20741
20744
|
});
|
|
20742
20745
|
}
|
|
20743
20746
|
function _N(e) {
|
|
20744
|
-
return
|
|
20747
|
+
return fs(this, void 0, void 0, function* () {
|
|
20745
20748
|
return new Promise((t, n) => {
|
|
20746
20749
|
e.file((n) => {
|
|
20747
20750
|
t($M(n, e.fullPath));
|
|
@@ -21738,7 +21741,7 @@ var GP = SD("marimo-form").withData(G({
|
|
|
21738
21741
|
clearButtonLabel: K().default("Clear"),
|
|
21739
21742
|
clearButtonTooltip: K().optional(),
|
|
21740
21743
|
shouldValidate: U().optional()
|
|
21741
|
-
})).withFunctions({ validate: BD.input(G({ value:
|
|
21744
|
+
})).withFunctions({ validate: BD.input(G({ value: us() })).output(K().nullish()) }).renderer(({ data: e, functions: t, ...n }) => /* @__PURE__ */ (0, Y.jsx)(qP, {
|
|
21742
21745
|
...e,
|
|
21743
21746
|
...n,
|
|
21744
21747
|
...t
|
|
@@ -22675,9 +22678,9 @@ var EF = class {
|
|
|
22675
22678
|
tagName = "marimo-matplotlib";
|
|
22676
22679
|
validator = G({
|
|
22677
22680
|
chartBase64: K(),
|
|
22678
|
-
xBounds:
|
|
22679
|
-
yBounds:
|
|
22680
|
-
axesPixelBounds:
|
|
22681
|
+
xBounds: Ko([W(), W()]),
|
|
22682
|
+
yBounds: Ko([W(), W()]),
|
|
22683
|
+
axesPixelBounds: Ko([
|
|
22681
22684
|
W(),
|
|
22682
22685
|
W(),
|
|
22683
22686
|
W(),
|
|
@@ -22742,7 +22745,7 @@ var EF = class {
|
|
|
22742
22745
|
}, AF = "mpl-interactive-figure", jF = SD("marimo-mpl-interactive").withData(G({
|
|
22743
22746
|
mplJsUrl: K(),
|
|
22744
22747
|
cssUrl: K(),
|
|
22745
|
-
toolbarImages:
|
|
22748
|
+
toolbarImages: Wo(K(), K()),
|
|
22746
22749
|
width: W(),
|
|
22747
22750
|
height: W()
|
|
22748
22751
|
})).withFunctions({}).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(IF, { ...e })), MF = null;
|
|
@@ -22944,7 +22947,7 @@ function BF(e) {
|
|
|
22944
22947
|
}
|
|
22945
22948
|
//#endregion
|
|
22946
22949
|
//#region src/plugins/impl/panel/utils.ts
|
|
22947
|
-
var VF = G({ content:
|
|
22950
|
+
var VF = G({ content: Xo([G({ type: hs("ACK") }), K()]).nullable() });
|
|
22948
22951
|
function HF(e, t) {
|
|
22949
22952
|
if (Array.isArray(e)) return e.map((e) => HF(e, t));
|
|
22950
22953
|
if (e instanceof Map) {
|
|
@@ -22998,12 +23001,12 @@ var UF = class {
|
|
|
22998
23001
|
}
|
|
22999
23002
|
}, WF = SD("marimo-panel").withData(G({
|
|
23000
23003
|
extensionUrl: K().nullable(),
|
|
23001
|
-
docs_json:
|
|
23002
|
-
render_json: G({ roots:
|
|
23004
|
+
docs_json: Wo(K(), us()),
|
|
23005
|
+
render_json: G({ roots: Wo(K(), K()) }).catchall(us())
|
|
23003
23006
|
})).withFunctions({ send_to_widget: BD.input(G({
|
|
23004
|
-
message:
|
|
23007
|
+
message: us(),
|
|
23005
23008
|
buffers: V(K())
|
|
23006
|
-
})).output(
|
|
23009
|
+
})).output(xo().optional()) }).renderer((e) => /* @__PURE__ */ (0, Y.jsx)(qF, { ...e }));
|
|
23007
23010
|
function GF() {
|
|
23008
23011
|
return window.Bokeh != null;
|
|
23009
23012
|
}
|
|
@@ -23390,7 +23393,7 @@ function MI(e, t, n) {
|
|
|
23390
23393
|
}
|
|
23391
23394
|
function NI(e, t) {
|
|
23392
23395
|
let n = new Set(kI);
|
|
23393
|
-
for (let r of n)
|
|
23396
|
+
for (let r of n) Co(e[r], t[r]) || n.delete(r);
|
|
23394
23397
|
return n;
|
|
23395
23398
|
}
|
|
23396
23399
|
function PI(e, t, n) {
|
|
@@ -23437,8 +23440,8 @@ function FI(e) {
|
|
|
23437
23440
|
var II = class {
|
|
23438
23441
|
tagName = "marimo-plotly";
|
|
23439
23442
|
validator = G({
|
|
23440
|
-
figure:
|
|
23441
|
-
config:
|
|
23443
|
+
figure: os({}).transform((e) => e),
|
|
23444
|
+
config: os({})
|
|
23442
23445
|
});
|
|
23443
23446
|
render(e) {
|
|
23444
23447
|
return /* @__PURE__ */ (0, Y.jsx)(RI, {
|
|
@@ -23496,7 +23499,7 @@ var II = class {
|
|
|
23496
23499
|
let t = {};
|
|
23497
23500
|
Object.entries(e).forEach((e) => {
|
|
23498
23501
|
let [n, r] = e;
|
|
23499
|
-
|
|
23502
|
+
co(t, n, r);
|
|
23500
23503
|
}), i((e) => ({
|
|
23501
23504
|
...e,
|
|
23502
23505
|
...t
|
|
@@ -23778,9 +23781,9 @@ var GI = class {
|
|
|
23778
23781
|
}, t[10] = u, t[11] = r, t[12] = N, t[13] = P) : (N = t[12], P = t[13]);
|
|
23779
23782
|
let F, I;
|
|
23780
23783
|
t[14] !== u || t[15] !== v || t[16] !== r || t[17] !== i ? (F = () => {
|
|
23781
|
-
u && !
|
|
23784
|
+
u && !Co(v, i) && r(v);
|
|
23782
23785
|
}, I = () => {
|
|
23783
|
-
u && !
|
|
23786
|
+
u && !Co(v, i) && r(v);
|
|
23784
23787
|
}, t[14] = u, t[15] = v, t[16] = r, t[17] = i, t[18] = F, t[19] = I) : (F = t[18], I = t[19]);
|
|
23785
23788
|
let L;
|
|
23786
23789
|
t[20] !== m || t[21] !== g || t[22] !== v || t[23] !== d || t[24] !== a || t[25] !== s || t[26] !== o || t[27] !== j || t[28] !== M || t[29] !== N || t[30] !== P || t[31] !== F || t[32] !== I || t[33] !== h ? (L = /* @__PURE__ */ (0, Y.jsx)(WI, {
|
|
@@ -23928,8 +23931,8 @@ var GI = class {
|
|
|
23928
23931
|
}), XI = class {
|
|
23929
23932
|
tagName = "marimo-refresh";
|
|
23930
23933
|
validator = G({
|
|
23931
|
-
options: V(
|
|
23932
|
-
defaultInterval:
|
|
23934
|
+
options: V(Xo([YI, W().min(JI)])).default([]),
|
|
23935
|
+
defaultInterval: Xo([YI, W().min(JI)]).optional(),
|
|
23933
23936
|
label: K().nullable()
|
|
23934
23937
|
});
|
|
23935
23938
|
render(e) {
|
|
@@ -24255,7 +24258,7 @@ var lL = class {
|
|
|
24255
24258
|
maxLength: W().optional(),
|
|
24256
24259
|
minLength: W().optional(),
|
|
24257
24260
|
disabled: U().optional(),
|
|
24258
|
-
debounce:
|
|
24261
|
+
debounce: ms(Xo([U(), W()])),
|
|
24259
24262
|
rows: W().default(4),
|
|
24260
24263
|
fullWidth: U().default(!1)
|
|
24261
24264
|
});
|
|
@@ -24375,7 +24378,7 @@ var lL = class {
|
|
|
24375
24378
|
minLength: W().optional(),
|
|
24376
24379
|
fullWidth: U().default(!1),
|
|
24377
24380
|
disabled: U().optional(),
|
|
24378
|
-
debounce:
|
|
24381
|
+
debounce: ms(Xo([U(), W()])),
|
|
24379
24382
|
passwordHasValue: U().optional()
|
|
24380
24383
|
});
|
|
24381
24384
|
render(e) {
|
|
@@ -24501,17 +24504,17 @@ function mL(e, t) {
|
|
|
24501
24504
|
}
|
|
24502
24505
|
//#endregion
|
|
24503
24506
|
//#region src/plugins/impl/vega/VegaPlugin.tsx
|
|
24504
|
-
var hL = J.lazy(() => import("./vega-component-
|
|
24507
|
+
var hL = J.lazy(() => import("./vega-component-DpTyTrz3.js")), gL = class {
|
|
24505
24508
|
tagName = "marimo-vega";
|
|
24506
24509
|
validator = G({
|
|
24507
|
-
spec:
|
|
24508
|
-
chartSelection:
|
|
24510
|
+
spec: os({}).transform((e) => e),
|
|
24511
|
+
chartSelection: Xo([
|
|
24509
24512
|
U(),
|
|
24510
|
-
|
|
24511
|
-
|
|
24513
|
+
hs("point"),
|
|
24514
|
+
hs("interval")
|
|
24512
24515
|
]).default(!0),
|
|
24513
|
-
fieldSelection:
|
|
24514
|
-
embedOptions:
|
|
24516
|
+
fieldSelection: Xo([U(), V(K())]).default(!0),
|
|
24517
|
+
embedOptions: os({}).default({})
|
|
24515
24518
|
});
|
|
24516
24519
|
render(e) {
|
|
24517
24520
|
return /* @__PURE__ */ (0, Y.jsx)(hL, {
|
|
@@ -24610,7 +24613,7 @@ var xL = class {
|
|
|
24610
24613
|
tagName = "marimo-carousel";
|
|
24611
24614
|
validator = G({
|
|
24612
24615
|
index: K().nullish(),
|
|
24613
|
-
height:
|
|
24616
|
+
height: Xo([K(), W()]).nullish()
|
|
24614
24617
|
});
|
|
24615
24618
|
cssStyles = [
|
|
24616
24619
|
EL,
|
|
@@ -24689,7 +24692,7 @@ var xL = class {
|
|
|
24689
24692
|
tagName = "marimo-json-output";
|
|
24690
24693
|
validator = G({
|
|
24691
24694
|
name: K().nullish(),
|
|
24692
|
-
jsonData:
|
|
24695
|
+
jsonData: us(),
|
|
24693
24696
|
valueTypes: H(["json", "python"]).default("python")
|
|
24694
24697
|
});
|
|
24695
24698
|
render({ data: e }) {
|
|
@@ -24742,11 +24745,11 @@ var xL = class {
|
|
|
24742
24745
|
tagName = "marimo-mime-renderer";
|
|
24743
24746
|
validator = G({
|
|
24744
24747
|
mime: K().transform((e) => e),
|
|
24745
|
-
data:
|
|
24748
|
+
data: Xo([
|
|
24746
24749
|
K(),
|
|
24747
|
-
|
|
24748
|
-
|
|
24749
|
-
V(
|
|
24750
|
+
xo(),
|
|
24751
|
+
Wo(K(), us()),
|
|
24752
|
+
V(ds())
|
|
24750
24753
|
]).transform((e) => e)
|
|
24751
24754
|
});
|
|
24752
24755
|
render({ data: e }) {
|
|
@@ -24761,7 +24764,7 @@ var xL = class {
|
|
|
24761
24764
|
validator = G({
|
|
24762
24765
|
diagram: K(),
|
|
24763
24766
|
theme: K().optional(),
|
|
24764
|
-
theme_variables:
|
|
24767
|
+
theme_variables: Wo(K(), K()).optional()
|
|
24765
24768
|
});
|
|
24766
24769
|
render(e) {
|
|
24767
24770
|
return /* @__PURE__ */ (0, Y.jsx)(BL, {
|
|
@@ -24770,7 +24773,7 @@ var xL = class {
|
|
|
24770
24773
|
themeVariables: e.data.theme_variables
|
|
24771
24774
|
});
|
|
24772
24775
|
}
|
|
24773
|
-
}, BL = (0, J.lazy)(() => import("./mermaid
|
|
24776
|
+
}, BL = (0, J.lazy)(() => import("./mermaid--k1o49nH.js").then((e) => e.t));
|
|
24774
24777
|
//#endregion
|
|
24775
24778
|
//#region src/components/editor/chrome/panels/outline/useActiveOutline.tsx
|
|
24776
24779
|
function VL() {
|
|
@@ -24836,7 +24839,7 @@ function KL(e, t) {
|
|
|
24836
24839
|
//#endregion
|
|
24837
24840
|
//#region src/components/editor/chrome/panels/outline/floating-outline.tsx
|
|
24838
24841
|
var qL = () => {
|
|
24839
|
-
let e = (0, X.c)(22), { items: t } =
|
|
24842
|
+
let e = (0, X.c)(22), { items: t } = uo(ha), n;
|
|
24840
24843
|
e[0] === t ? n = e[1] : (n = WL(t), e[0] = t, e[1] = n);
|
|
24841
24844
|
let { activeHeaderId: r, activeOccurrences: i } = HL(n), [a, o] = J.useState(!1), [s, c] = J.useState(!1), u = a || s;
|
|
24842
24845
|
if (t.length < 2) return null;
|
|
@@ -24920,7 +24923,7 @@ var qL = () => {
|
|
|
24920
24923
|
children: u
|
|
24921
24924
|
}), t[10] = s, t[11] = c, t[12] = u, t[13] = d) : d = t[13], d;
|
|
24922
24925
|
}, XL = (e) => {
|
|
24923
|
-
let t = (0, X.c)(12), { label: n } = e, { items: r } =
|
|
24926
|
+
let t = (0, X.c)(12), { label: n } = e, { items: r } = uo(ha), i;
|
|
24924
24927
|
t[0] === r ? i = t[1] : (i = WL(r), t[0] = r, t[1] = i);
|
|
24925
24928
|
let { activeHeaderId: a, activeOccurrences: o } = HL(i);
|
|
24926
24929
|
if (r.length === 0) {
|
|
@@ -24952,8 +24955,8 @@ var qL = () => {
|
|
|
24952
24955
|
validator = G({ label: K().optional() });
|
|
24953
24956
|
render(e) {
|
|
24954
24957
|
let { label: t } = e.data;
|
|
24955
|
-
return /* @__PURE__ */ (0, Y.jsx)(
|
|
24956
|
-
store:
|
|
24958
|
+
return /* @__PURE__ */ (0, Y.jsx)(Mo, {
|
|
24959
|
+
store: fo,
|
|
24957
24960
|
children: /* @__PURE__ */ (0, Y.jsx)(XL, { label: t })
|
|
24958
24961
|
});
|
|
24959
24962
|
}
|
|
@@ -25719,7 +25722,7 @@ var qL = () => {
|
|
|
25719
25722
|
validator = G({
|
|
25720
25723
|
title: K().optional(),
|
|
25721
25724
|
subtitle: K().optional(),
|
|
25722
|
-
progress:
|
|
25725
|
+
progress: Xo([W(), U()]),
|
|
25723
25726
|
total: W().optional(),
|
|
25724
25727
|
eta: W().optional(),
|
|
25725
25728
|
rate: W().optional()
|
|
@@ -26009,7 +26012,7 @@ var iR = (/* @__PURE__ */ i(((e) => {
|
|
|
26009
26012
|
}, cR = class {
|
|
26010
26013
|
tagName = "marimo-stat";
|
|
26011
26014
|
validator = G({
|
|
26012
|
-
value:
|
|
26015
|
+
value: Xo([
|
|
26013
26016
|
K(),
|
|
26014
26017
|
W(),
|
|
26015
26018
|
U()
|
|
@@ -26019,7 +26022,7 @@ var iR = (/* @__PURE__ */ i(((e) => {
|
|
|
26019
26022
|
bordered: U().default(!1),
|
|
26020
26023
|
direction: H(["increase", "decrease"]).optional(),
|
|
26021
26024
|
target_direction: H(["increase", "decrease"]).default("increase"),
|
|
26022
|
-
slot:
|
|
26025
|
+
slot: ds().optional()
|
|
26023
26026
|
});
|
|
26024
26027
|
render({ data: e }) {
|
|
26025
26028
|
return /* @__PURE__ */ (0, Y.jsx)(lR, { ...e });
|
|
@@ -29191,7 +29194,7 @@ var $R, ez, tz, nz, rz, iz, az, oz, sz, cz, lz, uz, dz, fz, pz, mz, hz, gz, _z,
|
|
|
29191
29194
|
defaultKeymap: !1,
|
|
29192
29195
|
historyKeymap: !1
|
|
29193
29196
|
})], Sz = (0, J.memo)((e) => {
|
|
29194
|
-
let t = (0, X.c)(8), { code: n, className: r } = e, { theme: i } =
|
|
29197
|
+
let t = (0, X.c)(8), { code: n, className: r } = e, { theme: i } = Go(), a;
|
|
29195
29198
|
t[0] === r ? a = t[1] : (a = l(r, "text-muted-foreground flex flex-col overflow-hidden"), t[0] = r, t[1] = a);
|
|
29196
29199
|
let o = i === "dark" ? "dark" : "light", s;
|
|
29197
29200
|
t[2] !== n || t[3] !== o ? (s = /* @__PURE__ */ (0, Y.jsx)(ic, {
|
|
@@ -29753,13 +29756,13 @@ function Rz(e) {
|
|
|
29753
29756
|
var zz = {
|
|
29754
29757
|
type: "grid",
|
|
29755
29758
|
name: "Grid",
|
|
29756
|
-
validator:
|
|
29759
|
+
validator: os({
|
|
29757
29760
|
columns: W().min(1),
|
|
29758
29761
|
rowHeight: W().min(1),
|
|
29759
29762
|
maxWidth: W().nullish().transform((e) => e ?? void 0).catch(void 0),
|
|
29760
29763
|
bordered: U().optional().catch(void 0),
|
|
29761
|
-
cells: V(
|
|
29762
|
-
position:
|
|
29764
|
+
cells: V(os({
|
|
29765
|
+
position: Ko([
|
|
29763
29766
|
W(),
|
|
29764
29767
|
W(),
|
|
29765
29768
|
W(),
|
|
@@ -29887,7 +29890,7 @@ var Hz = (e) => {
|
|
|
29887
29890
|
function Uz() {
|
|
29888
29891
|
let e = (0, X.c)(3), { deleteCells: t, undoDeleteCell: n } = Ae(), r;
|
|
29889
29892
|
return e[0] !== t || e[1] !== n ? (r = (e) => {
|
|
29890
|
-
let { cellId: r } = e, i = (
|
|
29893
|
+
let { cellId: r } = e, i = (fo.get(va).cellData[r]?.code ?? "").trim() === "";
|
|
29891
29894
|
if (t({ cellIds: [r] }) && !i) {
|
|
29892
29895
|
let { dismiss: e } = x({
|
|
29893
29896
|
title: "Cell deleted",
|
|
@@ -32747,8 +32750,8 @@ function UU(e) {
|
|
|
32747
32750
|
}
|
|
32748
32751
|
//#endregion
|
|
32749
32752
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
32750
|
-
var WU = J.lazy(() => import("./reveal-component-
|
|
32751
|
-
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o =
|
|
32753
|
+
var WU = J.lazy(() => import("./reveal-component-B7TgfbYJ.js")), GU = (e) => {
|
|
32754
|
+
let t = (0, X.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = uo(Gs), s = a === "read" || o, c = uo(Ca) > 1, [l, u] = (0, J.useState)(null), d;
|
|
32752
32755
|
t[0] !== i || t[1] !== n ? (d = Vz(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
32753
32756
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
32754
32757
|
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];
|
|
@@ -32808,7 +32811,7 @@ var WU = J.lazy(() => import("./reveal-component-B73BObRc.js")), GU = (e) => {
|
|
|
32808
32811
|
"sub-slide",
|
|
32809
32812
|
"fragment",
|
|
32810
32813
|
"skip"
|
|
32811
|
-
]), qU =
|
|
32814
|
+
]), qU = os({
|
|
32812
32815
|
type: KU.optional().catch(void 0),
|
|
32813
32816
|
speakerNotes: K().optional().catch(void 0),
|
|
32814
32817
|
showCode: U().optional().catch(void 0)
|
|
@@ -32823,13 +32826,13 @@ var WU = J.lazy(() => import("./reveal-component-B73BObRc.js")), GU = (e) => {
|
|
|
32823
32826
|
"top",
|
|
32824
32827
|
"center",
|
|
32825
32828
|
"bottom"
|
|
32826
|
-
]), XU =
|
|
32829
|
+
]), XU = os({
|
|
32827
32830
|
transition: JU.optional().catch(void 0),
|
|
32828
32831
|
verticalAlign: YU.optional().catch(void 0)
|
|
32829
32832
|
}).catch({}), ZU = {
|
|
32830
32833
|
type: "slides",
|
|
32831
32834
|
name: "Slides",
|
|
32832
|
-
validator:
|
|
32835
|
+
validator: os({
|
|
32833
32836
|
cells: V(qU).optional().catch(void 0),
|
|
32834
32837
|
deck: XU.optional().catch(void 0)
|
|
32835
32838
|
}),
|
|
@@ -33109,9 +33112,9 @@ function iW(e) {
|
|
|
33109
33112
|
}
|
|
33110
33113
|
//#endregion
|
|
33111
33114
|
//#region src/components/editor/output/useWrapText.ts
|
|
33112
|
-
var aW =
|
|
33115
|
+
var aW = Do("marimo:console:wrapText", !1, xe);
|
|
33113
33116
|
function oW() {
|
|
33114
|
-
let e = (0, X.c)(3), [t, n] =
|
|
33117
|
+
let e = (0, X.c)(3), [t, n] = Ts(aW), r;
|
|
33115
33118
|
return e[0] !== n || e[1] !== t ? (r = {
|
|
33116
33119
|
wrapText: t,
|
|
33117
33120
|
setWrapText: n
|
|
@@ -33140,7 +33143,7 @@ var cW = J.memo((e) => {
|
|
|
33140
33143
|
value: s,
|
|
33141
33144
|
setValue: c
|
|
33142
33145
|
}, t[0] = s, t[1] = u);
|
|
33143
|
-
let d = QU(u), { consoleOutputs: f, stale: p, cellName: m, cellId: h, onSubmitDebugger: g, onClear: _, onRefactorWithAI: v, className: y } = e, b = sW(f), x =
|
|
33146
|
+
let d = QU(u), { consoleOutputs: f, stale: p, cellName: m, cellId: h, onSubmitDebugger: g, onClear: _, onRefactorWithAI: v, className: y } = e, b = sW(f), x = uo(Gs), S = uo(pr), C = !x && S?.cellId === h ? S.inputId : null, w = b.length > 0 || C != null, T = tW(w), E = un(n, w), D;
|
|
33144
33147
|
t[2] === w ? D = t[3] : (D = () => {
|
|
33145
33148
|
let e = n.current;
|
|
33146
33149
|
if (!e || !w) return;
|
|
@@ -33419,12 +33422,12 @@ function TW(e, t) {
|
|
|
33419
33422
|
//#region src/components/editor/renderers/vertical-layout/utils.ts
|
|
33420
33423
|
function EW({ showCodeInRunModePreference: e, kioskMode: t }) {
|
|
33421
33424
|
if (!e) return !1;
|
|
33422
|
-
let n = new URLSearchParams(window.location.search).get(
|
|
33425
|
+
let n = new URLSearchParams(window.location.search).get(Qo.showCode);
|
|
33423
33426
|
return n === null ? Ws() || Us() || t : n === "true";
|
|
33424
33427
|
}
|
|
33425
33428
|
function DW(e) {
|
|
33426
33429
|
Ws() && Bi((t) => {
|
|
33427
|
-
t.set(
|
|
33430
|
+
t.set(Qo.showCode, String(e));
|
|
33428
33431
|
});
|
|
33429
33432
|
}
|
|
33430
33433
|
function OW(e) {
|
|
@@ -33456,7 +33459,7 @@ var AW = (e) => {
|
|
|
33456
33459
|
children: h
|
|
33457
33460
|
}), t[12] = s, t[13] = h, t[14] = g) : g = t[14], g;
|
|
33458
33461
|
}, jW = (e) => {
|
|
33459
|
-
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = TW(n.length, i), o =
|
|
33462
|
+
let t = (0, X.c)(33), { cells: n, appConfig: r, mode: i } = e, { invisible: a } = TW(n.length, i), o = uo(Gs), s = uo(ea), [c] = Po(), u = uo(_c), d;
|
|
33460
33463
|
t[0] !== o || t[1] !== u ? (d = () => EW({
|
|
33461
33464
|
showCodeInRunModePreference: u,
|
|
33462
33465
|
kioskMode: o
|
|
@@ -33653,7 +33656,7 @@ var AW = (e) => {
|
|
|
33653
33656
|
t[11] !== i || t[12] !== S || t[13] !== m || t[14] !== b ? (e = /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
33654
33657
|
allowExpand: !0,
|
|
33655
33658
|
output: m,
|
|
33656
|
-
className:
|
|
33659
|
+
className: cs.outputArea,
|
|
33657
33660
|
cellId: i,
|
|
33658
33661
|
stale: b,
|
|
33659
33662
|
loading: S
|
|
@@ -33708,7 +33711,7 @@ var AW = (e) => {
|
|
|
33708
33711
|
t[43] !== i || t[44] !== S || t[45] !== m || t[46] !== b || t[47] !== D ? (O = /* @__PURE__ */ (0, Y.jsx)($n, {
|
|
33709
33712
|
allowExpand: D,
|
|
33710
33713
|
output: m,
|
|
33711
|
-
className:
|
|
33714
|
+
className: cs.outputArea,
|
|
33712
33715
|
cellId: i,
|
|
33713
33716
|
stale: b,
|
|
33714
33717
|
loading: S
|
|
@@ -33726,7 +33729,7 @@ NW.displayName = "VerticalCell";
|
|
|
33726
33729
|
var PW = {
|
|
33727
33730
|
type: "vertical",
|
|
33728
33731
|
name: "Vertical",
|
|
33729
|
-
validator:
|
|
33732
|
+
validator: ds(),
|
|
33730
33733
|
Component: jW,
|
|
33731
33734
|
deserializeLayout: (e) => e,
|
|
33732
33735
|
serializeLayout: (e) => e,
|
|
@@ -33833,7 +33836,7 @@ function JW({ state: e, plugin: t, cells: n }) {
|
|
|
33833
33836
|
}) : t.getInitialLayout(n));
|
|
33834
33837
|
}
|
|
33835
33838
|
function YW() {
|
|
33836
|
-
let e = Sa(), t =
|
|
33839
|
+
let e = Sa(), t = fo.get(GW), { selectedLayout: n } = t;
|
|
33837
33840
|
if (n === "vertical") return null;
|
|
33838
33841
|
let r = zW.find((e) => e.type === n);
|
|
33839
33842
|
if (r === void 0) return c.error(`Unknown layout type: ${n}`), null;
|
|
@@ -34112,7 +34115,7 @@ var bG = (e) => {
|
|
|
34112
34115
|
children: a
|
|
34113
34116
|
}), t[3] = a, t[4] = n, t[5] = o) : o = t[5], o;
|
|
34114
34117
|
}, xG = (e) => {
|
|
34115
|
-
let t = (0, X.c)(19), { cellId: n, codeCallback: r, visible: i } = e, a =
|
|
34118
|
+
let t = (0, X.c)(19), { cellId: n, codeCallback: r, visible: i } = e, a = yo(), o = uo(ho), s;
|
|
34116
34119
|
t[0] === r ? s = t[1] : (s = () => {
|
|
34117
34120
|
S(r());
|
|
34118
34121
|
}, t[0] = r, t[1] = s);
|
|
@@ -34184,7 +34187,7 @@ function CG() {}
|
|
|
34184
34187
|
//#endregion
|
|
34185
34188
|
//#region src/core/islands/components/output-wrapper.tsx
|
|
34186
34189
|
var wG = (e) => {
|
|
34187
|
-
let t = (0, X.c)(15), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = SG(i), s = (0, J.useRef)(null), c = vr(n), l = Zn(n), u =
|
|
34190
|
+
let t = (0, X.c)(15), { cellId: n, codeCallback: r, alwaysShowRun: i, children: a } = e, o = SG(i), s = (0, J.useRef)(null), c = vr(n), l = Zn(n), u = uo(hc), { status: d } = On(n);
|
|
34188
34191
|
if (TG(s, d), !u || c === null && !l) {
|
|
34189
34192
|
let e;
|
|
34190
34193
|
return t[0] === a ? e = t[1] : (e = /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
@@ -34274,17 +34277,17 @@ var EG = (e) => {
|
|
|
34274
34277
|
return mG(this);
|
|
34275
34278
|
}
|
|
34276
34279
|
getCellIdFromIndex(e) {
|
|
34277
|
-
let { cellIds: t } =
|
|
34280
|
+
let { cellIds: t } = fo.get(va);
|
|
34278
34281
|
return t.at(e);
|
|
34279
34282
|
}
|
|
34280
34283
|
connectedCallback() {
|
|
34281
34284
|
let t = ++this.connectionGeneration;
|
|
34282
34285
|
this.addEventListener(qu, this.handleSourceChanged), this.querySelector(e.outputTagName) && (this.renderConfig = this.extractRenderConfig()), Ps(this.renderConfig, "Missing island render source"), this.runtimeAppId = this.appId, this.runtimeCellId = this.hasAttribute(Ju.CELL_IDX) ? this.cellId : void 0, this.syncCellIdsSubscription();
|
|
34283
34286
|
let n = () => {
|
|
34284
|
-
let e =
|
|
34287
|
+
let e = fo.get(gs);
|
|
34285
34288
|
this.classList.toggle("dark", e === "dark"), this.classList.toggle("light", e === "light");
|
|
34286
34289
|
};
|
|
34287
|
-
this.unsubscribeTheme =
|
|
34290
|
+
this.unsubscribeTheme = fo.sub(gs, n), n(), queueMicrotask(() => {
|
|
34288
34291
|
this.isConnected && t === this.connectionGeneration && (this.root = O_.createRoot(this), this.renderIsland());
|
|
34289
34292
|
});
|
|
34290
34293
|
}
|
|
@@ -34292,7 +34295,7 @@ var EG = (e) => {
|
|
|
34292
34295
|
this.querySelector(e.outputTagName) && (this.renderConfig = this.extractRenderConfig(), this.querySelector(e.outputTagName)?.remove(), this.querySelector(e.codeTagName)?.remove()), this.runtimeCellId = this.isReactive && this.runtimeAppId === this.appId ? this.cellId : void 0, this.runtimeAppId = this.appId, this.syncCellIdsSubscription(), this.renderIsland();
|
|
34293
34296
|
};
|
|
34294
34297
|
syncCellIdsSubscription() {
|
|
34295
|
-
this.isReactive ? this.unsubscribeCellIds ??=
|
|
34298
|
+
this.isReactive ? this.unsubscribeCellIds ??= fo.sub(Da, () => {
|
|
34296
34299
|
this.runtimeCellId = this.cellId, this.renderIsland();
|
|
34297
34300
|
}) : (this.unsubscribeCellIds?.(), this.unsubscribeCellIds = void 0);
|
|
34298
34301
|
}
|
|
@@ -34316,16 +34319,16 @@ var EG = (e) => {
|
|
|
34316
34319
|
let e = this.renderConfig;
|
|
34317
34320
|
if (!e) return;
|
|
34318
34321
|
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 });
|
|
34319
|
-
i ? this.root?.render(/* @__PURE__ */ (0, Y.jsx)(uc, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
34320
|
-
store:
|
|
34322
|
+
i ? this.root?.render(/* @__PURE__ */ (0, Y.jsx)(uc, { children: /* @__PURE__ */ (0, Y.jsx)(Mo, {
|
|
34323
|
+
store: fo,
|
|
34321
34324
|
children: /* @__PURE__ */ (0, Y.jsx)(Ax, { children: /* @__PURE__ */ (0, Y.jsxs)(Fe, { children: [/* @__PURE__ */ (0, Y.jsx)(wG, {
|
|
34322
34325
|
cellId: i,
|
|
34323
34326
|
codeCallback: n,
|
|
34324
34327
|
alwaysShowRun: a,
|
|
34325
34328
|
children: s
|
|
34326
34329
|
}), r] }) })
|
|
34327
|
-
}) })) : (this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, Y.jsx)(uc, { children: /* @__PURE__ */ (0, Y.jsx)(
|
|
34328
|
-
store:
|
|
34330
|
+
}) })) : (this.removeAttribute("data-status"), this.root?.render(/* @__PURE__ */ (0, Y.jsx)(uc, { children: /* @__PURE__ */ (0, Y.jsx)(Mo, {
|
|
34331
|
+
store: fo,
|
|
34329
34332
|
children: /* @__PURE__ */ (0, Y.jsx)(Ax, { children: s })
|
|
34330
34333
|
}) })));
|
|
34331
34334
|
}
|
|
@@ -34356,7 +34359,7 @@ function MG() {
|
|
|
34356
34359
|
//#endregion
|
|
34357
34360
|
//#region src/core/islands/bootstrap.ts
|
|
34358
34361
|
async function NG(e) {
|
|
34359
|
-
let t = e.store ||
|
|
34362
|
+
let t = e.store || fo, n = e.root || document, r = e.bridge;
|
|
34360
34363
|
t.set($i, r), t.set(Hs, "read"), t.set(bc, null), e.autoInitializePlugins !== !1 && vR();
|
|
34361
34364
|
let i = Array.from(n.querySelectorAll(Gu.ISLAND));
|
|
34362
34365
|
if (i.length === 0) {
|
|
@@ -34384,14 +34387,14 @@ async function NG(e) {
|
|
|
34384
34387
|
s.connect(r.notebookBackend, {
|
|
34385
34388
|
onNotification: a.NOOP,
|
|
34386
34389
|
...Aa(o)
|
|
34387
|
-
}), t.set(
|
|
34390
|
+
}), t.set(mo, s);
|
|
34388
34391
|
let l = yS({
|
|
34389
34392
|
store: t,
|
|
34390
34393
|
documentAtom: s.documentAtom,
|
|
34391
34394
|
shownDocumentAtom: s.shownDocumentAtom,
|
|
34392
34395
|
backendAtom: s.backendAtom
|
|
34393
34396
|
}), u = new AbortController();
|
|
34394
|
-
l.start({ signal: u.signal }), t.set(
|
|
34397
|
+
l.start({ signal: u.signal }), t.set(ho, l), Ea({
|
|
34395
34398
|
store: t,
|
|
34396
34399
|
model: l,
|
|
34397
34400
|
reconcile: o.reconcileDocument,
|
|
@@ -34414,8 +34417,6 @@ function PG(e, t, n, r) {
|
|
|
34414
34417
|
case "pdb-output":
|
|
34415
34418
|
case "breakpoints":
|
|
34416
34419
|
case "active-line":
|
|
34417
|
-
case "variables":
|
|
34418
|
-
case "variable-values":
|
|
34419
34420
|
case "data-column-preview":
|
|
34420
34421
|
case "sql-table-preview":
|
|
34421
34422
|
case "sql-table-list-preview":
|
|
@@ -34757,7 +34758,7 @@ var ZG = class {
|
|
|
34757
34758
|
}
|
|
34758
34759
|
};
|
|
34759
34760
|
constructor(e = {}) {
|
|
34760
|
-
this.store = e.store ||
|
|
34761
|
+
this.store = e.store || fo, this.root = e.root || document;
|
|
34761
34762
|
try {
|
|
34762
34763
|
let t = (e.workerFactory || new YG()).create();
|
|
34763
34764
|
this.rpc = KG(t), this.setupMessageListeners();
|