@marimo-team/islands 0.13.11-dev9 → 0.13.12-dev0
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-DNFNhFao.js → ConnectedDataExplorerComponent-FNbGSvi8.js} +2 -2
- package/dist/{VegaLite-DKhvOxhd.js → VegaLite-B3o5ox9T.js} +3 -3
- package/dist/{_baseUniq-Cnmb3ubw.js → _baseUniq-DtgA5XPY.js} +54 -54
- package/dist/{any-language-editor-DDfK2m6u.js → any-language-editor-8d2qvq0F.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-BJKDueJ9.js → architectureDiagram-IEHRJDOE-CB6bOsZM.js} +5 -5
- package/dist/assets/{save-worker-BPdUArx2.js → save-worker-9HEtFDM0.js} +286 -278
- package/dist/assets/{worker-ClUJakx7.js → worker-BGGm0KYZ.js} +343 -335
- package/dist/assets/{worker-C7cQgmFi.js → worker-e6AF4zgJ.js} +221 -213
- package/dist/{blockDiagram-JOT3LUYC-DhMhm8Xe.js → blockDiagram-JOT3LUYC-t44G8uzR.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-DIvwawx4.js → c4Diagram-VJAJSXHY-CST113S2.js} +2 -2
- package/dist/{channel-TMoqPr80.js → channel-Bwf01f3R.js} +1 -1
- package/dist/{chunk-4BMEZGHF-DnSQqNNW.js → chunk-4BMEZGHF-C9AAA_rW.js} +1 -1
- package/dist/{chunk-A2AXSNBT-Dq3BgLsK.js → chunk-A2AXSNBT-BwmTl1_u.js} +2 -2
- package/dist/{chunk-AEK57VVT-CwaeaYJL.js → chunk-AEK57VVT-B8tLbxDM.js} +2 -2
- package/dist/{chunk-D6G4REZN-BOTOoqo0.js → chunk-D6G4REZN-BAMJhwxD.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-CVxHuaLv.js → chunk-RZ5BOZE2-4pJ3_scN.js} +1 -1
- package/dist/{chunk-XZIHB7SX-DNNYFdyl.js → chunk-XZIHB7SX-Cx0pSget.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-uTqqFExw.js → classDiagram-GIVACNV2-gz-oy0MW.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-uTqqFExw.js → classDiagram-v2-COTLJTTW-gz-oy0MW.js} +2 -2
- package/dist/{clone-CDpSWalN.js → clone-dnzW62XO.js} +1 -1
- package/dist/{dagre-OKDRZEBW-JNTKltpU.js → dagre-OKDRZEBW-CXolCKwF.js} +6 -6
- package/dist/{data-editor-D3fd2FeE.js → data-editor-DgNYCz0Q.js} +1 -1
- package/dist/{diagram-SSKATNLV-CTMqjD6s.js → diagram-SSKATNLV-U-H97Xtz.js} +3 -3
- package/dist/{diagram-VNBRO52H-DSee8eIJ.js → diagram-VNBRO52H-esuvkFar.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-CyV9O6sy.js → erDiagram-Q7BY3M3F-FytgjBzQ.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-2u7K98LJ.js → flowDiagram-4HSFHLVR-CCo-m8L6.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-BB8Zg5Y4.js → ganttDiagram-APWFNJXF-C8agL4qD.js} +55 -55
- package/dist/{gitGraphDiagram-7IBYFJ6S-aYU1F4wa.js → gitGraphDiagram-7IBYFJ6S-BJiSpnCC.js} +4 -4
- package/dist/{graph-l3qinZrG.js → graph-C9ZqAPxA.js} +3 -3
- package/dist/{index-B9NppCsQ.js → index-BD-RvQwV.js} +3 -3
- package/dist/{index-CY7Dqfcn.js → index-BKbHLeTh.js} +1 -1
- package/dist/{index-R1DxFaFx.js → index-CaoFhmu4.js} +1 -1
- package/dist/{index-DrK53x_G.js → index-D-xHZTYe.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-D1ZvUr5q.js → infoDiagram-PH2N3AL5-C53SsZF9.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-Cv7KahYc.js → journeyDiagram-U35MCT3I-CCegkd26.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-Bwsom9hq.js → kanban-definition-NDS4AKOZ-DFlPdoaw.js} +1 -1
- package/dist/{layout-B7xmxBzS.js → layout-CNfguXUJ.js} +51 -51
- package/dist/{linear-Z-9vruHe.js → linear-CNsS8TrU.js} +32 -32
- package/dist/{main-BqO9_FY3.js → main-g8NhKoTu.js} +31433 -31024
- package/dist/main.js +1 -1
- package/dist/{mermaid-DfXzT8eM.js → mermaid-CtQrLDj5.js} +28 -28
- package/dist/min-DxFsVG0s.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-0DD2ibro.js → mindmap-definition-ALO5MXBD-DODIWOcX.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-DLEMxUEw.js → pieDiagram-IB7DONF6-idZ3yXbW.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-DdXTrGLY.js → quadrantDiagram-7GDLP6J5-CsqzLGmr.js} +2 -2
- package/dist/{radar-MK3ICKWK-BHmvEDfD.js → radar-MK3ICKWK-CP2VGUCO.js} +11 -11
- package/dist/{react-plotly-DBvyHI0-.js → react-plotly-Q_pQo456.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CdmrpKf0.js → requirementDiagram-KVF5MWMF-D7NXQSqV.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-BiZAVzWW.js → sankeyDiagram-QLVOVGJD-aml_jM75.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-Cj_aORDs.js → sequenceDiagram-X6HHIX6F-81wcdr36.js} +3 -3
- package/dist/{slides-component-B5CgdIYY.js → slides-component-Or7SgqNJ.js} +1 -1
- package/dist/{stateDiagram-DGXRK772-D4DF1dAO.js → stateDiagram-DGXRK772-4X0GNAMA.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-DRog8-R0.js → stateDiagram-v2-YXO3MK2T-aAVlUYKE.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-BBAeUx5g.js → time-DL1wn8El.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-CgE2J3r1.js → timeline-definition-BDJGKUSR-Br4M07XC.js} +1 -1
- package/dist/{vega-component-DJbPN8Ym.js → vega-component-0d4DZiso.js} +2 -2
- package/dist/{xychartDiagram-VJFVF3MP-B-qILb0h.js → xychartDiagram-VJFVF3MP-C_0y0XwM.js} +2 -2
- package/package.json +2 -2
- package/dist/min-C88XdK-I.js +0 -85
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
class
|
|
1
|
+
var wr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
|
|
2
|
+
var hs = wr((gs, yt) => {
|
|
3
|
+
class br {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.status = "pending", this.promise = new Promise((e, r) => {
|
|
6
6
|
this.reject = (n) => {
|
|
@@ -114,7 +114,7 @@ var ps = _r((ys, yt) => {
|
|
|
114
114
|
"invalid_intersection_types",
|
|
115
115
|
"not_multiple_of",
|
|
116
116
|
"not_finite"
|
|
117
|
-
]),
|
|
117
|
+
]), kr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
118
118
|
class P extends Error {
|
|
119
119
|
get errors() {
|
|
120
120
|
return this.issues;
|
|
@@ -232,7 +232,7 @@ var ps = _r((ys, yt) => {
|
|
|
232
232
|
return { message: r };
|
|
233
233
|
};
|
|
234
234
|
let At = ge;
|
|
235
|
-
function
|
|
235
|
+
function xr(t) {
|
|
236
236
|
At = t;
|
|
237
237
|
}
|
|
238
238
|
function He() {
|
|
@@ -258,7 +258,7 @@ var ps = _r((ys, yt) => {
|
|
|
258
258
|
path: a,
|
|
259
259
|
message: o
|
|
260
260
|
};
|
|
261
|
-
},
|
|
261
|
+
}, Sr = [];
|
|
262
262
|
function f(t, e) {
|
|
263
263
|
const r = He(), n = We({
|
|
264
264
|
issueData: e,
|
|
@@ -589,14 +589,14 @@ var ps = _r((ys, yt) => {
|
|
|
589
589
|
return this.safeParse(null).success;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const Tr = /^c[^\s-]{8,}$/i, Er = /^[0-9a-z]+$/, Or = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Nr = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Rr = /^[a-z0-9_-]{21}$/i, Ar = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Cr = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Ir = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Pr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
593
593
|
let at;
|
|
594
|
-
const
|
|
594
|
+
const jr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Zr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, $r = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Mr = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Fr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Dr = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, It = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Lr = new RegExp(`^${It}$`);
|
|
595
595
|
function Pt(t) {
|
|
596
596
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
597
597
|
return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Vr(t) {
|
|
600
600
|
return new RegExp(`^${Pt(t)}$`);
|
|
601
601
|
}
|
|
602
602
|
function jt(t) {
|
|
@@ -604,11 +604,11 @@ var ps = _r((ys, yt) => {
|
|
|
604
604
|
const r = [];
|
|
605
605
|
return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
|
|
606
606
|
}
|
|
607
|
-
function Vr(t, e) {
|
|
608
|
-
return !!((e === "v4" || !e) && Pr.test(t) || (e === "v6" || !e) && Zr.test(t));
|
|
609
|
-
}
|
|
610
607
|
function zr(t, e) {
|
|
611
|
-
|
|
608
|
+
return !!((e === "v4" || !e) && jr.test(t) || (e === "v6" || !e) && $r.test(t));
|
|
609
|
+
}
|
|
610
|
+
function qr(t, e) {
|
|
611
|
+
if (!Ar.test(t))
|
|
612
612
|
return !1;
|
|
613
613
|
try {
|
|
614
614
|
const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
|
|
@@ -617,8 +617,8 @@ var ps = _r((ys, yt) => {
|
|
|
617
617
|
return !1;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return !!((e === "v4" || !e) &&
|
|
620
|
+
function Ur(t, e) {
|
|
621
|
+
return !!((e === "v4" || !e) && Zr.test(t) || (e === "v6" || !e) && Mr.test(t));
|
|
622
622
|
}
|
|
623
623
|
class Z extends w {
|
|
624
624
|
_parse(e) {
|
|
@@ -669,43 +669,43 @@ var ps = _r((ys, yt) => {
|
|
|
669
669
|
message: a.message
|
|
670
670
|
}), n.dirty());
|
|
671
671
|
} else if (a.kind === "email")
|
|
672
|
-
|
|
672
|
+
Ir.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
673
673
|
validation: "email",
|
|
674
674
|
code: u.invalid_string,
|
|
675
675
|
message: a.message
|
|
676
676
|
}), n.dirty());
|
|
677
677
|
else if (a.kind === "emoji")
|
|
678
|
-
at || (at = new RegExp(
|
|
678
|
+
at || (at = new RegExp(Pr, "u")), at.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
679
679
|
validation: "emoji",
|
|
680
680
|
code: u.invalid_string,
|
|
681
681
|
message: a.message
|
|
682
682
|
}), n.dirty());
|
|
683
683
|
else if (a.kind === "uuid")
|
|
684
|
-
|
|
684
|
+
Nr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
685
685
|
validation: "uuid",
|
|
686
686
|
code: u.invalid_string,
|
|
687
687
|
message: a.message
|
|
688
688
|
}), n.dirty());
|
|
689
689
|
else if (a.kind === "nanoid")
|
|
690
|
-
|
|
690
|
+
Rr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
691
691
|
validation: "nanoid",
|
|
692
692
|
code: u.invalid_string,
|
|
693
693
|
message: a.message
|
|
694
694
|
}), n.dirty());
|
|
695
695
|
else if (a.kind === "cuid")
|
|
696
|
-
|
|
696
|
+
Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
697
697
|
validation: "cuid",
|
|
698
698
|
code: u.invalid_string,
|
|
699
699
|
message: a.message
|
|
700
700
|
}), n.dirty());
|
|
701
701
|
else if (a.kind === "cuid2")
|
|
702
|
-
|
|
702
|
+
Er.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
703
703
|
validation: "cuid2",
|
|
704
704
|
code: u.invalid_string,
|
|
705
705
|
message: a.message
|
|
706
706
|
}), n.dirty());
|
|
707
707
|
else if (a.kind === "ulid")
|
|
708
|
-
|
|
708
|
+
Or.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
709
709
|
validation: "ulid",
|
|
710
710
|
code: u.invalid_string,
|
|
711
711
|
message: a.message
|
|
@@ -740,35 +740,35 @@ var ps = _r((ys, yt) => {
|
|
|
740
740
|
code: u.invalid_string,
|
|
741
741
|
validation: "datetime",
|
|
742
742
|
message: a.message
|
|
743
|
-
}), n.dirty()) : a.kind === "date" ?
|
|
743
|
+
}), n.dirty()) : a.kind === "date" ? Lr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
744
744
|
code: u.invalid_string,
|
|
745
745
|
validation: "date",
|
|
746
746
|
message: a.message
|
|
747
|
-
}), n.dirty()) : a.kind === "time" ?
|
|
747
|
+
}), n.dirty()) : a.kind === "time" ? Vr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
748
748
|
code: u.invalid_string,
|
|
749
749
|
validation: "time",
|
|
750
750
|
message: a.message
|
|
751
|
-
}), n.dirty()) : a.kind === "duration" ?
|
|
751
|
+
}), n.dirty()) : a.kind === "duration" ? Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
752
752
|
validation: "duration",
|
|
753
753
|
code: u.invalid_string,
|
|
754
754
|
message: a.message
|
|
755
|
-
}), n.dirty()) : a.kind === "ip" ?
|
|
755
|
+
}), n.dirty()) : a.kind === "ip" ? zr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
756
756
|
validation: "ip",
|
|
757
757
|
code: u.invalid_string,
|
|
758
758
|
message: a.message
|
|
759
|
-
}), n.dirty()) : a.kind === "jwt" ?
|
|
759
|
+
}), n.dirty()) : a.kind === "jwt" ? qr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
760
760
|
validation: "jwt",
|
|
761
761
|
code: u.invalid_string,
|
|
762
762
|
message: a.message
|
|
763
|
-
}), n.dirty()) : a.kind === "cidr" ?
|
|
763
|
+
}), n.dirty()) : a.kind === "cidr" ? Ur(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
764
764
|
validation: "cidr",
|
|
765
765
|
code: u.invalid_string,
|
|
766
766
|
message: a.message
|
|
767
|
-
}), n.dirty()) : a.kind === "base64" ?
|
|
767
|
+
}), n.dirty()) : a.kind === "base64" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
768
768
|
validation: "base64",
|
|
769
769
|
code: u.invalid_string,
|
|
770
770
|
message: a.message
|
|
771
|
-
}), n.dirty()) : a.kind === "base64url" ?
|
|
771
|
+
}), n.dirty()) : a.kind === "base64url" ? Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
772
772
|
validation: "base64url",
|
|
773
773
|
code: u.invalid_string,
|
|
774
774
|
message: a.message
|
|
@@ -1007,7 +1007,7 @@ var ps = _r((ys, yt) => {
|
|
|
1007
1007
|
..._(t)
|
|
1008
1008
|
});
|
|
1009
1009
|
};
|
|
1010
|
-
function
|
|
1010
|
+
function Br(t, e) {
|
|
1011
1011
|
const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = parseInt(t.toFixed(s).replace(".", "")), i = parseInt(e.toFixed(s).replace(".", ""));
|
|
1012
1012
|
return a % i / Math.pow(10, s);
|
|
1013
1013
|
}
|
|
@@ -1046,7 +1046,7 @@ var ps = _r((ys, yt) => {
|
|
|
1046
1046
|
inclusive: a.inclusive,
|
|
1047
1047
|
exact: !1,
|
|
1048
1048
|
message: a.message
|
|
1049
|
-
}), s.dirty()) : a.kind === "multipleOf" ?
|
|
1049
|
+
}), s.dirty()) : a.kind === "multipleOf" ? Br(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
|
|
1050
1050
|
code: u.not_multiple_of,
|
|
1051
1051
|
multipleOf: a.value,
|
|
1052
1052
|
message: a.message
|
|
@@ -2755,7 +2755,7 @@ var ps = _r((ys, yt) => {
|
|
|
2755
2755
|
typeName: y.ZodNaN,
|
|
2756
2756
|
..._(t)
|
|
2757
2757
|
});
|
|
2758
|
-
const
|
|
2758
|
+
const Hr = Symbol("zod_brand");
|
|
2759
2759
|
class gt extends w {
|
|
2760
2760
|
_parse(e) {
|
|
2761
2761
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
@@ -2845,16 +2845,16 @@ var ps = _r((ys, yt) => {
|
|
|
2845
2845
|
}
|
|
2846
2846
|
}) : ve.create();
|
|
2847
2847
|
}
|
|
2848
|
-
const
|
|
2848
|
+
const Wr = {
|
|
2849
2849
|
object: O.lazycreate
|
|
2850
2850
|
};
|
|
2851
2851
|
var y;
|
|
2852
2852
|
(function(t) {
|
|
2853
2853
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
2854
2854
|
})(y || (y = {}));
|
|
2855
|
-
const
|
|
2855
|
+
const Jr = (t, e = {
|
|
2856
2856
|
message: `Input not instance of ${t.name}`
|
|
2857
|
-
}) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create,
|
|
2857
|
+
}) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create, Yr = Xe.create, Gr = Y.create, Dt = Ne.create, Kr = oe.create, Xr = Ye.create, Qr = Re.create, en = Ae.create, tn = ve.create, rn = ae.create, nn = H.create, sn = Ge.create, an = $.create, on = O.create, dn = O.strictCreate, cn = Ce.create, un = rt.create, ln = Ie.create, fn = V.create, pn = Pe.create, hn = Ke.create, mn = de.create, yn = ye.create, gn = je.create, vn = Ze.create, _n = G.create, wn = $e.create, bn = _e.create, Tt = M.create, kn = D.create, xn = K.create, Sn = M.createWithPreprocess, Tn = Le.create, En = () => Mt().optional(), On = () => Ft().optional(), Nn = () => Dt().optional(), Rn = {
|
|
2858
2858
|
string: (t) => Z.create({ ...t, coerce: !0 }),
|
|
2859
2859
|
number: (t) => J.create({ ...t, coerce: !0 }),
|
|
2860
2860
|
boolean: (t) => Ne.create({
|
|
@@ -2863,14 +2863,14 @@ var ps = _r((ys, yt) => {
|
|
|
2863
2863
|
}),
|
|
2864
2864
|
bigint: (t) => Y.create({ ...t, coerce: !0 }),
|
|
2865
2865
|
date: (t) => oe.create({ ...t, coerce: !0 })
|
|
2866
|
-
},
|
|
2866
|
+
}, An = g;
|
|
2867
2867
|
var m = /* @__PURE__ */ Object.freeze({
|
|
2868
2868
|
__proto__: null,
|
|
2869
2869
|
defaultErrorMap: ge,
|
|
2870
|
-
setErrorMap:
|
|
2870
|
+
setErrorMap: xr,
|
|
2871
2871
|
getErrorMap: He,
|
|
2872
2872
|
makeIssue: We,
|
|
2873
|
-
EMPTY_PATH:
|
|
2873
|
+
EMPTY_PATH: Sr,
|
|
2874
2874
|
addIssueToContext: f,
|
|
2875
2875
|
ParseStatus: A,
|
|
2876
2876
|
INVALID: g,
|
|
@@ -2924,76 +2924,81 @@ var ps = _r((ys, yt) => {
|
|
|
2924
2924
|
ZodDefault: Me,
|
|
2925
2925
|
ZodCatch: Fe,
|
|
2926
2926
|
ZodNaN: Xe,
|
|
2927
|
-
BRAND:
|
|
2927
|
+
BRAND: Hr,
|
|
2928
2928
|
ZodBranded: gt,
|
|
2929
2929
|
ZodPipeline: Le,
|
|
2930
2930
|
ZodReadonly: De,
|
|
2931
2931
|
custom: $t,
|
|
2932
2932
|
Schema: w,
|
|
2933
2933
|
ZodSchema: w,
|
|
2934
|
-
late:
|
|
2934
|
+
late: Wr,
|
|
2935
2935
|
get ZodFirstPartyTypeKind() {
|
|
2936
2936
|
return y;
|
|
2937
2937
|
},
|
|
2938
|
-
coerce:
|
|
2939
|
-
any:
|
|
2940
|
-
array:
|
|
2941
|
-
bigint:
|
|
2938
|
+
coerce: Rn,
|
|
2939
|
+
any: tn,
|
|
2940
|
+
array: an,
|
|
2941
|
+
bigint: Gr,
|
|
2942
2942
|
boolean: Dt,
|
|
2943
|
-
date:
|
|
2944
|
-
discriminatedUnion:
|
|
2943
|
+
date: Kr,
|
|
2944
|
+
discriminatedUnion: un,
|
|
2945
2945
|
effect: Tt,
|
|
2946
|
-
enum:
|
|
2947
|
-
function:
|
|
2948
|
-
instanceof:
|
|
2949
|
-
intersection:
|
|
2950
|
-
lazy:
|
|
2951
|
-
literal:
|
|
2952
|
-
map:
|
|
2953
|
-
nan:
|
|
2954
|
-
nativeEnum:
|
|
2955
|
-
never:
|
|
2956
|
-
null:
|
|
2957
|
-
nullable:
|
|
2946
|
+
enum: _n,
|
|
2947
|
+
function: yn,
|
|
2948
|
+
instanceof: Jr,
|
|
2949
|
+
intersection: ln,
|
|
2950
|
+
lazy: gn,
|
|
2951
|
+
literal: vn,
|
|
2952
|
+
map: hn,
|
|
2953
|
+
nan: Yr,
|
|
2954
|
+
nativeEnum: wn,
|
|
2955
|
+
never: nn,
|
|
2956
|
+
null: en,
|
|
2957
|
+
nullable: xn,
|
|
2958
2958
|
number: Ft,
|
|
2959
|
-
object:
|
|
2960
|
-
oboolean:
|
|
2961
|
-
onumber:
|
|
2962
|
-
optional:
|
|
2963
|
-
ostring:
|
|
2964
|
-
pipeline:
|
|
2965
|
-
preprocess:
|
|
2966
|
-
promise:
|
|
2967
|
-
record:
|
|
2968
|
-
set:
|
|
2969
|
-
strictObject:
|
|
2959
|
+
object: on,
|
|
2960
|
+
oboolean: Nn,
|
|
2961
|
+
onumber: On,
|
|
2962
|
+
optional: kn,
|
|
2963
|
+
ostring: En,
|
|
2964
|
+
pipeline: Tn,
|
|
2965
|
+
preprocess: Sn,
|
|
2966
|
+
promise: bn,
|
|
2967
|
+
record: pn,
|
|
2968
|
+
set: mn,
|
|
2969
|
+
strictObject: dn,
|
|
2970
2970
|
string: Mt,
|
|
2971
|
-
symbol:
|
|
2971
|
+
symbol: Xr,
|
|
2972
2972
|
transformer: Tt,
|
|
2973
|
-
tuple:
|
|
2974
|
-
undefined:
|
|
2975
|
-
union:
|
|
2976
|
-
unknown:
|
|
2977
|
-
void:
|
|
2978
|
-
NEVER:
|
|
2973
|
+
tuple: fn,
|
|
2974
|
+
undefined: Qr,
|
|
2975
|
+
union: cn,
|
|
2976
|
+
unknown: rn,
|
|
2977
|
+
void: sn,
|
|
2978
|
+
NEVER: An,
|
|
2979
2979
|
ZodIssueCode: u,
|
|
2980
|
-
quotelessJson:
|
|
2980
|
+
quotelessJson: kr,
|
|
2981
2981
|
ZodError: P
|
|
2982
2982
|
});
|
|
2983
2983
|
const lt = m.object({
|
|
2984
2984
|
detail: m.string()
|
|
2985
|
+
}), Lt = m.object({
|
|
2986
|
+
error: m.string()
|
|
2985
2987
|
});
|
|
2986
|
-
function
|
|
2988
|
+
function Vt(t) {
|
|
2987
2989
|
if (!t)
|
|
2988
2990
|
return "Unknown error";
|
|
2989
2991
|
if (t instanceof Error) {
|
|
2990
2992
|
const e = lt.safeParse(t.cause);
|
|
2991
|
-
return e.success ? e.data.detail :
|
|
2993
|
+
return e.success ? e.data.detail : Cn(t.message);
|
|
2992
2994
|
}
|
|
2993
2995
|
if (typeof t == "object") {
|
|
2994
2996
|
const e = lt.safeParse(t);
|
|
2995
2997
|
if (e.success)
|
|
2996
2998
|
return e.data.detail;
|
|
2999
|
+
const r = Lt.safeParse(t);
|
|
3000
|
+
if (r.success)
|
|
3001
|
+
return r.data.error;
|
|
2997
3002
|
}
|
|
2998
3003
|
try {
|
|
2999
3004
|
return JSON.stringify(t);
|
|
@@ -3001,26 +3006,29 @@ var ps = _r((ys, yt) => {
|
|
|
3001
3006
|
return String(t);
|
|
3002
3007
|
}
|
|
3003
3008
|
}
|
|
3004
|
-
function
|
|
3005
|
-
const e =
|
|
3009
|
+
function Cn(t) {
|
|
3010
|
+
const e = In(t);
|
|
3006
3011
|
if (!e)
|
|
3007
3012
|
return t;
|
|
3008
3013
|
const r = lt.safeParse(e);
|
|
3009
|
-
|
|
3014
|
+
if (r.success)
|
|
3015
|
+
return r.data.detail;
|
|
3016
|
+
const n = Lt.safeParse(e);
|
|
3017
|
+
return n.success ? n.data.error : t;
|
|
3010
3018
|
}
|
|
3011
|
-
function
|
|
3019
|
+
function In(t) {
|
|
3012
3020
|
try {
|
|
3013
3021
|
return JSON.parse(t);
|
|
3014
3022
|
} catch {
|
|
3015
3023
|
return t;
|
|
3016
3024
|
}
|
|
3017
3025
|
}
|
|
3018
|
-
const
|
|
3026
|
+
const Pn = 1e10, jn = 1e3;
|
|
3019
3027
|
function ze(t, e) {
|
|
3020
3028
|
const r = t.map((n) => `"${n}"`).join(", ");
|
|
3021
3029
|
return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
|
|
3022
3030
|
}
|
|
3023
|
-
function
|
|
3031
|
+
function Zn(t = {}) {
|
|
3024
3032
|
let e = {};
|
|
3025
3033
|
function r(v) {
|
|
3026
3034
|
e = v;
|
|
@@ -3028,7 +3036,7 @@ var ps = _r((ys, yt) => {
|
|
|
3028
3036
|
let n = {};
|
|
3029
3037
|
function s(v) {
|
|
3030
3038
|
var T;
|
|
3031
|
-
n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n,
|
|
3039
|
+
n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n, _r);
|
|
3032
3040
|
}
|
|
3033
3041
|
let a;
|
|
3034
3042
|
function i(v) {
|
|
@@ -3046,11 +3054,11 @@ var ps = _r((ys, yt) => {
|
|
|
3046
3054
|
return R(T, N);
|
|
3047
3055
|
};
|
|
3048
3056
|
}
|
|
3049
|
-
const { maxRequestTime: o =
|
|
3057
|
+
const { maxRequestTime: o = jn } = t;
|
|
3050
3058
|
t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
|
|
3051
3059
|
let d = 0;
|
|
3052
3060
|
function c() {
|
|
3053
|
-
return d <=
|
|
3061
|
+
return d <= Pn ? ++d : d = 0;
|
|
3054
3062
|
}
|
|
3055
3063
|
const l = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
3056
3064
|
function S(v, ...T) {
|
|
@@ -3088,7 +3096,7 @@ var ps = _r((ys, yt) => {
|
|
|
3088
3096
|
const bt = new Proxy(Ve, {
|
|
3089
3097
|
get: (v, T, N) => T in v ? Reflect.get(v, T, N) : (E) => Ve(T, E)
|
|
3090
3098
|
}), kt = bt, Q = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Set();
|
|
3091
|
-
function
|
|
3099
|
+
function gr(v, T) {
|
|
3092
3100
|
var N;
|
|
3093
3101
|
if (!n.registerHandler)
|
|
3094
3102
|
throw ze(["registerHandler"], "register message listeners");
|
|
@@ -3098,7 +3106,7 @@ var ps = _r((ys, yt) => {
|
|
|
3098
3106
|
}
|
|
3099
3107
|
Q.has(v) || Q.set(v, /* @__PURE__ */ new Set()), (N = Q.get(v)) == null || N.add(T);
|
|
3100
3108
|
}
|
|
3101
|
-
function
|
|
3109
|
+
function vr(v, T) {
|
|
3102
3110
|
var N, E;
|
|
3103
3111
|
if (v === "*") {
|
|
3104
3112
|
st.delete(T);
|
|
@@ -3106,7 +3114,7 @@ var ps = _r((ys, yt) => {
|
|
|
3106
3114
|
}
|
|
3107
3115
|
(N = Q.get(v)) == null || N.delete(T), ((E = Q.get(v)) == null ? void 0 : E.size) === 0 && Q.delete(v);
|
|
3108
3116
|
}
|
|
3109
|
-
async function
|
|
3117
|
+
async function _r(v) {
|
|
3110
3118
|
var T, N;
|
|
3111
3119
|
if ((T = e.onReceive) == null || T.call(e, v), !("type" in v))
|
|
3112
3120
|
throw new Error("Message does not contain a type.");
|
|
@@ -3161,42 +3169,42 @@ var ps = _r((ys, yt) => {
|
|
|
3161
3169
|
requestProxy: q,
|
|
3162
3170
|
send: bt,
|
|
3163
3171
|
sendProxy: kt,
|
|
3164
|
-
addMessageListener:
|
|
3165
|
-
removeMessageListener:
|
|
3172
|
+
addMessageListener: gr,
|
|
3173
|
+
removeMessageListener: vr,
|
|
3166
3174
|
proxy: { send: kt, request: q },
|
|
3167
3175
|
_setDebugHooks: r
|
|
3168
3176
|
};
|
|
3169
3177
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return
|
|
3178
|
+
function $n(t) {
|
|
3179
|
+
return Zn(t);
|
|
3172
3180
|
}
|
|
3173
|
-
const
|
|
3174
|
-
function
|
|
3181
|
+
const zt = "[transport-id]";
|
|
3182
|
+
function Mn(t, e) {
|
|
3175
3183
|
const { transportId: r } = e;
|
|
3176
|
-
return r != null ? { [
|
|
3184
|
+
return r != null ? { [zt]: r, data: t } : t;
|
|
3177
3185
|
}
|
|
3178
|
-
function
|
|
3186
|
+
function Fn(t, e) {
|
|
3179
3187
|
const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
|
|
3180
3188
|
if (r != null && s != null)
|
|
3181
3189
|
throw new Error("Cannot use both `transportId` and `filter` at the same time");
|
|
3182
3190
|
let a = t;
|
|
3183
3191
|
if (r) {
|
|
3184
|
-
if (t[
|
|
3192
|
+
if (t[zt] !== r)
|
|
3185
3193
|
return [!0];
|
|
3186
3194
|
a = t.data;
|
|
3187
3195
|
}
|
|
3188
3196
|
return s === !1 ? [!0] : [!1, a];
|
|
3189
3197
|
}
|
|
3190
|
-
function
|
|
3198
|
+
function Dn(t, e = {}) {
|
|
3191
3199
|
const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
|
|
3192
3200
|
let o;
|
|
3193
3201
|
return {
|
|
3194
3202
|
send(d) {
|
|
3195
|
-
i.postMessage(
|
|
3203
|
+
i.postMessage(Mn(d, { transportId: r }));
|
|
3196
3204
|
},
|
|
3197
3205
|
registerHandler(d) {
|
|
3198
3206
|
o = (c) => {
|
|
3199
|
-
const l = c.data, [b, S] =
|
|
3207
|
+
const l = c.data, [b, S] = Fn(l, {
|
|
3200
3208
|
transportId: r,
|
|
3201
3209
|
filter: () => n == null ? void 0 : n(c)
|
|
3202
3210
|
});
|
|
@@ -3208,15 +3216,15 @@ var ps = _r((ys, yt) => {
|
|
|
3208
3216
|
}
|
|
3209
3217
|
};
|
|
3210
3218
|
}
|
|
3211
|
-
function
|
|
3212
|
-
return
|
|
3219
|
+
function Ln(t) {
|
|
3220
|
+
return Dn(self, t);
|
|
3213
3221
|
}
|
|
3214
|
-
function
|
|
3222
|
+
function qt(t, e) {
|
|
3215
3223
|
if (!t)
|
|
3216
3224
|
throw new Error(e);
|
|
3217
3225
|
}
|
|
3218
|
-
const
|
|
3219
|
-
class
|
|
3226
|
+
const Vn = "marimo-transport";
|
|
3227
|
+
class zn {
|
|
3220
3228
|
constructor(e) {
|
|
3221
3229
|
this.onMessage = e, this.started = !1, this.push = (r) => {
|
|
3222
3230
|
this.started ? this.onMessage(r) : this.buffer.push(r);
|
|
@@ -3228,7 +3236,7 @@ var ps = _r((ys, yt) => {
|
|
|
3228
3236
|
const be = {
|
|
3229
3237
|
NOOP: () => {
|
|
3230
3238
|
}
|
|
3231
|
-
},
|
|
3239
|
+
}, Ut = (t, e) => {
|
|
3232
3240
|
const r = `[${t}]`;
|
|
3233
3241
|
return {
|
|
3234
3242
|
debug: (...n) => e.debug(r, ...n),
|
|
@@ -3236,7 +3244,7 @@ var ps = _r((ys, yt) => {
|
|
|
3236
3244
|
warn: (...n) => e.warn(r, ...n),
|
|
3237
3245
|
error: (...n) => e.error(r, ...n),
|
|
3238
3246
|
trace: (...n) => e.trace(r, ...n),
|
|
3239
|
-
get: (n) =>
|
|
3247
|
+
get: (n) => Ut(`${t}.${n}`, e),
|
|
3240
3248
|
disabled: (n = !0) => n ? et : e
|
|
3241
3249
|
};
|
|
3242
3250
|
}, Qe = {
|
|
@@ -3255,7 +3263,7 @@ var ps = _r((ys, yt) => {
|
|
|
3255
3263
|
trace: (...t) => {
|
|
3256
3264
|
console.trace(...t);
|
|
3257
3265
|
},
|
|
3258
|
-
get: (t) =>
|
|
3266
|
+
get: (t) => Ut(t, Qe),
|
|
3259
3267
|
disabled: (t = !0) => t ? et : Qe
|
|
3260
3268
|
}, et = {
|
|
3261
3269
|
debug: () => be.NOOP,
|
|
@@ -3266,28 +3274,28 @@ var ps = _r((ys, yt) => {
|
|
|
3266
3274
|
get: () => et,
|
|
3267
3275
|
disabled: () => et
|
|
3268
3276
|
};
|
|
3269
|
-
function
|
|
3277
|
+
function qn() {
|
|
3270
3278
|
return typeof window < "u" && window.Logger || Qe;
|
|
3271
3279
|
}
|
|
3272
|
-
const W =
|
|
3280
|
+
const W = qn(), Un = [
|
|
3273
3281
|
"pip",
|
|
3274
3282
|
"uv",
|
|
3275
3283
|
"rye",
|
|
3276
3284
|
"poetry",
|
|
3277
3285
|
"pixi"
|
|
3278
|
-
],
|
|
3286
|
+
], Bt = [
|
|
3279
3287
|
"normal",
|
|
3280
3288
|
"compact",
|
|
3281
3289
|
"medium",
|
|
3282
3290
|
"full",
|
|
3283
3291
|
"columns"
|
|
3284
|
-
],
|
|
3292
|
+
], Ht = [
|
|
3285
3293
|
"auto",
|
|
3286
3294
|
"native",
|
|
3287
3295
|
"polars",
|
|
3288
3296
|
"lazy-polars",
|
|
3289
3297
|
"pandas"
|
|
3290
|
-
],
|
|
3298
|
+
], Bn = m.object({
|
|
3291
3299
|
completion: m.object({
|
|
3292
3300
|
activate_on_typing: m.boolean().default(!0),
|
|
3293
3301
|
copilot: m.union([m.boolean(), m.enum(["github", "codeium", "custom"])]).default(!1).transform((t) => t === !0 ? "github" : t),
|
|
@@ -3310,7 +3318,7 @@ var ps = _r((ys, yt) => {
|
|
|
3310
3318
|
on_cell_change: m.enum(["lazy", "autorun"]).default("autorun"),
|
|
3311
3319
|
auto_reload: m.enum(["off", "lazy", "autorun"]).default("off"),
|
|
3312
3320
|
watcher_on_save: m.enum(["lazy", "autorun"]).default("lazy"),
|
|
3313
|
-
default_sql_output: m.enum(
|
|
3321
|
+
default_sql_output: m.enum(Ht).default("auto")
|
|
3314
3322
|
}).passthrough().default({}),
|
|
3315
3323
|
display: m.object({
|
|
3316
3324
|
theme: m.enum(["light", "dark", "system"]).default("light"),
|
|
@@ -3318,10 +3326,10 @@ var ps = _r((ys, yt) => {
|
|
|
3318
3326
|
cell_output: m.enum(["above", "below"]).default("above"),
|
|
3319
3327
|
dataframes: m.enum(["rich", "plain"]).default("rich"),
|
|
3320
3328
|
default_table_page_size: m.number().default(10),
|
|
3321
|
-
default_width: m.enum(
|
|
3329
|
+
default_width: m.enum(Bt).default("medium").transform((t) => t === "normal" ? "compact" : t)
|
|
3322
3330
|
}).passthrough().default({}),
|
|
3323
3331
|
package_management: m.object({
|
|
3324
|
-
manager: m.enum(
|
|
3332
|
+
manager: m.enum(Un).default("pip")
|
|
3325
3333
|
}).passthrough().default({ manager: "pip" }),
|
|
3326
3334
|
ai: m.object({
|
|
3327
3335
|
rules: m.string().default(""),
|
|
@@ -3356,26 +3364,26 @@ var ps = _r((ys, yt) => {
|
|
|
3356
3364
|
rules: "",
|
|
3357
3365
|
open_ai: {}
|
|
3358
3366
|
}
|
|
3359
|
-
}),
|
|
3367
|
+
}), Hn = m.string(), Wn = m.enum(Ht).default("auto");
|
|
3360
3368
|
m.object({
|
|
3361
|
-
width: m.enum(
|
|
3362
|
-
app_title:
|
|
3369
|
+
width: m.enum(Bt).default("medium").transform((t) => t === "normal" ? "compact" : t),
|
|
3370
|
+
app_title: Hn.nullish(),
|
|
3363
3371
|
css_file: m.string().nullish(),
|
|
3364
3372
|
html_head_file: m.string().nullish(),
|
|
3365
3373
|
auto_download: m.array(m.enum(["html", "markdown", "ipynb"])).default([]),
|
|
3366
|
-
sql_output:
|
|
3374
|
+
sql_output: Wn
|
|
3367
3375
|
}).default({ width: "medium", auto_download: [] });
|
|
3368
|
-
function
|
|
3369
|
-
return
|
|
3376
|
+
function Jn() {
|
|
3377
|
+
return Bn.parse({});
|
|
3370
3378
|
}
|
|
3371
|
-
var
|
|
3379
|
+
var Yn = Object.defineProperty, x = (t, e) => Yn(t, "name", { value: e, configurable: !0 }), Wt = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
|
|
3372
3380
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
3373
3381
|
throw new Error('Dynamic require of "' + t + '" is not supported');
|
|
3374
3382
|
});
|
|
3375
|
-
function
|
|
3383
|
+
function Jt(t) {
|
|
3376
3384
|
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
3377
3385
|
}
|
|
3378
|
-
x(
|
|
3386
|
+
x(Jt, "_isNumber");
|
|
3379
3387
|
function X(t) {
|
|
3380
3388
|
return t.charAt(0).toUpperCase() + t.substring(1);
|
|
3381
3389
|
}
|
|
@@ -3386,7 +3394,7 @@ var ps = _r((ys, yt) => {
|
|
|
3386
3394
|
};
|
|
3387
3395
|
}
|
|
3388
3396
|
x(nt, "_getter");
|
|
3389
|
-
var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"],
|
|
3397
|
+
var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Gn = ["args"], Kn = ["evalOrigin"], qe = le.concat(fe, pe, Gn, Kn);
|
|
3390
3398
|
function j(t) {
|
|
3391
3399
|
if (t) for (var e = 0; e < qe.length; e++) t[qe[e]] !== void 0 && this["set" + X(qe[e])](t[qe[e]]);
|
|
3392
3400
|
}
|
|
@@ -3419,7 +3427,7 @@ var ps = _r((ys, yt) => {
|
|
|
3419
3427
|
var te;
|
|
3420
3428
|
for (re = 0; re < fe.length; re++) j.prototype["get" + X(fe[re])] = nt(fe[re]), j.prototype["set" + X(fe[re])] = /* @__PURE__ */ function(t) {
|
|
3421
3429
|
return function(e) {
|
|
3422
|
-
if (!
|
|
3430
|
+
if (!Jt(e)) throw new TypeError(t + " must be a Number");
|
|
3423
3431
|
this[t] = Number(e);
|
|
3424
3432
|
};
|
|
3425
3433
|
}(fe[re]);
|
|
@@ -3430,7 +3438,7 @@ var ps = _r((ys, yt) => {
|
|
|
3430
3438
|
};
|
|
3431
3439
|
}(pe[ne]);
|
|
3432
3440
|
var ne, it = j;
|
|
3433
|
-
function
|
|
3441
|
+
function Yt() {
|
|
3434
3442
|
var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
|
|
3435
3443
|
return { parse: x(function(r) {
|
|
3436
3444
|
if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
|
|
@@ -3464,52 +3472,52 @@ var ps = _r((ys, yt) => {
|
|
|
3464
3472
|
}, this);
|
|
3465
3473
|
}, "ErrorStackParser$$parseFFOrSafari") };
|
|
3466
3474
|
}
|
|
3467
|
-
x(
|
|
3468
|
-
var
|
|
3475
|
+
x(Yt, "ErrorStackParser");
|
|
3476
|
+
var Xn = new Yt(), Qn = Xn, z = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Gt = z && typeof yt < "u" && typeof yt.exports < "u" && typeof Wt < "u" && typeof __dirname < "u", es = z && !Gt, ts = typeof Deno < "u", Kt = !z && !ts, rs = Kt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", ns = Kt && typeof importScripts == "function" && typeof self == "object";
|
|
3469
3477
|
typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
|
|
3470
|
-
var
|
|
3478
|
+
var Xt, ft, Qt, Et, vt;
|
|
3471
3479
|
async function _t() {
|
|
3472
|
-
if (!z || (
|
|
3480
|
+
if (!z || (Xt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Et = await import("./__vite-browser-external-CPvbk0mb.js"), vt = await import("./__vite-browser-external-CPvbk0mb.js"), Qt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, ft = await import("./__vite-browser-external-CPvbk0mb.js"), wt = ft.sep, typeof Wt < "u")) return;
|
|
3473
3481
|
let t = Et, e = await import("./__vite-browser-external-CPvbk0mb.js"), r = await import("./__vite-browser-external-CPvbk0mb.js"), n = await import("./__vite-browser-external-CPvbk0mb.js"), s = { fs: t, crypto: e, ws: r, child_process: n };
|
|
3474
3482
|
globalThis.require = function(a) {
|
|
3475
3483
|
return s[a];
|
|
3476
3484
|
};
|
|
3477
3485
|
}
|
|
3478
3486
|
x(_t, "initNodeModules");
|
|
3479
|
-
function
|
|
3487
|
+
function er(t, e) {
|
|
3480
3488
|
return ft.resolve(e || ".", t);
|
|
3481
3489
|
}
|
|
3482
|
-
x(
|
|
3483
|
-
function
|
|
3490
|
+
x(er, "node_resolvePath");
|
|
3491
|
+
function tr(t, e) {
|
|
3484
3492
|
return e === void 0 && (e = location), new URL(t, e).toString();
|
|
3485
3493
|
}
|
|
3486
|
-
x(
|
|
3494
|
+
x(tr, "browser_resolvePath");
|
|
3487
3495
|
var pt;
|
|
3488
|
-
z ? pt =
|
|
3496
|
+
z ? pt = er : pt = tr;
|
|
3489
3497
|
var wt;
|
|
3490
3498
|
z || (wt = "/");
|
|
3491
|
-
function
|
|
3499
|
+
function rr(t, e) {
|
|
3492
3500
|
return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: vt.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
|
|
3493
3501
|
}
|
|
3494
|
-
x(
|
|
3495
|
-
function
|
|
3502
|
+
x(rr, "node_getBinaryResponse");
|
|
3503
|
+
function nr(t, e) {
|
|
3496
3504
|
let r = new URL(t, location);
|
|
3497
3505
|
return { response: fetch(r, e ? { integrity: e } : {}) };
|
|
3498
3506
|
}
|
|
3499
|
-
x(
|
|
3507
|
+
x(nr, "browser_getBinaryResponse");
|
|
3500
3508
|
var tt;
|
|
3501
|
-
z ? tt =
|
|
3502
|
-
async function
|
|
3509
|
+
z ? tt = rr : tt = nr;
|
|
3510
|
+
async function sr(t, e) {
|
|
3503
3511
|
let { response: r, binary: n } = tt(t, e);
|
|
3504
3512
|
if (n) return n;
|
|
3505
3513
|
let s = await r;
|
|
3506
3514
|
if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
|
|
3507
3515
|
return new Uint8Array(await s.arrayBuffer());
|
|
3508
3516
|
}
|
|
3509
|
-
x(
|
|
3517
|
+
x(sr, "loadBinaryFile");
|
|
3510
3518
|
var Ue;
|
|
3511
|
-
if (
|
|
3512
|
-
else if (
|
|
3519
|
+
if (rs) Ue = x(async (t) => await import(t), "loadScript");
|
|
3520
|
+
else if (ns) Ue = x(async (t) => {
|
|
3513
3521
|
try {
|
|
3514
3522
|
globalThis.importScripts(t);
|
|
3515
3523
|
} catch (e) {
|
|
@@ -3517,30 +3525,30 @@ var ps = _r((ys, yt) => {
|
|
|
3517
3525
|
else throw e;
|
|
3518
3526
|
}
|
|
3519
3527
|
}, "loadScript");
|
|
3520
|
-
else if (z) Ue =
|
|
3528
|
+
else if (z) Ue = ar;
|
|
3521
3529
|
else throw new Error("Cannot determine runtime environment");
|
|
3522
|
-
async function sr(t) {
|
|
3523
|
-
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Xt.runInThisContext(await (await fetch(t)).text()) : await import(Kt.pathToFileURL(t).href);
|
|
3524
|
-
}
|
|
3525
|
-
x(sr, "nodeLoadScript");
|
|
3526
3530
|
async function ar(t) {
|
|
3531
|
+
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Qt.runInThisContext(await (await fetch(t)).text()) : await import(Xt.pathToFileURL(t).href);
|
|
3532
|
+
}
|
|
3533
|
+
x(ar, "nodeLoadScript");
|
|
3534
|
+
async function ir(t) {
|
|
3527
3535
|
if (z) {
|
|
3528
3536
|
await _t();
|
|
3529
3537
|
let e = await vt.readFile(t, { encoding: "utf8" });
|
|
3530
3538
|
return JSON.parse(e);
|
|
3531
3539
|
} else return await (await fetch(t)).json();
|
|
3532
3540
|
}
|
|
3533
|
-
x(
|
|
3534
|
-
async function
|
|
3535
|
-
if (
|
|
3541
|
+
x(ir, "loadLockFile");
|
|
3542
|
+
async function or() {
|
|
3543
|
+
if (Gt) return __dirname;
|
|
3536
3544
|
let t;
|
|
3537
3545
|
try {
|
|
3538
3546
|
throw new Error();
|
|
3539
3547
|
} catch (n) {
|
|
3540
3548
|
t = n;
|
|
3541
3549
|
}
|
|
3542
|
-
let e =
|
|
3543
|
-
if (z && !e.startsWith("file://") && (e = `file://${e}`),
|
|
3550
|
+
let e = Qn.parse(t)[0].fileName;
|
|
3551
|
+
if (z && !e.startsWith("file://") && (e = `file://${e}`), es) {
|
|
3544
3552
|
let n = await import("./__vite-browser-external-CPvbk0mb.js");
|
|
3545
3553
|
return (await import("./__vite-browser-external-CPvbk0mb.js")).fileURLToPath(n.dirname(e));
|
|
3546
3554
|
}
|
|
@@ -3548,8 +3556,8 @@ var ps = _r((ys, yt) => {
|
|
|
3548
3556
|
if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
|
|
3549
3557
|
return e.slice(0, r);
|
|
3550
3558
|
}
|
|
3551
|
-
x(
|
|
3552
|
-
function
|
|
3559
|
+
x(or, "calculateDirname");
|
|
3560
|
+
function dr(t) {
|
|
3553
3561
|
let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
|
|
3554
3562
|
if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
|
|
3555
3563
|
return r.mount.apply(null, arguments);
|
|
@@ -3577,7 +3585,7 @@ var ps = _r((ys, yt) => {
|
|
|
3577
3585
|
}
|
|
3578
3586
|
return { type: "local", entries: i };
|
|
3579
3587
|
}, getRemoteSet: async (a) => {
|
|
3580
|
-
let i = /* @__PURE__ */ Object.create(null), o = await
|
|
3588
|
+
let i = /* @__PURE__ */ Object.create(null), o = await ss(a.opts.fileSystemHandle);
|
|
3581
3589
|
for (let [d, c] of o) d !== "." && (i[n.join2(a.mountpoint, d)] = { timestamp: c.kind === "file" ? new Date((await c.getFile()).lastModified) : /* @__PURE__ */ new Date(), mode: c.kind === "file" ? s.FILE_MODE : s.DIR_MODE });
|
|
3582
3590
|
return { type: "remote", entries: i, handles: o };
|
|
3583
3591
|
}, loadLocalEntry: (a) => {
|
|
@@ -3639,8 +3647,8 @@ var ps = _r((ys, yt) => {
|
|
|
3639
3647
|
} };
|
|
3640
3648
|
t.FS.filesystems.NATIVEFS_ASYNC = s;
|
|
3641
3649
|
}
|
|
3642
|
-
x(
|
|
3643
|
-
var
|
|
3650
|
+
x(dr, "initializeNativeFS");
|
|
3651
|
+
var ss = x(async (t) => {
|
|
3644
3652
|
let e = [];
|
|
3645
3653
|
async function r(s) {
|
|
3646
3654
|
for await (let a of s.values()) e.push(a), a.kind === "directory" && await r(a);
|
|
@@ -3654,14 +3662,14 @@ var ps = _r((ys, yt) => {
|
|
|
3654
3662
|
}
|
|
3655
3663
|
return n;
|
|
3656
3664
|
}, "getFsHandles");
|
|
3657
|
-
function
|
|
3658
|
-
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun:
|
|
3665
|
+
function cr(t) {
|
|
3666
|
+
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: hr(t), quit(r, n) {
|
|
3659
3667
|
throw e.exited = { status: r, toThrow: n }, n;
|
|
3660
|
-
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm:
|
|
3668
|
+
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: mr(t.indexURL) };
|
|
3661
3669
|
return e;
|
|
3662
3670
|
}
|
|
3663
|
-
x(
|
|
3664
|
-
function
|
|
3671
|
+
x(cr, "createSettings");
|
|
3672
|
+
function ur(t) {
|
|
3665
3673
|
return function(e) {
|
|
3666
3674
|
let r = "/";
|
|
3667
3675
|
try {
|
|
@@ -3672,14 +3680,14 @@ var ps = _r((ys, yt) => {
|
|
|
3672
3680
|
e.FS.chdir(t);
|
|
3673
3681
|
};
|
|
3674
3682
|
}
|
|
3675
|
-
x(
|
|
3676
|
-
function
|
|
3683
|
+
x(ur, "createHomeDirectory");
|
|
3684
|
+
function lr(t) {
|
|
3677
3685
|
return function(e) {
|
|
3678
3686
|
Object.assign(e.ENV, t);
|
|
3679
3687
|
};
|
|
3680
3688
|
}
|
|
3681
|
-
x(
|
|
3682
|
-
function
|
|
3689
|
+
x(lr, "setEnvironment");
|
|
3690
|
+
function fr(t) {
|
|
3683
3691
|
return t ? [async (e) => {
|
|
3684
3692
|
e.addRunDependency("fsInitHook");
|
|
3685
3693
|
try {
|
|
@@ -3689,9 +3697,9 @@ var ps = _r((ys, yt) => {
|
|
|
3689
3697
|
}
|
|
3690
3698
|
}] : [];
|
|
3691
3699
|
}
|
|
3692
|
-
x(
|
|
3693
|
-
function
|
|
3694
|
-
let e =
|
|
3700
|
+
x(fr, "callFsInitHook");
|
|
3701
|
+
function pr(t) {
|
|
3702
|
+
let e = sr(t);
|
|
3695
3703
|
return async (r) => {
|
|
3696
3704
|
let n = r._py_version_major(), s = r._py_version_minor();
|
|
3697
3705
|
r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
|
|
@@ -3705,13 +3713,13 @@ var ps = _r((ys, yt) => {
|
|
|
3705
3713
|
}
|
|
3706
3714
|
};
|
|
3707
3715
|
}
|
|
3708
|
-
x(
|
|
3709
|
-
function
|
|
3716
|
+
x(pr, "installStdlib");
|
|
3717
|
+
function hr(t) {
|
|
3710
3718
|
let e;
|
|
3711
|
-
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...
|
|
3719
|
+
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...fr(t.fsInit), pr(e), ur(t.env.HOME), lr(t.env), dr];
|
|
3712
3720
|
}
|
|
3713
|
-
x(
|
|
3714
|
-
function
|
|
3721
|
+
x(hr, "getFileSystemInitializationFuncs");
|
|
3722
|
+
function mr(t) {
|
|
3715
3723
|
if (typeof WasmOffsetConverter < "u") return;
|
|
3716
3724
|
let { binary: e, response: r } = tt(t + "pyodide.asm.wasm");
|
|
3717
3725
|
return function(n, s) {
|
|
@@ -3727,17 +3735,17 @@ var ps = _r((ys, yt) => {
|
|
|
3727
3735
|
}(), {};
|
|
3728
3736
|
};
|
|
3729
3737
|
}
|
|
3730
|
-
x(
|
|
3738
|
+
x(mr, "getInstantiateWasmFunc");
|
|
3731
3739
|
var ht = "0.27.5";
|
|
3732
3740
|
async function mt(t = {}) {
|
|
3733
3741
|
var e, r;
|
|
3734
3742
|
await _t();
|
|
3735
|
-
let n = t.indexURL || await
|
|
3743
|
+
let n = t.indexURL || await or();
|
|
3736
3744
|
n = pt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
|
|
3737
3745
|
let s = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [], env: {}, packageCacheDir: n, packages: [], enableRunUntilComplete: !1, checkAPIVersion: !0, BUILD_ID: "bd0388b62e760f8ba04185eb443fec955f25434f49c7b951efe5b1f792dbe5d4" }, a = Object.assign(s, t);
|
|
3738
3746
|
(e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
|
|
3739
|
-
let i =
|
|
3740
|
-
if (o.lockFilePromise =
|
|
3747
|
+
let i = cr(a), o = i.API;
|
|
3748
|
+
if (o.lockFilePromise = ir(a.lockFileURL), typeof _createPyodideModule != "function") {
|
|
3741
3749
|
let S = `${a.indexURL}pyodide.asm.js`;
|
|
3742
3750
|
await Ue(S);
|
|
3743
3751
|
}
|
|
@@ -3818,7 +3826,7 @@ var ps = _r((ys, yt) => {
|
|
|
3818
3826
|
});
|
|
3819
3827
|
});
|
|
3820
3828
|
}
|
|
3821
|
-
class
|
|
3829
|
+
class as {
|
|
3822
3830
|
constructor() {
|
|
3823
3831
|
this.spans = [];
|
|
3824
3832
|
}
|
|
@@ -3860,15 +3868,15 @@ var ps = _r((ys, yt) => {
|
|
|
3860
3868
|
logSpans() {
|
|
3861
3869
|
}
|
|
3862
3870
|
}
|
|
3863
|
-
const he = new
|
|
3871
|
+
const he = new as();
|
|
3864
3872
|
globalThis.t = he;
|
|
3865
|
-
const
|
|
3866
|
-
class
|
|
3873
|
+
const is = !1;
|
|
3874
|
+
class os {
|
|
3867
3875
|
constructor() {
|
|
3868
3876
|
this.pyodide = null;
|
|
3869
3877
|
}
|
|
3870
3878
|
get requirePyodide() {
|
|
3871
|
-
return
|
|
3879
|
+
return qt(this.pyodide, "Pyodide not loaded"), this.pyodide;
|
|
3872
3880
|
}
|
|
3873
3881
|
async bootstrap(e) {
|
|
3874
3882
|
return await this.loadPyodideAndPackages(e);
|
|
@@ -3888,7 +3896,7 @@ var ps = _r((ys, yt) => {
|
|
|
3888
3896
|
"narwhals",
|
|
3889
3897
|
"packaging"
|
|
3890
3898
|
],
|
|
3891
|
-
_makeSnapshot:
|
|
3899
|
+
_makeSnapshot: is,
|
|
3892
3900
|
lockFileURL: `https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,
|
|
3893
3901
|
// Without this, this fails in Firefox with
|
|
3894
3902
|
// `Could not extract indexURL path from pyodide module`
|
|
@@ -3977,7 +3985,7 @@ ${e}`;
|
|
|
3977
3985
|
}), a.end();
|
|
3978
3986
|
}
|
|
3979
3987
|
}
|
|
3980
|
-
class
|
|
3988
|
+
class ds extends os {
|
|
3981
3989
|
async bootstrap(e) {
|
|
3982
3990
|
return await super.bootstrap(e);
|
|
3983
3991
|
}
|
|
@@ -4000,50 +4008,50 @@ ${e}`;
|
|
|
4000
4008
|
code: e.code,
|
|
4001
4009
|
filename: e.filename,
|
|
4002
4010
|
onMessage: e.onMessage,
|
|
4003
|
-
userConfig:
|
|
4011
|
+
userConfig: Jn()
|
|
4004
4012
|
});
|
|
4005
4013
|
}
|
|
4006
4014
|
}
|
|
4007
|
-
const
|
|
4008
|
-
function
|
|
4009
|
-
return t.includes("dev") &&
|
|
4015
|
+
const cs = !1;
|
|
4016
|
+
function us(t) {
|
|
4017
|
+
return t.includes("dev") && cs ? "dev" : `v${ht}`;
|
|
4010
4018
|
}
|
|
4011
|
-
async function
|
|
4012
|
-
const t =
|
|
4019
|
+
async function ls() {
|
|
4020
|
+
const t = ps(), e = us(t);
|
|
4013
4021
|
try {
|
|
4014
|
-
self.controller = new
|
|
4022
|
+
self.controller = new ds(), self.pyodide = await self.controller.bootstrap({
|
|
4015
4023
|
version: t,
|
|
4016
4024
|
pyodideVersion: e
|
|
4017
4025
|
});
|
|
4018
4026
|
} catch (r) {
|
|
4019
4027
|
W.error("Error bootstrapping", r), we.send.initializedError({
|
|
4020
|
-
error:
|
|
4028
|
+
error: Vt(r)
|
|
4021
4029
|
});
|
|
4022
4030
|
}
|
|
4023
4031
|
}
|
|
4024
|
-
const Be =
|
|
4032
|
+
const Be = ls(), yr = new zn(
|
|
4025
4033
|
(t) => {
|
|
4026
4034
|
we.send.kernelMessage({ message: t });
|
|
4027
4035
|
}
|
|
4028
|
-
), Rt = new
|
|
4036
|
+
), Rt = new br(), fs = {
|
|
4029
4037
|
/**
|
|
4030
4038
|
* Start the session
|
|
4031
4039
|
*/
|
|
4032
4040
|
startSession: async (t) => {
|
|
4033
4041
|
await Be;
|
|
4034
4042
|
try {
|
|
4035
|
-
|
|
4043
|
+
qt(self.controller, "Controller not loaded");
|
|
4036
4044
|
const e = await self.controller.mountFilesystem({
|
|
4037
4045
|
code: t.code,
|
|
4038
4046
|
filename: `app-${t.appId}.py`
|
|
4039
4047
|
}), r = await self.controller.startSession({
|
|
4040
4048
|
...e,
|
|
4041
|
-
onMessage:
|
|
4049
|
+
onMessage: yr.push
|
|
4042
4050
|
});
|
|
4043
4051
|
Rt.resolve(r), we.send.initialized({});
|
|
4044
4052
|
} catch (e) {
|
|
4045
4053
|
we.send.initializedError({
|
|
4046
|
-
error:
|
|
4054
|
+
error: Vt(e)
|
|
4047
4055
|
});
|
|
4048
4056
|
}
|
|
4049
4057
|
},
|
|
@@ -4074,18 +4082,18 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
|
|
|
4074
4082
|
);
|
|
4075
4083
|
return typeof a == "string" ? JSON.parse(a) : a;
|
|
4076
4084
|
}
|
|
4077
|
-
}, we =
|
|
4078
|
-
transport:
|
|
4079
|
-
transportId:
|
|
4085
|
+
}, we = $n({
|
|
4086
|
+
transport: Ln({
|
|
4087
|
+
transportId: Vn
|
|
4080
4088
|
}),
|
|
4081
|
-
requestHandler:
|
|
4089
|
+
requestHandler: fs
|
|
4082
4090
|
});
|
|
4083
4091
|
we.send("ready", {});
|
|
4084
4092
|
we.addMessageListener("consumerReady", async () => {
|
|
4085
|
-
await Be,
|
|
4093
|
+
await Be, yr.start();
|
|
4086
4094
|
});
|
|
4087
|
-
function
|
|
4095
|
+
function ps() {
|
|
4088
4096
|
return self.name;
|
|
4089
4097
|
}
|
|
4090
4098
|
});
|
|
4091
|
-
export default
|
|
4099
|
+
export default hs();
|