@datapos/datapos-development 0.3.320 → 0.3.321
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.
|
@@ -152,11 +152,11 @@ function st(e) {
|
|
|
152
152
|
function Ar(e) {
|
|
153
153
|
return st(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Gs = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
156
156
|
function nt(e) {
|
|
157
157
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ge(e, t, i) {
|
|
160
160
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
161
161
|
return (!t || i?.parent) && (r._zod.parent = e), r;
|
|
162
162
|
}
|
|
@@ -173,10 +173,10 @@ function R(e) {
|
|
|
173
173
|
}
|
|
174
174
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ws(e) {
|
|
177
177
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
178
178
|
}
|
|
179
|
-
const
|
|
179
|
+
const Ks = {
|
|
180
180
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
181
181
|
int32: [-2147483648, 2147483647],
|
|
182
182
|
uint32: [0, 4294967295],
|
|
@@ -196,7 +196,7 @@ function Xs(e, t) {
|
|
|
196
196
|
},
|
|
197
197
|
checks: []
|
|
198
198
|
});
|
|
199
|
-
return
|
|
199
|
+
return Ge(e, r);
|
|
200
200
|
}
|
|
201
201
|
function Js(e, t) {
|
|
202
202
|
const i = e._zod.def, r = Je(e._zod.def, {
|
|
@@ -211,7 +211,7 @@ function Js(e, t) {
|
|
|
211
211
|
},
|
|
212
212
|
checks: []
|
|
213
213
|
});
|
|
214
|
-
return
|
|
214
|
+
return Ge(e, r);
|
|
215
215
|
}
|
|
216
216
|
function Ys(e, t) {
|
|
217
217
|
if (!st(t))
|
|
@@ -226,7 +226,7 @@ function Ys(e, t) {
|
|
|
226
226
|
},
|
|
227
227
|
checks: []
|
|
228
228
|
});
|
|
229
|
-
return
|
|
229
|
+
return Ge(e, n);
|
|
230
230
|
}
|
|
231
231
|
function Qs(e, t) {
|
|
232
232
|
if (!st(t))
|
|
@@ -239,7 +239,7 @@ function Qs(e, t) {
|
|
|
239
239
|
},
|
|
240
240
|
checks: e._zod.def.checks
|
|
241
241
|
};
|
|
242
|
-
return
|
|
242
|
+
return Ge(e, i);
|
|
243
243
|
}
|
|
244
244
|
function en(e, t) {
|
|
245
245
|
const i = Je(e._zod.def, {
|
|
@@ -253,7 +253,7 @@ function en(e, t) {
|
|
|
253
253
|
checks: []
|
|
254
254
|
// delete existing checks
|
|
255
255
|
});
|
|
256
|
-
return
|
|
256
|
+
return Ge(e, i);
|
|
257
257
|
}
|
|
258
258
|
function tn(e, t, i) {
|
|
259
259
|
const r = Je(t._zod.def, {
|
|
@@ -278,7 +278,7 @@ function tn(e, t, i) {
|
|
|
278
278
|
},
|
|
279
279
|
checks: []
|
|
280
280
|
});
|
|
281
|
-
return
|
|
281
|
+
return Ge(t, r);
|
|
282
282
|
}
|
|
283
283
|
function rn(e, t, i) {
|
|
284
284
|
const r = Je(t._zod.def, {
|
|
@@ -303,7 +303,7 @@ function rn(e, t, i) {
|
|
|
303
303
|
},
|
|
304
304
|
checks: []
|
|
305
305
|
});
|
|
306
|
-
return
|
|
306
|
+
return Ge(t, r);
|
|
307
307
|
}
|
|
308
308
|
function tt(e, t = 0) {
|
|
309
309
|
if (e.aborted === !0)
|
|
@@ -505,7 +505,7 @@ const Mn = (e) => {
|
|
|
505
505
|
};
|
|
506
506
|
}), Zn = /* @__PURE__ */ k("$ZodCheckNumberFormat", (e, t) => {
|
|
507
507
|
me.init(e, t), t.format = t.format || "float64";
|
|
508
|
-
const i = t.format?.includes("int"), r = i ? "int" : "number", [n, u] =
|
|
508
|
+
const i = t.format?.includes("int"), r = i ? "int" : "number", [n, u] = Ks[t.format];
|
|
509
509
|
e._zod.onattach.push((h) => {
|
|
510
510
|
const d = h._zod.bag;
|
|
511
511
|
d.format = t.format, d.minimum = n, d.maximum = u, i && (d.pattern = Vn);
|
|
@@ -646,7 +646,7 @@ const Mn = (e) => {
|
|
|
646
646
|
});
|
|
647
647
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
648
648
|
});
|
|
649
|
-
}),
|
|
649
|
+
}), Gn = /* @__PURE__ */ k("$ZodCheckRegex", (e, t) => {
|
|
650
650
|
Ht.init(e, t), e._zod.check = (i) => {
|
|
651
651
|
t.pattern.lastIndex = 0, !t.pattern.test(i.value) && i.issues.push({
|
|
652
652
|
origin: "string",
|
|
@@ -658,9 +658,9 @@ const Mn = (e) => {
|
|
|
658
658
|
continue: !t.abort
|
|
659
659
|
});
|
|
660
660
|
};
|
|
661
|
-
}),
|
|
661
|
+
}), Wn = /* @__PURE__ */ k("$ZodCheckLowerCase", (e, t) => {
|
|
662
662
|
t.pattern ?? (t.pattern = Fn), Ht.init(e, t);
|
|
663
|
-
}),
|
|
663
|
+
}), Kn = /* @__PURE__ */ k("$ZodCheckUpperCase", (e, t) => {
|
|
664
664
|
t.pattern ?? (t.pattern = $n), Ht.init(e, t);
|
|
665
665
|
}), Xn = /* @__PURE__ */ k("$ZodCheckIncludes", (e, t) => {
|
|
666
666
|
me.init(e, t);
|
|
@@ -833,10 +833,10 @@ const ta = {
|
|
|
833
833
|
inst: e
|
|
834
834
|
}), i;
|
|
835
835
|
};
|
|
836
|
-
}),
|
|
836
|
+
}), W = /* @__PURE__ */ k("$ZodStringFormat", (e, t) => {
|
|
837
837
|
Ht.init(e, t), Si.init(e, t);
|
|
838
838
|
}), ia = /* @__PURE__ */ k("$ZodGUID", (e, t) => {
|
|
839
|
-
t.pattern ?? (t.pattern = Sn),
|
|
839
|
+
t.pattern ?? (t.pattern = Sn), W.init(e, t);
|
|
840
840
|
}), ra = /* @__PURE__ */ k("$ZodUUID", (e, t) => {
|
|
841
841
|
if (t.version) {
|
|
842
842
|
const r = {
|
|
@@ -854,11 +854,11 @@ const ta = {
|
|
|
854
854
|
t.pattern ?? (t.pattern = $i(r));
|
|
855
855
|
} else
|
|
856
856
|
t.pattern ?? (t.pattern = $i());
|
|
857
|
-
|
|
857
|
+
W.init(e, t);
|
|
858
858
|
}), sa = /* @__PURE__ */ k("$ZodEmail", (e, t) => {
|
|
859
|
-
t.pattern ?? (t.pattern = wn),
|
|
859
|
+
t.pattern ?? (t.pattern = wn), W.init(e, t);
|
|
860
860
|
}), na = /* @__PURE__ */ k("$ZodURL", (e, t) => {
|
|
861
|
-
|
|
861
|
+
W.init(e, t), e._zod.check = (i) => {
|
|
862
862
|
try {
|
|
863
863
|
const r = i.value.trim(), n = new URL(r);
|
|
864
864
|
t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(n.hostname) || i.issues.push({
|
|
@@ -890,31 +890,31 @@ const ta = {
|
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
892
|
}), aa = /* @__PURE__ */ k("$ZodEmoji", (e, t) => {
|
|
893
|
-
t.pattern ?? (t.pattern = Pn()),
|
|
893
|
+
t.pattern ?? (t.pattern = Pn()), W.init(e, t);
|
|
894
894
|
}), oa = /* @__PURE__ */ k("$ZodNanoID", (e, t) => {
|
|
895
|
-
t.pattern ?? (t.pattern = _n),
|
|
895
|
+
t.pattern ?? (t.pattern = _n), W.init(e, t);
|
|
896
896
|
}), ua = /* @__PURE__ */ k("$ZodCUID", (e, t) => {
|
|
897
|
-
t.pattern ?? (t.pattern = yn),
|
|
897
|
+
t.pattern ?? (t.pattern = yn), W.init(e, t);
|
|
898
898
|
}), ca = /* @__PURE__ */ k("$ZodCUID2", (e, t) => {
|
|
899
|
-
t.pattern ?? (t.pattern = vn),
|
|
899
|
+
t.pattern ?? (t.pattern = vn), W.init(e, t);
|
|
900
900
|
}), ha = /* @__PURE__ */ k("$ZodULID", (e, t) => {
|
|
901
|
-
t.pattern ?? (t.pattern = xn),
|
|
901
|
+
t.pattern ?? (t.pattern = xn), W.init(e, t);
|
|
902
902
|
}), pa = /* @__PURE__ */ k("$ZodXID", (e, t) => {
|
|
903
|
-
t.pattern ?? (t.pattern = gn),
|
|
903
|
+
t.pattern ?? (t.pattern = gn), W.init(e, t);
|
|
904
904
|
}), la = /* @__PURE__ */ k("$ZodKSUID", (e, t) => {
|
|
905
|
-
t.pattern ?? (t.pattern = bn),
|
|
905
|
+
t.pattern ?? (t.pattern = bn), W.init(e, t);
|
|
906
906
|
}), fa = /* @__PURE__ */ k("$ZodISODateTime", (e, t) => {
|
|
907
|
-
t.pattern ?? (t.pattern = Dn(t)),
|
|
907
|
+
t.pattern ?? (t.pattern = Dn(t)), W.init(e, t);
|
|
908
908
|
}), da = /* @__PURE__ */ k("$ZodISODate", (e, t) => {
|
|
909
|
-
t.pattern ?? (t.pattern = On),
|
|
909
|
+
t.pattern ?? (t.pattern = On), W.init(e, t);
|
|
910
910
|
}), ma = /* @__PURE__ */ k("$ZodISOTime", (e, t) => {
|
|
911
|
-
t.pattern ?? (t.pattern = Rn(t)),
|
|
911
|
+
t.pattern ?? (t.pattern = Rn(t)), W.init(e, t);
|
|
912
912
|
}), ya = /* @__PURE__ */ k("$ZodISODuration", (e, t) => {
|
|
913
|
-
t.pattern ?? (t.pattern = kn),
|
|
913
|
+
t.pattern ?? (t.pattern = kn), W.init(e, t);
|
|
914
914
|
}), va = /* @__PURE__ */ k("$ZodIPv4", (e, t) => {
|
|
915
|
-
t.pattern ?? (t.pattern = Cn),
|
|
915
|
+
t.pattern ?? (t.pattern = Cn), W.init(e, t), e._zod.bag.format = "ipv4";
|
|
916
916
|
}), xa = /* @__PURE__ */ k("$ZodIPv6", (e, t) => {
|
|
917
|
-
t.pattern ?? (t.pattern = An),
|
|
917
|
+
t.pattern ?? (t.pattern = An), W.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (i) => {
|
|
918
918
|
try {
|
|
919
919
|
new URL(`http://[${i.value}]`);
|
|
920
920
|
} catch {
|
|
@@ -928,9 +928,9 @@ const ta = {
|
|
|
928
928
|
}
|
|
929
929
|
};
|
|
930
930
|
}), ga = /* @__PURE__ */ k("$ZodCIDRv4", (e, t) => {
|
|
931
|
-
t.pattern ?? (t.pattern = En),
|
|
931
|
+
t.pattern ?? (t.pattern = En), W.init(e, t);
|
|
932
932
|
}), ba = /* @__PURE__ */ k("$ZodCIDRv6", (e, t) => {
|
|
933
|
-
t.pattern ?? (t.pattern = In),
|
|
933
|
+
t.pattern ?? (t.pattern = In), W.init(e, t), e._zod.check = (i) => {
|
|
934
934
|
const r = i.value.split("/");
|
|
935
935
|
try {
|
|
936
936
|
if (r.length !== 2)
|
|
@@ -967,7 +967,7 @@ function zr(e) {
|
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
const _a = /* @__PURE__ */ k("$ZodBase64", (e, t) => {
|
|
970
|
-
t.pattern ?? (t.pattern = Nn),
|
|
970
|
+
t.pattern ?? (t.pattern = Nn), W.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (i) => {
|
|
971
971
|
zr(i.value) || i.issues.push({
|
|
972
972
|
code: "invalid_format",
|
|
973
973
|
format: "base64",
|
|
@@ -984,7 +984,7 @@ function ka(e) {
|
|
|
984
984
|
return zr(i);
|
|
985
985
|
}
|
|
986
986
|
const Sa = /* @__PURE__ */ k("$ZodBase64URL", (e, t) => {
|
|
987
|
-
t.pattern ?? (t.pattern = Lr),
|
|
987
|
+
t.pattern ?? (t.pattern = Lr), W.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (i) => {
|
|
988
988
|
ka(i.value) || i.issues.push({
|
|
989
989
|
code: "invalid_format",
|
|
990
990
|
format: "base64url",
|
|
@@ -994,7 +994,7 @@ const Sa = /* @__PURE__ */ k("$ZodBase64URL", (e, t) => {
|
|
|
994
994
|
});
|
|
995
995
|
};
|
|
996
996
|
}), wa = /* @__PURE__ */ k("$ZodE164", (e, t) => {
|
|
997
|
-
t.pattern ?? (t.pattern = Ln),
|
|
997
|
+
t.pattern ?? (t.pattern = Ln), W.init(e, t);
|
|
998
998
|
});
|
|
999
999
|
function Ta(e, t = null) {
|
|
1000
1000
|
try {
|
|
@@ -1011,7 +1011,7 @@ function Ta(e, t = null) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
const Pa = /* @__PURE__ */ k("$ZodJWT", (e, t) => {
|
|
1014
|
-
|
|
1014
|
+
W.init(e, t), e._zod.check = (i) => {
|
|
1015
1015
|
Ta(i.value, t.alg) || i.issues.push({
|
|
1016
1016
|
code: "invalid_format",
|
|
1017
1017
|
format: "jwt",
|
|
@@ -1099,7 +1099,7 @@ function Fr(e) {
|
|
|
1099
1099
|
for (const r of t)
|
|
1100
1100
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
1101
1101
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
1102
|
-
const i =
|
|
1102
|
+
const i = Ws(e.shape);
|
|
1103
1103
|
return {
|
|
1104
1104
|
...e,
|
|
1105
1105
|
keys: t,
|
|
@@ -1186,22 +1186,22 @@ const La = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1186
1186
|
D[Ce] = `key_${se++}`;
|
|
1187
1187
|
F.write("const newResult = {};");
|
|
1188
1188
|
for (const Ce of Z.keys) {
|
|
1189
|
-
const be = D[Ce],
|
|
1189
|
+
const be = D[Ce], Ke = Fi(Ce);
|
|
1190
1190
|
F.write(`const ${be} = ${pe(Ce)};`), F.write(`
|
|
1191
1191
|
if (${be}.issues.length) {
|
|
1192
1192
|
payload.issues = payload.issues.concat(${be}.issues.map(iss => ({
|
|
1193
1193
|
...iss,
|
|
1194
|
-
path: iss.path ? [${
|
|
1194
|
+
path: iss.path ? [${Ke}, ...iss.path] : [${Ke}]
|
|
1195
1195
|
})));
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
1198
|
|
|
1199
1199
|
if (${be}.value === undefined) {
|
|
1200
|
-
if (${
|
|
1201
|
-
newResult[${
|
|
1200
|
+
if (${Ke} in input) {
|
|
1201
|
+
newResult[${Ke}] = undefined;
|
|
1202
1202
|
}
|
|
1203
1203
|
} else {
|
|
1204
|
-
newResult[${
|
|
1204
|
+
newResult[${Ke}] = ${be}.value;
|
|
1205
1205
|
}
|
|
1206
1206
|
|
|
1207
1207
|
`);
|
|
@@ -1377,7 +1377,7 @@ const Ma = /* @__PURE__ */ k("$ZodRecord", (e, t) => {
|
|
|
1377
1377
|
}), Va = /* @__PURE__ */ k("$ZodEnum", (e, t) => {
|
|
1378
1378
|
Y.init(e, t);
|
|
1379
1379
|
const i = Zs(t.entries), r = new Set(i);
|
|
1380
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${i.filter((n) =>
|
|
1380
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${i.filter((n) => Gs.has(typeof n)).map((n) => typeof n == "string" ? nt(n) : n.toString()).join("|")})$`), e._zod.parse = (n, u) => {
|
|
1381
1381
|
const h = n.value;
|
|
1382
1382
|
return r.has(h) || n.issues.push({
|
|
1383
1383
|
code: "invalid_value",
|
|
@@ -1451,10 +1451,10 @@ const Za = /* @__PURE__ */ k("$ZodPrefault", (e, t) => {
|
|
|
1451
1451
|
return i ? new Set([...i].filter((r) => r !== void 0)) : void 0;
|
|
1452
1452
|
}), e._zod.parse = (i, r) => {
|
|
1453
1453
|
const n = t.innerType._zod.run(i, r);
|
|
1454
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1454
|
+
return n instanceof Promise ? n.then((u) => Gi(u, e)) : Gi(n, e);
|
|
1455
1455
|
};
|
|
1456
1456
|
});
|
|
1457
|
-
function
|
|
1457
|
+
function Gi(e, t) {
|
|
1458
1458
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1459
1459
|
code: "invalid_type",
|
|
1460
1460
|
expected: "nonoptional",
|
|
@@ -1494,26 +1494,26 @@ const qa = /* @__PURE__ */ k("$ZodCatch", (e, t) => {
|
|
|
1494
1494
|
function Nt(e, t, i) {
|
|
1495
1495
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, i);
|
|
1496
1496
|
}
|
|
1497
|
-
const
|
|
1497
|
+
const Ga = /* @__PURE__ */ k("$ZodReadonly", (e, t) => {
|
|
1498
1498
|
Y.init(e, t), U(e._zod, "propValues", () => t.innerType._zod.propValues), U(e._zod, "values", () => t.innerType._zod.values), U(e._zod, "optin", () => t.innerType?._zod?.optin), U(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (i, r) => {
|
|
1499
1499
|
if (r.direction === "backward")
|
|
1500
1500
|
return t.innerType._zod.run(i, r);
|
|
1501
1501
|
const n = t.innerType._zod.run(i, r);
|
|
1502
|
-
return n instanceof Promise ? n.then(
|
|
1502
|
+
return n instanceof Promise ? n.then(Wi) : Wi(n);
|
|
1503
1503
|
};
|
|
1504
1504
|
});
|
|
1505
|
-
function
|
|
1505
|
+
function Wi(e) {
|
|
1506
1506
|
return e.value = Object.freeze(e.value), e;
|
|
1507
1507
|
}
|
|
1508
|
-
const
|
|
1508
|
+
const Wa = /* @__PURE__ */ k("$ZodCustom", (e, t) => {
|
|
1509
1509
|
me.init(e, t), Y.init(e, t), e._zod.parse = (i, r) => i, e._zod.check = (i) => {
|
|
1510
1510
|
const r = i.value, n = t.fn(r);
|
|
1511
1511
|
if (n instanceof Promise)
|
|
1512
|
-
return n.then((u) =>
|
|
1513
|
-
|
|
1512
|
+
return n.then((u) => Ki(u, i, r, e));
|
|
1513
|
+
Ki(n, i, r, e);
|
|
1514
1514
|
};
|
|
1515
1515
|
});
|
|
1516
|
-
function
|
|
1516
|
+
function Ki(e, t, i, r) {
|
|
1517
1517
|
if (!e) {
|
|
1518
1518
|
const n = {
|
|
1519
1519
|
code: "custom",
|
|
@@ -1529,7 +1529,7 @@ function Gi(e, t, i, r) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
var Xi;
|
|
1532
|
-
class
|
|
1532
|
+
class Ka {
|
|
1533
1533
|
constructor() {
|
|
1534
1534
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1535
1535
|
}
|
|
@@ -1564,7 +1564,7 @@ class Ga {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
function Xa() {
|
|
1567
|
-
return new
|
|
1567
|
+
return new Ka();
|
|
1568
1568
|
}
|
|
1569
1569
|
(Xi = globalThis).__zod_globalRegistry ?? (Xi.__zod_globalRegistry = Xa());
|
|
1570
1570
|
const Lt = globalThis.__zod_globalRegistry;
|
|
@@ -1905,7 +1905,7 @@ function Zr(e, t) {
|
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
1907
|
function Eo(e, t) {
|
|
1908
|
-
return new
|
|
1908
|
+
return new Gn({
|
|
1909
1909
|
check: "string_format",
|
|
1910
1910
|
format: "regex",
|
|
1911
1911
|
...R(t),
|
|
@@ -1913,14 +1913,14 @@ function Eo(e, t) {
|
|
|
1913
1913
|
});
|
|
1914
1914
|
}
|
|
1915
1915
|
function Io(e) {
|
|
1916
|
-
return new
|
|
1916
|
+
return new Wn({
|
|
1917
1917
|
check: "string_format",
|
|
1918
1918
|
format: "lowercase",
|
|
1919
1919
|
...R(e)
|
|
1920
1920
|
});
|
|
1921
1921
|
}
|
|
1922
1922
|
function No(e) {
|
|
1923
|
-
return new
|
|
1923
|
+
return new Kn({
|
|
1924
1924
|
check: "string_format",
|
|
1925
1925
|
format: "uppercase",
|
|
1926
1926
|
...R(e)
|
|
@@ -2016,14 +2016,14 @@ function qo(e) {
|
|
|
2016
2016
|
const Ho = /* @__PURE__ */ k("ZodISODate", (e, t) => {
|
|
2017
2017
|
da.init(e, t), Q.init(e, t);
|
|
2018
2018
|
});
|
|
2019
|
-
function
|
|
2019
|
+
function Go(e) {
|
|
2020
2020
|
return _o(Ho, e);
|
|
2021
2021
|
}
|
|
2022
|
-
const
|
|
2022
|
+
const Wo = /* @__PURE__ */ k("ZodISOTime", (e, t) => {
|
|
2023
2023
|
ma.init(e, t), Q.init(e, t);
|
|
2024
2024
|
});
|
|
2025
|
-
function
|
|
2026
|
-
return ko(
|
|
2025
|
+
function Ko(e) {
|
|
2026
|
+
return ko(Wo, e);
|
|
2027
2027
|
}
|
|
2028
2028
|
const Xo = /* @__PURE__ */ k("ZodISODuration", (e, t) => {
|
|
2029
2029
|
ya.init(e, t), Q.init(e, t);
|
|
@@ -2067,7 +2067,7 @@ const Yo = (e, t) => {
|
|
|
2067
2067
|
...t.checks ?? [],
|
|
2068
2068
|
...i.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2069
2069
|
]
|
|
2070
|
-
})), e.clone = (i, r) =>
|
|
2070
|
+
})), e.clone = (i, r) => Ge(e, i, r), e.brand = () => e, e.register = ((i, r) => (i.add(e, r), e)), e.parse = (i, r) => Qo(e, i, r, { callee: e.parse }), e.safeParse = (i, r) => tu(e, i, r), e.parseAsync = async (i, r) => eu(e, i, r, { callee: e.parseAsync }), e.safeParseAsync = async (i, r) => iu(e, i, r), e.spa = e.safeParseAsync, e.encode = (i, r) => ru(e, i, r), e.decode = (i, r) => su(e, i, r), e.encodeAsync = async (i, r) => nu(e, i, r), e.decodeAsync = async (i, r) => au(e, i, r), e.safeEncode = (i, r) => ou(e, i, r), e.safeDecode = (i, r) => uu(e, i, r), e.safeEncodeAsync = async (i, r) => cu(e, i, r), e.safeDecodeAsync = async (i, r) => hu(e, i, r), e.refine = (i, r) => e.check(ic(i, r)), e.superRefine = (i) => e.check(rc(i)), e.overwrite = (i) => e.check(ct(i)), e.optional = () => sr(e), e.nullable = () => nr(e), e.nullish = () => sr(nr(e)), e.nonoptional = (i) => Ku(e, i), e.array = () => He(e), e.or = (i) => ae([e, i]), e.and = (i) => ju(e, i), e.transform = (i) => ar(e, Zu(i)), e.default = (i) => Hu(e, i), e.prefault = (i) => Wu(e, i), e.catch = (i) => Ju(e, i), e.pipe = (i) => ar(e, i), e.readonly = () => ec(e), e.describe = (i) => {
|
|
2071
2071
|
const r = e.clone();
|
|
2072
2072
|
return Lt.add(r, { description: i }), r;
|
|
2073
2073
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2085,13 +2085,13 @@ const Yo = (e, t) => {
|
|
|
2085
2085
|
const i = e._zod.bag;
|
|
2086
2086
|
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(Eo(...r)), e.includes = (...r) => e.check(Lo(...r)), e.startsWith = (...r) => e.check(Oo(...r)), e.endsWith = (...r) => e.check(Ro(...r)), e.min = (...r) => e.check(Vt(...r)), e.max = (...r) => e.check(Br(...r)), e.length = (...r) => e.check(Zr(...r)), e.nonempty = (...r) => e.check(Vt(1, ...r)), e.lowercase = (r) => e.check(Io(r)), e.uppercase = (r) => e.check(No(r)), e.trim = () => e.check(Mo()), e.normalize = (...r) => e.check(Do(...r)), e.toLowerCase = () => e.check(Vo()), e.toUpperCase = () => e.check(zo()), e.slugify = () => e.check(jo());
|
|
2087
2087
|
}), pu = /* @__PURE__ */ k("ZodString", (e, t) => {
|
|
2088
|
-
Si.init(e, t), Ur.init(e, t), e.email = (i) => e.check(Ya(lu, i)), e.url = (i) => e.check(ro(fu, i)), e.jwt = (i) => e.check(go(Au, i)), e.emoji = (i) => e.check(so(du, i)), e.guid = (i) => e.check(Ji(tr, i)), e.uuid = (i) => e.check(Qa(Ot, i)), e.uuidv4 = (i) => e.check(eo(Ot, i)), e.uuidv6 = (i) => e.check(to(Ot, i)), e.uuidv7 = (i) => e.check(io(Ot, i)), e.nanoid = (i) => e.check(no(mu, i)), e.guid = (i) => e.check(Ji(tr, i)), e.cuid = (i) => e.check(ao(yu, i)), e.cuid2 = (i) => e.check(oo(vu, i)), e.ulid = (i) => e.check(uo(xu, i)), e.base64 = (i) => e.check(yo(Tu, i)), e.base64url = (i) => e.check(vo(Pu, i)), e.xid = (i) => e.check(co(gu, i)), e.ksuid = (i) => e.check(ho(bu, i)), e.ipv4 = (i) => e.check(po(_u, i)), e.ipv6 = (i) => e.check(lo(ku, i)), e.cidrv4 = (i) => e.check(fo(Su, i)), e.cidrv6 = (i) => e.check(mo(wu, i)), e.e164 = (i) => e.check(xo(Cu, i)), e.datetime = (i) => e.check(qo(i)), e.date = (i) => e.check(
|
|
2088
|
+
Si.init(e, t), Ur.init(e, t), e.email = (i) => e.check(Ya(lu, i)), e.url = (i) => e.check(ro(fu, i)), e.jwt = (i) => e.check(go(Au, i)), e.emoji = (i) => e.check(so(du, i)), e.guid = (i) => e.check(Ji(tr, i)), e.uuid = (i) => e.check(Qa(Ot, i)), e.uuidv4 = (i) => e.check(eo(Ot, i)), e.uuidv6 = (i) => e.check(to(Ot, i)), e.uuidv7 = (i) => e.check(io(Ot, i)), e.nanoid = (i) => e.check(no(mu, i)), e.guid = (i) => e.check(Ji(tr, i)), e.cuid = (i) => e.check(ao(yu, i)), e.cuid2 = (i) => e.check(oo(vu, i)), e.ulid = (i) => e.check(uo(xu, i)), e.base64 = (i) => e.check(yo(Tu, i)), e.base64url = (i) => e.check(vo(Pu, i)), e.xid = (i) => e.check(co(gu, i)), e.ksuid = (i) => e.check(ho(bu, i)), e.ipv4 = (i) => e.check(po(_u, i)), e.ipv6 = (i) => e.check(lo(ku, i)), e.cidrv4 = (i) => e.check(fo(Su, i)), e.cidrv6 = (i) => e.check(mo(wu, i)), e.e164 = (i) => e.check(xo(Cu, i)), e.datetime = (i) => e.check(qo(i)), e.date = (i) => e.check(Go(i)), e.time = (i) => e.check(Ko(i)), e.duration = (i) => e.check(Jo(i));
|
|
2089
2089
|
});
|
|
2090
2090
|
function O(e) {
|
|
2091
2091
|
return Ja(pu, e);
|
|
2092
2092
|
}
|
|
2093
2093
|
const Q = /* @__PURE__ */ k("ZodStringFormat", (e, t) => {
|
|
2094
|
-
|
|
2094
|
+
W.init(e, t), Ur.init(e, t);
|
|
2095
2095
|
}), lu = /* @__PURE__ */ k("ZodEmail", (e, t) => {
|
|
2096
2096
|
sa.init(e, t), Q.init(e, t);
|
|
2097
2097
|
}), tr = /* @__PURE__ */ k("ZodGUID", (e, t) => {
|
|
@@ -2169,7 +2169,7 @@ function He(e, t) {
|
|
|
2169
2169
|
return Fo(Du, e, t);
|
|
2170
2170
|
}
|
|
2171
2171
|
const Mu = /* @__PURE__ */ k("ZodObject", (e, t) => {
|
|
2172
|
-
Oa.init(e, t), ee.init(e, t), U(e, "shape", () => t.shape), e.keyof = () =>
|
|
2172
|
+
Oa.init(e, t), ee.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Gt(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: rr() }), e.loose = () => e.clone({ ...e._zod.def, catchall: rr() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ru() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => Ys(e, i), e.safeExtend = (i) => Qs(e, i), e.merge = (i) => en(e, i), e.pick = (i) => Xs(e, i), e.omit = (i) => Js(e, i), e.partial = (...i) => tn(Hr, e, i[0]), e.required = (...i) => rn(Gr, e, i[0]);
|
|
2173
2173
|
});
|
|
2174
2174
|
function Ne(e, t) {
|
|
2175
2175
|
const i = {
|
|
@@ -2241,7 +2241,7 @@ const pi = /* @__PURE__ */ k("ZodEnum", (e, t) => {
|
|
|
2241
2241
|
});
|
|
2242
2242
|
};
|
|
2243
2243
|
});
|
|
2244
|
-
function
|
|
2244
|
+
function Gt(e, t) {
|
|
2245
2245
|
const i = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2246
2246
|
return new pi({
|
|
2247
2247
|
type: "enum",
|
|
@@ -2317,11 +2317,11 @@ function Hu(e, t) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
});
|
|
2319
2319
|
}
|
|
2320
|
-
const
|
|
2320
|
+
const Gu = /* @__PURE__ */ k("ZodPrefault", (e, t) => {
|
|
2321
2321
|
Za.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2322
2322
|
});
|
|
2323
|
-
function
|
|
2324
|
-
return new
|
|
2323
|
+
function Wu(e, t) {
|
|
2324
|
+
return new Gu({
|
|
2325
2325
|
type: "prefault",
|
|
2326
2326
|
innerType: e,
|
|
2327
2327
|
get defaultValue() {
|
|
@@ -2329,11 +2329,11 @@ function Ku(e, t) {
|
|
|
2329
2329
|
}
|
|
2330
2330
|
});
|
|
2331
2331
|
}
|
|
2332
|
-
const
|
|
2332
|
+
const Gr = /* @__PURE__ */ k("ZodNonOptional", (e, t) => {
|
|
2333
2333
|
Ua.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2334
2334
|
});
|
|
2335
|
-
function
|
|
2336
|
-
return new
|
|
2335
|
+
function Ku(e, t) {
|
|
2336
|
+
return new Gr({
|
|
2337
2337
|
type: "nonoptional",
|
|
2338
2338
|
innerType: e,
|
|
2339
2339
|
...R(t)
|
|
@@ -2361,7 +2361,7 @@ function ar(e, t) {
|
|
|
2361
2361
|
});
|
|
2362
2362
|
}
|
|
2363
2363
|
const Qu = /* @__PURE__ */ k("ZodReadonly", (e, t) => {
|
|
2364
|
-
|
|
2364
|
+
Ga.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2365
2365
|
});
|
|
2366
2366
|
function ec(e) {
|
|
2367
2367
|
return new Qu({
|
|
@@ -2370,7 +2370,7 @@ function ec(e) {
|
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
2372
|
const tc = /* @__PURE__ */ k("ZodCustom", (e, t) => {
|
|
2373
|
-
|
|
2373
|
+
Wa.init(e, t), ee.init(e, t);
|
|
2374
2374
|
});
|
|
2375
2375
|
function ic(e, t = {}) {
|
|
2376
2376
|
return $o(tc, e, t);
|
|
@@ -2378,7 +2378,7 @@ function ic(e, t = {}) {
|
|
|
2378
2378
|
function rc(e) {
|
|
2379
2379
|
return Bo(e);
|
|
2380
2380
|
}
|
|
2381
|
-
const sc = ["amber", "green", "red", "other"], nc =
|
|
2381
|
+
const sc = ["amber", "green", "red", "other"], nc = Gt(sc), ac = ["alpha", "beta", "generalAvailability", "notApplicable", "preAlpha", "proposed", "releaseCandidate", "unavailable", "underReview"], oc = Gt(ac), uc = [
|
|
2382
2382
|
"app",
|
|
2383
2383
|
"connector",
|
|
2384
2384
|
"connectorConnection",
|
|
@@ -2402,7 +2402,7 @@ const sc = ["amber", "green", "red", "other"], nc = Wt(sc), ac = ["alpha", "beta
|
|
|
2402
2402
|
"presenter",
|
|
2403
2403
|
"presenterPresentation",
|
|
2404
2404
|
"tool"
|
|
2405
|
-
], cc =
|
|
2405
|
+
], cc = Gt(uc), hc = ae([b("en-au"), b("en-gb"), b("en-us"), b("es-es")]), pc = ge(hc, O()), lc = Ne({
|
|
2406
2406
|
id: O(),
|
|
2407
2407
|
color: nc,
|
|
2408
2408
|
label: O()
|
|
@@ -2500,7 +2500,7 @@ const sc = ["amber", "green", "red", "other"], nc = Wt(sc), ac = ["alpha", "beta
|
|
|
2500
2500
|
iconDark: O().optional(),
|
|
2501
2501
|
order: De(),
|
|
2502
2502
|
path: O()
|
|
2503
|
-
}),
|
|
2503
|
+
}), Wr = Ne({
|
|
2504
2504
|
id: O(),
|
|
2505
2505
|
label: ge(O(), O()),
|
|
2506
2506
|
description: ge(O(), O()),
|
|
@@ -2511,10 +2511,10 @@ const sc = ["amber", "green", "red", "other"], nc = Wt(sc), ac = ["alpha", "beta
|
|
|
2511
2511
|
status: Tc.optional(),
|
|
2512
2512
|
statusId: Sc,
|
|
2513
2513
|
typeId: wc
|
|
2514
|
-
}), Cc = ae([b("app"), b("engine"), b("connector"), b("context"), b("presenter"), b("tool")]), Ac =
|
|
2514
|
+
}), Cc = ae([b("app"), b("engine"), b("connector"), b("context"), b("presenter"), b("tool")]), Ac = Wr.extend({
|
|
2515
2515
|
typeId: Cc,
|
|
2516
2516
|
version: O()
|
|
2517
|
-
}), Ec =
|
|
2517
|
+
}), Ec = Wr.extend({
|
|
2518
2518
|
modelRefs: He(Pc),
|
|
2519
2519
|
order: De()
|
|
2520
2520
|
}), Ic = b("list"), Nc = Ac.extend({
|
|
@@ -2586,7 +2586,7 @@ const sc = ["amber", "green", "red", "other"], nc = Wt(sc), ac = ["alpha", "beta
|
|
|
2586
2586
|
operations: He(Fc),
|
|
2587
2587
|
typeId: b("presenter")
|
|
2588
2588
|
});
|
|
2589
|
-
var Bc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239],
|
|
2589
|
+
var Bc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Kr = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Zc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Xr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", si = {
|
|
2590
2590
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
2591
2591
|
5: "class enum extends super const export import",
|
|
2592
2592
|
6: "enum",
|
|
@@ -2596,7 +2596,7 @@ var Bc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166,
|
|
|
2596
2596
|
5: ni,
|
|
2597
2597
|
"5module": ni + " export import",
|
|
2598
2598
|
6: ni + " const class extends export import super"
|
|
2599
|
-
}, qc = /^in(stanceof)?$/, Hc = new RegExp("[" + Xr + "]"),
|
|
2599
|
+
}, qc = /^in(stanceof)?$/, Hc = new RegExp("[" + Xr + "]"), Gc = new RegExp("[" + Xr + Zc + "]");
|
|
2600
2600
|
function li(e, t) {
|
|
2601
2601
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
2602
2602
|
if (i += t[r], i > e)
|
|
@@ -2607,10 +2607,10 @@ function li(e, t) {
|
|
|
2607
2607
|
return !1;
|
|
2608
2608
|
}
|
|
2609
2609
|
function Ee(e, t) {
|
|
2610
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Hc.test(String.fromCharCode(e)) : t === !1 ? !1 : li(e,
|
|
2610
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Hc.test(String.fromCharCode(e)) : t === !1 ? !1 : li(e, Kr);
|
|
2611
2611
|
}
|
|
2612
2612
|
function Me(e, t) {
|
|
2613
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
2613
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Gc.test(String.fromCharCode(e)) : t === !1 ? !1 : li(e, Kr) || li(e, Bc);
|
|
2614
2614
|
}
|
|
2615
2615
|
var z = function(t, i) {
|
|
2616
2616
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
@@ -2728,10 +2728,10 @@ function Yr(e, t, i) {
|
|
|
2728
2728
|
}
|
|
2729
2729
|
return -1;
|
|
2730
2730
|
}
|
|
2731
|
-
var wi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ne = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Qr = Object.prototype,
|
|
2732
|
-
return
|
|
2731
|
+
var wi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ne = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Qr = Object.prototype, Wc = Qr.hasOwnProperty, Kc = Qr.toString, ht = Object.hasOwn || (function(e, t) {
|
|
2732
|
+
return Wc.call(e, t);
|
|
2733
2733
|
}), cr = Array.isArray || (function(e) {
|
|
2734
|
-
return
|
|
2734
|
+
return Kc.call(e) === "[object Array]";
|
|
2735
2735
|
}), hr = /* @__PURE__ */ Object.create(null);
|
|
2736
2736
|
function Ze(e) {
|
|
2737
2737
|
return hr[e] || (hr[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
@@ -2877,7 +2877,7 @@ function Yc(e, t) {
|
|
|
2877
2877
|
e.locations && (y.loc = new kt(this, h, d)), e.ranges && (y.range = [n, u]), t.push(y);
|
|
2878
2878
|
};
|
|
2879
2879
|
}
|
|
2880
|
-
var _t = 1, pt = 2, Pi = 4, es = 8, Ci = 16, ts = 32,
|
|
2880
|
+
var _t = 1, pt = 2, Pi = 4, es = 8, Ci = 16, ts = 32, Wt = 64, is = 128, Qe = 256, St = 512, Kt = _t | pt | Qe;
|
|
2881
2881
|
function Ai(e, t) {
|
|
2882
2882
|
return pt | (e ? Pi : 0) | (t ? es : 0);
|
|
2883
2883
|
}
|
|
@@ -2914,7 +2914,7 @@ Le.canAwait.get = function() {
|
|
|
2914
2914
|
};
|
|
2915
2915
|
Le.allowSuper.get = function() {
|
|
2916
2916
|
var e = this.currentThisScope(), t = e.flags;
|
|
2917
|
-
return (t &
|
|
2917
|
+
return (t & Wt) > 0 || this.options.allowSuperOutsideMethod;
|
|
2918
2918
|
};
|
|
2919
2919
|
Le.allowDirectSuper.get = function() {
|
|
2920
2920
|
return (this.currentThisScope().flags & is) > 0;
|
|
@@ -3339,12 +3339,12 @@ I.parseClassMethod = function(e, t, i, r) {
|
|
|
3339
3339
|
return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
3340
3340
|
};
|
|
3341
3341
|
I.parseClassField = function(e) {
|
|
3342
|
-
return Ft(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Ft(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(p.eq) ? (this.enterScope(St |
|
|
3342
|
+
return Ft(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Ft(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(p.eq) ? (this.enterScope(St | Wt), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
3343
3343
|
};
|
|
3344
3344
|
I.parseClassStaticBlock = function(e) {
|
|
3345
3345
|
e.body = [];
|
|
3346
3346
|
var t = this.labels;
|
|
3347
|
-
for (this.labels = [], this.enterScope(Qe |
|
|
3347
|
+
for (this.labels = [], this.enterScope(Qe | Wt); this.type !== p.braceR; ) {
|
|
3348
3348
|
var i = this.parseStatement(null);
|
|
3349
3349
|
e.body.push(i);
|
|
3350
3350
|
}
|
|
@@ -4147,7 +4147,7 @@ M.initFunction = function(e) {
|
|
|
4147
4147
|
};
|
|
4148
4148
|
M.parseMethod = function(e, t, i) {
|
|
4149
4149
|
var r = this.startNode(), n = this.yieldPos, u = this.awaitPos, h = this.awaitIdentPos;
|
|
4150
|
-
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ai(t, r.generator) |
|
|
4150
|
+
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ai(t, r.generator) | Wt | (i ? is : 0)), this.expect(p.parenL), r.params = this.parseBindingList(p.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = n, this.awaitPos = u, this.awaitIdentPos = h, this.finishNode(r, "FunctionExpression");
|
|
4151
4151
|
};
|
|
4152
4152
|
M.parseArrowExpression = function(e, t, i, r) {
|
|
4153
4153
|
var n = this.yieldPos, u = this.awaitPos, h = this.awaitIdentPos;
|
|
@@ -4192,7 +4192,7 @@ M.parseExprList = function(e, t, i, r) {
|
|
|
4192
4192
|
};
|
|
4193
4193
|
M.checkUnreserved = function(e) {
|
|
4194
4194
|
var t = e.start, i = e.end, r = e.name;
|
|
4195
|
-
if (this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags &
|
|
4195
|
+
if (this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Kt) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
|
|
4196
4196
|
var n = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
4197
4197
|
n.test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
|
|
4198
4198
|
}
|
|
@@ -4231,19 +4231,19 @@ $t.curPosition = function() {
|
|
|
4231
4231
|
if (this.options.locations)
|
|
4232
4232
|
return new ot(this.curLine, this.pos - this.lineStart);
|
|
4233
4233
|
};
|
|
4234
|
-
var
|
|
4234
|
+
var We = J.prototype, sh = function(t) {
|
|
4235
4235
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
4236
4236
|
};
|
|
4237
|
-
|
|
4237
|
+
We.enterScope = function(e) {
|
|
4238
4238
|
this.scopeStack.push(new sh(e));
|
|
4239
4239
|
};
|
|
4240
|
-
|
|
4240
|
+
We.exitScope = function() {
|
|
4241
4241
|
this.scopeStack.pop();
|
|
4242
4242
|
};
|
|
4243
|
-
|
|
4243
|
+
We.treatFunctionsAsVarInScope = function(e) {
|
|
4244
4244
|
return e.flags & pt || !this.inModule && e.flags & _t;
|
|
4245
4245
|
};
|
|
4246
|
-
|
|
4246
|
+
We.declareName = function(e, t, i) {
|
|
4247
4247
|
var r = !1;
|
|
4248
4248
|
if (t === je) {
|
|
4249
4249
|
var n = this.currentScope();
|
|
@@ -4261,28 +4261,28 @@ Ke.declareName = function(e, t, i) {
|
|
|
4261
4261
|
r = !0;
|
|
4262
4262
|
break;
|
|
4263
4263
|
}
|
|
4264
|
-
if (y.var.push(e), this.inModule && y.flags & _t && delete this.undefinedExports[e], y.flags &
|
|
4264
|
+
if (y.var.push(e), this.inModule && y.flags & _t && delete this.undefinedExports[e], y.flags & Kt)
|
|
4265
4265
|
break;
|
|
4266
4266
|
}
|
|
4267
4267
|
r && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
4268
4268
|
};
|
|
4269
|
-
|
|
4269
|
+
We.checkLocalExport = function(e) {
|
|
4270
4270
|
this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
|
|
4271
4271
|
};
|
|
4272
|
-
|
|
4272
|
+
We.currentScope = function() {
|
|
4273
4273
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
4274
4274
|
};
|
|
4275
|
-
|
|
4275
|
+
We.currentVarScope = function() {
|
|
4276
4276
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4277
4277
|
var t = this.scopeStack[e];
|
|
4278
|
-
if (t.flags & (
|
|
4278
|
+
if (t.flags & (Kt | St | Qe))
|
|
4279
4279
|
return t;
|
|
4280
4280
|
}
|
|
4281
4281
|
};
|
|
4282
|
-
|
|
4282
|
+
We.currentThisScope = function() {
|
|
4283
4283
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4284
4284
|
var t = this.scopeStack[e];
|
|
4285
|
-
if (t.flags & (
|
|
4285
|
+
if (t.flags & (Kt | St | Qe) && !(t.flags & Ci))
|
|
4286
4286
|
return t;
|
|
4287
4287
|
}
|
|
4288
4288
|
};
|
|
@@ -5903,7 +5903,7 @@ function br(e) {
|
|
|
5903
5903
|
function jh(e) {
|
|
5904
5904
|
var t = {}, i = t.dts, r = i !== void 0 && i, n = t.allowSatisfies, u = n !== void 0 && n;
|
|
5905
5905
|
return function(h) {
|
|
5906
|
-
var d = h.acorn || Ah, y = Ih(d), o = d.tokTypes, S = d.keywordTypes, w = d.isIdentifierStart, A = d.lineBreak, F = d.isNewLine, Z = d.tokContexts, pe = d.isIdentifierChar, D = y.tokTypes, se = y.tokContexts, ft = y.keywordsRegExp, Ce = y.tokenIsLiteralPropertyName, be = y.tokenIsTemplate,
|
|
5906
|
+
var d = h.acorn || Ah, y = Ih(d), o = d.tokTypes, S = d.keywordTypes, w = d.isIdentifierStart, A = d.lineBreak, F = d.isNewLine, Z = d.tokContexts, pe = d.isIdentifierChar, D = y.tokTypes, se = y.tokContexts, ft = y.keywordsRegExp, Ce = y.tokenIsLiteralPropertyName, be = y.tokenIsTemplate, Ke = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, Ct = y.tokenIsKeywordOrIdentifier, Ls = y.tokenIsTSTypeOperator;
|
|
5907
5907
|
function Os(P, le, oe) {
|
|
5908
5908
|
oe === void 0 && (oe = P.length);
|
|
5909
5909
|
for (var te = le; te < oe; te++) {
|
|
@@ -6762,10 +6762,10 @@ function jh(e) {
|
|
|
6762
6762
|
a[v] = c[v];
|
|
6763
6763
|
}
|
|
6764
6764
|
}, f.tsParseModifiers = function(s) {
|
|
6765
|
-
for (var a = this, c = s.modified, l = s.allowedModifiers, m = s.disallowedModifiers, v = s.stopOnStartOfClassStaticBlock, x = s.errorTemplate, g = x === void 0 ? N.InvalidModifierOnTypeMember : x, _ = {}, T = function(
|
|
6766
|
-
|
|
6767
|
-
}, L = function(
|
|
6768
|
-
(c[X] &&
|
|
6765
|
+
for (var a = this, c = s.modified, l = s.allowedModifiers, m = s.disallowedModifiers, v = s.stopOnStartOfClassStaticBlock, x = s.errorTemplate, g = x === void 0 ? N.InvalidModifierOnTypeMember : x, _ = {}, T = function(K, G, X, ie) {
|
|
6766
|
+
G === X && c[ie] && a.raise(K.column, N.InvalidModifiersOrder({ orderedModifiers: [X, ie] }));
|
|
6767
|
+
}, L = function(K, G, X, ie) {
|
|
6768
|
+
(c[X] && G === ie || c[ie] && G === X) && a.raise(K.column, N.IncompatibleModifiers({ modifiers: [X, ie] }));
|
|
6769
6769
|
}; ; ) {
|
|
6770
6770
|
var V = this.startLoc, E = this.tsParseModifier(l.concat(m ?? []), v);
|
|
6771
6771
|
if (!E) break;
|
|
@@ -6845,7 +6845,7 @@ function jh(e) {
|
|
|
6845
6845
|
if (!this.hasFollowingLineBreak()) return s.abstract = !0, this.tsParseInterfaceDeclaration(s);
|
|
6846
6846
|
} else this.unexpected(s.start);
|
|
6847
6847
|
}, f.tsIsDeclarationStart = function() {
|
|
6848
|
-
return
|
|
6848
|
+
return Ke(this.type);
|
|
6849
6849
|
}, f.tsParseExpressionStatement = function(s, a) {
|
|
6850
6850
|
switch (a.name) {
|
|
6851
6851
|
case "declare":
|
|
@@ -7204,12 +7204,12 @@ function jh(e) {
|
|
|
7204
7204
|
var E = a.tsTryParseIndexSignature(m);
|
|
7205
7205
|
if (E) return m.abstract && a.raise(m.start, N.IndexSignatureHasAbstract), m.accessibility && a.raise(m.start, N.IndexSignatureHasAccessibility({ modifier: m.accessibility })), m.declare && a.raise(m.start, N.IndexSignatureHasDeclare), m.override && a.raise(m.start, N.IndexSignatureHasOverride), E;
|
|
7206
7206
|
if (!a.inAbstractClass && m.abstract && a.raise(m.start, N.NonAbstractClassHasAbstractMethod), m.override && s && a.raise(m.start, N.OverrideNotInSubClass), m.static = c, c && (a.isClassElementNameStart() || a.type === o.star || (v = "static")), !v && l >= 8 && a.eatContextual("async") && (!a.isClassElementNameStart() && a.type !== o.star || a.canInsertSemicolon() ? v = "async" : g = !0), !v && (l >= 9 || !g) && a.eat(o.star) && (x = !0), !v && !g && !x) {
|
|
7207
|
-
var
|
|
7208
|
-
(a.eatContextual("get") || a.eatContextual("set")) && (a.isClassElementNameStart() ? _ =
|
|
7207
|
+
var K = a.value;
|
|
7208
|
+
(a.eatContextual("get") || a.eatContextual("set")) && (a.isClassElementNameStart() ? _ = K : v = K);
|
|
7209
7209
|
}
|
|
7210
7210
|
if (v ? (m.computed = !1, m.key = a.startNodeAt(a.lastTokStart, a.lastTokStartLoc), m.key.name = v, a.finishNode(m.key, "Identifier")) : a.parseClassElementName(m), a.parsePostMemberNameModifiers(m), a.isClassMethod() || l < 13 || a.type === o.parenL || _ !== "method" || x || g) {
|
|
7211
|
-
var
|
|
7212
|
-
|
|
7211
|
+
var G = !m.static && xr(m, "constructor"), X = G && s;
|
|
7212
|
+
G && _ !== "method" && a.raise(m.key.start, "Constructor can't have get/set modifier"), m.kind = G ? "constructor" : _, a.parseClassMethod(m, x, g, X);
|
|
7213
7213
|
} else a.parseClassField(m);
|
|
7214
7214
|
return m;
|
|
7215
7215
|
}
|
|
@@ -7249,10 +7249,10 @@ function jh(e) {
|
|
|
7249
7249
|
}
|
|
7250
7250
|
return l && this.checkExpressionErrors(a, !0), m > -1 && (a.parenthesizedAssign = m), v > -1 && (a.trailingComma = v), T;
|
|
7251
7251
|
}, f.parseMaybeAssign = function(s, a, c) {
|
|
7252
|
-
var l, m, v, x, g, _, T, L, V, E,
|
|
7252
|
+
var l, m, v, x, g, _, T, L, V, E, K, G = this;
|
|
7253
7253
|
if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
|
|
7254
7254
|
if (L = this.cloneCurLookaheadState(), !(V = this.tryParse(function() {
|
|
7255
|
-
return
|
|
7255
|
+
return G.parseMaybeAssignOrigin(s, a, c);
|
|
7256
7256
|
}, L)).error) return V.node;
|
|
7257
7257
|
var X = this.context, ie = X[X.length - 1];
|
|
7258
7258
|
ie === y.tokContexts.tc_oTag && X[X.length - 2] === y.tokContexts.tc_expr ? (X.pop(), X.pop()) : ie !== y.tokContexts.tc_oTag && ie !== y.tokContexts.tc_expr || X.pop();
|
|
@@ -7261,16 +7261,16 @@ function jh(e) {
|
|
|
7261
7261
|
L && !this.compareLookaheadState(L, this.getCurLookaheadState()) || (L = this.cloneCurLookaheadState());
|
|
7262
7262
|
var ye = this.tryParse(function($e) {
|
|
7263
7263
|
var dt, mt;
|
|
7264
|
-
|
|
7265
|
-
var Be =
|
|
7266
|
-
return (Be.type !== "ArrowFunctionExpression" || (dt = Be.extra) != null && dt.parenthesized) && $e(), ((mt =
|
|
7264
|
+
K = G.tsParseTypeParameters();
|
|
7265
|
+
var Be = G.parseMaybeAssignOrigin(s, a, c);
|
|
7266
|
+
return (Be.type !== "ArrowFunctionExpression" || (dt = Be.extra) != null && dt.parenthesized) && $e(), ((mt = K) == null ? void 0 : mt.params.length) !== 0 && G.resetStartLocationFromNode(Be, K), Be.typeParameters = K, Be;
|
|
7267
7267
|
}, L);
|
|
7268
|
-
if (!ye.error && !ye.aborted) return
|
|
7268
|
+
if (!ye.error && !ye.aborted) return K && this.reportReservedArrowTypeParam(K), ye.node;
|
|
7269
7269
|
if (!V && (gr(!0), !(E = this.tryParse(function() {
|
|
7270
|
-
return
|
|
7270
|
+
return G.parseMaybeAssignOrigin(s, a, c);
|
|
7271
7271
|
}, L)).error)) return E.node;
|
|
7272
7272
|
if ((m = V) != null && m.node) return this.setLookaheadState(V.failState), V.node;
|
|
7273
|
-
if (ye.node) return this.setLookaheadState(ye.failState),
|
|
7273
|
+
if (ye.node) return this.setLookaheadState(ye.failState), K && this.reportReservedArrowTypeParam(K), ye.node;
|
|
7274
7274
|
if ((v = E) != null && v.node) return this.setLookaheadState(E.failState), E.node;
|
|
7275
7275
|
throw (x = V) != null && x.thrown ? V.error : ye.thrown ? ye.error : (g = E) != null && g.thrown ? E.error : ((_ = V) == null ? void 0 : _.error) || ye.error || ((T = E) == null ? void 0 : T.error);
|
|
7276
7276
|
}, f.parseAssignableListItem = function(s) {
|
|
@@ -7396,7 +7396,7 @@ function jh(e) {
|
|
|
7396
7396
|
if (this.options.ecmaVersion >= 6) {
|
|
7397
7397
|
var x = this.maybeInArrowParameters;
|
|
7398
7398
|
this.maybeInArrowParameters = !0, this.next();
|
|
7399
|
-
var g, _ = this.start, T = this.startLoc, L = [], V = !0, E = !1,
|
|
7399
|
+
var g, _ = this.start, T = this.startLoc, L = [], V = !0, E = !1, K = new vt(), G = this.yieldPos, X = this.awaitPos;
|
|
7400
7400
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; ) {
|
|
7401
7401
|
if (V ? V = !1 : this.expect(o.comma), v && this.afterTrailingComma(o.parenR, !0)) {
|
|
7402
7402
|
E = !0;
|
|
@@ -7406,11 +7406,11 @@ function jh(e) {
|
|
|
7406
7406
|
g = this.start, L.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raise(this.start, "Comma is not permitted after the rest element");
|
|
7407
7407
|
break;
|
|
7408
7408
|
}
|
|
7409
|
-
L.push(this.parseMaybeAssign(a,
|
|
7409
|
+
L.push(this.parseMaybeAssign(a, K, this.parseParenItem));
|
|
7410
7410
|
}
|
|
7411
7411
|
var ie = this.lastTokEnd, ye = this.lastTokEndLoc;
|
|
7412
|
-
if (this.expect(o.parenR), this.maybeInArrowParameters = x, s && this.shouldParseArrow(L) && this.eat(o.arrow)) return this.checkPatternErrors(
|
|
7413
|
-
L.length && !E || this.unexpected(this.lastTokStart), g && this.unexpected(g), this.checkExpressionErrors(
|
|
7412
|
+
if (this.expect(o.parenR), this.maybeInArrowParameters = x, s && this.shouldParseArrow(L) && this.eat(o.arrow)) return this.checkPatternErrors(K, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = G, this.awaitPos = X, this.parseParenArrowList(l, m, L, a);
|
|
7413
|
+
L.length && !E || this.unexpected(this.lastTokStart), g && this.unexpected(g), this.checkExpressionErrors(K, !0), this.yieldPos = G || this.yieldPos, this.awaitPos = X || this.awaitPos, L.length > 1 ? ((c = this.startNodeAt(_, T)).expressions = L, this.finishNodeAt(c, "SequenceExpression", ie, ye)) : c = L[0];
|
|
7414
7414
|
} else c = this.parseParenExpression();
|
|
7415
7415
|
if (this.options.preserveParens) {
|
|
7416
7416
|
var $e = this.startNodeAt(l, m);
|
|
@@ -7476,27 +7476,27 @@ function jh(e) {
|
|
|
7476
7476
|
});
|
|
7477
7477
|
if (V && this.unexpected(V), E) return E.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, N.InvalidPropertyAccessAfterInstantiationExpression), s = E;
|
|
7478
7478
|
}
|
|
7479
|
-
var
|
|
7480
|
-
l &&
|
|
7479
|
+
var K = this.options.ecmaVersion >= 11, G = K && this.eat(o.questionDot);
|
|
7480
|
+
l && G && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
7481
7481
|
var X = this.eat(o.bracketL);
|
|
7482
|
-
if (X ||
|
|
7482
|
+
if (X || G && this.type !== o.parenL && this.type !== o.backQuote || this.eat(o.dot)) {
|
|
7483
7483
|
var ie = this.startNodeAt(a, c);
|
|
7484
|
-
ie.object = s, X ? (ie.property = this.parseExpression(), this.expect(o.bracketR)) : ie.property = this.type === o.privateId && s.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), ie.computed = !!X,
|
|
7484
|
+
ie.object = s, X ? (ie.property = this.parseExpression(), this.expect(o.bracketR)) : ie.property = this.type === o.privateId && s.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), ie.computed = !!X, K && (ie.optional = G), s = this.finishNode(ie, "MemberExpression");
|
|
7485
7485
|
} else if (!l && this.eat(o.parenL)) {
|
|
7486
7486
|
var ye = this.maybeInArrowParameters;
|
|
7487
7487
|
this.maybeInArrowParameters = !0;
|
|
7488
7488
|
var $e = new vt(), dt = this.yieldPos, mt = this.awaitPos, Be = this.awaitIdentPos;
|
|
7489
7489
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
7490
7490
|
var Ri = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, $e);
|
|
7491
|
-
if (m && !
|
|
7491
|
+
if (m && !G && this.shouldParseAsyncArrow()) this.checkPatternErrors($e, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = dt, this.awaitPos = mt, this.awaitIdentPos = Be, s = this.parseSubscriptAsyncArrow(a, c, Ri, x);
|
|
7492
7492
|
else {
|
|
7493
7493
|
this.checkExpressionErrors($e, !0), this.yieldPos = dt || this.yieldPos, this.awaitPos = mt || this.awaitPos, this.awaitIdentPos = Be || this.awaitIdentPos;
|
|
7494
7494
|
var At = this.startNodeAt(a, c);
|
|
7495
|
-
At.callee = s, At.arguments = Ri,
|
|
7495
|
+
At.callee = s, At.arguments = Ri, K && (At.optional = G), s = this.finishNode(At, "CallExpression");
|
|
7496
7496
|
}
|
|
7497
7497
|
this.maybeInArrowParameters = ye;
|
|
7498
7498
|
} else if (this.type === o.backQuote) {
|
|
7499
|
-
(
|
|
7499
|
+
(G || _) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
7500
7500
|
var Qt = this.startNodeAt(a, c);
|
|
7501
7501
|
Qt.tag = s, Qt.quasi = this.parseTemplate({ isTagged: !0 }), s = this.finishNode(Qt, "TaggedTemplateExpression");
|
|
7502
7502
|
}
|
|
@@ -7760,16 +7760,16 @@ async function kr(e, t) {
|
|
|
7760
7760
|
await r("dist");
|
|
7761
7761
|
}
|
|
7762
7762
|
const Uh = [
|
|
7763
|
-
{ idPrefix: "datapos-app-nuxt", typeId: "app",
|
|
7764
|
-
{ idPrefix: "datapos-api", typeId: "api",
|
|
7765
|
-
{ idPrefix: "datapos-connector", typeId: "connector",
|
|
7766
|
-
{ idPrefix: "datapos-context", typeId: "context",
|
|
7767
|
-
{ idPrefix: "datapos-development", typeId: "development",
|
|
7768
|
-
{ idPrefix: "datapos-engine", typeId: "engine",
|
|
7769
|
-
{ idPrefix: "datapos-presenter", typeId: "presenter",
|
|
7770
|
-
{ idPrefix: "datapos-resources", typeId: "resources",
|
|
7771
|
-
{ idPrefix: "datapos-shared", typeId: "shared",
|
|
7772
|
-
{ idPrefix: "datapos-tool", typeId: "tool",
|
|
7763
|
+
{ idPrefix: "datapos-app-nuxt", typeId: "app", publish: !1, uploadGroupName: void 0 },
|
|
7764
|
+
{ idPrefix: "datapos-api", typeId: "api", publish: !1, uploadGroupName: void 0 },
|
|
7765
|
+
{ idPrefix: "datapos-connector", typeId: "connector", publish: !0, uploadGroupName: "connectors" },
|
|
7766
|
+
{ idPrefix: "datapos-context", typeId: "context", publish: !0, uploadGroupName: "contexts" },
|
|
7767
|
+
{ idPrefix: "datapos-development", typeId: "development", publish: !0, uploadGroupName: void 0 },
|
|
7768
|
+
{ idPrefix: "datapos-engine", typeId: "engine", publish: !1, uploadGroupName: "engine" },
|
|
7769
|
+
{ idPrefix: "datapos-presenter", typeId: "presenter", publish: !0, uploadGroupName: "presenters" },
|
|
7770
|
+
{ idPrefix: "datapos-resources", typeId: "resources", publish: !1, uploadGroupName: void 0 },
|
|
7771
|
+
{ idPrefix: "datapos-shared", typeId: "shared", publish: !0, uploadGroupName: void 0 },
|
|
7772
|
+
{ idPrefix: "datapos-tool", typeId: "tool", publish: !0, uploadGroupName: "tools" }
|
|
7773
7773
|
];
|
|
7774
7774
|
async function hp() {
|
|
7775
7775
|
try {
|
|
@@ -7790,10 +7790,10 @@ async function pp() {
|
|
|
7790
7790
|
await Hh("2️⃣", e);
|
|
7791
7791
|
break;
|
|
7792
7792
|
case "context":
|
|
7793
|
-
await
|
|
7793
|
+
await Gh("2️⃣", e);
|
|
7794
7794
|
break;
|
|
7795
7795
|
case "presenter":
|
|
7796
|
-
await
|
|
7796
|
+
await Wh("2️⃣", e);
|
|
7797
7797
|
break;
|
|
7798
7798
|
default:
|
|
7799
7799
|
await qh("2️⃣", e);
|
|
@@ -7801,13 +7801,13 @@ async function pp() {
|
|
|
7801
7801
|
if (await Ie("3️⃣ Bundle project", "vite", ["build"]), await we("4️⃣ Stage changes", "git", ["add", "."]), await we("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await we("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), i.typeId === "app")
|
|
7802
7802
|
re("7️⃣ Register module"), await Zh();
|
|
7803
7803
|
else if (i.typeId === "engine")
|
|
7804
|
-
re("7️⃣ Register module"), await _r(t), await kr(e, `datapos-engine-eu/${i.
|
|
7805
|
-
else if (i.
|
|
7804
|
+
re("7️⃣ Register module"), await _r(t), await kr(e, `datapos-engine-eu/${i.uploadGroupName}`);
|
|
7805
|
+
else if (i.uploadGroupName === void 0)
|
|
7806
7806
|
re("7️⃣ Registration NOT required.");
|
|
7807
7807
|
else {
|
|
7808
7808
|
re("7️⃣ Register module"), await _r(t);
|
|
7809
7809
|
const r = t.id.split("-").slice(2).join("-");
|
|
7810
|
-
await kr(e, `datapos-engine-eu/${i.
|
|
7810
|
+
await kr(e, `datapos-engine-eu/${i.uploadGroupName}/${r}`);
|
|
7811
7811
|
}
|
|
7812
7812
|
if (i.publish) {
|
|
7813
7813
|
const r = ".npmrc";
|
|
@@ -7854,10 +7854,10 @@ async function Hh(e, t) {
|
|
|
7854
7854
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7855
7855
|
return;
|
|
7856
7856
|
}
|
|
7857
|
-
const u = Ni(r), h =
|
|
7857
|
+
const u = Ni(r), h = Kh(u);
|
|
7858
7858
|
u.length > 0 ? (console.info(`ℹ️ Implements ${u.length} operations:`), console.table(u)) : console.warn("⚠️ Implements no operations."), h === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${h}' usage.`), t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), i.operations = u, i.usageId = h, await ut("config.json", i);
|
|
7859
7859
|
}
|
|
7860
|
-
async function
|
|
7860
|
+
async function Gh(e, t) {
|
|
7861
7861
|
re(`${e} Build context project configuration`);
|
|
7862
7862
|
const [i, r] = await Promise.all([de("config.json"), Pt("src/index.ts")]), n = Nc.safeParse(i);
|
|
7863
7863
|
if (!n.success) {
|
|
@@ -7867,7 +7867,7 @@ async function Wh(e, t) {
|
|
|
7867
7867
|
const u = Ni(r);
|
|
7868
7868
|
u.length > 0 ? (console.info(`ℹ️ Implements ${u.length} operations:`), console.table(u)) : console.warn("⚠️ Implements no operations."), t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), i.operations = u, await ut("config.json", i);
|
|
7869
7869
|
}
|
|
7870
|
-
async function
|
|
7870
|
+
async function Wh(e, t) {
|
|
7871
7871
|
re(`${e} Build presenter project configuration`);
|
|
7872
7872
|
const [i, r] = await Promise.all([de("config.json"), Pt("src/index.ts")]), n = $c.safeParse(i);
|
|
7873
7873
|
if (!n.success) {
|
|
@@ -7885,7 +7885,7 @@ async function Ns(e, t, i = "./") {
|
|
|
7885
7885
|
t.version = `${n[0]}.${n[1]}.${Number(n[2]) + 1}`, console.info(`Project version bumped from '${r}' to '${t.version}'.`), await ut(`${i}package.json`, t);
|
|
7886
7886
|
}
|
|
7887
7887
|
}
|
|
7888
|
-
function
|
|
7888
|
+
function Kh(e) {
|
|
7889
7889
|
let t = !1, i = !1;
|
|
7890
7890
|
for (const r of e)
|
|
7891
7891
|
js.includes(r) && (t = !0), Fs.includes(r) && (i = !0);
|