@marimo-team/islands 0.13.4-dev9 → 0.13.5-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-iF3I4Rvd.js → ConnectedDataExplorerComponent-BkYu7DB5.js} +4 -4
- package/dist/{VegaLite-DlgltXhn.js → VegaLite-Bo5laSaC.js} +3 -3
- package/dist/{_baseUniq-CD67Unod.js → _baseUniq-B9p7NEPc.js} +1 -1
- package/dist/{any-language-editor-BSYIqSFq.js → any-language-editor-7h4Y3ekh.js} +13 -13
- package/dist/{architectureDiagram-IEHRJDOE-_LWmGbWY.js → architectureDiagram-IEHRJDOE-D1vsB9eS.js} +5 -5
- package/dist/assets/{save-worker-CYdkP5Ic.js → save-worker-9JEjyZ7F.js} +83 -76
- package/dist/assets/{worker-Bigsodg4.js → worker-C9lFbiFX.js} +157 -150
- package/dist/assets/{worker-DEw2ZetQ.js → worker-CCjA_vqR.js} +101 -94
- package/dist/{blockDiagram-JOT3LUYC-BLOgOfVL.js → blockDiagram-JOT3LUYC--H6Hc91H.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-DyjcbgdF.js → c4Diagram-VJAJSXHY-BSbRVwkx.js} +2 -2
- package/dist/{channel-CCyZwtB7.js → channel-CuWl4dEj.js} +1 -1
- package/dist/{chunk-4BMEZGHF-EyZiaIzC.js → chunk-4BMEZGHF-NcsvNyPh.js} +1 -1
- package/dist/{chunk-A2AXSNBT-C7mDpsCE.js → chunk-A2AXSNBT-D_tacoFL.js} +2 -2
- package/dist/{chunk-AEK57VVT-CdWzPT6R.js → chunk-AEK57VVT-BpCbHEnZ.js} +2 -2
- package/dist/{chunk-D6G4REZN-CuYJpgxK.js → chunk-D6G4REZN-Db0jHCFs.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-BORzG2Il.js → chunk-RZ5BOZE2-C3r6WiIM.js} +1 -1
- package/dist/{chunk-XZIHB7SX-C5v_APGW.js → chunk-XZIHB7SX-DprdolX7.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-Bk952L7V.js → classDiagram-GIVACNV2-CCcLk0sB.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-Bk952L7V.js → classDiagram-v2-COTLJTTW-CCcLk0sB.js} +2 -2
- package/dist/{clone-CcNPZV0o.js → clone-D8vYtD9P.js} +1 -1
- package/dist/{dagre-OKDRZEBW-DLQnlyHy.js → dagre-OKDRZEBW-eBunauMS.js} +6 -6
- package/dist/{data-editor-BD0NJfh2.js → data-editor-CgzL7OdM.js} +2026 -2022
- package/dist/{diagram-SSKATNLV-DZq85-8d.js → diagram-SSKATNLV-BSmn9h4o.js} +3 -3
- package/dist/{diagram-VNBRO52H-BbYPB8zn.js → diagram-VNBRO52H-BjnnbJt_.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-BfOaAQGi.js → erDiagram-Q7BY3M3F-CQ7hxUsv.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-CkLor1ZP.js → flowDiagram-4HSFHLVR-DytCU6lm.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-CenSNv7J.js → ganttDiagram-APWFNJXF-C5fYyVxF.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S-DHmbXLVj.js → gitGraphDiagram-7IBYFJ6S-CgYZoaRD.js} +4 -4
- package/dist/{graph-D1kf3AKn.js → graph-sKcxdNv6.js} +3 -3
- package/dist/{index-Bx2QjnFU.js → index-BHDZG2gp.js} +1 -1
- package/dist/{index-Bku4KwYa.js → index-BSgvASB1.js} +1 -1
- package/dist/{index-7lMtw2hv.js → index-BUiLNOXD.js} +1 -1
- package/dist/{index-DdG5m41i.js → index-BgVK7Dzm.js} +3 -3
- package/dist/{index-BQ6KI66Y.js → index-Bsb2zuOb.js} +1 -1
- package/dist/{index-_1hyUH3v.js → index-CEdCzhYJ.js} +1 -1
- package/dist/{index-BxdmcSav.js → index-Cgj78hj4.js} +1 -1
- package/dist/{index-CBvgh-0Z.js → index-Ckf5_ttt.js} +1 -1
- package/dist/{index-BPccWEs_.js → index-Cno9zIU1.js} +1 -1
- package/dist/{index-ANhEjjiF.js → index-D1niMfYU.js} +1 -1
- package/dist/{index-Uvu5X0KF.js → index-D3XBSWTK.js} +1 -1
- package/dist/{index-YRr63np8.js → index-DPpF2yt5.js} +1 -1
- package/dist/{index-Dfoj_u5H.js → index-DZ4gjGUF.js} +1 -1
- package/dist/{index-D7iVcxT4.js → index-G8In6htP.js} +1 -1
- package/dist/{index-CEu1qyew.js → index-HM1FiKnd.js} +1 -1
- package/dist/{index-C6d_xezo.js → index-TI2HuK0u.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-NfpyyRwF.js → infoDiagram-PH2N3AL5-BDsI6lEZ.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-CJKIghVD.js → journeyDiagram-U35MCT3I-DpPUTIIv.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-Cd9DIv6f.js → kanban-definition-NDS4AKOZ-DL_J8GjP.js} +1 -1
- package/dist/{katex-BBtz5V9r.js → katex-9tX9hjoM.js} +9 -4
- package/dist/{layout-ejnBCchG.js → layout-DoJFP2le.js} +4 -4
- package/dist/{linear-C4WY8CAi.js → linear-DFeGLAoC.js} +1 -1
- package/dist/{main-DggjyDzA.js → main-DyHeTurG.js} +17715 -17678
- package/dist/main.js +1 -1
- package/dist/{mermaid-8eknRJ6K.js → mermaid-DTszTkIB.js} +29 -29
- package/dist/{mhchem-BrktSns0.js → mhchem-L5-rce7L.js} +1 -1
- package/dist/{min-CnrKLuNx.js → min-D52ROPCb.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-Cge8F4my.js → mindmap-definition-ALO5MXBD-pW1g2Nlh.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-B5kjY9mP.js → pieDiagram-IB7DONF6-BfW7YtZY.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-Zv3XhQXg.js → quadrantDiagram-7GDLP6J5-D7Jl4H97.js} +2 -2
- package/dist/{radar-MK3ICKWK-D6vpJHP-.js → radar-MK3ICKWK-B1KLLUTY.js} +5 -5
- package/dist/{react-plotly-DSRzxNI0.js → react-plotly-Bnj_l7AZ.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CAdLeiBM.js → requirementDiagram-KVF5MWMF-BUFZjE8g.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-62OxPrwC.js → sankeyDiagram-QLVOVGJD-DPzbw-be.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-BPWsSyC_.js → sequenceDiagram-X6HHIX6F-DO-nenj2.js} +3 -3
- package/dist/{slides-component-8bGn96qA.js → slides-component-ktWq91_a.js} +1 -1
- package/dist/{stateDiagram-DGXRK772-CXVKVIIF.js → stateDiagram-DGXRK772-D9wrVM3b.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-CLnqNOAb.js → stateDiagram-v2-YXO3MK2T-CfBjkbKP.js} +2 -2
- package/dist/{time-C6wXWz05.js → time-Cycf9qko.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-DMV-g6yY.js → timeline-definition-BDJGKUSR-C3srCX8s.js} +1 -1
- package/dist/{vega-component-DfFIiHv3.js → vega-component-C-CQtied.js} +2 -2
- package/dist/{xychartDiagram-VJFVF3MP-DOrh7Zn5.js → xychartDiagram-VJFVF3MP-dFmxJES_.js} +2 -2
- package/package.json +23 -23
|
@@ -165,7 +165,7 @@ var os = yr((ls, pt) => {
|
|
|
165
165
|
"never",
|
|
166
166
|
"map",
|
|
167
167
|
"set"
|
|
168
|
-
]),
|
|
168
|
+
]), H = (t) => {
|
|
169
169
|
switch (typeof t) {
|
|
170
170
|
case "undefined":
|
|
171
171
|
return p.undefined;
|
|
@@ -410,7 +410,7 @@ var os = yr((ls, pt) => {
|
|
|
410
410
|
const y = Object.freeze({
|
|
411
411
|
status: "aborted"
|
|
412
412
|
}), ye = (t) => ({ status: "dirty", value: t }), C = (t) => ({ status: "valid", value: t }), at = (t) => t.status === "aborted", it = (t) => t.status === "dirty", ce = (t) => t.status === "valid", Ee = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
413
|
-
function
|
|
413
|
+
function He(t, e, r, n) {
|
|
414
414
|
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");
|
|
415
415
|
return e.get(t);
|
|
416
416
|
}
|
|
@@ -463,13 +463,13 @@ var os = yr((ls, pt) => {
|
|
|
463
463
|
return this._def.description;
|
|
464
464
|
}
|
|
465
465
|
_getType(e) {
|
|
466
|
-
return
|
|
466
|
+
return H(e.data);
|
|
467
467
|
}
|
|
468
468
|
_getOrReturnCtx(e, r) {
|
|
469
469
|
return r || {
|
|
470
470
|
common: e.parent.common,
|
|
471
471
|
data: e.data,
|
|
472
|
-
parsedType:
|
|
472
|
+
parsedType: H(e.data),
|
|
473
473
|
schemaErrorMap: this._def.errorMap,
|
|
474
474
|
path: e.path,
|
|
475
475
|
parent: e.parent
|
|
@@ -481,7 +481,7 @@ var os = yr((ls, pt) => {
|
|
|
481
481
|
ctx: {
|
|
482
482
|
common: e.parent.common,
|
|
483
483
|
data: e.data,
|
|
484
|
-
parsedType:
|
|
484
|
+
parsedType: H(e.data),
|
|
485
485
|
schemaErrorMap: this._def.errorMap,
|
|
486
486
|
path: e.path,
|
|
487
487
|
parent: e.parent
|
|
@@ -516,7 +516,7 @@ var os = yr((ls, pt) => {
|
|
|
516
516
|
schemaErrorMap: this._def.errorMap,
|
|
517
517
|
parent: null,
|
|
518
518
|
data: e,
|
|
519
|
-
parsedType:
|
|
519
|
+
parsedType: H(e)
|
|
520
520
|
}, a = this._parseSync({ data: e, path: s.path, parent: s });
|
|
521
521
|
return bt(s, a);
|
|
522
522
|
}
|
|
@@ -531,7 +531,7 @@ var os = yr((ls, pt) => {
|
|
|
531
531
|
schemaErrorMap: this._def.errorMap,
|
|
532
532
|
parent: null,
|
|
533
533
|
data: e,
|
|
534
|
-
parsedType:
|
|
534
|
+
parsedType: H(e)
|
|
535
535
|
};
|
|
536
536
|
if (!this["~standard"].async)
|
|
537
537
|
try {
|
|
@@ -570,7 +570,7 @@ var os = yr((ls, pt) => {
|
|
|
570
570
|
schemaErrorMap: this._def.errorMap,
|
|
571
571
|
parent: null,
|
|
572
572
|
data: e,
|
|
573
|
-
parsedType:
|
|
573
|
+
parsedType: H(e)
|
|
574
574
|
}, s = this._parse({ data: e, path: n.path, parent: n }), a = await (Ee(s) ? s : Promise.resolve(s));
|
|
575
575
|
return bt(n, a);
|
|
576
576
|
}
|
|
@@ -588,7 +588,7 @@ var os = yr((ls, pt) => {
|
|
|
588
588
|
return this._refinement((n, s) => e(n) ? !0 : (s.addIssue(typeof r == "function" ? r(n, s) : r), !1));
|
|
589
589
|
}
|
|
590
590
|
_refinement(e) {
|
|
591
|
-
return new
|
|
591
|
+
return new $({
|
|
592
592
|
schema: this,
|
|
593
593
|
typeName: m.ZodEffects,
|
|
594
594
|
effect: { type: "refinement", refinement: e }
|
|
@@ -614,7 +614,7 @@ var os = yr((ls, pt) => {
|
|
|
614
614
|
return this.nullable().optional();
|
|
615
615
|
}
|
|
616
616
|
array() {
|
|
617
|
-
return
|
|
617
|
+
return M.create(this);
|
|
618
618
|
}
|
|
619
619
|
promise() {
|
|
620
620
|
return we.create(this, this._def);
|
|
@@ -626,7 +626,7 @@ var os = yr((ls, pt) => {
|
|
|
626
626
|
return Ce.create(this, e, this._def);
|
|
627
627
|
}
|
|
628
628
|
transform(e) {
|
|
629
|
-
return new
|
|
629
|
+
return new $({
|
|
630
630
|
...v(this._def),
|
|
631
631
|
schema: this,
|
|
632
632
|
typeName: m.ZodEffects,
|
|
@@ -635,7 +635,7 @@ var os = yr((ls, pt) => {
|
|
|
635
635
|
}
|
|
636
636
|
default(e) {
|
|
637
637
|
const r = typeof e == "function" ? e : () => e;
|
|
638
|
-
return new
|
|
638
|
+
return new Me({
|
|
639
639
|
...v(this._def),
|
|
640
640
|
innerType: this,
|
|
641
641
|
defaultValue: r,
|
|
@@ -651,7 +651,7 @@ var os = yr((ls, pt) => {
|
|
|
651
651
|
}
|
|
652
652
|
catch(e) {
|
|
653
653
|
const r = typeof e == "function" ? e : () => e;
|
|
654
|
-
return new
|
|
654
|
+
return new $e({
|
|
655
655
|
...v(this._def),
|
|
656
656
|
innerType: this,
|
|
657
657
|
catchValue: r,
|
|
@@ -669,7 +669,7 @@ var os = yr((ls, pt) => {
|
|
|
669
669
|
return Le.create(this, e);
|
|
670
670
|
}
|
|
671
671
|
readonly() {
|
|
672
|
-
return
|
|
672
|
+
return Fe.create(this);
|
|
673
673
|
}
|
|
674
674
|
isOptional() {
|
|
675
675
|
return this.safeParse(void 0).success;
|
|
@@ -680,7 +680,7 @@ var os = yr((ls, pt) => {
|
|
|
680
680
|
}
|
|
681
681
|
const xr = /^c[^\s-]{8,}$/i, Sr = /^[0-9a-z]+$/, Tr = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Er = /^[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, Or = /^[a-z0-9_-]{21}$/i, Nr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Rr = /^[-+]?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)?)??$/, Ar = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Cr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
682
682
|
let tt;
|
|
683
|
-
const Ir = /^(?:(?: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])$/, Pr = /^(?:(?: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])$/, Zr = /^(([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]))$/, jr = /^(([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])$/,
|
|
683
|
+
const Ir = /^(?:(?: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])$/, Pr = /^(?:(?: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])$/, Zr = /^(([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]))$/, jr = /^(([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])$/, Mr = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, $r = /^([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])))", Fr = new RegExp(`^${It}$`);
|
|
684
684
|
function Pt(t) {
|
|
685
685
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
686
686
|
return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
@@ -829,7 +829,7 @@ var os = yr((ls, pt) => {
|
|
|
829
829
|
code: l.invalid_string,
|
|
830
830
|
validation: "datetime",
|
|
831
831
|
message: a.message
|
|
832
|
-
}), n.dirty()) : a.kind === "date" ?
|
|
832
|
+
}), n.dirty()) : a.kind === "date" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
833
833
|
code: l.invalid_string,
|
|
834
834
|
validation: "date",
|
|
835
835
|
message: a.message
|
|
@@ -853,11 +853,11 @@ var os = yr((ls, pt) => {
|
|
|
853
853
|
validation: "cidr",
|
|
854
854
|
code: l.invalid_string,
|
|
855
855
|
message: a.message
|
|
856
|
-
}), n.dirty()) : a.kind === "base64" ?
|
|
856
|
+
}), n.dirty()) : a.kind === "base64" ? Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
857
857
|
validation: "base64",
|
|
858
858
|
code: l.invalid_string,
|
|
859
859
|
message: a.message
|
|
860
|
-
}), n.dirty()) : a.kind === "base64url" ?
|
|
860
|
+
}), n.dirty()) : a.kind === "base64url" ? $r.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
861
861
|
validation: "base64url",
|
|
862
862
|
code: l.invalid_string,
|
|
863
863
|
message: a.message
|
|
@@ -1504,7 +1504,7 @@ var os = yr((ls, pt) => {
|
|
|
1504
1504
|
typeName: m.ZodDate,
|
|
1505
1505
|
...v(t)
|
|
1506
1506
|
});
|
|
1507
|
-
class
|
|
1507
|
+
class We extends _ {
|
|
1508
1508
|
_parse(e) {
|
|
1509
1509
|
if (this._getType(e) !== p.symbol) {
|
|
1510
1510
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1517,7 +1517,7 @@ var os = yr((ls, pt) => {
|
|
|
1517
1517
|
return C(e.data);
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
|
|
1520
|
+
We.create = (t) => new We({
|
|
1521
1521
|
typeName: m.ZodSymbol,
|
|
1522
1522
|
...v(t)
|
|
1523
1523
|
});
|
|
@@ -1610,7 +1610,7 @@ var os = yr((ls, pt) => {
|
|
|
1610
1610
|
typeName: m.ZodVoid,
|
|
1611
1611
|
...v(t)
|
|
1612
1612
|
});
|
|
1613
|
-
class
|
|
1613
|
+
class M extends _ {
|
|
1614
1614
|
_parse(e) {
|
|
1615
1615
|
const { ctx: r, status: n } = this._processInputParams(e), s = this._def;
|
|
1616
1616
|
if (r.parsedType !== p.array)
|
|
@@ -1654,19 +1654,19 @@ var os = yr((ls, pt) => {
|
|
|
1654
1654
|
return this._def.type;
|
|
1655
1655
|
}
|
|
1656
1656
|
min(e, r) {
|
|
1657
|
-
return new
|
|
1657
|
+
return new M({
|
|
1658
1658
|
...this._def,
|
|
1659
1659
|
minLength: { value: e, message: h.toString(r) }
|
|
1660
1660
|
});
|
|
1661
1661
|
}
|
|
1662
1662
|
max(e, r) {
|
|
1663
|
-
return new
|
|
1663
|
+
return new M({
|
|
1664
1664
|
...this._def,
|
|
1665
1665
|
maxLength: { value: e, message: h.toString(r) }
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
1668
|
length(e, r) {
|
|
1669
|
-
return new
|
|
1669
|
+
return new M({
|
|
1670
1670
|
...this._def,
|
|
1671
1671
|
exactLength: { value: e, message: h.toString(r) }
|
|
1672
1672
|
});
|
|
@@ -1675,7 +1675,7 @@ var os = yr((ls, pt) => {
|
|
|
1675
1675
|
return this.min(1, e);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
|
|
1678
|
+
M.create = (t, e) => new M({
|
|
1679
1679
|
type: t,
|
|
1680
1680
|
minLength: null,
|
|
1681
1681
|
maxLength: null,
|
|
@@ -1694,7 +1694,7 @@ var os = yr((ls, pt) => {
|
|
|
1694
1694
|
...t._def,
|
|
1695
1695
|
shape: () => e
|
|
1696
1696
|
});
|
|
1697
|
-
} else return t instanceof
|
|
1697
|
+
} else return t instanceof M ? new M({
|
|
1698
1698
|
...t._def,
|
|
1699
1699
|
type: fe(t.element)
|
|
1700
1700
|
}) : t instanceof D ? D.create(fe(t.unwrap())) : t instanceof Q ? Q.create(fe(t.unwrap())) : t instanceof z ? z.create(t.items.map((e) => fe(e))) : t;
|
|
@@ -2059,7 +2059,7 @@ var os = yr((ls, pt) => {
|
|
|
2059
2059
|
typeName: m.ZodUnion,
|
|
2060
2060
|
...v(e)
|
|
2061
2061
|
});
|
|
2062
|
-
const B = (t) => t instanceof Pe ? B(t.schema) : t instanceof
|
|
2062
|
+
const B = (t) => t instanceof Pe ? B(t.schema) : t instanceof $ ? B(t.innerType()) : t instanceof Ze ? [t.value] : t instanceof X ? t.options : t instanceof je ? k.objectValues(t.enum) : t instanceof Me ? B(t._def.innerType) : t instanceof Ne ? [void 0] : t instanceof Re ? [null] : t instanceof D ? [void 0, ...B(t.unwrap())] : t instanceof Q ? [null, ...B(t.unwrap())] : t instanceof ht || t instanceof Fe ? B(t.unwrap()) : t instanceof $e ? B(t._def.innerType) : [];
|
|
2063
2063
|
class Xe extends _ {
|
|
2064
2064
|
_parse(e) {
|
|
2065
2065
|
const { ctx: r } = this._processInputParams(e);
|
|
@@ -2123,7 +2123,7 @@ var os = yr((ls, pt) => {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
2125
|
function ot(t, e) {
|
|
2126
|
-
const r =
|
|
2126
|
+
const r = H(t), n = H(e);
|
|
2127
2127
|
if (t === e)
|
|
2128
2128
|
return { valid: !0, data: t };
|
|
2129
2129
|
if (r === p.object && n === p.object) {
|
|
@@ -2545,7 +2545,7 @@ var os = yr((ls, pt) => {
|
|
|
2545
2545
|
code: l.invalid_type
|
|
2546
2546
|
}), y;
|
|
2547
2547
|
}
|
|
2548
|
-
if (
|
|
2548
|
+
if (He(this, Se) || Ct(this, Se, new Set(this._def.values)), !He(this, Se).has(e.data)) {
|
|
2549
2549
|
const r = this._getOrReturnCtx(e), n = this._def.values;
|
|
2550
2550
|
return f(r, {
|
|
2551
2551
|
received: r.data,
|
|
@@ -2605,7 +2605,7 @@ var os = yr((ls, pt) => {
|
|
|
2605
2605
|
code: l.invalid_type
|
|
2606
2606
|
}), y;
|
|
2607
2607
|
}
|
|
2608
|
-
if (
|
|
2608
|
+
if (He(this, Te) || Ct(this, Te, new Set(k.getValidEnumValues(this._def.values))), !He(this, Te).has(e.data)) {
|
|
2609
2609
|
const s = k.objectValues(r);
|
|
2610
2610
|
return f(n, {
|
|
2611
2611
|
received: n.data,
|
|
@@ -2649,7 +2649,7 @@ var os = yr((ls, pt) => {
|
|
|
2649
2649
|
typeName: m.ZodPromise,
|
|
2650
2650
|
...v(e)
|
|
2651
2651
|
});
|
|
2652
|
-
class
|
|
2652
|
+
class $ extends _ {
|
|
2653
2653
|
innerType() {
|
|
2654
2654
|
return this._def.schema;
|
|
2655
2655
|
}
|
|
@@ -2726,13 +2726,13 @@ var os = yr((ls, pt) => {
|
|
|
2726
2726
|
k.assertNever(s);
|
|
2727
2727
|
}
|
|
2728
2728
|
}
|
|
2729
|
-
|
|
2729
|
+
$.create = (t, e, r) => new $({
|
|
2730
2730
|
schema: t,
|
|
2731
2731
|
typeName: m.ZodEffects,
|
|
2732
2732
|
effect: e,
|
|
2733
2733
|
...v(r)
|
|
2734
2734
|
});
|
|
2735
|
-
|
|
2735
|
+
$.createWithPreprocess = (t, e, r) => new $({
|
|
2736
2736
|
schema: e,
|
|
2737
2737
|
effect: { type: "preprocess", transform: t },
|
|
2738
2738
|
typeName: m.ZodEffects,
|
|
@@ -2764,7 +2764,7 @@ var os = yr((ls, pt) => {
|
|
|
2764
2764
|
typeName: m.ZodNullable,
|
|
2765
2765
|
...v(e)
|
|
2766
2766
|
});
|
|
2767
|
-
class
|
|
2767
|
+
class Me extends _ {
|
|
2768
2768
|
_parse(e) {
|
|
2769
2769
|
const { ctx: r } = this._processInputParams(e);
|
|
2770
2770
|
let n = r.data;
|
|
@@ -2778,13 +2778,13 @@ var os = yr((ls, pt) => {
|
|
|
2778
2778
|
return this._def.innerType;
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
|
-
|
|
2781
|
+
Me.create = (t, e) => new Me({
|
|
2782
2782
|
innerType: t,
|
|
2783
2783
|
typeName: m.ZodDefault,
|
|
2784
2784
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
2785
2785
|
...v(e)
|
|
2786
2786
|
});
|
|
2787
|
-
class
|
|
2787
|
+
class $e extends _ {
|
|
2788
2788
|
_parse(e) {
|
|
2789
2789
|
const { ctx: r } = this._processInputParams(e), n = {
|
|
2790
2790
|
...r,
|
|
@@ -2821,7 +2821,7 @@ var os = yr((ls, pt) => {
|
|
|
2821
2821
|
return this._def.innerType;
|
|
2822
2822
|
}
|
|
2823
2823
|
}
|
|
2824
|
-
|
|
2824
|
+
$e.create = (t, e) => new $e({
|
|
2825
2825
|
innerType: t,
|
|
2826
2826
|
typeName: m.ZodCatch,
|
|
2827
2827
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
@@ -2898,7 +2898,7 @@ var os = yr((ls, pt) => {
|
|
|
2898
2898
|
});
|
|
2899
2899
|
}
|
|
2900
2900
|
}
|
|
2901
|
-
class
|
|
2901
|
+
class Fe extends _ {
|
|
2902
2902
|
_parse(e) {
|
|
2903
2903
|
const r = this._def.innerType._parse(e), n = (s) => (ce(s) && (s.value = Object.freeze(s.value)), s);
|
|
2904
2904
|
return Ee(r) ? r.then((s) => n(s)) : n(r);
|
|
@@ -2907,7 +2907,7 @@ var os = yr((ls, pt) => {
|
|
|
2907
2907
|
return this._def.innerType;
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
|
-
|
|
2910
|
+
Fe.create = (t, e) => new Fe({
|
|
2911
2911
|
innerType: t,
|
|
2912
2912
|
typeName: m.ZodReadonly,
|
|
2913
2913
|
...v(e)
|
|
@@ -2916,7 +2916,7 @@ var os = yr((ls, pt) => {
|
|
|
2916
2916
|
const r = typeof t == "function" ? t(e) : typeof t == "string" ? { message: t } : t;
|
|
2917
2917
|
return typeof r == "string" ? { message: r } : r;
|
|
2918
2918
|
}
|
|
2919
|
-
function
|
|
2919
|
+
function Mt(t, e = {}, r) {
|
|
2920
2920
|
return t ? _e.create().superRefine((n, s) => {
|
|
2921
2921
|
var a, i;
|
|
2922
2922
|
const o = t(n);
|
|
@@ -2941,9 +2941,9 @@ var os = yr((ls, pt) => {
|
|
|
2941
2941
|
(function(t) {
|
|
2942
2942
|
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";
|
|
2943
2943
|
})(m || (m = {}));
|
|
2944
|
-
const
|
|
2944
|
+
const Hr = (t, e = {
|
|
2945
2945
|
message: `Input not instance of ${t.name}`
|
|
2946
|
-
}) =>
|
|
2946
|
+
}) => Mt((r) => r instanceof t, e), $t = j.create, Ft = K.create, Wr = Ke.create, Jr = G.create, Lt = Oe.create, Yr = de.create, Kr = We.create, Gr = Ne.create, Xr = Re.create, Qr = _e.create, en = oe.create, tn = J.create, rn = Je.create, nn = M.create, sn = E.create, an = E.strictCreate, on = Ae.create, cn = Xe.create, dn = Ce.create, ln = z.create, un = Ie.create, fn = Ye.create, pn = le.create, hn = ge.create, mn = Pe.create, yn = Ze.create, gn = X.create, vn = je.create, _n = we.create, St = $.create, wn = D.create, kn = Q.create, bn = $.createWithPreprocess, xn = Le.create, Sn = () => $t().optional(), Tn = () => Ft().optional(), En = () => Lt().optional(), On = {
|
|
2947
2947
|
string: (t) => j.create({ ...t, coerce: !0 }),
|
|
2948
2948
|
number: (t) => K.create({ ...t, coerce: !0 }),
|
|
2949
2949
|
boolean: (t) => Oe.create({
|
|
@@ -2976,7 +2976,7 @@ var os = yr((ls, pt) => {
|
|
|
2976
2976
|
return st;
|
|
2977
2977
|
},
|
|
2978
2978
|
ZodParsedType: p,
|
|
2979
|
-
getParsedType:
|
|
2979
|
+
getParsedType: H,
|
|
2980
2980
|
ZodType: _,
|
|
2981
2981
|
datetimeRegex: Zt,
|
|
2982
2982
|
ZodString: j,
|
|
@@ -2984,14 +2984,14 @@ var os = yr((ls, pt) => {
|
|
|
2984
2984
|
ZodBigInt: G,
|
|
2985
2985
|
ZodBoolean: Oe,
|
|
2986
2986
|
ZodDate: de,
|
|
2987
|
-
ZodSymbol:
|
|
2987
|
+
ZodSymbol: We,
|
|
2988
2988
|
ZodUndefined: Ne,
|
|
2989
2989
|
ZodNull: Re,
|
|
2990
2990
|
ZodAny: _e,
|
|
2991
2991
|
ZodUnknown: oe,
|
|
2992
2992
|
ZodNever: J,
|
|
2993
2993
|
ZodVoid: Je,
|
|
2994
|
-
ZodArray:
|
|
2994
|
+
ZodArray: M,
|
|
2995
2995
|
ZodObject: E,
|
|
2996
2996
|
ZodUnion: Ae,
|
|
2997
2997
|
ZodDiscriminatedUnion: Xe,
|
|
@@ -3006,18 +3006,18 @@ var os = yr((ls, pt) => {
|
|
|
3006
3006
|
ZodEnum: X,
|
|
3007
3007
|
ZodNativeEnum: je,
|
|
3008
3008
|
ZodPromise: we,
|
|
3009
|
-
ZodEffects:
|
|
3010
|
-
ZodTransformer:
|
|
3009
|
+
ZodEffects: $,
|
|
3010
|
+
ZodTransformer: $,
|
|
3011
3011
|
ZodOptional: D,
|
|
3012
3012
|
ZodNullable: Q,
|
|
3013
|
-
ZodDefault:
|
|
3014
|
-
ZodCatch:
|
|
3013
|
+
ZodDefault: Me,
|
|
3014
|
+
ZodCatch: $e,
|
|
3015
3015
|
ZodNaN: Ke,
|
|
3016
3016
|
BRAND: Ur,
|
|
3017
3017
|
ZodBranded: ht,
|
|
3018
3018
|
ZodPipeline: Le,
|
|
3019
|
-
ZodReadonly:
|
|
3020
|
-
custom:
|
|
3019
|
+
ZodReadonly: Fe,
|
|
3020
|
+
custom: Mt,
|
|
3021
3021
|
Schema: _,
|
|
3022
3022
|
ZodSchema: _,
|
|
3023
3023
|
late: Br,
|
|
@@ -3034,17 +3034,17 @@ var os = yr((ls, pt) => {
|
|
|
3034
3034
|
effect: St,
|
|
3035
3035
|
enum: gn,
|
|
3036
3036
|
function: hn,
|
|
3037
|
-
instanceof:
|
|
3037
|
+
instanceof: Hr,
|
|
3038
3038
|
intersection: dn,
|
|
3039
3039
|
lazy: mn,
|
|
3040
3040
|
literal: yn,
|
|
3041
3041
|
map: fn,
|
|
3042
|
-
nan:
|
|
3042
|
+
nan: Wr,
|
|
3043
3043
|
nativeEnum: vn,
|
|
3044
3044
|
never: tn,
|
|
3045
3045
|
null: Xr,
|
|
3046
3046
|
nullable: kn,
|
|
3047
|
-
number:
|
|
3047
|
+
number: Ft,
|
|
3048
3048
|
object: sn,
|
|
3049
3049
|
oboolean: En,
|
|
3050
3050
|
onumber: Tn,
|
|
@@ -3056,7 +3056,7 @@ var os = yr((ls, pt) => {
|
|
|
3056
3056
|
record: un,
|
|
3057
3057
|
set: pn,
|
|
3058
3058
|
strictObject: an,
|
|
3059
|
-
string:
|
|
3059
|
+
string: $t,
|
|
3060
3060
|
symbol: Kr,
|
|
3061
3061
|
transformer: St,
|
|
3062
3062
|
tuple: ln,
|
|
@@ -3148,14 +3148,14 @@ var os = yr((ls, pt) => {
|
|
|
3148
3148
|
var ue;
|
|
3149
3149
|
if (!n.send)
|
|
3150
3150
|
throw Ve(["send"], "make requests");
|
|
3151
|
-
const
|
|
3151
|
+
const F = d(), re = {
|
|
3152
3152
|
type: "request",
|
|
3153
|
-
id:
|
|
3153
|
+
id: F,
|
|
3154
3154
|
method: g,
|
|
3155
3155
|
params: O
|
|
3156
3156
|
};
|
|
3157
|
-
u.set(
|
|
3158
|
-
w.delete(
|
|
3157
|
+
u.set(F, { resolve: T, reject: N }), o !== 1 / 0 && w.set(F, setTimeout(() => {
|
|
3158
|
+
w.delete(F), N(new Error("RPC request timed out."));
|
|
3159
3159
|
}, o)), (ue = e.onSend) == null || ue.call(e, re), n.send(re);
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|
|
@@ -3202,14 +3202,14 @@ var os = yr((ls, pt) => {
|
|
|
3202
3202
|
if (g.type === "request") {
|
|
3203
3203
|
if (!n.send || !a)
|
|
3204
3204
|
throw Ve(["send", "requestHandler"], "handle requests");
|
|
3205
|
-
const { id: T, method: N, params:
|
|
3205
|
+
const { id: T, method: N, params: F } = g;
|
|
3206
3206
|
let re;
|
|
3207
3207
|
try {
|
|
3208
3208
|
re = {
|
|
3209
3209
|
type: "response",
|
|
3210
3210
|
id: T,
|
|
3211
3211
|
success: !0,
|
|
3212
|
-
payload: await a(N,
|
|
3212
|
+
payload: await a(N, F)
|
|
3213
3213
|
};
|
|
3214
3214
|
} catch (ue) {
|
|
3215
3215
|
if (!(ue instanceof Error))
|
|
@@ -3227,8 +3227,8 @@ var os = yr((ls, pt) => {
|
|
|
3227
3227
|
if (g.type === "response") {
|
|
3228
3228
|
const T = w.get(g.id);
|
|
3229
3229
|
T != null && clearTimeout(T);
|
|
3230
|
-
const { resolve: N, reject:
|
|
3231
|
-
g.success ? N == null || N(g.payload) :
|
|
3230
|
+
const { resolve: N, reject: F } = u.get(g.id) ?? {};
|
|
3231
|
+
g.success ? N == null || N(g.payload) : F == null || F(new Error(g.error));
|
|
3232
3232
|
return;
|
|
3233
3233
|
}
|
|
3234
3234
|
if (g.type === "message") {
|
|
@@ -3264,7 +3264,7 @@ var os = yr((ls, pt) => {
|
|
|
3264
3264
|
const { transportId: r } = e;
|
|
3265
3265
|
return r != null ? { [Vt]: r, data: t } : t;
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function Mn(t, e) {
|
|
3268
3268
|
const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
|
|
3269
3269
|
if (r != null && s != null)
|
|
3270
3270
|
throw new Error("Cannot use both `transportId` and `filter` at the same time");
|
|
@@ -3276,7 +3276,7 @@ var os = yr((ls, pt) => {
|
|
|
3276
3276
|
}
|
|
3277
3277
|
return s === !1 ? [!0] : [!1, a];
|
|
3278
3278
|
}
|
|
3279
|
-
function
|
|
3279
|
+
function $n(t, e = {}) {
|
|
3280
3280
|
const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
|
|
3281
3281
|
let o;
|
|
3282
3282
|
return {
|
|
@@ -3285,7 +3285,7 @@ var os = yr((ls, pt) => {
|
|
|
3285
3285
|
},
|
|
3286
3286
|
registerHandler(c) {
|
|
3287
3287
|
o = (d) => {
|
|
3288
|
-
const u = d.data, [w, x] =
|
|
3288
|
+
const u = d.data, [w, x] = Mn(u, {
|
|
3289
3289
|
transportId: r,
|
|
3290
3290
|
filter: () => n == null ? void 0 : n(d)
|
|
3291
3291
|
});
|
|
@@ -3297,8 +3297,8 @@ var os = yr((ls, pt) => {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
};
|
|
3299
3299
|
}
|
|
3300
|
-
function
|
|
3301
|
-
return
|
|
3300
|
+
function Fn(t) {
|
|
3301
|
+
return $n(self, t);
|
|
3302
3302
|
}
|
|
3303
3303
|
const Ln = "marimo-transport";
|
|
3304
3304
|
function zt(t, e) {
|
|
@@ -3402,7 +3402,7 @@ var os = yr((ls, pt) => {
|
|
|
3402
3402
|
}, "ErrorStackParser$$parseFFOrSafari") };
|
|
3403
3403
|
}
|
|
3404
3404
|
b(Bt, "ErrorStackParser");
|
|
3405
|
-
var qn = new Bt(), Un = qn, q = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser,
|
|
3405
|
+
var qn = new Bt(), Un = qn, q = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Ht = q && typeof pt < "u" && typeof pt.exports < "u" && typeof qt < "u" && typeof __dirname < "u", Bn = q && !Ht, Hn = typeof Deno < "u", Wt = !q && !Hn, Wn = Wt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", Jn = Wt && typeof importScripts == "function" && typeof self == "object";
|
|
3406
3406
|
typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
|
|
3407
3407
|
var Jt, dt, Yt, Et, mt;
|
|
3408
3408
|
async function yt() {
|
|
@@ -3445,7 +3445,7 @@ var os = yr((ls, pt) => {
|
|
|
3445
3445
|
}
|
|
3446
3446
|
b(er, "loadBinaryFile");
|
|
3447
3447
|
var qe;
|
|
3448
|
-
if (
|
|
3448
|
+
if (Wn) qe = b(async (t) => await import(t), "loadScript");
|
|
3449
3449
|
else if (Jn) qe = b(async (t) => {
|
|
3450
3450
|
try {
|
|
3451
3451
|
globalThis.importScripts(t);
|
|
@@ -3469,7 +3469,7 @@ var os = yr((ls, pt) => {
|
|
|
3469
3469
|
}
|
|
3470
3470
|
b(rr, "loadLockFile");
|
|
3471
3471
|
async function nr() {
|
|
3472
|
-
if (
|
|
3472
|
+
if (Ht) return __dirname;
|
|
3473
3473
|
let t;
|
|
3474
3474
|
try {
|
|
3475
3475
|
throw new Error();
|
|
@@ -3617,28 +3617,35 @@ var os = yr((ls, pt) => {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
b(or, "setEnvironment");
|
|
3619
3619
|
function cr(t) {
|
|
3620
|
-
return (e) => {
|
|
3621
|
-
|
|
3622
|
-
|
|
3620
|
+
return t ? [async (e) => {
|
|
3621
|
+
e.addRunDependency("fsInitHook");
|
|
3622
|
+
try {
|
|
3623
|
+
await t(e.FS, { sitePackages: e.API.sitePackages });
|
|
3624
|
+
} finally {
|
|
3625
|
+
e.removeRunDependency("fsInitHook");
|
|
3626
|
+
}
|
|
3627
|
+
}] : [];
|
|
3623
3628
|
}
|
|
3624
|
-
b(cr, "
|
|
3629
|
+
b(cr, "callFsInitHook");
|
|
3625
3630
|
function dr(t) {
|
|
3626
3631
|
let e = er(t);
|
|
3627
|
-
return (r) => {
|
|
3632
|
+
return async (r) => {
|
|
3628
3633
|
let n = r._py_version_major(), s = r._py_version_minor();
|
|
3629
|
-
r.FS.mkdirTree("/lib"), r.
|
|
3634
|
+
r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
|
|
3635
|
+
try {
|
|
3636
|
+
let a = await e;
|
|
3630
3637
|
r.FS.writeFile(`/lib/python${n}${s}.zip`, a);
|
|
3631
|
-
}
|
|
3638
|
+
} catch (a) {
|
|
3632
3639
|
console.error("Error occurred while installing the standard library:"), console.error(a);
|
|
3633
|
-
}
|
|
3640
|
+
} finally {
|
|
3634
3641
|
r.removeRunDependency("install-stdlib");
|
|
3635
|
-
}
|
|
3642
|
+
}
|
|
3636
3643
|
};
|
|
3637
3644
|
}
|
|
3638
3645
|
b(dr, "installStdlib");
|
|
3639
3646
|
function lr(t) {
|
|
3640
3647
|
let e;
|
|
3641
|
-
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [dr(e), ir(t.env.HOME), or(t.env),
|
|
3648
|
+
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...cr(t.fsInit), dr(e), ir(t.env.HOME), or(t.env), sr];
|
|
3642
3649
|
}
|
|
3643
3650
|
b(lr, "getFileSystemInitializationFuncs");
|
|
3644
3651
|
function ur(t) {
|
|
@@ -3658,13 +3665,13 @@ var os = yr((ls, pt) => {
|
|
|
3658
3665
|
};
|
|
3659
3666
|
}
|
|
3660
3667
|
b(ur, "getInstantiateWasmFunc");
|
|
3661
|
-
var ut = "0.27.
|
|
3668
|
+
var ut = "0.27.5";
|
|
3662
3669
|
async function ft(t = {}) {
|
|
3663
3670
|
var e, r;
|
|
3664
3671
|
await yt();
|
|
3665
3672
|
let n = t.indexURL || await nr();
|
|
3666
3673
|
n = lt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
|
|
3667
|
-
let s = { fullStdLib: !1, jsglobals: globalThis, stdin: globalThis.prompt ? globalThis.prompt : void 0, lockFileURL: n + "pyodide-lock.json", args: [],
|
|
3674
|
+
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);
|
|
3668
3675
|
(e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
|
|
3669
3676
|
let i = ar(a), o = i.API;
|
|
3670
3677
|
if (o.lockFilePromise = rr(a.lockFileURL), typeof _createPyodideModule != "function") {
|
|
@@ -3871,21 +3878,21 @@ ${e}`;
|
|
|
3871
3878
|
async function ns() {
|
|
3872
3879
|
try {
|
|
3873
3880
|
const t = is(), e = Gn(t), r = await A.wrapAsync(rs)(t);
|
|
3874
|
-
self.controller = r,
|
|
3881
|
+
self.controller = r, W.send.initializingMessage({
|
|
3875
3882
|
message: "Loading marimo..."
|
|
3876
3883
|
}), self.pyodide = await A.wrapAsync(r.bootstrap.bind(r))({
|
|
3877
3884
|
version: t,
|
|
3878
3885
|
pyodideVersion: e
|
|
3879
3886
|
});
|
|
3880
3887
|
} catch (t) {
|
|
3881
|
-
Y.error("Error bootstrapping", t),
|
|
3888
|
+
Y.error("Error bootstrapping", t), W.send.initializedError({
|
|
3882
3889
|
error: Dt(t)
|
|
3883
3890
|
});
|
|
3884
3891
|
}
|
|
3885
3892
|
}
|
|
3886
3893
|
const fr = new _r(
|
|
3887
3894
|
(t) => {
|
|
3888
|
-
|
|
3895
|
+
W.send.kernelMessage({ message: t });
|
|
3889
3896
|
}
|
|
3890
3897
|
), Nt = new gr();
|
|
3891
3898
|
let Rt = !1;
|
|
@@ -3908,11 +3915,11 @@ ${e}`;
|
|
|
3908
3915
|
const n = A.wrapAsync(
|
|
3909
3916
|
self.controller.startSession.bind(self.controller)
|
|
3910
3917
|
), s = Qn(() => {
|
|
3911
|
-
|
|
3918
|
+
W.send.initializingMessage({
|
|
3912
3919
|
message: "Initializing notebook..."
|
|
3913
|
-
}),
|
|
3920
|
+
}), W.send.initialized({});
|
|
3914
3921
|
});
|
|
3915
|
-
|
|
3922
|
+
W.send.initializingMessage({
|
|
3916
3923
|
message: "Loading notebook and dependencies..."
|
|
3917
3924
|
});
|
|
3918
3925
|
const a = await n({
|
|
@@ -3926,7 +3933,7 @@ ${e}`;
|
|
|
3926
3933
|
});
|
|
3927
3934
|
Nt.resolve(a), Ot.end("ok");
|
|
3928
3935
|
} catch (n) {
|
|
3929
|
-
|
|
3936
|
+
W.send.initializedError({
|
|
3930
3937
|
error: Dt(n)
|
|
3931
3938
|
}), Ot.end("error");
|
|
3932
3939
|
}
|
|
@@ -4050,14 +4057,14 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
|
|
|
4050
4057
|
);
|
|
4051
4058
|
return as.has(r) && ie.persistFilesToRemote(self.pyodide), e.end(), typeof i == "string" ? JSON.parse(i) : i;
|
|
4052
4059
|
}
|
|
4053
|
-
},
|
|
4054
|
-
transport:
|
|
4060
|
+
}, W = Zn({
|
|
4061
|
+
transport: Fn({
|
|
4055
4062
|
transportId: Ln
|
|
4056
4063
|
}),
|
|
4057
4064
|
requestHandler: ss
|
|
4058
4065
|
});
|
|
4059
|
-
|
|
4060
|
-
|
|
4066
|
+
W.send("ready", {});
|
|
4067
|
+
W.addMessageListener("consumerReady", async () => {
|
|
4061
4068
|
await L, fr.start();
|
|
4062
4069
|
});
|
|
4063
4070
|
const as = /* @__PURE__ */ new Set([
|