@datapos/datapos-development 0.3.215 → 0.3.218
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.
|
@@ -41,7 +41,7 @@ class xs extends Error {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
const gs = {};
|
|
44
|
-
function
|
|
44
|
+
function $e(e) {
|
|
45
45
|
return gs;
|
|
46
46
|
}
|
|
47
47
|
function Rr(e) {
|
|
@@ -95,7 +95,7 @@ function Z(e, t, i) {
|
|
|
95
95
|
configurable: !0
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ke(e, t, i) {
|
|
99
99
|
Object.defineProperty(e, t, {
|
|
100
100
|
value: i,
|
|
101
101
|
writable: !0,
|
|
@@ -103,7 +103,7 @@ function Ge(e, t, i) {
|
|
|
103
103
|
configurable: !0
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Ge(...e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
for (const i of e) {
|
|
109
109
|
const s = Object.getOwnPropertyDescriptors(i);
|
|
@@ -145,7 +145,7 @@ const zr = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
|
145
145
|
function rt(e) {
|
|
146
146
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function qe(e, t, i) {
|
|
149
149
|
const s = new e._zod.constr(t ?? e._zod.def);
|
|
150
150
|
return (!t || i?.parent) && (s._zod.parent = e), s;
|
|
151
151
|
}
|
|
@@ -173,7 +173,7 @@ const jr = {
|
|
|
173
173
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
174
174
|
};
|
|
175
175
|
function Br(e, t) {
|
|
176
|
-
const i = e._zod.def, s =
|
|
176
|
+
const i = e._zod.def, s = Ge(e._zod.def, {
|
|
177
177
|
get shape() {
|
|
178
178
|
const a = {};
|
|
179
179
|
for (const o in t) {
|
|
@@ -181,14 +181,14 @@ function Br(e, t) {
|
|
|
181
181
|
throw new Error(`Unrecognized key: "${o}"`);
|
|
182
182
|
t[o] && (a[o] = i.shape[o]);
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return Ke(this, "shape", a), a;
|
|
185
185
|
},
|
|
186
186
|
checks: []
|
|
187
187
|
});
|
|
188
|
-
return
|
|
188
|
+
return qe(e, s);
|
|
189
189
|
}
|
|
190
190
|
function $r(e, t) {
|
|
191
|
-
const i = e._zod.def, s =
|
|
191
|
+
const i = e._zod.def, s = Ge(e._zod.def, {
|
|
192
192
|
get shape() {
|
|
193
193
|
const a = { ...e._zod.def.shape };
|
|
194
194
|
for (const o in t) {
|
|
@@ -196,11 +196,11 @@ function $r(e, t) {
|
|
|
196
196
|
throw new Error(`Unrecognized key: "${o}"`);
|
|
197
197
|
t[o] && delete a[o];
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return Ke(this, "shape", a), a;
|
|
200
200
|
},
|
|
201
201
|
checks: []
|
|
202
202
|
});
|
|
203
|
-
return
|
|
203
|
+
return qe(e, s);
|
|
204
204
|
}
|
|
205
205
|
function Ur(e, t) {
|
|
206
206
|
if (!st(t))
|
|
@@ -208,14 +208,14 @@ function Ur(e, t) {
|
|
|
208
208
|
const i = e._zod.def.checks;
|
|
209
209
|
if (i && i.length > 0)
|
|
210
210
|
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
211
|
-
const s =
|
|
211
|
+
const s = Ge(e._zod.def, {
|
|
212
212
|
get shape() {
|
|
213
213
|
const a = { ...e._zod.def.shape, ...t };
|
|
214
|
-
return
|
|
214
|
+
return Ke(this, "shape", a), a;
|
|
215
215
|
},
|
|
216
216
|
checks: []
|
|
217
217
|
});
|
|
218
|
-
return
|
|
218
|
+
return qe(e, s);
|
|
219
219
|
}
|
|
220
220
|
function Zr(e, t) {
|
|
221
221
|
if (!st(t))
|
|
@@ -224,17 +224,17 @@ function Zr(e, t) {
|
|
|
224
224
|
...e._zod.def,
|
|
225
225
|
get shape() {
|
|
226
226
|
const s = { ...e._zod.def.shape, ...t };
|
|
227
|
-
return
|
|
227
|
+
return Ke(this, "shape", s), s;
|
|
228
228
|
},
|
|
229
229
|
checks: e._zod.def.checks
|
|
230
230
|
};
|
|
231
|
-
return
|
|
231
|
+
return qe(e, i);
|
|
232
232
|
}
|
|
233
233
|
function qr(e, t) {
|
|
234
|
-
const i =
|
|
234
|
+
const i = Ge(e._zod.def, {
|
|
235
235
|
get shape() {
|
|
236
236
|
const s = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
237
|
-
return
|
|
237
|
+
return Ke(this, "shape", s), s;
|
|
238
238
|
},
|
|
239
239
|
get catchall() {
|
|
240
240
|
return t._zod.def.catchall;
|
|
@@ -242,10 +242,10 @@ function qr(e, t) {
|
|
|
242
242
|
checks: []
|
|
243
243
|
// delete existing checks
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return qe(e, i);
|
|
246
246
|
}
|
|
247
247
|
function Hr(e, t, i) {
|
|
248
|
-
const s =
|
|
248
|
+
const s = Ge(t._zod.def, {
|
|
249
249
|
get shape() {
|
|
250
250
|
const a = t._zod.def.shape, o = { ...a };
|
|
251
251
|
if (i)
|
|
@@ -263,14 +263,14 @@ function Hr(e, t, i) {
|
|
|
263
263
|
type: "optional",
|
|
264
264
|
innerType: a[h]
|
|
265
265
|
}) : a[h];
|
|
266
|
-
return
|
|
266
|
+
return Ke(this, "shape", o), o;
|
|
267
267
|
},
|
|
268
268
|
checks: []
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return qe(t, s);
|
|
271
271
|
}
|
|
272
272
|
function Wr(e, t, i) {
|
|
273
|
-
const s =
|
|
273
|
+
const s = Ge(t._zod.def, {
|
|
274
274
|
get shape() {
|
|
275
275
|
const a = t._zod.def.shape, o = { ...a };
|
|
276
276
|
if (i)
|
|
@@ -288,11 +288,11 @@ function Wr(e, t, i) {
|
|
|
288
288
|
type: "nonoptional",
|
|
289
289
|
innerType: a[h]
|
|
290
290
|
});
|
|
291
|
-
return
|
|
291
|
+
return Ke(this, "shape", o), o;
|
|
292
292
|
},
|
|
293
293
|
checks: []
|
|
294
294
|
});
|
|
295
|
-
return
|
|
295
|
+
return qe(t, s);
|
|
296
296
|
}
|
|
297
297
|
function et(e, t = 0) {
|
|
298
298
|
if (e.aborted === !0)
|
|
@@ -311,7 +311,7 @@ function tt(e, t) {
|
|
|
311
311
|
function Pt(e) {
|
|
312
312
|
return typeof e == "string" ? e : e?.message;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ue(e, t, i) {
|
|
315
315
|
const s = { ...e, path: e.path ?? [] };
|
|
316
316
|
if (!e.message) {
|
|
317
317
|
const a = Pt(e.inst?._zod.def?.error?.(e)) ?? Pt(t?.error?.(e)) ?? Pt(i.customError?.(e)) ?? Pt(i.localeError?.(e)) ?? "Invalid input";
|
|
@@ -375,7 +375,7 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
375
375
|
if (h instanceof Promise)
|
|
376
376
|
throw new it();
|
|
377
377
|
if (h.issues.length) {
|
|
378
|
-
const d = new (a?.Err ?? e)(h.issues.map((y) =>
|
|
378
|
+
const d = new (a?.Err ?? e)(h.issues.map((y) => Ue(y, o, $e())));
|
|
379
379
|
throw bs(d, a?.callee), d;
|
|
380
380
|
}
|
|
381
381
|
return h.value;
|
|
@@ -383,7 +383,7 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
383
383
|
const o = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
384
384
|
let h = t._zod.run({ value: i, issues: [] }, o);
|
|
385
385
|
if (h instanceof Promise && (h = await h), h.issues.length) {
|
|
386
|
-
const d = new (a?.Err ?? e)(h.issues.map((y) =>
|
|
386
|
+
const d = new (a?.Err ?? e)(h.issues.map((y) => Ue(y, o, $e())));
|
|
387
387
|
throw bs(d, a?.callee), d;
|
|
388
388
|
}
|
|
389
389
|
return h.value;
|
|
@@ -393,14 +393,14 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
393
393
|
throw new it();
|
|
394
394
|
return o.issues.length ? {
|
|
395
395
|
success: !1,
|
|
396
|
-
error: new (e ?? Ss)(o.issues.map((h) =>
|
|
396
|
+
error: new (e ?? Ss)(o.issues.map((h) => Ue(h, a, $e())))
|
|
397
397
|
} : { success: !0, data: o.value };
|
|
398
398
|
}, Jr = /* @__PURE__ */ jt(Ts), Bt = (e) => async (t, i, s) => {
|
|
399
399
|
const a = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
400
400
|
let o = t._zod.run({ value: i, issues: [] }, a);
|
|
401
401
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
402
402
|
success: !1,
|
|
403
|
-
error: new e(o.issues.map((h) =>
|
|
403
|
+
error: new e(o.issues.map((h) => Ue(h, a, $e())))
|
|
404
404
|
} : { success: !0, data: o.value };
|
|
405
405
|
}, Xr = /* @__PURE__ */ Bt(Ts), Qr = (e) => (t, i, s) => {
|
|
406
406
|
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
@@ -1179,28 +1179,28 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1179
1179
|
return `shape[${ge}]._zod.run({ value: input[${ge}], issues: [] }, ctx)`;
|
|
1180
1180
|
};
|
|
1181
1181
|
M.write("const input = payload.value;");
|
|
1182
|
-
const
|
|
1182
|
+
const Ne = /* @__PURE__ */ Object.create(null);
|
|
1183
1183
|
let R = 0;
|
|
1184
1184
|
for (const de of U.keys)
|
|
1185
|
-
|
|
1185
|
+
Ne[de] = `key_${R++}`;
|
|
1186
1186
|
M.write("const newResult = {};");
|
|
1187
1187
|
for (const de of U.keys) {
|
|
1188
|
-
const ge =
|
|
1188
|
+
const ge = Ne[de], We = Ri(de);
|
|
1189
1189
|
M.write(`const ${ge} = ${he(de)};`), M.write(`
|
|
1190
1190
|
if (${ge}.issues.length) {
|
|
1191
1191
|
payload.issues = payload.issues.concat(${ge}.issues.map(iss => ({
|
|
1192
1192
|
...iss,
|
|
1193
|
-
path: iss.path ? [${
|
|
1193
|
+
path: iss.path ? [${We}, ...iss.path] : [${We}]
|
|
1194
1194
|
})));
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
|
|
1198
1198
|
if (${ge}.value === undefined) {
|
|
1199
|
-
if (${
|
|
1200
|
-
newResult[${
|
|
1199
|
+
if (${We} in input) {
|
|
1200
|
+
newResult[${We}] = undefined;
|
|
1201
1201
|
}
|
|
1202
1202
|
} else {
|
|
1203
|
-
newResult[${
|
|
1203
|
+
newResult[${We}] = ${ge}.value;
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
`);
|
|
@@ -1232,7 +1232,7 @@ function zi(e, t, i, s) {
|
|
|
1232
1232
|
code: "invalid_union",
|
|
1233
1233
|
input: t.value,
|
|
1234
1234
|
inst: i,
|
|
1235
|
-
errors: e.map((o) => o.issues.map((h) =>
|
|
1235
|
+
errors: e.map((o) => o.issues.map((h) => Ue(h, s, $e())))
|
|
1236
1236
|
}), t);
|
|
1237
1237
|
}
|
|
1238
1238
|
const Pn = /* @__PURE__ */ w("$ZodUnion", (e, t) => {
|
|
@@ -1357,7 +1357,7 @@ const Cn = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
1357
1357
|
i.issues.push({
|
|
1358
1358
|
code: "invalid_key",
|
|
1359
1359
|
origin: "record",
|
|
1360
|
-
issues: d.issues.map((u) =>
|
|
1360
|
+
issues: d.issues.map((u) => Ue(u, s, $e())),
|
|
1361
1361
|
input: h,
|
|
1362
1362
|
path: [h],
|
|
1363
1363
|
inst: e
|
|
@@ -1467,13 +1467,13 @@ const Vn = /* @__PURE__ */ w("$ZodCatch", (e, t) => {
|
|
|
1467
1467
|
return a instanceof Promise ? a.then((o) => (i.value = o.value, o.issues.length && (i.value = t.catchValue({
|
|
1468
1468
|
...i,
|
|
1469
1469
|
error: {
|
|
1470
|
-
issues: o.issues.map((h) =>
|
|
1470
|
+
issues: o.issues.map((h) => Ue(h, s, $e()))
|
|
1471
1471
|
},
|
|
1472
1472
|
input: i.value
|
|
1473
1473
|
}), i.issues = []), i)) : (i.value = a.value, a.issues.length && (i.value = t.catchValue({
|
|
1474
1474
|
...i,
|
|
1475
1475
|
error: {
|
|
1476
|
-
issues: a.issues.map((o) =>
|
|
1476
|
+
issues: a.issues.map((o) => Ue(o, s, $e()))
|
|
1477
1477
|
},
|
|
1478
1478
|
input: i.value
|
|
1479
1479
|
}), i.issues = []), i);
|
|
@@ -2054,12 +2054,12 @@ const Uo = (e, t) => {
|
|
|
2054
2054
|
});
|
|
2055
2055
|
}, Se = w("ZodError", Uo, {
|
|
2056
2056
|
Parent: Error
|
|
2057
|
-
}), Zo = /* @__PURE__ */ xi(Se), qo = /* @__PURE__ */ gi(Se), Ho = /* @__PURE__ */ jt(Se), Wo = /* @__PURE__ */ Bt(Se), Ko = /* @__PURE__ */ Qr(Se), Go = /* @__PURE__ */ Yr(Se), Jo = /* @__PURE__ */ ea(Se), Xo = /* @__PURE__ */ ta(Se), Qo = /* @__PURE__ */ ia(Se), Yo = /* @__PURE__ */ sa(Se), eu = /* @__PURE__ */ ra(Se), tu = /* @__PURE__ */ aa(Se), ee = /* @__PURE__ */ w("ZodType", (e, t) => (Q.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(
|
|
2057
|
+
}), Zo = /* @__PURE__ */ xi(Se), qo = /* @__PURE__ */ gi(Se), Ho = /* @__PURE__ */ jt(Se), Wo = /* @__PURE__ */ Bt(Se), Ko = /* @__PURE__ */ Qr(Se), Go = /* @__PURE__ */ Yr(Se), Jo = /* @__PURE__ */ ea(Se), Xo = /* @__PURE__ */ ta(Se), Qo = /* @__PURE__ */ ia(Se), Yo = /* @__PURE__ */ sa(Se), eu = /* @__PURE__ */ ra(Se), tu = /* @__PURE__ */ aa(Se), ee = /* @__PURE__ */ w("ZodType", (e, t) => (Q.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(Ge(t, {
|
|
2058
2058
|
checks: [
|
|
2059
2059
|
...t.checks ?? [],
|
|
2060
2060
|
...i.map((s) => typeof s == "function" ? { _zod: { check: s, def: { check: "custom" }, onattach: [] } } : s)
|
|
2061
2061
|
]
|
|
2062
|
-
})), e.clone = (i, s) =>
|
|
2062
|
+
})), e.clone = (i, s) => qe(e, i, s), e.brand = () => e, e.register = (i, s) => (i.add(e, s), e), e.parse = (i, s) => Zo(e, i, s, { callee: e.parse }), e.safeParse = (i, s) => Ho(e, i, s), e.parseAsync = async (i, s) => qo(e, i, s, { callee: e.parseAsync }), e.safeParseAsync = async (i, s) => Wo(e, i, s), e.spa = e.safeParseAsync, e.encode = (i, s) => Ko(e, i, s), e.decode = (i, s) => Go(e, i, s), e.encodeAsync = async (i, s) => Jo(e, i, s), e.decodeAsync = async (i, s) => Xo(e, i, s), e.safeEncode = (i, s) => Qo(e, i, s), e.safeDecode = (i, s) => Yo(e, i, s), e.safeEncodeAsync = async (i, s) => eu(e, i, s), e.safeDecodeAsync = async (i, s) => tu(e, i, s), e.refine = (i, s) => e.check(Ku(i, s)), e.superRefine = (i) => e.check(Gu(i)), e.overwrite = (i) => e.check(xt(i)), e.optional = () => Qi(e), e.nullable = () => Yi(e), e.nullish = () => Qi(Yi(e)), e.nonoptional = (i) => Bu(e, i), e.array = () => Ze(e), e.or = (i) => se([e, i]), e.and = (i) => Iu(e, i), e.transform = (i) => es(e, Ru(i)), e.default = (i) => zu(e, i), e.prefault = (i) => ju(e, i), e.catch = (i) => Uu(e, i), e.pipe = (i) => es(e, i), e.readonly = () => Hu(e), e.describe = (i) => {
|
|
2063
2063
|
const s = e.clone();
|
|
2064
2064
|
return Ct.add(s, { description: i }), s;
|
|
2065
2065
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2127,7 +2127,7 @@ const Y = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
|
2127
2127
|
const i = e._zod.bag;
|
|
2128
2128
|
e.minValue = Math.max(i.minimum ?? Number.NEGATIVE_INFINITY, i.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(i.maximum ?? Number.POSITIVE_INFINITY, i.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (i.format ?? "").includes("int") || Number.isSafeInteger(i.multipleOf ?? 0.5), e.isFinite = !0, e.format = i.format ?? null;
|
|
2129
2129
|
});
|
|
2130
|
-
function
|
|
2130
|
+
function Le(e) {
|
|
2131
2131
|
return yo(zs, e);
|
|
2132
2132
|
}
|
|
2133
2133
|
const bu = /* @__PURE__ */ w("ZodNumberFormat", (e, t) => {
|
|
@@ -2157,13 +2157,13 @@ function _u(e) {
|
|
|
2157
2157
|
const Pu = /* @__PURE__ */ w("ZodArray", (e, t) => {
|
|
2158
2158
|
Sn.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, s) => e.check(Ot(i, s)), e.nonempty = (i) => e.check(Ot(1, i)), e.max = (i, s) => e.check(Rs(i, s)), e.length = (i, s) => e.check(Ds(i, s)), e.unwrap = () => e.element;
|
|
2159
2159
|
});
|
|
2160
|
-
function
|
|
2160
|
+
function Ze(e, t) {
|
|
2161
2161
|
return No(Pu, e, t);
|
|
2162
2162
|
}
|
|
2163
2163
|
const Au = /* @__PURE__ */ w("ZodObject", (e, t) => {
|
|
2164
2164
|
_n.init(e, t), ee.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => Lu(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Xi() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Xi() }), e.strict = () => e.clone({ ...e._zod.def, catchall: _u() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => Ur(e, i), e.safeExtend = (i) => Zr(e, i), e.merge = (i) => qr(e, i), e.pick = (i) => Br(e, i), e.omit = (i) => $r(e, i), e.partial = (...i) => Hr(Fs, e, i[0]), e.required = (...i) => Wr(js, e, i[0]);
|
|
2165
2165
|
});
|
|
2166
|
-
function
|
|
2166
|
+
function Ce(e, t) {
|
|
2167
2167
|
const i = {
|
|
2168
2168
|
type: "object",
|
|
2169
2169
|
shape: e ?? {},
|
|
@@ -2404,32 +2404,32 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2404
2404
|
g("presenter"),
|
|
2405
2405
|
g("presenterPresentation"),
|
|
2406
2406
|
g("tool")
|
|
2407
|
-
]), Yu = se([g("en-au"), g("en-gb"), g("en-us"), g("es-es")]), ec = xe(Yu, L()), tc =
|
|
2407
|
+
]), Yu = se([g("en-au"), g("en-gb"), g("en-us"), g("es-es")]), ec = xe(Yu, L()), tc = Ce({
|
|
2408
2408
|
id: L(),
|
|
2409
2409
|
color: Ju,
|
|
2410
2410
|
label: L()
|
|
2411
|
-
}), ic =
|
|
2411
|
+
}), ic = Ce({
|
|
2412
2412
|
id: L(),
|
|
2413
2413
|
label: xe(L(), L()),
|
|
2414
2414
|
description: xe(L(), L()),
|
|
2415
|
-
firstCreatedAt:
|
|
2415
|
+
firstCreatedAt: Le().optional(),
|
|
2416
2416
|
icon: L().optional(),
|
|
2417
2417
|
iconDark: L().optional(),
|
|
2418
|
-
lastUpdatedAt:
|
|
2418
|
+
lastUpdatedAt: Le().optional(),
|
|
2419
2419
|
status: tc.nullable().optional(),
|
|
2420
2420
|
statusId: Xu,
|
|
2421
2421
|
typeId: Qu
|
|
2422
|
-
}), sc = se([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), rc =
|
|
2422
|
+
}), sc = se([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), rc = Ce({
|
|
2423
2423
|
id: L(),
|
|
2424
2424
|
label: L()
|
|
2425
|
-
}), ac =
|
|
2426
|
-
activeConnectionCount:
|
|
2425
|
+
}), ac = Ce({
|
|
2426
|
+
activeConnectionCount: Le().optional(),
|
|
2427
2427
|
canDescribe: wu().optional(),
|
|
2428
2428
|
id: L().optional(),
|
|
2429
2429
|
authMethodId: se([g("apiKey"), g("disabled"), g("oAuth2"), g("none")]),
|
|
2430
2430
|
label: ec.optional(),
|
|
2431
|
-
maxConnectionCount:
|
|
2432
|
-
params:
|
|
2431
|
+
maxConnectionCount: Le().optional(),
|
|
2432
|
+
params: Ze(xe(L(), L())).optional()
|
|
2433
2433
|
}), nc = se([g("application"), g("curatedDataset"), g("database"), g("fileStore")]), oc = se([
|
|
2434
2434
|
g("abortOperation"),
|
|
2435
2435
|
g("authenticateConnection"),
|
|
@@ -2450,7 +2450,7 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2450
2450
|
category: rc.optional(),
|
|
2451
2451
|
categoryId: nc,
|
|
2452
2452
|
implementations: xe(L(), ac),
|
|
2453
|
-
operations:
|
|
2453
|
+
operations: Ze(oc),
|
|
2454
2454
|
typeId: g("connector"),
|
|
2455
2455
|
usageId: uc,
|
|
2456
2456
|
vendorAccountURL: L().nullable().optional(),
|
|
@@ -2490,19 +2490,19 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2490
2490
|
g("presenter"),
|
|
2491
2491
|
g("presenterPresentation"),
|
|
2492
2492
|
g("tool")
|
|
2493
|
-
]), ts =
|
|
2493
|
+
]), ts = Le(), dc = Ce({
|
|
2494
2494
|
id: L(),
|
|
2495
2495
|
color: pc,
|
|
2496
2496
|
label: L()
|
|
2497
|
-
}), mc =
|
|
2497
|
+
}), mc = Ce({
|
|
2498
2498
|
id: L(),
|
|
2499
2499
|
label: xe(L(), L()),
|
|
2500
2500
|
description: xe(L(), L()),
|
|
2501
2501
|
icon: L().optional(),
|
|
2502
2502
|
iconDark: L().optional(),
|
|
2503
|
-
order:
|
|
2503
|
+
order: Le(),
|
|
2504
2504
|
path: L()
|
|
2505
|
-
}), Bs =
|
|
2505
|
+
}), Bs = Ce({
|
|
2506
2506
|
id: L(),
|
|
2507
2507
|
label: xe(L(), L()),
|
|
2508
2508
|
description: xe(L(), L()),
|
|
@@ -2517,25 +2517,25 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2517
2517
|
typeId: yc,
|
|
2518
2518
|
version: L()
|
|
2519
2519
|
}), xc = Bs.extend({
|
|
2520
|
-
modelRefs:
|
|
2521
|
-
order:
|
|
2520
|
+
modelRefs: Ze(mc),
|
|
2521
|
+
order: Le()
|
|
2522
2522
|
}), gc = g("list"), bc = vc.extend({
|
|
2523
|
-
models:
|
|
2524
|
-
operations:
|
|
2523
|
+
models: Ze(xc),
|
|
2524
|
+
operations: Ze(gc),
|
|
2525
2525
|
typeId: g("context")
|
|
2526
|
-
}), kc = se([g("amber"), g("green"), g("red"), g("other")]), wc = se([g("alpha"), g("beta"), g("generalAvailability"), g("notApplicable"), g("preAlpha"), g("proposed"), g("releaseCandidate"), g("unavailable"), g("underReview")]), Sc = se([g("app"), g("connector"), g("connectorConnection"), g("context"), g("contextModelGroup"), g("contextModel"), g("contextModelDimensionGroup"), g("contextModelDimension"), g("contextModelDimensionHierarchy"), g("contextModelEntityGroup"), g("contextModelEntity"), g("contextModelEntityDataItem"), g("contextModelEntityEvent"), g("contextModelEntityPrimaryMeasure"), g("contextModelSecondaryMeasureGroup"), g("contextModelSecondaryMeasure"), g("dataView"), g("dimension"), g("engine"), g("eventQuery"), g("presenter"), g("presenterPresentation"), g("tool")]), is =
|
|
2526
|
+
}), kc = se([g("amber"), g("green"), g("red"), g("other")]), wc = se([g("alpha"), g("beta"), g("generalAvailability"), g("notApplicable"), g("preAlpha"), g("proposed"), g("releaseCandidate"), g("unavailable"), g("underReview")]), Sc = se([g("app"), g("connector"), g("connectorConnection"), g("context"), g("contextModelGroup"), g("contextModel"), g("contextModelDimensionGroup"), g("contextModelDimension"), g("contextModelDimensionHierarchy"), g("contextModelEntityGroup"), g("contextModelEntity"), g("contextModelEntityDataItem"), g("contextModelEntityEvent"), g("contextModelEntityPrimaryMeasure"), g("contextModelSecondaryMeasureGroup"), g("contextModelSecondaryMeasure"), g("dataView"), g("dimension"), g("engine"), g("eventQuery"), g("presenter"), g("presenterPresentation"), g("tool")]), is = Le(), Tc = Ce({
|
|
2527
2527
|
id: L(),
|
|
2528
2528
|
color: kc,
|
|
2529
2529
|
label: L()
|
|
2530
|
-
}), _c =
|
|
2530
|
+
}), _c = Ce({
|
|
2531
2531
|
id: L(),
|
|
2532
2532
|
label: xe(L(), L()),
|
|
2533
2533
|
description: xe(L(), L()),
|
|
2534
2534
|
icon: L().optional(),
|
|
2535
2535
|
iconDark: L().optional(),
|
|
2536
|
-
order:
|
|
2536
|
+
order: Le(),
|
|
2537
2537
|
path: L()
|
|
2538
|
-
}), Pc =
|
|
2538
|
+
}), Pc = Ce({
|
|
2539
2539
|
id: L(),
|
|
2540
2540
|
label: xe(L(), L()),
|
|
2541
2541
|
description: xe(L(), L()),
|
|
@@ -2550,8 +2550,8 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2550
2550
|
typeId: Ac,
|
|
2551
2551
|
version: L()
|
|
2552
2552
|
}), Ec = se([g("list"), g("render"), g("setColorMode")]), Ic = Cc.extend({
|
|
2553
|
-
presentations:
|
|
2554
|
-
operations:
|
|
2553
|
+
presentations: Ze(_c),
|
|
2554
|
+
operations: Ze(Ec),
|
|
2555
2555
|
typeId: g("presenter")
|
|
2556
2556
|
});
|
|
2557
2557
|
var Nc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], $s = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Lc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Us = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ei = {
|
|
@@ -2577,7 +2577,7 @@ function ui(e, t) {
|
|
|
2577
2577
|
function Pe(e, t) {
|
|
2578
2578
|
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Rc.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, $s);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Oe(e, t) {
|
|
2581
2581
|
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Dc.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, $s) || ui(e, Nc);
|
|
2582
2582
|
}
|
|
2583
2583
|
var z = function(t, i) {
|
|
@@ -2684,14 +2684,14 @@ var p = {
|
|
|
2684
2684
|
_void: j("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
2685
2685
|
_delete: j("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
2686
2686
|
}, ue = /\r\n?|\n|\u2028|\u2029/, Zs = new RegExp(ue.source, "g");
|
|
2687
|
-
function
|
|
2687
|
+
function Je(e) {
|
|
2688
2688
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
2689
2689
|
}
|
|
2690
2690
|
function qs(e, t, i) {
|
|
2691
2691
|
i === void 0 && (i = e.length);
|
|
2692
2692
|
for (var s = t; s < i; s++) {
|
|
2693
2693
|
var a = e.charCodeAt(s);
|
|
2694
|
-
if (
|
|
2694
|
+
if (Je(a))
|
|
2695
2695
|
return s < i - 1 && a === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
|
|
2696
2696
|
}
|
|
2697
2697
|
return -1;
|
|
@@ -2701,10 +2701,10 @@ var ki = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ae = /(?:\s|\/\/.*|\/\
|
|
|
2701
2701
|
}), ss = Array.isArray || (function(e) {
|
|
2702
2702
|
return zc.call(e) === "[object Array]";
|
|
2703
2703
|
}), rs = /* @__PURE__ */ Object.create(null);
|
|
2704
|
-
function
|
|
2704
|
+
function Be(e) {
|
|
2705
2705
|
return rs[e] || (rs[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function Me(e) {
|
|
2708
2708
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
2709
2709
|
}
|
|
2710
2710
|
var Fc = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, nt = function(t, i) {
|
|
@@ -2845,61 +2845,61 @@ function Bc(e, t) {
|
|
|
2845
2845
|
e.locations && (y.loc = new gt(this, h, d)), e.ranges && (y.range = [a, o]), t.push(y);
|
|
2846
2846
|
};
|
|
2847
2847
|
}
|
|
2848
|
-
var vt = 1, ut = 2, Si = 4, Ws = 8, Ti = 16, Ks = 32, Ut = 64, Gs = 128,
|
|
2848
|
+
var vt = 1, ut = 2, Si = 4, Ws = 8, Ti = 16, Ks = 32, Ut = 64, Gs = 128, Xe = 256, bt = 512, Zt = vt | ut | Xe;
|
|
2849
2849
|
function _i(e, t) {
|
|
2850
2850
|
return ut | (e ? Si : 0) | (t ? Ws : 0);
|
|
2851
2851
|
}
|
|
2852
|
-
var Rt = 0, Pi = 1,
|
|
2853
|
-
this.options = t = jc(t), this.sourceFile = t.sourceFile, this.keywords =
|
|
2852
|
+
var Rt = 0, Pi = 1, De = 2, Js = 3, Xs = 4, Qs = 5, X = function(t, i, s) {
|
|
2853
|
+
this.options = t = jc(t), this.sourceFile = t.sourceFile, this.keywords = Be(Oc[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
2854
2854
|
var a = "";
|
|
2855
|
-
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords =
|
|
2855
|
+
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords = Be(a);
|
|
2856
2856
|
var o = (a ? a + " " : "") + ei.strict;
|
|
2857
|
-
this.reservedWordsStrict =
|
|
2857
|
+
this.reservedWordsStrict = Be(o), this.reservedWordsStrictBind = Be(o + " " + ei.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
2858
2858
|
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(ue).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = p.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(vt), this.regexpState = null, this.privateNameStack = [];
|
|
2859
|
-
},
|
|
2859
|
+
}, Ee = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
2860
2860
|
X.prototype.parse = function() {
|
|
2861
2861
|
var t = this.options.program || this.startNode();
|
|
2862
2862
|
return this.nextToken(), this.parseTopLevel(t);
|
|
2863
2863
|
};
|
|
2864
|
-
|
|
2864
|
+
Ee.inFunction.get = function() {
|
|
2865
2865
|
return (this.currentVarScope().flags & ut) > 0;
|
|
2866
2866
|
};
|
|
2867
|
-
|
|
2867
|
+
Ee.inGenerator.get = function() {
|
|
2868
2868
|
return (this.currentVarScope().flags & Ws) > 0;
|
|
2869
2869
|
};
|
|
2870
|
-
|
|
2870
|
+
Ee.inAsync.get = function() {
|
|
2871
2871
|
return (this.currentVarScope().flags & Si) > 0;
|
|
2872
2872
|
};
|
|
2873
|
-
|
|
2873
|
+
Ee.canAwait.get = function() {
|
|
2874
2874
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2875
2875
|
var t = this.scopeStack[e], i = t.flags;
|
|
2876
|
-
if (i & (
|
|
2876
|
+
if (i & (Xe | bt))
|
|
2877
2877
|
return !1;
|
|
2878
2878
|
if (i & ut)
|
|
2879
2879
|
return (i & Si) > 0;
|
|
2880
2880
|
}
|
|
2881
2881
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
2882
2882
|
};
|
|
2883
|
-
|
|
2883
|
+
Ee.allowSuper.get = function() {
|
|
2884
2884
|
var e = this.currentThisScope(), t = e.flags;
|
|
2885
2885
|
return (t & Ut) > 0 || this.options.allowSuperOutsideMethod;
|
|
2886
2886
|
};
|
|
2887
|
-
|
|
2887
|
+
Ee.allowDirectSuper.get = function() {
|
|
2888
2888
|
return (this.currentThisScope().flags & Gs) > 0;
|
|
2889
2889
|
};
|
|
2890
|
-
|
|
2890
|
+
Ee.treatFunctionsAsVar.get = function() {
|
|
2891
2891
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
2892
2892
|
};
|
|
2893
|
-
|
|
2893
|
+
Ee.allowNewDotTarget.get = function() {
|
|
2894
2894
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2895
2895
|
var t = this.scopeStack[e], i = t.flags;
|
|
2896
|
-
if (i & (
|
|
2896
|
+
if (i & (Xe | bt) || i & ut && !(i & Ti))
|
|
2897
2897
|
return !0;
|
|
2898
2898
|
}
|
|
2899
2899
|
return !1;
|
|
2900
2900
|
};
|
|
2901
|
-
|
|
2902
|
-
return (this.currentVarScope().flags &
|
|
2901
|
+
Ee.inClassStaticBlock.get = function() {
|
|
2902
|
+
return (this.currentVarScope().flags & Xe) > 0;
|
|
2903
2903
|
};
|
|
2904
2904
|
X.extend = function() {
|
|
2905
2905
|
for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
|
|
@@ -2917,7 +2917,7 @@ X.parseExpressionAt = function(t, i, s) {
|
|
|
2917
2917
|
X.tokenizer = function(t, i) {
|
|
2918
2918
|
return new this(i, t);
|
|
2919
2919
|
};
|
|
2920
|
-
Object.defineProperties(X.prototype,
|
|
2920
|
+
Object.defineProperties(X.prototype, Ee);
|
|
2921
2921
|
var ce = X.prototype, $c = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
2922
2922
|
ce.strictDirective = function(e) {
|
|
2923
2923
|
if (this.options.ecmaVersion < 5)
|
|
@@ -3018,7 +3018,7 @@ E.isLet = function(e) {
|
|
|
3018
3018
|
if (s === 123 || s > 55295 && s < 56320)
|
|
3019
3019
|
return !0;
|
|
3020
3020
|
if (Pe(s, !0)) {
|
|
3021
|
-
for (var a = i + 1;
|
|
3021
|
+
for (var a = i + 1; Oe(s = this.input.charCodeAt(a), !0); )
|
|
3022
3022
|
++a;
|
|
3023
3023
|
if (s === 92 || s > 55295 && s < 56320)
|
|
3024
3024
|
return !0;
|
|
@@ -3033,7 +3033,7 @@ E.isAsyncFunction = function() {
|
|
|
3033
3033
|
return !1;
|
|
3034
3034
|
ae.lastIndex = this.pos;
|
|
3035
3035
|
var e = ae.exec(this.input), t = this.pos + e[0].length, i;
|
|
3036
|
-
return !ue.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(
|
|
3036
|
+
return !ue.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Oe(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
3037
3037
|
};
|
|
3038
3038
|
E.isUsingKeyword = function(e, t) {
|
|
3039
3039
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
@@ -3044,7 +3044,7 @@ E.isUsingKeyword = function(e, t) {
|
|
|
3044
3044
|
return !1;
|
|
3045
3045
|
if (e) {
|
|
3046
3046
|
var a = s + 5, o;
|
|
3047
|
-
if (this.input.slice(s, a) !== "using" || a === this.input.length ||
|
|
3047
|
+
if (this.input.slice(s, a) !== "using" || a === this.input.length || Oe(o = this.input.charCodeAt(a)) || o > 55295 && o < 56320)
|
|
3048
3048
|
return !1;
|
|
3049
3049
|
ae.lastIndex = a;
|
|
3050
3050
|
var h = ae.exec(this.input);
|
|
@@ -3053,7 +3053,7 @@ E.isUsingKeyword = function(e, t) {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
if (t) {
|
|
3055
3055
|
var d = s + 2, y;
|
|
3056
|
-
if (this.input.slice(s, d) === "of" && (d === this.input.length || !
|
|
3056
|
+
if (this.input.slice(s, d) === "of" && (d === this.input.length || !Oe(y = this.input.charCodeAt(d)) && !(y > 55295 && y < 56320)))
|
|
3057
3057
|
return !1;
|
|
3058
3058
|
}
|
|
3059
3059
|
var u = this.input.charCodeAt(s);
|
|
@@ -3188,7 +3188,7 @@ E.parseThrowStatement = function(e) {
|
|
|
3188
3188
|
var Zc = [];
|
|
3189
3189
|
E.parseCatchClauseParam = function() {
|
|
3190
3190
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
3191
|
-
return this.enterScope(t ? Ks : 0), this.checkLValPattern(e, t ? Xs :
|
|
3191
|
+
return this.enterScope(t ? Ks : 0), this.checkLValPattern(e, t ? Xs : De), this.expect(p.parenR), e;
|
|
3192
3192
|
};
|
|
3193
3193
|
E.parseTryStatement = function(e) {
|
|
3194
3194
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === p._catch) {
|
|
@@ -3252,11 +3252,11 @@ E.parseVar = function(e, t, i, s) {
|
|
|
3252
3252
|
return e;
|
|
3253
3253
|
};
|
|
3254
3254
|
E.parseVarId = function(e, t) {
|
|
3255
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Pi :
|
|
3255
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Pi : De, !1);
|
|
3256
3256
|
};
|
|
3257
3257
|
var dt = 1, ci = 2, Ys = 4;
|
|
3258
3258
|
E.parseFunction = function(e, t, i, s, a) {
|
|
3259
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === p.star && t & ci && this.unexpected(), e.generator = this.eat(p.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & dt && (e.id = t & Ys && this.type !== p.name ? null : this.parseIdent(), e.id && !(t & ci) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Pi :
|
|
3259
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === p.star && t & ci && this.unexpected(), e.generator = this.eat(p.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & dt && (e.id = t & Ys && this.type !== p.name ? null : this.parseIdent(), e.id && !(t & ci) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Pi : De : Js));
|
|
3260
3260
|
var o = this.yieldPos, h = this.awaitPos, d = this.awaitIdentPos;
|
|
3261
3261
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_i(e.async, e.generator)), t & dt || (e.id = this.type === p.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, a), this.yieldPos = o, this.awaitPos = h, this.awaitIdentPos = d, this.finishNode(e, t & dt ? "FunctionDeclaration" : "FunctionExpression");
|
|
3262
3262
|
};
|
|
@@ -3312,14 +3312,14 @@ E.parseClassField = function(e) {
|
|
|
3312
3312
|
E.parseClassStaticBlock = function(e) {
|
|
3313
3313
|
e.body = [];
|
|
3314
3314
|
var t = this.labels;
|
|
3315
|
-
for (this.labels = [], this.enterScope(
|
|
3315
|
+
for (this.labels = [], this.enterScope(Xe | Ut); this.type !== p.braceR; ) {
|
|
3316
3316
|
var i = this.parseStatement(null);
|
|
3317
3317
|
e.body.push(i);
|
|
3318
3318
|
}
|
|
3319
3319
|
return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
|
|
3320
3320
|
};
|
|
3321
3321
|
E.parseClassId = function(e, t) {
|
|
3322
|
-
this.type === p.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id,
|
|
3322
|
+
this.type === p.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, De, !1)) : (t === !0 && this.unexpected(), e.id = null);
|
|
3323
3323
|
};
|
|
3324
3324
|
E.parseClassSuper = function(e) {
|
|
3325
3325
|
e.superClass = this.eat(p._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
@@ -3437,15 +3437,15 @@ E.parseImport = function(e) {
|
|
|
3437
3437
|
};
|
|
3438
3438
|
E.parseImportSpecifier = function() {
|
|
3439
3439
|
var e = this.startNode();
|
|
3440
|
-
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local,
|
|
3440
|
+
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, De), this.finishNode(e, "ImportSpecifier");
|
|
3441
3441
|
};
|
|
3442
3442
|
E.parseImportDefaultSpecifier = function() {
|
|
3443
3443
|
var e = this.startNode();
|
|
3444
|
-
return e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
3444
|
+
return e.local = this.parseIdent(), this.checkLValSimple(e.local, De), this.finishNode(e, "ImportDefaultSpecifier");
|
|
3445
3445
|
};
|
|
3446
3446
|
E.parseImportNamespaceSpecifier = function() {
|
|
3447
3447
|
var e = this.startNode();
|
|
3448
|
-
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
3448
|
+
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, De), this.finishNode(e, "ImportNamespaceSpecifier");
|
|
3449
3449
|
};
|
|
3450
3450
|
E.parseImportSpecifiers = function() {
|
|
3451
3451
|
var e = [], t = !0;
|
|
@@ -3606,7 +3606,7 @@ Te.checkLValSimple = function(e, t, i) {
|
|
|
3606
3606
|
var s = t !== Rt;
|
|
3607
3607
|
switch (e.type) {
|
|
3608
3608
|
case "Identifier":
|
|
3609
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t ===
|
|
3609
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === De && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (ot(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== Qs && this.declareName(e.name, t, e.start));
|
|
3610
3610
|
break;
|
|
3611
3611
|
case "ChainExpression":
|
|
3612
3612
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -3893,12 +3893,12 @@ D.parseSubscript = function(e, t, i, s, a, o, h) {
|
|
|
3893
3893
|
} else if (!s && this.eat(p.parenL)) {
|
|
3894
3894
|
var P = new qt(), M = this.yieldPos, U = this.awaitPos, he = this.awaitIdentPos;
|
|
3895
3895
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
3896
|
-
var
|
|
3896
|
+
var Ne = this.parseExprList(p.parenR, this.options.ecmaVersion >= 8, !1, P);
|
|
3897
3897
|
if (a && !y && this.shouldParseAsyncArrow())
|
|
3898
|
-
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = U, this.awaitIdentPos = he, this.parseSubscriptAsyncArrow(t, i,
|
|
3898
|
+
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = U, this.awaitIdentPos = he, this.parseSubscriptAsyncArrow(t, i, Ne, h);
|
|
3899
3899
|
this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, this.awaitIdentPos = he || this.awaitIdentPos;
|
|
3900
3900
|
var R = this.startNodeAt(t, i);
|
|
3901
|
-
R.callee = e, R.arguments =
|
|
3901
|
+
R.callee = e, R.arguments = Ne, d && (R.optional = y), e = this.finishNode(R, "CallExpression");
|
|
3902
3902
|
} else if (this.type === p.backQuote) {
|
|
3903
3903
|
(y || o) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
3904
3904
|
var re = this.startNodeAt(t, i);
|
|
@@ -4012,10 +4012,10 @@ D.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
4012
4012
|
break;
|
|
4013
4013
|
} else
|
|
4014
4014
|
y.push(this.parseMaybeAssign(!1, P, this.parseParenItem));
|
|
4015
|
-
var
|
|
4015
|
+
var Ne = this.lastTokEnd, R = this.lastTokEndLoc;
|
|
4016
4016
|
if (this.expect(p.parenR), e && this.shouldParseArrow(y) && this.eat(p.arrow))
|
|
4017
4017
|
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = M, this.awaitPos = U, this.parseParenArrowList(i, s, y, t);
|
|
4018
|
-
(!y.length || S) && this.unexpected(this.lastTokStart), he && this.unexpected(he), this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, y.length > 1 ? (a = this.startNodeAt(h, d), a.expressions = y, this.finishNodeAt(a, "SequenceExpression",
|
|
4018
|
+
(!y.length || S) && this.unexpected(this.lastTokStart), he && this.unexpected(he), this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, y.length > 1 ? (a = this.startNodeAt(h, d), a.expressions = y, this.finishNodeAt(a, "SequenceExpression", Ne, R)) : a = y[0];
|
|
4019
4019
|
} else
|
|
4020
4020
|
a = this.parseParenExpression();
|
|
4021
4021
|
if (this.options.preserveParens) {
|
|
@@ -4199,21 +4199,21 @@ Vt.curPosition = function() {
|
|
|
4199
4199
|
if (this.options.locations)
|
|
4200
4200
|
return new nt(this.curLine, this.pos - this.lineStart);
|
|
4201
4201
|
};
|
|
4202
|
-
var
|
|
4202
|
+
var He = X.prototype, Wc = function(t) {
|
|
4203
4203
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
4204
4204
|
};
|
|
4205
|
-
|
|
4205
|
+
He.enterScope = function(e) {
|
|
4206
4206
|
this.scopeStack.push(new Wc(e));
|
|
4207
4207
|
};
|
|
4208
|
-
|
|
4208
|
+
He.exitScope = function() {
|
|
4209
4209
|
this.scopeStack.pop();
|
|
4210
4210
|
};
|
|
4211
|
-
|
|
4211
|
+
He.treatFunctionsAsVarInScope = function(e) {
|
|
4212
4212
|
return e.flags & ut || !this.inModule && e.flags & vt;
|
|
4213
4213
|
};
|
|
4214
|
-
|
|
4214
|
+
He.declareName = function(e, t, i) {
|
|
4215
4215
|
var s = !1;
|
|
4216
|
-
if (t ===
|
|
4216
|
+
if (t === De) {
|
|
4217
4217
|
var a = this.currentScope();
|
|
4218
4218
|
s = a.lexical.indexOf(e) > -1 || a.functions.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.lexical.push(e), this.inModule && a.flags & vt && delete this.undefinedExports[e];
|
|
4219
4219
|
} else if (t === Xs) {
|
|
@@ -4234,23 +4234,23 @@ We.declareName = function(e, t, i) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
4236
4236
|
};
|
|
4237
|
-
|
|
4237
|
+
He.checkLocalExport = function(e) {
|
|
4238
4238
|
this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
|
|
4239
4239
|
};
|
|
4240
|
-
|
|
4240
|
+
He.currentScope = function() {
|
|
4241
4241
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
4242
4242
|
};
|
|
4243
|
-
|
|
4243
|
+
He.currentVarScope = function() {
|
|
4244
4244
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4245
4245
|
var t = this.scopeStack[e];
|
|
4246
|
-
if (t.flags & (Zt | bt |
|
|
4246
|
+
if (t.flags & (Zt | bt | Xe))
|
|
4247
4247
|
return t;
|
|
4248
4248
|
}
|
|
4249
4249
|
};
|
|
4250
|
-
|
|
4250
|
+
He.currentThisScope = function() {
|
|
4251
4251
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4252
4252
|
var t = this.scopeStack[e];
|
|
4253
|
-
if (t.flags & (Zt | bt |
|
|
4253
|
+
if (t.flags & (Zt | bt | Xe) && !(t.flags & Ti))
|
|
4254
4254
|
return t;
|
|
4255
4255
|
}
|
|
4256
4256
|
};
|
|
@@ -4302,11 +4302,11 @@ var Kc = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4302
4302
|
}, lr = {};
|
|
4303
4303
|
function th(e) {
|
|
4304
4304
|
var t = lr[e] = {
|
|
4305
|
-
binary:
|
|
4306
|
-
binaryOfStrings:
|
|
4305
|
+
binary: Be(Jc[e] + " " + ns),
|
|
4306
|
+
binaryOfStrings: Be(Qc[e]),
|
|
4307
4307
|
nonBinary: {
|
|
4308
|
-
General_Category:
|
|
4309
|
-
Script:
|
|
4308
|
+
General_Category: Be(ns),
|
|
4309
|
+
Script: Be(eh[e])
|
|
4310
4310
|
}
|
|
4311
4311
|
};
|
|
4312
4312
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
@@ -4328,17 +4328,17 @@ zt.prototype.separatedFrom = function(t) {
|
|
|
4328
4328
|
zt.prototype.sibling = function() {
|
|
4329
4329
|
return new zt(this.parent, this.base);
|
|
4330
4330
|
};
|
|
4331
|
-
var
|
|
4331
|
+
var Ie = function(t) {
|
|
4332
4332
|
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = lr[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
4333
4333
|
};
|
|
4334
|
-
|
|
4334
|
+
Ie.prototype.reset = function(t, i, s) {
|
|
4335
4335
|
var a = s.indexOf("v") !== -1, o = s.indexOf("u") !== -1;
|
|
4336
4336
|
this.start = t | 0, this.source = i + "", this.flags = s, a && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = o && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = o && this.parser.options.ecmaVersion >= 9);
|
|
4337
4337
|
};
|
|
4338
|
-
|
|
4338
|
+
Ie.prototype.raise = function(t) {
|
|
4339
4339
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
|
|
4340
4340
|
};
|
|
4341
|
-
|
|
4341
|
+
Ie.prototype.at = function(t, i) {
|
|
4342
4342
|
i === void 0 && (i = !1);
|
|
4343
4343
|
var s = this.source, a = s.length;
|
|
4344
4344
|
if (t >= a)
|
|
@@ -4349,7 +4349,7 @@ Ne.prototype.at = function(t, i) {
|
|
|
4349
4349
|
var h = s.charCodeAt(t + 1);
|
|
4350
4350
|
return h >= 56320 && h <= 57343 ? (o << 10) + h - 56613888 : o;
|
|
4351
4351
|
};
|
|
4352
|
-
|
|
4352
|
+
Ie.prototype.nextIndex = function(t, i) {
|
|
4353
4353
|
i === void 0 && (i = !1);
|
|
4354
4354
|
var s = this.source, a = s.length;
|
|
4355
4355
|
if (t >= a)
|
|
@@ -4357,19 +4357,19 @@ Ne.prototype.nextIndex = function(t, i) {
|
|
|
4357
4357
|
var o = s.charCodeAt(t), h;
|
|
4358
4358
|
return !(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= a || (h = s.charCodeAt(t + 1)) < 56320 || h > 57343 ? t + 1 : t + 2;
|
|
4359
4359
|
};
|
|
4360
|
-
|
|
4360
|
+
Ie.prototype.current = function(t) {
|
|
4361
4361
|
return t === void 0 && (t = !1), this.at(this.pos, t);
|
|
4362
4362
|
};
|
|
4363
|
-
|
|
4363
|
+
Ie.prototype.lookahead = function(t) {
|
|
4364
4364
|
return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
|
|
4365
4365
|
};
|
|
4366
|
-
|
|
4366
|
+
Ie.prototype.advance = function(t) {
|
|
4367
4367
|
t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
|
|
4368
4368
|
};
|
|
4369
|
-
|
|
4369
|
+
Ie.prototype.eat = function(t, i) {
|
|
4370
4370
|
return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
|
|
4371
4371
|
};
|
|
4372
|
-
|
|
4372
|
+
Ie.prototype.eatChars = function(t, i) {
|
|
4373
4373
|
i === void 0 && (i = !1);
|
|
4374
4374
|
for (var s = this.pos, a = 0, o = t; a < o.length; a += 1) {
|
|
4375
4375
|
var h = o[a], d = this.at(s, i);
|
|
@@ -4595,7 +4595,7 @@ A.regexp_eatCapturingGroup = function(e) {
|
|
|
4595
4595
|
};
|
|
4596
4596
|
A.regexp_eatModifiers = function(e) {
|
|
4597
4597
|
for (var t = "", i = 0; (i = e.current()) !== -1 && rh(i); )
|
|
4598
|
-
t +=
|
|
4598
|
+
t += Me(i), e.advance();
|
|
4599
4599
|
return t;
|
|
4600
4600
|
};
|
|
4601
4601
|
function rh(e) {
|
|
@@ -4660,8 +4660,8 @@ A.regexp_eatGroupName = function(e) {
|
|
|
4660
4660
|
};
|
|
4661
4661
|
A.regexp_eatRegExpIdentifierName = function(e) {
|
|
4662
4662
|
if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
|
|
4663
|
-
for (e.lastStringValue +=
|
|
4664
|
-
e.lastStringValue +=
|
|
4663
|
+
for (e.lastStringValue += Me(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
|
|
4664
|
+
e.lastStringValue += Me(e.lastIntValue);
|
|
4665
4665
|
return !0;
|
|
4666
4666
|
}
|
|
4667
4667
|
return !1;
|
|
@@ -4678,7 +4678,7 @@ A.regexp_eatRegExpIdentifierPart = function(e) {
|
|
|
4678
4678
|
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), nh(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
4679
4679
|
};
|
|
4680
4680
|
function nh(e) {
|
|
4681
|
-
return
|
|
4681
|
+
return Oe(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
4682
4682
|
}
|
|
4683
4683
|
A.regexp_eatAtomEscape = function(e) {
|
|
4684
4684
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
@@ -4796,11 +4796,11 @@ A.regexp_eatDecimalEscape = function(e) {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
return !1;
|
|
4798
4798
|
};
|
|
4799
|
-
var mr = 0,
|
|
4799
|
+
var mr = 0, Re = 1, we = 2;
|
|
4800
4800
|
A.regexp_eatCharacterClassEscape = function(e) {
|
|
4801
4801
|
var t = e.current();
|
|
4802
4802
|
if (uh(t))
|
|
4803
|
-
return e.lastIntValue = -1, e.advance(),
|
|
4803
|
+
return e.lastIntValue = -1, e.advance(), Re;
|
|
4804
4804
|
var i = !1;
|
|
4805
4805
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
4806
4806
|
e.lastIntValue = -1, e.advance();
|
|
@@ -4829,7 +4829,7 @@ A.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
4829
4829
|
var i = e.lastStringValue;
|
|
4830
4830
|
if (this.regexp_eatUnicodePropertyValue(e)) {
|
|
4831
4831
|
var s = e.lastStringValue;
|
|
4832
|
-
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s),
|
|
4832
|
+
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), Re;
|
|
4833
4833
|
}
|
|
4834
4834
|
}
|
|
4835
4835
|
if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
|
|
@@ -4843,7 +4843,7 @@ A.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
|
4843
4843
|
};
|
|
4844
4844
|
A.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
4845
4845
|
if (e.unicodeProperties.binary.test(t))
|
|
4846
|
-
return
|
|
4846
|
+
return Re;
|
|
4847
4847
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
|
|
4848
4848
|
return we;
|
|
4849
4849
|
e.raise("Invalid property name");
|
|
@@ -4851,7 +4851,7 @@ A.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
4851
4851
|
A.regexp_eatUnicodePropertyName = function(e) {
|
|
4852
4852
|
var t = 0;
|
|
4853
4853
|
for (e.lastStringValue = ""; yr(t = e.current()); )
|
|
4854
|
-
e.lastStringValue +=
|
|
4854
|
+
e.lastStringValue += Me(t), e.advance();
|
|
4855
4855
|
return e.lastStringValue !== "";
|
|
4856
4856
|
};
|
|
4857
4857
|
function yr(e) {
|
|
@@ -4860,7 +4860,7 @@ function yr(e) {
|
|
|
4860
4860
|
A.regexp_eatUnicodePropertyValue = function(e) {
|
|
4861
4861
|
var t = 0;
|
|
4862
4862
|
for (e.lastStringValue = ""; ch(t = e.current()); )
|
|
4863
|
-
e.lastStringValue +=
|
|
4863
|
+
e.lastStringValue += Me(t), e.advance();
|
|
4864
4864
|
return e.lastStringValue !== "";
|
|
4865
4865
|
};
|
|
4866
4866
|
function ch(e) {
|
|
@@ -4886,7 +4886,7 @@ A.regexp_eatCharacterClass = function(e) {
|
|
|
4886
4886
|
return !1;
|
|
4887
4887
|
};
|
|
4888
4888
|
A.regexp_classContents = function(e) {
|
|
4889
|
-
return e.current() === 93 ?
|
|
4889
|
+
return e.current() === 93 ? Re : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Re);
|
|
4890
4890
|
};
|
|
4891
4891
|
A.regexp_nonEmptyClassRanges = function(e) {
|
|
4892
4892
|
for (; this.regexp_eatClassAtom(e); ) {
|
|
@@ -4940,7 +4940,7 @@ A.regexp_eatClassEscape = function(e) {
|
|
|
4940
4940
|
return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
|
|
4941
4941
|
};
|
|
4942
4942
|
A.regexp_classSetExpression = function(e) {
|
|
4943
|
-
var t =
|
|
4943
|
+
var t = Re, i;
|
|
4944
4944
|
if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
|
|
4945
4945
|
i === we && (t = we);
|
|
4946
4946
|
for (var s = e.pos; e.eatChars(
|
|
@@ -4948,7 +4948,7 @@ A.regexp_classSetExpression = function(e) {
|
|
|
4948
4948
|
/* && */
|
|
4949
4949
|
); ) {
|
|
4950
4950
|
if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
|
|
4951
|
-
i !== we && (t =
|
|
4951
|
+
i !== we && (t = Re);
|
|
4952
4952
|
continue;
|
|
4953
4953
|
}
|
|
4954
4954
|
e.raise("Invalid character in character class");
|
|
@@ -4987,7 +4987,7 @@ A.regexp_eatClassSetRange = function(e) {
|
|
|
4987
4987
|
return !1;
|
|
4988
4988
|
};
|
|
4989
4989
|
A.regexp_eatClassSetOperand = function(e) {
|
|
4990
|
-
return this.regexp_eatClassSetCharacter(e) ?
|
|
4990
|
+
return this.regexp_eatClassSetCharacter(e) ? Re : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
|
|
4991
4991
|
};
|
|
4992
4992
|
A.regexp_eatNestedClass = function(e) {
|
|
4993
4993
|
var t = e.pos;
|
|
@@ -5050,7 +5050,7 @@ A.regexp_classStringDisjunctionContents = function(e) {
|
|
|
5050
5050
|
A.regexp_classString = function(e) {
|
|
5051
5051
|
for (var t = 0; this.regexp_eatClassSetCharacter(e); )
|
|
5052
5052
|
t++;
|
|
5053
|
-
return t === 1 ?
|
|
5053
|
+
return t === 1 ? Re : we;
|
|
5054
5054
|
};
|
|
5055
5055
|
A.regexp_eatClassSetCharacter = function(e) {
|
|
5056
5056
|
var t = e.pos;
|
|
@@ -5199,7 +5199,7 @@ F.skipBlockComment = function() {
|
|
|
5199
5199
|
);
|
|
5200
5200
|
};
|
|
5201
5201
|
F.skipLineComment = function(e) {
|
|
5202
|
-
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !
|
|
5202
|
+
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Je(s); )
|
|
5203
5203
|
s = this.input.charCodeAt(++this.pos);
|
|
5204
5204
|
this.options.onComment && this.options.onComment(
|
|
5205
5205
|
!1,
|
|
@@ -5317,7 +5317,7 @@ F.readToken_numberSign = function() {
|
|
|
5317
5317
|
var e = this.options.ecmaVersion, t = 35;
|
|
5318
5318
|
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Pe(t, !0) || t === 92))
|
|
5319
5319
|
return this.finishToken(p.privateId, this.readWord1());
|
|
5320
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
5320
|
+
this.raise(this.pos, "Unexpected character '" + Me(t) + "'");
|
|
5321
5321
|
};
|
|
5322
5322
|
F.getTokenFromCode = function(e) {
|
|
5323
5323
|
switch (e) {
|
|
@@ -5404,7 +5404,7 @@ F.getTokenFromCode = function(e) {
|
|
|
5404
5404
|
case 35:
|
|
5405
5405
|
return this.readToken_numberSign();
|
|
5406
5406
|
}
|
|
5407
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
5407
|
+
this.raise(this.pos, "Unexpected character '" + Me(e) + "'");
|
|
5408
5408
|
};
|
|
5409
5409
|
F.finishOp = function(e, t) {
|
|
5410
5410
|
var i = this.input.slice(this.pos, this.pos + t);
|
|
@@ -5431,7 +5431,7 @@ F.readRegexp = function() {
|
|
|
5431
5431
|
++this.pos;
|
|
5432
5432
|
var o = this.pos, h = this.readWord1();
|
|
5433
5433
|
this.containsEsc && this.unexpected(o);
|
|
5434
|
-
var d = this.regexpState || (this.regexpState = new
|
|
5434
|
+
var d = this.regexpState || (this.regexpState = new Ie(this));
|
|
5435
5435
|
d.reset(i, a, h), this.validateRegExpFlags(d), this.validateRegExpPattern(d);
|
|
5436
5436
|
var y = null;
|
|
5437
5437
|
try {
|
|
@@ -5495,7 +5495,7 @@ F.readString = function(e) {
|
|
|
5495
5495
|
var s = this.input.charCodeAt(this.pos);
|
|
5496
5496
|
if (s === e)
|
|
5497
5497
|
break;
|
|
5498
|
-
s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (
|
|
5498
|
+
s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Je(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
5499
5499
|
}
|
|
5500
5500
|
return t += this.input.slice(i, this.pos++), this.finishToken(p.string, t);
|
|
5501
5501
|
};
|
|
@@ -5525,7 +5525,7 @@ F.readTmplToken = function() {
|
|
|
5525
5525
|
return this.pos === this.start && (this.type === p.template || this.type === p.invalidTemplate) ? i === 36 ? (this.pos += 2, this.finishToken(p.dollarBraceL)) : (++this.pos, this.finishToken(p.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(p.template, e));
|
|
5526
5526
|
if (i === 92)
|
|
5527
5527
|
e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
|
|
5528
|
-
else if (
|
|
5528
|
+
else if (Je(i)) {
|
|
5529
5529
|
switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
|
|
5530
5530
|
case 13:
|
|
5531
5531
|
this.input.charCodeAt(this.pos) === 10 && ++this.pos;
|
|
@@ -5581,7 +5581,7 @@ F.readEscapedChar = function(e) {
|
|
|
5581
5581
|
return String.fromCharCode(this.readHexChar(2));
|
|
5582
5582
|
// 'x'
|
|
5583
5583
|
case 117:
|
|
5584
|
-
return
|
|
5584
|
+
return Me(this.readCodePoint());
|
|
5585
5585
|
// 'u'
|
|
5586
5586
|
case 116:
|
|
5587
5587
|
return " ";
|
|
@@ -5620,7 +5620,7 @@ F.readEscapedChar = function(e) {
|
|
|
5620
5620
|
e ? "Octal literal in template string" : "Octal literal in strict mode"
|
|
5621
5621
|
), String.fromCharCode(a);
|
|
5622
5622
|
}
|
|
5623
|
-
return
|
|
5623
|
+
return Je(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
5624
5624
|
}
|
|
5625
5625
|
};
|
|
5626
5626
|
F.readHexChar = function(e) {
|
|
@@ -5631,14 +5631,14 @@ F.readWord1 = function() {
|
|
|
5631
5631
|
this.containsEsc = !1;
|
|
5632
5632
|
for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
5633
5633
|
var a = this.fullCharCodeAtPos();
|
|
5634
|
-
if (
|
|
5634
|
+
if (Oe(a, s))
|
|
5635
5635
|
this.pos += a <= 65535 ? 1 : 2;
|
|
5636
5636
|
else if (a === 92) {
|
|
5637
5637
|
this.containsEsc = !0, e += this.input.slice(i, this.pos);
|
|
5638
5638
|
var o = this.pos;
|
|
5639
5639
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
5640
5640
|
var h = this.readCodePoint();
|
|
5641
|
-
(t ? Pe :
|
|
5641
|
+
(t ? Pe : Oe)(h, s) || this.invalidStringToken(o, "Invalid Unicode escape"), e += Me(h), i = this.pos;
|
|
5642
5642
|
} else
|
|
5643
5643
|
break;
|
|
5644
5644
|
t = !1;
|
|
@@ -5663,10 +5663,10 @@ X.acorn = {
|
|
|
5663
5663
|
keywordTypes: at,
|
|
5664
5664
|
TokContext: oe,
|
|
5665
5665
|
tokContexts: H,
|
|
5666
|
-
isIdentifierChar:
|
|
5666
|
+
isIdentifierChar: Oe,
|
|
5667
5667
|
isIdentifierStart: Pe,
|
|
5668
5668
|
Token: Wt,
|
|
5669
|
-
isNewLine:
|
|
5669
|
+
isNewLine: Je,
|
|
5670
5670
|
lineBreak: ue,
|
|
5671
5671
|
lineBreakG: Zs,
|
|
5672
5672
|
nonASCIIwhitespace: ki
|
|
@@ -5691,9 +5691,9 @@ const vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5691
5691
|
TokenType: z,
|
|
5692
5692
|
defaultOptions: Mt,
|
|
5693
5693
|
getLineInfo: wi,
|
|
5694
|
-
isIdentifierChar:
|
|
5694
|
+
isIdentifierChar: Oe,
|
|
5695
5695
|
isIdentifierStart: Pe,
|
|
5696
|
-
isNewLine:
|
|
5696
|
+
isNewLine: Je,
|
|
5697
5697
|
keywordTypes: at,
|
|
5698
5698
|
lineBreak: ue,
|
|
5699
5699
|
lineBreakG: Zs,
|
|
@@ -5871,7 +5871,7 @@ function ds(e) {
|
|
|
5871
5871
|
function Ch(e) {
|
|
5872
5872
|
var t = {}, i = t.dts, s = i !== void 0 && i, a = t.allowSatisfies, o = a !== void 0 && a;
|
|
5873
5873
|
return function(h) {
|
|
5874
|
-
var d = h.acorn || vh, y = gh(d), u = d.tokTypes, S = d.keywordTypes, P = d.isIdentifierStart, M = d.lineBreak, U = d.isNewLine, he = d.tokContexts,
|
|
5874
|
+
var d = h.acorn || vh, y = gh(d), u = d.tokTypes, S = d.keywordTypes, P = d.isIdentifierStart, M = d.lineBreak, U = d.isNewLine, he = d.tokContexts, Ne = d.isIdentifierChar, R = y.tokTypes, re = y.tokContexts, de = y.keywordsRegExp, ge = y.tokenIsLiteralPropertyName, We = y.tokenIsTemplate, Ar = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, St = y.tokenIsKeywordOrIdentifier, Cr = y.tokenIsTSTypeOperator;
|
|
5875
5875
|
function Er(_, pe, ne) {
|
|
5876
5876
|
ne === void 0 && (ne = _.length);
|
|
5877
5877
|
for (var te = pe; te < ne; te++) {
|
|
@@ -6183,7 +6183,7 @@ function Ch(e) {
|
|
|
6183
6183
|
var c = r + n.length;
|
|
6184
6184
|
if (this.input.slice(r, c) === n) {
|
|
6185
6185
|
var l = this.input.charCodeAt(c);
|
|
6186
|
-
return !(
|
|
6186
|
+
return !(Ne(l) || (64512 & l) == 55296);
|
|
6187
6187
|
}
|
|
6188
6188
|
return !1;
|
|
6189
6189
|
}, f.isAbstractConstructorSignature = function() {
|
|
@@ -7227,11 +7227,11 @@ function Ch(e) {
|
|
|
7227
7227
|
}
|
|
7228
7228
|
if (!((l = V) != null && l.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(r, n, c);
|
|
7229
7229
|
N && !this.compareLookaheadState(N, this.getCurLookaheadState()) || (N = this.cloneCurLookaheadState());
|
|
7230
|
-
var me = this.tryParse(function(
|
|
7230
|
+
var me = this.tryParse(function(Fe) {
|
|
7231
7231
|
var ht, pt;
|
|
7232
7232
|
G = W.tsParseTypeParameters();
|
|
7233
|
-
var
|
|
7234
|
-
return (
|
|
7233
|
+
var je = W.parseMaybeAssignOrigin(r, n, c);
|
|
7234
|
+
return (je.type !== "ArrowFunctionExpression" || (ht = je.extra) != null && ht.parenthesized) && Fe(), ((pt = G) == null ? void 0 : pt.params.length) !== 0 && W.resetStartLocationFromNode(je, G), je.typeParameters = G, je;
|
|
7235
7235
|
}, N);
|
|
7236
7236
|
if (!me.error && !me.aborted) return G && this.reportReservedArrowTypeParam(G), me.node;
|
|
7237
7237
|
if (!V && (fs(!0), !(C = this.tryParse(function() {
|
|
@@ -7381,8 +7381,8 @@ function Ch(e) {
|
|
|
7381
7381
|
N.length && !C || this.unexpected(this.lastTokStart), b && this.unexpected(b), this.checkExpressionErrors(G, !0), this.yieldPos = W || this.yieldPos, this.awaitPos = J || this.awaitPos, N.length > 1 ? ((c = this.startNodeAt(k, T)).expressions = N, this.finishNodeAt(c, "SequenceExpression", ie, me)) : c = N[0];
|
|
7382
7382
|
} else c = this.parseParenExpression();
|
|
7383
7383
|
if (this.options.preserveParens) {
|
|
7384
|
-
var
|
|
7385
|
-
return
|
|
7384
|
+
var Fe = this.startNodeAt(l, m);
|
|
7385
|
+
return Fe.expression = c, this.finishNode(Fe, "ParenthesizedExpression");
|
|
7386
7386
|
}
|
|
7387
7387
|
return c;
|
|
7388
7388
|
}, f.parseTaggedTemplateExpression = function(r, n, c, l) {
|
|
@@ -7428,7 +7428,7 @@ function Ch(e) {
|
|
|
7428
7428
|
var _t = b.tsParseTypeArgumentsInExpression();
|
|
7429
7429
|
if (!_t) return r;
|
|
7430
7430
|
if (N && !b.match(u.parenL)) return V = b.curPosition(), r;
|
|
7431
|
-
if (
|
|
7431
|
+
if (We(b.type) || b.type === u.backQuote) {
|
|
7432
7432
|
var Ni = b.parseTaggedTemplateExpression(r, n, c, k);
|
|
7433
7433
|
return Ni.typeParameters = _t, Ni;
|
|
7434
7434
|
}
|
|
@@ -7453,12 +7453,12 @@ function Ch(e) {
|
|
|
7453
7453
|
} else if (!l && this.eat(u.parenL)) {
|
|
7454
7454
|
var me = this.maybeInArrowParameters;
|
|
7455
7455
|
this.maybeInArrowParameters = !0;
|
|
7456
|
-
var
|
|
7456
|
+
var Fe = new ft(), ht = this.yieldPos, pt = this.awaitPos, je = this.awaitIdentPos;
|
|
7457
7457
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
7458
|
-
var Ei = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1,
|
|
7459
|
-
if (m && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(
|
|
7458
|
+
var Ei = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, Fe);
|
|
7459
|
+
if (m && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(Fe, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = ht, this.awaitPos = pt, this.awaitIdentPos = je, r = this.parseSubscriptAsyncArrow(n, c, Ei, x);
|
|
7460
7460
|
else {
|
|
7461
|
-
this.checkExpressionErrors(
|
|
7461
|
+
this.checkExpressionErrors(Fe, !0), this.yieldPos = ht || this.yieldPos, this.awaitPos = pt || this.awaitPos, this.awaitIdentPos = je || this.awaitIdentPos;
|
|
7462
7462
|
var Tt = this.startNodeAt(n, c);
|
|
7463
7463
|
Tt.callee = r, Tt.arguments = Ei, G && (Tt.optional = W), r = this.finishNode(Tt, "CallExpression");
|
|
7464
7464
|
}
|
|
@@ -7640,35 +7640,35 @@ function Ih(e) {
|
|
|
7640
7640
|
}
|
|
7641
7641
|
async function _e(e, t = [], i) {
|
|
7642
7642
|
const s = `${e} ${t.join(" ")}`;
|
|
7643
|
-
|
|
7643
|
+
Qe(`Execute command: ${s}`);
|
|
7644
7644
|
const { stdout: a, stderr: o } = await Eh(s);
|
|
7645
7645
|
i === void 0 ? a.trim() && console.log(a.trim()) : await $.writeFile(i, a.trim(), "utf8"), o.trim() && console.error(o.trim());
|
|
7646
7646
|
}
|
|
7647
7647
|
async function Nh() {
|
|
7648
|
-
|
|
7648
|
+
Qe("Load environment variables"), (await import("dotenv")).config();
|
|
7649
7649
|
}
|
|
7650
|
-
function
|
|
7650
|
+
function Ve(e) {
|
|
7651
7651
|
const t = "\x1B[36m", i = "\x1B[0m", s = "─".repeat(e.length + 10);
|
|
7652
7652
|
console.info(`
|
|
7653
7653
|
${t}${s}`), console.info(`🚀 ${e}`), console.info(`${s}${i}`);
|
|
7654
7654
|
}
|
|
7655
|
-
function
|
|
7655
|
+
function ze(e) {
|
|
7656
7656
|
console.info(`
|
|
7657
7657
|
✅ ${e}
|
|
7658
7658
|
`);
|
|
7659
7659
|
}
|
|
7660
|
-
function
|
|
7660
|
+
function Qe(e) {
|
|
7661
7661
|
console.info(`
|
|
7662
7662
|
▶️ ${e}`);
|
|
7663
7663
|
}
|
|
7664
7664
|
async function Kt(e) {
|
|
7665
|
-
return
|
|
7665
|
+
return JSON.parse(await $.readFile(e, "utf8"));
|
|
7666
7666
|
}
|
|
7667
7667
|
async function li(e) {
|
|
7668
|
-
return
|
|
7668
|
+
return await $.readFile(e, "utf8");
|
|
7669
7669
|
}
|
|
7670
|
-
async function
|
|
7671
|
-
return
|
|
7670
|
+
async function Ae(e, t = [], i = !1) {
|
|
7671
|
+
return Qe(`Spawn command: ${e} ${t.join(" ")}`), new Promise((s, a) => {
|
|
7672
7672
|
Nr(e, t, { stdio: "inherit" }).on("close", (h) => {
|
|
7673
7673
|
h === 0 || i ? s() : a(new Error(`${e} exited with code ${h}`));
|
|
7674
7674
|
});
|
|
@@ -7688,32 +7688,32 @@ function fi(e, t) {
|
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
7690
|
async function ms(e, t) {
|
|
7691
|
-
|
|
7691
|
+
await $.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
|
|
7692
7692
|
}
|
|
7693
7693
|
async function Tr(e, t) {
|
|
7694
|
-
|
|
7694
|
+
await $.writeFile(e, t, "utf8");
|
|
7695
7695
|
}
|
|
7696
7696
|
async function Bh() {
|
|
7697
7697
|
try {
|
|
7698
|
-
|
|
7698
|
+
Ve("Build Artifact"), await Ae("vite", ["build"]), ze("Artifact build complete.");
|
|
7699
7699
|
} catch (e) {
|
|
7700
7700
|
console.error("❌ Error building artifact.", e), process.exit(1);
|
|
7701
7701
|
}
|
|
7702
7702
|
}
|
|
7703
|
-
async function $h() {
|
|
7703
|
+
async function $h(e = !1) {
|
|
7704
7704
|
try {
|
|
7705
|
-
|
|
7706
|
-
const
|
|
7707
|
-
|
|
7708
|
-
} catch (
|
|
7709
|
-
console.error("❌ Error releasing artifact.",
|
|
7705
|
+
Ve("Release Artifact");
|
|
7706
|
+
const t = await Kt("package.json");
|
|
7707
|
+
await _r(t), await Ae("vite", ["build"]), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${t.version}"`]), await _e("git", ["push", "origin", "main:main"]), await Ae("npm", ["publish", "--access", "public"]), ze(`Version ${t.version} of artifact released.`);
|
|
7708
|
+
} catch (t) {
|
|
7709
|
+
console.error("❌ Error releasing artifact.", t), process.exit(1);
|
|
7710
7710
|
}
|
|
7711
7711
|
}
|
|
7712
7712
|
async function Uh() {
|
|
7713
7713
|
try {
|
|
7714
|
-
|
|
7714
|
+
Ve("Synchronising Artifact with GitHub");
|
|
7715
7715
|
const e = await Kt("package.json");
|
|
7716
|
-
|
|
7716
|
+
Qe("Bump artifact version"), await _r(e), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]), ze(`Version ${e.version} of artifact synchronised with GitHub.`);
|
|
7717
7717
|
} catch (e) {
|
|
7718
7718
|
console.error("❌ Error synchronising artifact with GitHub.", e), process.exit(1);
|
|
7719
7719
|
}
|
|
@@ -7722,28 +7722,24 @@ function Zh() {
|
|
|
7722
7722
|
console.log("Test artifact...");
|
|
7723
7723
|
}
|
|
7724
7724
|
async function _r(e, t = "./") {
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`ℹ️ Version bumped from ${i} to ${e.version}.`), await ms(`${t}package.json`, e);
|
|
7731
|
-
}
|
|
7732
|
-
} catch (i) {
|
|
7733
|
-
console.error("❌ Error bumping artifact version.", i);
|
|
7725
|
+
if (Qe("Bump artifact version"), e.version == null)
|
|
7726
|
+
e.version = "0.0.001", console.warn(`⚠️ Version initialised to ${e.version}.`), await ms(`${t}package.json`, e);
|
|
7727
|
+
else {
|
|
7728
|
+
const i = e.version, s = e.version.split(".");
|
|
7729
|
+
e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`ℹ️ Version bumped from ${i} to ${e.version}.`), await ms(`${t}package.json`, e);
|
|
7734
7730
|
}
|
|
7735
7731
|
}
|
|
7736
7732
|
const Lh = ["critical", "high", "moderate", "low", "unknown"];
|
|
7737
7733
|
async function qh() {
|
|
7738
7734
|
try {
|
|
7739
|
-
|
|
7735
|
+
Ve("Audit Dependencies"), await Nh(), await Ae("owasp-dependency-check", [
|
|
7740
7736
|
"--project",
|
|
7741
7737
|
"@datapos/datapos-development",
|
|
7742
7738
|
"--enableRetired",
|
|
7743
7739
|
"--nodePackageSkipDevDependencies",
|
|
7744
7740
|
"--nvdApiKey",
|
|
7745
7741
|
process.env.NVD_API_KEY ?? ""
|
|
7746
|
-
]),
|
|
7742
|
+
]), Qe("Insert OWASP Badge(s) into 'README.md'"), await Oh(), await Ae("npm", ["audit"]), ze("Dependency auditing complete.");
|
|
7747
7743
|
} catch (e) {
|
|
7748
7744
|
console.error("❌ Error auditing dependencies.", e), process.exit(1);
|
|
7749
7745
|
}
|
|
@@ -7794,14 +7790,14 @@ async function Mh(e) {
|
|
|
7794
7790
|
}
|
|
7795
7791
|
async function Hh() {
|
|
7796
7792
|
try {
|
|
7797
|
-
|
|
7793
|
+
Ve("Check Dependencies"), await Ae("npm", ["outdated"], !0), await Ae("npm-check-updates", ["-i"]), ze("Dependency checking complete.");
|
|
7798
7794
|
} catch (e) {
|
|
7799
7795
|
console.error("❌ Error checking dependencies.", e), process.exit(1);
|
|
7800
7796
|
}
|
|
7801
7797
|
}
|
|
7802
7798
|
async function Wh(e) {
|
|
7803
7799
|
try {
|
|
7804
|
-
|
|
7800
|
+
Ve("Document Dependencies");
|
|
7805
7801
|
const t = e.flatMap((i) => ["--allowed", i]);
|
|
7806
7802
|
await _e(
|
|
7807
7803
|
"license-report",
|
|
@@ -7811,7 +7807,7 @@ async function Wh(e) {
|
|
|
7811
7807
|
"license-report-recursive",
|
|
7812
7808
|
["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7813
7809
|
"licenseTree.json"
|
|
7814
|
-
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]),
|
|
7810
|
+
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), Qe("Insert licenses into 'README.md'"), await Rh(), ze("Document dependencies complete.");
|
|
7815
7811
|
} catch (t) {
|
|
7816
7812
|
console.error("❌ Error documenting dependencies.", t), process.exit(1);
|
|
7817
7813
|
}
|
|
@@ -7834,24 +7830,24 @@ async function Rh() {
|
|
|
7834
7830
|
}
|
|
7835
7831
|
async function Kh() {
|
|
7836
7832
|
try {
|
|
7837
|
-
|
|
7833
|
+
Ve("Format Code"), await Ae("prettier", ["--write", "src/"]), ze("Code formatting complete.");
|
|
7838
7834
|
} catch (e) {
|
|
7839
7835
|
console.error("❌ Error formatting code.", e), process.exit(1);
|
|
7840
7836
|
}
|
|
7841
7837
|
}
|
|
7842
7838
|
async function Gh() {
|
|
7843
7839
|
try {
|
|
7844
|
-
|
|
7840
|
+
Ve("Lint Code"), await Ae("eslint", ["."]), ze("Code linting complete.");
|
|
7845
7841
|
} catch (e) {
|
|
7846
7842
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
7847
7843
|
}
|
|
7848
7844
|
}
|
|
7849
7845
|
async function Jh(e) {
|
|
7850
7846
|
try {
|
|
7851
|
-
|
|
7847
|
+
Ve("Update datapos Dependencies");
|
|
7852
7848
|
for (const t of e)
|
|
7853
|
-
await
|
|
7854
|
-
|
|
7849
|
+
await Ae("npm", ["install", `@datapos/datapos-${t}@latest`]);
|
|
7850
|
+
ze("Updating datapos dependencies complete.");
|
|
7855
7851
|
} catch (t) {
|
|
7856
7852
|
console.error("❌ Error updating datapos dependencies.", t), process.exit(1);
|
|
7857
7853
|
}
|