@marimo-team/islands 0.13.8-dev4 → 0.13.8
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-WSi-tXtz.js → ConnectedDataExplorerComponent-CXxGkfHi.js} +2 -2
- package/dist/{VegaLite-DxrH7O6W.js → VegaLite-CUpGp6H_.js} +3 -3
- package/dist/{_baseUniq-DyLUsgbo.js → _baseUniq-CQ6NTQT9.js} +1 -1
- package/dist/{any-language-editor-65UBW3wc.js → any-language-editor-Bs-h91U5.js} +1 -1
- package/dist/{architectureDiagram-IEHRJDOE-Dy7OuKRi.js → architectureDiagram-IEHRJDOE-CZD0ACsc.js} +5 -5
- package/dist/assets/{worker-PjUOGXtl.js → worker-C7cQgmFi.js} +192 -191
- package/dist/{blockDiagram-JOT3LUYC-BGAkhvqk.js → blockDiagram-JOT3LUYC-B4vlzzlf.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-COvshqN8.js → c4Diagram-VJAJSXHY-DGueCjzJ.js} +2 -2
- package/dist/{channel-CphScd5y.js → channel-DdKUHOGE.js} +1 -1
- package/dist/{chunk-4BMEZGHF-L8OqbaNG.js → chunk-4BMEZGHF-CTOEj1zq.js} +1 -1
- package/dist/{chunk-A2AXSNBT-ehhQ3oVZ.js → chunk-A2AXSNBT-LQOLkaN-.js} +2 -2
- package/dist/{chunk-AEK57VVT-NcNChdyI.js → chunk-AEK57VVT-a88rTUKE.js} +2 -2
- package/dist/{chunk-D6G4REZN-CsByRolv.js → chunk-D6G4REZN-DXeWstGD.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-CJSx3YpH.js → chunk-RZ5BOZE2-DELlNFq9.js} +1 -1
- package/dist/{chunk-XZIHB7SX-B-5MvOIJ.js → chunk-XZIHB7SX-oXE7lSik.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-DHxIfzIN.js → classDiagram-GIVACNV2-m8JKhxi2.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DHxIfzIN.js → classDiagram-v2-COTLJTTW-m8JKhxi2.js} +2 -2
- package/dist/{clone-Cr2TSahw.js → clone-DHyZjBaU.js} +1 -1
- package/dist/{dagre-OKDRZEBW-ClKn4N_T.js → dagre-OKDRZEBW-D2wdzXL8.js} +6 -6
- package/dist/{data-editor-Yrr3VMq_.js → data-editor-Dsi6qmdp.js} +1 -1
- package/dist/{diagram-SSKATNLV-DoKjX5Ri.js → diagram-SSKATNLV-DLRFQseA.js} +3 -3
- package/dist/{diagram-VNBRO52H-MhrYFbld.js → diagram-VNBRO52H-CbiFaYa7.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DILXQn8I.js → erDiagram-Q7BY3M3F-D5HYLapl.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-BdCLLYYi.js → flowDiagram-4HSFHLVR-BXpkWbzd.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-DhLbebB-.js → ganttDiagram-APWFNJXF-BmfCzY-G.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S-DsoND725.js → gitGraphDiagram-7IBYFJ6S-CHE3QmCW.js} +4 -4
- package/dist/{graph-xnr_JVm4.js → graph-BG0QSppy.js} +3 -3
- package/dist/{index-CsdkDFin.js → index-BIO2fau7.js} +1 -1
- package/dist/{index-CFh1HD3v.js → index-BO5lUcK3.js} +1 -1
- package/dist/{index-DQFa_7Ah.js → index-isuIeKm5.js} +1 -1
- package/dist/{index-CHpK797r.js → index-lT0QSeF_.js} +3 -3
- package/dist/{infoDiagram-PH2N3AL5-DvEPsIX7.js → infoDiagram-PH2N3AL5-BrK9tejb.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-50Z2XVVV.js → journeyDiagram-U35MCT3I-DK1QVNrj.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-CevnGzOE.js → kanban-definition-NDS4AKOZ-CT8tM6Zd.js} +1 -1
- package/dist/{layout-DCevdBDb.js → layout-CQjm-Z08.js} +4 -4
- package/dist/{linear-DPe_3ypj.js → linear-BHwJc9PV.js} +1 -1
- package/dist/{main-DVQsNf8f.js → main-g942NvU_.js} +29487 -29486
- package/dist/main.js +1 -1
- package/dist/{mermaid-CEC5IZBS.js → mermaid-CfNk5vsz.js} +28 -28
- package/dist/{min-D6rabEUR.js → min-CW4tYkcn.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-lYkybudS.js → mindmap-definition-ALO5MXBD-BOHTkBH1.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-D17A54Uv.js → pieDiagram-IB7DONF6-BS4FaGuV.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-BXy7fAtA.js → quadrantDiagram-7GDLP6J5-CF-2gWl6.js} +2 -2
- package/dist/{radar-MK3ICKWK-D3lOvuYV.js → radar-MK3ICKWK-ax7tZPsz.js} +5 -5
- package/dist/{react-plotly-BGAatRJt.js → react-plotly-Dsj6NSyL.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-CZnlShRJ.js → requirementDiagram-KVF5MWMF-DTrgsrXm.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-DN-81H9t.js → sankeyDiagram-QLVOVGJD-mjnrMsDP.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-237LAtgk.js → sequenceDiagram-X6HHIX6F-VRs20ceR.js} +3 -3
- package/dist/{slides-component-GQjN0cC0.js → slides-component-Cdz6NCEN.js} +2 -2
- package/dist/{stateDiagram-DGXRK772-DDZjpsr4.js → stateDiagram-DGXRK772-CmzJde0Y.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-DgvXwVAn.js → stateDiagram-v2-YXO3MK2T-CyQWh7kH.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DHwVMA-X.js → time-DxFwMmtt.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-CqQRAmm7.js → timeline-definition-BDJGKUSR-CATwEBKt.js} +1 -1
- package/dist/{vega-component-Ccml7G_5.js → vega-component-CDzFgbiH.js} +2 -2
- package/dist/{xychartDiagram-VJFVF3MP-D9cN4xkc.js → xychartDiagram-VJFVF3MP-Wl2KeX0F.js} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var ps =
|
|
3
|
-
class
|
|
1
|
+
var _r = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
|
|
2
|
+
var ps = _r((ys, yt) => {
|
|
3
|
+
class wr {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.status = "pending", this.promise = new Promise((e, r) => {
|
|
6
6
|
this.reject = (n) => {
|
|
@@ -114,7 +114,7 @@ var ps = vr((ys, yt) => {
|
|
|
114
114
|
"invalid_intersection_types",
|
|
115
115
|
"not_multiple_of",
|
|
116
116
|
"not_finite"
|
|
117
|
-
]),
|
|
117
|
+
]), br = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
118
118
|
class P extends Error {
|
|
119
119
|
get errors() {
|
|
120
120
|
return this.issues;
|
|
@@ -232,7 +232,7 @@ var ps = vr((ys, yt) => {
|
|
|
232
232
|
return { message: r };
|
|
233
233
|
};
|
|
234
234
|
let At = ge;
|
|
235
|
-
function
|
|
235
|
+
function kr(t) {
|
|
236
236
|
At = t;
|
|
237
237
|
}
|
|
238
238
|
function He() {
|
|
@@ -258,7 +258,7 @@ var ps = vr((ys, yt) => {
|
|
|
258
258
|
path: a,
|
|
259
259
|
message: o
|
|
260
260
|
};
|
|
261
|
-
},
|
|
261
|
+
}, xr = [];
|
|
262
262
|
function f(t, e) {
|
|
263
263
|
const r = He(), n = We({
|
|
264
264
|
issueData: e,
|
|
@@ -589,14 +589,14 @@ var ps = vr((ys, yt) => {
|
|
|
589
589
|
return this.safeParse(null).success;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const Sr = /^c[^\s-]{8,}$/i, Tr = /^[0-9a-z]+$/, Er = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Or = /^[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, Nr = /^[a-z0-9_-]{21}$/i, Rr = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ar = /^[-+]?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)?)??$/, Cr = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ir = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
593
593
|
let at;
|
|
594
|
-
const
|
|
594
|
+
const 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])$/, jr = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(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]))$/, $r = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(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}=))?$/, Fr = /^([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])))", Dr = new RegExp(`^${It}$`);
|
|
595
595
|
function Pt(t) {
|
|
596
596
|
let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
|
|
597
597
|
return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function Lr(t) {
|
|
600
600
|
return new RegExp(`^${Pt(t)}$`);
|
|
601
601
|
}
|
|
602
602
|
function jt(t) {
|
|
@@ -604,11 +604,11 @@ var ps = vr((ys, yt) => {
|
|
|
604
604
|
const r = [];
|
|
605
605
|
return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
|
|
606
606
|
}
|
|
607
|
-
function Lr(t, e) {
|
|
608
|
-
return !!((e === "v4" || !e) && Ir.test(t) || (e === "v6" || !e) && jr.test(t));
|
|
609
|
-
}
|
|
610
607
|
function Vr(t, e) {
|
|
611
|
-
|
|
608
|
+
return !!((e === "v4" || !e) && Pr.test(t) || (e === "v6" || !e) && Zr.test(t));
|
|
609
|
+
}
|
|
610
|
+
function zr(t, e) {
|
|
611
|
+
if (!Rr.test(t))
|
|
612
612
|
return !1;
|
|
613
613
|
try {
|
|
614
614
|
const [r] = t.split("."), n = r.replace(/-/g, "+").replace(/_/g, "/").padEnd(r.length + (4 - r.length % 4) % 4, "="), s = JSON.parse(atob(n));
|
|
@@ -617,8 +617,8 @@ var ps = vr((ys, yt) => {
|
|
|
617
617
|
return !1;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return !!((e === "v4" || !e) &&
|
|
620
|
+
function qr(t, e) {
|
|
621
|
+
return !!((e === "v4" || !e) && jr.test(t) || (e === "v6" || !e) && $r.test(t));
|
|
622
622
|
}
|
|
623
623
|
class Z extends w {
|
|
624
624
|
_parse(e) {
|
|
@@ -669,43 +669,43 @@ var ps = vr((ys, yt) => {
|
|
|
669
669
|
message: a.message
|
|
670
670
|
}), n.dirty());
|
|
671
671
|
} else if (a.kind === "email")
|
|
672
|
-
|
|
672
|
+
Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
673
673
|
validation: "email",
|
|
674
674
|
code: u.invalid_string,
|
|
675
675
|
message: a.message
|
|
676
676
|
}), n.dirty());
|
|
677
677
|
else if (a.kind === "emoji")
|
|
678
|
-
at || (at = new RegExp(
|
|
678
|
+
at || (at = new RegExp(Ir, "u")), at.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
679
679
|
validation: "emoji",
|
|
680
680
|
code: u.invalid_string,
|
|
681
681
|
message: a.message
|
|
682
682
|
}), n.dirty());
|
|
683
683
|
else if (a.kind === "uuid")
|
|
684
|
-
|
|
684
|
+
Or.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
685
685
|
validation: "uuid",
|
|
686
686
|
code: u.invalid_string,
|
|
687
687
|
message: a.message
|
|
688
688
|
}), n.dirty());
|
|
689
689
|
else if (a.kind === "nanoid")
|
|
690
|
-
|
|
690
|
+
Nr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
691
691
|
validation: "nanoid",
|
|
692
692
|
code: u.invalid_string,
|
|
693
693
|
message: a.message
|
|
694
694
|
}), n.dirty());
|
|
695
695
|
else if (a.kind === "cuid")
|
|
696
|
-
|
|
696
|
+
Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
697
697
|
validation: "cuid",
|
|
698
698
|
code: u.invalid_string,
|
|
699
699
|
message: a.message
|
|
700
700
|
}), n.dirty());
|
|
701
701
|
else if (a.kind === "cuid2")
|
|
702
|
-
|
|
702
|
+
Tr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
703
703
|
validation: "cuid2",
|
|
704
704
|
code: u.invalid_string,
|
|
705
705
|
message: a.message
|
|
706
706
|
}), n.dirty());
|
|
707
707
|
else if (a.kind === "ulid")
|
|
708
|
-
|
|
708
|
+
Er.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
709
709
|
validation: "ulid",
|
|
710
710
|
code: u.invalid_string,
|
|
711
711
|
message: a.message
|
|
@@ -740,35 +740,35 @@ var ps = vr((ys, yt) => {
|
|
|
740
740
|
code: u.invalid_string,
|
|
741
741
|
validation: "datetime",
|
|
742
742
|
message: a.message
|
|
743
|
-
}), n.dirty()) : a.kind === "date" ?
|
|
743
|
+
}), n.dirty()) : a.kind === "date" ? Dr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
744
744
|
code: u.invalid_string,
|
|
745
745
|
validation: "date",
|
|
746
746
|
message: a.message
|
|
747
|
-
}), n.dirty()) : a.kind === "time" ?
|
|
747
|
+
}), n.dirty()) : a.kind === "time" ? Lr(a).test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
748
748
|
code: u.invalid_string,
|
|
749
749
|
validation: "time",
|
|
750
750
|
message: a.message
|
|
751
|
-
}), n.dirty()) : a.kind === "duration" ?
|
|
751
|
+
}), n.dirty()) : a.kind === "duration" ? Ar.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
752
752
|
validation: "duration",
|
|
753
753
|
code: u.invalid_string,
|
|
754
754
|
message: a.message
|
|
755
|
-
}), n.dirty()) : a.kind === "ip" ?
|
|
755
|
+
}), n.dirty()) : a.kind === "ip" ? Vr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
756
756
|
validation: "ip",
|
|
757
757
|
code: u.invalid_string,
|
|
758
758
|
message: a.message
|
|
759
|
-
}), n.dirty()) : a.kind === "jwt" ?
|
|
759
|
+
}), n.dirty()) : a.kind === "jwt" ? zr(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
760
760
|
validation: "jwt",
|
|
761
761
|
code: u.invalid_string,
|
|
762
762
|
message: a.message
|
|
763
|
-
}), n.dirty()) : a.kind === "cidr" ?
|
|
763
|
+
}), n.dirty()) : a.kind === "cidr" ? qr(e.data, a.version) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
764
764
|
validation: "cidr",
|
|
765
765
|
code: u.invalid_string,
|
|
766
766
|
message: a.message
|
|
767
|
-
}), n.dirty()) : a.kind === "base64" ?
|
|
767
|
+
}), n.dirty()) : a.kind === "base64" ? Mr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
768
768
|
validation: "base64",
|
|
769
769
|
code: u.invalid_string,
|
|
770
770
|
message: a.message
|
|
771
|
-
}), n.dirty()) : a.kind === "base64url" ?
|
|
771
|
+
}), n.dirty()) : a.kind === "base64url" ? Fr.test(e.data) || (s = this._getOrReturnCtx(e, s), f(s, {
|
|
772
772
|
validation: "base64url",
|
|
773
773
|
code: u.invalid_string,
|
|
774
774
|
message: a.message
|
|
@@ -1970,7 +1970,7 @@ var ps = vr((ys, yt) => {
|
|
|
1970
1970
|
typeName: y.ZodUnion,
|
|
1971
1971
|
..._(e)
|
|
1972
1972
|
});
|
|
1973
|
-
const
|
|
1973
|
+
const U = (t) => t instanceof je ? U(t.schema) : t instanceof M ? U(t.innerType()) : t instanceof Ze ? [t.value] : t instanceof G ? t.options : t instanceof $e ? k.objectValues(t.enum) : t instanceof Me ? U(t._def.innerType) : t instanceof Re ? [void 0] : t instanceof Ae ? [null] : t instanceof D ? [void 0, ...U(t.unwrap())] : t instanceof K ? [null, ...U(t.unwrap())] : t instanceof gt || t instanceof De ? U(t.unwrap()) : t instanceof Fe ? U(t._def.innerType) : [];
|
|
1974
1974
|
class rt extends w {
|
|
1975
1975
|
_parse(e) {
|
|
1976
1976
|
const { ctx: r } = this._processInputParams(e);
|
|
@@ -2015,7 +2015,7 @@ var ps = vr((ys, yt) => {
|
|
|
2015
2015
|
static create(e, r, n) {
|
|
2016
2016
|
const s = /* @__PURE__ */ new Map();
|
|
2017
2017
|
for (const a of r) {
|
|
2018
|
-
const i =
|
|
2018
|
+
const i = U(a.shape[e]);
|
|
2019
2019
|
if (!i.length)
|
|
2020
2020
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
2021
2021
|
for (const o of i) {
|
|
@@ -2755,7 +2755,7 @@ var ps = vr((ys, yt) => {
|
|
|
2755
2755
|
typeName: y.ZodNaN,
|
|
2756
2756
|
..._(t)
|
|
2757
2757
|
});
|
|
2758
|
-
const
|
|
2758
|
+
const Br = Symbol("zod_brand");
|
|
2759
2759
|
class gt extends w {
|
|
2760
2760
|
_parse(e) {
|
|
2761
2761
|
const { ctx: r } = this._processInputParams(e), n = r.data;
|
|
@@ -2845,16 +2845,16 @@ var ps = vr((ys, yt) => {
|
|
|
2845
2845
|
}
|
|
2846
2846
|
}) : ve.create();
|
|
2847
2847
|
}
|
|
2848
|
-
const
|
|
2848
|
+
const Hr = {
|
|
2849
2849
|
object: O.lazycreate
|
|
2850
2850
|
};
|
|
2851
2851
|
var y;
|
|
2852
2852
|
(function(t) {
|
|
2853
2853
|
t.ZodString = "ZodString", t.ZodNumber = "ZodNumber", t.ZodNaN = "ZodNaN", t.ZodBigInt = "ZodBigInt", t.ZodBoolean = "ZodBoolean", t.ZodDate = "ZodDate", t.ZodSymbol = "ZodSymbol", t.ZodUndefined = "ZodUndefined", t.ZodNull = "ZodNull", t.ZodAny = "ZodAny", t.ZodUnknown = "ZodUnknown", t.ZodNever = "ZodNever", t.ZodVoid = "ZodVoid", t.ZodArray = "ZodArray", t.ZodObject = "ZodObject", t.ZodUnion = "ZodUnion", t.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", t.ZodIntersection = "ZodIntersection", t.ZodTuple = "ZodTuple", t.ZodRecord = "ZodRecord", t.ZodMap = "ZodMap", t.ZodSet = "ZodSet", t.ZodFunction = "ZodFunction", t.ZodLazy = "ZodLazy", t.ZodLiteral = "ZodLiteral", t.ZodEnum = "ZodEnum", t.ZodEffects = "ZodEffects", t.ZodNativeEnum = "ZodNativeEnum", t.ZodOptional = "ZodOptional", t.ZodNullable = "ZodNullable", t.ZodDefault = "ZodDefault", t.ZodCatch = "ZodCatch", t.ZodPromise = "ZodPromise", t.ZodBranded = "ZodBranded", t.ZodPipeline = "ZodPipeline", t.ZodReadonly = "ZodReadonly";
|
|
2854
2854
|
})(y || (y = {}));
|
|
2855
|
-
const
|
|
2855
|
+
const Wr = (t, e = {
|
|
2856
2856
|
message: `Input not instance of ${t.name}`
|
|
2857
|
-
}) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create,
|
|
2857
|
+
}) => $t((r) => r instanceof t, e), Mt = Z.create, Ft = J.create, Jr = Xe.create, Yr = Y.create, Dt = Ne.create, Gr = oe.create, Kr = Ye.create, Xr = Re.create, Qr = Ae.create, en = ve.create, tn = ae.create, rn = H.create, nn = Ge.create, sn = $.create, an = O.create, on = O.strictCreate, dn = Ce.create, cn = rt.create, un = Ie.create, ln = V.create, fn = Pe.create, pn = Ke.create, hn = de.create, mn = ye.create, yn = je.create, gn = Ze.create, vn = G.create, _n = $e.create, wn = _e.create, Tt = M.create, bn = D.create, kn = K.create, xn = M.createWithPreprocess, Sn = Le.create, Tn = () => Mt().optional(), En = () => Ft().optional(), On = () => Dt().optional(), Nn = {
|
|
2858
2858
|
string: (t) => Z.create({ ...t, coerce: !0 }),
|
|
2859
2859
|
number: (t) => J.create({ ...t, coerce: !0 }),
|
|
2860
2860
|
boolean: (t) => Ne.create({
|
|
@@ -2863,14 +2863,14 @@ var ps = vr((ys, yt) => {
|
|
|
2863
2863
|
}),
|
|
2864
2864
|
bigint: (t) => Y.create({ ...t, coerce: !0 }),
|
|
2865
2865
|
date: (t) => oe.create({ ...t, coerce: !0 })
|
|
2866
|
-
},
|
|
2866
|
+
}, Rn = g;
|
|
2867
2867
|
var m = /* @__PURE__ */ Object.freeze({
|
|
2868
2868
|
__proto__: null,
|
|
2869
2869
|
defaultErrorMap: ge,
|
|
2870
|
-
setErrorMap:
|
|
2870
|
+
setErrorMap: kr,
|
|
2871
2871
|
getErrorMap: He,
|
|
2872
2872
|
makeIssue: We,
|
|
2873
|
-
EMPTY_PATH:
|
|
2873
|
+
EMPTY_PATH: xr,
|
|
2874
2874
|
addIssueToContext: f,
|
|
2875
2875
|
ParseStatus: A,
|
|
2876
2876
|
INVALID: g,
|
|
@@ -2924,60 +2924,60 @@ var ps = vr((ys, yt) => {
|
|
|
2924
2924
|
ZodDefault: Me,
|
|
2925
2925
|
ZodCatch: Fe,
|
|
2926
2926
|
ZodNaN: Xe,
|
|
2927
|
-
BRAND:
|
|
2927
|
+
BRAND: Br,
|
|
2928
2928
|
ZodBranded: gt,
|
|
2929
2929
|
ZodPipeline: Le,
|
|
2930
2930
|
ZodReadonly: De,
|
|
2931
2931
|
custom: $t,
|
|
2932
2932
|
Schema: w,
|
|
2933
2933
|
ZodSchema: w,
|
|
2934
|
-
late:
|
|
2934
|
+
late: Hr,
|
|
2935
2935
|
get ZodFirstPartyTypeKind() {
|
|
2936
2936
|
return y;
|
|
2937
2937
|
},
|
|
2938
|
-
coerce:
|
|
2939
|
-
any:
|
|
2940
|
-
array:
|
|
2941
|
-
bigint:
|
|
2938
|
+
coerce: Nn,
|
|
2939
|
+
any: en,
|
|
2940
|
+
array: sn,
|
|
2941
|
+
bigint: Yr,
|
|
2942
2942
|
boolean: Dt,
|
|
2943
|
-
date:
|
|
2944
|
-
discriminatedUnion:
|
|
2943
|
+
date: Gr,
|
|
2944
|
+
discriminatedUnion: cn,
|
|
2945
2945
|
effect: Tt,
|
|
2946
|
-
enum:
|
|
2947
|
-
function:
|
|
2948
|
-
instanceof:
|
|
2949
|
-
intersection:
|
|
2950
|
-
lazy:
|
|
2951
|
-
literal:
|
|
2952
|
-
map:
|
|
2953
|
-
nan:
|
|
2954
|
-
nativeEnum:
|
|
2955
|
-
never:
|
|
2956
|
-
null:
|
|
2957
|
-
nullable:
|
|
2946
|
+
enum: vn,
|
|
2947
|
+
function: mn,
|
|
2948
|
+
instanceof: Wr,
|
|
2949
|
+
intersection: un,
|
|
2950
|
+
lazy: yn,
|
|
2951
|
+
literal: gn,
|
|
2952
|
+
map: pn,
|
|
2953
|
+
nan: Jr,
|
|
2954
|
+
nativeEnum: _n,
|
|
2955
|
+
never: rn,
|
|
2956
|
+
null: Qr,
|
|
2957
|
+
nullable: kn,
|
|
2958
2958
|
number: Ft,
|
|
2959
|
-
object:
|
|
2960
|
-
oboolean:
|
|
2961
|
-
onumber:
|
|
2962
|
-
optional:
|
|
2963
|
-
ostring:
|
|
2964
|
-
pipeline:
|
|
2965
|
-
preprocess:
|
|
2966
|
-
promise:
|
|
2967
|
-
record:
|
|
2968
|
-
set:
|
|
2969
|
-
strictObject:
|
|
2959
|
+
object: an,
|
|
2960
|
+
oboolean: On,
|
|
2961
|
+
onumber: En,
|
|
2962
|
+
optional: bn,
|
|
2963
|
+
ostring: Tn,
|
|
2964
|
+
pipeline: Sn,
|
|
2965
|
+
preprocess: xn,
|
|
2966
|
+
promise: wn,
|
|
2967
|
+
record: fn,
|
|
2968
|
+
set: hn,
|
|
2969
|
+
strictObject: on,
|
|
2970
2970
|
string: Mt,
|
|
2971
|
-
symbol:
|
|
2971
|
+
symbol: Kr,
|
|
2972
2972
|
transformer: Tt,
|
|
2973
|
-
tuple:
|
|
2974
|
-
undefined:
|
|
2975
|
-
union:
|
|
2976
|
-
unknown:
|
|
2977
|
-
void:
|
|
2978
|
-
NEVER:
|
|
2973
|
+
tuple: ln,
|
|
2974
|
+
undefined: Xr,
|
|
2975
|
+
union: dn,
|
|
2976
|
+
unknown: tn,
|
|
2977
|
+
void: nn,
|
|
2978
|
+
NEVER: Rn,
|
|
2979
2979
|
ZodIssueCode: u,
|
|
2980
|
-
quotelessJson:
|
|
2980
|
+
quotelessJson: br,
|
|
2981
2981
|
ZodError: P
|
|
2982
2982
|
});
|
|
2983
2983
|
const lt = m.object({
|
|
@@ -2988,7 +2988,7 @@ var ps = vr((ys, yt) => {
|
|
|
2988
2988
|
return "Unknown error";
|
|
2989
2989
|
if (t instanceof Error) {
|
|
2990
2990
|
const e = lt.safeParse(t.cause);
|
|
2991
|
-
return e.success ? e.data.detail :
|
|
2991
|
+
return e.success ? e.data.detail : An(t.message);
|
|
2992
2992
|
}
|
|
2993
2993
|
if (typeof t == "object") {
|
|
2994
2994
|
const e = lt.safeParse(t);
|
|
@@ -3001,26 +3001,26 @@ var ps = vr((ys, yt) => {
|
|
|
3001
3001
|
return String(t);
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
|
-
function
|
|
3005
|
-
const e =
|
|
3004
|
+
function An(t) {
|
|
3005
|
+
const e = Cn(t);
|
|
3006
3006
|
if (!e)
|
|
3007
3007
|
return t;
|
|
3008
3008
|
const r = lt.safeParse(e);
|
|
3009
3009
|
return r.success ? r.data.detail : t;
|
|
3010
3010
|
}
|
|
3011
|
-
function
|
|
3011
|
+
function Cn(t) {
|
|
3012
3012
|
try {
|
|
3013
3013
|
return JSON.parse(t);
|
|
3014
3014
|
} catch {
|
|
3015
3015
|
return t;
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
|
-
const
|
|
3018
|
+
const In = 1e10, Pn = 1e3;
|
|
3019
3019
|
function ze(t, e) {
|
|
3020
3020
|
const r = t.map((n) => `"${n}"`).join(", ");
|
|
3021
3021
|
return new Error(`This RPC instance cannot ${e} because the transport did not provide one or more of these methods: ${r}`);
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3023
|
+
function jn(t = {}) {
|
|
3024
3024
|
let e = {};
|
|
3025
3025
|
function r(v) {
|
|
3026
3026
|
e = v;
|
|
@@ -3028,7 +3028,7 @@ var ps = vr((ys, yt) => {
|
|
|
3028
3028
|
let n = {};
|
|
3029
3029
|
function s(v) {
|
|
3030
3030
|
var T;
|
|
3031
|
-
n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n,
|
|
3031
|
+
n.unregisterHandler && n.unregisterHandler(), n = v, (T = n.registerHandler) == null || T.call(n, vr);
|
|
3032
3032
|
}
|
|
3033
3033
|
let a;
|
|
3034
3034
|
function i(v) {
|
|
@@ -3046,11 +3046,11 @@ var ps = vr((ys, yt) => {
|
|
|
3046
3046
|
return R(T, N);
|
|
3047
3047
|
};
|
|
3048
3048
|
}
|
|
3049
|
-
const { maxRequestTime: o =
|
|
3049
|
+
const { maxRequestTime: o = Pn } = t;
|
|
3050
3050
|
t.transport && s(t.transport), t.requestHandler && i(t.requestHandler), t._debugHooks && r(t._debugHooks);
|
|
3051
3051
|
let d = 0;
|
|
3052
3052
|
function c() {
|
|
3053
|
-
return d <=
|
|
3053
|
+
return d <= In ? ++d : d = 0;
|
|
3054
3054
|
}
|
|
3055
3055
|
const l = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map();
|
|
3056
3056
|
function S(v, ...T) {
|
|
@@ -3072,7 +3072,7 @@ var ps = vr((ys, yt) => {
|
|
|
3072
3072
|
}
|
|
3073
3073
|
const I = new Proxy(S, {
|
|
3074
3074
|
get: (v, T, N) => T in v ? Reflect.get(v, T, N) : (E) => S(T, E)
|
|
3075
|
-
}),
|
|
3075
|
+
}), q = I;
|
|
3076
3076
|
function Ve(v, ...T) {
|
|
3077
3077
|
var R;
|
|
3078
3078
|
const N = T[0];
|
|
@@ -3088,7 +3088,7 @@ var ps = vr((ys, yt) => {
|
|
|
3088
3088
|
const bt = new Proxy(Ve, {
|
|
3089
3089
|
get: (v, T, N) => T in v ? Reflect.get(v, T, N) : (E) => Ve(T, E)
|
|
3090
3090
|
}), kt = bt, Q = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Set();
|
|
3091
|
-
function
|
|
3091
|
+
function yr(v, T) {
|
|
3092
3092
|
var N;
|
|
3093
3093
|
if (!n.registerHandler)
|
|
3094
3094
|
throw ze(["registerHandler"], "register message listeners");
|
|
@@ -3098,7 +3098,7 @@ var ps = vr((ys, yt) => {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
Q.has(v) || Q.set(v, /* @__PURE__ */ new Set()), (N = Q.get(v)) == null || N.add(T);
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3101
|
+
function gr(v, T) {
|
|
3102
3102
|
var N, E;
|
|
3103
3103
|
if (v === "*") {
|
|
3104
3104
|
st.delete(T);
|
|
@@ -3106,7 +3106,7 @@ var ps = vr((ys, yt) => {
|
|
|
3106
3106
|
}
|
|
3107
3107
|
(N = Q.get(v)) == null || N.delete(T), ((E = Q.get(v)) == null ? void 0 : E.size) === 0 && Q.delete(v);
|
|
3108
3108
|
}
|
|
3109
|
-
async function
|
|
3109
|
+
async function vr(v) {
|
|
3110
3110
|
var T, N;
|
|
3111
3111
|
if ((T = e.onReceive) == null || T.call(e, v), !("type" in v))
|
|
3112
3112
|
throw new Error("Message does not contain a type.");
|
|
@@ -3158,24 +3158,24 @@ var ps = vr((ys, yt) => {
|
|
|
3158
3158
|
setTransport: s,
|
|
3159
3159
|
setRequestHandler: i,
|
|
3160
3160
|
request: I,
|
|
3161
|
-
requestProxy:
|
|
3161
|
+
requestProxy: q,
|
|
3162
3162
|
send: bt,
|
|
3163
3163
|
sendProxy: kt,
|
|
3164
|
-
addMessageListener:
|
|
3165
|
-
removeMessageListener:
|
|
3166
|
-
proxy: { send: kt, request:
|
|
3164
|
+
addMessageListener: yr,
|
|
3165
|
+
removeMessageListener: gr,
|
|
3166
|
+
proxy: { send: kt, request: q },
|
|
3167
3167
|
_setDebugHooks: r
|
|
3168
3168
|
};
|
|
3169
3169
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return
|
|
3170
|
+
function Zn(t) {
|
|
3171
|
+
return jn(t);
|
|
3172
3172
|
}
|
|
3173
3173
|
const Vt = "[transport-id]";
|
|
3174
|
-
function
|
|
3174
|
+
function $n(t, e) {
|
|
3175
3175
|
const { transportId: r } = e;
|
|
3176
3176
|
return r != null ? { [Vt]: r, data: t } : t;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Mn(t, e) {
|
|
3179
3179
|
const { transportId: r, filter: n } = e, s = n == null ? void 0 : n();
|
|
3180
3180
|
if (r != null && s != null)
|
|
3181
3181
|
throw new Error("Cannot use both `transportId` and `filter` at the same time");
|
|
@@ -3187,16 +3187,16 @@ var ps = vr((ys, yt) => {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
return s === !1 ? [!0] : [!1, a];
|
|
3189
3189
|
}
|
|
3190
|
-
function
|
|
3190
|
+
function Fn(t, e = {}) {
|
|
3191
3191
|
const { transportId: r, filter: n, remotePort: s } = e, a = t, i = s ?? t;
|
|
3192
3192
|
let o;
|
|
3193
3193
|
return {
|
|
3194
3194
|
send(d) {
|
|
3195
|
-
i.postMessage(
|
|
3195
|
+
i.postMessage($n(d, { transportId: r }));
|
|
3196
3196
|
},
|
|
3197
3197
|
registerHandler(d) {
|
|
3198
3198
|
o = (c) => {
|
|
3199
|
-
const l = c.data, [b, S] =
|
|
3199
|
+
const l = c.data, [b, S] = Mn(l, {
|
|
3200
3200
|
transportId: r,
|
|
3201
3201
|
filter: () => n == null ? void 0 : n(c)
|
|
3202
3202
|
});
|
|
@@ -3208,15 +3208,15 @@ var ps = vr((ys, yt) => {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
};
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3212
|
-
return
|
|
3211
|
+
function Dn(t) {
|
|
3212
|
+
return Fn(self, t);
|
|
3213
3213
|
}
|
|
3214
3214
|
function zt(t, e) {
|
|
3215
3215
|
if (!t)
|
|
3216
3216
|
throw new Error(e);
|
|
3217
3217
|
}
|
|
3218
|
-
const
|
|
3219
|
-
class
|
|
3218
|
+
const Ln = "marimo-transport";
|
|
3219
|
+
class Vn {
|
|
3220
3220
|
constructor(e) {
|
|
3221
3221
|
this.onMessage = e, this.started = !1, this.push = (r) => {
|
|
3222
3222
|
this.started ? this.onMessage(r) : this.buffer.push(r);
|
|
@@ -3228,7 +3228,7 @@ var ps = vr((ys, yt) => {
|
|
|
3228
3228
|
const be = {
|
|
3229
3229
|
NOOP: () => {
|
|
3230
3230
|
}
|
|
3231
|
-
},
|
|
3231
|
+
}, qt = (t, e) => {
|
|
3232
3232
|
const r = `[${t}]`;
|
|
3233
3233
|
return {
|
|
3234
3234
|
debug: (...n) => e.debug(r, ...n),
|
|
@@ -3236,7 +3236,7 @@ var ps = vr((ys, yt) => {
|
|
|
3236
3236
|
warn: (...n) => e.warn(r, ...n),
|
|
3237
3237
|
error: (...n) => e.error(r, ...n),
|
|
3238
3238
|
trace: (...n) => e.trace(r, ...n),
|
|
3239
|
-
get: (n) =>
|
|
3239
|
+
get: (n) => qt(`${t}.${n}`, e),
|
|
3240
3240
|
disabled: (n = !0) => n ? et : e
|
|
3241
3241
|
};
|
|
3242
3242
|
}, Qe = {
|
|
@@ -3255,7 +3255,7 @@ var ps = vr((ys, yt) => {
|
|
|
3255
3255
|
trace: (...t) => {
|
|
3256
3256
|
console.trace(...t);
|
|
3257
3257
|
},
|
|
3258
|
-
get: (t) =>
|
|
3258
|
+
get: (t) => qt(t, Qe),
|
|
3259
3259
|
disabled: (t = !0) => t ? et : Qe
|
|
3260
3260
|
}, et = {
|
|
3261
3261
|
debug: () => be.NOOP,
|
|
@@ -3266,28 +3266,28 @@ var ps = vr((ys, yt) => {
|
|
|
3266
3266
|
get: () => et,
|
|
3267
3267
|
disabled: () => et
|
|
3268
3268
|
};
|
|
3269
|
-
function
|
|
3269
|
+
function zn() {
|
|
3270
3270
|
return typeof window < "u" && window.Logger || Qe;
|
|
3271
3271
|
}
|
|
3272
|
-
const W =
|
|
3272
|
+
const W = zn(), qn = [
|
|
3273
3273
|
"pip",
|
|
3274
3274
|
"uv",
|
|
3275
3275
|
"rye",
|
|
3276
3276
|
"poetry",
|
|
3277
3277
|
"pixi"
|
|
3278
|
-
],
|
|
3278
|
+
], Ut = [
|
|
3279
3279
|
"normal",
|
|
3280
3280
|
"compact",
|
|
3281
3281
|
"medium",
|
|
3282
3282
|
"full",
|
|
3283
3283
|
"columns"
|
|
3284
|
-
],
|
|
3284
|
+
], Bt = [
|
|
3285
3285
|
"auto",
|
|
3286
3286
|
"native",
|
|
3287
3287
|
"polars",
|
|
3288
3288
|
"lazy-polars",
|
|
3289
3289
|
"pandas"
|
|
3290
|
-
],
|
|
3290
|
+
], Un = m.object({
|
|
3291
3291
|
completion: m.object({
|
|
3292
3292
|
activate_on_typing: m.boolean().default(!0),
|
|
3293
3293
|
copilot: m.union([m.boolean(), m.enum(["github", "codeium", "custom"])]).default(!1).transform((t) => t === !0 ? "github" : t),
|
|
@@ -3309,7 +3309,8 @@ var ps = vr((ys, yt) => {
|
|
|
3309
3309
|
auto_instantiate: m.boolean().default(!0),
|
|
3310
3310
|
on_cell_change: m.enum(["lazy", "autorun"]).default("autorun"),
|
|
3311
3311
|
auto_reload: m.enum(["off", "lazy", "autorun"]).default("off"),
|
|
3312
|
-
watcher_on_save: m.enum(["lazy", "autorun"]).default("lazy")
|
|
3312
|
+
watcher_on_save: m.enum(["lazy", "autorun"]).default("lazy"),
|
|
3313
|
+
default_sql_output: m.enum(Bt).default("auto")
|
|
3313
3314
|
}).passthrough().default({}),
|
|
3314
3315
|
display: m.object({
|
|
3315
3316
|
theme: m.enum(["light", "dark", "system"]).default("light"),
|
|
@@ -3317,10 +3318,10 @@ var ps = vr((ys, yt) => {
|
|
|
3317
3318
|
cell_output: m.enum(["above", "below"]).default("above"),
|
|
3318
3319
|
dataframes: m.enum(["rich", "plain"]).default("rich"),
|
|
3319
3320
|
default_table_page_size: m.number().default(10),
|
|
3320
|
-
default_width: m.enum(
|
|
3321
|
+
default_width: m.enum(Ut).default("medium").transform((t) => t === "normal" ? "compact" : t)
|
|
3321
3322
|
}).passthrough().default({}),
|
|
3322
3323
|
package_management: m.object({
|
|
3323
|
-
manager: m.enum(
|
|
3324
|
+
manager: m.enum(qn).default("pip")
|
|
3324
3325
|
}).passthrough().default({ manager: "pip" }),
|
|
3325
3326
|
ai: m.object({
|
|
3326
3327
|
rules: m.string().default(""),
|
|
@@ -3355,9 +3356,9 @@ var ps = vr((ys, yt) => {
|
|
|
3355
3356
|
rules: "",
|
|
3356
3357
|
open_ai: {}
|
|
3357
3358
|
}
|
|
3358
|
-
}), Bn = m.string(), Hn = m.enum(
|
|
3359
|
+
}), Bn = m.string(), Hn = m.enum(Bt).default("auto");
|
|
3359
3360
|
m.object({
|
|
3360
|
-
width: m.enum(
|
|
3361
|
+
width: m.enum(Ut).default("medium").transform((t) => t === "normal" ? "compact" : t),
|
|
3361
3362
|
app_title: Bn.nullish(),
|
|
3362
3363
|
css_file: m.string().nullish(),
|
|
3363
3364
|
html_head_file: m.string().nullish(),
|
|
@@ -3365,16 +3366,16 @@ var ps = vr((ys, yt) => {
|
|
|
3365
3366
|
sql_output: Hn
|
|
3366
3367
|
}).default({ width: "medium", auto_download: [] });
|
|
3367
3368
|
function Wn() {
|
|
3368
|
-
return
|
|
3369
|
+
return Un.parse({});
|
|
3369
3370
|
}
|
|
3370
|
-
var Jn = Object.defineProperty, x = (t, e) => Jn(t, "name", { value: e, configurable: !0 }),
|
|
3371
|
+
var Jn = Object.defineProperty, x = (t, e) => Jn(t, "name", { value: e, configurable: !0 }), Ht = ((t) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(t, { get: (e, r) => (typeof require < "u" ? require : e)[r] }) : t)(function(t) {
|
|
3371
3372
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
3372
3373
|
throw new Error('Dynamic require of "' + t + '" is not supported');
|
|
3373
3374
|
});
|
|
3374
|
-
function
|
|
3375
|
+
function Wt(t) {
|
|
3375
3376
|
return !isNaN(parseFloat(t)) && isFinite(t);
|
|
3376
3377
|
}
|
|
3377
|
-
x(
|
|
3378
|
+
x(Wt, "_isNumber");
|
|
3378
3379
|
function X(t) {
|
|
3379
3380
|
return t.charAt(0).toUpperCase() + t.substring(1);
|
|
3380
3381
|
}
|
|
@@ -3385,9 +3386,9 @@ var ps = vr((ys, yt) => {
|
|
|
3385
3386
|
};
|
|
3386
3387
|
}
|
|
3387
3388
|
x(nt, "_getter");
|
|
3388
|
-
var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Yn = ["args"], Gn = ["evalOrigin"],
|
|
3389
|
+
var le = ["isConstructor", "isEval", "isNative", "isToplevel"], fe = ["columnNumber", "lineNumber"], pe = ["fileName", "functionName", "source"], Yn = ["args"], Gn = ["evalOrigin"], qe = le.concat(fe, pe, Yn, Gn);
|
|
3389
3390
|
function j(t) {
|
|
3390
|
-
if (t) for (var e = 0; e <
|
|
3391
|
+
if (t) for (var e = 0; e < qe.length; e++) t[qe[e]] !== void 0 && this["set" + X(qe[e])](t[qe[e]]);
|
|
3391
3392
|
}
|
|
3392
3393
|
x(j, "StackFrame");
|
|
3393
3394
|
j.prototype = { getArgs: function() {
|
|
@@ -3418,7 +3419,7 @@ var ps = vr((ys, yt) => {
|
|
|
3418
3419
|
var te;
|
|
3419
3420
|
for (re = 0; re < fe.length; re++) j.prototype["get" + X(fe[re])] = nt(fe[re]), j.prototype["set" + X(fe[re])] = /* @__PURE__ */ function(t) {
|
|
3420
3421
|
return function(e) {
|
|
3421
|
-
if (!
|
|
3422
|
+
if (!Wt(e)) throw new TypeError(t + " must be a Number");
|
|
3422
3423
|
this[t] = Number(e);
|
|
3423
3424
|
};
|
|
3424
3425
|
}(fe[re]);
|
|
@@ -3429,7 +3430,7 @@ var ps = vr((ys, yt) => {
|
|
|
3429
3430
|
};
|
|
3430
3431
|
}(pe[ne]);
|
|
3431
3432
|
var ne, it = j;
|
|
3432
|
-
function
|
|
3433
|
+
function Jt() {
|
|
3433
3434
|
var t = /^\s*at .*(\S+:\d+|\(native\))/m, e = /^(eval@)?(\[native code])?$/;
|
|
3434
3435
|
return { parse: x(function(r) {
|
|
3435
3436
|
if (r.stack && r.stack.match(t)) return this.parseV8OrIE(r);
|
|
@@ -3463,52 +3464,52 @@ var ps = vr((ys, yt) => {
|
|
|
3463
3464
|
}, this);
|
|
3464
3465
|
}, "ErrorStackParser$$parseFFOrSafari") };
|
|
3465
3466
|
}
|
|
3466
|
-
x(
|
|
3467
|
-
var Kn = new
|
|
3467
|
+
x(Jt, "ErrorStackParser");
|
|
3468
|
+
var Kn = new Jt(), Xn = Kn, z = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && !process.browser, Yt = z && typeof yt < "u" && typeof yt.exports < "u" && typeof Ht < "u" && typeof __dirname < "u", Qn = z && !Yt, es = typeof Deno < "u", Gt = !z && !es, ts = Gt && typeof window == "object" && typeof document == "object" && typeof document.createElement == "function" && "sessionStorage" in window && typeof importScripts != "function", rs = Gt && typeof importScripts == "function" && typeof self == "object";
|
|
3468
3469
|
typeof navigator == "object" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome") == -1 && navigator.userAgent.indexOf("Safari") > -1;
|
|
3469
|
-
var
|
|
3470
|
+
var Kt, ft, Xt, Et, vt;
|
|
3470
3471
|
async function _t() {
|
|
3471
|
-
if (!z || (
|
|
3472
|
+
if (!z || (Kt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, Et = await import("./__vite-browser-external-CPvbk0mb.js"), vt = await import("./__vite-browser-external-CPvbk0mb.js"), Xt = (await import("./__vite-browser-external-CPvbk0mb.js")).default, ft = await import("./__vite-browser-external-CPvbk0mb.js"), wt = ft.sep, typeof Ht < "u")) return;
|
|
3472
3473
|
let t = Et, e = await import("./__vite-browser-external-CPvbk0mb.js"), r = await import("./__vite-browser-external-CPvbk0mb.js"), n = await import("./__vite-browser-external-CPvbk0mb.js"), s = { fs: t, crypto: e, ws: r, child_process: n };
|
|
3473
3474
|
globalThis.require = function(a) {
|
|
3474
3475
|
return s[a];
|
|
3475
3476
|
};
|
|
3476
3477
|
}
|
|
3477
3478
|
x(_t, "initNodeModules");
|
|
3478
|
-
function
|
|
3479
|
+
function Qt(t, e) {
|
|
3479
3480
|
return ft.resolve(e || ".", t);
|
|
3480
3481
|
}
|
|
3481
|
-
x(
|
|
3482
|
-
function
|
|
3482
|
+
x(Qt, "node_resolvePath");
|
|
3483
|
+
function er(t, e) {
|
|
3483
3484
|
return e === void 0 && (e = location), new URL(t, e).toString();
|
|
3484
3485
|
}
|
|
3485
|
-
x(
|
|
3486
|
+
x(er, "browser_resolvePath");
|
|
3486
3487
|
var pt;
|
|
3487
|
-
z ? pt =
|
|
3488
|
+
z ? pt = Qt : pt = er;
|
|
3488
3489
|
var wt;
|
|
3489
3490
|
z || (wt = "/");
|
|
3490
|
-
function
|
|
3491
|
+
function tr(t, e) {
|
|
3491
3492
|
return t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? { response: fetch(t) } : { binary: vt.readFile(t).then((r) => new Uint8Array(r.buffer, r.byteOffset, r.byteLength)) };
|
|
3492
3493
|
}
|
|
3493
|
-
x(
|
|
3494
|
-
function
|
|
3494
|
+
x(tr, "node_getBinaryResponse");
|
|
3495
|
+
function rr(t, e) {
|
|
3495
3496
|
let r = new URL(t, location);
|
|
3496
3497
|
return { response: fetch(r, e ? { integrity: e } : {}) };
|
|
3497
3498
|
}
|
|
3498
|
-
x(
|
|
3499
|
+
x(rr, "browser_getBinaryResponse");
|
|
3499
3500
|
var tt;
|
|
3500
|
-
z ? tt =
|
|
3501
|
-
async function
|
|
3501
|
+
z ? tt = tr : tt = rr;
|
|
3502
|
+
async function nr(t, e) {
|
|
3502
3503
|
let { response: r, binary: n } = tt(t, e);
|
|
3503
3504
|
if (n) return n;
|
|
3504
3505
|
let s = await r;
|
|
3505
3506
|
if (!s.ok) throw new Error(`Failed to load '${t}': request failed.`);
|
|
3506
3507
|
return new Uint8Array(await s.arrayBuffer());
|
|
3507
3508
|
}
|
|
3508
|
-
x(
|
|
3509
|
-
var
|
|
3510
|
-
if (ts)
|
|
3511
|
-
else if (rs)
|
|
3509
|
+
x(nr, "loadBinaryFile");
|
|
3510
|
+
var Ue;
|
|
3511
|
+
if (ts) Ue = x(async (t) => await import(t), "loadScript");
|
|
3512
|
+
else if (rs) Ue = x(async (t) => {
|
|
3512
3513
|
try {
|
|
3513
3514
|
globalThis.importScripts(t);
|
|
3514
3515
|
} catch (e) {
|
|
@@ -3516,22 +3517,22 @@ var ps = vr((ys, yt) => {
|
|
|
3516
3517
|
else throw e;
|
|
3517
3518
|
}
|
|
3518
3519
|
}, "loadScript");
|
|
3519
|
-
else if (z)
|
|
3520
|
+
else if (z) Ue = sr;
|
|
3520
3521
|
else throw new Error("Cannot determine runtime environment");
|
|
3521
|
-
async function nr(t) {
|
|
3522
|
-
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Kt.runInThisContext(await (await fetch(t)).text()) : await import(Gt.pathToFileURL(t).href);
|
|
3523
|
-
}
|
|
3524
|
-
x(nr, "nodeLoadScript");
|
|
3525
3522
|
async function sr(t) {
|
|
3523
|
+
t.startsWith("file://") && (t = t.slice(7)), t.includes("://") ? Xt.runInThisContext(await (await fetch(t)).text()) : await import(Kt.pathToFileURL(t).href);
|
|
3524
|
+
}
|
|
3525
|
+
x(sr, "nodeLoadScript");
|
|
3526
|
+
async function ar(t) {
|
|
3526
3527
|
if (z) {
|
|
3527
3528
|
await _t();
|
|
3528
3529
|
let e = await vt.readFile(t, { encoding: "utf8" });
|
|
3529
3530
|
return JSON.parse(e);
|
|
3530
3531
|
} else return await (await fetch(t)).json();
|
|
3531
3532
|
}
|
|
3532
|
-
x(
|
|
3533
|
-
async function
|
|
3534
|
-
if (
|
|
3533
|
+
x(ar, "loadLockFile");
|
|
3534
|
+
async function ir() {
|
|
3535
|
+
if (Yt) return __dirname;
|
|
3535
3536
|
let t;
|
|
3536
3537
|
try {
|
|
3537
3538
|
throw new Error();
|
|
@@ -3547,8 +3548,8 @@ var ps = vr((ys, yt) => {
|
|
|
3547
3548
|
if (r === -1) throw new Error("Could not extract indexURL path from pyodide module location");
|
|
3548
3549
|
return e.slice(0, r);
|
|
3549
3550
|
}
|
|
3550
|
-
x(
|
|
3551
|
-
function
|
|
3551
|
+
x(ir, "calculateDirname");
|
|
3552
|
+
function or(t) {
|
|
3552
3553
|
let e = t.FS, r = t.FS.filesystems.MEMFS, n = t.PATH, s = { DIR_MODE: 16895, FILE_MODE: 33279, mount: function(a) {
|
|
3553
3554
|
if (!a.opts.fileSystemHandle) throw new Error("opts.fileSystemHandle is required");
|
|
3554
3555
|
return r.mount.apply(null, arguments);
|
|
@@ -3612,8 +3613,8 @@ var ps = vr((ys, yt) => {
|
|
|
3612
3613
|
}, reconcile: async (a, i, o) => {
|
|
3613
3614
|
let d = 0, c = [];
|
|
3614
3615
|
Object.keys(i.entries).forEach(function(S) {
|
|
3615
|
-
let I = i.entries[S],
|
|
3616
|
-
(!
|
|
3616
|
+
let I = i.entries[S], q = o.entries[S];
|
|
3617
|
+
(!q || e.isFile(I.mode) && I.timestamp.getTime() > q.timestamp.getTime()) && (c.push(S), d++);
|
|
3617
3618
|
}), c.sort();
|
|
3618
3619
|
let l = [];
|
|
3619
3620
|
if (Object.keys(o.entries).forEach(function(S) {
|
|
@@ -3623,11 +3624,11 @@ var ps = vr((ys, yt) => {
|
|
|
3623
3624
|
for (let S of c) {
|
|
3624
3625
|
let I = n.normalize(S.replace(a.mountpoint, "/")).substring(1);
|
|
3625
3626
|
if (o.type === "local") {
|
|
3626
|
-
let
|
|
3627
|
+
let q = b.get(I), Ve = await s.loadRemoteEntry(q);
|
|
3627
3628
|
s.storeLocalEntry(S, Ve);
|
|
3628
3629
|
} else {
|
|
3629
|
-
let
|
|
3630
|
-
await s.storeRemoteEntry(b, I,
|
|
3630
|
+
let q = s.loadLocalEntry(S);
|
|
3631
|
+
await s.storeRemoteEntry(b, I, q);
|
|
3631
3632
|
}
|
|
3632
3633
|
}
|
|
3633
3634
|
for (let S of l) if (o.type === "local") s.removeLocalEntry(S);
|
|
@@ -3638,7 +3639,7 @@ var ps = vr((ys, yt) => {
|
|
|
3638
3639
|
} };
|
|
3639
3640
|
t.FS.filesystems.NATIVEFS_ASYNC = s;
|
|
3640
3641
|
}
|
|
3641
|
-
x(
|
|
3642
|
+
x(or, "initializeNativeFS");
|
|
3642
3643
|
var ns = x(async (t) => {
|
|
3643
3644
|
let e = [];
|
|
3644
3645
|
async function r(s) {
|
|
@@ -3653,14 +3654,14 @@ var ps = vr((ys, yt) => {
|
|
|
3653
3654
|
}
|
|
3654
3655
|
return n;
|
|
3655
3656
|
}, "getFsHandles");
|
|
3656
|
-
function
|
|
3657
|
-
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun:
|
|
3657
|
+
function dr(t) {
|
|
3658
|
+
let e = { noImageDecoding: !0, noAudioDecoding: !0, noWasmDecoding: !1, preRun: pr(t), quit(r, n) {
|
|
3658
3659
|
throw e.exited = { status: r, toThrow: n }, n;
|
|
3659
|
-
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm:
|
|
3660
|
+
}, print: t.stdout, printErr: t.stderr, thisProgram: t._sysExecutable, arguments: t.args, API: { config: t }, locateFile: (r) => t.indexURL + r, instantiateWasm: hr(t.indexURL) };
|
|
3660
3661
|
return e;
|
|
3661
3662
|
}
|
|
3662
|
-
x(
|
|
3663
|
-
function
|
|
3663
|
+
x(dr, "createSettings");
|
|
3664
|
+
function cr(t) {
|
|
3664
3665
|
return function(e) {
|
|
3665
3666
|
let r = "/";
|
|
3666
3667
|
try {
|
|
@@ -3671,14 +3672,14 @@ var ps = vr((ys, yt) => {
|
|
|
3671
3672
|
e.FS.chdir(t);
|
|
3672
3673
|
};
|
|
3673
3674
|
}
|
|
3674
|
-
x(
|
|
3675
|
-
function
|
|
3675
|
+
x(cr, "createHomeDirectory");
|
|
3676
|
+
function ur(t) {
|
|
3676
3677
|
return function(e) {
|
|
3677
3678
|
Object.assign(e.ENV, t);
|
|
3678
3679
|
};
|
|
3679
3680
|
}
|
|
3680
|
-
x(
|
|
3681
|
-
function
|
|
3681
|
+
x(ur, "setEnvironment");
|
|
3682
|
+
function lr(t) {
|
|
3682
3683
|
return t ? [async (e) => {
|
|
3683
3684
|
e.addRunDependency("fsInitHook");
|
|
3684
3685
|
try {
|
|
@@ -3688,9 +3689,9 @@ var ps = vr((ys, yt) => {
|
|
|
3688
3689
|
}
|
|
3689
3690
|
}] : [];
|
|
3690
3691
|
}
|
|
3691
|
-
x(
|
|
3692
|
-
function
|
|
3693
|
-
let e =
|
|
3692
|
+
x(lr, "callFsInitHook");
|
|
3693
|
+
function fr(t) {
|
|
3694
|
+
let e = nr(t);
|
|
3694
3695
|
return async (r) => {
|
|
3695
3696
|
let n = r._py_version_major(), s = r._py_version_minor();
|
|
3696
3697
|
r.FS.mkdirTree("/lib"), r.API.sitePackages = `/lib/python${n}.${s}/site-packages`, r.FS.mkdirTree(r.API.sitePackages), r.addRunDependency("install-stdlib");
|
|
@@ -3704,13 +3705,13 @@ var ps = vr((ys, yt) => {
|
|
|
3704
3705
|
}
|
|
3705
3706
|
};
|
|
3706
3707
|
}
|
|
3707
|
-
x(
|
|
3708
|
-
function
|
|
3708
|
+
x(fr, "installStdlib");
|
|
3709
|
+
function pr(t) {
|
|
3709
3710
|
let e;
|
|
3710
|
-
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...
|
|
3711
|
+
return t.stdLibURL != null ? e = t.stdLibURL : e = t.indexURL + "python_stdlib.zip", [...lr(t.fsInit), fr(e), cr(t.env.HOME), ur(t.env), or];
|
|
3711
3712
|
}
|
|
3712
|
-
x(
|
|
3713
|
-
function
|
|
3713
|
+
x(pr, "getFileSystemInitializationFuncs");
|
|
3714
|
+
function hr(t) {
|
|
3714
3715
|
if (typeof WasmOffsetConverter < "u") return;
|
|
3715
3716
|
let { binary: e, response: r } = tt(t + "pyodide.asm.wasm");
|
|
3716
3717
|
return function(n, s) {
|
|
@@ -3726,19 +3727,19 @@ var ps = vr((ys, yt) => {
|
|
|
3726
3727
|
}(), {};
|
|
3727
3728
|
};
|
|
3728
3729
|
}
|
|
3729
|
-
x(
|
|
3730
|
+
x(hr, "getInstantiateWasmFunc");
|
|
3730
3731
|
var ht = "0.27.5";
|
|
3731
3732
|
async function mt(t = {}) {
|
|
3732
3733
|
var e, r;
|
|
3733
3734
|
await _t();
|
|
3734
|
-
let n = t.indexURL || await
|
|
3735
|
+
let n = t.indexURL || await ir();
|
|
3735
3736
|
n = pt(n), n.endsWith("/") || (n += "/"), t.indexURL = n;
|
|
3736
3737
|
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);
|
|
3737
3738
|
(e = a.env).HOME ?? (e.HOME = "/home/pyodide"), (r = a.env).PYTHONINSPECT ?? (r.PYTHONINSPECT = "1");
|
|
3738
|
-
let i =
|
|
3739
|
-
if (o.lockFilePromise =
|
|
3739
|
+
let i = dr(a), o = i.API;
|
|
3740
|
+
if (o.lockFilePromise = ar(a.lockFileURL), typeof _createPyodideModule != "function") {
|
|
3740
3741
|
let S = `${a.indexURL}pyodide.asm.js`;
|
|
3741
|
-
await
|
|
3742
|
+
await Ue(S);
|
|
3742
3743
|
}
|
|
3743
3744
|
let d;
|
|
3744
3745
|
if (t._loadSnapshot) {
|
|
@@ -4020,11 +4021,11 @@ ${e}`;
|
|
|
4020
4021
|
});
|
|
4021
4022
|
}
|
|
4022
4023
|
}
|
|
4023
|
-
const Be = us(),
|
|
4024
|
+
const Be = us(), mr = new Vn(
|
|
4024
4025
|
(t) => {
|
|
4025
4026
|
we.send.kernelMessage({ message: t });
|
|
4026
4027
|
}
|
|
4027
|
-
), Rt = new
|
|
4028
|
+
), Rt = new wr(), ls = {
|
|
4028
4029
|
/**
|
|
4029
4030
|
* Start the session
|
|
4030
4031
|
*/
|
|
@@ -4037,7 +4038,7 @@ ${e}`;
|
|
|
4037
4038
|
filename: `app-${t.appId}.py`
|
|
4038
4039
|
}), r = await self.controller.startSession({
|
|
4039
4040
|
...e,
|
|
4040
|
-
onMessage:
|
|
4041
|
+
onMessage: mr.push
|
|
4041
4042
|
});
|
|
4042
4043
|
Rt.resolve(r), we.send.initialized({});
|
|
4043
4044
|
} catch (e) {
|
|
@@ -4073,15 +4074,15 @@ ${t}`)), await self.pyodide.loadPackagesFromImports(t, {
|
|
|
4073
4074
|
);
|
|
4074
4075
|
return typeof a == "string" ? JSON.parse(a) : a;
|
|
4075
4076
|
}
|
|
4076
|
-
}, we =
|
|
4077
|
-
transport:
|
|
4078
|
-
transportId:
|
|
4077
|
+
}, we = Zn({
|
|
4078
|
+
transport: Dn({
|
|
4079
|
+
transportId: Ln
|
|
4079
4080
|
}),
|
|
4080
4081
|
requestHandler: ls
|
|
4081
4082
|
});
|
|
4082
4083
|
we.send("ready", {});
|
|
4083
4084
|
we.addMessageListener("consumerReady", async () => {
|
|
4084
|
-
await Be,
|
|
4085
|
+
await Be, mr.start();
|
|
4085
4086
|
});
|
|
4086
4087
|
function fs() {
|
|
4087
4088
|
return self.name;
|