@marimo-team/islands 0.13.11-dev3 → 0.13.11-dev30
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-USp92iy8.js → ConnectedDataExplorerComponent-D3RBGKI8.js} +2 -2
- package/dist/{VegaLite-BTxG75R7.js → VegaLite-DR71BlxV.js} +3 -3
- package/dist/{_baseUniq-KXqcZE1r.js → _baseUniq-DejRO9BL.js} +54 -54
- package/dist/{any-language-editor-BSTu-Quf.js → any-language-editor-80z78Iv5.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-Y-6M9D6d.js → architectureDiagram-IEHRJDOE-D6Xy5ULa.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-BvJ81ptn.js → blockDiagram-JOT3LUYC-w_o5498j.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-DczhTE0C.js → c4Diagram-VJAJSXHY-B4kROMMq.js} +2 -2
- package/dist/{channel-CzXlDBP9.js → channel-CG759eX7.js} +1 -1
- package/dist/{chunk-4BMEZGHF-CQEbzKUS.js → chunk-4BMEZGHF-BgT_1pyR.js} +1 -1
- package/dist/{chunk-A2AXSNBT-eVhLc-rs.js → chunk-A2AXSNBT-BQoLq6yr.js} +2 -2
- package/dist/{chunk-AEK57VVT-Dfgm7pC5.js → chunk-AEK57VVT-WyWko15X.js} +2 -2
- package/dist/{chunk-D6G4REZN-DAH1zN26.js → chunk-D6G4REZN-B28MQghc.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-DpAwfDPF.js → chunk-RZ5BOZE2-D1Kw_TtP.js} +1 -1
- package/dist/{chunk-XZIHB7SX-9HFpABOz.js → chunk-XZIHB7SX-Cy_McmPE.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-DLqsRvpf.js → classDiagram-GIVACNV2-C0SVAR7F.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DLqsRvpf.js → classDiagram-v2-COTLJTTW-C0SVAR7F.js} +2 -2
- package/dist/{clone-CG7vLLmu.js → clone-BYDn9vU4.js} +1 -1
- package/dist/{dagre-OKDRZEBW-DHsnUTVw.js → dagre-OKDRZEBW-Cwkcdz2q.js} +6 -6
- package/dist/{data-editor-C-GgxO9H.js → data-editor-C4OhSL9T.js} +1 -1
- package/dist/{diagram-SSKATNLV-Bmrgr45e.js → diagram-SSKATNLV-VyBQU9rW.js} +3 -3
- package/dist/{diagram-VNBRO52H-DHH5q1IV.js → diagram-VNBRO52H-ChvvMlqc.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-CP78xDHD.js → erDiagram-Q7BY3M3F-DO4lp2xY.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-2GeiVHdR.js → flowDiagram-4HSFHLVR-CoG-yKNm.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-D_MVC5sh.js → ganttDiagram-APWFNJXF-DoOXLJ5_.js} +55 -55
- package/dist/{gitGraphDiagram-7IBYFJ6S-bw4KAyFL.js → gitGraphDiagram-7IBYFJ6S-sgznfiFD.js} +4 -4
- package/dist/{graph-CdMu5g_Q.js → graph-DwopZ4yj.js} +3 -3
- package/dist/{index-CR-YmDAD.js → index-GMqPIe4T.js} +1 -1
- package/dist/{index-D0ZAcE0L.js → index-lrUzu1Hm.js} +3 -3
- package/dist/{index-B9l8Z-Av.js → index-m4hg6DFl.js} +1 -1
- package/dist/{index-Cc9QCUYT.js → index-yx7-vKlY.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-CEw0fORh.js → infoDiagram-PH2N3AL5-Dflgmbge.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-LBrVl0fT.js → journeyDiagram-U35MCT3I-CE0B1c_U.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-BJR6gba-.js → kanban-definition-NDS4AKOZ-DYWeTeqa.js} +1 -1
- package/dist/{layout-CDMOEuLe.js → layout-D7pzYoS1.js} +51 -51
- package/dist/{linear-BpI8e45O.js → linear-RkIPJ3n0.js} +32 -32
- package/dist/{main-DSNiO9Os.js → main-Bm93qTyH.js} +31437 -31027
- package/dist/main.js +1 -1
- package/dist/{mermaid-CHAXWBq7.js → mermaid-FqBbojc3.js} +28 -28
- package/dist/min-Csc_I1-u.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-Bbj9grNR.js → mindmap-definition-ALO5MXBD-DVa8Ezuw.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-BIl29lI7.js → pieDiagram-IB7DONF6-CTxiA6kk.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-BcTjj3GA.js → quadrantDiagram-7GDLP6J5-AUcmgMCP.js} +2 -2
- package/dist/{radar-MK3ICKWK-Bb_7gec9.js → radar-MK3ICKWK-DUeZ2fif.js} +11 -11
- package/dist/{react-plotly-fIHR7egR.js → react-plotly-BU5LOTee.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-BzCTK4z0.js → requirementDiagram-KVF5MWMF-Dof6lD7O.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD--uaI539J.js → sankeyDiagram-QLVOVGJD-Dmy6oRXf.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-DEAgKh-E.js → sequenceDiagram-X6HHIX6F-D6dxdSmM.js} +3 -3
- package/dist/{slides-component-kw4L_Wiw.js → slides-component-2ww8bGnx.js} +1 -1
- package/dist/{stateDiagram-DGXRK772-Cp3bI9bu.js → stateDiagram-DGXRK772-OMLVr40m.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-BJnGwvX7.js → stateDiagram-v2-YXO3MK2T-DjHTCK9p.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-D43WBnQ-.js → time-CgO6qcLS.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-DFWVg6Zw.js → timeline-definition-BDJGKUSR-CrIpIjws.js} +1 -1
- package/dist/{vega-component-CzTU0Oww.js → vega-component-H12RRdfx.js} +2 -2
- package/dist/{xychartDiagram-VJFVF3MP-CGjMqGc7.js → xychartDiagram-VJFVF3MP-DSW_CYTz.js} +2 -2
- package/package.json +2 -2
- package/dist/min-FCyEdcCq.js +0 -85
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var hr = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
|
|
2
|
+
var ns = hr((is, gt) => {
|
|
3
3
|
var b;
|
|
4
4
|
(function(t) {
|
|
5
5
|
t.assertEqual = (s) => s;
|
|
@@ -36,14 +36,14 @@ var rs = pr((as, yt) => {
|
|
|
36
36
|
}
|
|
37
37
|
t.joinValues = n, t.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
|
|
38
38
|
})(b || (b = {}));
|
|
39
|
-
var
|
|
39
|
+
var it;
|
|
40
40
|
(function(t) {
|
|
41
41
|
t.mergeShapes = (e, r) => ({
|
|
42
42
|
...e,
|
|
43
43
|
...r
|
|
44
44
|
// second overwrites first
|
|
45
45
|
});
|
|
46
|
-
})(
|
|
46
|
+
})(it || (it = {}));
|
|
47
47
|
const p = b.arrayToEnum([
|
|
48
48
|
"string",
|
|
49
49
|
"nan",
|
|
@@ -103,7 +103,7 @@ var rs = pr((as, yt) => {
|
|
|
103
103
|
"invalid_intersection_types",
|
|
104
104
|
"not_multiple_of",
|
|
105
105
|
"not_finite"
|
|
106
|
-
]),
|
|
106
|
+
]), mr = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
107
107
|
class I extends Error {
|
|
108
108
|
get errors() {
|
|
109
109
|
return this.issues;
|
|
@@ -221,7 +221,7 @@ var rs = pr((as, yt) => {
|
|
|
221
221
|
return { message: r };
|
|
222
222
|
};
|
|
223
223
|
let Rt = me;
|
|
224
|
-
function
|
|
224
|
+
function yr(t) {
|
|
225
225
|
Rt = t;
|
|
226
226
|
}
|
|
227
227
|
function ze() {
|
|
@@ -247,7 +247,7 @@ var rs = pr((as, yt) => {
|
|
|
247
247
|
path: a,
|
|
248
248
|
message: o
|
|
249
249
|
};
|
|
250
|
-
},
|
|
250
|
+
}, gr = [];
|
|
251
251
|
function f(t, e) {
|
|
252
252
|
const r = ze(), n = qe({
|
|
253
253
|
issueData: e,
|
|
@@ -309,7 +309,7 @@ var rs = pr((as, yt) => {
|
|
|
309
309
|
}
|
|
310
310
|
const y = Object.freeze({
|
|
311
311
|
status: "aborted"
|
|
312
|
-
}), pe = (t) => ({ status: "dirty", value: t }), A = (t) => ({ status: "valid", value: t }),
|
|
312
|
+
}), pe = (t) => ({ status: "dirty", value: t }), A = (t) => ({ status: "valid", value: t }), ot = (t) => t.status === "aborted", dt = (t) => t.status === "dirty", se = (t) => t.status === "valid", Se = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
313
313
|
function Be(t, e, r, n) {
|
|
314
314
|
if (typeof e == "function" ? t !== e || !0 : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
315
315
|
return e.get(t);
|
|
@@ -331,7 +331,7 @@ var rs = pr((as, yt) => {
|
|
|
331
331
|
return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const Tt = (t, e) => {
|
|
335
335
|
if (se(e))
|
|
336
336
|
return { success: !0, data: e.value };
|
|
337
337
|
if (!t.common.issues.length)
|
|
@@ -418,7 +418,7 @@ var rs = pr((as, yt) => {
|
|
|
418
418
|
data: e,
|
|
419
419
|
parsedType: q(e)
|
|
420
420
|
}, a = this._parseSync({ data: e, path: s.path, parent: s });
|
|
421
|
-
return
|
|
421
|
+
return Tt(s, a);
|
|
422
422
|
}
|
|
423
423
|
"~validate"(e) {
|
|
424
424
|
var r, n;
|
|
@@ -472,7 +472,7 @@ var rs = pr((as, yt) => {
|
|
|
472
472
|
data: e,
|
|
473
473
|
parsedType: q(e)
|
|
474
474
|
}, s = this._parse({ data: e, path: n.path, parent: n }), a = await (Se(s) ? s : Promise.resolve(s));
|
|
475
|
-
return
|
|
475
|
+
return Tt(n, a);
|
|
476
476
|
}
|
|
477
477
|
refine(e, r) {
|
|
478
478
|
const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
|
|
@@ -543,7 +543,7 @@ var rs = pr((as, yt) => {
|
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
brand() {
|
|
546
|
-
return new
|
|
546
|
+
return new vt({
|
|
547
547
|
typeName: m.ZodBranded,
|
|
548
548
|
type: this,
|
|
549
549
|
...v(this._def)
|
|
@@ -578,14 +578,14 @@ var rs = pr((as, yt) => {
|
|
|
578
578
|
return this.safeParse(null).success;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
const
|
|
582
|
-
let
|
|
583
|
-
const
|
|
581
|
+
const vr = /^c[^\s-]{8,}$/i, _r = /^[0-9a-z]+$/, wr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, br = /^[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, kr = /^[a-z0-9_-]{21}$/i, xr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Tr = /^[-+]?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)?)??$/, Sr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Er = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
582
|
+
let nt;
|
|
583
|
+
const Or = /^(?:(?: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])$/, Nr = /^(?:(?: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])$/, Rr = /^(([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]))$/, Ar = /^(([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])$/, Cr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Ir = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Ct = "((\\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])))", Pr = new RegExp(`^${Ct}$`);
|
|
584
584
|
function It(t) {
|
|
585
585
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
586
586
|
return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Zr(t) {
|
|
589
589
|
return new RegExp(`^${It(t)}$`);
|
|
590
590
|
}
|
|
591
591
|
function Pt(t) {
|
|
@@ -593,11 +593,11 @@ var rs = pr((as, yt) => {
|
|
|
593
593
|
const r = [];
|
|
594
594
|
return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
|
|
595
595
|
}
|
|
596
|
-
function Zr(t, e) {
|
|
597
|
-
return !!((e === "v4" || !e) && Er.test(t) || (e === "v6" || !e) && Nr.test(t));
|
|
598
|
-
}
|
|
599
596
|
function jr(t, e) {
|
|
600
|
-
|
|
597
|
+
return !!((e === "v4" || !e) && Or.test(t) || (e === "v6" || !e) && Rr.test(t));
|
|
598
|
+
}
|
|
599
|
+
function $r(t, e) {
|
|
600
|
+
if (!xr.test(t))
|
|
601
601
|
return !1;
|
|
602
602
|
try {
|
|
603
603
|
const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
|
|
@@ -606,8 +606,8 @@ var rs = pr((as, yt) => {
|
|
|
606
606
|
return !1;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
return !!((e === "v4" || !e) &&
|
|
609
|
+
function Fr(t, e) {
|
|
610
|
+
return !!((e === "v4" || !e) && Nr.test(t) || (e === "v6" || !e) && Ar.test(t));
|
|
611
611
|
}
|
|
612
612
|
class Z extends _ {
|
|
613
613
|
_parse(e) {
|
|
@@ -658,43 +658,43 @@ var rs = pr((as, yt) => {
|
|
|
658
658
|
message: a.message
|
|
659
659
|
}), n.dirty());
|
|
660
660
|
} else if (a.kind === "email")
|
|
661
|
-
|
|
661
|
+
Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
662
662
|
validation: "email",
|
|
663
663
|
code: u.invalid_string,
|
|
664
664
|
message: a.message
|
|
665
665
|
}), n.dirty());
|
|
666
666
|
else if (a.kind === "emoji")
|
|
667
|
-
|
|
667
|
+
nt || (nt = new RegExp(Er, "u")), nt.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
668
668
|
validation: "emoji",
|
|
669
669
|
code: u.invalid_string,
|
|
670
670
|
message: a.message
|
|
671
671
|
}), n.dirty());
|
|
672
672
|
else if (a.kind === "uuid")
|
|
673
|
-
|
|
673
|
+
br.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
674
674
|
validation: "uuid",
|
|
675
675
|
code: u.invalid_string,
|
|
676
676
|
message: a.message
|
|
677
677
|
}), n.dirty());
|
|
678
678
|
else if (a.kind === "nanoid")
|
|
679
|
-
|
|
679
|
+
kr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
680
680
|
validation: "nanoid",
|
|
681
681
|
code: u.invalid_string,
|
|
682
682
|
message: a.message
|
|
683
683
|
}), n.dirty());
|
|
684
684
|
else if (a.kind === "cuid")
|
|
685
|
-
|
|
685
|
+
vr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
686
686
|
validation: "cuid",
|
|
687
687
|
code: u.invalid_string,
|
|
688
688
|
message: a.message
|
|
689
689
|
}), n.dirty());
|
|
690
690
|
else if (a.kind === "cuid2")
|
|
691
|
-
|
|
691
|
+
_r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
692
692
|
validation: "cuid2",
|
|
693
693
|
code: u.invalid_string,
|
|
694
694
|
message: a.message
|
|
695
695
|
}), n.dirty());
|
|
696
696
|
else if (a.kind === "ulid")
|
|
697
|
-
|
|
697
|
+
wr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
698
698
|
validation: "ulid",
|
|
699
699
|
code: u.invalid_string,
|
|
700
700
|
message: a.message
|
|
@@ -729,35 +729,35 @@ var rs = pr((as, yt) => {
|
|
|
729
729
|
code: u.invalid_string,
|
|
730
730
|
validation: "datetime",
|
|
731
731
|
message: a.message
|
|
732
|
-
}), n.dirty()) : a.kind === "date" ?
|
|
732
|
+
}), n.dirty()) : a.kind === "date" ? Pr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
733
733
|
code: u.invalid_string,
|
|
734
734
|
validation: "date",
|
|
735
735
|
message: a.message
|
|
736
|
-
}), n.dirty()) : a.kind === "time" ?
|
|
736
|
+
}), n.dirty()) : a.kind === "time" ? Zr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
737
737
|
code: u.invalid_string,
|
|
738
738
|
validation: "time",
|
|
739
739
|
message: a.message
|
|
740
|
-
}), n.dirty()) : a.kind === "duration" ?
|
|
740
|
+
}), n.dirty()) : a.kind === "duration" ? Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
741
741
|
validation: "duration",
|
|
742
742
|
code: u.invalid_string,
|
|
743
743
|
message: a.message
|
|
744
|
-
}), n.dirty()) : a.kind === "ip" ?
|
|
744
|
+
}), n.dirty()) : a.kind === "ip" ? jr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
745
745
|
validation: "ip",
|
|
746
746
|
code: u.invalid_string,
|
|
747
747
|
message: a.message
|
|
748
|
-
}), n.dirty()) : a.kind === "jwt" ?
|
|
748
|
+
}), n.dirty()) : a.kind === "jwt" ? $r(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
749
749
|
validation: "jwt",
|
|
750
750
|
code: u.invalid_string,
|
|
751
751
|
message: a.message
|
|
752
|
-
}), n.dirty()) : a.kind === "cidr" ?
|
|
752
|
+
}), n.dirty()) : a.kind === "cidr" ? Fr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
753
753
|
validation: "cidr",
|
|
754
754
|
code: u.invalid_string,
|
|
755
755
|
message: a.message
|
|
756
|
-
}), n.dirty()) : a.kind === "base64" ?
|
|
756
|
+
}), n.dirty()) : a.kind === "base64" ? Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
757
757
|
validation: "base64",
|
|
758
758
|
code: u.invalid_string,
|
|
759
759
|
message: a.message
|
|
760
|
-
}), n.dirty()) : a.kind === "base64url" ?
|
|
760
|
+
}), n.dirty()) : a.kind === "base64url" ? Ir.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
761
761
|
validation: "base64url",
|
|
762
762
|
code: u.invalid_string,
|
|
763
763
|
message: a.message
|
|
@@ -996,7 +996,7 @@ var rs = pr((as, yt) => {
|
|
|
996
996
|
...v(t)
|
|
997
997
|
});
|
|
998
998
|
};
|
|
999
|
-
function
|
|
999
|
+
function Mr(t, e) {
|
|
1000
1000
|
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(".", ""));
|
|
1001
1001
|
return a % i / Math.pow(10, s);
|
|
1002
1002
|
}
|
|
@@ -1035,7 +1035,7 @@ var rs = pr((as, yt) => {
|
|
|
1035
1035
|
inclusive: a.inclusive,
|
|
1036
1036
|
exact: !1,
|
|
1037
1037
|
message: a.message
|
|
1038
|
-
}), s.dirty()) : a.kind === "multipleOf" ?
|
|
1038
|
+
}), s.dirty()) : a.kind === "multipleOf" ? Mr(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), f(n, {
|
|
1039
1039
|
code: u.not_multiple_of,
|
|
1040
1040
|
multipleOf: a.value,
|
|
1041
1041
|
message: a.message
|
|
@@ -1959,8 +1959,8 @@ var rs = pr((as, yt) => {
|
|
|
1959
1959
|
typeName: m.ZodUnion,
|
|
1960
1960
|
...v(e)
|
|
1961
1961
|
});
|
|
1962
|
-
const z = (t) => t instanceof Ie ? z(t.schema) : t instanceof $ ? z(t.innerType()) : t instanceof Pe ? [t.value] : t instanceof Y ? t.options : t instanceof Ze ? b.objectValues(t.enum) : t instanceof je ? z(t._def.innerType) : t instanceof Oe ? [void 0] : t instanceof Ne ? [null] : t instanceof M ? [void 0, ...z(t.unwrap())] : t instanceof K ? [null, ...z(t.unwrap())] : t instanceof
|
|
1963
|
-
class
|
|
1962
|
+
const z = (t) => t instanceof Ie ? z(t.schema) : t instanceof $ ? z(t.innerType()) : t instanceof Pe ? [t.value] : t instanceof Y ? t.options : t instanceof Ze ? b.objectValues(t.enum) : t instanceof je ? z(t._def.innerType) : t instanceof Oe ? [void 0] : t instanceof Ne ? [null] : t instanceof M ? [void 0, ...z(t.unwrap())] : t instanceof K ? [null, ...z(t.unwrap())] : t instanceof vt || t instanceof Fe ? z(t.unwrap()) : t instanceof $e ? z(t._def.innerType) : [];
|
|
1963
|
+
class et extends _ {
|
|
1964
1964
|
_parse(e) {
|
|
1965
1965
|
const { ctx: r } = this._processInputParams(e);
|
|
1966
1966
|
if (r.parsedType !== p.object)
|
|
@@ -2013,7 +2013,7 @@ var rs = pr((as, yt) => {
|
|
|
2013
2013
|
s.set(o, a);
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
return new
|
|
2016
|
+
return new et({
|
|
2017
2017
|
typeName: m.ZodDiscriminatedUnion,
|
|
2018
2018
|
discriminator: e,
|
|
2019
2019
|
options: r,
|
|
@@ -2022,14 +2022,14 @@ var rs = pr((as, yt) => {
|
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function ct(t, e) {
|
|
2026
2026
|
const r = q(t), n = q(e);
|
|
2027
2027
|
if (t === e)
|
|
2028
2028
|
return { valid: !0, data: t };
|
|
2029
2029
|
if (r === p.object && n === p.object) {
|
|
2030
2030
|
const s = b.objectKeys(e), a = b.objectKeys(t).filter((o) => s.indexOf(o) !== -1), i = { ...t, ...e };
|
|
2031
2031
|
for (const o of a) {
|
|
2032
|
-
const d =
|
|
2032
|
+
const d = ct(t[o], e[o]);
|
|
2033
2033
|
if (!d.valid)
|
|
2034
2034
|
return { valid: !1 };
|
|
2035
2035
|
i[o] = d.data;
|
|
@@ -2040,7 +2040,7 @@ var rs = pr((as, yt) => {
|
|
|
2040
2040
|
return { valid: !1 };
|
|
2041
2041
|
const s = [];
|
|
2042
2042
|
for (let a = 0; a < t.length; a++) {
|
|
2043
|
-
const i = t[a], o = e[a], d =
|
|
2043
|
+
const i = t[a], o = e[a], d = ct(i, o);
|
|
2044
2044
|
if (!d.valid)
|
|
2045
2045
|
return { valid: !1 };
|
|
2046
2046
|
s.push(d.data);
|
|
@@ -2051,10 +2051,10 @@ var rs = pr((as, yt) => {
|
|
|
2051
2051
|
class Ae extends _ {
|
|
2052
2052
|
_parse(e) {
|
|
2053
2053
|
const { status: r, ctx: n } = this._processInputParams(e), s = (a, i) => {
|
|
2054
|
-
if (
|
|
2054
|
+
if (ot(a) || ot(i))
|
|
2055
2055
|
return y;
|
|
2056
|
-
const o =
|
|
2057
|
-
return o.valid ? ((
|
|
2056
|
+
const o = ct(a.value, i.value);
|
|
2057
|
+
return o.valid ? ((dt(a) || dt(i)) && r.dirty(), { status: r.value, value: o.data }) : (f(n, {
|
|
2058
2058
|
code: u.invalid_intersection_types
|
|
2059
2059
|
}), y);
|
|
2060
2060
|
};
|
|
@@ -2744,8 +2744,8 @@ var rs = pr((as, yt) => {
|
|
|
2744
2744
|
typeName: m.ZodNaN,
|
|
2745
2745
|
...v(t)
|
|
2746
2746
|
});
|
|
2747
|
-
const
|
|
2748
|
-
class
|
|
2747
|
+
const Lr = Symbol("zod_brand");
|
|
2748
|
+
class vt extends _ {
|
|
2749
2749
|
_parse(e) {
|
|
2750
2750
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
2751
2751
|
return this._def.type._parse({
|
|
@@ -2812,7 +2812,7 @@ var rs = pr((as, yt) => {
|
|
|
2812
2812
|
typeName: m.ZodReadonly,
|
|
2813
2813
|
...v(e)
|
|
2814
2814
|
});
|
|
2815
|
-
function
|
|
2815
|
+
function St(t, e) {
|
|
2816
2816
|
const r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
|
|
2817
2817
|
return typeof r == "string" ? { message: r } : r;
|
|
2818
2818
|
}
|
|
@@ -2824,26 +2824,26 @@ var rs = pr((as, yt) => {
|
|
|
2824
2824
|
return o.then((d) => {
|
|
2825
2825
|
var c, l;
|
|
2826
2826
|
if (!d) {
|
|
2827
|
-
const w =
|
|
2827
|
+
const w = St(e, n), x = (l = (c = w.fatal) !== null && c !== void 0 ? c : r) !== null && l !== void 0 ? l : !0;
|
|
2828
2828
|
s.addIssue({ code: "custom", ...w, fatal: x });
|
|
2829
2829
|
}
|
|
2830
2830
|
});
|
|
2831
2831
|
if (!o) {
|
|
2832
|
-
const d =
|
|
2832
|
+
const d = St(e, n), c = (i = (a = d.fatal) !== null && a !== void 0 ? a : r) !== null && i !== void 0 ? i : !0;
|
|
2833
2833
|
s.addIssue({ code: "custom", ...d, fatal: c });
|
|
2834
2834
|
}
|
|
2835
2835
|
}) : ye.create();
|
|
2836
2836
|
}
|
|
2837
|
-
const
|
|
2837
|
+
const Dr = {
|
|
2838
2838
|
object: E.lazycreate
|
|
2839
2839
|
};
|
|
2840
2840
|
var m;
|
|
2841
2841
|
(function(t) {
|
|
2842
2842
|
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";
|
|
2843
2843
|
})(m || (m = {}));
|
|
2844
|
-
const
|
|
2844
|
+
const Vr = (t, e = {
|
|
2845
2845
|
message: `Input not instance of ${t.name}`
|
|
2846
|
-
}) => jt((r) => r instanceof t, e), $t = Z.create, Ft = W.create,
|
|
2846
|
+
}) => jt((r) => r instanceof t, e), $t = Z.create, Ft = W.create, Ur = Ye.create, zr = J.create, Mt = Ee.create, qr = ae.create, Br = He.create, Hr = Oe.create, Wr = Ne.create, Jr = ye.create, Yr = ne.create, Kr = B.create, Gr = We.create, Xr = j.create, Qr = E.create, en = E.strictCreate, tn = Re.create, rn = et.create, nn = Ae.create, sn = D.create, an = Ce.create, on = Je.create, dn = ie.create, cn = he.create, un = Ie.create, ln = Pe.create, fn = Y.create, pn = Ze.create, hn = ge.create, Et = $.create, mn = M.create, yn = K.create, gn = $.createWithPreprocess, vn = Me.create, _n = () => $t().optional(), wn = () => Ft().optional(), bn = () => Mt().optional(), kn = {
|
|
2847
2847
|
string: (t) => Z.create({ ...t, coerce: !0 }),
|
|
2848
2848
|
number: (t) => W.create({ ...t, coerce: !0 }),
|
|
2849
2849
|
boolean: (t) => Ee.create({
|
|
@@ -2852,28 +2852,28 @@ var rs = pr((as, yt) => {
|
|
|
2852
2852
|
}),
|
|
2853
2853
|
bigint: (t) => J.create({ ...t, coerce: !0 }),
|
|
2854
2854
|
date: (t) => ae.create({ ...t, coerce: !0 })
|
|
2855
|
-
},
|
|
2856
|
-
var
|
|
2855
|
+
}, xn = y;
|
|
2856
|
+
var Ke = /* @__PURE__ */ Object.freeze({
|
|
2857
2857
|
__proto__: null,
|
|
2858
2858
|
defaultErrorMap: me,
|
|
2859
|
-
setErrorMap:
|
|
2859
|
+
setErrorMap: yr,
|
|
2860
2860
|
getErrorMap: ze,
|
|
2861
2861
|
makeIssue: qe,
|
|
2862
|
-
EMPTY_PATH:
|
|
2862
|
+
EMPTY_PATH: gr,
|
|
2863
2863
|
addIssueToContext: f,
|
|
2864
2864
|
ParseStatus: R,
|
|
2865
2865
|
INVALID: y,
|
|
2866
2866
|
DIRTY: pe,
|
|
2867
2867
|
OK: A,
|
|
2868
|
-
isAborted:
|
|
2869
|
-
isDirty:
|
|
2868
|
+
isAborted: ot,
|
|
2869
|
+
isDirty: dt,
|
|
2870
2870
|
isValid: se,
|
|
2871
2871
|
isAsync: Se,
|
|
2872
2872
|
get util() {
|
|
2873
2873
|
return b;
|
|
2874
2874
|
},
|
|
2875
2875
|
get objectUtil() {
|
|
2876
|
-
return
|
|
2876
|
+
return it;
|
|
2877
2877
|
},
|
|
2878
2878
|
ZodParsedType: p,
|
|
2879
2879
|
getParsedType: q,
|
|
@@ -2894,7 +2894,7 @@ var rs = pr((as, yt) => {
|
|
|
2894
2894
|
ZodArray: j,
|
|
2895
2895
|
ZodObject: E,
|
|
2896
2896
|
ZodUnion: Re,
|
|
2897
|
-
ZodDiscriminatedUnion:
|
|
2897
|
+
ZodDiscriminatedUnion: et,
|
|
2898
2898
|
ZodIntersection: Ae,
|
|
2899
2899
|
ZodTuple: D,
|
|
2900
2900
|
ZodRecord: Ce,
|
|
@@ -2913,76 +2913,81 @@ var rs = pr((as, yt) => {
|
|
|
2913
2913
|
ZodDefault: je,
|
|
2914
2914
|
ZodCatch: $e,
|
|
2915
2915
|
ZodNaN: Ye,
|
|
2916
|
-
BRAND:
|
|
2917
|
-
ZodBranded:
|
|
2916
|
+
BRAND: Lr,
|
|
2917
|
+
ZodBranded: vt,
|
|
2918
2918
|
ZodPipeline: Me,
|
|
2919
2919
|
ZodReadonly: Fe,
|
|
2920
2920
|
custom: jt,
|
|
2921
2921
|
Schema: _,
|
|
2922
2922
|
ZodSchema: _,
|
|
2923
|
-
late:
|
|
2923
|
+
late: Dr,
|
|
2924
2924
|
get ZodFirstPartyTypeKind() {
|
|
2925
2925
|
return m;
|
|
2926
2926
|
},
|
|
2927
|
-
coerce:
|
|
2928
|
-
any:
|
|
2929
|
-
array:
|
|
2930
|
-
bigint:
|
|
2927
|
+
coerce: kn,
|
|
2928
|
+
any: Jr,
|
|
2929
|
+
array: Xr,
|
|
2930
|
+
bigint: zr,
|
|
2931
2931
|
boolean: Mt,
|
|
2932
|
-
date:
|
|
2933
|
-
discriminatedUnion:
|
|
2934
|
-
effect:
|
|
2935
|
-
enum:
|
|
2936
|
-
function:
|
|
2937
|
-
instanceof:
|
|
2938
|
-
intersection:
|
|
2939
|
-
lazy:
|
|
2940
|
-
literal:
|
|
2941
|
-
map:
|
|
2942
|
-
nan:
|
|
2943
|
-
nativeEnum:
|
|
2944
|
-
never:
|
|
2945
|
-
null:
|
|
2946
|
-
nullable:
|
|
2932
|
+
date: qr,
|
|
2933
|
+
discriminatedUnion: rn,
|
|
2934
|
+
effect: Et,
|
|
2935
|
+
enum: fn,
|
|
2936
|
+
function: cn,
|
|
2937
|
+
instanceof: Vr,
|
|
2938
|
+
intersection: nn,
|
|
2939
|
+
lazy: un,
|
|
2940
|
+
literal: ln,
|
|
2941
|
+
map: on,
|
|
2942
|
+
nan: Ur,
|
|
2943
|
+
nativeEnum: pn,
|
|
2944
|
+
never: Kr,
|
|
2945
|
+
null: Wr,
|
|
2946
|
+
nullable: yn,
|
|
2947
2947
|
number: Ft,
|
|
2948
|
-
object:
|
|
2949
|
-
oboolean:
|
|
2950
|
-
onumber:
|
|
2951
|
-
optional:
|
|
2952
|
-
ostring:
|
|
2953
|
-
pipeline:
|
|
2954
|
-
preprocess:
|
|
2955
|
-
promise:
|
|
2956
|
-
record:
|
|
2957
|
-
set:
|
|
2958
|
-
strictObject:
|
|
2948
|
+
object: Qr,
|
|
2949
|
+
oboolean: bn,
|
|
2950
|
+
onumber: wn,
|
|
2951
|
+
optional: mn,
|
|
2952
|
+
ostring: _n,
|
|
2953
|
+
pipeline: vn,
|
|
2954
|
+
preprocess: gn,
|
|
2955
|
+
promise: hn,
|
|
2956
|
+
record: an,
|
|
2957
|
+
set: dn,
|
|
2958
|
+
strictObject: en,
|
|
2959
2959
|
string: $t,
|
|
2960
|
-
symbol:
|
|
2961
|
-
transformer:
|
|
2962
|
-
tuple:
|
|
2963
|
-
undefined:
|
|
2964
|
-
union:
|
|
2965
|
-
unknown:
|
|
2966
|
-
void:
|
|
2967
|
-
NEVER:
|
|
2960
|
+
symbol: Br,
|
|
2961
|
+
transformer: Et,
|
|
2962
|
+
tuple: sn,
|
|
2963
|
+
undefined: Hr,
|
|
2964
|
+
union: tn,
|
|
2965
|
+
unknown: Yr,
|
|
2966
|
+
void: Gr,
|
|
2967
|
+
NEVER: xn,
|
|
2968
2968
|
ZodIssueCode: u,
|
|
2969
|
-
quotelessJson:
|
|
2969
|
+
quotelessJson: mr,
|
|
2970
2970
|
ZodError: I
|
|
2971
2971
|
});
|
|
2972
|
-
const
|
|
2973
|
-
detail:
|
|
2972
|
+
const ut = Ke.object({
|
|
2973
|
+
detail: Ke.string()
|
|
2974
|
+
}), Lt = Ke.object({
|
|
2975
|
+
error: Ke.string()
|
|
2974
2976
|
});
|
|
2975
|
-
function
|
|
2977
|
+
function Tn(t) {
|
|
2976
2978
|
if (!t)
|
|
2977
2979
|
return "Unknown error";
|
|
2978
2980
|
if (t instanceof Error) {
|
|
2979
|
-
const e =
|
|
2980
|
-
return e.success ? e.data.detail :
|
|
2981
|
+
const e = ut.safeParse(t.cause);
|
|
2982
|
+
return e.success ? e.data.detail : Sn(t.message);
|
|
2981
2983
|
}
|
|
2982
2984
|
if (typeof t == "object") {
|
|
2983
|
-
const e =
|
|
2985
|
+
const e = ut.safeParse(t);
|
|
2984
2986
|
if (e.success)
|
|
2985
2987
|
return e.data.detail;
|
|
2988
|
+
const r = Lt.safeParse(t);
|
|
2989
|
+
if (r.success)
|
|
2990
|
+
return r.data.error;
|
|
2986
2991
|
}
|
|
2987
2992
|
try {
|
|
2988
2993
|
return JSON.stringify(t);
|
|
@@ -2990,26 +2995,29 @@ var rs = pr((as, yt) => {
|
|
|
2990
2995
|
return String(t);
|
|
2991
2996
|
}
|
|
2992
2997
|
}
|
|
2993
|
-
function
|
|
2994
|
-
const e =
|
|
2998
|
+
function Sn(t) {
|
|
2999
|
+
const e = En(t);
|
|
2995
3000
|
if (!e)
|
|
2996
3001
|
return t;
|
|
2997
|
-
const r =
|
|
2998
|
-
|
|
3002
|
+
const r = ut.safeParse(e);
|
|
3003
|
+
if (r.success)
|
|
3004
|
+
return r.data.detail;
|
|
3005
|
+
const n = Lt.safeParse(e);
|
|
3006
|
+
return n.success ? n.data.error : t;
|
|
2999
3007
|
}
|
|
3000
|
-
function
|
|
3008
|
+
function En(t) {
|
|
3001
3009
|
try {
|
|
3002
3010
|
return JSON.parse(t);
|
|
3003
3011
|
} catch {
|
|
3004
3012
|
return t;
|
|
3005
3013
|
}
|
|
3006
3014
|
}
|
|
3007
|
-
const
|
|
3015
|
+
const On = 1e10, Nn = 1e3;
|
|
3008
3016
|
function De(t, e) {
|
|
3009
3017
|
const r = t.map((n) => `"${n}"`).join(", ");
|
|
3010
3018
|
return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
|
|
3011
3019
|
}
|
|
3012
|
-
function
|
|
3020
|
+
function Rn(t = {}) {
|
|
3013
3021
|
let e = {};
|
|
3014
3022
|
function r(g) {
|
|
3015
3023
|
e = g;
|
|
@@ -3017,7 +3025,7 @@ var rs = pr((as, yt) => {
|
|
|
3017
3025
|
let n = {};
|
|
3018
3026
|
function s(g) {
|
|
3019
3027
|
var T;
|
|
3020
|
-
n.unregisterHandler && n.unregisterHandler(), n = g, (T = n.registerHandler) == null || T.call(n,
|
|
3028
|
+
n.unregisterHandler && n.unregisterHandler(), n = g, (T = n.registerHandler) == null || T.call(n, pr);
|
|
3021
3029
|
}
|
|
3022
3030
|
let a;
|
|
3023
3031
|
function i(g) {
|
|
@@ -3035,11 +3043,11 @@ var rs = pr((as, yt) => {
|
|
|
3035
3043
|
return N(T, O);
|
|
3036
3044
|
};
|
|
3037
3045
|
}
|
|
3038
|
-
const { maxRequestTime: o =
|
|
3046
|
+
const { maxRequestTime: o = Nn } = t;
|
|
3039
3047
|
t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
|
|
3040
3048
|
let d = 0;
|
|
3041
3049
|
function c() {
|
|
3042
|
-
return d <=
|
|
3050
|
+
return d <= On ? ++d : d = 0;
|
|
3043
3051
|
}
|
|
3044
3052
|
const l = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
|
|
3045
3053
|
function x(g, ...T) {
|
|
@@ -3074,28 +3082,28 @@ var rs = pr((as, yt) => {
|
|
|
3074
3082
|
};
|
|
3075
3083
|
(N = e.onSend) == null || N.call(e, S), n.send(S);
|
|
3076
3084
|
}
|
|
3077
|
-
const
|
|
3085
|
+
const kt = new Proxy(Le, {
|
|
3078
3086
|
get: (g, T, O) => T in g ? Reflect.get(g, T, O) : (S) => Le(T, S)
|
|
3079
|
-
}),
|
|
3080
|
-
function
|
|
3087
|
+
}), xt = kt, X = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Set();
|
|
3088
|
+
function lr(g, T) {
|
|
3081
3089
|
var O;
|
|
3082
3090
|
if (!n.registerHandler)
|
|
3083
3091
|
throw De(["registerHandler"], "register message listeners");
|
|
3084
3092
|
if (g === "*") {
|
|
3085
|
-
|
|
3093
|
+
rt.add(T);
|
|
3086
3094
|
return;
|
|
3087
3095
|
}
|
|
3088
3096
|
X.has(g) || X.set(g, /* @__PURE__ */ new Set()), (O = X.get(g)) == null || O.add(T);
|
|
3089
3097
|
}
|
|
3090
|
-
function
|
|
3098
|
+
function fr(g, T) {
|
|
3091
3099
|
var O, S;
|
|
3092
3100
|
if (g === "*") {
|
|
3093
|
-
|
|
3101
|
+
rt.delete(T);
|
|
3094
3102
|
return;
|
|
3095
3103
|
}
|
|
3096
3104
|
(O = X.get(g)) == null || O.delete(T), ((S = X.get(g)) == null ? void 0 : S.size) === 0 && X.delete(g);
|
|
3097
3105
|
}
|
|
3098
|
-
async function
|
|
3106
|
+
async function pr(g) {
|
|
3099
3107
|
var T, O;
|
|
3100
3108
|
if ((T = e.onReceive) == null || T.call(e, g), !("type" in g))
|
|
3101
3109
|
throw new Error("Message does not contain a type.");
|
|
@@ -3132,7 +3140,7 @@ var rs = pr((as, yt) => {
|
|
|
3132
3140
|
return;
|
|
3133
3141
|
}
|
|
3134
3142
|
if (g.type === "message") {
|
|
3135
|
-
for (const N of
|
|
3143
|
+
for (const N of rt)
|
|
3136
3144
|
N(g.id, g.payload);
|
|
3137
3145
|
const S = X.get(g.id);
|
|
3138
3146
|
if (!S)
|
|
@@ -3148,44 +3156,44 @@ var rs = pr((as, yt) => {
|
|
|
3148
3156
|
setRequestHandler: i,
|
|
3149
3157
|
request: C,
|
|
3150
3158
|
requestProxy: U,
|
|
3151
|
-
send:
|
|
3152
|
-
sendProxy:
|
|
3153
|
-
addMessageListener:
|
|
3154
|
-
removeMessageListener:
|
|
3155
|
-
proxy: { send:
|
|
3159
|
+
send: kt,
|
|
3160
|
+
sendProxy: xt,
|
|
3161
|
+
addMessageListener: lr,
|
|
3162
|
+
removeMessageListener: fr,
|
|
3163
|
+
proxy: { send: xt, request: U },
|
|
3156
3164
|
_setDebugHooks: r
|
|
3157
3165
|
};
|
|
3158
3166
|
}
|
|
3159
|
-
function
|
|
3160
|
-
return
|
|
3167
|
+
function An(t) {
|
|
3168
|
+
return Rn(t);
|
|
3161
3169
|
}
|
|
3162
|
-
const
|
|
3163
|
-
function
|
|
3170
|
+
const Dt = "[transport-id]";
|
|
3171
|
+
function Cn(t, e) {
|
|
3164
3172
|
const { transportId: r } = e;
|
|
3165
|
-
return r != null ? { [
|
|
3173
|
+
return r != null ? { [Dt]: r, data: t } : t;
|
|
3166
3174
|
}
|
|
3167
|
-
function
|
|
3175
|
+
function In(t, e) {
|
|
3168
3176
|
const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
|
|
3169
3177
|
if (r != null && s != null)
|
|
3170
3178
|
throw new Error("Cannot use both `transportId` and `filter` at the same time");
|
|
3171
3179
|
let a = t;
|
|
3172
3180
|
if (r) {
|
|
3173
|
-
if (t[
|
|
3181
|
+
if (t[Dt] !== r)
|
|
3174
3182
|
return [!0];
|
|
3175
3183
|
a = t.data;
|
|
3176
3184
|
}
|
|
3177
3185
|
return s === !1 ? [!0] : [!1, a];
|
|
3178
3186
|
}
|
|
3179
|
-
function
|
|
3187
|
+
function Pn(t, e = {}) {
|
|
3180
3188
|
const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
|
|
3181
3189
|
let o;
|
|
3182
3190
|
return {
|
|
3183
3191
|
send(d) {
|
|
3184
|
-
i.postMessage(
|
|
3192
|
+
i.postMessage(Cn(d, { transportId: r }));
|
|
3185
3193
|
},
|
|
3186
3194
|
registerHandler(d) {
|
|
3187
3195
|
o = (c) => {
|
|
3188
|
-
const l = c.data, [w, x] =
|
|
3196
|
+
const l = c.data, [w, x] = In(l, {
|
|
3189
3197
|
transportId: r,
|
|
3190
3198
|
filter: () => n == null ? void 0 : n(c)
|
|
3191
3199
|
});
|
|
@@ -3197,13 +3205,13 @@ var rs = pr((as, yt) => {
|
|
|
3197
3205
|
}
|
|
3198
3206
|
};
|
|
3199
3207
|
}
|
|
3200
|
-
function
|
|
3201
|
-
return
|
|
3208
|
+
function Zn(t) {
|
|
3209
|
+
return Pn(self, t);
|
|
3202
3210
|
}
|
|
3203
3211
|
const ve = {
|
|
3204
3212
|
NOOP: () => {
|
|
3205
3213
|
}
|
|
3206
|
-
},
|
|
3214
|
+
}, Vt = (t, e) => {
|
|
3207
3215
|
const r = `[${t}]`;
|
|
3208
3216
|
return {
|
|
3209
3217
|
debug: (...n) => e.debug(r, ...n),
|
|
@@ -3211,10 +3219,10 @@ var rs = pr((as, yt) => {
|
|
|
3211
3219
|
warn: (...n) => e.warn(r, ...n),
|
|
3212
3220
|
error: (...n) => e.error(r, ...n),
|
|
3213
3221
|
trace: (...n) => e.trace(r, ...n),
|
|
3214
|
-
get: (n) =>
|
|
3215
|
-
disabled: (n = !0) => n ?
|
|
3222
|
+
get: (n) => Vt(`${t}.${n}`, e),
|
|
3223
|
+
disabled: (n = !0) => n ? Xe : e
|
|
3216
3224
|
};
|
|
3217
|
-
},
|
|
3225
|
+
}, Ge = {
|
|
3218
3226
|
debug: (...t) => {
|
|
3219
3227
|
console.debug(...t);
|
|
3220
3228
|
},
|
|
@@ -3230,40 +3238,40 @@ var rs = pr((as, yt) => {
|
|
|
3230
3238
|
trace: (...t) => {
|
|
3231
3239
|
console.trace(...t);
|
|
3232
3240
|
},
|
|
3233
|
-
get: (t) =>
|
|
3234
|
-
disabled: (t = !0) => t ?
|
|
3235
|
-
},
|
|
3241
|
+
get: (t) => Vt(t, Ge),
|
|
3242
|
+
disabled: (t = !0) => t ? Xe : Ge
|
|
3243
|
+
}, Xe = {
|
|
3236
3244
|
debug: () => ve.NOOP,
|
|
3237
3245
|
log: () => ve.NOOP,
|
|
3238
3246
|
warn: () => ve.NOOP,
|
|
3239
3247
|
error: () => ve.NOOP,
|
|
3240
3248
|
trace: () => ve.NOOP,
|
|
3241
|
-
get: () =>
|
|
3242
|
-
disabled: () =>
|
|
3249
|
+
get: () => Xe,
|
|
3250
|
+
disabled: () => Xe
|
|
3243
3251
|
};
|
|
3244
|
-
function
|
|
3245
|
-
return typeof window < "u" && window.Logger ||
|
|
3252
|
+
function jn() {
|
|
3253
|
+
return typeof window < "u" && window.Logger || Ge;
|
|
3246
3254
|
}
|
|
3247
|
-
const xe =
|
|
3248
|
-
var
|
|
3255
|
+
const xe = jn(), $n = "marimo-transport";
|
|
3256
|
+
var Fn = Object.defineProperty, k = (t, e) => Fn(t, "name", { value: e, configurable: !0 }), Ut = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
|
|
3249
3257
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
3250
3258
|
throw new Error('Dynamic require of "' + t + '" is not supported');
|
|
3251
3259
|
});
|
|
3252
|
-
function
|
|
3260
|
+
function zt(t) {
|
|
3253
3261
|
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
3254
3262
|
}
|
|
3255
|
-
k(
|
|
3263
|
+
k(zt, "_isNumber");
|
|
3256
3264
|
function G(t) {
|
|
3257
3265
|
return t.charAt(0).toUpperCase() + t.substring(1);
|
|
3258
3266
|
}
|
|
3259
3267
|
k(G, "_capitalize");
|
|
3260
|
-
function
|
|
3268
|
+
function tt(t) {
|
|
3261
3269
|
return function() {
|
|
3262
3270
|
return this[t];
|
|
3263
3271
|
};
|
|
3264
3272
|
}
|
|
3265
|
-
k(
|
|
3266
|
-
var ce = ["isConstructor", "isEval", "isNative", "isToplevel"], ue = ["columnNumber", "lineNumber"], le = ["fileName", "functionName", "source"],
|
|
3273
|
+
k(tt, "_getter");
|
|
3274
|
+
var ce = ["isConstructor", "isEval", "isNative", "isToplevel"], ue = ["columnNumber", "lineNumber"], le = ["fileName", "functionName", "source"], Mn = ["args"], Ln = ["evalOrigin"], Ve = ce.concat(ue, le, Mn, Ln);
|
|
3267
3275
|
function P(t) {
|
|
3268
3276
|
if (t) for (var e = 0; e < Ve.length; e++) t[Ve[e]] !== void 0 && this["set" + G(Ve[e])](t[Ve[e]]);
|
|
3269
3277
|
}
|
|
@@ -3288,26 +3296,26 @@ var rs = pr((as, yt) => {
|
|
|
3288
3296
|
if (a.indexOf("@") === 0) var i = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a, ""), o = i[1], d = i[2], c = i[3];
|
|
3289
3297
|
return new P({ functionName: n, args: s || void 0, fileName: o, lineNumber: d || void 0, columnNumber: c || void 0 });
|
|
3290
3298
|
}, "StackFrame$$fromString");
|
|
3291
|
-
for (ee = 0; ee < ce.length; ee++) P.prototype["get" + G(ce[ee])] =
|
|
3299
|
+
for (ee = 0; ee < ce.length; ee++) P.prototype["get" + G(ce[ee])] = tt(ce[ee]), P.prototype["set" + G(ce[ee])] = /* @__PURE__ */ function(t) {
|
|
3292
3300
|
return function(e) {
|
|
3293
3301
|
this[t] = !!e;
|
|
3294
3302
|
};
|
|
3295
3303
|
}(ce[ee]);
|
|
3296
3304
|
var ee;
|
|
3297
|
-
for (te = 0; te < ue.length; te++) P.prototype["get" + G(ue[te])] =
|
|
3305
|
+
for (te = 0; te < ue.length; te++) P.prototype["get" + G(ue[te])] = tt(ue[te]), P.prototype["set" + G(ue[te])] = /* @__PURE__ */ function(t) {
|
|
3298
3306
|
return function(e) {
|
|
3299
|
-
if (!
|
|
3307
|
+
if (!zt(e)) throw new TypeError(t + " must be a Number");
|
|
3300
3308
|
this[t] = Number(e);
|
|
3301
3309
|
};
|
|
3302
3310
|
}(ue[te]);
|
|
3303
3311
|
var te;
|
|
3304
|
-
for (re = 0; re < le.length; re++) P.prototype["get" + G(le[re])] =
|
|
3312
|
+
for (re = 0; re < le.length; re++) P.prototype["get" + G(le[re])] = tt(le[re]), P.prototype["set" + G(le[re])] = /* @__PURE__ */ function(t) {
|
|
3305
3313
|
return function(e) {
|
|
3306
3314
|
this[t] = String(e);
|
|
3307
3315
|
};
|
|
3308
3316
|
}(le[re]);
|
|
3309
|
-
var re,
|
|
3310
|
-
function
|
|
3317
|
+
var re, st = P;
|
|
3318
|
+
function qt() {
|
|
3311
3319
|
var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
|
|
3312
3320
|
return { parse: k(function(r) {
|
|
3313
3321
|
if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
|
|
@@ -3327,7 +3335,7 @@ var rs = pr((as, yt) => {
|
|
|
3327
3335
|
var a = s.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), i = a.match(/ (\(.+\)$)/);
|
|
3328
3336
|
a = i ? a.replace(i[0], "") : a;
|
|
3329
3337
|
var o = this.extractLocation(i ? i[1] : a), d = i && a || void 0, c = ["eval", "<anonymous>"].indexOf(o[0]) > -1 ? void 0 : o[0];
|
|
3330
|
-
return new
|
|
3338
|
+
return new st({ functionName: d, fileName: c, lineNumber: o[1], columnNumber: o[2], source: s });
|
|
3331
3339
|
}, this);
|
|
3332
3340
|
}, "ErrorStackParser$$parseV8OrIE"), parseFFOrSafari: k(function(r) {
|
|
3333
3341
|
var n = r.stack.split(`
|
|
@@ -3335,58 +3343,58 @@ var rs = pr((as, yt) => {
|
|
|
3335
3343
|
return !s.match(e);
|
|
3336
3344
|
}, this);
|
|
3337
3345
|
return n.map(function(s) {
|
|
3338
|
-
if (s.indexOf(" > eval") > -1 && (s = s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), s.indexOf("@") === -1 && s.indexOf(":") === -1) return new
|
|
3346
|
+
if (s.indexOf(" > eval") > -1 && (s = s.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), s.indexOf("@") === -1 && s.indexOf(":") === -1) return new st({ functionName: s });
|
|
3339
3347
|
var a = /((.*".+"[^@]*)?[^@]*)(?:@)/, i = s.match(a), o = i && i[1] ? i[1] : void 0, d = this.extractLocation(s.replace(a, ""));
|
|
3340
|
-
return new
|
|
3348
|
+
return new st({ functionName: o, fileName: d[0], lineNumber: d[1], columnNumber: d[2], source: s });
|
|
3341
3349
|
}, this);
|
|
3342
3350
|
}, "ErrorStackParser$$parseFFOrSafari") };
|
|
3343
3351
|
}
|
|
3344
|
-
k(
|
|
3345
|
-
var
|
|
3352
|
+
k(qt, "ErrorStackParser");
|
|
3353
|
+
var Dn = new qt(), Vn = Dn, V = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Bt = V && typeof gt < "u" && typeof gt.exports < "u" && typeof Ut < "u" && typeof __dirname < "u", Un = V && !Bt, zn = typeof Deno < "u", Ht = !V && !zn, qn = Ht && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Bn = Ht && typeof importScripts == "function" && typeof self == "object";
|
|
3346
3354
|
typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
|
|
3347
|
-
var
|
|
3348
|
-
async function
|
|
3349
|
-
if (!V || (
|
|
3355
|
+
var Wt, lt, Jt, Ot, _t;
|
|
3356
|
+
async function wt() {
|
|
3357
|
+
if (!V || (Wt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Ot = await import("./__vite-browser-external-CPvbk0mb.js"), _t = await import("./__vite-browser-external-CPvbk0mb.js"), Jt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, lt = await import("./__vite-browser-external-CPvbk0mb.js"), bt = lt.sep, typeof Ut < "u")) return;
|
|
3350
3358
|
let t = Ot, 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 };
|
|
3351
3359
|
globalThis.require = function(a) {
|
|
3352
3360
|
return s[a];
|
|
3353
3361
|
};
|
|
3354
3362
|
}
|
|
3355
|
-
k(
|
|
3356
|
-
function Jt(t, e) {
|
|
3357
|
-
return ut.resolve(e || ".", t);
|
|
3358
|
-
}
|
|
3359
|
-
k(Jt, "node_resolvePath");
|
|
3363
|
+
k(wt, "initNodeModules");
|
|
3360
3364
|
function Yt(t, e) {
|
|
3361
|
-
return
|
|
3365
|
+
return lt.resolve(e || ".", t);
|
|
3362
3366
|
}
|
|
3363
|
-
k(Yt, "
|
|
3364
|
-
var lt;
|
|
3365
|
-
V ? lt = Jt : lt = Yt;
|
|
3366
|
-
var wt;
|
|
3367
|
-
V || (wt = "/");
|
|
3367
|
+
k(Yt, "node_resolvePath");
|
|
3368
3368
|
function Kt(t, e) {
|
|
3369
|
-
return
|
|
3369
|
+
return e === void 0 && (e = location), new URL(t, e).toString();
|
|
3370
3370
|
}
|
|
3371
|
-
k(Kt, "
|
|
3371
|
+
k(Kt, "browser_resolvePath");
|
|
3372
|
+
var ft;
|
|
3373
|
+
V ? ft = Yt : ft = Kt;
|
|
3374
|
+
var bt;
|
|
3375
|
+
V || (bt = "/");
|
|
3372
3376
|
function Gt(t, e) {
|
|
3377
|
+
return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: _t.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
|
|
3378
|
+
}
|
|
3379
|
+
k(Gt, "node_getBinaryResponse");
|
|
3380
|
+
function Xt(t, e) {
|
|
3373
3381
|
let r = new URL(t, location);
|
|
3374
3382
|
return { response: fetch(r, e ? { integrity: e } : {}) };
|
|
3375
3383
|
}
|
|
3376
|
-
k(
|
|
3377
|
-
var
|
|
3378
|
-
V ?
|
|
3379
|
-
async function
|
|
3380
|
-
let { response: r, binary: n } =
|
|
3384
|
+
k(Xt, "browser_getBinaryResponse");
|
|
3385
|
+
var Qe;
|
|
3386
|
+
V ? Qe = Gt : Qe = Xt;
|
|
3387
|
+
async function Qt(t, e) {
|
|
3388
|
+
let { response: r, binary: n } = Qe(t, e);
|
|
3381
3389
|
if (n) return n;
|
|
3382
3390
|
let s = await r;
|
|
3383
3391
|
if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
|
|
3384
3392
|
return new Uint8Array(await s.arrayBuffer());
|
|
3385
3393
|
}
|
|
3386
|
-
k(
|
|
3394
|
+
k(Qt, "loadBinaryFile");
|
|
3387
3395
|
var Ue;
|
|
3388
|
-
if (
|
|
3389
|
-
else if (
|
|
3396
|
+
if (qn) Ue = k(async (t) => await import(t), "loadScript");
|
|
3397
|
+
else if (Bn) Ue = k(async (t) => {
|
|
3390
3398
|
try {
|
|
3391
3399
|
globalThis.importScripts(t);
|
|
3392
3400
|
} catch (e) {
|
|
@@ -3394,39 +3402,39 @@ var rs = pr((as, yt) => {
|
|
|
3394
3402
|
else throw e;
|
|
3395
3403
|
}
|
|
3396
3404
|
}, "loadScript");
|
|
3397
|
-
else if (V) Ue =
|
|
3405
|
+
else if (V) Ue = er;
|
|
3398
3406
|
else throw new Error("Cannot determine runtime environment");
|
|
3399
|
-
async function Qt(t) {
|
|
3400
|
-
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Wt.runInThisContext(await (await fetch(t)).text()) : await import(Ht.pathToFileURL(t).href);
|
|
3401
|
-
}
|
|
3402
|
-
k(Qt, "nodeLoadScript");
|
|
3403
3407
|
async function er(t) {
|
|
3408
|
+
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Jt.runInThisContext(await (await fetch(t)).text()) : await import(Wt.pathToFileURL(t).href);
|
|
3409
|
+
}
|
|
3410
|
+
k(er, "nodeLoadScript");
|
|
3411
|
+
async function tr(t) {
|
|
3404
3412
|
if (V) {
|
|
3405
|
-
await
|
|
3406
|
-
let e = await
|
|
3413
|
+
await wt();
|
|
3414
|
+
let e = await _t.readFile(t, { encoding: "utf8" });
|
|
3407
3415
|
return JSON.parse(e);
|
|
3408
3416
|
} else return await (await fetch(t)).json();
|
|
3409
3417
|
}
|
|
3410
|
-
k(
|
|
3411
|
-
async function
|
|
3412
|
-
if (
|
|
3418
|
+
k(tr, "loadLockFile");
|
|
3419
|
+
async function rr() {
|
|
3420
|
+
if (Bt) return __dirname;
|
|
3413
3421
|
let t;
|
|
3414
3422
|
try {
|
|
3415
3423
|
throw new Error();
|
|
3416
3424
|
} catch (n) {
|
|
3417
3425
|
t = n;
|
|
3418
3426
|
}
|
|
3419
|
-
let e =
|
|
3420
|
-
if (V && !e.startsWith("file://") && (e = `file://${e}`),
|
|
3427
|
+
let e = Vn.parse(t)[0].fileName;
|
|
3428
|
+
if (V && !e.startsWith("file://") && (e = `file://${e}`), Un) {
|
|
3421
3429
|
let n = await import("./__vite-browser-external-CPvbk0mb.js");
|
|
3422
3430
|
return (await import("./__vite-browser-external-CPvbk0mb.js")).fileURLToPath(n.dirname(e));
|
|
3423
3431
|
}
|
|
3424
|
-
let r = e.lastIndexOf(
|
|
3432
|
+
let r = e.lastIndexOf(bt);
|
|
3425
3433
|
if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
|
|
3426
3434
|
return e.slice(0, r);
|
|
3427
3435
|
}
|
|
3428
|
-
k(
|
|
3429
|
-
function
|
|
3436
|
+
k(rr, "calculateDirname");
|
|
3437
|
+
function nr(t) {
|
|
3430
3438
|
let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
|
|
3431
3439
|
if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
|
|
3432
3440
|
return r.mount.apply(null, arguments);
|
|
@@ -3454,7 +3462,7 @@ var rs = pr((as, yt) => {
|
|
|
3454
3462
|
}
|
|
3455
3463
|
return { type: "local", entries: i };
|
|
3456
3464
|
}, getRemoteSet: async (a) => {
|
|
3457
|
-
let i = /* @__PURE__ */ Object.create(null), o = await
|
|
3465
|
+
let i = /* @__PURE__ */ Object.create(null), o = await Hn(a.opts.fileSystemHandle);
|
|
3458
3466
|
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 });
|
|
3459
3467
|
return { type: "remote", entries: i, handles: o };
|
|
3460
3468
|
}, loadLocalEntry: (a) => {
|
|
@@ -3516,8 +3524,8 @@ var rs = pr((as, yt) => {
|
|
|
3516
3524
|
} };
|
|
3517
3525
|
t.FS.filesystems.NATIVEFS_ASYNC = s;
|
|
3518
3526
|
}
|
|
3519
|
-
k(
|
|
3520
|
-
var
|
|
3527
|
+
k(nr, "initializeNativeFS");
|
|
3528
|
+
var Hn = k(async (t) => {
|
|
3521
3529
|
let e = [];
|
|
3522
3530
|
async function r(s) {
|
|
3523
3531
|
for await (let a of s.values()) e.push(a), a.kind === "directory" && await r(a);
|
|
@@ -3531,14 +3539,14 @@ var rs = pr((as, yt) => {
|
|
|
3531
3539
|
}
|
|
3532
3540
|
return n;
|
|
3533
3541
|
}, "getFsHandles");
|
|
3534
|
-
function
|
|
3535
|
-
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun:
|
|
3542
|
+
function sr(t) {
|
|
3543
|
+
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: cr(t), quit(r, n) {
|
|
3536
3544
|
throw e.exited = { status: r, toThrow: n }, n;
|
|
3537
|
-
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm:
|
|
3545
|
+
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: ur(t.indexURL) };
|
|
3538
3546
|
return e;
|
|
3539
3547
|
}
|
|
3540
|
-
k(
|
|
3541
|
-
function
|
|
3548
|
+
k(sr, "createSettings");
|
|
3549
|
+
function ar(t) {
|
|
3542
3550
|
return function(e) {
|
|
3543
3551
|
let r = "/";
|
|
3544
3552
|
try {
|
|
@@ -3549,14 +3557,14 @@ var rs = pr((as, yt) => {
|
|
|
3549
3557
|
e.FS.chdir(t);
|
|
3550
3558
|
};
|
|
3551
3559
|
}
|
|
3552
|
-
k(
|
|
3553
|
-
function
|
|
3560
|
+
k(ar, "createHomeDirectory");
|
|
3561
|
+
function ir(t) {
|
|
3554
3562
|
return function(e) {
|
|
3555
3563
|
Object.assign(e.ENV, t);
|
|
3556
3564
|
};
|
|
3557
3565
|
}
|
|
3558
|
-
k(
|
|
3559
|
-
function
|
|
3566
|
+
k(ir, "setEnvironment");
|
|
3567
|
+
function or(t) {
|
|
3560
3568
|
return t ? [async (e) => {
|
|
3561
3569
|
e.addRunDependency("fsInitHook");
|
|
3562
3570
|
try {
|
|
@@ -3566,9 +3574,9 @@ var rs = pr((as, yt) => {
|
|
|
3566
3574
|
}
|
|
3567
3575
|
}] : [];
|
|
3568
3576
|
}
|
|
3569
|
-
k(
|
|
3570
|
-
function
|
|
3571
|
-
let e =
|
|
3577
|
+
k(or, "callFsInitHook");
|
|
3578
|
+
function dr(t) {
|
|
3579
|
+
let e = Qt(t);
|
|
3572
3580
|
return async (r) => {
|
|
3573
3581
|
let n = r._py_version_major(), s = r._py_version_minor();
|
|
3574
3582
|
r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
|
|
@@ -3582,15 +3590,15 @@ var rs = pr((as, yt) => {
|
|
|
3582
3590
|
}
|
|
3583
3591
|
};
|
|
3584
3592
|
}
|
|
3585
|
-
k(
|
|
3586
|
-
function
|
|
3593
|
+
k(dr, "installStdlib");
|
|
3594
|
+
function cr(t) {
|
|
3587
3595
|
let e;
|
|
3588
|
-
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...
|
|
3596
|
+
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...or(t.fsInit), dr(e), ar(t.env.HOME), ir(t.env), nr];
|
|
3589
3597
|
}
|
|
3590
|
-
k(
|
|
3591
|
-
function
|
|
3598
|
+
k(cr, "getFileSystemInitializationFuncs");
|
|
3599
|
+
function ur(t) {
|
|
3592
3600
|
if (typeof WasmOffsetConverter < "u") return;
|
|
3593
|
-
let { binary: e, response: r } =
|
|
3601
|
+
let { binary: e, response: r } = Qe(t + "pyodide.asm.wasm");
|
|
3594
3602
|
return function(n, s) {
|
|
3595
3603
|
return async function() {
|
|
3596
3604
|
try {
|
|
@@ -3604,17 +3612,17 @@ var rs = pr((as, yt) => {
|
|
|
3604
3612
|
}(), {};
|
|
3605
3613
|
};
|
|
3606
3614
|
}
|
|
3607
|
-
k(
|
|
3608
|
-
var
|
|
3609
|
-
async function
|
|
3615
|
+
k(ur, "getInstantiateWasmFunc");
|
|
3616
|
+
var pt = "0.27.5";
|
|
3617
|
+
async function ht(t = {}) {
|
|
3610
3618
|
var e, r;
|
|
3611
|
-
await
|
|
3612
|
-
let n = t.indexURL || await
|
|
3613
|
-
n =
|
|
3619
|
+
await wt();
|
|
3620
|
+
let n = t.indexURL || await rr();
|
|
3621
|
+
n = ft(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
|
|
3614
3622
|
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);
|
|
3615
3623
|
(e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
|
|
3616
|
-
let i =
|
|
3617
|
-
if (o.lockFilePromise =
|
|
3624
|
+
let i = sr(a), o = i.API;
|
|
3625
|
+
if (o.lockFilePromise = tr(a.lockFileURL), typeof _createPyodideModule != "function") {
|
|
3618
3626
|
let x = `${a.indexURL}pyodide.asm.js`;
|
|
3619
3627
|
await Ue(x);
|
|
3620
3628
|
}
|
|
@@ -3625,7 +3633,7 @@ var rs = pr((as, yt) => {
|
|
|
3625
3633
|
}
|
|
3626
3634
|
let c = await _createPyodideModule(i);
|
|
3627
3635
|
if (i.exited) throw i.exited.toThrow;
|
|
3628
|
-
if (t.pyproxyToStringRepr && o.setPyProxyToStringMethod(!0), o.version !==
|
|
3636
|
+
if (t.pyproxyToStringRepr && o.setPyProxyToStringMethod(!0), o.version !== pt && a.checkAPIVersion) throw new Error(`Pyodide version does not match: '${pt}' <==> '${o.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);
|
|
3629
3637
|
c.locateFile = (x) => {
|
|
3630
3638
|
throw new Error("Didn't expect to load any more file_packager files!");
|
|
3631
3639
|
};
|
|
@@ -3634,15 +3642,15 @@ var rs = pr((as, yt) => {
|
|
|
3634
3642
|
let w = o.finalizeBootstrap(l, t._snapshotDeserializer);
|
|
3635
3643
|
return o.sys.path.insert(0, o.config.env.HOME), w.version.includes("dev") || o.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${w.version}/full/`), o._pyodide.set_excepthook(), await o.packageIndexReady, o.initializeStreams(a.stdin, a.stdout, a.stderr), w;
|
|
3636
3644
|
}
|
|
3637
|
-
k(
|
|
3638
|
-
const
|
|
3639
|
-
function
|
|
3640
|
-
return t.includes("dev") &&
|
|
3645
|
+
k(ht, "loadPyodide");
|
|
3646
|
+
const Wn = !1;
|
|
3647
|
+
function Jn(t) {
|
|
3648
|
+
return t.includes("dev") && Wn ? "dev" : `v${pt}`;
|
|
3641
3649
|
}
|
|
3642
3650
|
function Te(t) {
|
|
3643
3651
|
return t.FS;
|
|
3644
3652
|
}
|
|
3645
|
-
const
|
|
3653
|
+
const mt = (t) => new TextDecoder().decode(t), _e = "notebook.py", we = "/marimo", H = {
|
|
3646
3654
|
NOTEBOOK_FILENAME: _e,
|
|
3647
3655
|
HOME_DIR: we,
|
|
3648
3656
|
createHomeDir: (t) => {
|
|
@@ -3664,12 +3672,12 @@ var rs = pr((as, yt) => {
|
|
|
3664
3672
|
},
|
|
3665
3673
|
readNotebook: (t) => {
|
|
3666
3674
|
const e = Te(t), r = `${we}/${_e}`;
|
|
3667
|
-
return
|
|
3675
|
+
return mt(e.readFile(r));
|
|
3668
3676
|
},
|
|
3669
3677
|
initNotebookCode: (t) => {
|
|
3670
3678
|
const { pyodide: e, filename: r, code: n } = t, s = Te(e), a = (i) => {
|
|
3671
3679
|
try {
|
|
3672
|
-
return
|
|
3680
|
+
return mt(s.readFile(i));
|
|
3673
3681
|
} catch {
|
|
3674
3682
|
return null;
|
|
3675
3683
|
}
|
|
@@ -3699,11 +3707,11 @@ var rs = pr((as, yt) => {
|
|
|
3699
3707
|
});
|
|
3700
3708
|
});
|
|
3701
3709
|
}
|
|
3702
|
-
function
|
|
3710
|
+
function Yn(t, e) {
|
|
3703
3711
|
if (!t)
|
|
3704
3712
|
throw new Error(e);
|
|
3705
3713
|
}
|
|
3706
|
-
class
|
|
3714
|
+
class Kn {
|
|
3707
3715
|
constructor() {
|
|
3708
3716
|
this.spans = [];
|
|
3709
3717
|
}
|
|
@@ -3745,25 +3753,25 @@ var rs = pr((as, yt) => {
|
|
|
3745
3753
|
logSpans() {
|
|
3746
3754
|
}
|
|
3747
3755
|
}
|
|
3748
|
-
const fe = new
|
|
3756
|
+
const fe = new Kn();
|
|
3749
3757
|
globalThis.t = fe;
|
|
3750
|
-
const
|
|
3751
|
-
class
|
|
3758
|
+
const Gn = !1;
|
|
3759
|
+
class Xn {
|
|
3752
3760
|
constructor() {
|
|
3753
3761
|
this.pyodide = null;
|
|
3754
3762
|
}
|
|
3755
3763
|
get requirePyodide() {
|
|
3756
|
-
return
|
|
3764
|
+
return Yn(this.pyodide, "Pyodide not loaded"), this.pyodide;
|
|
3757
3765
|
}
|
|
3758
3766
|
async bootstrap(e) {
|
|
3759
3767
|
return await this.loadPyodideAndPackages(e);
|
|
3760
3768
|
}
|
|
3761
3769
|
async loadPyodideAndPackages(e) {
|
|
3762
|
-
if (!
|
|
3770
|
+
if (!ht)
|
|
3763
3771
|
throw new Error("loadPyodide is not defined");
|
|
3764
3772
|
const r = fe.startSpan("loadPyodide");
|
|
3765
3773
|
try {
|
|
3766
|
-
const n = await
|
|
3774
|
+
const n = await ht({
|
|
3767
3775
|
// Perf: These get loaded while pyodide is being bootstrapped
|
|
3768
3776
|
packages: [
|
|
3769
3777
|
"micropip",
|
|
@@ -3773,7 +3781,7 @@ var rs = pr((as, yt) => {
|
|
|
3773
3781
|
"narwhals",
|
|
3774
3782
|
"packaging"
|
|
3775
3783
|
],
|
|
3776
|
-
_makeSnapshot:
|
|
3784
|
+
_makeSnapshot: Gn,
|
|
3777
3785
|
lockFileURL: `https://wasm.marimo.app/pyodide-lock.json?v=${e.version}&pyodide=${e.pyodideVersion}`,
|
|
3778
3786
|
// Without this, this fails in Firefox with
|
|
3779
3787
|
// `Could not extract indexURL path from pyodide module`
|
|
@@ -3862,50 +3870,50 @@ ${e}`;
|
|
|
3862
3870
|
}), a.end();
|
|
3863
3871
|
}
|
|
3864
3872
|
}
|
|
3865
|
-
async function
|
|
3873
|
+
async function Qn(t) {
|
|
3866
3874
|
try {
|
|
3867
3875
|
return await import(
|
|
3868
3876
|
/* @vite-ignore */
|
|
3869
3877
|
`/wasm/controller.js?version=${t}`
|
|
3870
3878
|
);
|
|
3871
3879
|
} catch {
|
|
3872
|
-
return new
|
|
3880
|
+
return new Xn();
|
|
3873
3881
|
}
|
|
3874
3882
|
}
|
|
3875
|
-
async function
|
|
3883
|
+
async function es() {
|
|
3876
3884
|
var t;
|
|
3877
3885
|
try {
|
|
3878
|
-
const e =
|
|
3886
|
+
const e = rs(), r = Jn(e), n = await Qn(e);
|
|
3879
3887
|
self.controller = n, self.pyodide = await n.bootstrap({
|
|
3880
3888
|
version: e,
|
|
3881
3889
|
pyodideVersion: r
|
|
3882
3890
|
}), await ((t = n.mountFilesystem) == null ? void 0 : t.call(n, {
|
|
3883
3891
|
code: "",
|
|
3884
3892
|
filename: null
|
|
3885
|
-
})),
|
|
3893
|
+
})), yt.send.initialized({});
|
|
3886
3894
|
} catch (e) {
|
|
3887
|
-
xe.error("Error bootstrapping", e),
|
|
3895
|
+
xe.error("Error bootstrapping", e), yt.send.initializedError({ error: Tn(e) });
|
|
3888
3896
|
}
|
|
3889
3897
|
}
|
|
3890
|
-
const
|
|
3891
|
-
readFile: async (t) => (await
|
|
3892
|
-
readNotebook: async () => (await
|
|
3898
|
+
const at = es(), ts = {
|
|
3899
|
+
readFile: async (t) => (await at, mt(self.pyodide.FS.readFile(t))),
|
|
3900
|
+
readNotebook: async () => (await at, H.readNotebook(self.pyodide)),
|
|
3893
3901
|
saveNotebook: async (t) => {
|
|
3894
|
-
await
|
|
3902
|
+
await at, await self.pyodide.runPython(`
|
|
3895
3903
|
from marimo._pyodide.bootstrap import save_file
|
|
3896
3904
|
|
|
3897
3905
|
save_file
|
|
3898
3906
|
`)(JSON.stringify(t), H.NOTEBOOK_FILENAME), await H.persistFilesToRemote(self.pyodide);
|
|
3899
3907
|
}
|
|
3900
|
-
},
|
|
3901
|
-
transport:
|
|
3902
|
-
transportId:
|
|
3908
|
+
}, yt = An({
|
|
3909
|
+
transport: Zn({
|
|
3910
|
+
transportId: $n
|
|
3903
3911
|
}),
|
|
3904
|
-
requestHandler:
|
|
3912
|
+
requestHandler: ts
|
|
3905
3913
|
});
|
|
3906
|
-
|
|
3907
|
-
function
|
|
3914
|
+
yt.send("ready", {});
|
|
3915
|
+
function rs() {
|
|
3908
3916
|
return self.name;
|
|
3909
3917
|
}
|
|
3910
3918
|
});
|
|
3911
|
-
export default
|
|
3919
|
+
export default ns();
|