scordi-extension 1.15.5 → 1.15.7
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/blocks/AiParseDataBlock.d.ts +14 -2
- package/dist/blocks/AiParseDataBlock.d.ts.map +1 -1
- package/dist/sdk/EightGClient.d.ts +6 -72
- package/dist/sdk/EightGClient.d.ts.map +1 -1
- package/dist/sdk/index.cjs +4 -4
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +609 -807
- package/dist/sdk/types.d.ts +31 -23
- package/dist/sdk/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/sdk/index.js
CHANGED
|
@@ -46,7 +46,7 @@ var Rr;
|
|
|
46
46
|
// second overwrites first
|
|
47
47
|
});
|
|
48
48
|
})(Rr || (Rr = {}));
|
|
49
|
-
const
|
|
49
|
+
const z = be.arrayToEnum([
|
|
50
50
|
"string",
|
|
51
51
|
"nan",
|
|
52
52
|
"number",
|
|
@@ -70,23 +70,23 @@ const W = be.arrayToEnum([
|
|
|
70
70
|
]), _t = (r) => {
|
|
71
71
|
switch (typeof r) {
|
|
72
72
|
case "undefined":
|
|
73
|
-
return
|
|
73
|
+
return z.undefined;
|
|
74
74
|
case "string":
|
|
75
|
-
return
|
|
75
|
+
return z.string;
|
|
76
76
|
case "number":
|
|
77
|
-
return Number.isNaN(r) ?
|
|
77
|
+
return Number.isNaN(r) ? z.nan : z.number;
|
|
78
78
|
case "boolean":
|
|
79
|
-
return
|
|
79
|
+
return z.boolean;
|
|
80
80
|
case "function":
|
|
81
|
-
return
|
|
81
|
+
return z.function;
|
|
82
82
|
case "bigint":
|
|
83
|
-
return
|
|
83
|
+
return z.bigint;
|
|
84
84
|
case "symbol":
|
|
85
|
-
return
|
|
85
|
+
return z.symbol;
|
|
86
86
|
case "object":
|
|
87
|
-
return Array.isArray(r) ?
|
|
87
|
+
return Array.isArray(r) ? z.array : r === null ? z.null : r.then && typeof r.then == "function" && r.catch && typeof r.catch == "function" ? z.promise : typeof Map < "u" && r instanceof Map ? z.map : typeof Set < "u" && r instanceof Set ? z.set : typeof Date < "u" && r instanceof Date ? z.date : z.object;
|
|
88
88
|
default:
|
|
89
|
-
return
|
|
89
|
+
return z.unknown;
|
|
90
90
|
}
|
|
91
91
|
}, P = be.arrayToEnum([
|
|
92
92
|
"invalid_type",
|
|
@@ -170,11 +170,11 @@ class at extends Error {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
at.create = (r) => new at(r);
|
|
173
|
-
const
|
|
173
|
+
const Ht = (r, e) => {
|
|
174
174
|
let t;
|
|
175
175
|
switch (r.code) {
|
|
176
176
|
case P.invalid_type:
|
|
177
|
-
r.received ===
|
|
177
|
+
r.received === z.undefined ? t = "Required" : t = `Expected ${r.expected}, received ${r.received}`;
|
|
178
178
|
break;
|
|
179
179
|
case P.invalid_literal:
|
|
180
180
|
t = `Invalid literal value, expected ${JSON.stringify(r.expected, be.jsonStringifyReplacer)}`;
|
|
@@ -226,12 +226,12 @@ const qt = (r, e) => {
|
|
|
226
226
|
}
|
|
227
227
|
return { message: t };
|
|
228
228
|
};
|
|
229
|
-
let
|
|
229
|
+
let Jr = Ht;
|
|
230
230
|
function Nn(r) {
|
|
231
|
-
|
|
231
|
+
Jr = r;
|
|
232
232
|
}
|
|
233
233
|
function xr() {
|
|
234
|
-
return
|
|
234
|
+
return Jr;
|
|
235
235
|
}
|
|
236
236
|
const _r = (r) => {
|
|
237
237
|
const { data: e, path: t, errorMaps: a, issueData: s } = r, i = [...t, ...s.path || []], c = {
|
|
@@ -266,13 +266,13 @@ function $(r, e) {
|
|
|
266
266
|
// then schema-bound map if available
|
|
267
267
|
t,
|
|
268
268
|
// then global override map
|
|
269
|
-
t ===
|
|
269
|
+
t === Ht ? void 0 : Ht
|
|
270
270
|
// then global default map
|
|
271
271
|
].filter((s) => !!s)
|
|
272
272
|
});
|
|
273
273
|
r.common.issues.push(a);
|
|
274
274
|
}
|
|
275
|
-
class
|
|
275
|
+
class Ke {
|
|
276
276
|
constructor() {
|
|
277
277
|
this.value = "valid";
|
|
278
278
|
}
|
|
@@ -300,7 +300,7 @@ class Ge {
|
|
|
300
300
|
value: c
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
return
|
|
303
|
+
return Ke.mergeObjectSync(e, a);
|
|
304
304
|
}
|
|
305
305
|
static mergeObjectSync(e, t) {
|
|
306
306
|
const a = {};
|
|
@@ -328,7 +328,7 @@ class gt {
|
|
|
328
328
|
return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const Vr = (r, e) => {
|
|
332
332
|
if (jt(e))
|
|
333
333
|
return { success: !0, data: e.value };
|
|
334
334
|
if (!r.common.issues.length)
|
|
@@ -373,7 +373,7 @@ class ce {
|
|
|
373
373
|
}
|
|
374
374
|
_processInputParams(e) {
|
|
375
375
|
return {
|
|
376
|
-
status: new
|
|
376
|
+
status: new Ke(),
|
|
377
377
|
ctx: {
|
|
378
378
|
common: e.parent.common,
|
|
379
379
|
data: e.data,
|
|
@@ -413,7 +413,7 @@ class ce {
|
|
|
413
413
|
data: e,
|
|
414
414
|
parsedType: _t(e)
|
|
415
415
|
}, s = this._parseSync({ data: e, path: a.path, parent: a });
|
|
416
|
-
return
|
|
416
|
+
return Vr(a, s);
|
|
417
417
|
}
|
|
418
418
|
"~validate"(e) {
|
|
419
419
|
var a, s;
|
|
@@ -467,7 +467,7 @@ class ce {
|
|
|
467
467
|
data: e,
|
|
468
468
|
parsedType: _t(e)
|
|
469
469
|
}, s = this._parse({ data: e, path: a.path, parent: a }), i = await (tr(s) ? s : Promise.resolve(s));
|
|
470
|
-
return
|
|
470
|
+
return Vr(a, i);
|
|
471
471
|
}
|
|
472
472
|
refine(e, t) {
|
|
473
473
|
const a = (s) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(s) : t;
|
|
@@ -575,23 +575,23 @@ class ce {
|
|
|
575
575
|
}
|
|
576
576
|
const Rn = /^c[^\s-]{8,}$/i, Mn = /^[0-9a-z]+$/, In = /^[0-9A-HJKMNP-TV-Z]{26}$/i, jn = /^[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, Fn = /^[a-z0-9_-]{21}$/i, Un = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, $n = /^[-+]?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)?)??$/, Ln = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Bn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
577
577
|
let Pr;
|
|
578
|
-
const Zn = /^(?:(?: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])$/,
|
|
579
|
-
function
|
|
578
|
+
const Zn = /^(?:(?: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])$/, zn = /^(?:(?: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])$/, Wn = /^(([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]))$/, Vn = /^(([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])$/, qn = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Hn = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Xr = "((\\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])))", Gn = new RegExp(`^${Xr}$`);
|
|
579
|
+
function Qr(r) {
|
|
580
580
|
let e = "[0-5]\\d";
|
|
581
581
|
r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`);
|
|
582
582
|
const t = r.precision ? "+" : "?";
|
|
583
583
|
return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`;
|
|
584
584
|
}
|
|
585
585
|
function Yn(r) {
|
|
586
|
-
return new RegExp(`^${
|
|
586
|
+
return new RegExp(`^${Qr(r)}$`);
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
let e = `${
|
|
588
|
+
function en(r) {
|
|
589
|
+
let e = `${Xr}T${Qr(r)}`;
|
|
590
590
|
const t = [];
|
|
591
591
|
return t.push(r.local ? "Z?" : "Z"), r.offset && t.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${t.join("|")})`, new RegExp(`^${e}$`);
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
return !!((e === "v4" || !e) && Zn.test(r) || (e === "v6" || !e) &&
|
|
593
|
+
function Kn(r, e) {
|
|
594
|
+
return !!((e === "v4" || !e) && Zn.test(r) || (e === "v6" || !e) && Wn.test(r));
|
|
595
595
|
}
|
|
596
596
|
function Jn(r, e) {
|
|
597
597
|
if (!Un.test(r))
|
|
@@ -607,19 +607,19 @@ function Jn(r, e) {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
function Xn(r, e) {
|
|
610
|
-
return !!((e === "v4" || !e) &&
|
|
610
|
+
return !!((e === "v4" || !e) && zn.test(r) || (e === "v6" || !e) && Vn.test(r));
|
|
611
611
|
}
|
|
612
612
|
class ft extends ce {
|
|
613
613
|
_parse(e) {
|
|
614
|
-
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !==
|
|
614
|
+
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== z.string) {
|
|
615
615
|
const i = this._getOrReturnCtx(e);
|
|
616
616
|
return $(i, {
|
|
617
617
|
code: P.invalid_type,
|
|
618
|
-
expected:
|
|
618
|
+
expected: z.string,
|
|
619
619
|
received: i.parsedType
|
|
620
620
|
}), ee;
|
|
621
621
|
}
|
|
622
|
-
const a = new
|
|
622
|
+
const a = new Ke();
|
|
623
623
|
let s;
|
|
624
624
|
for (const i of this._def.checks)
|
|
625
625
|
if (i.kind === "min")
|
|
@@ -725,11 +725,11 @@ class ft extends ce {
|
|
|
725
725
|
code: P.invalid_string,
|
|
726
726
|
validation: { endsWith: i.value },
|
|
727
727
|
message: i.message
|
|
728
|
-
}), a.dirty()) : i.kind === "datetime" ?
|
|
728
|
+
}), a.dirty()) : i.kind === "datetime" ? en(i).test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
|
|
729
729
|
code: P.invalid_string,
|
|
730
730
|
validation: "datetime",
|
|
731
731
|
message: i.message
|
|
732
|
-
}), a.dirty()) : i.kind === "date" ?
|
|
732
|
+
}), a.dirty()) : i.kind === "date" ? Gn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
|
|
733
733
|
code: P.invalid_string,
|
|
734
734
|
validation: "date",
|
|
735
735
|
message: i.message
|
|
@@ -741,7 +741,7 @@ class ft extends ce {
|
|
|
741
741
|
validation: "duration",
|
|
742
742
|
code: P.invalid_string,
|
|
743
743
|
message: i.message
|
|
744
|
-
}), a.dirty()) : i.kind === "ip" ?
|
|
744
|
+
}), a.dirty()) : i.kind === "ip" ? Kn(e.data, i.version) || (s = this._getOrReturnCtx(e, s), $(s, {
|
|
745
745
|
validation: "ip",
|
|
746
746
|
code: P.invalid_string,
|
|
747
747
|
message: i.message
|
|
@@ -753,11 +753,11 @@ class ft extends ce {
|
|
|
753
753
|
validation: "cidr",
|
|
754
754
|
code: P.invalid_string,
|
|
755
755
|
message: i.message
|
|
756
|
-
}), a.dirty()) : i.kind === "base64" ?
|
|
756
|
+
}), a.dirty()) : i.kind === "base64" ? qn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
|
|
757
757
|
validation: "base64",
|
|
758
758
|
code: P.invalid_string,
|
|
759
759
|
message: i.message
|
|
760
|
-
}), a.dirty()) : i.kind === "base64url" ?
|
|
760
|
+
}), a.dirty()) : i.kind === "base64url" ? Hn.test(e.data) || (s = this._getOrReturnCtx(e, s), $(s, {
|
|
761
761
|
validation: "base64url",
|
|
762
762
|
code: P.invalid_string,
|
|
763
763
|
message: i.message
|
|
@@ -1001,16 +1001,16 @@ class Dt extends ce {
|
|
|
1001
1001
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
1002
1002
|
}
|
|
1003
1003
|
_parse(e) {
|
|
1004
|
-
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !==
|
|
1004
|
+
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== z.number) {
|
|
1005
1005
|
const i = this._getOrReturnCtx(e);
|
|
1006
1006
|
return $(i, {
|
|
1007
1007
|
code: P.invalid_type,
|
|
1008
|
-
expected:
|
|
1008
|
+
expected: z.number,
|
|
1009
1009
|
received: i.parsedType
|
|
1010
1010
|
}), ee;
|
|
1011
1011
|
}
|
|
1012
1012
|
let a;
|
|
1013
|
-
const s = new
|
|
1013
|
+
const s = new Ke();
|
|
1014
1014
|
for (const i of this._def.checks)
|
|
1015
1015
|
i.kind === "int" ? be.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), $(a, {
|
|
1016
1016
|
code: P.invalid_type,
|
|
@@ -1179,10 +1179,10 @@ class Ot extends ce {
|
|
|
1179
1179
|
} catch {
|
|
1180
1180
|
return this._getInvalidInput(e);
|
|
1181
1181
|
}
|
|
1182
|
-
if (this._getType(e) !==
|
|
1182
|
+
if (this._getType(e) !== z.bigint)
|
|
1183
1183
|
return this._getInvalidInput(e);
|
|
1184
1184
|
let a;
|
|
1185
|
-
const s = new
|
|
1185
|
+
const s = new Ke();
|
|
1186
1186
|
for (const i of this._def.checks)
|
|
1187
1187
|
i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (a = this._getOrReturnCtx(e, a), $(a, {
|
|
1188
1188
|
code: P.too_small,
|
|
@@ -1207,7 +1207,7 @@ class Ot extends ce {
|
|
|
1207
1207
|
const t = this._getOrReturnCtx(e);
|
|
1208
1208
|
return $(t, {
|
|
1209
1209
|
code: P.invalid_type,
|
|
1210
|
-
expected:
|
|
1210
|
+
expected: z.bigint,
|
|
1211
1211
|
received: t.parsedType
|
|
1212
1212
|
}), ee;
|
|
1213
1213
|
}
|
|
@@ -1303,11 +1303,11 @@ Ot.create = (r) => new Ot({
|
|
|
1303
1303
|
});
|
|
1304
1304
|
class rr extends ce {
|
|
1305
1305
|
_parse(e) {
|
|
1306
|
-
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !==
|
|
1306
|
+
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== z.boolean) {
|
|
1307
1307
|
const a = this._getOrReturnCtx(e);
|
|
1308
1308
|
return $(a, {
|
|
1309
1309
|
code: P.invalid_type,
|
|
1310
|
-
expected:
|
|
1310
|
+
expected: z.boolean,
|
|
1311
1311
|
received: a.parsedType
|
|
1312
1312
|
}), ee;
|
|
1313
1313
|
}
|
|
@@ -1321,11 +1321,11 @@ rr.create = (r) => new rr({
|
|
|
1321
1321
|
});
|
|
1322
1322
|
class Ft extends ce {
|
|
1323
1323
|
_parse(e) {
|
|
1324
|
-
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !==
|
|
1324
|
+
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== z.date) {
|
|
1325
1325
|
const i = this._getOrReturnCtx(e);
|
|
1326
1326
|
return $(i, {
|
|
1327
1327
|
code: P.invalid_type,
|
|
1328
|
-
expected:
|
|
1328
|
+
expected: z.date,
|
|
1329
1329
|
received: i.parsedType
|
|
1330
1330
|
}), ee;
|
|
1331
1331
|
}
|
|
@@ -1335,7 +1335,7 @@ class Ft extends ce {
|
|
|
1335
1335
|
code: P.invalid_date
|
|
1336
1336
|
}), ee;
|
|
1337
1337
|
}
|
|
1338
|
-
const a = new
|
|
1338
|
+
const a = new Ke();
|
|
1339
1339
|
let s;
|
|
1340
1340
|
for (const i of this._def.checks)
|
|
1341
1341
|
i.kind === "min" ? e.data.getTime() < i.value && (s = this._getOrReturnCtx(e, s), $(s, {
|
|
@@ -1399,11 +1399,11 @@ Ft.create = (r) => new Ft({
|
|
|
1399
1399
|
});
|
|
1400
1400
|
class Er extends ce {
|
|
1401
1401
|
_parse(e) {
|
|
1402
|
-
if (this._getType(e) !==
|
|
1402
|
+
if (this._getType(e) !== z.symbol) {
|
|
1403
1403
|
const a = this._getOrReturnCtx(e);
|
|
1404
1404
|
return $(a, {
|
|
1405
1405
|
code: P.invalid_type,
|
|
1406
|
-
expected:
|
|
1406
|
+
expected: z.symbol,
|
|
1407
1407
|
received: a.parsedType
|
|
1408
1408
|
}), ee;
|
|
1409
1409
|
}
|
|
@@ -1416,11 +1416,11 @@ Er.create = (r) => new Er({
|
|
|
1416
1416
|
});
|
|
1417
1417
|
class nr extends ce {
|
|
1418
1418
|
_parse(e) {
|
|
1419
|
-
if (this._getType(e) !==
|
|
1419
|
+
if (this._getType(e) !== z.undefined) {
|
|
1420
1420
|
const a = this._getOrReturnCtx(e);
|
|
1421
1421
|
return $(a, {
|
|
1422
1422
|
code: P.invalid_type,
|
|
1423
|
-
expected:
|
|
1423
|
+
expected: z.undefined,
|
|
1424
1424
|
received: a.parsedType
|
|
1425
1425
|
}), ee;
|
|
1426
1426
|
}
|
|
@@ -1433,11 +1433,11 @@ nr.create = (r) => new nr({
|
|
|
1433
1433
|
});
|
|
1434
1434
|
class ar extends ce {
|
|
1435
1435
|
_parse(e) {
|
|
1436
|
-
if (this._getType(e) !==
|
|
1436
|
+
if (this._getType(e) !== z.null) {
|
|
1437
1437
|
const a = this._getOrReturnCtx(e);
|
|
1438
1438
|
return $(a, {
|
|
1439
1439
|
code: P.invalid_type,
|
|
1440
|
-
expected:
|
|
1440
|
+
expected: z.null,
|
|
1441
1441
|
received: a.parsedType
|
|
1442
1442
|
}), ee;
|
|
1443
1443
|
}
|
|
@@ -1448,7 +1448,7 @@ ar.create = (r) => new ar({
|
|
|
1448
1448
|
typeName: re.ZodNull,
|
|
1449
1449
|
...ie(r)
|
|
1450
1450
|
});
|
|
1451
|
-
class
|
|
1451
|
+
class Gt extends ce {
|
|
1452
1452
|
constructor() {
|
|
1453
1453
|
super(...arguments), this._any = !0;
|
|
1454
1454
|
}
|
|
@@ -1456,7 +1456,7 @@ class Kt extends ce {
|
|
|
1456
1456
|
return Je(e.data);
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
-
|
|
1459
|
+
Gt.create = (r) => new Gt({
|
|
1460
1460
|
typeName: re.ZodAny,
|
|
1461
1461
|
...ie(r)
|
|
1462
1462
|
});
|
|
@@ -1477,7 +1477,7 @@ class Et extends ce {
|
|
|
1477
1477
|
const t = this._getOrReturnCtx(e);
|
|
1478
1478
|
return $(t, {
|
|
1479
1479
|
code: P.invalid_type,
|
|
1480
|
-
expected:
|
|
1480
|
+
expected: z.never,
|
|
1481
1481
|
received: t.parsedType
|
|
1482
1482
|
}), ee;
|
|
1483
1483
|
}
|
|
@@ -1488,11 +1488,11 @@ Et.create = (r) => new Et({
|
|
|
1488
1488
|
});
|
|
1489
1489
|
class Tr extends ce {
|
|
1490
1490
|
_parse(e) {
|
|
1491
|
-
if (this._getType(e) !==
|
|
1491
|
+
if (this._getType(e) !== z.undefined) {
|
|
1492
1492
|
const a = this._getOrReturnCtx(e);
|
|
1493
1493
|
return $(a, {
|
|
1494
1494
|
code: P.invalid_type,
|
|
1495
|
-
expected:
|
|
1495
|
+
expected: z.void,
|
|
1496
1496
|
received: a.parsedType
|
|
1497
1497
|
}), ee;
|
|
1498
1498
|
}
|
|
@@ -1506,10 +1506,10 @@ Tr.create = (r) => new Tr({
|
|
|
1506
1506
|
class dt extends ce {
|
|
1507
1507
|
_parse(e) {
|
|
1508
1508
|
const { ctx: t, status: a } = this._processInputParams(e), s = this._def;
|
|
1509
|
-
if (t.parsedType !==
|
|
1509
|
+
if (t.parsedType !== z.array)
|
|
1510
1510
|
return $(t, {
|
|
1511
1511
|
code: P.invalid_type,
|
|
1512
|
-
expected:
|
|
1512
|
+
expected: z.array,
|
|
1513
1513
|
received: t.parsedType
|
|
1514
1514
|
}), ee;
|
|
1515
1515
|
if (s.exactLength !== null) {
|
|
@@ -1539,9 +1539,9 @@ class dt extends ce {
|
|
|
1539
1539
|
exact: !1,
|
|
1540
1540
|
message: s.maxLength.message
|
|
1541
1541
|
}), a.dirty()), t.common.async)
|
|
1542
|
-
return Promise.all([...t.data].map((c, f) => s.type._parseAsync(new gt(t, c, t.path, f)))).then((c) =>
|
|
1542
|
+
return Promise.all([...t.data].map((c, f) => s.type._parseAsync(new gt(t, c, t.path, f)))).then((c) => Ke.mergeArray(a, c));
|
|
1543
1543
|
const i = [...t.data].map((c, f) => s.type._parseSync(new gt(t, c, t.path, f)));
|
|
1544
|
-
return
|
|
1544
|
+
return Ke.mergeArray(a, i);
|
|
1545
1545
|
}
|
|
1546
1546
|
get element() {
|
|
1547
1547
|
return this._def.type;
|
|
@@ -1576,12 +1576,12 @@ dt.create = (r, e) => new dt({
|
|
|
1576
1576
|
typeName: re.ZodArray,
|
|
1577
1577
|
...ie(e)
|
|
1578
1578
|
});
|
|
1579
|
-
function
|
|
1579
|
+
function Wt(r) {
|
|
1580
1580
|
if (r instanceof Ie) {
|
|
1581
1581
|
const e = {};
|
|
1582
1582
|
for (const t in r.shape) {
|
|
1583
1583
|
const a = r.shape[t];
|
|
1584
|
-
e[t] = yt.create(
|
|
1584
|
+
e[t] = yt.create(Wt(a));
|
|
1585
1585
|
}
|
|
1586
1586
|
return new Ie({
|
|
1587
1587
|
...r._def,
|
|
@@ -1589,8 +1589,8 @@ function zt(r) {
|
|
|
1589
1589
|
});
|
|
1590
1590
|
} else return r instanceof dt ? new dt({
|
|
1591
1591
|
...r._def,
|
|
1592
|
-
type:
|
|
1593
|
-
}) : r instanceof yt ? yt.create(
|
|
1592
|
+
type: Wt(r.element)
|
|
1593
|
+
}) : r instanceof yt ? yt.create(Wt(r.unwrap())) : r instanceof Nt ? Nt.create(Wt(r.unwrap())) : r instanceof vt ? vt.create(r.items.map((e) => Wt(e))) : r;
|
|
1594
1594
|
}
|
|
1595
1595
|
class Ie extends ce {
|
|
1596
1596
|
constructor() {
|
|
@@ -1603,11 +1603,11 @@ class Ie extends ce {
|
|
|
1603
1603
|
return this._cached = { shape: e, keys: t }, this._cached;
|
|
1604
1604
|
}
|
|
1605
1605
|
_parse(e) {
|
|
1606
|
-
if (this._getType(e) !==
|
|
1606
|
+
if (this._getType(e) !== z.object) {
|
|
1607
1607
|
const k = this._getOrReturnCtx(e);
|
|
1608
1608
|
return $(k, {
|
|
1609
1609
|
code: P.invalid_type,
|
|
1610
|
-
expected:
|
|
1610
|
+
expected: z.object,
|
|
1611
1611
|
received: k.parsedType
|
|
1612
1612
|
}), ee;
|
|
1613
1613
|
}
|
|
@@ -1663,7 +1663,7 @@ class Ie extends ce {
|
|
|
1663
1663
|
});
|
|
1664
1664
|
}
|
|
1665
1665
|
return k;
|
|
1666
|
-
}).then((k) =>
|
|
1666
|
+
}).then((k) => Ke.mergeObjectSync(a, k)) : Ke.mergeObjectSync(a, b);
|
|
1667
1667
|
}
|
|
1668
1668
|
get shape() {
|
|
1669
1669
|
return this._def.shape();
|
|
@@ -1826,7 +1826,7 @@ class Ie extends ce {
|
|
|
1826
1826
|
* @deprecated
|
|
1827
1827
|
*/
|
|
1828
1828
|
deepPartial() {
|
|
1829
|
-
return
|
|
1829
|
+
return Wt(this);
|
|
1830
1830
|
}
|
|
1831
1831
|
partial(e) {
|
|
1832
1832
|
const t = {};
|
|
@@ -1856,7 +1856,7 @@ class Ie extends ce {
|
|
|
1856
1856
|
});
|
|
1857
1857
|
}
|
|
1858
1858
|
keyof() {
|
|
1859
|
-
return
|
|
1859
|
+
return tn(be.objectKeys(this.shape));
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
1862
|
Ie.create = (r, e) => new Ie({
|
|
@@ -1957,10 +1957,10 @@ const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerT
|
|
|
1957
1957
|
class Dr extends ce {
|
|
1958
1958
|
_parse(e) {
|
|
1959
1959
|
const { ctx: t } = this._processInputParams(e);
|
|
1960
|
-
if (t.parsedType !==
|
|
1960
|
+
if (t.parsedType !== z.object)
|
|
1961
1961
|
return $(t, {
|
|
1962
1962
|
code: P.invalid_type,
|
|
1963
|
-
expected:
|
|
1963
|
+
expected: z.object,
|
|
1964
1964
|
received: t.parsedType
|
|
1965
1965
|
}), ee;
|
|
1966
1966
|
const a = this.discriminator, s = t.data[a], i = this.optionsMap.get(s);
|
|
@@ -2020,7 +2020,7 @@ function jr(r, e) {
|
|
|
2020
2020
|
const t = _t(r), a = _t(e);
|
|
2021
2021
|
if (r === e)
|
|
2022
2022
|
return { valid: !0, data: r };
|
|
2023
|
-
if (t ===
|
|
2023
|
+
if (t === z.object && a === z.object) {
|
|
2024
2024
|
const s = be.objectKeys(e), i = be.objectKeys(r).filter((f) => s.indexOf(f) !== -1), c = { ...r, ...e };
|
|
2025
2025
|
for (const f of i) {
|
|
2026
2026
|
const b = jr(r[f], e[f]);
|
|
@@ -2029,7 +2029,7 @@ function jr(r, e) {
|
|
|
2029
2029
|
c[f] = b.data;
|
|
2030
2030
|
}
|
|
2031
2031
|
return { valid: !0, data: c };
|
|
2032
|
-
} else if (t ===
|
|
2032
|
+
} else if (t === z.array && a === z.array) {
|
|
2033
2033
|
if (r.length !== e.length)
|
|
2034
2034
|
return { valid: !1 };
|
|
2035
2035
|
const s = [];
|
|
@@ -2040,7 +2040,7 @@ function jr(r, e) {
|
|
|
2040
2040
|
s.push(b.data);
|
|
2041
2041
|
}
|
|
2042
2042
|
return { valid: !0, data: s };
|
|
2043
|
-
} else return t ===
|
|
2043
|
+
} else return t === z.date && a === z.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
|
|
2044
2044
|
}
|
|
2045
2045
|
class ir extends ce {
|
|
2046
2046
|
_parse(e) {
|
|
@@ -2083,10 +2083,10 @@ ir.create = (r, e, t) => new ir({
|
|
|
2083
2083
|
class vt extends ce {
|
|
2084
2084
|
_parse(e) {
|
|
2085
2085
|
const { status: t, ctx: a } = this._processInputParams(e);
|
|
2086
|
-
if (a.parsedType !==
|
|
2086
|
+
if (a.parsedType !== z.array)
|
|
2087
2087
|
return $(a, {
|
|
2088
2088
|
code: P.invalid_type,
|
|
2089
|
-
expected:
|
|
2089
|
+
expected: z.array,
|
|
2090
2090
|
received: a.parsedType
|
|
2091
2091
|
}), ee;
|
|
2092
2092
|
if (a.data.length < this._def.items.length)
|
|
@@ -2108,7 +2108,7 @@ class vt extends ce {
|
|
|
2108
2108
|
const b = this._def.items[f] || this._def.rest;
|
|
2109
2109
|
return b ? b._parse(new gt(a, c, a.path, f)) : null;
|
|
2110
2110
|
}).filter((c) => !!c);
|
|
2111
|
-
return a.common.async ? Promise.all(i).then((c) =>
|
|
2111
|
+
return a.common.async ? Promise.all(i).then((c) => Ke.mergeArray(t, c)) : Ke.mergeArray(t, i);
|
|
2112
2112
|
}
|
|
2113
2113
|
get items() {
|
|
2114
2114
|
return this._def.items;
|
|
@@ -2139,10 +2139,10 @@ class or extends ce {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
_parse(e) {
|
|
2141
2141
|
const { status: t, ctx: a } = this._processInputParams(e);
|
|
2142
|
-
if (a.parsedType !==
|
|
2142
|
+
if (a.parsedType !== z.object)
|
|
2143
2143
|
return $(a, {
|
|
2144
2144
|
code: P.invalid_type,
|
|
2145
|
-
expected:
|
|
2145
|
+
expected: z.object,
|
|
2146
2146
|
received: a.parsedType
|
|
2147
2147
|
}), ee;
|
|
2148
2148
|
const s = [], i = this._def.keyType, c = this._def.valueType;
|
|
@@ -2152,7 +2152,7 @@ class or extends ce {
|
|
|
2152
2152
|
value: c._parse(new gt(a, a.data[f], a.path, f)),
|
|
2153
2153
|
alwaysSet: f in a.data
|
|
2154
2154
|
});
|
|
2155
|
-
return a.common.async ?
|
|
2155
|
+
return a.common.async ? Ke.mergeObjectAsync(t, s) : Ke.mergeObjectSync(t, s);
|
|
2156
2156
|
}
|
|
2157
2157
|
get element() {
|
|
2158
2158
|
return this._def.valueType;
|
|
@@ -2180,10 +2180,10 @@ class Ar extends ce {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
_parse(e) {
|
|
2182
2182
|
const { status: t, ctx: a } = this._processInputParams(e);
|
|
2183
|
-
if (a.parsedType !==
|
|
2183
|
+
if (a.parsedType !== z.map)
|
|
2184
2184
|
return $(a, {
|
|
2185
2185
|
code: P.invalid_type,
|
|
2186
|
-
expected:
|
|
2186
|
+
expected: z.map,
|
|
2187
2187
|
received: a.parsedType
|
|
2188
2188
|
}), ee;
|
|
2189
2189
|
const s = this._def.keyType, i = this._def.valueType, c = [...a.data.entries()].map(([f, b], k) => ({
|
|
@@ -2222,10 +2222,10 @@ Ar.create = (r, e, t) => new Ar({
|
|
|
2222
2222
|
class Ut extends ce {
|
|
2223
2223
|
_parse(e) {
|
|
2224
2224
|
const { status: t, ctx: a } = this._processInputParams(e);
|
|
2225
|
-
if (a.parsedType !==
|
|
2225
|
+
if (a.parsedType !== z.set)
|
|
2226
2226
|
return $(a, {
|
|
2227
2227
|
code: P.invalid_type,
|
|
2228
|
-
expected:
|
|
2228
|
+
expected: z.set,
|
|
2229
2229
|
received: a.parsedType
|
|
2230
2230
|
}), ee;
|
|
2231
2231
|
const s = this._def;
|
|
@@ -2283,23 +2283,23 @@ Ut.create = (r, e) => new Ut({
|
|
|
2283
2283
|
typeName: re.ZodSet,
|
|
2284
2284
|
...ie(e)
|
|
2285
2285
|
});
|
|
2286
|
-
class
|
|
2286
|
+
class qt extends ce {
|
|
2287
2287
|
constructor() {
|
|
2288
2288
|
super(...arguments), this.validate = this.implement;
|
|
2289
2289
|
}
|
|
2290
2290
|
_parse(e) {
|
|
2291
2291
|
const { ctx: t } = this._processInputParams(e);
|
|
2292
|
-
if (t.parsedType !==
|
|
2292
|
+
if (t.parsedType !== z.function)
|
|
2293
2293
|
return $(t, {
|
|
2294
2294
|
code: P.invalid_type,
|
|
2295
|
-
expected:
|
|
2295
|
+
expected: z.function,
|
|
2296
2296
|
received: t.parsedType
|
|
2297
2297
|
}), ee;
|
|
2298
2298
|
function a(f, b) {
|
|
2299
2299
|
return _r({
|
|
2300
2300
|
data: f,
|
|
2301
2301
|
path: t.path,
|
|
2302
|
-
errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(),
|
|
2302
|
+
errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(), Ht].filter((k) => !!k),
|
|
2303
2303
|
issueData: {
|
|
2304
2304
|
code: P.invalid_arguments,
|
|
2305
2305
|
argumentsError: b
|
|
@@ -2310,7 +2310,7 @@ class Ht extends ce {
|
|
|
2310
2310
|
return _r({
|
|
2311
2311
|
data: f,
|
|
2312
2312
|
path: t.path,
|
|
2313
|
-
errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(),
|
|
2313
|
+
errorMaps: [t.common.contextualErrorMap, t.schemaErrorMap, xr(), Ht].filter((k) => !!k),
|
|
2314
2314
|
issueData: {
|
|
2315
2315
|
code: P.invalid_return_type,
|
|
2316
2316
|
returnTypeError: b
|
|
@@ -2348,13 +2348,13 @@ class Ht extends ce {
|
|
|
2348
2348
|
return this._def.returns;
|
|
2349
2349
|
}
|
|
2350
2350
|
args(...e) {
|
|
2351
|
-
return new
|
|
2351
|
+
return new qt({
|
|
2352
2352
|
...this._def,
|
|
2353
2353
|
args: vt.create(e).rest(It.create())
|
|
2354
2354
|
});
|
|
2355
2355
|
}
|
|
2356
2356
|
returns(e) {
|
|
2357
|
-
return new
|
|
2357
|
+
return new qt({
|
|
2358
2358
|
...this._def,
|
|
2359
2359
|
returns: e
|
|
2360
2360
|
});
|
|
@@ -2366,7 +2366,7 @@ class Ht extends ce {
|
|
|
2366
2366
|
return this.parse(e);
|
|
2367
2367
|
}
|
|
2368
2368
|
static create(e, t, a) {
|
|
2369
|
-
return new
|
|
2369
|
+
return new qt({
|
|
2370
2370
|
args: e || vt.create([]).rest(It.create()),
|
|
2371
2371
|
returns: t || It.create(),
|
|
2372
2372
|
typeName: re.ZodFunction,
|
|
@@ -2409,7 +2409,7 @@ ur.create = (r, e) => new ur({
|
|
|
2409
2409
|
typeName: re.ZodLiteral,
|
|
2410
2410
|
...ie(e)
|
|
2411
2411
|
});
|
|
2412
|
-
function
|
|
2412
|
+
function tn(r, e) {
|
|
2413
2413
|
return new Pt({
|
|
2414
2414
|
values: r,
|
|
2415
2415
|
typeName: re.ZodEnum,
|
|
@@ -2470,11 +2470,11 @@ class Pt extends ce {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
Pt.create =
|
|
2473
|
+
Pt.create = tn;
|
|
2474
2474
|
class lr extends ce {
|
|
2475
2475
|
_parse(e) {
|
|
2476
2476
|
const t = be.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
|
|
2477
|
-
if (a.parsedType !==
|
|
2477
|
+
if (a.parsedType !== z.string && a.parsedType !== z.number) {
|
|
2478
2478
|
const s = be.objectValues(t);
|
|
2479
2479
|
return $(a, {
|
|
2480
2480
|
expected: be.joinValues(s),
|
|
@@ -2507,13 +2507,13 @@ class Yt extends ce {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
_parse(e) {
|
|
2509
2509
|
const { ctx: t } = this._processInputParams(e);
|
|
2510
|
-
if (t.parsedType !==
|
|
2510
|
+
if (t.parsedType !== z.promise && t.common.async === !1)
|
|
2511
2511
|
return $(t, {
|
|
2512
2512
|
code: P.invalid_type,
|
|
2513
|
-
expected:
|
|
2513
|
+
expected: z.promise,
|
|
2514
2514
|
received: t.parsedType
|
|
2515
2515
|
}), ee;
|
|
2516
|
-
const a = t.parsedType ===
|
|
2516
|
+
const a = t.parsedType === z.promise ? t.data : Promise.resolve(t.data);
|
|
2517
2517
|
return Je(a.then((s) => this._def.type.parseAsync(s, {
|
|
2518
2518
|
path: t.path,
|
|
2519
2519
|
errorMap: t.common.contextualErrorMap
|
|
@@ -2619,7 +2619,7 @@ ht.createWithPreprocess = (r, e, t) => new ht({
|
|
|
2619
2619
|
});
|
|
2620
2620
|
class yt extends ce {
|
|
2621
2621
|
_parse(e) {
|
|
2622
|
-
return this._getType(e) ===
|
|
2622
|
+
return this._getType(e) === z.undefined ? Je(void 0) : this._def.innerType._parse(e);
|
|
2623
2623
|
}
|
|
2624
2624
|
unwrap() {
|
|
2625
2625
|
return this._def.innerType;
|
|
@@ -2632,7 +2632,7 @@ yt.create = (r, e) => new yt({
|
|
|
2632
2632
|
});
|
|
2633
2633
|
class Nt extends ce {
|
|
2634
2634
|
_parse(e) {
|
|
2635
|
-
return this._getType(e) ===
|
|
2635
|
+
return this._getType(e) === z.null ? Je(null) : this._def.innerType._parse(e);
|
|
2636
2636
|
}
|
|
2637
2637
|
unwrap() {
|
|
2638
2638
|
return this._def.innerType;
|
|
@@ -2647,7 +2647,7 @@ class fr extends ce {
|
|
|
2647
2647
|
_parse(e) {
|
|
2648
2648
|
const { ctx: t } = this._processInputParams(e);
|
|
2649
2649
|
let a = t.data;
|
|
2650
|
-
return t.parsedType ===
|
|
2650
|
+
return t.parsedType === z.undefined && (a = this._def.defaultValue()), this._def.innerType._parse({
|
|
2651
2651
|
data: a,
|
|
2652
2652
|
path: t.path,
|
|
2653
2653
|
parent: t
|
|
@@ -2708,11 +2708,11 @@ dr.create = (r, e) => new dr({
|
|
|
2708
2708
|
});
|
|
2709
2709
|
class Sr extends ce {
|
|
2710
2710
|
_parse(e) {
|
|
2711
|
-
if (this._getType(e) !==
|
|
2711
|
+
if (this._getType(e) !== z.nan) {
|
|
2712
2712
|
const a = this._getOrReturnCtx(e);
|
|
2713
2713
|
return $(a, {
|
|
2714
2714
|
code: P.invalid_type,
|
|
2715
|
-
expected:
|
|
2715
|
+
expected: z.nan,
|
|
2716
2716
|
received: a.parsedType
|
|
2717
2717
|
}), ee;
|
|
2718
2718
|
}
|
|
@@ -2791,25 +2791,25 @@ hr.create = (r, e) => new hr({
|
|
|
2791
2791
|
typeName: re.ZodReadonly,
|
|
2792
2792
|
...ie(e)
|
|
2793
2793
|
});
|
|
2794
|
-
function
|
|
2794
|
+
function qr(r, e) {
|
|
2795
2795
|
const t = typeof r == "function" ? r(e) : typeof r == "string" ? { message: r } : r;
|
|
2796
2796
|
return typeof t == "string" ? { message: t } : t;
|
|
2797
2797
|
}
|
|
2798
|
-
function
|
|
2799
|
-
return r ?
|
|
2798
|
+
function rn(r, e = {}, t) {
|
|
2799
|
+
return r ? Gt.create().superRefine((a, s) => {
|
|
2800
2800
|
const i = r(a);
|
|
2801
2801
|
if (i instanceof Promise)
|
|
2802
2802
|
return i.then((c) => {
|
|
2803
2803
|
if (!c) {
|
|
2804
|
-
const f =
|
|
2804
|
+
const f = qr(e, a), b = f.fatal ?? t ?? !0;
|
|
2805
2805
|
s.addIssue({ code: "custom", ...f, fatal: b });
|
|
2806
2806
|
}
|
|
2807
2807
|
});
|
|
2808
2808
|
if (!i) {
|
|
2809
|
-
const c =
|
|
2809
|
+
const c = qr(e, a), f = c.fatal ?? t ?? !0;
|
|
2810
2810
|
s.addIssue({ code: "custom", ...c, fatal: f });
|
|
2811
2811
|
}
|
|
2812
|
-
}) :
|
|
2812
|
+
}) : Gt.create();
|
|
2813
2813
|
}
|
|
2814
2814
|
const ta = {
|
|
2815
2815
|
object: Ie.lazycreate
|
|
@@ -2820,7 +2820,7 @@ var re;
|
|
|
2820
2820
|
})(re || (re = {}));
|
|
2821
2821
|
const ra = (r, e = {
|
|
2822
2822
|
message: `Input not instance of ${r.name}`
|
|
2823
|
-
}) =>
|
|
2823
|
+
}) => rn((t) => t instanceof r, e), $e = ft.create, Kt = Dt.create, na = Sr.create, aa = Ot.create, $t = rr.create, sa = Ft.create, ia = Er.create, oa = nr.create, ca = ar.create, ua = Gt.create, la = It.create, fa = Et.create, da = Tr.create, ha = dt.create, Ct = Ie.create, pa = Ie.strictCreate, ma = sr.create, ya = Dr.create, ga = ir.create, va = vt.create, ba = or.create, wa = Ar.create, ka = Ut.create, xa = qt.create, _a = cr.create, Ea = ur.create, nn = Pt.create, Lr = lr.create, Ta = Yt.create, Hr = ht.create, Aa = yt.create, Sa = Nt.create, Da = ht.createWithPreprocess, Oa = pr.create, Pa = () => $e().optional(), Na = () => Kt().optional(), Ca = () => $t().optional(), Fr = {
|
|
2824
2824
|
string: ((r) => ft.create({ ...r, coerce: !0 })),
|
|
2825
2825
|
number: ((r) => Dt.create({ ...r, coerce: !0 })),
|
|
2826
2826
|
boolean: ((r) => rr.create({
|
|
@@ -2837,9 +2837,9 @@ const ra = (r, e = {
|
|
|
2837
2837
|
INVALID: ee,
|
|
2838
2838
|
NEVER: Ra,
|
|
2839
2839
|
OK: Je,
|
|
2840
|
-
ParseStatus:
|
|
2840
|
+
ParseStatus: Ke,
|
|
2841
2841
|
Schema: ce,
|
|
2842
|
-
ZodAny:
|
|
2842
|
+
ZodAny: Gt,
|
|
2843
2843
|
ZodArray: dt,
|
|
2844
2844
|
ZodBigInt: Ot,
|
|
2845
2845
|
ZodBoolean: rr,
|
|
@@ -2854,7 +2854,7 @@ const ra = (r, e = {
|
|
|
2854
2854
|
get ZodFirstPartyTypeKind() {
|
|
2855
2855
|
return re;
|
|
2856
2856
|
},
|
|
2857
|
-
ZodFunction:
|
|
2857
|
+
ZodFunction: qt,
|
|
2858
2858
|
ZodIntersection: ir,
|
|
2859
2859
|
ZodIssueCode: P,
|
|
2860
2860
|
ZodLazy: cr,
|
|
@@ -2868,7 +2868,7 @@ const ra = (r, e = {
|
|
|
2868
2868
|
ZodNumber: Dt,
|
|
2869
2869
|
ZodObject: Ie,
|
|
2870
2870
|
ZodOptional: yt,
|
|
2871
|
-
ZodParsedType:
|
|
2871
|
+
ZodParsedType: z,
|
|
2872
2872
|
ZodPipeline: pr,
|
|
2873
2873
|
ZodPromise: Yt,
|
|
2874
2874
|
ZodReadonly: hr,
|
|
@@ -2890,13 +2890,13 @@ const ra = (r, e = {
|
|
|
2890
2890
|
bigint: aa,
|
|
2891
2891
|
boolean: $t,
|
|
2892
2892
|
coerce: Fr,
|
|
2893
|
-
custom:
|
|
2893
|
+
custom: rn,
|
|
2894
2894
|
date: sa,
|
|
2895
|
-
datetimeRegex:
|
|
2896
|
-
defaultErrorMap:
|
|
2895
|
+
datetimeRegex: en,
|
|
2896
|
+
defaultErrorMap: Ht,
|
|
2897
2897
|
discriminatedUnion: ya,
|
|
2898
2898
|
effect: Hr,
|
|
2899
|
-
enum:
|
|
2899
|
+
enum: nn,
|
|
2900
2900
|
function: xa,
|
|
2901
2901
|
getErrorMap: xr,
|
|
2902
2902
|
getParsedType: _t,
|
|
@@ -2916,7 +2916,7 @@ const ra = (r, e = {
|
|
|
2916
2916
|
never: fa,
|
|
2917
2917
|
null: ca,
|
|
2918
2918
|
nullable: Sa,
|
|
2919
|
-
number:
|
|
2919
|
+
number: Kt,
|
|
2920
2920
|
object: Ct,
|
|
2921
2921
|
get objectUtil() {
|
|
2922
2922
|
return Rr;
|
|
@@ -2933,7 +2933,7 @@ const ra = (r, e = {
|
|
|
2933
2933
|
set: ka,
|
|
2934
2934
|
setErrorMap: Nn,
|
|
2935
2935
|
strictObject: pa,
|
|
2936
|
-
string:
|
|
2936
|
+
string: $e,
|
|
2937
2937
|
symbol: ia,
|
|
2938
2938
|
transformer: Hr,
|
|
2939
2939
|
tuple: va,
|
|
@@ -2945,12 +2945,12 @@ const ra = (r, e = {
|
|
|
2945
2945
|
},
|
|
2946
2946
|
void: da
|
|
2947
2947
|
}, Symbol.toStringTag, { value: "Module" })), bt = Ct({
|
|
2948
|
-
name:
|
|
2949
|
-
selector:
|
|
2950
|
-
findBy:
|
|
2948
|
+
name: $e(),
|
|
2949
|
+
selector: $e(),
|
|
2950
|
+
findBy: nn(["cssSelector", "xpath"]),
|
|
2951
2951
|
option: Ct({
|
|
2952
2952
|
waitForSelector: $t().optional(),
|
|
2953
|
-
waitSelectorTimeout:
|
|
2953
|
+
waitSelectorTimeout: Kt().optional(),
|
|
2954
2954
|
multiple: $t().optional()
|
|
2955
2955
|
})
|
|
2956
2956
|
}), Ma = O.object({
|
|
@@ -2962,7 +2962,7 @@ const ra = (r, e = {
|
|
|
2962
2962
|
}), ja = O.discriminatedUnion("type", [
|
|
2963
2963
|
Ma,
|
|
2964
2964
|
Ia
|
|
2965
|
-
]),
|
|
2965
|
+
]), an = O.object({
|
|
2966
2966
|
name: O.literal("ai-parse-data"),
|
|
2967
2967
|
sourceData: O.any().optional(),
|
|
2968
2968
|
schemaDefinition: ja,
|
|
@@ -2972,7 +2972,7 @@ const ra = (r, e = {
|
|
|
2972
2972
|
// 필수
|
|
2973
2973
|
});
|
|
2974
2974
|
function Fa(r) {
|
|
2975
|
-
return
|
|
2975
|
+
return an.parse(r);
|
|
2976
2976
|
}
|
|
2977
2977
|
async function Ua(r) {
|
|
2978
2978
|
try {
|
|
@@ -3011,7 +3011,7 @@ async function Ua(r) {
|
|
|
3011
3011
|
};
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function Gs(r) {
|
|
3015
3015
|
return {
|
|
3016
3016
|
type: "object",
|
|
3017
3017
|
shape: r
|
|
@@ -3023,7 +3023,7 @@ function Ys(r) {
|
|
|
3023
3023
|
items: r
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
|
-
const
|
|
3026
|
+
const Ks = {
|
|
3027
3027
|
string: (r) => ({
|
|
3028
3028
|
type: "string",
|
|
3029
3029
|
...r
|
|
@@ -3045,6 +3045,12 @@ const Gs = {
|
|
|
3045
3045
|
type: "object",
|
|
3046
3046
|
shape: r,
|
|
3047
3047
|
...e
|
|
3048
|
+
}),
|
|
3049
|
+
currency: (r) => ({
|
|
3050
|
+
type: "currency",
|
|
3051
|
+
shape: Bs,
|
|
3052
|
+
description: (r == null ? void 0 : r.description) || "Currency information with code, symbol, format, amount, and text",
|
|
3053
|
+
optional: r == null ? void 0 : r.optional
|
|
3048
3054
|
})
|
|
3049
3055
|
};
|
|
3050
3056
|
class Or {
|
|
@@ -3177,7 +3183,7 @@ class Za extends Or {
|
|
|
3177
3183
|
}
|
|
3178
3184
|
}
|
|
3179
3185
|
}
|
|
3180
|
-
class
|
|
3186
|
+
class za {
|
|
3181
3187
|
/**
|
|
3182
3188
|
* 요소의 안정적인 CSS 셀렉터 생성
|
|
3183
3189
|
* @param element 대상 요소
|
|
@@ -3240,13 +3246,13 @@ class Wa {
|
|
|
3240
3246
|
}
|
|
3241
3247
|
}
|
|
3242
3248
|
async function pt(r, e = document) {
|
|
3243
|
-
const { selector: t, findBy: a = "cssSelector", option: s } = r, { waitForSelector: i = !1, waitSelectorTimeout: c = 5e3 } = s || {}, f =
|
|
3249
|
+
const { selector: t, findBy: a = "cssSelector", option: s } = r, { waitForSelector: i = !1, waitSelectorTimeout: c = 5e3 } = s || {}, f = Wa(t, a);
|
|
3244
3250
|
return i ? f.waitForElement(r, e, c) : f.find(r, e);
|
|
3245
3251
|
}
|
|
3246
|
-
function
|
|
3252
|
+
function Wa(r, e) {
|
|
3247
3253
|
return e === "xpath" ? new Za() : r.includes(">>") ? new Ba() : r.includes("|>") ? new La() : new $a();
|
|
3248
3254
|
}
|
|
3249
|
-
const
|
|
3255
|
+
const sn = bt.extend({
|
|
3250
3256
|
name: O.literal("get-text"),
|
|
3251
3257
|
includeTags: O.boolean().optional(),
|
|
3252
3258
|
useTextContent: O.boolean().optional(),
|
|
@@ -3260,9 +3266,9 @@ const an = bt.extend({
|
|
|
3260
3266
|
maxScrollAttempts: O.number().optional()
|
|
3261
3267
|
});
|
|
3262
3268
|
function Va(r) {
|
|
3263
|
-
return
|
|
3269
|
+
return sn.parse(r);
|
|
3264
3270
|
}
|
|
3265
|
-
async function
|
|
3271
|
+
async function qa(r) {
|
|
3266
3272
|
try {
|
|
3267
3273
|
const {
|
|
3268
3274
|
selector: e = "",
|
|
@@ -3282,7 +3288,7 @@ async function Ha(r) {
|
|
|
3282
3288
|
if (!e)
|
|
3283
3289
|
throw new Error("Selector is required for get-text block");
|
|
3284
3290
|
if (M && (b != null && b.multiple))
|
|
3285
|
-
return await
|
|
3291
|
+
return await Ha({
|
|
3286
3292
|
selector: e,
|
|
3287
3293
|
findBy: f,
|
|
3288
3294
|
option: b,
|
|
@@ -3299,7 +3305,7 @@ async function Ha(r) {
|
|
|
3299
3305
|
const I = await pt({ selector: e, findBy: f, option: b });
|
|
3300
3306
|
if (!I)
|
|
3301
3307
|
return { data: "" };
|
|
3302
|
-
const se =
|
|
3308
|
+
const se = on(
|
|
3303
3309
|
t,
|
|
3304
3310
|
a,
|
|
3305
3311
|
s,
|
|
@@ -3308,7 +3314,7 @@ async function Ha(r) {
|
|
|
3308
3314
|
);
|
|
3309
3315
|
if (Array.isArray(I)) {
|
|
3310
3316
|
const me = I.map(se);
|
|
3311
|
-
return { data: k ? me.filter((
|
|
3317
|
+
return { data: k ? me.filter((H) => H.trim() !== "") : me };
|
|
3312
3318
|
} else
|
|
3313
3319
|
return { data: se(I) };
|
|
3314
3320
|
} catch (e) {
|
|
@@ -3319,7 +3325,7 @@ async function Ha(r) {
|
|
|
3319
3325
|
};
|
|
3320
3326
|
}
|
|
3321
3327
|
}
|
|
3322
|
-
async function
|
|
3328
|
+
async function Ha(r) {
|
|
3323
3329
|
const {
|
|
3324
3330
|
selector: e,
|
|
3325
3331
|
findBy: t,
|
|
@@ -3333,16 +3339,16 @@ async function qa(r) {
|
|
|
3333
3339
|
scrollDistance: M,
|
|
3334
3340
|
scrollWaitMs: S,
|
|
3335
3341
|
maxScrollAttempts: x
|
|
3336
|
-
} = r, E =
|
|
3342
|
+
} = r, E = on(s, i, c, f, b), I = /* @__PURE__ */ new Set();
|
|
3337
3343
|
let se = 0, me = 0;
|
|
3338
3344
|
const ge = 5;
|
|
3339
3345
|
for (; se < x; ) {
|
|
3340
|
-
const
|
|
3341
|
-
if (
|
|
3346
|
+
const H = await pt({ selector: e, findBy: t, option: a });
|
|
3347
|
+
if (H && Array.isArray(H)) {
|
|
3342
3348
|
const B = I.size;
|
|
3343
|
-
if (
|
|
3344
|
-
const
|
|
3345
|
-
(!k ||
|
|
3349
|
+
if (H.forEach((L) => {
|
|
3350
|
+
const W = E(L);
|
|
3351
|
+
(!k || W.trim() !== "") && I.add(W);
|
|
3346
3352
|
}), I.size === B) {
|
|
3347
3353
|
if (me++, me >= ge)
|
|
3348
3354
|
break;
|
|
@@ -3356,7 +3362,7 @@ async function qa(r) {
|
|
|
3356
3362
|
}
|
|
3357
3363
|
return { data: Array.from(I) };
|
|
3358
3364
|
}
|
|
3359
|
-
function
|
|
3365
|
+
function on(r, e, t, a = "", s = "") {
|
|
3360
3366
|
return (i) => {
|
|
3361
3367
|
let c = "";
|
|
3362
3368
|
if (r ? c = i.innerHTML : c = e ? i.textContent || "" : i.innerText || "", t) {
|
|
@@ -3366,12 +3372,12 @@ function sn(r, e, t, a = "", s = "") {
|
|
|
3366
3372
|
return c.trim() && (c = a + c.trim() + s), c;
|
|
3367
3373
|
};
|
|
3368
3374
|
}
|
|
3369
|
-
const
|
|
3375
|
+
const cn = bt.extend({
|
|
3370
3376
|
name: O.literal("attribute-value"),
|
|
3371
3377
|
attributeName: O.string()
|
|
3372
3378
|
});
|
|
3373
|
-
function
|
|
3374
|
-
return
|
|
3379
|
+
function Ga(r) {
|
|
3380
|
+
return cn.parse(r);
|
|
3375
3381
|
}
|
|
3376
3382
|
async function Ya(r) {
|
|
3377
3383
|
try {
|
|
@@ -3390,12 +3396,12 @@ async function Ya(r) {
|
|
|
3390
3396
|
};
|
|
3391
3397
|
}
|
|
3392
3398
|
}
|
|
3393
|
-
const
|
|
3399
|
+
const un = bt.extend({
|
|
3394
3400
|
name: O.literal("get-value-form"),
|
|
3395
3401
|
type: O.enum(["text-field", "select", "checkbox"]).optional()
|
|
3396
3402
|
});
|
|
3397
|
-
function
|
|
3398
|
-
return
|
|
3403
|
+
function Ka(r) {
|
|
3404
|
+
return un.parse(r);
|
|
3399
3405
|
}
|
|
3400
3406
|
async function Ja(r) {
|
|
3401
3407
|
try {
|
|
@@ -3433,13 +3439,13 @@ function Xa(r, e) {
|
|
|
3433
3439
|
}
|
|
3434
3440
|
throw new Error(`Invalid element type for ${e}`);
|
|
3435
3441
|
}
|
|
3436
|
-
const
|
|
3442
|
+
const ln = bt.extend({
|
|
3437
3443
|
name: O.literal("set-value-form"),
|
|
3438
3444
|
setValue: O.string(),
|
|
3439
3445
|
type: O.enum(["text-field", "select", "checkbox"]).optional()
|
|
3440
3446
|
});
|
|
3441
3447
|
function Qa(r) {
|
|
3442
|
-
return
|
|
3448
|
+
return ln.parse(r);
|
|
3443
3449
|
}
|
|
3444
3450
|
async function es(r) {
|
|
3445
3451
|
try {
|
|
@@ -3473,12 +3479,12 @@ function ts(r, e, t) {
|
|
|
3473
3479
|
throw new Error(`Unsupported form element type: ${t}`);
|
|
3474
3480
|
}
|
|
3475
3481
|
}
|
|
3476
|
-
const
|
|
3482
|
+
const fn = bt.extend({
|
|
3477
3483
|
name: O.literal("clear-value-form"),
|
|
3478
3484
|
type: O.enum(["text-field", "select", "checkbox"]).optional()
|
|
3479
3485
|
});
|
|
3480
3486
|
function rs(r) {
|
|
3481
|
-
return
|
|
3487
|
+
return fn.parse(r);
|
|
3482
3488
|
}
|
|
3483
3489
|
async function ns(r) {
|
|
3484
3490
|
try {
|
|
@@ -3512,11 +3518,11 @@ function as(r, e) {
|
|
|
3512
3518
|
throw new Error(`Unsupported form element type: ${e}`);
|
|
3513
3519
|
}
|
|
3514
3520
|
}
|
|
3515
|
-
const
|
|
3521
|
+
const dn = bt.extend({
|
|
3516
3522
|
name: O.literal("element-exists")
|
|
3517
3523
|
});
|
|
3518
3524
|
function ss(r) {
|
|
3519
|
-
return
|
|
3525
|
+
return dn.parse(r);
|
|
3520
3526
|
}
|
|
3521
3527
|
async function is(r) {
|
|
3522
3528
|
try {
|
|
@@ -3532,7 +3538,7 @@ async function is(r) {
|
|
|
3532
3538
|
};
|
|
3533
3539
|
}
|
|
3534
3540
|
}
|
|
3535
|
-
const
|
|
3541
|
+
const hn = bt.extend({
|
|
3536
3542
|
name: O.literal("event-click"),
|
|
3537
3543
|
textFilter: O.object({
|
|
3538
3544
|
text: O.union([O.string(), O.array(O.string())]),
|
|
@@ -3540,7 +3546,7 @@ const dn = bt.extend({
|
|
|
3540
3546
|
}).optional()
|
|
3541
3547
|
});
|
|
3542
3548
|
function os(r) {
|
|
3543
|
-
return
|
|
3549
|
+
return hn.parse(r);
|
|
3544
3550
|
}
|
|
3545
3551
|
async function cs(r) {
|
|
3546
3552
|
try {
|
|
@@ -3645,7 +3651,7 @@ async function fs(r) {
|
|
|
3645
3651
|
}
|
|
3646
3652
|
await new Promise((s) => setTimeout(s, 50));
|
|
3647
3653
|
}
|
|
3648
|
-
const
|
|
3654
|
+
const pn = O.object({
|
|
3649
3655
|
name: O.literal("keypress"),
|
|
3650
3656
|
key: O.string(),
|
|
3651
3657
|
code: O.string().optional(),
|
|
@@ -3653,7 +3659,7 @@ const hn = O.object({
|
|
|
3653
3659
|
modifiers: O.array(O.enum(["Alt", "Control", "Meta", "Shift"])).optional()
|
|
3654
3660
|
});
|
|
3655
3661
|
function ds(r) {
|
|
3656
|
-
return
|
|
3662
|
+
return pn.parse(r);
|
|
3657
3663
|
}
|
|
3658
3664
|
async function hs(r) {
|
|
3659
3665
|
try {
|
|
@@ -3690,14 +3696,14 @@ async function ps(r, e, t, a = []) {
|
|
|
3690
3696
|
keyCode: t || Nr(r),
|
|
3691
3697
|
bubbles: !0,
|
|
3692
3698
|
cancelable: !0,
|
|
3693
|
-
...
|
|
3699
|
+
...Gr(a)
|
|
3694
3700
|
}), c = new KeyboardEvent("keyup", {
|
|
3695
3701
|
key: r,
|
|
3696
3702
|
code: e || r,
|
|
3697
3703
|
keyCode: t || Nr(r),
|
|
3698
3704
|
bubbles: !0,
|
|
3699
3705
|
cancelable: !0,
|
|
3700
|
-
...
|
|
3706
|
+
...Gr(a)
|
|
3701
3707
|
});
|
|
3702
3708
|
document.dispatchEvent(i), await new Promise((f) => setTimeout(f, 10)), document.dispatchEvent(c);
|
|
3703
3709
|
}
|
|
@@ -3718,7 +3724,7 @@ function Nr(r) {
|
|
|
3718
3724
|
" ": 32
|
|
3719
3725
|
}[r] || 0;
|
|
3720
3726
|
}
|
|
3721
|
-
function
|
|
3727
|
+
function Gr(r) {
|
|
3722
3728
|
return {
|
|
3723
3729
|
altKey: r.includes("Alt"),
|
|
3724
3730
|
ctrlKey: r.includes("Control"),
|
|
@@ -3726,12 +3732,12 @@ function qr(r) {
|
|
|
3726
3732
|
shiftKey: r.includes("Shift")
|
|
3727
3733
|
};
|
|
3728
3734
|
}
|
|
3729
|
-
const
|
|
3735
|
+
const mn = O.object({
|
|
3730
3736
|
name: O.literal("wait"),
|
|
3731
3737
|
duration: O.number().min(0)
|
|
3732
3738
|
});
|
|
3733
3739
|
function ms(r) {
|
|
3734
|
-
return
|
|
3740
|
+
return mn.parse(r);
|
|
3735
3741
|
}
|
|
3736
3742
|
async function ys(r) {
|
|
3737
3743
|
try {
|
|
@@ -3745,7 +3751,7 @@ async function ys(r) {
|
|
|
3745
3751
|
};
|
|
3746
3752
|
}
|
|
3747
3753
|
}
|
|
3748
|
-
const
|
|
3754
|
+
const yn = O.object({
|
|
3749
3755
|
name: O.literal("wait-for-condition"),
|
|
3750
3756
|
conditions: O.object({
|
|
3751
3757
|
urlPattern: O.string().optional(),
|
|
@@ -3773,7 +3779,7 @@ const mn = O.object({
|
|
|
3773
3779
|
position: O.enum(["top-left", "top-right", "bottom-left", "bottom-right"]).optional()
|
|
3774
3780
|
});
|
|
3775
3781
|
function gs(r) {
|
|
3776
|
-
return
|
|
3782
|
+
return yn.parse(r);
|
|
3777
3783
|
}
|
|
3778
3784
|
async function vs(r) {
|
|
3779
3785
|
try {
|
|
@@ -3882,14 +3888,14 @@ async function vs(r) {
|
|
|
3882
3888
|
};
|
|
3883
3889
|
}
|
|
3884
3890
|
}
|
|
3885
|
-
const
|
|
3891
|
+
const gn = O.object({
|
|
3886
3892
|
name: O.literal("navigate"),
|
|
3887
3893
|
url: O.string().url("Valid URL is required"),
|
|
3888
3894
|
waitForLoad: O.boolean().optional(),
|
|
3889
3895
|
timeout: O.number().min(0).optional()
|
|
3890
3896
|
});
|
|
3891
3897
|
function bs(r) {
|
|
3892
|
-
return
|
|
3898
|
+
return gn.parse(r);
|
|
3893
3899
|
}
|
|
3894
3900
|
async function ws(r) {
|
|
3895
3901
|
try {
|
|
@@ -3910,11 +3916,11 @@ async function ws(r) {
|
|
|
3910
3916
|
};
|
|
3911
3917
|
}
|
|
3912
3918
|
}
|
|
3913
|
-
const
|
|
3919
|
+
const vn = bt.extend({
|
|
3914
3920
|
name: O.literal("save-assets")
|
|
3915
3921
|
});
|
|
3916
3922
|
function ks(r) {
|
|
3917
|
-
return
|
|
3923
|
+
return vn.parse(r);
|
|
3918
3924
|
}
|
|
3919
3925
|
async function xs(r) {
|
|
3920
3926
|
try {
|
|
@@ -3989,7 +3995,7 @@ class _s {
|
|
|
3989
3995
|
].some((a) => a.test(e));
|
|
3990
3996
|
}
|
|
3991
3997
|
}
|
|
3992
|
-
const
|
|
3998
|
+
const bn = bt.extend({
|
|
3993
3999
|
name: O.literal("get-element-data"),
|
|
3994
4000
|
includeText: O.boolean().optional(),
|
|
3995
4001
|
includeTags: O.boolean().optional(),
|
|
@@ -4002,7 +4008,7 @@ const vn = bt.extend({
|
|
|
4002
4008
|
includeXPath: O.boolean().optional()
|
|
4003
4009
|
});
|
|
4004
4010
|
function Es(r) {
|
|
4005
|
-
return
|
|
4011
|
+
return bn.parse(r);
|
|
4006
4012
|
}
|
|
4007
4013
|
async function Ts(r) {
|
|
4008
4014
|
try {
|
|
@@ -4065,10 +4071,10 @@ function As(r, e, t, a, s = "", i = "", c = [], f = !1, b = !1) {
|
|
|
4065
4071
|
E && (x = E.getAttribute(S));
|
|
4066
4072
|
}
|
|
4067
4073
|
M.attributes[S] = x;
|
|
4068
|
-
})), f && (M.selector =
|
|
4074
|
+
})), f && (M.selector = za.generate(k)), b && (M.xpath = _s.generate(k)), M;
|
|
4069
4075
|
};
|
|
4070
4076
|
}
|
|
4071
|
-
const
|
|
4077
|
+
const wn = bt.extend({
|
|
4072
4078
|
name: O.literal("scroll"),
|
|
4073
4079
|
scrollType: O.enum(["toElement", "toBottom", "byDistance", "untilLoaded"]).optional(),
|
|
4074
4080
|
distance: O.number().optional(),
|
|
@@ -4077,7 +4083,7 @@ const bn = bt.extend({
|
|
|
4077
4083
|
waitAfterScroll: O.number().optional()
|
|
4078
4084
|
});
|
|
4079
4085
|
function Ss(r) {
|
|
4080
|
-
return
|
|
4086
|
+
return wn.parse(r);
|
|
4081
4087
|
}
|
|
4082
4088
|
async function Ds(r) {
|
|
4083
4089
|
try {
|
|
@@ -4157,7 +4163,7 @@ async function Cs(r, e, t, a) {
|
|
|
4157
4163
|
}
|
|
4158
4164
|
return { data: !0 };
|
|
4159
4165
|
}
|
|
4160
|
-
const
|
|
4166
|
+
const kn = O.object({
|
|
4161
4167
|
name: O.literal("fetch-api"),
|
|
4162
4168
|
url: O.string(),
|
|
4163
4169
|
method: O.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
|
|
@@ -4168,7 +4174,7 @@ const wn = O.object({
|
|
|
4168
4174
|
returnHeaders: O.boolean().optional()
|
|
4169
4175
|
});
|
|
4170
4176
|
function Rs(r) {
|
|
4171
|
-
return
|
|
4177
|
+
return kn.parse(r);
|
|
4172
4178
|
}
|
|
4173
4179
|
async function Ms(r) {
|
|
4174
4180
|
try {
|
|
@@ -4201,16 +4207,16 @@ async function Ms(r) {
|
|
|
4201
4207
|
};
|
|
4202
4208
|
}
|
|
4203
4209
|
}
|
|
4204
|
-
var
|
|
4210
|
+
var Yr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4205
4211
|
function Is(r) {
|
|
4206
4212
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
4207
4213
|
}
|
|
4208
4214
|
function kr(r) {
|
|
4209
4215
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4210
4216
|
}
|
|
4211
|
-
var Cr = { exports: {} },
|
|
4217
|
+
var Cr = { exports: {} }, Kr;
|
|
4212
4218
|
function js() {
|
|
4213
|
-
return
|
|
4219
|
+
return Kr || (Kr = 1, (function(r, e) {
|
|
4214
4220
|
(function(t) {
|
|
4215
4221
|
r.exports = t();
|
|
4216
4222
|
})(function() {
|
|
@@ -4296,8 +4302,8 @@ function js() {
|
|
|
4296
4302
|
} else {
|
|
4297
4303
|
var J = Math.floor(Math.log10(U) / 3);
|
|
4298
4304
|
J > S.length && (J = S.length);
|
|
4299
|
-
const ye = Math.pow(10, J * 3), we = Math.floor(U / ye),
|
|
4300
|
-
F = (j ? ", " : "") + w(we, !1, !1) + " " + S[J - 1],
|
|
4305
|
+
const ye = Math.pow(10, J * 3), we = Math.floor(U / ye), K = U - we * ye;
|
|
4306
|
+
F = (j ? ", " : "") + w(we, !1, !1) + " " + S[J - 1], K > 0 ? F += w(K, !0, D) : D && (F += "th");
|
|
4301
4307
|
}
|
|
4302
4308
|
return F;
|
|
4303
4309
|
}, N = w(v, !1, A);
|
|
@@ -4349,7 +4355,7 @@ function js() {
|
|
|
4349
4355
|
}
|
|
4350
4356
|
return "";
|
|
4351
4357
|
}
|
|
4352
|
-
function
|
|
4358
|
+
function H(v) {
|
|
4353
4359
|
for (var A = 0, w = 1, N = v.length - 1; N >= 0; N--) {
|
|
4354
4360
|
const U = v[N], j = me[U];
|
|
4355
4361
|
j < w ? A -= j : (w = j, A += j);
|
|
@@ -4371,7 +4377,7 @@ function js() {
|
|
|
4371
4377
|
return;
|
|
4372
4378
|
v = Math.floor(v);
|
|
4373
4379
|
const w = xe(A);
|
|
4374
|
-
return
|
|
4380
|
+
return W(v, w);
|
|
4375
4381
|
}
|
|
4376
4382
|
const T = {
|
|
4377
4383
|
DECIMAL: "decimal",
|
|
@@ -4384,7 +4390,7 @@ function js() {
|
|
|
4384
4390
|
LOWER: "lower",
|
|
4385
4391
|
TITLE: "title"
|
|
4386
4392
|
};
|
|
4387
|
-
function
|
|
4393
|
+
function W(v, A) {
|
|
4388
4394
|
let w;
|
|
4389
4395
|
const N = v < 0;
|
|
4390
4396
|
switch (v = Math.abs(v), A.primary) {
|
|
@@ -4407,8 +4413,8 @@ function js() {
|
|
|
4407
4413
|
if (A.zeroCode !== 48 && (w = f(w).map((ye) => String.fromCodePoint(ye.codePointAt(0) + A.zeroCode - 48)).join("")), A.regular) {
|
|
4408
4414
|
const ye = Math.floor((w.length - 1) / A.groupingSeparators.position);
|
|
4409
4415
|
for (let we = ye; we > 0; we--) {
|
|
4410
|
-
const
|
|
4411
|
-
w = w.substr(0,
|
|
4416
|
+
const K = w.length - we * A.groupingSeparators.position;
|
|
4417
|
+
w = w.substr(0, K) + A.groupingSeparators.character + w.substr(K);
|
|
4412
4418
|
}
|
|
4413
4419
|
} else
|
|
4414
4420
|
A.groupingSeparators.reverse().forEach((ye) => {
|
|
@@ -4462,40 +4468,40 @@ function js() {
|
|
|
4462
4468
|
break;
|
|
4463
4469
|
default: {
|
|
4464
4470
|
let j = null, D = 0, F = 0, J = [], ye = 0;
|
|
4465
|
-
if (f(w).map((
|
|
4471
|
+
if (f(w).map((K) => K.codePointAt(0)).reverse().forEach((K) => {
|
|
4466
4472
|
let Q = !1;
|
|
4467
4473
|
for (let he = 0; he < de.length; he++) {
|
|
4468
|
-
const
|
|
4469
|
-
if (
|
|
4474
|
+
const G = de[he];
|
|
4475
|
+
if (K >= G && K <= G + 9) {
|
|
4470
4476
|
if (Q = !0, D++, ye++, j === null)
|
|
4471
|
-
j =
|
|
4472
|
-
else if (
|
|
4477
|
+
j = G;
|
|
4478
|
+
else if (G !== j)
|
|
4473
4479
|
throw {
|
|
4474
4480
|
code: "D3131"
|
|
4475
4481
|
};
|
|
4476
4482
|
break;
|
|
4477
4483
|
}
|
|
4478
4484
|
}
|
|
4479
|
-
Q || (
|
|
4485
|
+
Q || (K === 35 ? (ye++, F++) : J.push({
|
|
4480
4486
|
position: ye,
|
|
4481
|
-
character: String.fromCodePoint(
|
|
4487
|
+
character: String.fromCodePoint(K)
|
|
4482
4488
|
}));
|
|
4483
4489
|
}), D > 0) {
|
|
4484
4490
|
A.primary = T.DECIMAL, A.zeroCode = j, A.mandatoryDigits = D, A.optionalDigits = F;
|
|
4485
4491
|
const Q = function(he) {
|
|
4486
4492
|
if (he.length === 0)
|
|
4487
4493
|
return 0;
|
|
4488
|
-
const
|
|
4494
|
+
const G = he[0].character;
|
|
4489
4495
|
for (let Le = 1; Le < he.length; Le++)
|
|
4490
|
-
if (he[Le].character !==
|
|
4496
|
+
if (he[Le].character !== G)
|
|
4491
4497
|
return 0;
|
|
4492
|
-
const Ze = he.map((Le) => Le.position), it = function(Le,
|
|
4493
|
-
return
|
|
4494
|
-
},
|
|
4498
|
+
const Ze = he.map((Le) => Le.position), it = function(Le, He) {
|
|
4499
|
+
return He === 0 ? Le : it(He, Le % He);
|
|
4500
|
+
}, qe = Ze.reduce(it);
|
|
4495
4501
|
for (let Le = 1; Le <= Ze.length; Le++)
|
|
4496
|
-
if (Ze.indexOf(Le *
|
|
4502
|
+
if (Ze.indexOf(Le * qe) === -1)
|
|
4497
4503
|
return 0;
|
|
4498
|
-
return
|
|
4504
|
+
return qe;
|
|
4499
4505
|
}(J);
|
|
4500
4506
|
Q > 0 ? (A.regular = !0, A.groupingSeparators = {
|
|
4501
4507
|
position: Q,
|
|
@@ -4535,8 +4541,8 @@ function js() {
|
|
|
4535
4541
|
parts: A
|
|
4536
4542
|
}, N = function(Q, he) {
|
|
4537
4543
|
if (he > Q) {
|
|
4538
|
-
let
|
|
4539
|
-
|
|
4544
|
+
let G = v.substring(Q, he);
|
|
4545
|
+
G = G.split("]]").join("]"), A.push({ type: "literal", value: G });
|
|
4540
4546
|
}
|
|
4541
4547
|
};
|
|
4542
4548
|
for (var U = 0, j = 0; j < v.length; ) {
|
|
@@ -4557,16 +4563,16 @@ function js() {
|
|
|
4557
4563
|
// 1. The component specifier is always present and is always a single letter.
|
|
4558
4564
|
}, F = Q.lastIndexOf(","), J;
|
|
4559
4565
|
if (F !== -1) {
|
|
4560
|
-
const he = Q.substring(F + 1),
|
|
4566
|
+
const he = Q.substring(F + 1), G = he.indexOf("-");
|
|
4561
4567
|
let Ze, it;
|
|
4562
|
-
const
|
|
4563
|
-
if (!(typeof
|
|
4564
|
-
return parseInt(
|
|
4568
|
+
const qe = function(He) {
|
|
4569
|
+
if (!(typeof He > "u" || He === "*"))
|
|
4570
|
+
return parseInt(He);
|
|
4565
4571
|
};
|
|
4566
|
-
|
|
4572
|
+
G === -1 ? Ze = he : (Ze = he.substring(0, G), it = he.substring(G + 1));
|
|
4567
4573
|
const Le = {
|
|
4568
|
-
min:
|
|
4569
|
-
max:
|
|
4574
|
+
min: qe(Ze),
|
|
4575
|
+
max: qe(it)
|
|
4570
4576
|
};
|
|
4571
4577
|
D.width = Le, J = Q.substring(1, F);
|
|
4572
4578
|
} else
|
|
@@ -4593,8 +4599,8 @@ function js() {
|
|
|
4593
4599
|
if (D.n = -1, D.width && D.width.max !== void 0)
|
|
4594
4600
|
D.n = D.width.max, D.integerFormat.mandatoryDigits = D.n;
|
|
4595
4601
|
else {
|
|
4596
|
-
var
|
|
4597
|
-
|
|
4602
|
+
var K = D.integerFormat.mandatoryDigits + D.integerFormat.optionalDigits;
|
|
4603
|
+
K >= 2 && (D.n = K);
|
|
4598
4604
|
}
|
|
4599
4605
|
const he = A[A.length - 1];
|
|
4600
4606
|
he && he.integerFormat && (he.integerFormat.parseWidth = he.integerFormat.mandatoryDigits);
|
|
@@ -4715,53 +4721,53 @@ function js() {
|
|
|
4715
4721
|
}
|
|
4716
4722
|
return w;
|
|
4717
4723
|
};
|
|
4718
|
-
let
|
|
4724
|
+
let Fe = null;
|
|
4719
4725
|
function st(v, A, w) {
|
|
4720
4726
|
var N = 0, U = 0;
|
|
4721
4727
|
if (typeof w < "u") {
|
|
4722
4728
|
const we = parseInt(w);
|
|
4723
4729
|
N = Math.floor(we / 100), U = we % 100;
|
|
4724
4730
|
}
|
|
4725
|
-
var j = function(we,
|
|
4726
|
-
var Q = ae(we,
|
|
4727
|
-
if ("YMDdFWwXxHhms".indexOf(
|
|
4728
|
-
if (
|
|
4729
|
-
if (
|
|
4731
|
+
var j = function(we, K) {
|
|
4732
|
+
var Q = ae(we, K.component);
|
|
4733
|
+
if ("YMDdFWwXxHhms".indexOf(K.component) !== -1)
|
|
4734
|
+
if (K.component === "Y" && K.n !== -1 && (Q = Q % Math.pow(10, K.n)), K.names) {
|
|
4735
|
+
if (K.component === "M" || K.component === "x")
|
|
4730
4736
|
Q = Re[Q - 1];
|
|
4731
|
-
else if (
|
|
4737
|
+
else if (K.component === "F")
|
|
4732
4738
|
Q = ve[Q];
|
|
4733
4739
|
else
|
|
4734
4740
|
throw {
|
|
4735
4741
|
code: "D3133",
|
|
4736
|
-
value:
|
|
4742
|
+
value: K.component
|
|
4737
4743
|
};
|
|
4738
|
-
|
|
4744
|
+
K.names === L.UPPER ? Q = Q.toUpperCase() : K.names === L.LOWER && (Q = Q.toLowerCase()), K.width && Q.length > K.width.max && (Q = Q.substring(0, K.width.max));
|
|
4739
4745
|
} else
|
|
4740
|
-
Q =
|
|
4741
|
-
else if (
|
|
4742
|
-
Q =
|
|
4743
|
-
else if (
|
|
4746
|
+
Q = W(Q, K.integerFormat);
|
|
4747
|
+
else if (K.component === "f")
|
|
4748
|
+
Q = W(Q, K.integerFormat);
|
|
4749
|
+
else if (K.component === "Z" || K.component === "z") {
|
|
4744
4750
|
const he = N * 100 + U;
|
|
4745
|
-
if (
|
|
4746
|
-
Q =
|
|
4751
|
+
if (K.integerFormat.regular)
|
|
4752
|
+
Q = W(he, K.integerFormat);
|
|
4747
4753
|
else {
|
|
4748
|
-
const
|
|
4749
|
-
if (
|
|
4750
|
-
Q =
|
|
4751
|
-
else if (
|
|
4752
|
-
Q =
|
|
4754
|
+
const G = K.integerFormat.mandatoryDigits;
|
|
4755
|
+
if (G === 1 || G === 2)
|
|
4756
|
+
Q = W(N, K.integerFormat), U !== 0 && (Q += ":" + B(U, "00"));
|
|
4757
|
+
else if (G === 3 || G === 4)
|
|
4758
|
+
Q = W(he, K.integerFormat);
|
|
4753
4759
|
else
|
|
4754
4760
|
throw {
|
|
4755
4761
|
code: "D3134",
|
|
4756
|
-
value:
|
|
4762
|
+
value: G
|
|
4757
4763
|
};
|
|
4758
4764
|
}
|
|
4759
|
-
he >= 0 && (Q = "+" + Q),
|
|
4760
|
-
} else
|
|
4765
|
+
he >= 0 && (Q = "+" + Q), K.component === "z" && (Q = "GMT" + Q), he === 0 && K.presentation2 === "t" && (Q = "Z");
|
|
4766
|
+
} else K.component === "P" && K.names === L.UPPER && (Q = Q.toUpperCase());
|
|
4761
4767
|
return Q;
|
|
4762
4768
|
};
|
|
4763
4769
|
let D;
|
|
4764
|
-
typeof A > "u" ? (
|
|
4770
|
+
typeof A > "u" ? (Fe === null && (Fe = Ae("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), D = Fe) : D = Ae(A);
|
|
4765
4771
|
const F = (60 * N + U) * 60 * 1e3, J = new Date(v + F);
|
|
4766
4772
|
let ye = "";
|
|
4767
4773
|
return D.parts.forEach(function(we) {
|
|
@@ -4819,7 +4825,7 @@ function js() {
|
|
|
4819
4825
|
break;
|
|
4820
4826
|
case T.ROMAN:
|
|
4821
4827
|
A.regex = w ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(N) {
|
|
4822
|
-
return
|
|
4828
|
+
return H(w ? N : N.toUpperCase());
|
|
4823
4829
|
};
|
|
4824
4830
|
break;
|
|
4825
4831
|
case T.WORDS:
|
|
@@ -4854,32 +4860,32 @@ function js() {
|
|
|
4854
4860
|
const w = Ae(A), N = d(w), U = "^" + N.parts.map((J) => "(" + J.regex + ")").join("") + "$";
|
|
4855
4861
|
var D = new RegExp(U, "i").exec(v);
|
|
4856
4862
|
if (D !== null) {
|
|
4857
|
-
const
|
|
4863
|
+
const G = {};
|
|
4858
4864
|
for (let De = 1; De < D.length; De++) {
|
|
4859
4865
|
const u = N.parts[De - 1];
|
|
4860
|
-
u.parse && (
|
|
4866
|
+
u.parse && (G[u.component] = u.parse(D[De]));
|
|
4861
4867
|
}
|
|
4862
|
-
if (Object.getOwnPropertyNames(
|
|
4868
|
+
if (Object.getOwnPropertyNames(G).length === 0)
|
|
4863
4869
|
return;
|
|
4864
4870
|
let Ze = 0;
|
|
4865
4871
|
const it = (De) => {
|
|
4866
4872
|
Ze <<= 1, Ze += De ? 1 : 0;
|
|
4867
|
-
},
|
|
4868
|
-
"YXMxWwdD".split("").forEach((De) => it(
|
|
4869
|
-
const
|
|
4870
|
-
Ze = 0, "PHhmsf".split("").forEach((De) => it(
|
|
4871
|
-
const At = !
|
|
4873
|
+
}, qe = (De) => !(~De & Ze) && !!(De & Ze);
|
|
4874
|
+
"YXMxWwdD".split("").forEach((De) => it(G[De]));
|
|
4875
|
+
const He = !qe(161) && qe(130), wt = qe(84), Tt = !wt && qe(72);
|
|
4876
|
+
Ze = 0, "PHhmsf".split("").forEach((De) => it(G[De]));
|
|
4877
|
+
const At = !qe(23) && qe(47), Jt = (He ? "YD" : wt ? "XxwF" : Tt ? "XWF" : "YMD") + (At ? "Phmsf" : "Hmsf"), ct = this.environment.timestamp;
|
|
4872
4878
|
let Lt = !1, mt = !1;
|
|
4873
4879
|
if (Jt.split("").forEach((De) => {
|
|
4874
|
-
if (typeof
|
|
4875
|
-
Lt ? (
|
|
4880
|
+
if (typeof G[De] > "u")
|
|
4881
|
+
Lt ? (G[De] = "MDd".indexOf(De) !== -1 ? 1 : 0, mt = !0) : G[De] = ae(ct, De);
|
|
4876
4882
|
else if (Lt = !0, mt)
|
|
4877
4883
|
throw {
|
|
4878
4884
|
code: "D3136"
|
|
4879
4885
|
};
|
|
4880
|
-
}),
|
|
4881
|
-
const De = Date.UTC(
|
|
4882
|
-
|
|
4886
|
+
}), G.M > 0 ? G.M -= 1 : G.M = 0, He) {
|
|
4887
|
+
const De = Date.UTC(G.Y, 0), u = (G.d - 1) * 1e3 * 60 * 60 * 24, h = new Date(De + u);
|
|
4888
|
+
G.M = h.getUTCMonth(), G.D = h.getUTCDate();
|
|
4883
4889
|
}
|
|
4884
4890
|
if (wt)
|
|
4885
4891
|
throw {
|
|
@@ -4889,9 +4895,9 @@ function js() {
|
|
|
4889
4895
|
throw {
|
|
4890
4896
|
code: "D3136"
|
|
4891
4897
|
};
|
|
4892
|
-
At && (
|
|
4893
|
-
var F = Date.UTC(
|
|
4894
|
-
return (
|
|
4898
|
+
At && (G.H = G.h === 12 ? 0 : G.h, G.P === 1 && (G.H += 12));
|
|
4899
|
+
var F = Date.UTC(G.Y, G.M, G.D, G.H, G.m, G.s, G.f);
|
|
4900
|
+
return (G.Z || G.z) && (F -= (G.Z || G.z) * 60 * 1e3), F;
|
|
4895
4901
|
}
|
|
4896
4902
|
}
|
|
4897
4903
|
var le = new RegExp("^\\d{4}(-[01]\\d)*(-[0-3]\\d)*(T[0-2]\\d:[0-5]\\d:[0-5]\\d)*(\\.\\d+)?([+-][0-2]\\d:?[0-5]\\d|Z)?$");
|
|
@@ -4925,7 +4931,7 @@ function js() {
|
|
|
4925
4931
|
(function() {
|
|
4926
4932
|
var c = t("./utils");
|
|
4927
4933
|
const f = (() => {
|
|
4928
|
-
var b = c.isNumeric, k = c.isArrayOfStrings, M = c.isArrayOfNumbers, S = c.createSequence, x = c.isSequence, E = c.isFunction, I = c.isLambda, se = c.isPromise, me = c.getFunctionArity, ge = c.isDeepEqual,
|
|
4934
|
+
var b = c.isNumeric, k = c.isArrayOfStrings, M = c.isArrayOfNumbers, S = c.createSequence, x = c.isSequence, E = c.isFunction, I = c.isLambda, se = c.isPromise, me = c.getFunctionArity, ge = c.isDeepEqual, H = c.stringToArray;
|
|
4929
4935
|
function C(n) {
|
|
4930
4936
|
if (!(typeof n > "u")) {
|
|
4931
4937
|
var o = 0;
|
|
@@ -4953,7 +4959,7 @@ function js() {
|
|
|
4953
4959
|
}), o / n.length;
|
|
4954
4960
|
}
|
|
4955
4961
|
}
|
|
4956
|
-
function
|
|
4962
|
+
function W(n, o = !1) {
|
|
4957
4963
|
if (!(typeof n > "u")) {
|
|
4958
4964
|
var l;
|
|
4959
4965
|
if (typeof n == "string")
|
|
@@ -4977,7 +4983,7 @@ function js() {
|
|
|
4977
4983
|
}
|
|
4978
4984
|
function de(n, o, l) {
|
|
4979
4985
|
if (!(typeof n > "u")) {
|
|
4980
|
-
var g =
|
|
4986
|
+
var g = H(n), p = g.length;
|
|
4981
4987
|
if (p + o < 0 && (o = 0), typeof l < "u") {
|
|
4982
4988
|
if (l <= 0)
|
|
4983
4989
|
return "";
|
|
@@ -5009,7 +5015,7 @@ function js() {
|
|
|
5009
5015
|
}
|
|
5010
5016
|
function Re(n) {
|
|
5011
5017
|
if (!(typeof n > "u"))
|
|
5012
|
-
return
|
|
5018
|
+
return H(n).length;
|
|
5013
5019
|
}
|
|
5014
5020
|
function et(n) {
|
|
5015
5021
|
if (!(typeof n > "u")) {
|
|
@@ -5075,7 +5081,7 @@ function js() {
|
|
|
5075
5081
|
return g;
|
|
5076
5082
|
}
|
|
5077
5083
|
}
|
|
5078
|
-
async function
|
|
5084
|
+
async function Fe(n, o, l, g) {
|
|
5079
5085
|
if (!(typeof n > "u")) {
|
|
5080
5086
|
var p = this;
|
|
5081
5087
|
if (o === "")
|
|
@@ -5094,41 +5100,41 @@ function js() {
|
|
|
5094
5100
|
};
|
|
5095
5101
|
var _;
|
|
5096
5102
|
typeof l == "string" ? _ = function(Se) {
|
|
5097
|
-
for (var
|
|
5098
|
-
|
|
5103
|
+
for (var ze = "", ke = 0, je = l.indexOf("$", ke); je !== -1 && ke < l.length; ) {
|
|
5104
|
+
ze += l.substring(ke, je), ke = je + 1;
|
|
5099
5105
|
var ot = l.charAt(ke);
|
|
5100
5106
|
if (ot === "$")
|
|
5101
|
-
|
|
5107
|
+
ze += "$", ke++;
|
|
5102
5108
|
else if (ot === "0")
|
|
5103
|
-
|
|
5109
|
+
ze += Se.match, ke++;
|
|
5104
5110
|
else {
|
|
5105
|
-
var
|
|
5106
|
-
if (Se.groups.length === 0 ?
|
|
5107
|
-
|
|
5111
|
+
var We;
|
|
5112
|
+
if (Se.groups.length === 0 ? We = 1 : We = Math.floor(Math.log(Se.groups.length) * Math.LOG10E) + 1, je = parseInt(l.substring(ke, ke + We), 10), We > 1 && je > Se.groups.length && (je = parseInt(l.substring(ke, ke + We - 1), 10)), isNaN(je))
|
|
5113
|
+
ze += "$";
|
|
5108
5114
|
else {
|
|
5109
5115
|
if (Se.groups.length > 0) {
|
|
5110
5116
|
var Bt = Se.groups[je - 1];
|
|
5111
|
-
typeof Bt < "u" && (
|
|
5117
|
+
typeof Bt < "u" && (ze += Bt);
|
|
5112
5118
|
}
|
|
5113
5119
|
ke += je.toString().length;
|
|
5114
5120
|
}
|
|
5115
5121
|
}
|
|
5116
5122
|
je = l.indexOf("$", ke);
|
|
5117
5123
|
}
|
|
5118
|
-
return
|
|
5124
|
+
return ze += l.substring(ke), ze;
|
|
5119
5125
|
} : _ = l;
|
|
5120
|
-
var R = "",
|
|
5126
|
+
var R = "", q = 0;
|
|
5121
5127
|
if (typeof g > "u" || g > 0) {
|
|
5122
5128
|
var X = 0;
|
|
5123
5129
|
if (typeof o == "string") {
|
|
5124
|
-
for (var Oe = n.indexOf(o,
|
|
5125
|
-
R += n.substring(
|
|
5126
|
-
R += n.substring(
|
|
5130
|
+
for (var Oe = n.indexOf(o, q); Oe !== -1 && (typeof g > "u" || X < g); )
|
|
5131
|
+
R += n.substring(q, Oe), R += l, q = Oe + o.length, X++, Oe = n.indexOf(o, q);
|
|
5132
|
+
R += n.substring(q);
|
|
5127
5133
|
} else {
|
|
5128
5134
|
var pe = await ue(o, n);
|
|
5129
5135
|
if (typeof pe < "u") {
|
|
5130
5136
|
for (; typeof pe < "u" && (typeof g > "u" || X < g); ) {
|
|
5131
|
-
R += n.substring(
|
|
5137
|
+
R += n.substring(q, pe.start);
|
|
5132
5138
|
var Ne = _.apply(p, [pe]);
|
|
5133
5139
|
if (se(Ne) && (Ne = await Ne), typeof Ne == "string")
|
|
5134
5140
|
R += Ne;
|
|
@@ -5138,9 +5144,9 @@ function js() {
|
|
|
5138
5144
|
stack: new Error().stack,
|
|
5139
5145
|
value: Ne
|
|
5140
5146
|
};
|
|
5141
|
-
|
|
5147
|
+
q = pe.start + pe.match.length, X++, pe = await ue(pe.next);
|
|
5142
5148
|
}
|
|
5143
|
-
R += n.substring(
|
|
5149
|
+
R += n.substring(q);
|
|
5144
5150
|
} else
|
|
5145
5151
|
R = n;
|
|
5146
5152
|
}
|
|
@@ -5282,8 +5288,8 @@ function js() {
|
|
|
5282
5288
|
typeof l < "u" && Object.keys(l).forEach(function(te) {
|
|
5283
5289
|
p[te] = l[te];
|
|
5284
5290
|
});
|
|
5285
|
-
for (var _ = [], R = p["zero-digit"].charCodeAt(0),
|
|
5286
|
-
_.push(String.fromCharCode(
|
|
5291
|
+
for (var _ = [], R = p["zero-digit"].charCodeAt(0), q = R; q < R + 10; q++)
|
|
5292
|
+
_.push(String.fromCharCode(q));
|
|
5287
5293
|
var X = _.concat([p["decimal-separator"], p["exponent-separator"], p["grouping-separator"], p.digit, p["pattern-separator"]]), Oe = o.split(p["pattern-separator"]);
|
|
5288
5294
|
if (Oe.length > 2)
|
|
5289
5295
|
throw {
|
|
@@ -5345,8 +5351,8 @@ function js() {
|
|
|
5345
5351
|
}, Se = function(te) {
|
|
5346
5352
|
var Me = function(Ve, br) {
|
|
5347
5353
|
for (var er = [], kt = Ve.indexOf(p["grouping-separator"]); kt !== -1; ) {
|
|
5348
|
-
var wr = (br ? Ve.substring(0, kt) : Ve.substring(kt)).split("").filter(function(
|
|
5349
|
-
return _.indexOf(
|
|
5354
|
+
var wr = (br ? Ve.substring(0, kt) : Ve.substring(kt)).split("").filter(function(zt) {
|
|
5355
|
+
return _.indexOf(zt) !== -1 || zt === p.digit;
|
|
5350
5356
|
}).length;
|
|
5351
5357
|
er.push(wr), kt = te.integerPart.indexOf(p["grouping-separator"], kt + 1);
|
|
5352
5358
|
}
|
|
@@ -5354,8 +5360,8 @@ function js() {
|
|
|
5354
5360
|
}, Ye = Me(te.integerPart), Ce = function(Ve) {
|
|
5355
5361
|
if (Ve.length === 0)
|
|
5356
5362
|
return 0;
|
|
5357
|
-
for (var br = function(wr,
|
|
5358
|
-
return
|
|
5363
|
+
for (var br = function(wr, zt) {
|
|
5364
|
+
return zt === 0 ? wr : br(zt, wr % zt);
|
|
5359
5365
|
}, er = Ve.reduce(br), kt = 1; kt <= Ve.length; kt++)
|
|
5360
5366
|
if (Ve.indexOf(kt * er) === -1)
|
|
5361
5367
|
return 0;
|
|
@@ -5384,50 +5390,50 @@ function js() {
|
|
|
5384
5390
|
suffix: te.suffix,
|
|
5385
5391
|
picture: te.subpicture
|
|
5386
5392
|
};
|
|
5387
|
-
},
|
|
5388
|
-
|
|
5389
|
-
var ke =
|
|
5393
|
+
}, ze = Oe.map(pe);
|
|
5394
|
+
ze.forEach(Ne);
|
|
5395
|
+
var ke = ze.map(Se), je = p["minus-sign"], ot = p["zero-digit"], We = p["decimal-separator"], Bt = p["grouping-separator"];
|
|
5390
5396
|
ke.length === 1 && (ke.push(JSON.parse(JSON.stringify(ke[0]))), ke[1].prefix = je + ke[1].prefix);
|
|
5391
|
-
var
|
|
5392
|
-
n >= 0 ?
|
|
5397
|
+
var Ue;
|
|
5398
|
+
n >= 0 ? Ue = ke[0] : Ue = ke[1];
|
|
5393
5399
|
var Xt;
|
|
5394
|
-
|
|
5400
|
+
Ue.picture.indexOf(p.percent) !== -1 ? Xt = n * 100 : Ue.picture.indexOf(p["per-mille"]) !== -1 ? Xt = n * 1e3 : Xt = n;
|
|
5395
5401
|
var Rt, Zt;
|
|
5396
|
-
if (
|
|
5402
|
+
if (Ue.minimumExponentSize === 0)
|
|
5397
5403
|
Rt = Xt;
|
|
5398
5404
|
else {
|
|
5399
|
-
var En = Math.pow(10,
|
|
5405
|
+
var En = Math.pow(10, Ue.scalingFactor), Tn = Math.pow(10, Ue.scalingFactor - 1);
|
|
5400
5406
|
for (Rt = Xt, Zt = 0; Rt < Tn; )
|
|
5401
5407
|
Rt *= 10, Zt -= 1;
|
|
5402
5408
|
for (; Rt > En; )
|
|
5403
5409
|
Rt /= 10, Zt += 1;
|
|
5404
5410
|
}
|
|
5405
|
-
var An = F(Rt,
|
|
5411
|
+
var An = F(Rt, Ue.maximumFactionalPartSize), Zr = function(te, Me) {
|
|
5406
5412
|
var Ye = Math.abs(te).toFixed(Me);
|
|
5407
5413
|
return ot !== "0" && (Ye = Ye.split("").map(function(Ce) {
|
|
5408
5414
|
return Ce >= "0" && Ce <= "9" ? _[Ce.charCodeAt(0) - 48] : Ce;
|
|
5409
5415
|
}).join("")), Ye;
|
|
5410
|
-
}, oe =
|
|
5411
|
-
for (
|
|
5416
|
+
}, oe = Zr(An, Ue.maximumFactionalPartSize), Ge = oe.indexOf(".");
|
|
5417
|
+
for (Ge === -1 ? oe = oe + We : oe = oe.replace(".", We); oe.charAt(0) === ot; )
|
|
5412
5418
|
oe = oe.substring(1);
|
|
5413
5419
|
for (; oe.charAt(oe.length - 1) === ot; )
|
|
5414
5420
|
oe = oe.substring(0, oe.length - 1);
|
|
5415
|
-
|
|
5416
|
-
var Qt =
|
|
5417
|
-
if (oe = (Qt > 0 ? new Array(Qt + 1).join(ot) : "") + oe, oe = oe + (
|
|
5418
|
-
for (var Sn = Math.floor((
|
|
5419
|
-
oe = [oe.slice(0,
|
|
5421
|
+
Ge = oe.indexOf(We);
|
|
5422
|
+
var Qt = Ue.minimumIntegerPartSize - Ge, zr = Ue.minimumFactionalPartSize - (oe.length - Ge - 1);
|
|
5423
|
+
if (oe = (Qt > 0 ? new Array(Qt + 1).join(ot) : "") + oe, oe = oe + (zr > 0 ? new Array(zr + 1).join(ot) : ""), Ge = oe.indexOf(We), Ue.regularGrouping > 0)
|
|
5424
|
+
for (var Sn = Math.floor((Ge - 1) / Ue.regularGrouping), gr = 1; gr <= Sn; gr++)
|
|
5425
|
+
oe = [oe.slice(0, Ge - gr * Ue.regularGrouping), Bt, oe.slice(Ge - gr * Ue.regularGrouping)].join("");
|
|
5420
5426
|
else
|
|
5421
|
-
|
|
5422
|
-
oe = [oe.slice(0,
|
|
5427
|
+
Ue.integerPartGroupingPositions.forEach(function(te) {
|
|
5428
|
+
oe = [oe.slice(0, Ge - te), Bt, oe.slice(Ge - te)].join(""), Ge++;
|
|
5423
5429
|
});
|
|
5424
|
-
if (
|
|
5425
|
-
oe = [oe.slice(0, te +
|
|
5426
|
-
}),
|
|
5427
|
-
var vr =
|
|
5428
|
-
Qt =
|
|
5430
|
+
if (Ge = oe.indexOf(We), Ue.fractionalPartGroupingPositions.forEach(function(te) {
|
|
5431
|
+
oe = [oe.slice(0, te + Ge + 1), Bt, oe.slice(te + Ge + 1)].join("");
|
|
5432
|
+
}), Ge = oe.indexOf(We), (Ue.picture.indexOf(We) === -1 || Ge === oe.length - 1) && (oe = oe.substring(0, oe.length - 1)), typeof Zt < "u") {
|
|
5433
|
+
var vr = Zr(Zt, 0);
|
|
5434
|
+
Qt = Ue.minimumExponentSize - vr.length, Qt > 0 && (vr = new Array(Qt + 1).join(ot) + vr), oe = oe + p["exponent-separator"] + (Zt < 0 ? je : "") + vr;
|
|
5429
5435
|
}
|
|
5430
|
-
return oe =
|
|
5436
|
+
return oe = Ue.prefix + oe + Ue.suffix, oe;
|
|
5431
5437
|
}
|
|
5432
5438
|
}
|
|
5433
5439
|
function w(n, o) {
|
|
@@ -5522,15 +5528,15 @@ function js() {
|
|
|
5522
5528
|
function we() {
|
|
5523
5529
|
return Math.random();
|
|
5524
5530
|
}
|
|
5525
|
-
function
|
|
5531
|
+
function K(n) {
|
|
5526
5532
|
if (!(typeof n > "u")) {
|
|
5527
5533
|
var o = !1;
|
|
5528
5534
|
if (Array.isArray(n)) {
|
|
5529
5535
|
if (n.length === 1)
|
|
5530
|
-
o =
|
|
5536
|
+
o = K(n[0]);
|
|
5531
5537
|
else if (n.length > 1) {
|
|
5532
5538
|
var l = n.filter(function(g) {
|
|
5533
|
-
return
|
|
5539
|
+
return K(g);
|
|
5534
5540
|
});
|
|
5535
5541
|
o = l.length > 0;
|
|
5536
5542
|
}
|
|
@@ -5540,13 +5546,13 @@ function js() {
|
|
|
5540
5546
|
}
|
|
5541
5547
|
function Q(n) {
|
|
5542
5548
|
if (!(typeof n > "u"))
|
|
5543
|
-
return !
|
|
5549
|
+
return !K(n);
|
|
5544
5550
|
}
|
|
5545
5551
|
function he(n, o, l, g) {
|
|
5546
5552
|
var p = [o], _ = me(n);
|
|
5547
5553
|
return _ >= 2 && p.push(l), _ >= 3 && p.push(g), p;
|
|
5548
5554
|
}
|
|
5549
|
-
async function
|
|
5555
|
+
async function G(n, o) {
|
|
5550
5556
|
if (!(typeof n > "u")) {
|
|
5551
5557
|
for (var l = S(), g = 0; g < n.length; g++) {
|
|
5552
5558
|
var p = he(o, n[g], g, n), _ = await o.apply(this, p);
|
|
@@ -5559,7 +5565,7 @@ function js() {
|
|
|
5559
5565
|
if (!(typeof n > "u")) {
|
|
5560
5566
|
for (var l = S(), g = 0; g < n.length; g++) {
|
|
5561
5567
|
var p = n[g], _ = he(o, p, g, n), R = await o.apply(this, _);
|
|
5562
|
-
|
|
5568
|
+
K(R) && l.push(p);
|
|
5563
5569
|
}
|
|
5564
5570
|
return l;
|
|
5565
5571
|
}
|
|
@@ -5569,8 +5575,8 @@ function js() {
|
|
|
5569
5575
|
for (var l = !1, g, p = 0; p < n.length; p++) {
|
|
5570
5576
|
var _ = n[p], R = !0;
|
|
5571
5577
|
if (typeof o < "u") {
|
|
5572
|
-
var
|
|
5573
|
-
R =
|
|
5578
|
+
var q = he(o, _, p, n), X = await o.apply(this, q);
|
|
5579
|
+
R = K(X);
|
|
5574
5580
|
}
|
|
5575
5581
|
if (R)
|
|
5576
5582
|
if (!l)
|
|
@@ -5590,7 +5596,7 @@ function js() {
|
|
|
5590
5596
|
return g;
|
|
5591
5597
|
}
|
|
5592
5598
|
}
|
|
5593
|
-
function
|
|
5599
|
+
function qe() {
|
|
5594
5600
|
for (var n = [], o = Array.prototype.slice.call(arguments), l = Math.min.apply(Math, o.map(function(_) {
|
|
5595
5601
|
return Array.isArray(_) ? _.length : 0;
|
|
5596
5602
|
})), g = 0; g < l; g++) {
|
|
@@ -5616,16 +5622,16 @@ function js() {
|
|
|
5616
5622
|
return g;
|
|
5617
5623
|
}
|
|
5618
5624
|
}
|
|
5619
|
-
function
|
|
5625
|
+
function He(n) {
|
|
5620
5626
|
var o = S();
|
|
5621
5627
|
if (Array.isArray(n)) {
|
|
5622
5628
|
var l = {};
|
|
5623
5629
|
n.forEach(function(g) {
|
|
5624
|
-
var p =
|
|
5630
|
+
var p = He(g);
|
|
5625
5631
|
p.forEach(function(_) {
|
|
5626
5632
|
l[_] = !0;
|
|
5627
5633
|
});
|
|
5628
|
-
}), o =
|
|
5634
|
+
}), o = He(l);
|
|
5629
5635
|
} else n !== null && typeof n == "object" && !E(n) && Object.keys(n).forEach((g) => o.push(g));
|
|
5630
5636
|
return o;
|
|
5631
5637
|
}
|
|
@@ -5718,20 +5724,20 @@ function js() {
|
|
|
5718
5724
|
code: "D3070",
|
|
5719
5725
|
index: 1
|
|
5720
5726
|
};
|
|
5721
|
-
l = async function(R,
|
|
5722
|
-
return R >
|
|
5727
|
+
l = async function(R, q) {
|
|
5728
|
+
return R > q;
|
|
5723
5729
|
};
|
|
5724
5730
|
} else
|
|
5725
5731
|
l = o;
|
|
5726
|
-
var g = async function(R,
|
|
5732
|
+
var g = async function(R, q) {
|
|
5727
5733
|
var X = async function(pe, Ne, Se) {
|
|
5728
5734
|
Ne.length === 0 ? Array.prototype.push.apply(pe, Se) : Se.length === 0 ? Array.prototype.push.apply(pe, Ne) : await l(Ne[0], Se[0]) ? (pe.push(Se[0]), await X(pe, Ne, Se.slice(1))) : (pe.push(Ne[0]), await X(pe, Ne.slice(1), Se));
|
|
5729
5735
|
}, Oe = [];
|
|
5730
|
-
return await X(Oe, R,
|
|
5736
|
+
return await X(Oe, R, q), Oe;
|
|
5731
5737
|
}, p = async function(R) {
|
|
5732
5738
|
if (!Array.isArray(R) || R.length <= 1)
|
|
5733
5739
|
return R;
|
|
5734
|
-
var
|
|
5740
|
+
var q = Math.floor(R.length / 2), X = R.slice(0, q), Oe = R.slice(q);
|
|
5735
5741
|
return X = await p(X), Oe = await p(Oe), await g(X, Oe);
|
|
5736
5742
|
}, _ = await p(n);
|
|
5737
5743
|
return _;
|
|
@@ -5767,7 +5773,7 @@ function js() {
|
|
|
5767
5773
|
var l = {};
|
|
5768
5774
|
for (var g in n) {
|
|
5769
5775
|
var p = n[g], _ = he(o, p, g, n), R = await o.apply(this, _);
|
|
5770
|
-
|
|
5776
|
+
K(R) && (l[g] = p);
|
|
5771
5777
|
}
|
|
5772
5778
|
return Object.keys(l).length === 0 && (l = void 0), l;
|
|
5773
5779
|
}
|
|
@@ -5777,7 +5783,7 @@ function js() {
|
|
|
5777
5783
|
max: B,
|
|
5778
5784
|
min: T,
|
|
5779
5785
|
average: L,
|
|
5780
|
-
string:
|
|
5786
|
+
string: W,
|
|
5781
5787
|
substring: de,
|
|
5782
5788
|
substringBefore: xe,
|
|
5783
5789
|
substringAfter: Te,
|
|
@@ -5788,7 +5794,7 @@ function js() {
|
|
|
5788
5794
|
pad: _e,
|
|
5789
5795
|
match: ae,
|
|
5790
5796
|
contains: tt,
|
|
5791
|
-
replace:
|
|
5797
|
+
replace: Fe,
|
|
5792
5798
|
split: Ee,
|
|
5793
5799
|
join: v,
|
|
5794
5800
|
formatNumber: A,
|
|
@@ -5801,15 +5807,15 @@ function js() {
|
|
|
5801
5807
|
sqrt: J,
|
|
5802
5808
|
power: ye,
|
|
5803
5809
|
random: we,
|
|
5804
|
-
boolean:
|
|
5810
|
+
boolean: K,
|
|
5805
5811
|
not: Q,
|
|
5806
|
-
map:
|
|
5807
|
-
zip:
|
|
5812
|
+
map: G,
|
|
5813
|
+
zip: qe,
|
|
5808
5814
|
filter: Ze,
|
|
5809
5815
|
single: it,
|
|
5810
5816
|
foldLeft: Le,
|
|
5811
5817
|
sift: y,
|
|
5812
|
-
keys:
|
|
5818
|
+
keys: He,
|
|
5813
5819
|
lookup: wt,
|
|
5814
5820
|
append: Tt,
|
|
5815
5821
|
exists: mr,
|
|
@@ -5833,15 +5839,15 @@ function js() {
|
|
|
5833
5839
|
})();
|
|
5834
5840
|
a.exports = f;
|
|
5835
5841
|
}).call(this);
|
|
5836
|
-
}).call(this, typeof
|
|
5842
|
+
}).call(this, typeof Yr < "u" ? Yr : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
5837
5843
|
}, { "./utils": 6 }], 3: [function(t, a, s) {
|
|
5838
5844
|
var i = t("./datetime"), c = t("./functions"), f = t("./utils"), b = t("./parser"), k = t("./signature"), M = (function() {
|
|
5839
|
-
var S = f.isNumeric, x = f.isArrayOfStrings, E = f.isArrayOfNumbers, I = f.createSequence, se = f.isSequence, me = f.isFunction, ge = f.isLambda,
|
|
5845
|
+
var S = f.isNumeric, x = f.isArrayOfStrings, E = f.isArrayOfNumbers, I = f.createSequence, se = f.isSequence, me = f.isFunction, ge = f.isLambda, H = f.isIterable, C = f.isPromise, ne = f.getFunctionArity, B = f.isDeepEqual, T = ct(null);
|
|
5840
5846
|
async function L(u, h, y) {
|
|
5841
5847
|
var n, o = y.lookup(Symbol.for("jsonata.__evaluate_entry"));
|
|
5842
5848
|
switch (o && await o(u, h, y), u.type) {
|
|
5843
5849
|
case "path":
|
|
5844
|
-
n = await
|
|
5850
|
+
n = await W(u, h, y);
|
|
5845
5851
|
break;
|
|
5846
5852
|
case "binary":
|
|
5847
5853
|
n = await Re(u, h, y);
|
|
@@ -5861,7 +5867,7 @@ function js() {
|
|
|
5861
5867
|
n = tt(u, h);
|
|
5862
5868
|
break;
|
|
5863
5869
|
case "descendant":
|
|
5864
|
-
n =
|
|
5870
|
+
n = Fe(u, h);
|
|
5865
5871
|
break;
|
|
5866
5872
|
case "parent":
|
|
5867
5873
|
n = y.lookup(u.slot.label);
|
|
@@ -5888,7 +5894,7 @@ function js() {
|
|
|
5888
5894
|
n = it(u, h, y);
|
|
5889
5895
|
break;
|
|
5890
5896
|
case "partial":
|
|
5891
|
-
n = await
|
|
5897
|
+
n = await qe(u, h, y);
|
|
5892
5898
|
break;
|
|
5893
5899
|
case "apply":
|
|
5894
5900
|
n = await Q(u, h, y);
|
|
@@ -5904,7 +5910,7 @@ function js() {
|
|
|
5904
5910
|
var g = y.lookup(Symbol.for("jsonata.__evaluate_exit"));
|
|
5905
5911
|
return g && await g(u, h, y, n), n && se(n) && !n.tupleStream && (u.keepArray && (n.keepSingleton = !0), n.length === 0 ? n = void 0 : n.length === 1 && (n = n.keepSingleton ? n : n[0])), n;
|
|
5906
5912
|
}
|
|
5907
|
-
async function
|
|
5913
|
+
async function W(u, h, y) {
|
|
5908
5914
|
var n;
|
|
5909
5915
|
Array.isArray(h) && u.steps[0].type !== "variable" ? n = h : n = I(h);
|
|
5910
5916
|
for (var o, l = !1, g = void 0, p = 0; p < u.steps.length; p++) {
|
|
@@ -5941,7 +5947,7 @@ function js() {
|
|
|
5941
5947
|
}
|
|
5942
5948
|
var _ = I();
|
|
5943
5949
|
return n && o.length === 1 && Array.isArray(o[0]) && !se(o[0]) ? _ = o[0] : o.forEach(function(R) {
|
|
5944
|
-
!Array.isArray(R) || R.cons ? _.push(R) : R.forEach((
|
|
5950
|
+
!Array.isArray(R) || R.cons ? _.push(R) : R.forEach((q) => _.push(q));
|
|
5945
5951
|
}), _;
|
|
5946
5952
|
}
|
|
5947
5953
|
async function Te(u, h, y) {
|
|
@@ -5981,11 +5987,11 @@ function js() {
|
|
|
5981
5987
|
y === void 0 && (y = h.map((Oe) => ({ "@": Oe })));
|
|
5982
5988
|
for (var R = 0; R < y.length; R++) {
|
|
5983
5989
|
_ = de(n, y[R]);
|
|
5984
|
-
var
|
|
5985
|
-
if (typeof
|
|
5986
|
-
Array.isArray(
|
|
5987
|
-
for (var X = 0; X <
|
|
5988
|
-
p = {}, Object.assign(p, y[R]),
|
|
5990
|
+
var q = await L(u, y[R]["@"], _);
|
|
5991
|
+
if (typeof q < "u") {
|
|
5992
|
+
Array.isArray(q) || (q = [q]);
|
|
5993
|
+
for (var X = 0; X < q.length; X++)
|
|
5994
|
+
p = {}, Object.assign(p, y[R]), q.tupleStream ? Object.assign(p, q[X]) : (u.focus ? (p[u.focus] = q[X], p["@"] = y[R]["@"]) : p["@"] = q[X], u.index && (p[u.index] = X), u.ancestor && (p[u.ancestor.label] = y[R]["@"])), o.push(p);
|
|
5989
5995
|
}
|
|
5990
5996
|
}
|
|
5991
5997
|
return u.stages && (o = await Te(u.stages, o, n)), o;
|
|
@@ -6002,8 +6008,8 @@ function js() {
|
|
|
6002
6008
|
var l = h[o], g = l, p = y;
|
|
6003
6009
|
h.tupleStream && (g = l["@"], p = de(y, l));
|
|
6004
6010
|
var _ = await L(u, g, p);
|
|
6005
|
-
S(_) && (_ = [_]), E(_) ? _.forEach(function(
|
|
6006
|
-
var X = Math.floor(
|
|
6011
|
+
S(_) && (_ = [_]), E(_) ? _.forEach(function(q) {
|
|
6012
|
+
var X = Math.floor(q);
|
|
6007
6013
|
X < 0 && (X = h.length + X), X === o && n.push(l);
|
|
6008
6014
|
}) : c.boolean(_) && n.push(l);
|
|
6009
6015
|
}
|
|
@@ -6106,7 +6112,7 @@ function js() {
|
|
|
6106
6112
|
ae(y, h);
|
|
6107
6113
|
}) : h.push(u), h;
|
|
6108
6114
|
}
|
|
6109
|
-
function
|
|
6115
|
+
function Fe(u, h) {
|
|
6110
6116
|
var y, n = I();
|
|
6111
6117
|
return typeof h < "u" && (st(h, n), n.length === 1 ? y = n[0] : y = n), y;
|
|
6112
6118
|
}
|
|
@@ -6236,7 +6242,7 @@ function js() {
|
|
|
6236
6242
|
Array.isArray(h) || (h = I(h)), h.length === 0 && h.push(void 0);
|
|
6237
6243
|
for (var g = 0; g < h.length; g++)
|
|
6238
6244
|
for (var p = h[g], _ = l ? de(y, p) : y, R = 0; R < u.lhs.length; R++) {
|
|
6239
|
-
var
|
|
6245
|
+
var q = u.lhs[R], X = await L(q[0], l ? p["@"] : p, _);
|
|
6240
6246
|
if (typeof X != "string" && X !== void 0)
|
|
6241
6247
|
throw {
|
|
6242
6248
|
code: "T1003",
|
|
@@ -6259,14 +6265,14 @@ function js() {
|
|
|
6259
6265
|
o[X] = Oe;
|
|
6260
6266
|
}
|
|
6261
6267
|
}
|
|
6262
|
-
let pe = await Promise.all(Object.keys(o).map(async (Se,
|
|
6268
|
+
let pe = await Promise.all(Object.keys(o).map(async (Se, ze) => {
|
|
6263
6269
|
let ke = o[Se];
|
|
6264
6270
|
var je = ke.data, ot = y;
|
|
6265
6271
|
if (l) {
|
|
6266
|
-
var
|
|
6267
|
-
je =
|
|
6272
|
+
var We = w(ke.data);
|
|
6273
|
+
je = We["@"], delete We["@"], ot = de(y, We);
|
|
6268
6274
|
}
|
|
6269
|
-
return y.isParallelCall =
|
|
6275
|
+
return y.isParallelCall = ze > 0, [Se, await L(u.lhs[ke.exprIndex][1], je, ot)];
|
|
6270
6276
|
}));
|
|
6271
6277
|
for (let Se of pe) {
|
|
6272
6278
|
var [X, Ne] = await Se;
|
|
@@ -6363,18 +6369,18 @@ function js() {
|
|
|
6363
6369
|
}
|
|
6364
6370
|
async function ye(u, h, y) {
|
|
6365
6371
|
var n, o = h, l = !!h.tupleStream, g = async function(_, R) {
|
|
6366
|
-
for (var
|
|
6372
|
+
for (var q = 0, X = 0; q === 0 && X < u.terms.length; X++) {
|
|
6367
6373
|
var Oe = u.terms[X], pe = _, Ne = y;
|
|
6368
6374
|
l && (pe = _["@"], Ne = de(y, _));
|
|
6369
6375
|
var Se = await L(Oe.expression, pe, Ne);
|
|
6370
6376
|
pe = R, Ne = y, l && (pe = R["@"], Ne = de(y, R));
|
|
6371
|
-
var
|
|
6377
|
+
var ze = await L(Oe.expression, pe, Ne), ke = typeof Se, je = typeof ze;
|
|
6372
6378
|
if (ke === "undefined") {
|
|
6373
|
-
|
|
6379
|
+
q = je === "undefined" ? 0 : 1;
|
|
6374
6380
|
continue;
|
|
6375
6381
|
}
|
|
6376
6382
|
if (je === "undefined") {
|
|
6377
|
-
|
|
6383
|
+
q = -1;
|
|
6378
6384
|
continue;
|
|
6379
6385
|
}
|
|
6380
6386
|
if (!(ke === "string" || ke === "number") || !(je === "string" || je === "number"))
|
|
@@ -6382,7 +6388,7 @@ function js() {
|
|
|
6382
6388
|
code: "T2008",
|
|
6383
6389
|
stack: new Error().stack,
|
|
6384
6390
|
position: u.position,
|
|
6385
|
-
value: ke === "string" || ke === "number" ?
|
|
6391
|
+
value: ke === "string" || ke === "number" ? ze : Se
|
|
6386
6392
|
};
|
|
6387
6393
|
if (ke !== je)
|
|
6388
6394
|
throw {
|
|
@@ -6390,11 +6396,11 @@ function js() {
|
|
|
6390
6396
|
stack: new Error().stack,
|
|
6391
6397
|
position: u.position,
|
|
6392
6398
|
value: Se,
|
|
6393
|
-
value2:
|
|
6399
|
+
value2: ze
|
|
6394
6400
|
};
|
|
6395
|
-
Se !==
|
|
6401
|
+
Se !== ze && (Se < ze ? q = -1 : q = 1, Oe.descending === !0 && (q = -q));
|
|
6396
6402
|
}
|
|
6397
|
-
return
|
|
6403
|
+
return q === 1;
|
|
6398
6404
|
}, p = {
|
|
6399
6405
|
environment: y,
|
|
6400
6406
|
input: h
|
|
@@ -6411,7 +6417,7 @@ function js() {
|
|
|
6411
6417
|
stack: new Error().stack,
|
|
6412
6418
|
position: u.position
|
|
6413
6419
|
};
|
|
6414
|
-
var g = await
|
|
6420
|
+
var g = await G(l, [o], null, y), p = await L(u.pattern, g, y);
|
|
6415
6421
|
if (typeof p < "u") {
|
|
6416
6422
|
Array.isArray(p) || (p = [p]);
|
|
6417
6423
|
for (var _ = 0; _ < p.length; _++) {
|
|
@@ -6422,17 +6428,17 @@ function js() {
|
|
|
6422
6428
|
stack: new Error().stack,
|
|
6423
6429
|
position: u.position
|
|
6424
6430
|
};
|
|
6425
|
-
var
|
|
6431
|
+
var q = await L(u.update, R, y), X = typeof q;
|
|
6426
6432
|
if (X !== "undefined") {
|
|
6427
|
-
if (X !== "object" ||
|
|
6433
|
+
if (X !== "object" || q === null || Array.isArray(q))
|
|
6428
6434
|
throw {
|
|
6429
6435
|
code: "T2011",
|
|
6430
6436
|
stack: new Error().stack,
|
|
6431
6437
|
position: u.update.position,
|
|
6432
|
-
value:
|
|
6438
|
+
value: q
|
|
6433
6439
|
};
|
|
6434
|
-
for (var Oe in
|
|
6435
|
-
R[Oe] =
|
|
6440
|
+
for (var Oe in q)
|
|
6441
|
+
R[Oe] = q[Oe];
|
|
6436
6442
|
}
|
|
6437
6443
|
if (typeof u.delete < "u") {
|
|
6438
6444
|
var pe = await L(u.delete, R, y);
|
|
@@ -6456,7 +6462,7 @@ function js() {
|
|
|
6456
6462
|
};
|
|
6457
6463
|
return Z(n, "<(oa):o>");
|
|
6458
6464
|
}
|
|
6459
|
-
var
|
|
6465
|
+
var K = b("function($f, $g) { function($x){ $g($f($x)) } }");
|
|
6460
6466
|
async function Q(u, h, y) {
|
|
6461
6467
|
var n, o = await L(u.lhs, h, y);
|
|
6462
6468
|
if (u.rhs.type === "function")
|
|
@@ -6471,10 +6477,10 @@ function js() {
|
|
|
6471
6477
|
value: l
|
|
6472
6478
|
};
|
|
6473
6479
|
if (me(o)) {
|
|
6474
|
-
var g = await L(
|
|
6475
|
-
n = await
|
|
6480
|
+
var g = await L(K, null, y);
|
|
6481
|
+
n = await G(g, [o, l], null, y);
|
|
6476
6482
|
} else
|
|
6477
|
-
n = await
|
|
6483
|
+
n = await G(l, [o], null, y);
|
|
6478
6484
|
}
|
|
6479
6485
|
return n;
|
|
6480
6486
|
}
|
|
@@ -6492,22 +6498,22 @@ function js() {
|
|
|
6492
6498
|
for (var p = 0; p < u.arguments.length; p++) {
|
|
6493
6499
|
const R = await L(u.arguments[p], h, y);
|
|
6494
6500
|
if (me(R)) {
|
|
6495
|
-
const
|
|
6496
|
-
return await
|
|
6501
|
+
const q = async function(...X) {
|
|
6502
|
+
return await G(R, X, null, y);
|
|
6497
6503
|
};
|
|
6498
|
-
|
|
6504
|
+
q.arity = ne(R), g.push(q);
|
|
6499
6505
|
} else
|
|
6500
6506
|
g.push(R);
|
|
6501
6507
|
}
|
|
6502
6508
|
var _ = u.procedure.type === "path" ? u.procedure.steps[0].value : u.procedure.value;
|
|
6503
6509
|
try {
|
|
6504
|
-
typeof l == "object" && (l.token = _, l.position = u.position), o = await
|
|
6510
|
+
typeof l == "object" && (l.token = _, l.position = u.position), o = await G(l, g, h, y);
|
|
6505
6511
|
} catch (R) {
|
|
6506
6512
|
throw R.position || (R.position = u.position), R.token || (R.token = _), R;
|
|
6507
6513
|
}
|
|
6508
6514
|
return o;
|
|
6509
6515
|
}
|
|
6510
|
-
async function
|
|
6516
|
+
async function G(u, h, y, n) {
|
|
6511
6517
|
var o;
|
|
6512
6518
|
for (o = await Ze(u, h, y, n); ge(o) && o.thunk === !0; ) {
|
|
6513
6519
|
var l = await L(o.body.procedure, o.input, o.environment);
|
|
@@ -6523,13 +6529,13 @@ function js() {
|
|
|
6523
6529
|
try {
|
|
6524
6530
|
var l = h;
|
|
6525
6531
|
if (u && (l = Le(u.signature, h, y)), ge(u))
|
|
6526
|
-
o = await
|
|
6532
|
+
o = await He(u, l);
|
|
6527
6533
|
else if (u && u._jsonata_function === !0) {
|
|
6528
6534
|
var g = {
|
|
6529
6535
|
environment: n,
|
|
6530
6536
|
input: y
|
|
6531
6537
|
};
|
|
6532
|
-
o = u.implementation.apply(g, l),
|
|
6538
|
+
o = u.implementation.apply(g, l), H(o) && (o = o.next().value), C(o) && (o = await o);
|
|
6533
6539
|
} else if (typeof u == "function")
|
|
6534
6540
|
o = u.apply(y, l), C(o) && (o = await o);
|
|
6535
6541
|
else
|
|
@@ -6552,10 +6558,10 @@ function js() {
|
|
|
6552
6558
|
body: u.body
|
|
6553
6559
|
};
|
|
6554
6560
|
return u.thunk === !0 && (n.thunk = !0), n.apply = async function(o, l) {
|
|
6555
|
-
return await
|
|
6561
|
+
return await G(n, l, h, o ? o.environment : y);
|
|
6556
6562
|
}, n;
|
|
6557
6563
|
}
|
|
6558
|
-
async function
|
|
6564
|
+
async function qe(u, h, y) {
|
|
6559
6565
|
for (var n, o = [], l = 0; l < u.arguments.length; l++) {
|
|
6560
6566
|
var g = u.arguments[l];
|
|
6561
6567
|
g.type === "operator" && g.value === "?" ? o.push(g) : o.push(await L(g, h, y));
|
|
@@ -6589,7 +6595,7 @@ function js() {
|
|
|
6589
6595
|
var n = u.validate(h, y);
|
|
6590
6596
|
return n;
|
|
6591
6597
|
}
|
|
6592
|
-
async function
|
|
6598
|
+
async function He(u, h) {
|
|
6593
6599
|
var y, n = ct(u.environment);
|
|
6594
6600
|
return u.arguments.forEach(function(o, l) {
|
|
6595
6601
|
n.bind(o.value, h[l]);
|
|
@@ -6828,16 +6834,16 @@ function js() {
|
|
|
6828
6834
|
throw mt(R), R;
|
|
6829
6835
|
}
|
|
6830
6836
|
if (typeof p < "u") {
|
|
6831
|
-
var
|
|
6832
|
-
|
|
6837
|
+
var q;
|
|
6838
|
+
q = ct(o);
|
|
6833
6839
|
for (var X in p)
|
|
6834
|
-
|
|
6840
|
+
q.bind(X, p[X]);
|
|
6835
6841
|
} else
|
|
6836
|
-
|
|
6837
|
-
|
|
6842
|
+
q = o;
|
|
6843
|
+
q.bind("$", g), l = /* @__PURE__ */ new Date(), q.timestamp = l, Array.isArray(g) && !se(g) && (g = I(g), g.outerWrapper = !0);
|
|
6838
6844
|
var Oe;
|
|
6839
6845
|
try {
|
|
6840
|
-
return Oe = await L(y, g,
|
|
6846
|
+
return Oe = await L(y, g, q), typeof _ == "function" && _(null, Oe), Oe;
|
|
6841
6847
|
} catch (pe) {
|
|
6842
6848
|
throw mt(pe), pe;
|
|
6843
6849
|
}
|
|
@@ -6916,15 +6922,15 @@ function js() {
|
|
|
6916
6922
|
r: "\r",
|
|
6917
6923
|
t: " "
|
|
6918
6924
|
}, k = function(S) {
|
|
6919
|
-
var x = 0, E = S.length, I = function(ge,
|
|
6920
|
-
var C = { type: ge, value:
|
|
6925
|
+
var x = 0, E = S.length, I = function(ge, H) {
|
|
6926
|
+
var C = { type: ge, value: H, position: x };
|
|
6921
6927
|
return C;
|
|
6922
6928
|
}, se = function() {
|
|
6923
|
-
for (var ge = x,
|
|
6924
|
-
if (S.charAt(L) === "/" &&
|
|
6925
|
-
for (var
|
|
6926
|
-
|
|
6927
|
-
if (
|
|
6929
|
+
for (var ge = x, H = 0, C, ne, B = function(L) {
|
|
6930
|
+
if (S.charAt(L) === "/" && H === 0) {
|
|
6931
|
+
for (var W = 0; S.charAt(L - (W + 1)) === "\\"; )
|
|
6932
|
+
W++;
|
|
6933
|
+
if (W % 2 === 0)
|
|
6928
6934
|
return !0;
|
|
6929
6935
|
}
|
|
6930
6936
|
return !1;
|
|
@@ -6941,7 +6947,7 @@ function js() {
|
|
|
6941
6947
|
x++, T = S.charAt(x);
|
|
6942
6948
|
return ne = S.substring(ge, x) + "g", new RegExp(C, ne);
|
|
6943
6949
|
}
|
|
6944
|
-
(T === "(" || T === "[" || T === "{") && S.charAt(x - 1) !== "\\" &&
|
|
6950
|
+
(T === "(" || T === "[" || T === "{") && S.charAt(x - 1) !== "\\" && H++, (T === ")" || T === "]" || T === "}") && S.charAt(x - 1) !== "\\" && H--, x++;
|
|
6945
6951
|
}
|
|
6946
6952
|
throw {
|
|
6947
6953
|
code: "S0302",
|
|
@@ -6950,50 +6956,50 @@ function js() {
|
|
|
6950
6956
|
};
|
|
6951
6957
|
}, me = function(ge) {
|
|
6952
6958
|
if (x >= E) return null;
|
|
6953
|
-
for (var
|
|
6954
|
-
\r\v`.indexOf(
|
|
6955
|
-
x++,
|
|
6956
|
-
if (
|
|
6959
|
+
for (var H = S.charAt(x); x < E && `
|
|
6960
|
+
\r\v`.indexOf(H) > -1; )
|
|
6961
|
+
x++, H = S.charAt(x);
|
|
6962
|
+
if (H === "/" && S.charAt(x + 1) === "*") {
|
|
6957
6963
|
var C = x;
|
|
6958
|
-
for (x += 2,
|
|
6959
|
-
if (
|
|
6964
|
+
for (x += 2, H = S.charAt(x); !(H === "*" && S.charAt(x + 1) === "/"); )
|
|
6965
|
+
if (H = S.charAt(++x), x >= E)
|
|
6960
6966
|
throw {
|
|
6961
6967
|
code: "S0106",
|
|
6962
6968
|
stack: new Error().stack,
|
|
6963
6969
|
position: C
|
|
6964
6970
|
};
|
|
6965
|
-
return x += 2,
|
|
6971
|
+
return x += 2, H = S.charAt(x), me(ge);
|
|
6966
6972
|
}
|
|
6967
|
-
if (ge !== !0 &&
|
|
6973
|
+
if (ge !== !0 && H === "/")
|
|
6968
6974
|
return x++, I("regex", se());
|
|
6969
|
-
if (
|
|
6975
|
+
if (H === "." && S.charAt(x + 1) === ".")
|
|
6970
6976
|
return x += 2, I("operator", "..");
|
|
6971
|
-
if (
|
|
6977
|
+
if (H === ":" && S.charAt(x + 1) === "=")
|
|
6972
6978
|
return x += 2, I("operator", ":=");
|
|
6973
|
-
if (
|
|
6979
|
+
if (H === "!" && S.charAt(x + 1) === "=")
|
|
6974
6980
|
return x += 2, I("operator", "!=");
|
|
6975
|
-
if (
|
|
6981
|
+
if (H === ">" && S.charAt(x + 1) === "=")
|
|
6976
6982
|
return x += 2, I("operator", ">=");
|
|
6977
|
-
if (
|
|
6983
|
+
if (H === "<" && S.charAt(x + 1) === "=")
|
|
6978
6984
|
return x += 2, I("operator", "<=");
|
|
6979
|
-
if (
|
|
6985
|
+
if (H === "*" && S.charAt(x + 1) === "*")
|
|
6980
6986
|
return x += 2, I("operator", "**");
|
|
6981
|
-
if (
|
|
6987
|
+
if (H === "~" && S.charAt(x + 1) === ">")
|
|
6982
6988
|
return x += 2, I("operator", "~>");
|
|
6983
|
-
if (
|
|
6989
|
+
if (H === "?" && S.charAt(x + 1) === ":")
|
|
6984
6990
|
return x += 2, I("operator", "?:");
|
|
6985
|
-
if (
|
|
6991
|
+
if (H === "?" && S.charAt(x + 1) === "?")
|
|
6986
6992
|
return x += 2, I("operator", "??");
|
|
6987
|
-
if (Object.prototype.hasOwnProperty.call(f,
|
|
6988
|
-
return x++, I("operator",
|
|
6989
|
-
if (
|
|
6990
|
-
var ne =
|
|
6993
|
+
if (Object.prototype.hasOwnProperty.call(f, H))
|
|
6994
|
+
return x++, I("operator", H);
|
|
6995
|
+
if (H === '"' || H === "'") {
|
|
6996
|
+
var ne = H;
|
|
6991
6997
|
x++;
|
|
6992
6998
|
for (var B = ""; x < E; ) {
|
|
6993
|
-
if (
|
|
6994
|
-
if (x++,
|
|
6995
|
-
B += b[
|
|
6996
|
-
else if (
|
|
6999
|
+
if (H = S.charAt(x), H === "\\")
|
|
7000
|
+
if (x++, H = S.charAt(x), Object.prototype.hasOwnProperty.call(b, H))
|
|
7001
|
+
B += b[H];
|
|
7002
|
+
else if (H === "u") {
|
|
6997
7003
|
var T = S.substr(x + 1, 4);
|
|
6998
7004
|
if (/^[0-9a-fA-F]+$/.test(T)) {
|
|
6999
7005
|
var L = parseInt(T, 16);
|
|
@@ -7009,12 +7015,12 @@ function js() {
|
|
|
7009
7015
|
code: "S0103",
|
|
7010
7016
|
stack: new Error().stack,
|
|
7011
7017
|
position: x,
|
|
7012
|
-
token:
|
|
7018
|
+
token: H
|
|
7013
7019
|
};
|
|
7014
7020
|
else {
|
|
7015
|
-
if (
|
|
7021
|
+
if (H === ne)
|
|
7016
7022
|
return x++, I("string", B);
|
|
7017
|
-
B +=
|
|
7023
|
+
B += H;
|
|
7018
7024
|
}
|
|
7019
7025
|
x++;
|
|
7020
7026
|
}
|
|
@@ -7024,7 +7030,7 @@ function js() {
|
|
|
7024
7030
|
position: x
|
|
7025
7031
|
};
|
|
7026
7032
|
}
|
|
7027
|
-
var
|
|
7033
|
+
var W = /^-?(0|([1-9][0-9]*))(\.[0-9]+)?([Ee][-+]?[0-9]+)?/, de = W.exec(S.substring(x));
|
|
7028
7034
|
if (de !== null) {
|
|
7029
7035
|
var xe = parseFloat(de[0]);
|
|
7030
7036
|
if (!isNaN(xe) && isFinite(xe))
|
|
@@ -7037,7 +7043,7 @@ function js() {
|
|
|
7037
7043
|
};
|
|
7038
7044
|
}
|
|
7039
7045
|
var Te;
|
|
7040
|
-
if (
|
|
7046
|
+
if (H === "`") {
|
|
7041
7047
|
x++;
|
|
7042
7048
|
var Ae = S.indexOf("`", x);
|
|
7043
7049
|
if (Ae !== -1)
|
|
@@ -7078,7 +7084,7 @@ function js() {
|
|
|
7078
7084
|
for (var m = I(); m !== null; )
|
|
7079
7085
|
d.push(m), m = I();
|
|
7080
7086
|
return d;
|
|
7081
|
-
},
|
|
7087
|
+
}, H = {
|
|
7082
7088
|
nud: function() {
|
|
7083
7089
|
var d = {
|
|
7084
7090
|
code: "S0211",
|
|
@@ -7091,7 +7097,7 @@ function js() {
|
|
|
7091
7097
|
}
|
|
7092
7098
|
}, C = function(d, m) {
|
|
7093
7099
|
var V = se[d];
|
|
7094
|
-
return m = m || 0, V ? m >= V.lbp && (V.lbp = m) : (V = Object.create(
|
|
7100
|
+
return m = m || 0, V ? m >= V.lbp && (V.lbp = m) : (V = Object.create(H), V.id = V.value = d, V.lbp = m, se[d] = V), V;
|
|
7095
7101
|
}, ne = function(d) {
|
|
7096
7102
|
if (x) {
|
|
7097
7103
|
d.remaining = ge(), me.push(d);
|
|
@@ -7157,7 +7163,7 @@ function js() {
|
|
|
7157
7163
|
m.nud = function() {
|
|
7158
7164
|
return this;
|
|
7159
7165
|
};
|
|
7160
|
-
},
|
|
7166
|
+
}, W = function(d, m, V) {
|
|
7161
7167
|
var le = m || f[d], Pe = C(d, le);
|
|
7162
7168
|
return Pe.led = V || function(Ee) {
|
|
7163
7169
|
return this.lhs = Ee, this.rhs = T(le), this.type = "binary", this;
|
|
@@ -7171,7 +7177,7 @@ function js() {
|
|
|
7171
7177
|
return this.expression = T(70), this.type = "unary", this;
|
|
7172
7178
|
}, V;
|
|
7173
7179
|
};
|
|
7174
|
-
L("(end)"), L("(name)"), L("(literal)"), L("(regex)"), C(":"), C(";"), C(","), C(")"), C("]"), C("}"), C(".."),
|
|
7180
|
+
L("(end)"), L("(name)"), L("(literal)"), L("(regex)"), C(":"), C(";"), C(","), C(")"), C("]"), C("}"), C(".."), W("."), W("+"), W("-"), W("*"), W("/"), W("%"), W("="), W("<"), W(">"), W("!="), W("<="), W(">="), W("&"), W("and"), W("or"), W("in"), L("and"), L("or"), L("in"), xe("-"), W("~>"), W("??", f["??"], function(d) {
|
|
7175
7181
|
return this.type = "condition", this.condition = {
|
|
7176
7182
|
type: "function",
|
|
7177
7183
|
value: "(",
|
|
@@ -7186,7 +7192,7 @@ function js() {
|
|
|
7186
7192
|
return this.type = "descendant", this;
|
|
7187
7193
|
}), xe("%", function() {
|
|
7188
7194
|
return this.type = "parent", this;
|
|
7189
|
-
}),
|
|
7195
|
+
}), W("(", f["("], function(d) {
|
|
7190
7196
|
if (this.procedure = d, this.type = "function", this.arguments = [], E.id !== ")")
|
|
7191
7197
|
for (; E.type === "operator" && E.id === "?" ? (this.type = "partial", this.arguments.push(E), B("?")) : this.arguments.push(T(0)), E.id === ","; )
|
|
7192
7198
|
B(",");
|
|
@@ -7233,14 +7239,14 @@ function js() {
|
|
|
7233
7239
|
B(",");
|
|
7234
7240
|
}
|
|
7235
7241
|
return B("]", !0), this.expressions = d, this.type = "unary", this;
|
|
7236
|
-
}),
|
|
7242
|
+
}), W("[", f["["], function(d) {
|
|
7237
7243
|
if (E.id === "]") {
|
|
7238
7244
|
for (var m = d; m && m.type === "binary" && m.value === "["; )
|
|
7239
7245
|
m = m.lhs;
|
|
7240
7246
|
return m.keepArray = !0, B("]"), d;
|
|
7241
7247
|
} else
|
|
7242
7248
|
return this.lhs = d, this.rhs = T(f["]"]), this.type = "binary", B("]", !0), this;
|
|
7243
|
-
}),
|
|
7249
|
+
}), W("^", f["^"], function(d) {
|
|
7244
7250
|
B("(");
|
|
7245
7251
|
for (var m = []; ; ) {
|
|
7246
7252
|
var V = {
|
|
@@ -7265,30 +7271,30 @@ function js() {
|
|
|
7265
7271
|
}
|
|
7266
7272
|
return B("}", !0), typeof d > "u" ? (this.lhs = m, this.type = "unary") : (this.lhs = d, this.rhs = m, this.type = "binary"), this;
|
|
7267
7273
|
};
|
|
7268
|
-
xe("{", Te),
|
|
7274
|
+
xe("{", Te), W("{", f["{"], Te), de(":=", f[":="], function(d) {
|
|
7269
7275
|
return d.type !== "variable" ? ne({
|
|
7270
7276
|
code: "S0212",
|
|
7271
7277
|
stack: new Error().stack,
|
|
7272
7278
|
position: d.position,
|
|
7273
7279
|
token: d.value
|
|
7274
7280
|
}) : (this.lhs = d, this.rhs = T(f[":="] - 1), this.type = "binary", this);
|
|
7275
|
-
}),
|
|
7281
|
+
}), W("@", f["@"], function(d) {
|
|
7276
7282
|
return this.lhs = d, this.rhs = T(f["@"]), this.rhs.type !== "variable" ? ne({
|
|
7277
7283
|
code: "S0214",
|
|
7278
7284
|
stack: new Error().stack,
|
|
7279
7285
|
position: this.rhs.position,
|
|
7280
7286
|
token: "@"
|
|
7281
7287
|
}) : (this.type = "binary", this);
|
|
7282
|
-
}),
|
|
7288
|
+
}), W("#", f["#"], function(d) {
|
|
7283
7289
|
return this.lhs = d, this.rhs = T(f["#"]), this.rhs.type !== "variable" ? ne({
|
|
7284
7290
|
code: "S0214",
|
|
7285
7291
|
stack: new Error().stack,
|
|
7286
7292
|
position: this.rhs.position,
|
|
7287
7293
|
token: "#"
|
|
7288
7294
|
}) : (this.type = "binary", this);
|
|
7289
|
-
}),
|
|
7295
|
+
}), W("?", f["?"], function(d) {
|
|
7290
7296
|
return this.type = "condition", this.condition = d, this.then = T(0), E.id === ":" && (B(":"), this.else = T(0)), this;
|
|
7291
|
-
}),
|
|
7297
|
+
}), W("?:", f["?:"], function(d) {
|
|
7292
7298
|
return this.type = "condition", this.condition = d, this.then = d, this.else = T(0), this;
|
|
7293
7299
|
}), xe("|", function() {
|
|
7294
7300
|
return this.type = "transform", this.pattern = T(0), B("|"), this.update = T(0), E.id === "," && (B(","), this.delete = T(0)), B("|"), this;
|
|
@@ -7534,7 +7540,7 @@ function js() {
|
|
|
7534
7540
|
return d.keepArray && (m.keepArray = !0), m;
|
|
7535
7541
|
};
|
|
7536
7542
|
I = k(S), B();
|
|
7537
|
-
var
|
|
7543
|
+
var Fe = T(0);
|
|
7538
7544
|
if (E.id !== "(end)") {
|
|
7539
7545
|
var st = {
|
|
7540
7546
|
code: "S0201",
|
|
@@ -7543,13 +7549,13 @@ function js() {
|
|
|
7543
7549
|
};
|
|
7544
7550
|
ne(st);
|
|
7545
7551
|
}
|
|
7546
|
-
if (
|
|
7552
|
+
if (Fe = ae(Fe), Fe.type === "parent" || typeof Fe.seekingParent < "u")
|
|
7547
7553
|
throw {
|
|
7548
7554
|
code: "S0217",
|
|
7549
|
-
token:
|
|
7550
|
-
position:
|
|
7555
|
+
token: Fe.type,
|
|
7556
|
+
position: Fe.position
|
|
7551
7557
|
};
|
|
7552
|
-
return me.length > 0 && (
|
|
7558
|
+
return me.length > 0 && (Fe.errors = me), Fe;
|
|
7553
7559
|
};
|
|
7554
7560
|
return M;
|
|
7555
7561
|
})();
|
|
@@ -7572,9 +7578,9 @@ function js() {
|
|
|
7572
7578
|
break;
|
|
7573
7579
|
var se = function() {
|
|
7574
7580
|
S.push(x), E = x, x = {};
|
|
7575
|
-
}, me = function(
|
|
7576
|
-
for (var Ae = 1, ve = de; ve <
|
|
7577
|
-
if (ve++, I =
|
|
7581
|
+
}, me = function(W, de, xe, Te) {
|
|
7582
|
+
for (var Ae = 1, ve = de; ve < W.length; )
|
|
7583
|
+
if (ve++, I = W.charAt(ve), I === Te) {
|
|
7578
7584
|
if (Ae--, Ae === 0)
|
|
7579
7585
|
break;
|
|
7580
7586
|
} else I === xe && Ae++;
|
|
@@ -7613,17 +7619,17 @@ function js() {
|
|
|
7613
7619
|
E.regex += I;
|
|
7614
7620
|
break;
|
|
7615
7621
|
case "(":
|
|
7616
|
-
var ge = me(k, M, "(", ")"),
|
|
7617
|
-
if (
|
|
7618
|
-
x.regex = "[" +
|
|
7622
|
+
var ge = me(k, M, "(", ")"), H = k.substring(M + 1, ge);
|
|
7623
|
+
if (H.indexOf("<") === -1)
|
|
7624
|
+
x.regex = "[" + H + "m]";
|
|
7619
7625
|
else
|
|
7620
7626
|
throw {
|
|
7621
7627
|
code: "S0402",
|
|
7622
7628
|
stack: new Error().stack,
|
|
7623
|
-
value:
|
|
7629
|
+
value: H,
|
|
7624
7630
|
offset: M
|
|
7625
7631
|
};
|
|
7626
|
-
x.type = "(" +
|
|
7632
|
+
x.type = "(" + H + ")", M = ge, se();
|
|
7627
7633
|
break;
|
|
7628
7634
|
case "<":
|
|
7629
7635
|
if (E.type === "a" || E.type === "f") {
|
|
@@ -7640,14 +7646,14 @@ function js() {
|
|
|
7640
7646
|
}
|
|
7641
7647
|
M++;
|
|
7642
7648
|
}
|
|
7643
|
-
var ne = "^" + S.map(function(
|
|
7644
|
-
return "(" +
|
|
7645
|
-
}).join("") + "$", B = new RegExp(ne), T = function(
|
|
7649
|
+
var ne = "^" + S.map(function(W) {
|
|
7650
|
+
return "(" + W.regex + ")";
|
|
7651
|
+
}).join("") + "$", B = new RegExp(ne), T = function(W) {
|
|
7646
7652
|
var de;
|
|
7647
|
-
if (i.isFunction(
|
|
7653
|
+
if (i.isFunction(W))
|
|
7648
7654
|
de = "f";
|
|
7649
7655
|
else {
|
|
7650
|
-
var xe = typeof
|
|
7656
|
+
var xe = typeof W;
|
|
7651
7657
|
switch (xe) {
|
|
7652
7658
|
case "string":
|
|
7653
7659
|
de = "s";
|
|
@@ -7659,7 +7665,7 @@ function js() {
|
|
|
7659
7665
|
de = "b";
|
|
7660
7666
|
break;
|
|
7661
7667
|
case "object":
|
|
7662
|
-
|
|
7668
|
+
W === null ? de = "l" : Array.isArray(W) ? de = "a" : de = "o";
|
|
7663
7669
|
break;
|
|
7664
7670
|
case "undefined":
|
|
7665
7671
|
default:
|
|
@@ -7667,7 +7673,7 @@ function js() {
|
|
|
7667
7673
|
}
|
|
7668
7674
|
}
|
|
7669
7675
|
return de;
|
|
7670
|
-
}, L = function(
|
|
7676
|
+
}, L = function(W, de) {
|
|
7671
7677
|
for (var xe = "^", Te = 0, Ae = 0; Ae < S.length; Ae++) {
|
|
7672
7678
|
xe += S[Ae].regex;
|
|
7673
7679
|
var ve = de.match(xe);
|
|
@@ -7675,7 +7681,7 @@ function js() {
|
|
|
7675
7681
|
throw {
|
|
7676
7682
|
code: "T0410",
|
|
7677
7683
|
stack: new Error().stack,
|
|
7678
|
-
value:
|
|
7684
|
+
value: W[Te],
|
|
7679
7685
|
index: Te + 1
|
|
7680
7686
|
};
|
|
7681
7687
|
Te = ve[0].length;
|
|
@@ -7683,22 +7689,22 @@ function js() {
|
|
|
7683
7689
|
throw {
|
|
7684
7690
|
code: "T0410",
|
|
7685
7691
|
stack: new Error().stack,
|
|
7686
|
-
value:
|
|
7692
|
+
value: W[Te],
|
|
7687
7693
|
index: Te + 1
|
|
7688
7694
|
};
|
|
7689
7695
|
};
|
|
7690
7696
|
return {
|
|
7691
7697
|
definition: k,
|
|
7692
|
-
validate: function(
|
|
7698
|
+
validate: function(W, de) {
|
|
7693
7699
|
var xe = "";
|
|
7694
|
-
|
|
7700
|
+
W.forEach(function(Re) {
|
|
7695
7701
|
xe += T(Re);
|
|
7696
7702
|
});
|
|
7697
7703
|
var Te = B.exec(xe);
|
|
7698
7704
|
if (Te) {
|
|
7699
7705
|
var Ae = [], ve = 0;
|
|
7700
7706
|
return S.forEach(function(Re, et) {
|
|
7701
|
-
var _e =
|
|
7707
|
+
var _e = W[ve], ue = Te[et + 1];
|
|
7702
7708
|
if (ue === "")
|
|
7703
7709
|
if (Re.context && Re.contextRegex) {
|
|
7704
7710
|
var tt = T(de);
|
|
@@ -7719,24 +7725,24 @@ function js() {
|
|
|
7719
7725
|
if (ae === "m")
|
|
7720
7726
|
_e = void 0;
|
|
7721
7727
|
else {
|
|
7722
|
-
_e =
|
|
7723
|
-
var
|
|
7728
|
+
_e = W[ve];
|
|
7729
|
+
var Fe = !0;
|
|
7724
7730
|
if (typeof Re.subtype < "u") {
|
|
7725
7731
|
if (ae !== "a" && ue !== Re.subtype)
|
|
7726
|
-
|
|
7732
|
+
Fe = !1;
|
|
7727
7733
|
else if (ae === "a" && _e.length > 0) {
|
|
7728
7734
|
var st = T(_e[0]);
|
|
7729
7735
|
if (st !== Re.subtype.charAt(0))
|
|
7730
|
-
|
|
7736
|
+
Fe = !1;
|
|
7731
7737
|
else {
|
|
7732
7738
|
var d = _e.filter(function(m) {
|
|
7733
7739
|
return T(m) !== st;
|
|
7734
7740
|
});
|
|
7735
|
-
|
|
7741
|
+
Fe = d.length === 0;
|
|
7736
7742
|
}
|
|
7737
7743
|
}
|
|
7738
7744
|
}
|
|
7739
|
-
if (!
|
|
7745
|
+
if (!Fe)
|
|
7740
7746
|
throw {
|
|
7741
7747
|
code: "T0412",
|
|
7742
7748
|
stack: new Error().stack,
|
|
@@ -7752,7 +7758,7 @@ function js() {
|
|
|
7752
7758
|
});
|
|
7753
7759
|
}), Ae;
|
|
7754
7760
|
}
|
|
7755
|
-
L(
|
|
7761
|
+
L(W, xe);
|
|
7756
7762
|
}
|
|
7757
7763
|
};
|
|
7758
7764
|
}
|
|
@@ -7823,8 +7829,8 @@ function js() {
|
|
|
7823
7829
|
if (T[B] !== L[B])
|
|
7824
7830
|
return !1;
|
|
7825
7831
|
for (B = 0; B < T.length; B++) {
|
|
7826
|
-
var
|
|
7827
|
-
if (!me(C[
|
|
7832
|
+
var W = T[B];
|
|
7833
|
+
if (!me(C[W], ne[W]))
|
|
7828
7834
|
return !1;
|
|
7829
7835
|
}
|
|
7830
7836
|
return !0;
|
|
@@ -7834,7 +7840,7 @@ function js() {
|
|
|
7834
7840
|
function ge(C) {
|
|
7835
7841
|
return typeof C == "object" && C !== null && "then" in C && typeof C.then == "function";
|
|
7836
7842
|
}
|
|
7837
|
-
function
|
|
7843
|
+
function H(C) {
|
|
7838
7844
|
var ne = [];
|
|
7839
7845
|
for (let B of C)
|
|
7840
7846
|
ne.push(B);
|
|
@@ -7851,7 +7857,7 @@ function js() {
|
|
|
7851
7857
|
isIterable: se,
|
|
7852
7858
|
getFunctionArity: x,
|
|
7853
7859
|
isDeepEqual: me,
|
|
7854
|
-
stringToArray:
|
|
7860
|
+
stringToArray: H,
|
|
7855
7861
|
isPromise: ge
|
|
7856
7862
|
};
|
|
7857
7863
|
})();
|
|
@@ -7861,13 +7867,13 @@ function js() {
|
|
|
7861
7867
|
})(Cr)), Cr.exports;
|
|
7862
7868
|
}
|
|
7863
7869
|
var Fs = js();
|
|
7864
|
-
const Us = /* @__PURE__ */ Is(Fs),
|
|
7870
|
+
const Us = /* @__PURE__ */ Is(Fs), xn = O.object({
|
|
7865
7871
|
name: O.literal("data-extract"),
|
|
7866
7872
|
code: O.string(),
|
|
7867
7873
|
inputData: O.any().optional()
|
|
7868
7874
|
});
|
|
7869
7875
|
function $s(r) {
|
|
7870
|
-
return
|
|
7876
|
+
return xn.parse(r);
|
|
7871
7877
|
}
|
|
7872
7878
|
async function Ls(r) {
|
|
7873
7879
|
try {
|
|
@@ -7885,23 +7891,23 @@ async function Ls(r) {
|
|
|
7885
7891
|
}
|
|
7886
7892
|
}
|
|
7887
7893
|
const Js = {
|
|
7888
|
-
"get-text":
|
|
7889
|
-
"attribute-value":
|
|
7890
|
-
"get-value-form":
|
|
7891
|
-
"set-value-form":
|
|
7892
|
-
"clear-value-form":
|
|
7893
|
-
"element-exists":
|
|
7894
|
-
"event-click":
|
|
7895
|
-
keypress:
|
|
7896
|
-
wait:
|
|
7897
|
-
"wait-for-condition":
|
|
7898
|
-
navigate:
|
|
7899
|
-
"save-assets":
|
|
7900
|
-
"get-element-data":
|
|
7901
|
-
scroll:
|
|
7902
|
-
"ai-parse-data":
|
|
7903
|
-
"fetch-api":
|
|
7904
|
-
"data-extract":
|
|
7894
|
+
"get-text": sn,
|
|
7895
|
+
"attribute-value": cn,
|
|
7896
|
+
"get-value-form": un,
|
|
7897
|
+
"set-value-form": ln,
|
|
7898
|
+
"clear-value-form": fn,
|
|
7899
|
+
"element-exists": dn,
|
|
7900
|
+
"event-click": hn,
|
|
7901
|
+
keypress: pn,
|
|
7902
|
+
wait: mn,
|
|
7903
|
+
"wait-for-condition": yn,
|
|
7904
|
+
navigate: gn,
|
|
7905
|
+
"save-assets": vn,
|
|
7906
|
+
"get-element-data": bn,
|
|
7907
|
+
scroll: wn,
|
|
7908
|
+
"ai-parse-data": an,
|
|
7909
|
+
"fetch-api": kn,
|
|
7910
|
+
"data-extract": xn
|
|
7905
7911
|
};
|
|
7906
7912
|
class Xs {
|
|
7907
7913
|
// Implementation
|
|
@@ -7910,14 +7916,14 @@ class Xs {
|
|
|
7910
7916
|
switch (e.name) {
|
|
7911
7917
|
case "get-text": {
|
|
7912
7918
|
const t = Va(e);
|
|
7913
|
-
return await
|
|
7919
|
+
return await qa(t);
|
|
7914
7920
|
}
|
|
7915
7921
|
case "attribute-value": {
|
|
7916
|
-
const t =
|
|
7922
|
+
const t = Ga(e);
|
|
7917
7923
|
return await Ya(t);
|
|
7918
7924
|
}
|
|
7919
7925
|
case "get-value-form": {
|
|
7920
|
-
const t =
|
|
7926
|
+
const t = Ka(e);
|
|
7921
7927
|
return await Ja(t);
|
|
7922
7928
|
}
|
|
7923
7929
|
case "set-value-form": {
|
|
@@ -8057,252 +8063,59 @@ class ai {
|
|
|
8057
8063
|
fe(this, "error");
|
|
8058
8064
|
}
|
|
8059
8065
|
}
|
|
8060
|
-
var
|
|
8061
|
-
const
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
desc: "United States Dollar"
|
|
8067
|
-
},
|
|
8068
|
-
EUR: {
|
|
8069
|
-
code: "EUR",
|
|
8070
|
-
symbol: "€",
|
|
8071
|
-
format: "%s%u",
|
|
8072
|
-
desc: "Euro (European Union)"
|
|
8073
|
-
},
|
|
8074
|
-
KRW: {
|
|
8075
|
-
code: "KRW",
|
|
8076
|
-
symbol: "₩",
|
|
8077
|
-
local: "원",
|
|
8078
|
-
format: "%s%u",
|
|
8079
|
-
desc: "South Korean Won"
|
|
8080
|
-
},
|
|
8081
|
-
GBP: {
|
|
8082
|
-
code: "GBP",
|
|
8083
|
-
symbol: "£",
|
|
8084
|
-
format: "%s%u",
|
|
8085
|
-
desc: "British Pound Sterling"
|
|
8086
|
-
},
|
|
8087
|
-
CAD: {
|
|
8088
|
-
code: "CAD",
|
|
8089
|
-
symbol: "$",
|
|
8090
|
-
format: "%s%u",
|
|
8091
|
-
desc: "Canadian Dollar"
|
|
8092
|
-
},
|
|
8093
|
-
CNY: {
|
|
8094
|
-
code: "CNY",
|
|
8095
|
-
symbol: "¥",
|
|
8096
|
-
local: "元",
|
|
8097
|
-
format: "%s%u",
|
|
8098
|
-
desc: "Chinese Yuan"
|
|
8099
|
-
},
|
|
8100
|
-
JPY: {
|
|
8101
|
-
code: "JPY",
|
|
8102
|
-
symbol: "¥",
|
|
8103
|
-
local: "円",
|
|
8104
|
-
format: "%s%u",
|
|
8105
|
-
desc: "Japanese Yen"
|
|
8106
|
-
},
|
|
8107
|
-
VND: {
|
|
8108
|
-
code: "VND",
|
|
8109
|
-
symbol: "₫",
|
|
8110
|
-
format: "%s%u",
|
|
8111
|
-
desc: "Vietnamese Dong"
|
|
8112
|
-
},
|
|
8113
|
-
ARS: {
|
|
8114
|
-
code: "ARS",
|
|
8115
|
-
symbol: "$",
|
|
8116
|
-
format: "%s%u",
|
|
8117
|
-
desc: "Argentine Peso"
|
|
8118
|
-
},
|
|
8119
|
-
INR: {
|
|
8120
|
-
code: "INR",
|
|
8121
|
-
symbol: "₹",
|
|
8122
|
-
format: "%s%u",
|
|
8123
|
-
desc: "Indian Rupee"
|
|
8124
|
-
},
|
|
8125
|
-
TWD: {
|
|
8126
|
-
code: "TWD",
|
|
8127
|
-
symbol: "NT$",
|
|
8128
|
-
format: "%s%u",
|
|
8129
|
-
desc: "New Taiwan Dollar"
|
|
8130
|
-
},
|
|
8131
|
-
AUD: {
|
|
8132
|
-
code: "AUD",
|
|
8133
|
-
symbol: "$",
|
|
8134
|
-
format: "%s%u",
|
|
8135
|
-
desc: "Australian Dollar"
|
|
8136
|
-
},
|
|
8137
|
-
HKD: {
|
|
8138
|
-
code: "HKD",
|
|
8139
|
-
symbol: "$",
|
|
8140
|
-
format: "%s%u",
|
|
8141
|
-
desc: "Hong Kong Dollar"
|
|
8142
|
-
},
|
|
8143
|
-
IDR: {
|
|
8144
|
-
code: "IDR",
|
|
8145
|
-
symbol: "Rp",
|
|
8146
|
-
format: "%s%u",
|
|
8147
|
-
desc: "Indonesian Rupiah"
|
|
8148
|
-
},
|
|
8149
|
-
MXN: {
|
|
8150
|
-
code: "MXN",
|
|
8151
|
-
symbol: "$",
|
|
8152
|
-
format: "%s%u",
|
|
8153
|
-
desc: "Mexican Peso"
|
|
8154
|
-
},
|
|
8155
|
-
NZD: {
|
|
8156
|
-
code: "NZD",
|
|
8157
|
-
symbol: "$",
|
|
8158
|
-
format: "%s%u",
|
|
8159
|
-
desc: "New Zealand Dollar"
|
|
8160
|
-
},
|
|
8161
|
-
SGD: {
|
|
8162
|
-
code: "SGD",
|
|
8163
|
-
symbol: "$",
|
|
8164
|
-
format: "%s%u",
|
|
8165
|
-
desc: "Singapore Dollar"
|
|
8166
|
-
},
|
|
8167
|
-
CHF: {
|
|
8168
|
-
code: "CHF",
|
|
8169
|
-
symbol: "₣",
|
|
8170
|
-
format: "%s%u",
|
|
8171
|
-
desc: "Swiss Franc"
|
|
8172
|
-
},
|
|
8173
|
-
THB: {
|
|
8174
|
-
code: "THB",
|
|
8175
|
-
symbol: "฿",
|
|
8176
|
-
format: "%s%u",
|
|
8177
|
-
desc: "Thai Baht"
|
|
8178
|
-
},
|
|
8179
|
-
BRL: {
|
|
8180
|
-
code: "BRL",
|
|
8181
|
-
symbol: "R$",
|
|
8182
|
-
format: "%s%u",
|
|
8183
|
-
desc: "Brazilian Real"
|
|
8184
|
-
},
|
|
8185
|
-
TRY: {
|
|
8186
|
-
code: "TRY",
|
|
8187
|
-
symbol: "₺",
|
|
8188
|
-
abbreviation: "TL",
|
|
8189
|
-
format: "%s%u",
|
|
8190
|
-
desc: "Turkish Lira"
|
|
8191
|
-
},
|
|
8192
|
-
RUB: {
|
|
8193
|
-
code: "RUB",
|
|
8194
|
-
symbol: "₽",
|
|
8195
|
-
format: "%s%u",
|
|
8196
|
-
desc: "Russian Ruble"
|
|
8197
|
-
},
|
|
8198
|
-
NOK: {
|
|
8199
|
-
code: "NOK",
|
|
8200
|
-
symbol: "kr",
|
|
8201
|
-
format: "%s%u",
|
|
8202
|
-
desc: "Norwegian Krone"
|
|
8203
|
-
},
|
|
8204
|
-
DKK: {
|
|
8205
|
-
code: "DKK",
|
|
8206
|
-
symbol: "kr",
|
|
8207
|
-
format: "%s%u",
|
|
8208
|
-
desc: "Danish Krone"
|
|
8209
|
-
},
|
|
8210
|
-
SEK: {
|
|
8211
|
-
code: "SEK",
|
|
8212
|
-
symbol: "kr",
|
|
8213
|
-
format: "%s%u",
|
|
8214
|
-
desc: "Swedish Krona"
|
|
8215
|
-
},
|
|
8216
|
-
ILS: {
|
|
8217
|
-
code: "ILS",
|
|
8218
|
-
symbol: "₪",
|
|
8219
|
-
format: "%s%u",
|
|
8220
|
-
desc: "Israeli New Shekel"
|
|
8221
|
-
},
|
|
8222
|
-
ZAR: {
|
|
8223
|
-
code: "ZAR",
|
|
8224
|
-
symbol: "R",
|
|
8225
|
-
format: "%s%u",
|
|
8226
|
-
desc: "South African Rand"
|
|
8227
|
-
},
|
|
8228
|
-
PLN: {
|
|
8229
|
-
code: "PLN",
|
|
8230
|
-
symbol: "zł",
|
|
8231
|
-
format: "%s%u",
|
|
8232
|
-
desc: "Polish Zloty"
|
|
8233
|
-
},
|
|
8234
|
-
PHP: {
|
|
8235
|
-
code: "PHP",
|
|
8236
|
-
symbol: "₱",
|
|
8237
|
-
format: "%s%u",
|
|
8238
|
-
desc: "Philippine Peso"
|
|
8239
|
-
},
|
|
8240
|
-
CZK: {
|
|
8241
|
-
code: "CZK",
|
|
8242
|
-
symbol: "Kč",
|
|
8243
|
-
format: "%s%u",
|
|
8244
|
-
desc: "Czech Koruna"
|
|
8245
|
-
},
|
|
8246
|
-
CLP: {
|
|
8247
|
-
code: "CLP",
|
|
8248
|
-
symbol: "$",
|
|
8249
|
-
format: "%s%u",
|
|
8250
|
-
desc: "Chilean Peso"
|
|
8251
|
-
},
|
|
8252
|
-
COP: {
|
|
8253
|
-
code: "COP",
|
|
8254
|
-
symbol: "$",
|
|
8255
|
-
format: "%s%u",
|
|
8256
|
-
desc: "Colombian Peso"
|
|
8257
|
-
},
|
|
8258
|
-
EGP: {
|
|
8259
|
-
code: "EGP",
|
|
8260
|
-
symbol: "E£",
|
|
8261
|
-
format: "%s%u",
|
|
8262
|
-
desc: "Egyptian Pound"
|
|
8263
|
-
},
|
|
8264
|
-
MYR: {
|
|
8265
|
-
code: "MYR",
|
|
8266
|
-
symbol: "RM",
|
|
8267
|
-
local: "令吉",
|
|
8268
|
-
format: "%s%u",
|
|
8269
|
-
desc: "Malaysian Ringgit"
|
|
8270
|
-
},
|
|
8271
|
-
HUF: {
|
|
8272
|
-
code: "HUF",
|
|
8273
|
-
symbol: "Ft",
|
|
8274
|
-
format: "%s%u",
|
|
8275
|
-
desc: "Hungarian Forint"
|
|
8066
|
+
var Br = /* @__PURE__ */ ((r) => (r.USD = "USD", r.KRW = "KRW", r.EUR = "EUR", r.GBP = "GBP", r.CAD = "CAD", r.CNY = "CNY", r.JPY = "JPY", r.VND = "VND", r.ARS = "ARS", r.INR = "INR", r.TWD = "TWD", r.AUD = "AUD", r.HKD = "HKD", r.IDR = "IDR", r.MXN = "MXN", r.NZD = "NZD", r.SGD = "SGD", r.CHF = "CHF", r.THB = "THB", r.BRL = "BRL", r.TRY = "TRY", r.RUB = "RUB", r.NOK = "NOK", r.DKK = "DKK", r.SEK = "SEK", r.ILS = "ILS", r.ZAR = "ZAR", r.PLN = "PLN", r.PHP = "PHP", r.CZK = "CZK", r.CLP = "CLP", r.COP = "COP", r.EGP = "EGP", r.MYR = "MYR", r.HUF = "HUF", r.AED = "AED", r.SAR = "SAR", r.RON = "RON", r.BGN = "BGN", r))(Br || {});
|
|
8067
|
+
const Bs = {
|
|
8068
|
+
code: {
|
|
8069
|
+
type: "string",
|
|
8070
|
+
enum: Object.values(Br),
|
|
8071
|
+
description: "Currency code"
|
|
8276
8072
|
},
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8073
|
+
symbol: {
|
|
8074
|
+
type: "string",
|
|
8075
|
+
enum: [
|
|
8076
|
+
"$",
|
|
8077
|
+
"₩",
|
|
8078
|
+
"€",
|
|
8079
|
+
"£",
|
|
8080
|
+
"¥",
|
|
8081
|
+
"₫",
|
|
8082
|
+
"₹",
|
|
8083
|
+
"NT$",
|
|
8084
|
+
"Rp",
|
|
8085
|
+
"₣",
|
|
8086
|
+
"฿",
|
|
8087
|
+
"R$",
|
|
8088
|
+
"₺",
|
|
8089
|
+
"₽",
|
|
8090
|
+
"kr",
|
|
8091
|
+
"₪",
|
|
8092
|
+
"R",
|
|
8093
|
+
"zł",
|
|
8094
|
+
"₱",
|
|
8095
|
+
"Kč",
|
|
8096
|
+
"E£",
|
|
8097
|
+
"RM",
|
|
8098
|
+
"Ft",
|
|
8099
|
+
"د.إ",
|
|
8100
|
+
"﷼",
|
|
8101
|
+
"L",
|
|
8102
|
+
"лв"
|
|
8103
|
+
],
|
|
8104
|
+
description: "Currency symbol"
|
|
8282
8105
|
},
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
desc: "Saudi Riyal"
|
|
8106
|
+
format: {
|
|
8107
|
+
type: "string",
|
|
8108
|
+
enum: ["%s%u", "%s%n", "%u%s", "%n%s", "%s %u", "%s %n", "%u %s", "%n %s"],
|
|
8109
|
+
description: "Display format (%s: symbol, %u/%n: amount)"
|
|
8288
8110
|
},
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
local: "lei",
|
|
8293
|
-
format: "%s%u",
|
|
8294
|
-
desc: "Romanian Leu"
|
|
8111
|
+
amount: {
|
|
8112
|
+
type: "number",
|
|
8113
|
+
description: "Actual amount value"
|
|
8295
8114
|
},
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
desc: "Bulgarian Lev"
|
|
8301
|
-
}
|
|
8302
|
-
}, ii = {
|
|
8303
|
-
code: "USD",
|
|
8304
|
-
symbol: "$",
|
|
8305
|
-
format: "%u%n"
|
|
8115
|
+
text: {
|
|
8116
|
+
type: "string",
|
|
8117
|
+
description: "Formatted display text (e.g., US$57.75)"
|
|
8118
|
+
}
|
|
8306
8119
|
};
|
|
8307
8120
|
class lt extends Error {
|
|
8308
8121
|
constructor(e, t, a) {
|
|
@@ -8328,47 +8141,36 @@ class lt extends Error {
|
|
|
8328
8141
|
);
|
|
8329
8142
|
}
|
|
8330
8143
|
}
|
|
8331
|
-
function
|
|
8144
|
+
function Zs(r) {
|
|
8332
8145
|
return r && r.type === "8G_EXTENSION_RESPONSE";
|
|
8333
8146
|
}
|
|
8334
|
-
const
|
|
8147
|
+
const zs = Ct({
|
|
8335
8148
|
// 워크스페이스 이름
|
|
8336
|
-
name:
|
|
8149
|
+
name: $e(),
|
|
8337
8150
|
// 워크스페이스를 구분할 수 있는 구분자, ex) slug 같은 것들 01republic
|
|
8338
|
-
key:
|
|
8151
|
+
key: $e(),
|
|
8339
8152
|
// 워크스페이스의 프로필 이미지
|
|
8340
|
-
image:
|
|
8153
|
+
image: $e()
|
|
8341
8154
|
});
|
|
8342
8155
|
var _n = /* @__PURE__ */ ((r) => (r.monthly = "MONTHLY", r.yearly = "YEARLY", r))(_n || {});
|
|
8343
8156
|
const Ur = Ct({
|
|
8344
8157
|
// 통화 코드
|
|
8345
|
-
code: Lr(
|
|
8158
|
+
code: Lr(Br),
|
|
8346
8159
|
// 통화 기호
|
|
8347
|
-
symbol:
|
|
8348
|
-
// 로컬 통화 이름 (optional)
|
|
8349
|
-
local: Fe().optional(),
|
|
8350
|
-
// 통화 약어 (optional)
|
|
8351
|
-
abbreviation: Fe().optional(),
|
|
8160
|
+
symbol: $e(),
|
|
8352
8161
|
// 통화 표시 형식
|
|
8353
|
-
format:
|
|
8354
|
-
// 통화 설명
|
|
8355
|
-
desc: Fe(),
|
|
8162
|
+
format: $e(),
|
|
8356
8163
|
// 실제 금액
|
|
8357
|
-
amount:
|
|
8164
|
+
amount: Kt(),
|
|
8358
8165
|
// 표시용 텍스트 (optional, 예: "US$57.75")
|
|
8359
|
-
text:
|
|
8360
|
-
})
|
|
8361
|
-
var Ws = /* @__PURE__ */ ((r) => (r.USD = "USD", r.KRW = "KRW", r))(Ws || {});
|
|
8362
|
-
const oi = {
|
|
8363
|
-
en: { code: "USD", symbol: "$" },
|
|
8364
|
-
ko: { code: "KRW", symbol: "₩" }
|
|
8365
|
-
}, zs = Ct({
|
|
8166
|
+
text: $e().optional()
|
|
8167
|
+
}), Ws = Ct({
|
|
8366
8168
|
// 플랜 이름
|
|
8367
|
-
planName:
|
|
8169
|
+
planName: $e(),
|
|
8368
8170
|
// 현재 주기 결제 금액
|
|
8369
8171
|
currentCycleBillAmount: Ur,
|
|
8370
8172
|
// 다음 결제 예정일
|
|
8371
|
-
nextPaymentDue:
|
|
8173
|
+
nextPaymentDue: $e(),
|
|
8372
8174
|
// 주기 단위
|
|
8373
8175
|
cycleTerm: Lr(_n).nullable(),
|
|
8374
8176
|
// 무료 티어 여부
|
|
@@ -8376,11 +8178,15 @@ const oi = {
|
|
|
8376
8178
|
// 플랜 단위 여부
|
|
8377
8179
|
isPerUser: $t(),
|
|
8378
8180
|
// 결제 멤버 수
|
|
8379
|
-
paidMemberCount:
|
|
8181
|
+
paidMemberCount: Kt(),
|
|
8380
8182
|
// 사용 멤버 수
|
|
8381
|
-
usedMemberCount:
|
|
8183
|
+
usedMemberCount: Kt(),
|
|
8382
8184
|
// 단위 가격
|
|
8383
|
-
unitPrice: Ur.nullable()
|
|
8185
|
+
unitPrice: Ur.nullable(),
|
|
8186
|
+
// 카드 번호
|
|
8187
|
+
cardNumber: $e(),
|
|
8188
|
+
// 카드 이름
|
|
8189
|
+
cardName: $e()
|
|
8384
8190
|
/*
|
|
8385
8191
|
카드 정보 추가
|
|
8386
8192
|
number4: string;
|
|
@@ -8399,30 +8205,30 @@ const oi = {
|
|
|
8399
8205
|
*/
|
|
8400
8206
|
}), Vs = Ct({
|
|
8401
8207
|
// 결제 이력 고유 아이디
|
|
8402
|
-
uid:
|
|
8208
|
+
uid: $e(),
|
|
8403
8209
|
// 결제 일자
|
|
8404
8210
|
issuedDate: Fr.date(),
|
|
8405
8211
|
// 결제 완료 일자
|
|
8406
8212
|
paidDate: Fr.date().nullable().optional(),
|
|
8407
8213
|
// 결제 방법
|
|
8408
|
-
paymentMethod:
|
|
8214
|
+
paymentMethod: $e(),
|
|
8409
8215
|
// 결제 금액
|
|
8410
8216
|
amount: Ur,
|
|
8411
8217
|
// 결제 성공 여부
|
|
8412
8218
|
isSuccessfulPaid: $t(),
|
|
8413
8219
|
// 결제 영수증 링크
|
|
8414
|
-
receiptUrl:
|
|
8415
|
-
}),
|
|
8220
|
+
receiptUrl: $e()
|
|
8221
|
+
}), qs = Ct({
|
|
8416
8222
|
// 멤버 이름
|
|
8417
|
-
name:
|
|
8223
|
+
name: $e(),
|
|
8418
8224
|
// 멤버 이메일
|
|
8419
|
-
email:
|
|
8225
|
+
email: $e().email(),
|
|
8420
8226
|
// 멤버 프로필 이미지 링크
|
|
8421
|
-
profileImageUrl:
|
|
8227
|
+
profileImageUrl: $e(),
|
|
8422
8228
|
// 멤버 역할
|
|
8423
|
-
role:
|
|
8229
|
+
role: $e()
|
|
8424
8230
|
});
|
|
8425
|
-
class
|
|
8231
|
+
class si {
|
|
8426
8232
|
constructor() {
|
|
8427
8233
|
}
|
|
8428
8234
|
/**
|
|
@@ -8433,7 +8239,7 @@ class ci {
|
|
|
8433
8239
|
const a = setTimeout(() => {
|
|
8434
8240
|
t(lt.extensionNotInstalled());
|
|
8435
8241
|
}, 5e3), s = (i) => {
|
|
8436
|
-
|
|
8242
|
+
Zs(i.data) && (clearTimeout(a), window.removeEventListener("message", s), e(i.data));
|
|
8437
8243
|
};
|
|
8438
8244
|
window.addEventListener("message", s), window.postMessage({ type: "8G_EXTENSION_CHECK" }, "*");
|
|
8439
8245
|
});
|
|
@@ -8483,7 +8289,7 @@ class ci {
|
|
|
8483
8289
|
};
|
|
8484
8290
|
const s = [];
|
|
8485
8291
|
for (const f of a) {
|
|
8486
|
-
const b =
|
|
8292
|
+
const b = zs.safeParse(f);
|
|
8487
8293
|
b.success ? s.push(b.data) : console.warn("Invalid workspace data:", f, b.error);
|
|
8488
8294
|
}
|
|
8489
8295
|
return {
|
|
@@ -8505,7 +8311,7 @@ class ci {
|
|
|
8505
8311
|
const s = (f = (c = a.steps[a.steps.length - 1]) == null ? void 0 : c.result) == null ? void 0 : f.data;
|
|
8506
8312
|
if (!s)
|
|
8507
8313
|
return { ...a };
|
|
8508
|
-
const i =
|
|
8314
|
+
const i = Ws.safeParse(s);
|
|
8509
8315
|
if (i.success) {
|
|
8510
8316
|
const b = i.data;
|
|
8511
8317
|
return { ...a, ...b };
|
|
@@ -8547,53 +8353,49 @@ class ci {
|
|
|
8547
8353
|
return { ...a, data: [] };
|
|
8548
8354
|
const i = [];
|
|
8549
8355
|
for (const b of s) {
|
|
8550
|
-
const k =
|
|
8356
|
+
const k = qs.safeParse(b);
|
|
8551
8357
|
k.success ? i.push(k.data) : console.warn("Invalid workspace member data:", b, k.error);
|
|
8552
8358
|
}
|
|
8553
8359
|
return { ...a, data: i };
|
|
8554
8360
|
}
|
|
8555
8361
|
}
|
|
8556
8362
|
export {
|
|
8557
|
-
|
|
8363
|
+
an as AiParseDataBlockSchema,
|
|
8558
8364
|
Js as AllBlockSchemas,
|
|
8559
8365
|
bt as BaseBlockSchema,
|
|
8560
8366
|
_n as BillingCycleTerm,
|
|
8561
8367
|
ei as Binding,
|
|
8562
8368
|
Xs as BlockHandler,
|
|
8563
|
-
|
|
8369
|
+
fn as ClearValueFormsBlockSchema,
|
|
8564
8370
|
ai as CollectWorkflowResult,
|
|
8565
8371
|
Qs as Condition,
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
xn as
|
|
8569
|
-
si as
|
|
8570
|
-
oi as CurrencyValues,
|
|
8571
|
-
kn as DataExtractBlockSchema,
|
|
8572
|
-
ii as DefaultCurrency,
|
|
8573
|
-
ci as EightGClient,
|
|
8372
|
+
Br as CurrencyCode,
|
|
8373
|
+
Bs as CurrencyInfoSchema,
|
|
8374
|
+
xn as DataExtractBlockSchema,
|
|
8375
|
+
si as EightGClient,
|
|
8574
8376
|
lt as EightGError,
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8377
|
+
dn as ElementExistsBlockSchema,
|
|
8378
|
+
hn as EventClickBlockSchema,
|
|
8379
|
+
kn as FetchApiBlockSchema,
|
|
8380
|
+
cn as GetAttributeValueBlockSchema,
|
|
8381
|
+
bn as GetElementDataBlockSchema,
|
|
8382
|
+
sn as GetTextBlockSchema,
|
|
8383
|
+
un as GetValueFormsBlockSchema,
|
|
8384
|
+
pn as KeypressBlockSchema,
|
|
8385
|
+
gn as NavigateBlockSchema,
|
|
8386
|
+
vn as SaveAssetsBlockSchema,
|
|
8387
|
+
Ks as Schema,
|
|
8388
|
+
wn as ScrollBlockSchema,
|
|
8389
|
+
ln as SetValueFormsBlockSchema,
|
|
8390
|
+
mn as WaitBlockSchema,
|
|
8391
|
+
yn as WaitForConditionBlockSchema,
|
|
8590
8392
|
ri as Workflow,
|
|
8591
8393
|
ti as WorkflowStep,
|
|
8592
8394
|
ni as WorkflowStepRunResult,
|
|
8593
8395
|
Vs as WorkspaceBillingHistorySchema,
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8396
|
+
Ws as WorkspaceBillingSchema,
|
|
8397
|
+
zs as WorkspaceItemSchema,
|
|
8398
|
+
qs as WorkspaceMemberSchema,
|
|
8597
8399
|
Ys as createArraySchema,
|
|
8598
|
-
|
|
8400
|
+
Gs as createSchema
|
|
8599
8401
|
};
|