@datapos/datapos-development 0.3.436 → 0.3.437
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.
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { promises as oe, existsSync as
|
|
1
|
+
import { promises as oe, existsSync as vs } from "node:fs";
|
|
2
2
|
import Ze from "node:path";
|
|
3
|
-
import { promisify as
|
|
4
|
-
import { exec as
|
|
5
|
-
import { fileURLToPath as
|
|
6
|
-
const
|
|
7
|
-
let
|
|
3
|
+
import { promisify as gs } from "node:util";
|
|
4
|
+
import { exec as bs, spawn as Ss } from "node:child_process";
|
|
5
|
+
import { fileURLToPath as Si, URL as Ps } from "node:url";
|
|
6
|
+
const Ts = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
7
|
+
let Cs = (e = 21) => {
|
|
8
8
|
let t = "", s = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
9
9
|
for (; e--; )
|
|
10
|
-
t +=
|
|
10
|
+
t += Ts[s[e] & 63];
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, _t;
|
|
13
13
|
// @__NO_SIDE_EFFECTS__
|
|
14
|
-
function
|
|
14
|
+
function ks(e) {
|
|
15
15
|
return {
|
|
16
|
-
lang: e?.lang ??
|
|
16
|
+
lang: e?.lang ?? _t?.lang,
|
|
17
17
|
message: e?.message,
|
|
18
|
-
abortEarly: e?.abortEarly ??
|
|
19
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
18
|
+
abortEarly: e?.abortEarly ?? _t?.abortEarly,
|
|
19
|
+
abortPipeEarly: e?.abortPipeEarly ?? _t?.abortPipeEarly
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
// @__NO_SIDE_EFFECTS__
|
|
23
|
-
function
|
|
24
|
-
const a = e["~run"]({ value: t }, /* @__PURE__ */
|
|
23
|
+
function $t(e, t, s) {
|
|
24
|
+
const a = e["~run"]({ value: t }, /* @__PURE__ */ ks(s));
|
|
25
25
|
return {
|
|
26
26
|
typed: a.typed,
|
|
27
27
|
success: !a.issues,
|
|
@@ -29,38 +29,38 @@ function Ut(e, t, s) {
|
|
|
29
29
|
issues: a.issues
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
let
|
|
32
|
+
let Nt;
|
|
33
33
|
// @__NO_SIDE_EFFECTS__
|
|
34
|
-
function
|
|
34
|
+
function ws(e) {
|
|
35
35
|
return {
|
|
36
|
-
lang: e?.lang ??
|
|
36
|
+
lang: e?.lang ?? Nt?.lang,
|
|
37
37
|
message: e?.message,
|
|
38
|
-
abortEarly: e?.abortEarly ??
|
|
39
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
38
|
+
abortEarly: e?.abortEarly ?? Nt?.abortEarly,
|
|
39
|
+
abortPipeEarly: e?.abortPipeEarly ?? Nt?.abortPipeEarly
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
let
|
|
42
|
+
let As;
|
|
43
43
|
// @__NO_SIDE_EFFECTS__
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function Es(e) {
|
|
45
|
+
return As?.get(e);
|
|
46
46
|
}
|
|
47
|
-
let
|
|
47
|
+
let Is;
|
|
48
48
|
// @__NO_SIDE_EFFECTS__
|
|
49
|
-
function
|
|
50
|
-
return
|
|
49
|
+
function _s(e) {
|
|
50
|
+
return Is?.get(e);
|
|
51
51
|
}
|
|
52
|
-
let
|
|
52
|
+
let Ns;
|
|
53
53
|
// @__NO_SIDE_EFFECTS__
|
|
54
|
-
function
|
|
55
|
-
return
|
|
54
|
+
function Ls(e, t) {
|
|
55
|
+
return Ns?.get(e)?.get(t);
|
|
56
56
|
}
|
|
57
57
|
// @__NO_SIDE_EFFECTS__
|
|
58
|
-
function
|
|
58
|
+
function Pi(e) {
|
|
59
59
|
const t = typeof e;
|
|
60
60
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
61
61
|
}
|
|
62
62
|
function Se(e, t, s, a, n) {
|
|
63
|
-
const p = n && "input" in n ? n.input : s.value, f = n?.expected ?? e.expects ?? null, v = n?.received ?? /* @__PURE__ */
|
|
63
|
+
const p = n && "input" in n ? n.input : s.value, f = n?.expected ?? e.expects ?? null, v = n?.received ?? /* @__PURE__ */ Pi(p), x = {
|
|
64
64
|
kind: e.kind,
|
|
65
65
|
type: e.type,
|
|
66
66
|
input: p,
|
|
@@ -73,7 +73,7 @@ function Se(e, t, s, a, n) {
|
|
|
73
73
|
lang: a.lang,
|
|
74
74
|
abortEarly: a.abortEarly,
|
|
75
75
|
abortPipeEarly: a.abortPipeEarly
|
|
76
|
-
}, o = e.kind === "schema", P = n?.message ?? e.message ?? /* @__PURE__ */
|
|
76
|
+
}, o = e.kind === "schema", P = n?.message ?? e.message ?? /* @__PURE__ */ Ls(e.reference, x.lang) ?? (o ? /* @__PURE__ */ _s(x.lang) : null) ?? a.message ?? /* @__PURE__ */ Es(x.lang);
|
|
77
77
|
P !== void 0 && (x.message = typeof P == "function" ? P(x) : P), o && (s.typed = !1), s.issues ? s.issues.push(x) : s.issues = [x];
|
|
78
78
|
}
|
|
79
79
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -82,21 +82,21 @@ function Pe(e) {
|
|
|
82
82
|
version: 1,
|
|
83
83
|
vendor: "valibot",
|
|
84
84
|
validate(t) {
|
|
85
|
-
return e["~run"]({ value: t }, /* @__PURE__ */
|
|
85
|
+
return e["~run"]({ value: t }, /* @__PURE__ */ ws());
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
// @__NO_SIDE_EFFECTS__
|
|
90
|
-
function
|
|
90
|
+
function Os(e, t) {
|
|
91
91
|
return Object.hasOwn(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
92
92
|
}
|
|
93
93
|
// @__NO_SIDE_EFFECTS__
|
|
94
|
-
function
|
|
94
|
+
function Rs(e, t) {
|
|
95
95
|
const s = [...new Set(e)];
|
|
96
96
|
return s.length > 1 ? `(${s.join(` ${t} `)})` : s[0] ?? "never";
|
|
97
97
|
}
|
|
98
98
|
// @__NO_SIDE_EFFECTS__
|
|
99
|
-
function
|
|
99
|
+
function Ms(e, t, s) {
|
|
100
100
|
return typeof e.fallback == "function" ? e.fallback(t, s) : e.fallback;
|
|
101
101
|
}
|
|
102
102
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -145,11 +145,11 @@ function Me(e, t) {
|
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
// @__NO_SIDE_EFFECTS__
|
|
148
|
-
function
|
|
148
|
+
function Ti(e) {
|
|
149
149
|
return {
|
|
150
150
|
kind: "schema",
|
|
151
151
|
type: "boolean",
|
|
152
|
-
reference:
|
|
152
|
+
reference: Ti,
|
|
153
153
|
expects: "boolean",
|
|
154
154
|
async: !1,
|
|
155
155
|
message: e,
|
|
@@ -167,7 +167,7 @@ function Ge(e, t) {
|
|
|
167
167
|
kind: "schema",
|
|
168
168
|
type: "literal",
|
|
169
169
|
reference: Ge,
|
|
170
|
-
expects: /* @__PURE__ */
|
|
170
|
+
expects: /* @__PURE__ */ Pi(e),
|
|
171
171
|
async: !1,
|
|
172
172
|
literal: e,
|
|
173
173
|
message: t,
|
|
@@ -251,7 +251,7 @@ function xe(e, t) {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
x.typed || (s.typed = !1), s.value[p] = x.value;
|
|
254
|
-
} else if (f.fallback !== void 0) s.value[p] = /* @__PURE__ */
|
|
254
|
+
} else if (f.fallback !== void 0) s.value[p] = /* @__PURE__ */ Ms(f);
|
|
255
255
|
else if (f.type !== "exact_optional" && f.type !== "optional" && f.type !== "nullish" && (Se(this, "key", s, a, {
|
|
256
256
|
input: void 0,
|
|
257
257
|
expected: `"${p}"`,
|
|
@@ -289,11 +289,11 @@ function pe(e, t) {
|
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
// @__NO_SIDE_EFFECTS__
|
|
292
|
-
function
|
|
292
|
+
function Ht(e, t, s) {
|
|
293
293
|
return {
|
|
294
294
|
kind: "schema",
|
|
295
295
|
type: "record",
|
|
296
|
-
reference:
|
|
296
|
+
reference: Ht,
|
|
297
297
|
expects: "Object",
|
|
298
298
|
async: !1,
|
|
299
299
|
key: e,
|
|
@@ -306,7 +306,7 @@ function $t(e, t, s) {
|
|
|
306
306
|
const p = a.value;
|
|
307
307
|
if (p && typeof p == "object") {
|
|
308
308
|
a.typed = !0, a.value = {};
|
|
309
|
-
for (const f in p) if (/* @__PURE__ */
|
|
309
|
+
for (const f in p) if (/* @__PURE__ */ Os(p, f)) {
|
|
310
310
|
const v = p[f], x = this.key["~run"]({ value: f }, n);
|
|
311
311
|
if (x.issues) {
|
|
312
312
|
const P = {
|
|
@@ -364,18 +364,18 @@ function V(e) {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
// @__NO_SIDE_EFFECTS__
|
|
367
|
-
function
|
|
367
|
+
function ni(e) {
|
|
368
368
|
let t;
|
|
369
369
|
if (e) for (const s of e) t ? t.push(...s.issues) : t = s.issues;
|
|
370
370
|
return t;
|
|
371
371
|
}
|
|
372
372
|
// @__NO_SIDE_EFFECTS__
|
|
373
|
-
function
|
|
373
|
+
function Ci(e, t) {
|
|
374
374
|
return {
|
|
375
375
|
kind: "schema",
|
|
376
376
|
type: "union",
|
|
377
|
-
reference:
|
|
378
|
-
expects: /* @__PURE__ */
|
|
377
|
+
reference: Ci,
|
|
378
|
+
expects: /* @__PURE__ */ Rs(e.map((s) => s.expects), "|"),
|
|
379
379
|
async: !1,
|
|
380
380
|
options: e,
|
|
381
381
|
message: t,
|
|
@@ -396,26 +396,26 @@ function Ti(e, t) {
|
|
|
396
396
|
if (n) return n;
|
|
397
397
|
if (p) {
|
|
398
398
|
if (p.length === 1) return p[0];
|
|
399
|
-
Se(this, "type", s, a, { issues: /* @__PURE__ */
|
|
399
|
+
Se(this, "type", s, a, { issues: /* @__PURE__ */ ni(p) }), s.typed = !0;
|
|
400
400
|
} else {
|
|
401
401
|
if (f?.length === 1) return f[0];
|
|
402
|
-
Se(this, "type", s, a, { issues: /* @__PURE__ */
|
|
402
|
+
Se(this, "type", s, a, { issues: /* @__PURE__ */ ni(f) });
|
|
403
403
|
}
|
|
404
404
|
return s;
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
const Te = (e) => /* @__PURE__ */
|
|
408
|
+
const Te = (e) => /* @__PURE__ */ Ci(e.map((t) => /* @__PURE__ */ Ge(t))), Ds = /* @__PURE__ */ xe({
|
|
409
409
|
"en-au": /* @__PURE__ */ V(),
|
|
410
410
|
"en-gb": /* @__PURE__ */ V(),
|
|
411
411
|
"en-us": /* @__PURE__ */ V(),
|
|
412
412
|
"es-es": /* @__PURE__ */ V()
|
|
413
|
-
}),
|
|
413
|
+
}), ft = /* @__PURE__ */ xe({
|
|
414
414
|
"en-au": /* @__PURE__ */ pe(/* @__PURE__ */ V()),
|
|
415
415
|
"en-gb": /* @__PURE__ */ pe(/* @__PURE__ */ V()),
|
|
416
416
|
"en-us": /* @__PURE__ */ pe(/* @__PURE__ */ V()),
|
|
417
417
|
"es-es": /* @__PURE__ */ pe(/* @__PURE__ */ V())
|
|
418
|
-
}),
|
|
418
|
+
}), Vs = Te(["amber", "green", "red", "other"]), js = Te([
|
|
419
419
|
"alpha",
|
|
420
420
|
"beta",
|
|
421
421
|
"generalAvailability",
|
|
@@ -451,42 +451,61 @@ Te([
|
|
|
451
451
|
"presenterPresentation",
|
|
452
452
|
"tool"
|
|
453
453
|
]);
|
|
454
|
-
const
|
|
454
|
+
const Fs = /* @__PURE__ */ xe({
|
|
455
455
|
id: /* @__PURE__ */ V(),
|
|
456
|
-
color:
|
|
456
|
+
color: Vs,
|
|
457
457
|
label: /* @__PURE__ */ V()
|
|
458
|
-
}),
|
|
458
|
+
}), ki = {
|
|
459
459
|
id: /* @__PURE__ */ V(),
|
|
460
|
-
label:
|
|
461
|
-
description:
|
|
460
|
+
label: ft,
|
|
461
|
+
description: ft,
|
|
462
462
|
firstCreatedAt: /* @__PURE__ */ pe(/* @__PURE__ */ Ve()),
|
|
463
463
|
icon: /* @__PURE__ */ ye(/* @__PURE__ */ V()),
|
|
464
464
|
iconDark: /* @__PURE__ */ ye(/* @__PURE__ */ V()),
|
|
465
465
|
lastUpdatedAt: /* @__PURE__ */ ye(/* @__PURE__ */ Ve()),
|
|
466
|
-
status: /* @__PURE__ */ ye(
|
|
467
|
-
statusId:
|
|
468
|
-
},
|
|
466
|
+
status: /* @__PURE__ */ ye(Fs),
|
|
467
|
+
statusId: js
|
|
468
|
+
}, wi = /* @__PURE__ */ xe({
|
|
469
469
|
id: /* @__PURE__ */ V(),
|
|
470
|
-
label:
|
|
471
|
-
description:
|
|
470
|
+
label: ft,
|
|
471
|
+
description: ft,
|
|
472
472
|
icon: /* @__PURE__ */ ye(/* @__PURE__ */ V()),
|
|
473
473
|
iconDark: /* @__PURE__ */ ye(/* @__PURE__ */ V()),
|
|
474
474
|
order: /* @__PURE__ */ Ve(),
|
|
475
475
|
path: /* @__PURE__ */ V()
|
|
476
476
|
});
|
|
477
477
|
Te(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
478
|
-
const
|
|
479
|
-
...
|
|
478
|
+
const Gt = {
|
|
479
|
+
...ki,
|
|
480
480
|
version: /* @__PURE__ */ V()
|
|
481
|
-
},
|
|
482
|
-
|
|
481
|
+
}, Bs = Te(["list"]), Us = /* @__PURE__ */ xe({
|
|
482
|
+
...ki,
|
|
483
|
+
typeId: /* @__PURE__ */ Ge("contextModelGroup"),
|
|
484
|
+
modelRefs: /* @__PURE__ */ Me(wi),
|
|
485
|
+
order: /* @__PURE__ */ Ve()
|
|
486
|
+
}), $s = /* @__PURE__ */ xe({
|
|
487
|
+
...Gt,
|
|
488
|
+
typeId: /* @__PURE__ */ Ge("context"),
|
|
489
|
+
models: /* @__PURE__ */ Me(Us),
|
|
490
|
+
operations: /* @__PURE__ */ Me(Bs)
|
|
491
|
+
}), qs = Te(["list", "render", "setColorMode"]), Hs = /* @__PURE__ */ xe({
|
|
492
|
+
...Gt,
|
|
493
|
+
typeId: /* @__PURE__ */ Ge("presenter"),
|
|
494
|
+
presentations: /* @__PURE__ */ Me(wi),
|
|
495
|
+
operations: /* @__PURE__ */ Me(qs)
|
|
496
|
+
}), K = (e) => new Map(Object.entries(e));
|
|
497
|
+
K({ "en-gb": "Delimited Text" }), K({ "en-gb": "Entity/Event" }), K({ "en-gb": "JSON Array" }), K({ "en-gb": "SPSS" }), K({ "en-gb": "XLS" }), K({ "en-gb": "XLSX" }), K({ "en-gb": "XML" });
|
|
498
|
+
K({ "en-gb": "Newline" }), K({ "en-gb": "Carriage Return" }), K({ "en-gb": "Carriage Return/Newline" });
|
|
499
|
+
K({ "en-gb": "Colon" }), K({ "en-gb": "Comma" }), K({ "en-gb": "Exclamation Mark" }), K({ "en-gb": "Record Separator" }), K({ "en-gb": "Semicolon" }), K({ "en-gb": "Space" }), K({ "en-gb": "Tab" }), K({ "en-gb": "Underscore" }), K({ "en-gb": "Unit Separator" }), K({ "en-gb": "Vertical Bar" });
|
|
500
|
+
const Gs = Te(["apiKey", "disabled", "oAuth2", "none"]), Ks = /* @__PURE__ */ xe({
|
|
501
|
+
authMethodId: Gs,
|
|
483
502
|
activeConnectionCount: /* @__PURE__ */ pe(/* @__PURE__ */ Ve()),
|
|
484
|
-
canDescribe: /* @__PURE__ */ pe(/* @__PURE__ */
|
|
503
|
+
canDescribe: /* @__PURE__ */ pe(/* @__PURE__ */ Ti()),
|
|
485
504
|
id: /* @__PURE__ */ pe(/* @__PURE__ */ V()),
|
|
486
|
-
label: /* @__PURE__ */ pe(
|
|
505
|
+
label: /* @__PURE__ */ pe(Ds),
|
|
487
506
|
maxConnectionCount: /* @__PURE__ */ pe(/* @__PURE__ */ Ve()),
|
|
488
|
-
params: /* @__PURE__ */ pe(/* @__PURE__ */ Me(/* @__PURE__ */
|
|
489
|
-
}),
|
|
507
|
+
params: /* @__PURE__ */ pe(/* @__PURE__ */ Me(/* @__PURE__ */ Ht(/* @__PURE__ */ V(), /* @__PURE__ */ V())))
|
|
508
|
+
}), Ws = Te(["application", "curatedDataset", "database", "fileStore"]), zs = Te([
|
|
490
509
|
"abortOperation",
|
|
491
510
|
"authenticateConnection",
|
|
492
511
|
"createObject",
|
|
@@ -501,48 +520,34 @@ const Ht = {
|
|
|
501
520
|
"retrieveChunks",
|
|
502
521
|
"retrieveRecords",
|
|
503
522
|
"upsertRecords"
|
|
504
|
-
]),
|
|
505
|
-
...
|
|
523
|
+
]), Xs = Te(["bidirectional", "destination", "source", "unknown"]), Qs = /* @__PURE__ */ xe({
|
|
524
|
+
...Gt,
|
|
506
525
|
typeId: /* @__PURE__ */ Ge("connector"),
|
|
507
526
|
category: /* @__PURE__ */ ye(/* @__PURE__ */ xe({ id: /* @__PURE__ */ V(), label: /* @__PURE__ */ V() })),
|
|
508
|
-
categoryId:
|
|
509
|
-
implementations: /* @__PURE__ */
|
|
510
|
-
operations: /* @__PURE__ */ Me(
|
|
511
|
-
usageId:
|
|
527
|
+
categoryId: Ws,
|
|
528
|
+
implementations: /* @__PURE__ */ Ht(/* @__PURE__ */ V(), Ks),
|
|
529
|
+
operations: /* @__PURE__ */ Me(zs),
|
|
530
|
+
usageId: Xs,
|
|
512
531
|
vendorAccountURL: /* @__PURE__ */ ye(/* @__PURE__ */ V()),
|
|
513
532
|
vendorDocumentationURL: /* @__PURE__ */ ye(/* @__PURE__ */ V()),
|
|
514
533
|
vendorHomeURL: /* @__PURE__ */ ye(/* @__PURE__ */ V())
|
|
515
|
-
}),
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
...Ht,
|
|
522
|
-
typeId: /* @__PURE__ */ Ge("context"),
|
|
523
|
-
models: /* @__PURE__ */ Me(Ks),
|
|
524
|
-
operations: /* @__PURE__ */ Me(Gs)
|
|
525
|
-
}), zs = Te(["list", "render", "setColorMode"]), Xs = /* @__PURE__ */ xe({
|
|
526
|
-
...Ht,
|
|
527
|
-
typeId: /* @__PURE__ */ Ge("presenter"),
|
|
528
|
-
presentations: /* @__PURE__ */ Me(ki),
|
|
529
|
-
operations: /* @__PURE__ */ Me(zs)
|
|
530
|
-
}), K = (e) => new Map(Object.entries(e));
|
|
531
|
-
K({ "en-gb": "Delimited Text" }), K({ "en-gb": "Entity/Event" }), K({ "en-gb": "JSON Array" }), K({ "en-gb": "SPSS" }), K({ "en-gb": "XLS" }), K({ "en-gb": "XLSX" }), K({ "en-gb": "XML" });
|
|
532
|
-
K({ "en-gb": "Newline" }), K({ "en-gb": "Carriage Return" }), K({ "en-gb": "Carriage Return/Newline" });
|
|
533
|
-
K({ "en-gb": "Colon" }), K({ "en-gb": "Comma" }), K({ "en-gb": "Exclamation Mark" }), K({ "en-gb": "Record Separator" }), K({ "en-gb": "Semicolon" }), K({ "en-gb": "Space" }), K({ "en-gb": "Tab" }), K({ "en-gb": "Underscore" }), K({ "en-gb": "Unit Separator" }), K({ "en-gb": "Vertical Bar" });
|
|
534
|
-
var Qs = [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], wi = [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], Js = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ai = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Nt = {
|
|
534
|
+
}), pt = (e) => {
|
|
535
|
+
const t = Object.entries(e).filter((s) => typeof s[1] == "string");
|
|
536
|
+
return new Map(t);
|
|
537
|
+
};
|
|
538
|
+
pt({ "en-gb": "Application" }), pt({ "en-gb": "Curated Dataset" }), pt({ "en-gb": "Database" }), pt({ "en-gb": "File Store" });
|
|
539
|
+
var Js = [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], Ai = [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], Ys = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Ei = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Lt = {
|
|
535
540
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
536
541
|
5: "class enum extends super const export import",
|
|
537
542
|
6: "enum",
|
|
538
543
|
strict: "implements interface let package private protected public static yield",
|
|
539
544
|
strictBind: "eval arguments"
|
|
540
|
-
},
|
|
541
|
-
5:
|
|
542
|
-
"5module":
|
|
543
|
-
6:
|
|
544
|
-
},
|
|
545
|
-
function
|
|
545
|
+
}, Ot = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Zs = {
|
|
546
|
+
5: Ot,
|
|
547
|
+
"5module": Ot + " export import",
|
|
548
|
+
6: Ot + " const class extends export import super"
|
|
549
|
+
}, er = /^in(stanceof)?$/, tr = new RegExp("[" + Ei + "]"), ir = new RegExp("[" + Ei + Ys + "]");
|
|
550
|
+
function Vt(e, t) {
|
|
546
551
|
for (var s = 65536, a = 0; a < t.length; a += 2) {
|
|
547
552
|
if (s += t[a], s > e)
|
|
548
553
|
return !1;
|
|
@@ -552,10 +557,10 @@ function Dt(e, t) {
|
|
|
552
557
|
return !1;
|
|
553
558
|
}
|
|
554
559
|
function ve(e, t) {
|
|
555
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
560
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && tr.test(String.fromCharCode(e)) : t === !1 ? !1 : Vt(e, Ai);
|
|
556
561
|
}
|
|
557
562
|
function Ae(e, t) {
|
|
558
|
-
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 &&
|
|
563
|
+
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 && ir.test(String.fromCharCode(e)) : t === !1 ? !1 : Vt(e, Ai) || Vt(e, Js);
|
|
559
564
|
}
|
|
560
565
|
var O = function(t, s) {
|
|
561
566
|
s === void 0 && (s = {}), this.label = t, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
|
|
@@ -563,9 +568,9 @@ var O = function(t, s) {
|
|
|
563
568
|
function he(e, t) {
|
|
564
569
|
return new O(e, { beforeExpr: !0, binop: t });
|
|
565
570
|
}
|
|
566
|
-
var ce = { beforeExpr: !0 }, se = { startsExpr: !0 },
|
|
571
|
+
var ce = { beforeExpr: !0 }, se = { startsExpr: !0 }, qe = {};
|
|
567
572
|
function M(e, t) {
|
|
568
|
-
return t === void 0 && (t = {}), t.keyword = e,
|
|
573
|
+
return t === void 0 && (t = {}), t.keyword = e, qe[e] = new O(e, t);
|
|
569
574
|
}
|
|
570
575
|
var h = {
|
|
571
576
|
num: new O("num", se),
|
|
@@ -660,11 +665,11 @@ var h = {
|
|
|
660
665
|
_typeof: M("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
661
666
|
_void: M("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
662
667
|
_delete: M("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
663
|
-
}, Z = /\r\n?|\n|\u2028|\u2029/,
|
|
668
|
+
}, Z = /\r\n?|\n|\u2028|\u2029/, Ii = new RegExp(Z.source, "g");
|
|
664
669
|
function Fe(e) {
|
|
665
670
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
666
671
|
}
|
|
667
|
-
function
|
|
672
|
+
function _i(e, t, s) {
|
|
668
673
|
s === void 0 && (s = e.length);
|
|
669
674
|
for (var a = t; a < s; a++) {
|
|
670
675
|
var n = e.charCodeAt(a);
|
|
@@ -673,18 +678,18 @@ function Ii(e, t, s) {
|
|
|
673
678
|
}
|
|
674
679
|
return -1;
|
|
675
680
|
}
|
|
676
|
-
var
|
|
677
|
-
return
|
|
678
|
-
}),
|
|
679
|
-
return
|
|
680
|
-
}),
|
|
681
|
+
var Kt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, X = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ni = Object.prototype, sr = Ni.hasOwnProperty, rr = Ni.toString, Ke = Object.hasOwn || (function(e, t) {
|
|
682
|
+
return sr.call(e, t);
|
|
683
|
+
}), oi = Array.isArray || (function(e) {
|
|
684
|
+
return rr.call(e) === "[object Array]";
|
|
685
|
+
}), ui = /* @__PURE__ */ Object.create(null);
|
|
681
686
|
function Re(e) {
|
|
682
|
-
return
|
|
687
|
+
return ui[e] || (ui[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
683
688
|
}
|
|
684
689
|
function Ee(e) {
|
|
685
690
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
686
691
|
}
|
|
687
|
-
var
|
|
692
|
+
var ar = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, He = function(t, s) {
|
|
688
693
|
this.line = t, this.column = s;
|
|
689
694
|
};
|
|
690
695
|
He.prototype.offset = function(t) {
|
|
@@ -693,15 +698,15 @@ He.prototype.offset = function(t) {
|
|
|
693
698
|
var rt = function(t, s, a) {
|
|
694
699
|
this.start = s, this.end = a, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
695
700
|
};
|
|
696
|
-
function
|
|
701
|
+
function Wt(e, t) {
|
|
697
702
|
for (var s = 1, a = 0; ; ) {
|
|
698
|
-
var n =
|
|
703
|
+
var n = _i(e, a, t);
|
|
699
704
|
if (n < 0)
|
|
700
705
|
return new He(s, t - a);
|
|
701
706
|
++s, a = n;
|
|
702
707
|
}
|
|
703
708
|
}
|
|
704
|
-
var
|
|
709
|
+
var dt = {
|
|
705
710
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
706
711
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
707
712
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
|
@@ -797,21 +802,21 @@ var ft = {
|
|
|
797
802
|
// When enabled, parenthesized expressions are represented by
|
|
798
803
|
// (non-standard) ParenthesizedExpression nodes
|
|
799
804
|
preserveParens: !1
|
|
800
|
-
},
|
|
801
|
-
function
|
|
805
|
+
}, hi = !1;
|
|
806
|
+
function nr(e) {
|
|
802
807
|
var t = {};
|
|
803
|
-
for (var s in
|
|
804
|
-
t[s] = e && Ke(e, s) ? e[s] :
|
|
805
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
806
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
808
|
+
for (var s in dt)
|
|
809
|
+
t[s] = e && Ke(e, s) ? e[s] : dt[s];
|
|
810
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!hi && typeof console == "object" && console.warn && (hi = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
811
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), oi(t.onToken)) {
|
|
807
812
|
var a = t.onToken;
|
|
808
813
|
t.onToken = function(n) {
|
|
809
814
|
return a.push(n);
|
|
810
815
|
};
|
|
811
816
|
}
|
|
812
|
-
return
|
|
817
|
+
return oi(t.onComment) && (t.onComment = or(t, t.onComment)), t;
|
|
813
818
|
}
|
|
814
|
-
function
|
|
819
|
+
function or(e, t) {
|
|
815
820
|
return function(s, a, n, p, f, v) {
|
|
816
821
|
var x = {
|
|
817
822
|
type: s ? "Block" : "Line",
|
|
@@ -822,16 +827,16 @@ function nr(e, t) {
|
|
|
822
827
|
e.locations && (x.loc = new rt(this, f, v)), e.ranges && (x.range = [n, p]), t.push(x);
|
|
823
828
|
};
|
|
824
829
|
}
|
|
825
|
-
var it = 1, We = 2,
|
|
826
|
-
function
|
|
827
|
-
return We | (e ?
|
|
830
|
+
var it = 1, We = 2, zt = 4, Li = 8, Xt = 16, Oi = 32, St = 64, Ri = 128, Be = 256, at = 512, Pt = it | We | Be;
|
|
831
|
+
function Qt(e, t) {
|
|
832
|
+
return We | (e ? zt : 0) | (t ? Li : 0);
|
|
828
833
|
}
|
|
829
|
-
var
|
|
830
|
-
this.options = t =
|
|
834
|
+
var mt = 0, Jt = 1, _e = 2, Mi = 3, Di = 4, Vi = 5, H = function(t, s, a) {
|
|
835
|
+
this.options = t = nr(t), this.sourceFile = t.sourceFile, this.keywords = Re(Zs[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
831
836
|
var n = "";
|
|
832
|
-
t.allowReserved !== !0 && (n =
|
|
833
|
-
var p = (n ? n + " " : "") +
|
|
834
|
-
this.reservedWordsStrict = Re(p), this.reservedWordsStrictBind = Re(p + " " +
|
|
837
|
+
t.allowReserved !== !0 && (n = Lt[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = Re(n);
|
|
838
|
+
var p = (n ? n + " " : "") + Lt.strict;
|
|
839
|
+
this.reservedWordsStrict = Re(p), this.reservedWordsStrictBind = Re(p + " " + Lt.strictBind), this.input = String(s), this.containsEsc = !1, a ? (this.pos = a, this.lineStart = this.input.lastIndexOf(`
|
|
835
840
|
`, a - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(Z).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = h.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(it), this.regexpState = null, this.privateNameStack = [];
|
|
836
841
|
}, Ce = { 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 } };
|
|
837
842
|
H.prototype.parse = function() {
|
|
@@ -842,10 +847,10 @@ Ce.inFunction.get = function() {
|
|
|
842
847
|
return (this.currentVarScope().flags & We) > 0;
|
|
843
848
|
};
|
|
844
849
|
Ce.inGenerator.get = function() {
|
|
845
|
-
return (this.currentVarScope().flags &
|
|
850
|
+
return (this.currentVarScope().flags & Li) > 0;
|
|
846
851
|
};
|
|
847
852
|
Ce.inAsync.get = function() {
|
|
848
|
-
return (this.currentVarScope().flags &
|
|
853
|
+
return (this.currentVarScope().flags & zt) > 0;
|
|
849
854
|
};
|
|
850
855
|
Ce.canAwait.get = function() {
|
|
851
856
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
@@ -853,16 +858,16 @@ Ce.canAwait.get = function() {
|
|
|
853
858
|
if (s & (Be | at))
|
|
854
859
|
return !1;
|
|
855
860
|
if (s & We)
|
|
856
|
-
return (s &
|
|
861
|
+
return (s & zt) > 0;
|
|
857
862
|
}
|
|
858
863
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
859
864
|
};
|
|
860
865
|
Ce.allowSuper.get = function() {
|
|
861
866
|
var e = this.currentThisScope(), t = e.flags;
|
|
862
|
-
return (t &
|
|
867
|
+
return (t & St) > 0 || this.options.allowSuperOutsideMethod;
|
|
863
868
|
};
|
|
864
869
|
Ce.allowDirectSuper.get = function() {
|
|
865
|
-
return (this.currentThisScope().flags &
|
|
870
|
+
return (this.currentThisScope().flags & Ri) > 0;
|
|
866
871
|
};
|
|
867
872
|
Ce.treatFunctionsAsVar.get = function() {
|
|
868
873
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -870,7 +875,7 @@ Ce.treatFunctionsAsVar.get = function() {
|
|
|
870
875
|
Ce.allowNewDotTarget.get = function() {
|
|
871
876
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
872
877
|
var t = this.scopeStack[e], s = t.flags;
|
|
873
|
-
if (s & (Be | at) || s & We && !(s &
|
|
878
|
+
if (s & (Be | at) || s & We && !(s & Xt))
|
|
874
879
|
return !0;
|
|
875
880
|
}
|
|
876
881
|
return !1;
|
|
@@ -895,13 +900,13 @@ H.tokenizer = function(t, s) {
|
|
|
895
900
|
return new this(s, t);
|
|
896
901
|
};
|
|
897
902
|
Object.defineProperties(H.prototype, Ce);
|
|
898
|
-
var ee = H.prototype,
|
|
903
|
+
var ee = H.prototype, ur = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
899
904
|
ee.strictDirective = function(e) {
|
|
900
905
|
if (this.options.ecmaVersion < 5)
|
|
901
906
|
return !1;
|
|
902
907
|
for (; ; ) {
|
|
903
908
|
X.lastIndex = e, e += X.exec(this.input)[0].length;
|
|
904
|
-
var t =
|
|
909
|
+
var t = ur.exec(this.input.slice(e));
|
|
905
910
|
if (!t)
|
|
906
911
|
return !1;
|
|
907
912
|
if ((t[1] || t[2]) === "use strict") {
|
|
@@ -944,7 +949,7 @@ ee.expect = function(e) {
|
|
|
944
949
|
ee.unexpected = function(e) {
|
|
945
950
|
this.raise(e ?? this.start, "Unexpected token");
|
|
946
951
|
};
|
|
947
|
-
var
|
|
952
|
+
var Tt = function() {
|
|
948
953
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
949
954
|
};
|
|
950
955
|
ee.checkPatternErrors = function(e, t) {
|
|
@@ -982,7 +987,7 @@ w.parseTopLevel = function(e) {
|
|
|
982
987
|
}
|
|
983
988
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
984
989
|
};
|
|
985
|
-
var
|
|
990
|
+
var Yt = { kind: "loop" }, hr = { kind: "switch" };
|
|
986
991
|
w.isLet = function(e) {
|
|
987
992
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
988
993
|
return !1;
|
|
@@ -1000,7 +1005,7 @@ w.isLet = function(e) {
|
|
|
1000
1005
|
if (a === 92 || a > 55295 && a < 56320)
|
|
1001
1006
|
return !0;
|
|
1002
1007
|
var p = this.input.slice(s, n);
|
|
1003
|
-
if (!
|
|
1008
|
+
if (!er.test(p))
|
|
1004
1009
|
return !0;
|
|
1005
1010
|
}
|
|
1006
1011
|
return !1;
|
|
@@ -1117,12 +1122,12 @@ w.parseDebuggerStatement = function(e) {
|
|
|
1117
1122
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
1118
1123
|
};
|
|
1119
1124
|
w.parseDoStatement = function(e) {
|
|
1120
|
-
return this.next(), this.labels.push(
|
|
1125
|
+
return this.next(), this.labels.push(Yt), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(h._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(h.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
1121
1126
|
};
|
|
1122
1127
|
w.parseForStatement = function(e) {
|
|
1123
1128
|
this.next();
|
|
1124
1129
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
1125
|
-
if (this.labels.push(
|
|
1130
|
+
if (this.labels.push(Yt), this.enterScope(0), this.expect(h.parenL), this.type === h.semi)
|
|
1126
1131
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
1127
1132
|
var s = this.isLet();
|
|
1128
1133
|
if (this.type === h._var || this.type === h._const || s) {
|
|
@@ -1134,14 +1139,14 @@ w.parseForStatement = function(e) {
|
|
|
1134
1139
|
var x = this.startNode();
|
|
1135
1140
|
return this.next(), v === "await using" && this.next(), this.parseVar(x, !0, v), this.finishNode(x, "VariableDeclaration"), this.parseForAfterInit(e, x, t);
|
|
1136
1141
|
}
|
|
1137
|
-
var o = this.containsEsc, P = new
|
|
1142
|
+
var o = this.containsEsc, P = new Tt(), I = this.start, B = t > -1 ? this.parseExprSubscripts(P, "await") : this.parseExpression(!0, P);
|
|
1138
1143
|
return this.type === h._in || (f = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === h._in && this.unexpected(t), e.await = !0) : f && this.options.ecmaVersion >= 8 && (B.start === I && !o && B.type === "Identifier" && B.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), p && f && this.raise(B.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(B, !1, P), this.checkLValPattern(B), this.parseForIn(e, B)) : (this.checkExpressionErrors(P, !0), t > -1 && this.unexpected(t), this.parseFor(e, B));
|
|
1139
1144
|
};
|
|
1140
1145
|
w.parseForAfterInit = function(e, t, s) {
|
|
1141
1146
|
return (this.type === h._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === h._in ? s > -1 && this.unexpected(s) : e.await = s > -1), this.parseForIn(e, t)) : (s > -1 && this.unexpected(s), this.parseFor(e, t));
|
|
1142
1147
|
};
|
|
1143
1148
|
w.parseFunctionStatement = function(e, t, s) {
|
|
1144
|
-
return this.next(), this.parseFunction(e, et | (s ? 0 :
|
|
1149
|
+
return this.next(), this.parseFunction(e, et | (s ? 0 : jt), !1, t);
|
|
1145
1150
|
};
|
|
1146
1151
|
w.parseIfStatement = function(e) {
|
|
1147
1152
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(h._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
@@ -1150,7 +1155,7 @@ w.parseReturnStatement = function(e) {
|
|
|
1150
1155
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(h.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
|
|
1151
1156
|
};
|
|
1152
1157
|
w.parseSwitchStatement = function(e) {
|
|
1153
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(h.braceL), this.labels.push(
|
|
1158
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(h.braceL), this.labels.push(hr), this.enterScope(0);
|
|
1154
1159
|
for (var t, s = !1; this.type !== h.braceR; )
|
|
1155
1160
|
if (this.type === h._case || this.type === h._default) {
|
|
1156
1161
|
var a = this.type === h._case;
|
|
@@ -1162,10 +1167,10 @@ w.parseSwitchStatement = function(e) {
|
|
|
1162
1167
|
w.parseThrowStatement = function(e) {
|
|
1163
1168
|
return this.next(), Z.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
1164
1169
|
};
|
|
1165
|
-
var
|
|
1170
|
+
var cr = [];
|
|
1166
1171
|
w.parseCatchClauseParam = function() {
|
|
1167
1172
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
1168
|
-
return this.enterScope(t ?
|
|
1173
|
+
return this.enterScope(t ? Oi : 0), this.checkLValPattern(e, t ? Di : _e), this.expect(h.parenR), e;
|
|
1169
1174
|
};
|
|
1170
1175
|
w.parseTryStatement = function(e) {
|
|
1171
1176
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === h._catch) {
|
|
@@ -1178,7 +1183,7 @@ w.parseVarStatement = function(e, t, s) {
|
|
|
1178
1183
|
return this.next(), this.parseVar(e, !1, t, s), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
1179
1184
|
};
|
|
1180
1185
|
w.parseWhileStatement = function(e) {
|
|
1181
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
1186
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Yt), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
1182
1187
|
};
|
|
1183
1188
|
w.parseWithStatement = function(e) {
|
|
1184
1189
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
@@ -1229,13 +1234,13 @@ w.parseVar = function(e, t, s, a) {
|
|
|
1229
1234
|
return e;
|
|
1230
1235
|
};
|
|
1231
1236
|
w.parseVarId = function(e, t) {
|
|
1232
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
1237
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Jt : _e, !1);
|
|
1233
1238
|
};
|
|
1234
|
-
var et = 1,
|
|
1239
|
+
var et = 1, jt = 2, ji = 4;
|
|
1235
1240
|
w.parseFunction = function(e, t, s, a, n) {
|
|
1236
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !a) && (this.type === h.star && t &
|
|
1241
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !a) && (this.type === h.star && t & jt && this.unexpected(), e.generator = this.eat(h.star)), this.options.ecmaVersion >= 8 && (e.async = !!a), t & et && (e.id = t & ji && this.type !== h.name ? null : this.parseIdent(), e.id && !(t & jt) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Jt : _e : Mi));
|
|
1237
1242
|
var p = this.yieldPos, f = this.awaitPos, v = this.awaitIdentPos;
|
|
1238
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
1243
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Qt(e.async, e.generator)), t & et || (e.id = this.type === h.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, s, !1, n), this.yieldPos = p, this.awaitPos = f, this.awaitIdentPos = v, this.finishNode(e, t & et ? "FunctionDeclaration" : "FunctionExpression");
|
|
1239
1244
|
};
|
|
1240
1245
|
w.parseFunctionParams = function(e) {
|
|
1241
1246
|
this.expect(h.parenL), e.params = this.parseBindingList(h.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -1247,7 +1252,7 @@ w.parseClass = function(e, t) {
|
|
|
1247
1252
|
var a = this.enterClassBody(), n = this.startNode(), p = !1;
|
|
1248
1253
|
for (n.body = [], this.expect(h.braceL); this.type !== h.braceR; ) {
|
|
1249
1254
|
var f = this.parseClassElement(e.superClass !== null);
|
|
1250
|
-
f && (n.body.push(f), f.type === "MethodDefinition" && f.kind === "constructor" ? (p && this.raiseRecoverable(f.start, "Duplicate constructor in the same class"), p = !0) : f.key && f.key.type === "PrivateIdentifier" &&
|
|
1255
|
+
f && (n.body.push(f), f.type === "MethodDefinition" && f.kind === "constructor" ? (p && this.raiseRecoverable(f.start, "Duplicate constructor in the same class"), p = !0) : f.key && f.key.type === "PrivateIdentifier" && pr(a, f) && this.raiseRecoverable(f.key.start, "Identifier '#" + f.key.name + "' has already been declared"));
|
|
1251
1256
|
}
|
|
1252
1257
|
return this.strict = s, this.next(), e.body = this.finishNode(n, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
1253
1258
|
};
|
|
@@ -1265,7 +1270,7 @@ w.parseClassElement = function(e) {
|
|
|
1265
1270
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? f = x : a = x);
|
|
1266
1271
|
}
|
|
1267
1272
|
if (a ? (s.computed = !1, s.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), s.key.name = a, this.finishNode(s.key, "Identifier")) : this.parseClassElementName(s), t < 13 || this.type === h.parenL || f !== "method" || n || p) {
|
|
1268
|
-
var o = !s.static &&
|
|
1273
|
+
var o = !s.static && yt(s, "constructor"), P = o && e;
|
|
1269
1274
|
o && f !== "method" && this.raise(s.key.start, "Constructor can't have get/set modifier"), s.kind = o ? "constructor" : f, this.parseClassMethod(s, n, p, P);
|
|
1270
1275
|
} else
|
|
1271
1276
|
this.parseClassField(s);
|
|
@@ -1279,17 +1284,17 @@ w.parseClassElementName = function(e) {
|
|
|
1279
1284
|
};
|
|
1280
1285
|
w.parseClassMethod = function(e, t, s, a) {
|
|
1281
1286
|
var n = e.key;
|
|
1282
|
-
e.kind === "constructor" ? (t && this.raise(n.start, "Constructor can't be a generator"), s && this.raise(n.start, "Constructor can't be an async method")) : e.static &&
|
|
1287
|
+
e.kind === "constructor" ? (t && this.raise(n.start, "Constructor can't be a generator"), s && this.raise(n.start, "Constructor can't be an async method")) : e.static && yt(e, "prototype") && this.raise(n.start, "Classes may not have a static property named prototype");
|
|
1283
1288
|
var p = e.value = this.parseMethod(t, s, a);
|
|
1284
1289
|
return e.kind === "get" && p.params.length !== 0 && this.raiseRecoverable(p.start, "getter should have no params"), e.kind === "set" && p.params.length !== 1 && this.raiseRecoverable(p.start, "setter should have exactly one param"), e.kind === "set" && p.params[0].type === "RestElement" && this.raiseRecoverable(p.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
1285
1290
|
};
|
|
1286
1291
|
w.parseClassField = function(e) {
|
|
1287
|
-
return
|
|
1292
|
+
return yt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && yt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(h.eq) ? (this.enterScope(at | St), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
1288
1293
|
};
|
|
1289
1294
|
w.parseClassStaticBlock = function(e) {
|
|
1290
1295
|
e.body = [];
|
|
1291
1296
|
var t = this.labels;
|
|
1292
|
-
for (this.labels = [], this.enterScope(Be |
|
|
1297
|
+
for (this.labels = [], this.enterScope(Be | St); this.type !== h.braceR; ) {
|
|
1293
1298
|
var s = this.parseStatement(null);
|
|
1294
1299
|
e.body.push(s);
|
|
1295
1300
|
}
|
|
@@ -1313,11 +1318,11 @@ w.exitClassBody = function() {
|
|
|
1313
1318
|
Ke(t, f.name) || (n ? n.used.push(f) : this.raiseRecoverable(f.start, "Private field '#" + f.name + "' must be declared in an enclosing class"));
|
|
1314
1319
|
}
|
|
1315
1320
|
};
|
|
1316
|
-
function
|
|
1321
|
+
function pr(e, t) {
|
|
1317
1322
|
var s = t.key.name, a = e[s], n = "true";
|
|
1318
1323
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (n = (t.static ? "s" : "i") + t.kind), a === "iget" && n === "iset" || a === "iset" && n === "iget" || a === "sget" && n === "sset" || a === "sset" && n === "sget" ? (e[s] = "true", !1) : a ? !0 : (e[s] = n, !1);
|
|
1319
1324
|
}
|
|
1320
|
-
function
|
|
1325
|
+
function yt(e, t) {
|
|
1321
1326
|
var s = e.computed, a = e.key;
|
|
1322
1327
|
return !s && (a.type === "Identifier" && a.name === t || a.type === "Literal" && a.value === t);
|
|
1323
1328
|
}
|
|
@@ -1352,7 +1357,7 @@ w.parseExportDefaultDeclaration = function() {
|
|
|
1352
1357
|
var e;
|
|
1353
1358
|
if (this.type === h._function || (e = this.isAsyncFunction())) {
|
|
1354
1359
|
var t = this.startNode();
|
|
1355
|
-
return this.next(), e && this.next(), this.parseFunction(t, et |
|
|
1360
|
+
return this.next(), e && this.next(), this.parseFunction(t, et | ji, !1, e);
|
|
1356
1361
|
} else if (this.type === h._class) {
|
|
1357
1362
|
var s = this.startNode();
|
|
1358
1363
|
return this.parseClass(s, "nullableID");
|
|
@@ -1410,7 +1415,7 @@ w.parseExportSpecifiers = function(e) {
|
|
|
1410
1415
|
return t;
|
|
1411
1416
|
};
|
|
1412
1417
|
w.parseImport = function(e) {
|
|
1413
|
-
return this.next(), this.type === h.string ? (e.specifiers =
|
|
1418
|
+
return this.next(), this.type === h.string ? (e.specifiers = cr, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === h.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
|
|
1414
1419
|
};
|
|
1415
1420
|
w.parseImportSpecifier = function() {
|
|
1416
1421
|
var e = this.startNode();
|
|
@@ -1461,7 +1466,7 @@ w.parseImportAttribute = function() {
|
|
|
1461
1466
|
w.parseModuleExportName = function() {
|
|
1462
1467
|
if (this.options.ecmaVersion >= 13 && this.type === h.string) {
|
|
1463
1468
|
var e = this.parseLiteral(this.value);
|
|
1464
|
-
return
|
|
1469
|
+
return ar.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
1465
1470
|
}
|
|
1466
1471
|
return this.parseIdent(!0);
|
|
1467
1472
|
};
|
|
@@ -1579,11 +1584,11 @@ de.parseMaybeDefault = function(e, t, s) {
|
|
|
1579
1584
|
return a.left = s, a.right = this.parseMaybeAssign(), this.finishNode(a, "AssignmentPattern");
|
|
1580
1585
|
};
|
|
1581
1586
|
de.checkLValSimple = function(e, t, s) {
|
|
1582
|
-
t === void 0 && (t =
|
|
1583
|
-
var a = t !==
|
|
1587
|
+
t === void 0 && (t = mt);
|
|
1588
|
+
var a = t !== mt;
|
|
1584
1589
|
switch (e.type) {
|
|
1585
1590
|
case "Identifier":
|
|
1586
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (a ? "Binding " : "Assigning to ") + e.name + " in strict mode"), a && (t === _e && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), s && (Ke(s, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), s[e.name] = !0), t !==
|
|
1591
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (a ? "Binding " : "Assigning to ") + e.name + " in strict mode"), a && (t === _e && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), s && (Ke(s, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), s[e.name] = !0), t !== Vi && this.declareName(e.name, t, e.start));
|
|
1587
1592
|
break;
|
|
1588
1593
|
case "ChainExpression":
|
|
1589
1594
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -1598,7 +1603,7 @@ de.checkLValSimple = function(e, t, s) {
|
|
|
1598
1603
|
}
|
|
1599
1604
|
};
|
|
1600
1605
|
de.checkLValPattern = function(e, t, s) {
|
|
1601
|
-
switch (t === void 0 && (t =
|
|
1606
|
+
switch (t === void 0 && (t = mt), e.type) {
|
|
1602
1607
|
case "ObjectPattern":
|
|
1603
1608
|
for (var a = 0, n = e.properties; a < n.length; a += 1) {
|
|
1604
1609
|
var p = n[a];
|
|
@@ -1616,7 +1621,7 @@ de.checkLValPattern = function(e, t, s) {
|
|
|
1616
1621
|
}
|
|
1617
1622
|
};
|
|
1618
1623
|
de.checkLValInnerPattern = function(e, t, s) {
|
|
1619
|
-
switch (t === void 0 && (t =
|
|
1624
|
+
switch (t === void 0 && (t = mt), e.type) {
|
|
1620
1625
|
case "Property":
|
|
1621
1626
|
this.checkLValInnerPattern(e.value, t, s);
|
|
1622
1627
|
break;
|
|
@@ -1761,7 +1766,7 @@ N.parseMaybeAssign = function(e, t, s) {
|
|
|
1761
1766
|
this.exprAllowed = !1;
|
|
1762
1767
|
}
|
|
1763
1768
|
var a = !1, n = -1, p = -1, f = -1;
|
|
1764
|
-
t ? (n = t.parenthesizedAssign, p = t.trailingComma, f = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
1769
|
+
t ? (n = t.parenthesizedAssign, p = t.trailingComma, f = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Tt(), a = !0);
|
|
1765
1770
|
var v = this.start, x = this.startLoc;
|
|
1766
1771
|
(this.type === h.parenL || this.type === h.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
1767
1772
|
var o = this.parseMaybeConditional(e, t);
|
|
@@ -1809,7 +1814,7 @@ N.parseMaybeUnary = function(e, t, s, a) {
|
|
|
1809
1814
|
f = this.parseAwait(a), t = !0;
|
|
1810
1815
|
else if (this.type.prefix) {
|
|
1811
1816
|
var v = this.startNode(), x = this.type === h.incDec;
|
|
1812
|
-
v.operator = this.value, v.prefix = !0, this.next(), v.argument = this.parseMaybeUnary(null, !0, x, a), this.checkExpressionErrors(e, !0), x ? this.checkLValSimple(v.argument) : this.strict && v.operator === "delete" &&
|
|
1817
|
+
v.operator = this.value, v.prefix = !0, this.next(), v.argument = this.parseMaybeUnary(null, !0, x, a), this.checkExpressionErrors(e, !0), x ? this.checkLValSimple(v.argument) : this.strict && v.operator === "delete" && Fi(v.argument) ? this.raiseRecoverable(v.start, "Deleting local variable in strict mode") : v.operator === "delete" && Ft(v.argument) ? this.raiseRecoverable(v.start, "Private fields can not be deleted") : t = !0, f = this.finishNode(v, x ? "UpdateExpression" : "UnaryExpression");
|
|
1813
1818
|
} else if (!t && this.type === h.privateId)
|
|
1814
1819
|
(a || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), f = this.parsePrivateIdent(), this.type !== h._in && this.unexpected();
|
|
1815
1820
|
else {
|
|
@@ -1828,11 +1833,11 @@ N.parseMaybeUnary = function(e, t, s, a) {
|
|
|
1828
1833
|
else
|
|
1829
1834
|
return f;
|
|
1830
1835
|
};
|
|
1831
|
-
function
|
|
1832
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
1836
|
+
function Fi(e) {
|
|
1837
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Fi(e.expression);
|
|
1833
1838
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" &&
|
|
1839
|
+
function Ft(e) {
|
|
1840
|
+
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Ft(e.expression) || e.type === "ParenthesizedExpression" && Ft(e.expression);
|
|
1836
1841
|
}
|
|
1837
1842
|
N.parseExprSubscripts = function(e, t) {
|
|
1838
1843
|
var s = this.start, a = this.startLoc, n = this.parseExprAtom(e, t);
|
|
@@ -1868,7 +1873,7 @@ N.parseSubscript = function(e, t, s, a, n, p, f) {
|
|
|
1868
1873
|
var P = this.startNodeAt(t, s);
|
|
1869
1874
|
P.object = e, o ? (P.property = this.parseExpression(), this.expect(h.bracketR)) : this.type === h.privateId && e.type !== "Super" ? P.property = this.parsePrivateIdent() : P.property = this.parseIdent(this.options.allowReserved !== "never"), P.computed = !!o, v && (P.optional = x), e = this.finishNode(P, "MemberExpression");
|
|
1870
1875
|
} else if (!a && this.eat(h.parenL)) {
|
|
1871
|
-
var I = new
|
|
1876
|
+
var I = new Tt(), B = this.yieldPos, ue = this.awaitPos, me = this.awaitIdentPos;
|
|
1872
1877
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
1873
1878
|
var Ue = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1, I);
|
|
1874
1879
|
if (n && !x && this.shouldParseAsyncArrow())
|
|
@@ -1976,7 +1981,7 @@ N.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
1976
1981
|
var s = this.start, a = this.startLoc, n, p = this.options.ecmaVersion >= 8;
|
|
1977
1982
|
if (this.options.ecmaVersion >= 6) {
|
|
1978
1983
|
this.next();
|
|
1979
|
-
var f = this.start, v = this.startLoc, x = [], o = !0, P = !1, I = new
|
|
1984
|
+
var f = this.start, v = this.startLoc, x = [], o = !0, P = !1, I = new Tt(), B = this.yieldPos, ue = this.awaitPos, me;
|
|
1980
1985
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== h.parenR; )
|
|
1981
1986
|
if (o ? o = !1 : this.expect(h.comma), p && this.afterTrailingComma(h.parenR, !0)) {
|
|
1982
1987
|
P = !0;
|
|
@@ -2007,7 +2012,7 @@ N.parseParenItem = function(e) {
|
|
|
2007
2012
|
N.parseParenArrowList = function(e, t, s, a) {
|
|
2008
2013
|
return this.parseArrowExpression(this.startNodeAt(e, t), s, !1, a);
|
|
2009
2014
|
};
|
|
2010
|
-
var
|
|
2015
|
+
var lr = [];
|
|
2011
2016
|
N.parseNew = function() {
|
|
2012
2017
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
2013
2018
|
var e = this.startNode();
|
|
@@ -2018,7 +2023,7 @@ N.parseNew = function() {
|
|
|
2018
2023
|
return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), s && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
|
|
2019
2024
|
}
|
|
2020
2025
|
var a = this.start, n = this.startLoc;
|
|
2021
|
-
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), a, n, !0, !1), this.eat(h.parenL) ? e.arguments = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments =
|
|
2026
|
+
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), a, n, !0, !1), this.eat(h.parenL) ? e.arguments = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = lr, this.finishNode(e, "NewExpression");
|
|
2022
2027
|
};
|
|
2023
2028
|
N.parseTemplateElement = function(e) {
|
|
2024
2029
|
var t = e.isTagged, s = this.startNode();
|
|
@@ -2092,11 +2097,11 @@ N.initFunction = function(e) {
|
|
|
2092
2097
|
};
|
|
2093
2098
|
N.parseMethod = function(e, t, s) {
|
|
2094
2099
|
var a = this.startNode(), n = this.yieldPos, p = this.awaitPos, f = this.awaitIdentPos;
|
|
2095
|
-
return this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
2100
|
+
return this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Qt(t, a.generator) | St | (s ? Ri : 0)), this.expect(h.parenL), a.params = this.parseBindingList(h.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1), this.yieldPos = n, this.awaitPos = p, this.awaitIdentPos = f, this.finishNode(a, "FunctionExpression");
|
|
2096
2101
|
};
|
|
2097
2102
|
N.parseArrowExpression = function(e, t, s, a) {
|
|
2098
2103
|
var n = this.yieldPos, p = this.awaitPos, f = this.awaitIdentPos;
|
|
2099
|
-
return this.enterScope(
|
|
2104
|
+
return this.enterScope(Qt(s, !1) | Xt), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!s), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, a), this.yieldPos = n, this.awaitPos = p, this.awaitIdentPos = f, this.finishNode(e, "ArrowFunctionExpression");
|
|
2100
2105
|
};
|
|
2101
2106
|
N.parseFunctionBody = function(e, t, s, a) {
|
|
2102
2107
|
var n = t && this.type !== h.braceL, p = this.strict, f = !1;
|
|
@@ -2106,7 +2111,7 @@ N.parseFunctionBody = function(e, t, s, a) {
|
|
|
2106
2111
|
var v = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
2107
2112
|
(!p || v) && (f = this.strictDirective(this.end), f && v && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
2108
2113
|
var x = this.labels;
|
|
2109
|
-
this.labels = [], f && (this.strict = !0), this.checkParams(e, !p && !f && !t && !s && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id,
|
|
2114
|
+
this.labels = [], f && (this.strict = !0), this.checkParams(e, !p && !f && !t && !s && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Vi), e.body = this.parseBlock(!1, void 0, f && !p), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = x;
|
|
2110
2115
|
}
|
|
2111
2116
|
this.exitScope();
|
|
2112
2117
|
};
|
|
@@ -2121,7 +2126,7 @@ N.isSimpleParamList = function(e) {
|
|
|
2121
2126
|
N.checkParams = function(e, t) {
|
|
2122
2127
|
for (var s = /* @__PURE__ */ Object.create(null), a = 0, n = e.params; a < n.length; a += 1) {
|
|
2123
2128
|
var p = n[a];
|
|
2124
|
-
this.checkLValInnerPattern(p,
|
|
2129
|
+
this.checkLValInnerPattern(p, Jt, t ? null : s);
|
|
2125
2130
|
}
|
|
2126
2131
|
};
|
|
2127
2132
|
N.parseExprList = function(e, t, s, a) {
|
|
@@ -2137,7 +2142,7 @@ N.parseExprList = function(e, t, s, a) {
|
|
|
2137
2142
|
};
|
|
2138
2143
|
N.checkUnreserved = function(e) {
|
|
2139
2144
|
var t = e.start, s = e.end, a = e.name;
|
|
2140
|
-
if (this.inGenerator && a === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && a === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags &
|
|
2145
|
+
if (this.inGenerator && a === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && a === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Pt) && a === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (a === "arguments" || a === "await") && this.raise(t, "Cannot use " + a + " in class static initialization block"), this.keywords.test(a) && this.raise(t, "Unexpected keyword '" + a + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, s).indexOf("\\") !== -1)) {
|
|
2141
2146
|
var n = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
2142
2147
|
n.test(a) && (!this.inAsync && a === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + a + "' is reserved"));
|
|
2143
2148
|
}
|
|
@@ -2164,23 +2169,23 @@ N.parseAwait = function(e) {
|
|
|
2164
2169
|
var t = this.startNode();
|
|
2165
2170
|
return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
|
|
2166
2171
|
};
|
|
2167
|
-
var
|
|
2168
|
-
|
|
2169
|
-
var s =
|
|
2172
|
+
var xt = H.prototype;
|
|
2173
|
+
xt.raise = function(e, t) {
|
|
2174
|
+
var s = Wt(this.input, e);
|
|
2170
2175
|
t += " (" + s.line + ":" + s.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
2171
2176
|
var a = new SyntaxError(t);
|
|
2172
2177
|
throw a.pos = e, a.loc = s, a.raisedAt = this.pos, a;
|
|
2173
2178
|
};
|
|
2174
|
-
|
|
2175
|
-
|
|
2179
|
+
xt.raiseRecoverable = xt.raise;
|
|
2180
|
+
xt.curPosition = function() {
|
|
2176
2181
|
if (this.options.locations)
|
|
2177
2182
|
return new He(this.curLine, this.pos - this.lineStart);
|
|
2178
2183
|
};
|
|
2179
|
-
var De = H.prototype,
|
|
2184
|
+
var De = H.prototype, fr = function(t) {
|
|
2180
2185
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
2181
2186
|
};
|
|
2182
2187
|
De.enterScope = function(e) {
|
|
2183
|
-
this.scopeStack.push(new
|
|
2188
|
+
this.scopeStack.push(new fr(e));
|
|
2184
2189
|
};
|
|
2185
2190
|
De.exitScope = function() {
|
|
2186
2191
|
this.scopeStack.pop();
|
|
@@ -2193,20 +2198,20 @@ De.declareName = function(e, t, s) {
|
|
|
2193
2198
|
if (t === _e) {
|
|
2194
2199
|
var n = this.currentScope();
|
|
2195
2200
|
a = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags & it && delete this.undefinedExports[e];
|
|
2196
|
-
} else if (t ===
|
|
2201
|
+
} else if (t === Di) {
|
|
2197
2202
|
var p = this.currentScope();
|
|
2198
2203
|
p.lexical.push(e);
|
|
2199
|
-
} else if (t ===
|
|
2204
|
+
} else if (t === Mi) {
|
|
2200
2205
|
var f = this.currentScope();
|
|
2201
2206
|
this.treatFunctionsAsVar ? a = f.lexical.indexOf(e) > -1 : a = f.lexical.indexOf(e) > -1 || f.var.indexOf(e) > -1, f.functions.push(e);
|
|
2202
2207
|
} else
|
|
2203
2208
|
for (var v = this.scopeStack.length - 1; v >= 0; --v) {
|
|
2204
2209
|
var x = this.scopeStack[v];
|
|
2205
|
-
if (x.lexical.indexOf(e) > -1 && !(x.flags &
|
|
2210
|
+
if (x.lexical.indexOf(e) > -1 && !(x.flags & Oi && x.lexical[0] === e) || !this.treatFunctionsAsVarInScope(x) && x.functions.indexOf(e) > -1) {
|
|
2206
2211
|
a = !0;
|
|
2207
2212
|
break;
|
|
2208
2213
|
}
|
|
2209
|
-
if (x.var.push(e), this.inModule && x.flags & it && delete this.undefinedExports[e], x.flags &
|
|
2214
|
+
if (x.var.push(e), this.inModule && x.flags & it && delete this.undefinedExports[e], x.flags & Pt)
|
|
2210
2215
|
break;
|
|
2211
2216
|
}
|
|
2212
2217
|
a && this.raiseRecoverable(s, "Identifier '" + e + "' has already been declared");
|
|
@@ -2220,14 +2225,14 @@ De.currentScope = function() {
|
|
|
2220
2225
|
De.currentVarScope = function() {
|
|
2221
2226
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
2222
2227
|
var t = this.scopeStack[e];
|
|
2223
|
-
if (t.flags & (
|
|
2228
|
+
if (t.flags & (Pt | at | Be))
|
|
2224
2229
|
return t;
|
|
2225
2230
|
}
|
|
2226
2231
|
};
|
|
2227
2232
|
De.currentThisScope = function() {
|
|
2228
2233
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
2229
2234
|
var t = this.scopeStack[e];
|
|
2230
|
-
if (t.flags & (
|
|
2235
|
+
if (t.flags & (Pt | at | Be) && !(t.flags & Xt))
|
|
2231
2236
|
return t;
|
|
2232
2237
|
}
|
|
2233
2238
|
};
|
|
@@ -2240,14 +2245,14 @@ ot.startNode = function() {
|
|
|
2240
2245
|
ot.startNodeAt = function(e, t) {
|
|
2241
2246
|
return new nt(this, e, t);
|
|
2242
2247
|
};
|
|
2243
|
-
function
|
|
2248
|
+
function Bi(e, t, s, a) {
|
|
2244
2249
|
return e.type = t, e.end = s, this.options.locations && (e.loc.end = a), this.options.ranges && (e.range[1] = s), e;
|
|
2245
2250
|
}
|
|
2246
2251
|
ot.finishNode = function(e, t) {
|
|
2247
|
-
return
|
|
2252
|
+
return Bi.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
2248
2253
|
};
|
|
2249
2254
|
ot.finishNodeAt = function(e, t, s, a) {
|
|
2250
|
-
return
|
|
2255
|
+
return Bi.call(this, e, t, s, a);
|
|
2251
2256
|
};
|
|
2252
2257
|
ot.copyNode = function(e) {
|
|
2253
2258
|
var t = new nt(this, e.start, this.startLoc);
|
|
@@ -2255,58 +2260,58 @@ ot.copyNode = function(e) {
|
|
|
2255
2260
|
t[s] = e[s];
|
|
2256
2261
|
return t;
|
|
2257
2262
|
};
|
|
2258
|
-
var
|
|
2259
|
-
9:
|
|
2260
|
-
10:
|
|
2263
|
+
var dr = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", Ui = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", $i = Ui + " Extended_Pictographic", qi = $i, Hi = qi + " EBase EComp EMod EPres ExtPict", Gi = Hi, mr = Gi, yr = {
|
|
2264
|
+
9: Ui,
|
|
2265
|
+
10: $i,
|
|
2261
2266
|
11: qi,
|
|
2262
|
-
12:
|
|
2263
|
-
13:
|
|
2264
|
-
14:
|
|
2265
|
-
},
|
|
2267
|
+
12: Hi,
|
|
2268
|
+
13: Gi,
|
|
2269
|
+
14: mr
|
|
2270
|
+
}, xr = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", vr = {
|
|
2266
2271
|
9: "",
|
|
2267
2272
|
10: "",
|
|
2268
2273
|
11: "",
|
|
2269
2274
|
12: "",
|
|
2270
2275
|
13: "",
|
|
2271
|
-
14:
|
|
2272
|
-
},
|
|
2273
|
-
9:
|
|
2274
|
-
10:
|
|
2275
|
-
11:
|
|
2276
|
-
12:
|
|
2277
|
-
13:
|
|
2278
|
-
14:
|
|
2279
|
-
},
|
|
2280
|
-
function
|
|
2281
|
-
var t =
|
|
2282
|
-
binary: Re(
|
|
2283
|
-
binaryOfStrings: Re(
|
|
2276
|
+
14: xr
|
|
2277
|
+
}, ci = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Ki = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Wi = Ki + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", zi = Wi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Xi = zi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Qi = Xi + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", gr = Qi + " " + dr, br = {
|
|
2278
|
+
9: Ki,
|
|
2279
|
+
10: Wi,
|
|
2280
|
+
11: zi,
|
|
2281
|
+
12: Xi,
|
|
2282
|
+
13: Qi,
|
|
2283
|
+
14: gr
|
|
2284
|
+
}, Ji = {};
|
|
2285
|
+
function Sr(e) {
|
|
2286
|
+
var t = Ji[e] = {
|
|
2287
|
+
binary: Re(yr[e] + " " + ci),
|
|
2288
|
+
binaryOfStrings: Re(vr[e]),
|
|
2284
2289
|
nonBinary: {
|
|
2285
|
-
General_Category: Re(
|
|
2286
|
-
Script: Re(
|
|
2290
|
+
General_Category: Re(ci),
|
|
2291
|
+
Script: Re(br[e])
|
|
2287
2292
|
}
|
|
2288
2293
|
};
|
|
2289
2294
|
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;
|
|
2290
2295
|
}
|
|
2291
|
-
for (var
|
|
2292
|
-
var
|
|
2293
|
-
|
|
2296
|
+
for (var Rt = 0, pi = [9, 10, 11, 12, 13, 14]; Rt < pi.length; Rt += 1) {
|
|
2297
|
+
var Pr = pi[Rt];
|
|
2298
|
+
Sr(Pr);
|
|
2294
2299
|
}
|
|
2295
|
-
var C = H.prototype,
|
|
2300
|
+
var C = H.prototype, vt = function(t, s) {
|
|
2296
2301
|
this.parent = t, this.base = s || this;
|
|
2297
2302
|
};
|
|
2298
|
-
|
|
2303
|
+
vt.prototype.separatedFrom = function(t) {
|
|
2299
2304
|
for (var s = this; s; s = s.parent)
|
|
2300
2305
|
for (var a = t; a; a = a.parent)
|
|
2301
2306
|
if (s.base === a.base && s !== a)
|
|
2302
2307
|
return !0;
|
|
2303
2308
|
return !1;
|
|
2304
2309
|
};
|
|
2305
|
-
|
|
2306
|
-
return new
|
|
2310
|
+
vt.prototype.sibling = function() {
|
|
2311
|
+
return new vt(this.parent, this.base);
|
|
2307
2312
|
};
|
|
2308
2313
|
var ke = function(t) {
|
|
2309
|
-
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 =
|
|
2314
|
+
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 = Ji[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;
|
|
2310
2315
|
};
|
|
2311
2316
|
ke.prototype.reset = function(t, s, a) {
|
|
2312
2317
|
var n = a.indexOf("v") !== -1, p = a.indexOf("u") !== -1;
|
|
@@ -2363,13 +2368,13 @@ C.validateRegExpFlags = function(e) {
|
|
|
2363
2368
|
}
|
|
2364
2369
|
this.options.ecmaVersion >= 15 && a && n && this.raise(e.start, "Invalid regular expression flag");
|
|
2365
2370
|
};
|
|
2366
|
-
function
|
|
2371
|
+
function Tr(e) {
|
|
2367
2372
|
for (var t in e)
|
|
2368
2373
|
return !0;
|
|
2369
2374
|
return !1;
|
|
2370
2375
|
}
|
|
2371
2376
|
C.validateRegExpPattern = function(e) {
|
|
2372
|
-
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 &&
|
|
2377
|
+
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && Tr(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
|
|
2373
2378
|
};
|
|
2374
2379
|
C.regexp_pattern = function(e) {
|
|
2375
2380
|
e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(
|
|
@@ -2389,7 +2394,7 @@ C.regexp_pattern = function(e) {
|
|
|
2389
2394
|
};
|
|
2390
2395
|
C.regexp_disjunction = function(e) {
|
|
2391
2396
|
var t = this.options.ecmaVersion >= 16;
|
|
2392
|
-
for (t && (e.branchID = new
|
|
2397
|
+
for (t && (e.branchID = new vt(e.branchID, null)), this.regexp_alternative(e); e.eat(
|
|
2393
2398
|
124
|
|
2394
2399
|
/* | */
|
|
2395
2400
|
); )
|
|
@@ -2571,11 +2576,11 @@ C.regexp_eatCapturingGroup = function(e) {
|
|
|
2571
2576
|
return !1;
|
|
2572
2577
|
};
|
|
2573
2578
|
C.regexp_eatModifiers = function(e) {
|
|
2574
|
-
for (var t = "", s = 0; (s = e.current()) !== -1 &&
|
|
2579
|
+
for (var t = "", s = 0; (s = e.current()) !== -1 && Cr(s); )
|
|
2575
2580
|
t += Ee(s), e.advance();
|
|
2576
2581
|
return t;
|
|
2577
2582
|
};
|
|
2578
|
-
function
|
|
2583
|
+
function Cr(e) {
|
|
2579
2584
|
return e === 105 || e === 109 || e === 115;
|
|
2580
2585
|
}
|
|
2581
2586
|
C.regexp_eatExtendedAtom = function(e) {
|
|
@@ -2589,13 +2594,13 @@ C.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
2589
2594
|
};
|
|
2590
2595
|
C.regexp_eatSyntaxCharacter = function(e) {
|
|
2591
2596
|
var t = e.current();
|
|
2592
|
-
return
|
|
2597
|
+
return Yi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2593
2598
|
};
|
|
2594
|
-
function
|
|
2599
|
+
function Yi(e) {
|
|
2595
2600
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2596
2601
|
}
|
|
2597
2602
|
C.regexp_eatPatternCharacters = function(e) {
|
|
2598
|
-
for (var t = e.pos, s = 0; (s = e.current()) !== -1 && !
|
|
2603
|
+
for (var t = e.pos, s = 0; (s = e.current()) !== -1 && !Yi(s); )
|
|
2599
2604
|
e.advance();
|
|
2600
2605
|
return e.pos !== t;
|
|
2601
2606
|
};
|
|
@@ -2645,16 +2650,16 @@ C.regexp_eatRegExpIdentifierName = function(e) {
|
|
|
2645
2650
|
};
|
|
2646
2651
|
C.regexp_eatRegExpIdentifierStart = function(e) {
|
|
2647
2652
|
var t = e.pos, s = this.options.ecmaVersion >= 11, a = e.current(s);
|
|
2648
|
-
return e.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, s) && (a = e.lastIntValue),
|
|
2653
|
+
return e.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, s) && (a = e.lastIntValue), kr(a) ? (e.lastIntValue = a, !0) : (e.pos = t, !1);
|
|
2649
2654
|
};
|
|
2650
|
-
function
|
|
2655
|
+
function kr(e) {
|
|
2651
2656
|
return ve(e, !0) || e === 36 || e === 95;
|
|
2652
2657
|
}
|
|
2653
2658
|
C.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2654
2659
|
var t = e.pos, s = this.options.ecmaVersion >= 11, a = e.current(s);
|
|
2655
|
-
return e.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, s) && (a = e.lastIntValue),
|
|
2660
|
+
return e.advance(s), a === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, s) && (a = e.lastIntValue), wr(a) ? (e.lastIntValue = a, !0) : (e.pos = t, !1);
|
|
2656
2661
|
};
|
|
2657
|
-
function
|
|
2662
|
+
function wr(e) {
|
|
2658
2663
|
return Ae(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
2659
2664
|
}
|
|
2660
2665
|
C.regexp_eatAtomEscape = function(e) {
|
|
@@ -2699,7 +2704,7 @@ C.regexp_eatCControlLetter = function(e) {
|
|
|
2699
2704
|
return !1;
|
|
2700
2705
|
};
|
|
2701
2706
|
C.regexp_eatZero = function(e) {
|
|
2702
|
-
return e.current() === 48 && !
|
|
2707
|
+
return e.current() === 48 && !Ct(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
|
|
2703
2708
|
};
|
|
2704
2709
|
C.regexp_eatControlEscape = function(e) {
|
|
2705
2710
|
var t = e.current();
|
|
@@ -2707,9 +2712,9 @@ C.regexp_eatControlEscape = function(e) {
|
|
|
2707
2712
|
};
|
|
2708
2713
|
C.regexp_eatControlLetter = function(e) {
|
|
2709
2714
|
var t = e.current();
|
|
2710
|
-
return
|
|
2715
|
+
return Zi(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2711
2716
|
};
|
|
2712
|
-
function
|
|
2717
|
+
function Zi(e) {
|
|
2713
2718
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
2714
2719
|
}
|
|
2715
2720
|
C.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -2744,13 +2749,13 @@ C.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
2744
2749
|
) && this.regexp_eatHexDigits(e) && e.eat(
|
|
2745
2750
|
125
|
|
2746
2751
|
/* } */
|
|
2747
|
-
) &&
|
|
2752
|
+
) && Ar(e.lastIntValue))
|
|
2748
2753
|
return !0;
|
|
2749
2754
|
a && e.raise("Invalid unicode escape"), e.pos = s;
|
|
2750
2755
|
}
|
|
2751
2756
|
return !1;
|
|
2752
2757
|
};
|
|
2753
|
-
function
|
|
2758
|
+
function Ar(e) {
|
|
2754
2759
|
return e >= 0 && e <= 1114111;
|
|
2755
2760
|
}
|
|
2756
2761
|
C.regexp_eatIdentityEscape = function(e) {
|
|
@@ -2773,10 +2778,10 @@ C.regexp_eatDecimalEscape = function(e) {
|
|
|
2773
2778
|
}
|
|
2774
2779
|
return !1;
|
|
2775
2780
|
};
|
|
2776
|
-
var
|
|
2781
|
+
var es = 0, Ie = 1, le = 2;
|
|
2777
2782
|
C.regexp_eatCharacterClassEscape = function(e) {
|
|
2778
2783
|
var t = e.current();
|
|
2779
|
-
if (
|
|
2784
|
+
if (Er(t))
|
|
2780
2785
|
return e.lastIntValue = -1, e.advance(), Ie;
|
|
2781
2786
|
var s = !1;
|
|
2782
2787
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((s = t === 80) || t === 112)) {
|
|
@@ -2792,9 +2797,9 @@ C.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2792
2797
|
return s && a === le && e.raise("Invalid property name"), a;
|
|
2793
2798
|
e.raise("Invalid property name");
|
|
2794
2799
|
}
|
|
2795
|
-
return
|
|
2800
|
+
return es;
|
|
2796
2801
|
};
|
|
2797
|
-
function
|
|
2802
|
+
function Er(e) {
|
|
2798
2803
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
2799
2804
|
}
|
|
2800
2805
|
C.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -2813,7 +2818,7 @@ C.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
2813
2818
|
var n = e.lastStringValue;
|
|
2814
2819
|
return this.regexp_validateUnicodePropertyNameOrValue(e, n);
|
|
2815
2820
|
}
|
|
2816
|
-
return
|
|
2821
|
+
return es;
|
|
2817
2822
|
};
|
|
2818
2823
|
C.regexp_validateUnicodePropertyNameAndValue = function(e, t, s) {
|
|
2819
2824
|
Ke(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(s) || e.raise("Invalid property value");
|
|
@@ -2827,21 +2832,21 @@ C.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
2827
2832
|
};
|
|
2828
2833
|
C.regexp_eatUnicodePropertyName = function(e) {
|
|
2829
2834
|
var t = 0;
|
|
2830
|
-
for (e.lastStringValue = "";
|
|
2835
|
+
for (e.lastStringValue = ""; ts(t = e.current()); )
|
|
2831
2836
|
e.lastStringValue += Ee(t), e.advance();
|
|
2832
2837
|
return e.lastStringValue !== "";
|
|
2833
2838
|
};
|
|
2834
|
-
function
|
|
2835
|
-
return
|
|
2839
|
+
function ts(e) {
|
|
2840
|
+
return Zi(e) || e === 95;
|
|
2836
2841
|
}
|
|
2837
2842
|
C.regexp_eatUnicodePropertyValue = function(e) {
|
|
2838
2843
|
var t = 0;
|
|
2839
|
-
for (e.lastStringValue = "";
|
|
2844
|
+
for (e.lastStringValue = ""; Ir(t = e.current()); )
|
|
2840
2845
|
e.lastStringValue += Ee(t), e.advance();
|
|
2841
2846
|
return e.lastStringValue !== "";
|
|
2842
2847
|
};
|
|
2843
|
-
function
|
|
2844
|
-
return
|
|
2848
|
+
function Ir(e) {
|
|
2849
|
+
return ts(e) || Ct(e);
|
|
2845
2850
|
}
|
|
2846
2851
|
C.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
2847
2852
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -2887,7 +2892,7 @@ C.regexp_eatClassAtom = function(e) {
|
|
|
2887
2892
|
return !0;
|
|
2888
2893
|
if (e.switchU) {
|
|
2889
2894
|
var s = e.current();
|
|
2890
|
-
(s === 99 ||
|
|
2895
|
+
(s === 99 || rs(s)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
2891
2896
|
}
|
|
2892
2897
|
e.pos = t;
|
|
2893
2898
|
}
|
|
@@ -3040,24 +3045,24 @@ C.regexp_eatClassSetCharacter = function(e) {
|
|
|
3040
3045
|
/* b */
|
|
3041
3046
|
) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
|
|
3042
3047
|
var s = e.current();
|
|
3043
|
-
return s < 0 || s === e.lookahead() &&
|
|
3048
|
+
return s < 0 || s === e.lookahead() && _r(s) || Nr(s) ? !1 : (e.advance(), e.lastIntValue = s, !0);
|
|
3044
3049
|
};
|
|
3045
|
-
function
|
|
3050
|
+
function _r(e) {
|
|
3046
3051
|
return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
|
|
3047
3052
|
}
|
|
3048
|
-
function
|
|
3053
|
+
function Nr(e) {
|
|
3049
3054
|
return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
|
|
3050
3055
|
}
|
|
3051
3056
|
C.regexp_eatClassSetReservedPunctuator = function(e) {
|
|
3052
3057
|
var t = e.current();
|
|
3053
|
-
return
|
|
3058
|
+
return Lr(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
3054
3059
|
};
|
|
3055
|
-
function
|
|
3060
|
+
function Lr(e) {
|
|
3056
3061
|
return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
|
|
3057
3062
|
}
|
|
3058
3063
|
C.regexp_eatClassControlLetter = function(e) {
|
|
3059
3064
|
var t = e.current();
|
|
3060
|
-
return
|
|
3065
|
+
return Ct(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
3061
3066
|
};
|
|
3062
3067
|
C.regexp_eatHexEscapeSequence = function(e) {
|
|
3063
3068
|
var t = e.pos;
|
|
@@ -3073,23 +3078,23 @@ C.regexp_eatHexEscapeSequence = function(e) {
|
|
|
3073
3078
|
};
|
|
3074
3079
|
C.regexp_eatDecimalDigits = function(e) {
|
|
3075
3080
|
var t = e.pos, s = 0;
|
|
3076
|
-
for (e.lastIntValue = 0;
|
|
3081
|
+
for (e.lastIntValue = 0; Ct(s = e.current()); )
|
|
3077
3082
|
e.lastIntValue = 10 * e.lastIntValue + (s - 48), e.advance();
|
|
3078
3083
|
return e.pos !== t;
|
|
3079
3084
|
};
|
|
3080
|
-
function
|
|
3085
|
+
function Ct(e) {
|
|
3081
3086
|
return e >= 48 && e <= 57;
|
|
3082
3087
|
}
|
|
3083
3088
|
C.regexp_eatHexDigits = function(e) {
|
|
3084
3089
|
var t = e.pos, s = 0;
|
|
3085
|
-
for (e.lastIntValue = 0;
|
|
3086
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3090
|
+
for (e.lastIntValue = 0; is(s = e.current()); )
|
|
3091
|
+
e.lastIntValue = 16 * e.lastIntValue + ss(s), e.advance();
|
|
3087
3092
|
return e.pos !== t;
|
|
3088
3093
|
};
|
|
3089
|
-
function
|
|
3094
|
+
function is(e) {
|
|
3090
3095
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
3091
3096
|
}
|
|
3092
|
-
function
|
|
3097
|
+
function ss(e) {
|
|
3093
3098
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
3094
3099
|
}
|
|
3095
3100
|
C.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -3106,9 +3111,9 @@ C.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
3106
3111
|
};
|
|
3107
3112
|
C.regexp_eatOctalDigit = function(e) {
|
|
3108
3113
|
var t = e.current();
|
|
3109
|
-
return
|
|
3114
|
+
return rs(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
3110
3115
|
};
|
|
3111
|
-
function
|
|
3116
|
+
function rs(e) {
|
|
3112
3117
|
return e >= 48 && e <= 55;
|
|
3113
3118
|
}
|
|
3114
3119
|
C.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -3116,20 +3121,20 @@ C.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
3116
3121
|
e.lastIntValue = 0;
|
|
3117
3122
|
for (var a = 0; a < t; ++a) {
|
|
3118
3123
|
var n = e.current();
|
|
3119
|
-
if (!
|
|
3124
|
+
if (!is(n))
|
|
3120
3125
|
return e.pos = s, !1;
|
|
3121
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3126
|
+
e.lastIntValue = 16 * e.lastIntValue + ss(n), e.advance();
|
|
3122
3127
|
}
|
|
3123
3128
|
return !0;
|
|
3124
3129
|
};
|
|
3125
|
-
var
|
|
3130
|
+
var kt = function(t) {
|
|
3126
3131
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new rt(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
3127
3132
|
}, R = H.prototype;
|
|
3128
3133
|
R.next = function(e) {
|
|
3129
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
3134
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new kt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
3130
3135
|
};
|
|
3131
3136
|
R.getToken = function() {
|
|
3132
|
-
return this.next(), new
|
|
3137
|
+
return this.next(), new kt(this);
|
|
3133
3138
|
};
|
|
3134
3139
|
typeof Symbol < "u" && (R[Symbol.iterator] = function() {
|
|
3135
3140
|
var e = this;
|
|
@@ -3164,7 +3169,7 @@ R.fullCharCodeAtPos = function() {
|
|
|
3164
3169
|
R.skipBlockComment = function() {
|
|
3165
3170
|
var e = this.options.onComment && this.curPosition(), t = this.pos, s = this.input.indexOf("*/", this.pos += 2);
|
|
3166
3171
|
if (s === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = s + 2, this.options.locations)
|
|
3167
|
-
for (var a = void 0, n = t; (a =
|
|
3172
|
+
for (var a = void 0, n = t; (a = _i(this.input, n, this.pos)) > -1; )
|
|
3168
3173
|
++this.curLine, n = this.lineStart = a;
|
|
3169
3174
|
this.options.onComment && this.options.onComment(
|
|
3170
3175
|
!0,
|
|
@@ -3215,7 +3220,7 @@ R.skipSpace = function() {
|
|
|
3215
3220
|
}
|
|
3216
3221
|
break;
|
|
3217
3222
|
default:
|
|
3218
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
3223
|
+
if (e > 8 && e < 14 || e >= 5760 && Kt.test(String.fromCharCode(e)))
|
|
3219
3224
|
++this.pos;
|
|
3220
3225
|
else
|
|
3221
3226
|
break e;
|
|
@@ -3430,17 +3435,17 @@ R.readInt = function(e, t, s) {
|
|
|
3430
3435
|
}
|
|
3431
3436
|
return a && v === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === p || t != null && this.pos - p !== t ? null : f;
|
|
3432
3437
|
};
|
|
3433
|
-
function
|
|
3438
|
+
function Or(e, t) {
|
|
3434
3439
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
3435
3440
|
}
|
|
3436
|
-
function
|
|
3441
|
+
function as(e) {
|
|
3437
3442
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
3438
3443
|
}
|
|
3439
3444
|
R.readRadixNumber = function(e) {
|
|
3440
3445
|
var t = this.pos;
|
|
3441
3446
|
this.pos += 2;
|
|
3442
3447
|
var s = this.readInt(e);
|
|
3443
|
-
return s == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (s =
|
|
3448
|
+
return s == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (s = as(this.input.slice(t, this.pos)), ++this.pos) : ve(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(h.num, s);
|
|
3444
3449
|
};
|
|
3445
3450
|
R.readNumber = function(e) {
|
|
3446
3451
|
var t = this.pos;
|
|
@@ -3449,11 +3454,11 @@ R.readNumber = function(e) {
|
|
|
3449
3454
|
s && this.strict && this.raise(t, "Invalid number");
|
|
3450
3455
|
var a = this.input.charCodeAt(this.pos);
|
|
3451
3456
|
if (!s && !e && this.options.ecmaVersion >= 11 && a === 110) {
|
|
3452
|
-
var n =
|
|
3457
|
+
var n = as(this.input.slice(t, this.pos));
|
|
3453
3458
|
return ++this.pos, ve(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(h.num, n);
|
|
3454
3459
|
}
|
|
3455
3460
|
s && /[89]/.test(this.input.slice(t, this.pos)) && (s = !1), a === 46 && !s && (++this.pos, this.readInt(10), a = this.input.charCodeAt(this.pos)), (a === 69 || a === 101) && !s && (a = this.input.charCodeAt(++this.pos), (a === 43 || a === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), ve(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
3456
|
-
var p =
|
|
3461
|
+
var p = Or(this.input.slice(t, this.pos), s);
|
|
3457
3462
|
return this.finishToken(h.num, p);
|
|
3458
3463
|
};
|
|
3459
3464
|
R.readCodePoint = function() {
|
|
@@ -3476,13 +3481,13 @@ R.readString = function(e) {
|
|
|
3476
3481
|
}
|
|
3477
3482
|
return t += this.input.slice(s, this.pos++), this.finishToken(h.string, t);
|
|
3478
3483
|
};
|
|
3479
|
-
var
|
|
3484
|
+
var ns = {};
|
|
3480
3485
|
R.tryReadTemplateToken = function() {
|
|
3481
3486
|
this.inTemplateElement = !0;
|
|
3482
3487
|
try {
|
|
3483
3488
|
this.readTmplToken();
|
|
3484
3489
|
} catch (e) {
|
|
3485
|
-
if (e ===
|
|
3490
|
+
if (e === ns)
|
|
3486
3491
|
this.readInvalidTemplateToken();
|
|
3487
3492
|
else
|
|
3488
3493
|
throw e;
|
|
@@ -3491,7 +3496,7 @@ R.tryReadTemplateToken = function() {
|
|
|
3491
3496
|
};
|
|
3492
3497
|
R.invalidStringToken = function(e, t) {
|
|
3493
3498
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
3494
|
-
throw
|
|
3499
|
+
throw ns;
|
|
3495
3500
|
this.raise(e, t);
|
|
3496
3501
|
};
|
|
3497
3502
|
R.readTmplToken = function() {
|
|
@@ -3624,65 +3629,65 @@ R.readWord1 = function() {
|
|
|
3624
3629
|
};
|
|
3625
3630
|
R.readWord = function() {
|
|
3626
3631
|
var e = this.readWord1(), t = h.name;
|
|
3627
|
-
return this.keywords.test(e) && (t =
|
|
3632
|
+
return this.keywords.test(e) && (t = qe[e]), this.finishToken(t, e);
|
|
3628
3633
|
};
|
|
3629
|
-
var
|
|
3634
|
+
var os = "8.15.0";
|
|
3630
3635
|
H.acorn = {
|
|
3631
3636
|
Parser: H,
|
|
3632
|
-
version:
|
|
3633
|
-
defaultOptions:
|
|
3637
|
+
version: os,
|
|
3638
|
+
defaultOptions: dt,
|
|
3634
3639
|
Position: He,
|
|
3635
3640
|
SourceLocation: rt,
|
|
3636
|
-
getLineInfo:
|
|
3641
|
+
getLineInfo: Wt,
|
|
3637
3642
|
Node: nt,
|
|
3638
3643
|
TokenType: O,
|
|
3639
3644
|
tokTypes: h,
|
|
3640
|
-
keywordTypes:
|
|
3645
|
+
keywordTypes: qe,
|
|
3641
3646
|
TokContext: J,
|
|
3642
3647
|
tokContexts: F,
|
|
3643
3648
|
isIdentifierChar: Ae,
|
|
3644
3649
|
isIdentifierStart: ve,
|
|
3645
|
-
Token:
|
|
3650
|
+
Token: kt,
|
|
3646
3651
|
isNewLine: Fe,
|
|
3647
3652
|
lineBreak: Z,
|
|
3648
|
-
lineBreakG:
|
|
3649
|
-
nonASCIIwhitespace:
|
|
3653
|
+
lineBreakG: Ii,
|
|
3654
|
+
nonASCIIwhitespace: Kt
|
|
3650
3655
|
};
|
|
3651
|
-
function
|
|
3656
|
+
function Rr(e, t) {
|
|
3652
3657
|
return H.parse(e, t);
|
|
3653
3658
|
}
|
|
3654
|
-
function
|
|
3659
|
+
function Mr(e, t, s) {
|
|
3655
3660
|
return H.parseExpressionAt(e, t, s);
|
|
3656
3661
|
}
|
|
3657
|
-
function
|
|
3662
|
+
function Dr(e, t) {
|
|
3658
3663
|
return H.tokenizer(e, t);
|
|
3659
3664
|
}
|
|
3660
|
-
const
|
|
3665
|
+
const Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3661
3666
|
__proto__: null,
|
|
3662
3667
|
Node: nt,
|
|
3663
3668
|
Parser: H,
|
|
3664
3669
|
Position: He,
|
|
3665
3670
|
SourceLocation: rt,
|
|
3666
3671
|
TokContext: J,
|
|
3667
|
-
Token:
|
|
3672
|
+
Token: kt,
|
|
3668
3673
|
TokenType: O,
|
|
3669
|
-
defaultOptions:
|
|
3670
|
-
getLineInfo:
|
|
3674
|
+
defaultOptions: dt,
|
|
3675
|
+
getLineInfo: Wt,
|
|
3671
3676
|
isIdentifierChar: Ae,
|
|
3672
3677
|
isIdentifierStart: ve,
|
|
3673
3678
|
isNewLine: Fe,
|
|
3674
|
-
keywordTypes:
|
|
3679
|
+
keywordTypes: qe,
|
|
3675
3680
|
lineBreak: Z,
|
|
3676
|
-
lineBreakG:
|
|
3677
|
-
nonASCIIwhitespace:
|
|
3678
|
-
parse:
|
|
3679
|
-
parseExpressionAt:
|
|
3681
|
+
lineBreakG: Ii,
|
|
3682
|
+
nonASCIIwhitespace: Kt,
|
|
3683
|
+
parse: Rr,
|
|
3684
|
+
parseExpressionAt: Mr,
|
|
3680
3685
|
tokContexts: F,
|
|
3681
3686
|
tokTypes: h,
|
|
3682
|
-
tokenizer:
|
|
3683
|
-
version:
|
|
3687
|
+
tokenizer: Dr,
|
|
3688
|
+
version: os
|
|
3684
3689
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3685
|
-
function
|
|
3690
|
+
function li(e, t) {
|
|
3686
3691
|
for (var s = 0; s < t.length; s++) {
|
|
3687
3692
|
var a = t[s];
|
|
3688
3693
|
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, typeof (n = (function(p, f) {
|
|
@@ -3698,36 +3703,36 @@ function pi(e, t) {
|
|
|
3698
3703
|
}
|
|
3699
3704
|
var n;
|
|
3700
3705
|
}
|
|
3701
|
-
function
|
|
3702
|
-
return
|
|
3706
|
+
function gt() {
|
|
3707
|
+
return gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3703
3708
|
for (var t = 1; t < arguments.length; t++) {
|
|
3704
3709
|
var s = arguments[t];
|
|
3705
3710
|
for (var a in s) Object.prototype.hasOwnProperty.call(s, a) && (e[a] = s[a]);
|
|
3706
3711
|
}
|
|
3707
3712
|
return e;
|
|
3708
|
-
},
|
|
3713
|
+
}, gt.apply(this, arguments);
|
|
3709
3714
|
}
|
|
3710
|
-
function
|
|
3711
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
3715
|
+
function lt(e, t) {
|
|
3716
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Bt(e, t);
|
|
3712
3717
|
}
|
|
3713
|
-
function
|
|
3714
|
-
return
|
|
3718
|
+
function Bt(e, t) {
|
|
3719
|
+
return Bt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(s, a) {
|
|
3715
3720
|
return s.__proto__ = a, s;
|
|
3716
|
-
},
|
|
3721
|
+
}, Bt(e, t);
|
|
3717
3722
|
}
|
|
3718
|
-
function
|
|
3723
|
+
function fi(e, t) {
|
|
3719
3724
|
(t == null || t > e.length) && (t = e.length);
|
|
3720
3725
|
for (var s = 0, a = new Array(t); s < t; s++) a[s] = e[s];
|
|
3721
3726
|
return a;
|
|
3722
3727
|
}
|
|
3723
|
-
function
|
|
3728
|
+
function di(e, t) {
|
|
3724
3729
|
var s = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
3725
3730
|
if (s) return (s = s.call(e)).next.bind(s);
|
|
3726
3731
|
if (Array.isArray(e) || (s = (function(n, p) {
|
|
3727
3732
|
if (n) {
|
|
3728
|
-
if (typeof n == "string") return
|
|
3733
|
+
if (typeof n == "string") return fi(n, p);
|
|
3729
3734
|
var f = Object.prototype.toString.call(n).slice(8, -1);
|
|
3730
|
-
return f === "Object" && n.constructor && (f = n.constructor.name), f === "Map" || f === "Set" ? Array.from(n) : f === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f) ?
|
|
3735
|
+
return f === "Object" && n.constructor && (f = n.constructor.name), f === "Map" || f === "Set" ? Array.from(n) : f === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f) ? fi(n, p) : void 0;
|
|
3731
3736
|
}
|
|
3732
3737
|
})(e)) || t) {
|
|
3733
3738
|
s && (e = s);
|
|
@@ -3743,9 +3748,9 @@ var ae = !0;
|
|
|
3743
3748
|
function ne(e, t) {
|
|
3744
3749
|
return t === void 0 && (t = {}), new O("name", t);
|
|
3745
3750
|
}
|
|
3746
|
-
var
|
|
3747
|
-
function
|
|
3748
|
-
var t =
|
|
3751
|
+
var jr = /* @__PURE__ */ new WeakMap();
|
|
3752
|
+
function Fr(e) {
|
|
3753
|
+
var t = jr.get(e.Parser.acorn || e);
|
|
3749
3754
|
if (!t) {
|
|
3750
3755
|
var s = { assert: ne(0, { startsExpr: ae }), asserts: ne(0, { startsExpr: ae }), global: ne(0, { startsExpr: ae }), keyof: ne(0, { startsExpr: ae }), readonly: ne(0, { startsExpr: ae }), unique: ne(0, { startsExpr: ae }), abstract: ne(0, { startsExpr: ae }), declare: ne(0, { startsExpr: ae }), enum: ne(0, { startsExpr: ae }), module: ne(0, { startsExpr: ae }), namespace: ne(0, { startsExpr: ae }), interface: ne(0, { startsExpr: ae }), type: ne(0, { startsExpr: ae }) }, a = { at: new O("@"), jsxName: new O("jsxName"), jsxText: new O("jsxText", { beforeExpr: !0 }), jsxTagStart: new O("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new O("jsxTagEnd") }, n = { tc_oTag: new J("<tag", !1, !1), tc_cTag: new J("</tag", !1, !1), tc_expr: new J("<tag>...</tag>", !0, !0) }, p = new RegExp("^(?:" + Object.keys(s).join("|") + ")$");
|
|
3751
3756
|
a.jsxTagStart.updateContext = function() {
|
|
@@ -3753,10 +3758,10 @@ function jr(e) {
|
|
|
3753
3758
|
}, a.jsxTagEnd.updateContext = function(f) {
|
|
3754
3759
|
var v = this.context.pop();
|
|
3755
3760
|
v === n.tc_oTag && f === h.slash || v === n.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === n.tc_expr) : this.exprAllowed = !0;
|
|
3756
|
-
}, t = { tokTypes:
|
|
3757
|
-
return [h.name, h.string, h.num].concat(Object.values(
|
|
3761
|
+
}, t = { tokTypes: gt({}, s, a), tokContexts: gt({}, n), keywordsRegExp: p, tokenIsLiteralPropertyName: function(f) {
|
|
3762
|
+
return [h.name, h.string, h.num].concat(Object.values(qe), Object.values(s)).includes(f);
|
|
3758
3763
|
}, tokenIsKeywordOrIdentifier: function(f) {
|
|
3759
|
-
return [h.name].concat(Object.values(
|
|
3764
|
+
return [h.name].concat(Object.values(qe), Object.values(s)).includes(f);
|
|
3760
3765
|
}, tokenIsIdentifier: function(f) {
|
|
3761
3766
|
return [].concat(Object.values(s), [h.name]).includes(f);
|
|
3762
3767
|
}, tokenIsTSDeclarationStart: function(f) {
|
|
@@ -3769,14 +3774,14 @@ function jr(e) {
|
|
|
3769
3774
|
}
|
|
3770
3775
|
return t;
|
|
3771
3776
|
}
|
|
3772
|
-
var Je = 1024,
|
|
3777
|
+
var Je = 1024, Br = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"), mi = new RegExp("(?=(" + Br.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"), Ye = function() {
|
|
3773
3778
|
this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
3774
3779
|
};
|
|
3775
|
-
function
|
|
3780
|
+
function Ur(e, t) {
|
|
3776
3781
|
var s = t.key.name, a = e[s], n = "true";
|
|
3777
3782
|
return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (n = (t.static ? "s" : "i") + t.kind), a === "iget" && n === "iset" || a === "iset" && n === "iget" || a === "sget" && n === "sset" || a === "sset" && n === "sget" ? (e[s] = "true", !1) : !!a || (e[s] = n, !1);
|
|
3778
3783
|
}
|
|
3779
|
-
function
|
|
3784
|
+
function yi(e, t) {
|
|
3780
3785
|
var s = e.key;
|
|
3781
3786
|
return !e.computed && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
|
|
3782
3787
|
}
|
|
@@ -3817,39 +3822,39 @@ var A = { AbstractMethodHasImplementation: function(e) {
|
|
|
3817
3822
|
return "Single type parameter " + t + " should have a trailing comma. Example usage: <" + t + ",>.";
|
|
3818
3823
|
}, StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.", TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.", TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.", TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.", UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.", UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.", GenericsEndWithComma: "Trailing comma is not allowed at the end of generics.", UnexpectedTypeAnnotation: "Did not expect a type annotation here.", UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.", UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.", UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.", UnsupportedSignatureParameterKind: function(e) {
|
|
3819
3824
|
return "Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got " + e.type + ".";
|
|
3820
|
-
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." },
|
|
3825
|
+
}, LetInLexicalBinding: "'let' is not allowed to be used as a name in 'let' or 'const' declarations." }, $r = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "", zwj: "", lrm: "", rlm: "", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" }, qr = /^[\da-fA-F]+$/, Hr = /^\d+$/;
|
|
3821
3826
|
function tt(e) {
|
|
3822
3827
|
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? tt(e.object) + "." + tt(e.property) : void 0);
|
|
3823
3828
|
}
|
|
3824
|
-
var
|
|
3825
|
-
function
|
|
3829
|
+
var Mt = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
3830
|
+
function xi(e) {
|
|
3826
3831
|
if (!e) throw new Error("Assert fail");
|
|
3827
3832
|
}
|
|
3828
|
-
function
|
|
3833
|
+
function Gr(e) {
|
|
3829
3834
|
return e === "accessor";
|
|
3830
3835
|
}
|
|
3831
|
-
function
|
|
3836
|
+
function Kr(e) {
|
|
3832
3837
|
return e === "in" || e === "out";
|
|
3833
3838
|
}
|
|
3834
|
-
function
|
|
3839
|
+
function Dt(e, t) {
|
|
3835
3840
|
return 2 | (e ? 4 : 0) | (t ? 8 : 0);
|
|
3836
3841
|
}
|
|
3837
|
-
function
|
|
3842
|
+
function Wr(e) {
|
|
3838
3843
|
if (e.type !== "MemberExpression") return !1;
|
|
3839
3844
|
var t = e.property;
|
|
3840
|
-
return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) &&
|
|
3845
|
+
return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && us(e.object);
|
|
3841
3846
|
}
|
|
3842
|
-
function
|
|
3843
|
-
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed &&
|
|
3847
|
+
function us(e) {
|
|
3848
|
+
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && us(e.object);
|
|
3844
3849
|
}
|
|
3845
|
-
function
|
|
3850
|
+
function vi(e) {
|
|
3846
3851
|
return e === "private" || e === "public" || e === "protected";
|
|
3847
3852
|
}
|
|
3848
|
-
function
|
|
3853
|
+
function zr(e) {
|
|
3849
3854
|
var t = {}, s = t.dts, a = s !== void 0 && s, n = t.allowSatisfies, p = n !== void 0 && n;
|
|
3850
3855
|
return function(f) {
|
|
3851
|
-
var v = f.acorn ||
|
|
3852
|
-
function
|
|
3856
|
+
var v = f.acorn || Vr, x = Fr(v), o = v.tokTypes, P = v.keywordTypes, I = v.isIdentifierStart, B = v.lineBreak, ue = v.isNewLine, me = v.tokContexts, Ue = v.isIdentifierChar, _ = x.tokTypes, te = x.tokContexts, wt = x.keywordsRegExp, ls = x.tokenIsLiteralPropertyName, fs = x.tokenIsTemplate, ds = x.tokenIsTSDeclarationStart, j = x.tokenIsIdentifier, ut = x.tokenIsKeywordOrIdentifier, ms = x.tokenIsTSTypeOperator;
|
|
3857
|
+
function ys(T, ie, Q) {
|
|
3853
3858
|
Q === void 0 && (Q = T.length);
|
|
3854
3859
|
for (var G = ie; G < Q; G++) {
|
|
3855
3860
|
var D = T.charCodeAt(G);
|
|
@@ -3863,7 +3868,7 @@ function Wr(e) {
|
|
|
3863
3868
|
function i() {
|
|
3864
3869
|
return l.apply(this, arguments) || this;
|
|
3865
3870
|
}
|
|
3866
|
-
|
|
3871
|
+
lt(i, l);
|
|
3867
3872
|
var r = i.prototype;
|
|
3868
3873
|
return r.takeDecorators = function(u) {
|
|
3869
3874
|
var c = this.decoratorStack[this.decoratorStack.length - 1];
|
|
@@ -3903,7 +3908,7 @@ function Wr(e) {
|
|
|
3903
3908
|
function d() {
|
|
3904
3909
|
return c.apply(this, arguments) || this;
|
|
3905
3910
|
}
|
|
3906
|
-
|
|
3911
|
+
lt(d, c);
|
|
3907
3912
|
var m = d.prototype;
|
|
3908
3913
|
return m.jsx_readToken = function() {
|
|
3909
3914
|
for (var y = "", g = this.pos; ; ) {
|
|
@@ -3941,7 +3946,7 @@ function Wr(e) {
|
|
|
3941
3946
|
S !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
|
|
3942
3947
|
for (var E = ++this.pos; this.pos < this.input.length && b++ < 10; ) {
|
|
3943
3948
|
if ((S = this.input[this.pos++]) === ";") {
|
|
3944
|
-
g[0] === "#" ? g[1] === "x" ? (g = g.substr(2), qr.test(g) && (y = String.fromCharCode(parseInt(g, 16)))) : (g = g.substr(1),
|
|
3949
|
+
g[0] === "#" ? g[1] === "x" ? (g = g.substr(2), qr.test(g) && (y = String.fromCharCode(parseInt(g, 16)))) : (g = g.substr(1), Hr.test(g) && (y = String.fromCharCode(parseInt(g, 10)))) : y = $r[g];
|
|
3945
3950
|
break;
|
|
3946
3951
|
}
|
|
3947
3952
|
g += S;
|
|
@@ -4036,7 +4041,7 @@ function Wr(e) {
|
|
|
4036
4041
|
function i() {
|
|
4037
4042
|
return l.apply(this, arguments) || this;
|
|
4038
4043
|
}
|
|
4039
|
-
|
|
4044
|
+
lt(i, l);
|
|
4040
4045
|
var r = i.prototype;
|
|
4041
4046
|
return r.parseMaybeImportAttributes = function(u) {
|
|
4042
4047
|
if (this.type === D._with || this.type === G.assert) {
|
|
@@ -4059,7 +4064,7 @@ function Wr(e) {
|
|
|
4059
4064
|
}, i;
|
|
4060
4065
|
})(T);
|
|
4061
4066
|
})(f, x, v);
|
|
4062
|
-
var
|
|
4067
|
+
var xs = /* @__PURE__ */ (function(T) {
|
|
4063
4068
|
function ie(i, r, u) {
|
|
4064
4069
|
var c;
|
|
4065
4070
|
return (c = T.call(this, i, r, u) || this).preValue = null, c.preToken = null, c.isLookahead = !1, c.isAmbientContext = !1, c.inAbstractClass = !1, c.inType = !1, c.inDisallowConditionalTypesContext = !1, c.maybeInArrowParameters = !1, c.shouldParseArrowReturnType = void 0, c.shouldParseAsyncArrowReturnType = void 0, c.decoratorStack = [[]], c.importsStack = [[]], c.importOrExportOuterKind = void 0, c.tsParseConstModifier = c.tsParseModifiers.bind((function(d) {
|
|
@@ -4067,7 +4072,7 @@ function Wr(e) {
|
|
|
4067
4072
|
return d;
|
|
4068
4073
|
})(c), { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: A.InvalidModifierOnTypeParameterPositions }), c;
|
|
4069
4074
|
}
|
|
4070
|
-
|
|
4075
|
+
lt(ie, T);
|
|
4071
4076
|
var Q, G, D, l = ie.prototype;
|
|
4072
4077
|
return l.getTokenFromCodeInType = function(i) {
|
|
4073
4078
|
return i === 62 || i === 60 ? this.finishOp(o.relational, 1) : T.prototype.getTokenFromCode.call(this, i);
|
|
@@ -4118,7 +4123,7 @@ function Wr(e) {
|
|
|
4118
4123
|
return this.nextTokenStartSince(this.pos);
|
|
4119
4124
|
}, l.tsHasSomeModifiers = function(i, r) {
|
|
4120
4125
|
return r.some(function(u) {
|
|
4121
|
-
return
|
|
4126
|
+
return vi(u) ? i.accessibility === u : !!i[u];
|
|
4122
4127
|
});
|
|
4123
4128
|
}, l.tsIsStartOfStaticBlocks = function() {
|
|
4124
4129
|
return this.isContextual("static") && this.lookaheadCharCode() === 123;
|
|
@@ -4166,7 +4171,7 @@ function Wr(e) {
|
|
|
4166
4171
|
}, l.isAbstractConstructorSignature = function() {
|
|
4167
4172
|
return this.ts_isContextual(_.abstract) && this.lookahead().type === o._new;
|
|
4168
4173
|
}, l.nextTokenStartSince = function(i) {
|
|
4169
|
-
return
|
|
4174
|
+
return Mt.lastIndex = i, Mt.test(this.input) ? Mt.lastIndex : i;
|
|
4170
4175
|
}, l.lookaheadCharCode = function() {
|
|
4171
4176
|
return this.input.charCodeAt(this.nextTokenStart());
|
|
4172
4177
|
}, l.compareLookaheadState = function(i, r) {
|
|
@@ -4195,12 +4200,12 @@ function Wr(e) {
|
|
|
4195
4200
|
return this.setLookaheadState(r), c;
|
|
4196
4201
|
}, l.readWord = function() {
|
|
4197
4202
|
var i = this.readWord1(), r = o.name;
|
|
4198
|
-
return this.keywords.test(i) ? r = P[i] : new RegExp(
|
|
4203
|
+
return this.keywords.test(i) ? r = P[i] : new RegExp(wt).test(i) && (r = _[i]), this.finishToken(r, i);
|
|
4199
4204
|
}, l.skipBlockComment = function() {
|
|
4200
4205
|
var i;
|
|
4201
4206
|
this.isLookahead || (i = this.options.onComment && this.curPosition());
|
|
4202
4207
|
var r = this.pos, u = this.input.indexOf("*/", this.pos += 2);
|
|
4203
|
-
if (u === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = u + 2, this.options.locations) for (var c, d = r; (c =
|
|
4208
|
+
if (u === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = u + 2, this.options.locations) for (var c, d = r; (c = ys(this.input, d, this.pos)) > -1; ) ++this.curLine, d = this.lineStart = c;
|
|
4204
4209
|
this.isLookahead || this.options.onComment && this.options.onComment(!0, this.input.slice(r + 2, u), r, this.pos, i, this.curPosition());
|
|
4205
4210
|
}, l.skipLineComment = function(i) {
|
|
4206
4211
|
var r, u = this.pos;
|
|
@@ -4216,14 +4221,14 @@ function Wr(e) {
|
|
|
4216
4221
|
}, l.isLineTerminator = function() {
|
|
4217
4222
|
return this.eat(o.semi) || T.prototype.canInsertSemicolon.call(this);
|
|
4218
4223
|
}, l.hasFollowingLineBreak = function() {
|
|
4219
|
-
return
|
|
4224
|
+
return mi.lastIndex = this.end, mi.test(this.input);
|
|
4220
4225
|
}, l.addExtra = function(i, r, u, c) {
|
|
4221
4226
|
if (c === void 0 && (c = !0), i) {
|
|
4222
4227
|
var d = i.extra = i.extra || {};
|
|
4223
4228
|
c ? d[r] = u : Object.defineProperty(d, r, { enumerable: c, value: u });
|
|
4224
4229
|
}
|
|
4225
4230
|
}, l.isLiteralPropertyName = function() {
|
|
4226
|
-
return
|
|
4231
|
+
return ls(this.type);
|
|
4227
4232
|
}, l.hasPrecedingLineBreak = function() {
|
|
4228
4233
|
return B.test(this.input.slice(this.lastTokEndLoc.index, this.start));
|
|
4229
4234
|
}, l.createIdentifier = function(i, r) {
|
|
@@ -4266,7 +4271,7 @@ function Wr(e) {
|
|
|
4266
4271
|
}
|
|
4267
4272
|
return !1;
|
|
4268
4273
|
}, l.ts_eatContextualWithState = function(i, r, u) {
|
|
4269
|
-
if (
|
|
4274
|
+
if (wt.test(i)) {
|
|
4270
4275
|
if (this.ts_isContextualWithState(u, _[i])) {
|
|
4271
4276
|
for (var c = 0; c < r; c++) this.next();
|
|
4272
4277
|
return !0;
|
|
@@ -4279,7 +4284,7 @@ function Wr(e) {
|
|
|
4279
4284
|
}, l.canHaveLeadingDecorator = function() {
|
|
4280
4285
|
return this.match(o._class);
|
|
4281
4286
|
}, l.eatContextual = function(i) {
|
|
4282
|
-
return
|
|
4287
|
+
return wt.test(i) ? !!this.ts_isContextual(_[i]) && (this.next(), !0) : T.prototype.eatContextual.call(this, i);
|
|
4283
4288
|
}, l.tsIsExternalModuleReference = function() {
|
|
4284
4289
|
return this.isContextual("require") && this.lookaheadCharCode() === 40;
|
|
4285
4290
|
}, l.tsParseExternalModuleReference = function() {
|
|
@@ -4633,7 +4638,7 @@ function Wr(e) {
|
|
|
4633
4638
|
return i;
|
|
4634
4639
|
}, l.tsParseTypeOperatorOrHigher = function() {
|
|
4635
4640
|
var i = this;
|
|
4636
|
-
return
|
|
4641
|
+
return ms(this.type) && !this.containsEsc ? this.tsParseTypeOperator() : this.isContextual("infer") ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(function() {
|
|
4637
4642
|
return i.tsParseArrayTypeOrHigher();
|
|
4638
4643
|
});
|
|
4639
4644
|
}, l.tsParseIntersectionTypeOrHigher = function() {
|
|
@@ -4644,7 +4649,7 @@ function Wr(e) {
|
|
|
4644
4649
|
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
|
|
4645
4650
|
}, l.tsParseType = function() {
|
|
4646
4651
|
var i = this;
|
|
4647
|
-
|
|
4652
|
+
xi(this.inType);
|
|
4648
4653
|
var r = this.tsParseNonConditionalType();
|
|
4649
4654
|
if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return r;
|
|
4650
4655
|
var u = this.startNodeAtNode(r);
|
|
@@ -4707,14 +4712,14 @@ function Wr(e) {
|
|
|
4707
4712
|
r[m] = u[m];
|
|
4708
4713
|
}
|
|
4709
4714
|
}, l.tsParseModifiers = function(i) {
|
|
4710
|
-
for (var r = this, u = i.modified, c = i.allowedModifiers, d = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, g = y === void 0 ? A.InvalidModifierOnTypeMember : y, b = {}, S = function(
|
|
4711
|
-
U ===
|
|
4712
|
-
}, E = function(
|
|
4713
|
-
(u[
|
|
4715
|
+
for (var r = this, u = i.modified, c = i.allowedModifiers, d = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, g = y === void 0 ? A.InvalidModifierOnTypeMember : y, b = {}, S = function($, U, q, W) {
|
|
4716
|
+
U === q && u[W] && r.raise($.column, A.InvalidModifiersOrder({ orderedModifiers: [q, W] }));
|
|
4717
|
+
}, E = function($, U, q, W) {
|
|
4718
|
+
(u[q] && U === W || u[W] && U === q) && r.raise($.column, A.IncompatibleModifiers({ modifiers: [q, W] }));
|
|
4714
4719
|
}; ; ) {
|
|
4715
4720
|
var L = this.startLoc, k = this.tsParseModifier(c.concat(d ?? []), m);
|
|
4716
4721
|
if (!k) break;
|
|
4717
|
-
|
|
4722
|
+
vi(k) ? u.accessibility ? this.raise(this.start, A.DuplicateAccessibilityModifier()) : (S(L, k, k, "override"), S(L, k, k, "static"), S(L, k, k, "readonly"), S(L, k, k, "accessor"), b.accessibility = k, u.accessibility = k) : Kr(k) ? u[k] ? this.raise(this.start, A.DuplicateModifier({ modifier: k })) : (S(L, k, "in", "out"), b[k] = k, u[k] = !0) : Gr(k) ? u[k] ? this.raise(this.start, A.DuplicateModifier({ modifier: k })) : (E(L, k, "accessor", "readonly"), E(L, k, "accessor", "static"), E(L, k, "accessor", "override"), b[k] = k, u[k] = !0) : Object.hasOwnProperty.call(u, k) ? this.raise(this.start, A.DuplicateModifier({ modifier: k })) : (S(L, k, "static", "readonly"), S(L, k, "static", "override"), S(L, k, "override", "readonly"), S(L, k, "abstract", "override"), E(L, k, "declare", "override"), E(L, k, "static", "abstract"), b[k] = k, u[k] = !0), d != null && d.includes(k) && this.raise(this.start, g);
|
|
4718
4723
|
}
|
|
4719
4724
|
return b;
|
|
4720
4725
|
}, l.tsParseInOutModifiers = function(i) {
|
|
@@ -4790,7 +4795,7 @@ function Wr(e) {
|
|
|
4790
4795
|
if (!this.hasFollowingLineBreak()) return i.abstract = !0, this.tsParseInterfaceDeclaration(i);
|
|
4791
4796
|
} else this.unexpected(i.start);
|
|
4792
4797
|
}, l.tsIsDeclarationStart = function() {
|
|
4793
|
-
return
|
|
4798
|
+
return ds(this.type);
|
|
4794
4799
|
}, l.tsParseExpressionStatement = function(i, r) {
|
|
4795
4800
|
switch (r.name) {
|
|
4796
4801
|
case "declare":
|
|
@@ -4901,7 +4906,7 @@ function Wr(e) {
|
|
|
4901
4906
|
}, l.parseFunction = function(i, r, u, c, d) {
|
|
4902
4907
|
this.initFunction(i), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !c) && (this.type === o.star && 2 & r && this.unexpected(), i.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (i.async = !!c), 1 & r && (i.id = 4 & r && this.type !== o.name ? null : this.parseIdent());
|
|
4903
4908
|
var m = this.yieldPos, y = this.awaitPos, g = this.awaitIdentPos, b = this.maybeInArrowParameters;
|
|
4904
|
-
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
4909
|
+
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Dt(i.async, i.generator)), 1 & r || (i.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(i);
|
|
4905
4910
|
var S = 1 & r;
|
|
4906
4911
|
return this.parseFunctionBody(i, u, !1, d, { isFunctionDeclaration: S }), this.yieldPos = m, this.awaitPos = y, this.awaitIdentPos = g, 1 & r && i.id && !(2 & r) && this.checkLValSimple(i.id, i.body ? this.strict || i.generator || i.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = b, this.finishNode(i, S ? "FunctionDeclaration" : "FunctionExpression");
|
|
4907
4912
|
}, l.parseFunctionBody = function(i, r, u, c, d) {
|
|
@@ -4994,7 +4999,7 @@ function Wr(e) {
|
|
|
4994
4999
|
else {
|
|
4995
5000
|
if (i.declaration = null, i.specifiers = this.parseExportSpecifiers(r), this.eatContextual("from")) this.type !== o.string && this.unexpected(), i.source = this.parseExprAtom(), this.parseMaybeImportAttributes(i);
|
|
4996
5001
|
else {
|
|
4997
|
-
for (var y, g =
|
|
5002
|
+
for (var y, g = di(i.specifiers); !(y = g()).done; ) {
|
|
4998
5003
|
var b = y.value;
|
|
4999
5004
|
this.checkUnreserved(b.local), this.checkLocalExport(b.local), b.local.type === "Literal" && this.raise(b.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
5000
5005
|
}
|
|
@@ -5057,9 +5062,9 @@ function Wr(e) {
|
|
|
5057
5062
|
this.next(), T.prototype.parseVar.call(this, i, !1, r, u || c), this.semicolon();
|
|
5058
5063
|
var d = this.finishNode(i, "VariableDeclaration");
|
|
5059
5064
|
if (!c) return d;
|
|
5060
|
-
for (var m, y =
|
|
5065
|
+
for (var m, y = di(d.declarations); !(m = y()).done; ) {
|
|
5061
5066
|
var g = m.value, b = g.init;
|
|
5062
|
-
b && (r !== "const" || g.id.typeAnnotation ? this.raise(b.start, A.InitializerNotAllowedInAmbientContext) : b.type !== "StringLiteral" && b.type !== "BooleanLiteral" && b.type !== "NumericLiteral" && b.type !== "BigIntLiteral" && (b.type !== "TemplateLiteral" || b.expressions.length > 0) && !
|
|
5067
|
+
b && (r !== "const" || g.id.typeAnnotation ? this.raise(b.start, A.InitializerNotAllowedInAmbientContext) : b.type !== "StringLiteral" && b.type !== "BooleanLiteral" && b.type !== "NumericLiteral" && b.type !== "BigIntLiteral" && (b.type !== "TemplateLiteral" || b.expressions.length > 0) && !Wr(b) && this.raise(b.start, A.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
5063
5068
|
}
|
|
5064
5069
|
return d;
|
|
5065
5070
|
}, l.parseStatement = function(i, r, u) {
|
|
@@ -5134,7 +5139,7 @@ function Wr(e) {
|
|
|
5134
5139
|
var g = i.declare, b = i.kind;
|
|
5135
5140
|
!(g !== void 0 && g) || b !== "get" && b !== "set" || this.raise(i.start, A.DeclareAccessor({ kind: b })), y && (i.typeParameters = y);
|
|
5136
5141
|
var S = i.key;
|
|
5137
|
-
i.kind === "constructor" ? (r && this.raise(S.start, "Constructor can't be a generator"), u && this.raise(S.start, "Constructor can't be an async method")) : i.static &&
|
|
5142
|
+
i.kind === "constructor" ? (r && this.raise(S.start, "Constructor can't be a generator"), u && this.raise(S.start, "Constructor can't be an async method")) : i.static && yi(i, "prototype") && this.raise(S.start, "Classes may not have a static property named prototype");
|
|
5138
5143
|
var E = i.value = this.parseMethod(r, u, c, !0, i);
|
|
5139
5144
|
return i.kind === "get" && E.params.length !== 0 && this.raiseRecoverable(E.start, "getter should have no params"), i.kind === "set" && E.params.length !== 1 && this.raiseRecoverable(E.start, "setter should have exactly one param"), i.kind === "set" && E.params[0].type === "RestElement" && this.raiseRecoverable(E.params[0].start, "Setter cannot use rest params"), this.finishNode(i, "MethodDefinition");
|
|
5140
5145
|
}, l.isClassMethod = function() {
|
|
@@ -5149,12 +5154,12 @@ function Wr(e) {
|
|
|
5149
5154
|
var k = r.tsTryParseIndexSignature(d);
|
|
5150
5155
|
if (k) return d.abstract && r.raise(d.start, A.IndexSignatureHasAbstract), d.accessibility && r.raise(d.start, A.IndexSignatureHasAccessibility({ modifier: d.accessibility })), d.declare && r.raise(d.start, A.IndexSignatureHasDeclare), d.override && r.raise(d.start, A.IndexSignatureHasOverride), k;
|
|
5151
5156
|
if (!r.inAbstractClass && d.abstract && r.raise(d.start, A.NonAbstractClassHasAbstractMethod), d.override && i && r.raise(d.start, A.OverrideNotInSubClass), d.static = u, u && (r.isClassElementNameStart() || r.type === o.star || (m = "static")), !m && c >= 8 && r.eatContextual("async") && (!r.isClassElementNameStart() && r.type !== o.star || r.canInsertSemicolon() ? m = "async" : g = !0), !m && (c >= 9 || !g) && r.eat(o.star) && (y = !0), !m && !g && !y) {
|
|
5152
|
-
var
|
|
5153
|
-
(r.eatContextual("get") || r.eatContextual("set")) && (r.isClassElementNameStart() ? b =
|
|
5157
|
+
var $ = r.value;
|
|
5158
|
+
(r.eatContextual("get") || r.eatContextual("set")) && (r.isClassElementNameStart() ? b = $ : m = $);
|
|
5154
5159
|
}
|
|
5155
5160
|
if (m ? (d.computed = !1, d.key = r.startNodeAt(r.lastTokStart, r.lastTokStartLoc), d.key.name = m, r.finishNode(d.key, "Identifier")) : r.parseClassElementName(d), r.parsePostMemberNameModifiers(d), r.isClassMethod() || c < 13 || r.type === o.parenL || b !== "method" || y || g) {
|
|
5156
|
-
var U = !d.static &&
|
|
5157
|
-
U && b !== "method" && r.raise(d.key.start, "Constructor can't have get/set modifier"), d.kind = U ? "constructor" : b, r.parseClassMethod(d, y, g,
|
|
5161
|
+
var U = !d.static && yi(d, "constructor"), q = U && i;
|
|
5162
|
+
U && b !== "method" && r.raise(d.key.start, "Constructor can't have get/set modifier"), d.kind = U ? "constructor" : b, r.parseClassMethod(d, y, g, q);
|
|
5158
5163
|
} else r.parseClassField(d);
|
|
5159
5164
|
return d;
|
|
5160
5165
|
}
|
|
@@ -5175,7 +5180,7 @@ function Wr(e) {
|
|
|
5175
5180
|
}, l.parseArrowExpression = function(i, r, u, c) {
|
|
5176
5181
|
this.match(o.colon) && (i.returnType = this.tsParseTypeAnnotation());
|
|
5177
5182
|
var d = this.yieldPos, m = this.awaitPos, y = this.awaitIdentPos;
|
|
5178
|
-
this.enterScope(16 |
|
|
5183
|
+
this.enterScope(16 | Dt(u, !1)), this.initFunction(i);
|
|
5179
5184
|
var g = this.maybeInArrowParameters;
|
|
5180
5185
|
return this.options.ecmaVersion >= 8 && (i.async = !!u), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.maybeInArrowParameters = !0, i.params = this.toAssignableList(r, !0), this.maybeInArrowParameters = !1, this.parseFunctionBody(i, !0, !1, c), this.yieldPos = d, this.awaitPos = m, this.awaitIdentPos = y, this.maybeInArrowParameters = g, this.finishNode(i, "ArrowFunctionExpression");
|
|
5181
5186
|
}, l.parseMaybeAssignOrigin = function(i, r, u) {
|
|
@@ -5194,28 +5199,28 @@ function Wr(e) {
|
|
|
5194
5199
|
}
|
|
5195
5200
|
return c && this.checkExpressionErrors(r, !0), d > -1 && (r.parenthesizedAssign = d), m > -1 && (r.trailingComma = m), S;
|
|
5196
5201
|
}, l.parseMaybeAssign = function(i, r, u) {
|
|
5197
|
-
var c, d, m, y, g, b, S, E, L, k,
|
|
5202
|
+
var c, d, m, y, g, b, S, E, L, k, $, U = this;
|
|
5198
5203
|
if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
|
|
5199
5204
|
if (E = this.cloneCurLookaheadState(), !(L = this.tryParse(function() {
|
|
5200
5205
|
return U.parseMaybeAssignOrigin(i, r, u);
|
|
5201
5206
|
}, E)).error) return L.node;
|
|
5202
|
-
var
|
|
5203
|
-
W === x.tokContexts.tc_oTag &&
|
|
5207
|
+
var q = this.context, W = q[q.length - 1];
|
|
5208
|
+
W === x.tokContexts.tc_oTag && q[q.length - 2] === x.tokContexts.tc_expr ? (q.pop(), q.pop()) : W !== x.tokContexts.tc_oTag && W !== x.tokContexts.tc_expr || q.pop();
|
|
5204
5209
|
}
|
|
5205
5210
|
if (!((c = L) != null && c.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(i, r, u);
|
|
5206
5211
|
E && !this.compareLookaheadState(E, this.getCurLookaheadState()) || (E = this.cloneCurLookaheadState());
|
|
5207
5212
|
var re = this.tryParse(function(Le) {
|
|
5208
5213
|
var Xe, Qe;
|
|
5209
|
-
|
|
5214
|
+
$ = U.tsParseTypeParameters();
|
|
5210
5215
|
var Oe = U.parseMaybeAssignOrigin(i, r, u);
|
|
5211
|
-
return (Oe.type !== "ArrowFunctionExpression" || (Xe = Oe.extra) != null && Xe.parenthesized) && Le(), ((Qe =
|
|
5216
|
+
return (Oe.type !== "ArrowFunctionExpression" || (Xe = Oe.extra) != null && Xe.parenthesized) && Le(), ((Qe = $) == null ? void 0 : Qe.params.length) !== 0 && U.resetStartLocationFromNode(Oe, $), Oe.typeParameters = $, Oe;
|
|
5212
5217
|
}, E);
|
|
5213
|
-
if (!re.error && !re.aborted) return
|
|
5214
|
-
if (!L && (
|
|
5218
|
+
if (!re.error && !re.aborted) return $ && this.reportReservedArrowTypeParam($), re.node;
|
|
5219
|
+
if (!L && (xi(!0), !(k = this.tryParse(function() {
|
|
5215
5220
|
return U.parseMaybeAssignOrigin(i, r, u);
|
|
5216
5221
|
}, E)).error)) return k.node;
|
|
5217
5222
|
if ((d = L) != null && d.node) return this.setLookaheadState(L.failState), L.node;
|
|
5218
|
-
if (re.node) return this.setLookaheadState(re.failState),
|
|
5223
|
+
if (re.node) return this.setLookaheadState(re.failState), $ && this.reportReservedArrowTypeParam($), re.node;
|
|
5219
5224
|
if ((m = k) != null && m.node) return this.setLookaheadState(k.failState), k.node;
|
|
5220
5225
|
throw (y = L) != null && y.thrown ? L.error : re.thrown ? re.error : (g = k) != null && g.thrown ? k.error : ((b = L) == null ? void 0 : b.error) || re.error || ((S = k) == null ? void 0 : S.error);
|
|
5221
5226
|
}, l.parseAssignableListItem = function(i) {
|
|
@@ -5341,7 +5346,7 @@ function Wr(e) {
|
|
|
5341
5346
|
if (this.options.ecmaVersion >= 6) {
|
|
5342
5347
|
var y = this.maybeInArrowParameters;
|
|
5343
5348
|
this.maybeInArrowParameters = !0, this.next();
|
|
5344
|
-
var g, b = this.start, S = this.startLoc, E = [], L = !0, k = !1,
|
|
5349
|
+
var g, b = this.start, S = this.startLoc, E = [], L = !0, k = !1, $ = new Ye(), U = this.yieldPos, q = this.awaitPos;
|
|
5345
5350
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; ) {
|
|
5346
5351
|
if (L ? L = !1 : this.expect(o.comma), m && this.afterTrailingComma(o.parenR, !0)) {
|
|
5347
5352
|
k = !0;
|
|
@@ -5351,11 +5356,11 @@ function Wr(e) {
|
|
|
5351
5356
|
g = this.start, E.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raise(this.start, "Comma is not permitted after the rest element");
|
|
5352
5357
|
break;
|
|
5353
5358
|
}
|
|
5354
|
-
E.push(this.parseMaybeAssign(r,
|
|
5359
|
+
E.push(this.parseMaybeAssign(r, $, this.parseParenItem));
|
|
5355
5360
|
}
|
|
5356
5361
|
var W = this.lastTokEnd, re = this.lastTokEndLoc;
|
|
5357
|
-
if (this.expect(o.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(E) && this.eat(o.arrow)) return this.checkPatternErrors(
|
|
5358
|
-
E.length && !k || this.unexpected(this.lastTokStart), g && this.unexpected(g), this.checkExpressionErrors(
|
|
5362
|
+
if (this.expect(o.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(E) && this.eat(o.arrow)) return this.checkPatternErrors($, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = U, this.awaitPos = q, this.parseParenArrowList(c, d, E, r);
|
|
5363
|
+
E.length && !k || this.unexpected(this.lastTokStart), g && this.unexpected(g), this.checkExpressionErrors($, !0), this.yieldPos = U || this.yieldPos, this.awaitPos = q || this.awaitPos, E.length > 1 ? ((u = this.startNodeAt(b, S)).expressions = E, this.finishNodeAt(u, "SequenceExpression", W, re)) : u = E[0];
|
|
5359
5364
|
} else u = this.parseParenExpression();
|
|
5360
5365
|
if (this.options.preserveParens) {
|
|
5361
5366
|
var Le = this.startNodeAt(c, d);
|
|
@@ -5399,51 +5404,51 @@ function Wr(e) {
|
|
|
5399
5404
|
if (this.tsMatchLeftRelational() || this.match(o.bitShift)) {
|
|
5400
5405
|
var L, k = this.tsTryParseAndCatch(function() {
|
|
5401
5406
|
if (!c && g.atPossibleAsyncArrow(i)) {
|
|
5402
|
-
var
|
|
5403
|
-
if (
|
|
5407
|
+
var ii = g.tsTryParseGenericAsyncArrowFunction(r, u, y);
|
|
5408
|
+
if (ii) return i = ii;
|
|
5404
5409
|
}
|
|
5405
5410
|
var ct = g.tsParseTypeArgumentsInExpression();
|
|
5406
5411
|
if (!ct) return i;
|
|
5407
5412
|
if (E && !g.match(o.parenL)) return L = g.curPosition(), i;
|
|
5408
|
-
if (
|
|
5409
|
-
var
|
|
5410
|
-
return
|
|
5413
|
+
if (fs(g.type) || g.type === o.backQuote) {
|
|
5414
|
+
var si = g.parseTaggedTemplateExpression(i, r, u, b);
|
|
5415
|
+
return si.typeParameters = ct, si;
|
|
5411
5416
|
}
|
|
5412
5417
|
if (!c && g.eat(o.parenL)) {
|
|
5413
|
-
var
|
|
5414
|
-
return
|
|
5418
|
+
var ri = new Ye(), $e = g.startNodeAt(r, u);
|
|
5419
|
+
return $e.callee = i, $e.arguments = g.parseExprList(o.parenR, g.options.ecmaVersion >= 8, !1, ri), g.tsCheckForInvalidTypeCasts($e.arguments), $e.typeParameters = ct, b && ($e.optional = E), g.checkExpressionErrors(ri, !0), i = g.finishNode($e, "CallExpression");
|
|
5415
5420
|
}
|
|
5416
|
-
var
|
|
5417
|
-
if (!(g.tsMatchRightRelational() ||
|
|
5418
|
-
var
|
|
5419
|
-
return
|
|
5421
|
+
var Et = g.type;
|
|
5422
|
+
if (!(g.tsMatchRightRelational() || Et === o.bitShift || Et !== o.parenL && (ai = Et, !!ai.startsExpr) && !g.hasPrecedingLineBreak())) {
|
|
5423
|
+
var ai, It = g.startNodeAt(r, u);
|
|
5424
|
+
return It.expression = i, It.typeParameters = ct, g.finishNode(It, "TSInstantiationExpression");
|
|
5420
5425
|
}
|
|
5421
5426
|
});
|
|
5422
5427
|
if (L && this.unexpected(L), k) return k.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, A.InvalidPropertyAccessAfterInstantiationExpression), i = k;
|
|
5423
5428
|
}
|
|
5424
|
-
var
|
|
5429
|
+
var $ = this.options.ecmaVersion >= 11, U = $ && this.eat(o.questionDot);
|
|
5425
5430
|
c && U && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
5426
|
-
var
|
|
5427
|
-
if (
|
|
5431
|
+
var q = this.eat(o.bracketL);
|
|
5432
|
+
if (q || U && this.type !== o.parenL && this.type !== o.backQuote || this.eat(o.dot)) {
|
|
5428
5433
|
var W = this.startNodeAt(r, u);
|
|
5429
|
-
W.object = i,
|
|
5434
|
+
W.object = i, q ? (W.property = this.parseExpression(), this.expect(o.bracketR)) : W.property = this.type === o.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), W.computed = !!q, $ && (W.optional = U), i = this.finishNode(W, "MemberExpression");
|
|
5430
5435
|
} else if (!c && this.eat(o.parenL)) {
|
|
5431
5436
|
var re = this.maybeInArrowParameters;
|
|
5432
5437
|
this.maybeInArrowParameters = !0;
|
|
5433
5438
|
var Le = new Ye(), Xe = this.yieldPos, Qe = this.awaitPos, Oe = this.awaitIdentPos;
|
|
5434
5439
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
5435
|
-
var
|
|
5436
|
-
if (d && !U && this.shouldParseAsyncArrow()) this.checkPatternErrors(Le, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Xe, this.awaitPos = Qe, this.awaitIdentPos = Oe, i = this.parseSubscriptAsyncArrow(r, u,
|
|
5440
|
+
var ti = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, Le);
|
|
5441
|
+
if (d && !U && this.shouldParseAsyncArrow()) this.checkPatternErrors(Le, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Xe, this.awaitPos = Qe, this.awaitIdentPos = Oe, i = this.parseSubscriptAsyncArrow(r, u, ti, y);
|
|
5437
5442
|
else {
|
|
5438
5443
|
this.checkExpressionErrors(Le, !0), this.yieldPos = Xe || this.yieldPos, this.awaitPos = Qe || this.awaitPos, this.awaitIdentPos = Oe || this.awaitIdentPos;
|
|
5439
5444
|
var ht = this.startNodeAt(r, u);
|
|
5440
|
-
ht.callee = i, ht.arguments =
|
|
5445
|
+
ht.callee = i, ht.arguments = ti, $ && (ht.optional = U), i = this.finishNode(ht, "CallExpression");
|
|
5441
5446
|
}
|
|
5442
5447
|
this.maybeInArrowParameters = re;
|
|
5443
5448
|
} else if (this.type === o.backQuote) {
|
|
5444
5449
|
(U || b) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
5445
|
-
var
|
|
5446
|
-
|
|
5450
|
+
var At = this.startNodeAt(r, u);
|
|
5451
|
+
At.tag = i, At.quasi = this.parseTemplate({ isTagged: !0 }), i = this.finishNode(At, "TaggedTemplateExpression");
|
|
5447
5452
|
}
|
|
5448
5453
|
return i;
|
|
5449
5454
|
}, l.parseGetterSetter = function(i) {
|
|
@@ -5476,7 +5481,7 @@ function Wr(e) {
|
|
|
5476
5481
|
for (this.expect(o.braceL); this.type !== o.braceR; ) if (this.match(_.at)) g.push(this.parseDecorator());
|
|
5477
5482
|
else {
|
|
5478
5483
|
var b = this.parseClassElement(i.superClass !== null);
|
|
5479
|
-
g.length && (b.decorators = g, this.resetStartLocationFromNode(b, g[0]), g = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" &&
|
|
5484
|
+
g.length && (b.decorators = g, this.resetStartLocationFromNode(b, g[0]), g = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" && Ur(d, b) && this.raiseRecoverable(b.key.start, "Identifier '#" + b.key.name + "' has already been declared"));
|
|
5480
5485
|
}
|
|
5481
5486
|
return this.strict = c, this.next(), g.length && this.raise(this.start, "Decorators must be attached to a class element."), i.body = this.finishNode(m, "ClassBody"), this.exitClassBody(), this.finishNode(i, r ? "ClassDeclaration" : "ClassExpression");
|
|
5482
5487
|
} finally {
|
|
@@ -5487,7 +5492,7 @@ function Wr(e) {
|
|
|
5487
5492
|
return i && (r.typeParameters = i), r;
|
|
5488
5493
|
}, l.parseMethod = function(i, r, u, c, d) {
|
|
5489
5494
|
var m = this.startNode(), y = this.yieldPos, g = this.awaitPos, b = this.awaitIdentPos;
|
|
5490
|
-
if (this.initFunction(m), this.options.ecmaVersion >= 6 && (m.generator = i), this.options.ecmaVersion >= 8 && (m.async = !!r), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 |
|
|
5495
|
+
if (this.initFunction(m), this.options.ecmaVersion >= 6 && (m.generator = i), this.options.ecmaVersion >= 8 && (m.async = !!r), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | Dt(r, m.generator) | (u ? 128 : 0)), this.expect(o.parenL), m.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(m, !1, !0, !1, { isClassMethod: c }), this.yieldPos = y, this.awaitPos = g, this.awaitIdentPos = b, d && d.abstract && m.body) {
|
|
5491
5496
|
var S = d.key;
|
|
5492
5497
|
this.raise(d.start, A.AbstractMethodHasImplementation({ methodName: S.type !== "Identifier" || d.computed ? "[" + this.input.slice(S.start, S.end) + "]" : S.name }));
|
|
5493
5498
|
}
|
|
@@ -5589,12 +5594,12 @@ function Wr(e) {
|
|
|
5589
5594
|
return x;
|
|
5590
5595
|
} }], (G = [{ key: "acornTypeScript", get: function() {
|
|
5591
5596
|
return x;
|
|
5592
|
-
} }]) &&
|
|
5597
|
+
} }]) && li(Q.prototype, G), D && li(Q, D), Object.defineProperty(Q, "prototype", { writable: !1 }), ie;
|
|
5593
5598
|
})(f);
|
|
5594
|
-
return
|
|
5599
|
+
return xs;
|
|
5595
5600
|
};
|
|
5596
5601
|
}
|
|
5597
|
-
const
|
|
5602
|
+
const Xr = [
|
|
5598
5603
|
{ idPrefix: "datapos-app-nuxt", typeId: "app", isPublish: !1, uploadGroupName: void 0 },
|
|
5599
5604
|
{ idPrefix: "datapos-api", typeId: "api", isPublish: !1, uploadGroupName: void 0 },
|
|
5600
5605
|
{ idPrefix: "datapos-connector", typeId: "connector", isPublish: !0, uploadGroupName: "connectors" },
|
|
@@ -5606,8 +5611,8 @@ const zr = [
|
|
|
5606
5611
|
{ idPrefix: "datapos-shared", typeId: "shared", isPublish: !0, uploadGroupName: void 0 },
|
|
5607
5612
|
{ idPrefix: "datapos-tool", typeId: "tool", isPublish: !0, uploadGroupName: "tools" },
|
|
5608
5613
|
{ idPrefix: "eslint-config-datapos", typeId: "eslint", isPublish: !0, uploadGroupName: void 0 }
|
|
5609
|
-
],
|
|
5610
|
-
async function
|
|
5614
|
+
], Qr = gs(bs);
|
|
5615
|
+
async function Jr(e) {
|
|
5611
5616
|
let t;
|
|
5612
5617
|
try {
|
|
5613
5618
|
t = await oe.readdir(e, { withFileTypes: !0 });
|
|
@@ -5626,13 +5631,13 @@ async function Qr(e) {
|
|
|
5626
5631
|
})
|
|
5627
5632
|
);
|
|
5628
5633
|
}
|
|
5629
|
-
function
|
|
5630
|
-
const s = H.extend(
|
|
5634
|
+
function Zt(e) {
|
|
5635
|
+
const s = H.extend(zr()).parse(e, {
|
|
5631
5636
|
ecmaVersion: "latest",
|
|
5632
5637
|
sourceType: "module",
|
|
5633
5638
|
locations: !0
|
|
5634
5639
|
}), a = [];
|
|
5635
|
-
return
|
|
5640
|
+
return Ut(s, (n) => {
|
|
5636
5641
|
if (n.type !== "MethodDefinition") return;
|
|
5637
5642
|
const p = n, f = p.key;
|
|
5638
5643
|
if (f.type !== "Identifier") return;
|
|
@@ -5643,14 +5648,14 @@ function Yt(e) {
|
|
|
5643
5648
|
async function fe(e, t, s = [], a) {
|
|
5644
5649
|
const n = `${t} ${s.join(" ")}`;
|
|
5645
5650
|
e !== void 0 && z(`${e} - exec(${n})`);
|
|
5646
|
-
const { stdout: p, stderr: f } = await
|
|
5651
|
+
const { stdout: p, stderr: f } = await Qr(n);
|
|
5647
5652
|
a === void 0 ? p.trim() && console.log(p.trim()) : await oe.writeFile(a, p.trim(), "utf8"), f.trim() && console.error(f.trim());
|
|
5648
5653
|
}
|
|
5649
|
-
async function
|
|
5654
|
+
async function Yr(e, t) {
|
|
5650
5655
|
return oe.readdir(e, t);
|
|
5651
5656
|
}
|
|
5652
|
-
function
|
|
5653
|
-
const t =
|
|
5657
|
+
function hs(e) {
|
|
5658
|
+
const t = Xr.find((s) => e.startsWith(s.idPrefix));
|
|
5654
5659
|
if (!t) throw new Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
5655
5660
|
return t;
|
|
5656
5661
|
}
|
|
@@ -5675,7 +5680,7 @@ async function Y(e) {
|
|
|
5675
5680
|
async function je(e) {
|
|
5676
5681
|
return await oe.readFile(e, "utf8");
|
|
5677
5682
|
}
|
|
5678
|
-
async function
|
|
5683
|
+
async function Zr(e) {
|
|
5679
5684
|
try {
|
|
5680
5685
|
await oe.unlink(e);
|
|
5681
5686
|
} catch (t) {
|
|
@@ -5684,25 +5689,25 @@ async function Yr(e) {
|
|
|
5684
5689
|
}
|
|
5685
5690
|
async function ge(e, t, s = [], a = !1) {
|
|
5686
5691
|
return z(`${e} - spawn(${t} ${s.join(" ")})`), new Promise((n, p) => {
|
|
5687
|
-
|
|
5692
|
+
Ss(t, s, { stdio: "inherit" }).on("close", (v) => {
|
|
5688
5693
|
v === 0 || a ? n() : p(new Error(`${t} exited with code ${v}`));
|
|
5689
5694
|
});
|
|
5690
5695
|
});
|
|
5691
5696
|
}
|
|
5692
|
-
function
|
|
5697
|
+
function cs(e, t, s, a) {
|
|
5693
5698
|
const n = e.indexOf(s), p = e.indexOf(a);
|
|
5694
5699
|
if (n === -1 || p === -1) throw new Error(`Markers ${s}-${a} not found in content.`);
|
|
5695
5700
|
return `${e.slice(0, Math.max(0, n + s.length))}
|
|
5696
5701
|
${t}
|
|
5697
5702
|
${e.slice(Math.max(0, p))}`;
|
|
5698
5703
|
}
|
|
5699
|
-
async function
|
|
5704
|
+
async function bt(e, t) {
|
|
5700
5705
|
await oe.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
|
|
5701
5706
|
}
|
|
5702
5707
|
async function st(e, t) {
|
|
5703
5708
|
await oe.writeFile(e, t, "utf8");
|
|
5704
5709
|
}
|
|
5705
|
-
function
|
|
5710
|
+
function Ut(e, t) {
|
|
5706
5711
|
t(e);
|
|
5707
5712
|
for (const [s, a] of Object.entries(e)) {
|
|
5708
5713
|
if (["loc", "range", "start", "end", "comments"].includes(s)) continue;
|
|
@@ -5710,12 +5715,12 @@ function Bt(e, t) {
|
|
|
5710
5715
|
if (Array.isArray(n))
|
|
5711
5716
|
for (const p of n) {
|
|
5712
5717
|
const f = p;
|
|
5713
|
-
f && typeof f.type == "string" &&
|
|
5718
|
+
f && typeof f.type == "string" && Ut(f, t);
|
|
5714
5719
|
}
|
|
5715
|
-
else n && typeof n == "object" && typeof n.type == "string" &&
|
|
5720
|
+
else n && typeof n == "object" && typeof n.type == "string" && Ut(n, t);
|
|
5716
5721
|
}
|
|
5717
5722
|
}
|
|
5718
|
-
async function
|
|
5723
|
+
async function ea() {
|
|
5719
5724
|
const e = await Y("config.json"), t = {
|
|
5720
5725
|
body: JSON.stringify(e),
|
|
5721
5726
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5723,7 +5728,7 @@ async function Zr() {
|
|
|
5723
5728
|
}, s = await fetch(`https://api.datapos.app/states/${e.id}`, t);
|
|
5724
5729
|
if (!s.ok) throw new Error(await s.text());
|
|
5725
5730
|
}
|
|
5726
|
-
async function
|
|
5731
|
+
async function gi(e) {
|
|
5727
5732
|
const t = e.id, s = {
|
|
5728
5733
|
body: JSON.stringify(e),
|
|
5729
5734
|
headers: { "Content-Type": "application/json" },
|
|
@@ -5731,10 +5736,10 @@ async function vi(e) {
|
|
|
5731
5736
|
}, a = await fetch(`https://api.datapos.app/states/${t}`, s);
|
|
5732
5737
|
if (!a.ok) throw new Error(await a.text());
|
|
5733
5738
|
}
|
|
5734
|
-
async function
|
|
5739
|
+
async function bi(e, t) {
|
|
5735
5740
|
const s = `v${e.version}`;
|
|
5736
5741
|
async function a(n, p = "") {
|
|
5737
|
-
const f = await
|
|
5742
|
+
const f = await Yr(n, { withFileTypes: !0 });
|
|
5738
5743
|
for (const v of f) {
|
|
5739
5744
|
const x = `${n}/${v.name}`, o = p ? `${p}/${v.name}` : v.name;
|
|
5740
5745
|
if (v.isDirectory()) continue;
|
|
@@ -5744,44 +5749,44 @@ async function gi(e, t) {
|
|
|
5744
5749
|
}
|
|
5745
5750
|
await a("dist");
|
|
5746
5751
|
}
|
|
5747
|
-
const
|
|
5748
|
-
async function
|
|
5752
|
+
const ta = /* @__PURE__ */ new Set(["createObject", "dropObject", "removeRecords", "upsertRecords"]), ia = /* @__PURE__ */ new Set(["findObjectFolderPath", "getReadableStream", "getRecord", "listNodes", "previewObject", "retrieveChunks", "retrieveRecords"]);
|
|
5753
|
+
async function Ca() {
|
|
5749
5754
|
try {
|
|
5750
5755
|
we("Build Project"), await ge("1️⃣ Bundle project", "vite", ["build"]), Ne("Project built.");
|
|
5751
5756
|
} catch (e) {
|
|
5752
5757
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
5753
5758
|
}
|
|
5754
5759
|
}
|
|
5755
|
-
async function
|
|
5760
|
+
async function ka() {
|
|
5756
5761
|
try {
|
|
5757
5762
|
we("Release Project");
|
|
5758
5763
|
const e = await Y("package.json");
|
|
5759
5764
|
let t = await Y("config.json");
|
|
5760
|
-
await
|
|
5761
|
-
const s =
|
|
5765
|
+
await ps("1️⃣", e);
|
|
5766
|
+
const s = hs(t.id);
|
|
5762
5767
|
switch (s.typeId) {
|
|
5763
5768
|
case "connector":
|
|
5764
|
-
t = await
|
|
5769
|
+
t = await ra("2️⃣", e);
|
|
5765
5770
|
break;
|
|
5766
5771
|
case "context":
|
|
5767
|
-
t = await
|
|
5772
|
+
t = await aa("2️⃣", e);
|
|
5768
5773
|
break;
|
|
5769
5774
|
case "presenter":
|
|
5770
|
-
t = await
|
|
5775
|
+
t = await na("2️⃣", e);
|
|
5771
5776
|
break;
|
|
5772
5777
|
default:
|
|
5773
|
-
t = await
|
|
5778
|
+
t = await sa("2️⃣", e);
|
|
5774
5779
|
}
|
|
5775
5780
|
if (await ge("3️⃣ Bundle project", "vite", ["build"]), await fe("4️⃣ Stage changes", "git", ["add", "."]), await fe("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await fe("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), s.typeId === "app")
|
|
5776
|
-
z("7️⃣ Register module"), await
|
|
5781
|
+
z("7️⃣ Register module"), await ea();
|
|
5777
5782
|
else if (s.typeId === "engine")
|
|
5778
|
-
z("7️⃣ Register module"), await
|
|
5783
|
+
z("7️⃣ Register module"), await bi(e, `datapos-engine-eu/${s.uploadGroupName}`), await gi(t);
|
|
5779
5784
|
else if (s.uploadGroupName === void 0)
|
|
5780
5785
|
z("7️⃣ Registration NOT required.");
|
|
5781
5786
|
else {
|
|
5782
5787
|
z("7️⃣ Register module");
|
|
5783
5788
|
const a = t.id.split("-").slice(2).join("-");
|
|
5784
|
-
await
|
|
5789
|
+
await bi(e, `datapos-engine-eu/${s.uploadGroupName}/${a}`), await gi(t);
|
|
5785
5790
|
}
|
|
5786
5791
|
if (s.isPublish) {
|
|
5787
5792
|
const a = ".npmrc";
|
|
@@ -5789,7 +5794,7 @@ async function Ca() {
|
|
|
5789
5794
|
await st(a, `registry=https://registry.npmjs.org/
|
|
5790
5795
|
//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await ge("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]);
|
|
5791
5796
|
} finally {
|
|
5792
|
-
await
|
|
5797
|
+
await Zr(a);
|
|
5793
5798
|
}
|
|
5794
5799
|
} else
|
|
5795
5800
|
z(`8️⃣ Publishing NOT required for package with type identifier of '${s.typeId}'.`);
|
|
@@ -5798,16 +5803,16 @@ async function Ca() {
|
|
|
5798
5803
|
console.error("❌ Error releasing project.", e), process.exit(1);
|
|
5799
5804
|
}
|
|
5800
5805
|
}
|
|
5801
|
-
async function
|
|
5806
|
+
async function wa() {
|
|
5802
5807
|
try {
|
|
5803
5808
|
we("Synchronise Project with GitHub");
|
|
5804
5809
|
const e = await Y("package.json");
|
|
5805
|
-
z("Bump project version"), await
|
|
5810
|
+
z("Bump project version"), await ps("1️⃣", e), await fe("2️⃣ Stage changes", "git", ["add", "."]), await fe("3️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await fe("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), Ne(`Project version '${e.version}' synchronised with GitHub.`);
|
|
5806
5811
|
} catch (e) {
|
|
5807
5812
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
5808
5813
|
}
|
|
5809
5814
|
}
|
|
5810
|
-
function
|
|
5815
|
+
function Aa() {
|
|
5811
5816
|
try {
|
|
5812
5817
|
we("Test Project"), console.error(`
|
|
5813
5818
|
❌ No tests implemented.
|
|
@@ -5816,61 +5821,61 @@ function wa() {
|
|
|
5816
5821
|
console.error("❌ Error testing project.", e), process.exit(1);
|
|
5817
5822
|
}
|
|
5818
5823
|
}
|
|
5819
|
-
async function
|
|
5824
|
+
async function sa(e, t) {
|
|
5820
5825
|
z(`${e} Build project configuration`);
|
|
5821
5826
|
const s = await Y("config.json");
|
|
5822
|
-
return t.name != null && (s.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (s.version = t.version), await
|
|
5827
|
+
return t.name != null && (s.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (s.version = t.version), await bt("config.json", s), s;
|
|
5823
5828
|
}
|
|
5824
|
-
async function
|
|
5829
|
+
async function ra(e, t) {
|
|
5825
5830
|
z(`${e} Build connector project configuration`);
|
|
5826
|
-
const [s, a] = await Promise.all([Y("config.json"), je("src/index.ts")]), n = /* @__PURE__ */
|
|
5831
|
+
const [s, a] = await Promise.all([Y("config.json"), je("src/index.ts")]), n = /* @__PURE__ */ $t(Qs, s);
|
|
5827
5832
|
if (!n.success)
|
|
5828
5833
|
throw console.error("❌ Configuration is invalid:"), console.table(n.issues), new Error("Configuration is invalid.");
|
|
5829
|
-
const p =
|
|
5830
|
-
return await
|
|
5834
|
+
const p = Zt(a), f = oa(p);
|
|
5835
|
+
return await ei(t, s, p, f);
|
|
5831
5836
|
}
|
|
5832
|
-
async function
|
|
5833
|
-
return s.length > 0 ? (console.info(`ℹ️ Implements ${s.length} operations:`), console.table(s)) : console.warn("⚠️ Implements no operations."), a === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${a}' usage.`), e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), t.operations = s, t.usageId = a ?? "unknown", await
|
|
5837
|
+
async function ei(e, t, s, a) {
|
|
5838
|
+
return s.length > 0 ? (console.info(`ℹ️ Implements ${s.length} operations:`), console.table(s)) : console.warn("⚠️ Implements no operations."), a === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${a}' usage.`), e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), t.operations = s, t.usageId = a ?? "unknown", await bt("config.json", t), t;
|
|
5834
5839
|
}
|
|
5835
|
-
async function
|
|
5840
|
+
async function aa(e, t) {
|
|
5836
5841
|
z(`${e} Build context project configuration`);
|
|
5837
|
-
const [s, a] = await Promise.all([Y("config.json"), je("src/index.ts")]), n = /* @__PURE__ */
|
|
5842
|
+
const [s, a] = await Promise.all([Y("config.json"), je("src/index.ts")]), n = /* @__PURE__ */ $t($s, s);
|
|
5838
5843
|
if (!n.success)
|
|
5839
5844
|
throw console.error("❌ Configuration is invalid:"), console.table(n.issues), new Error("Configuration is invalid.");
|
|
5840
|
-
const p =
|
|
5841
|
-
return await
|
|
5845
|
+
const p = Zt(a);
|
|
5846
|
+
return await ei(t, s, p);
|
|
5842
5847
|
}
|
|
5843
|
-
async function
|
|
5848
|
+
async function na(e, t) {
|
|
5844
5849
|
z(`${e} Build presenter project configuration`);
|
|
5845
|
-
const [s, a] = await Promise.all([Y("config.json"), je("src/index.ts")]), n = /* @__PURE__ */
|
|
5850
|
+
const [s, a] = await Promise.all([Y("config.json"), je("src/index.ts")]), n = /* @__PURE__ */ $t(Hs, s);
|
|
5846
5851
|
if (!n.success)
|
|
5847
5852
|
throw console.error("❌ Configuration is invalid:"), console.table(n.issues), new Error("Configuration is invalid.");
|
|
5848
|
-
const p =
|
|
5849
|
-
return await
|
|
5853
|
+
const p = Zt(a);
|
|
5854
|
+
return await ei(t, s, p);
|
|
5850
5855
|
}
|
|
5851
|
-
async function
|
|
5856
|
+
async function ps(e, t, s = "./") {
|
|
5852
5857
|
if (z(`${e} Bump project version`), t.version == null)
|
|
5853
|
-
t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`), await
|
|
5858
|
+
t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`), await bt(`${s}package.json`, t);
|
|
5854
5859
|
else {
|
|
5855
5860
|
const a = t.version, n = t.version.split(".");
|
|
5856
|
-
t.version = `${n[0]}.${n[1]}.${Number(n[2]) + 1}`, console.info(`Project version bumped from '${a}' to '${t.version}'.`), await
|
|
5861
|
+
t.version = `${n[0]}.${n[1]}.${Number(n[2]) + 1}`, console.info(`Project version bumped from '${a}' to '${t.version}'.`), await bt(`${s}package.json`, t);
|
|
5857
5862
|
}
|
|
5858
5863
|
}
|
|
5859
|
-
function
|
|
5864
|
+
function oa(e) {
|
|
5860
5865
|
let t = !1, s = !1;
|
|
5861
5866
|
for (const a of e)
|
|
5862
|
-
|
|
5867
|
+
ia.has(a) && (t = !0), ta.has(a) && (s = !0);
|
|
5863
5868
|
return t && s ? "bidirectional" : t ? "source" : s ? "destination" : "unknown";
|
|
5864
5869
|
}
|
|
5865
|
-
const
|
|
5870
|
+
const ua = {
|
|
5866
5871
|
critical: { color: "D32F2F", label: "critical" },
|
|
5867
5872
|
high: { color: "EF6C00", label: "high" },
|
|
5868
5873
|
moderate: { color: "FBC02D", label: "moderate" },
|
|
5869
5874
|
low: { color: "6D8C31", label: "low" },
|
|
5870
5875
|
unknown: { color: "616161", label: "unknown" }
|
|
5871
5876
|
// See sample badges in ~/tests/sampleBadges.md. Also included 'info' colouring.
|
|
5872
|
-
},
|
|
5873
|
-
async function
|
|
5877
|
+
}, ha = "<!-- OWASP_BADGES_START -->", ca = "<!-- OWASP_BADGES_END -->";
|
|
5878
|
+
async function Ea() {
|
|
5874
5879
|
try {
|
|
5875
5880
|
we("Audit Dependencies");
|
|
5876
5881
|
const e = await Y("package.json");
|
|
@@ -5883,12 +5888,12 @@ async function Aa() {
|
|
|
5883
5888
|
"--nodePackageSkipDevDependencies",
|
|
5884
5889
|
"--nvdApiKey",
|
|
5885
5890
|
process.env.OWASP_NVD_API_KEY ?? ""
|
|
5886
|
-
]), await
|
|
5891
|
+
]), await pa("2️⃣"), await ge("3️⃣ Check using 'npm audit'", "npm", ["audit"]), Ne("Dependencies audited.");
|
|
5887
5892
|
} catch (e) {
|
|
5888
5893
|
console.error("❌ Error auditing dependencies.", e), process.exit(1);
|
|
5889
5894
|
}
|
|
5890
5895
|
}
|
|
5891
|
-
async function
|
|
5896
|
+
async function pa(e) {
|
|
5892
5897
|
z(`${e} Insert OWASP Badge(s) into 'README.md'`);
|
|
5893
5898
|
const t = await Y("dependency-check-reports/dependency-check-report.json"), s = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
|
|
5894
5899
|
for (const f of t.dependencies)
|
|
@@ -5897,34 +5902,34 @@ async function ca(e) {
|
|
|
5897
5902
|
const x = v.severity?.toLowerCase() ?? "unknown";
|
|
5898
5903
|
x in s ? s[x]++ : s.unknown++;
|
|
5899
5904
|
}
|
|
5900
|
-
const a = await
|
|
5905
|
+
const a = await la(s), n = await je("./README.md"), p = cs(n, a.join(" "), ha, ca);
|
|
5901
5906
|
await st("README.md", p), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
5902
5907
|
}
|
|
5903
|
-
async function
|
|
5908
|
+
async function la(e) {
|
|
5904
5909
|
const t = await Y("config.json"), s = [];
|
|
5905
5910
|
if (Object.values(e).reduce((n, p) => n + p, 0) === 0)
|
|
5906
5911
|
console.info("No vulnerabilities found."), s.push(`[](https://data-positioning.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5907
5912
|
else
|
|
5908
5913
|
for (const [n, p] of Object.entries(e)) {
|
|
5909
|
-
const f =
|
|
5914
|
+
const f = ua[n];
|
|
5910
5915
|
if (console.warn(`⚠️ ${p} ${f.label} vulnerability(ies) found.`), p === 0) continue;
|
|
5911
5916
|
const v = `https://img.shields.io/badge/OWASP-${p}%20${f.label}-${f.color}`;
|
|
5912
5917
|
s.push(`[](https://data-positioning.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
5913
5918
|
}
|
|
5914
5919
|
return s;
|
|
5915
5920
|
}
|
|
5916
|
-
async function
|
|
5921
|
+
async function Ia() {
|
|
5917
5922
|
try {
|
|
5918
5923
|
we("Check Dependencies"), await ge("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), await ge("2️⃣ Check using 'npm-check-updates'", "npm-check-updates", ["-i"]), Ne("Dependencies checked.");
|
|
5919
5924
|
} catch (e) {
|
|
5920
5925
|
console.error("❌ Error checking dependencies.", e), process.exit(1);
|
|
5921
5926
|
}
|
|
5922
5927
|
}
|
|
5923
|
-
const
|
|
5924
|
-
async function
|
|
5928
|
+
const fa = "<!-- DEPENDENCY_LICENSES_START -->", da = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
5929
|
+
async function _a(e = [], t = !0) {
|
|
5925
5930
|
try {
|
|
5926
5931
|
we("Document Dependencies");
|
|
5927
|
-
const s = e.flatMap((n) => ["--allowed", `'${n}'`]), a =
|
|
5932
|
+
const s = e.flatMap((n) => ["--allowed", `'${n}'`]), a = Si(new Ps(import.meta.resolve("@datapos/datapos-development/license-report-config")));
|
|
5928
5933
|
await fe(
|
|
5929
5934
|
"1️⃣ Generate 'licenses.json' file",
|
|
5930
5935
|
"license-report",
|
|
@@ -5935,7 +5940,7 @@ async function Ia(e = [], t = !0) {
|
|
|
5935
5940
|
"license-report-recursive",
|
|
5936
5941
|
["--only=prod,peer", "--output=tree", "--recurse", "--department.value=n/a", "--licensePeriod.value=n/a", "--material.value=n/a", "--relatedTo.value=n/a"],
|
|
5937
5942
|
"licenses/licenseTree.json"
|
|
5938
|
-
), await fe("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (z("3️⃣ Skip 'licenses/licenseTree.json' file generate"), z("4️⃣ Skip 'licenses/licenseTree.json' file check")), await
|
|
5943
|
+
), await fe("4️⃣ Check 'licenseTree.json' file", "license-report-check", ["--source", "licenses/licenseTree.json", "--output=table", ...s])) : (z("3️⃣ Skip 'licenses/licenseTree.json' file generate"), z("4️⃣ Skip 'licenses/licenseTree.json' file check")), await Jr("licenses/downloads"), await fe("5️⃣ Download license files", "license-downloader", [
|
|
5939
5944
|
"--source",
|
|
5940
5945
|
"licenses/licenses.json",
|
|
5941
5946
|
"--licDir",
|
|
@@ -5943,12 +5948,12 @@ async function Ia(e = [], t = !0) {
|
|
|
5943
5948
|
"--githubToken.tokenEnvVar",
|
|
5944
5949
|
"GITHUB_TOKEN",
|
|
5945
5950
|
"--download"
|
|
5946
|
-
]), await
|
|
5951
|
+
]), await ma("6️⃣", t), Ne("Dependencies documented.");
|
|
5947
5952
|
} catch (s) {
|
|
5948
5953
|
console.error("❌ Error documenting dependencies.", s), process.exit(1);
|
|
5949
5954
|
}
|
|
5950
5955
|
}
|
|
5951
|
-
async function
|
|
5956
|
+
async function ma(e, t) {
|
|
5952
5957
|
z(`${e} Insert licenses into 'README.md'`);
|
|
5953
5958
|
const s = await Y("licenses/licenses.json"), a = await Y("licenses/downloads/licenses.ext.json");
|
|
5954
5959
|
let n = [];
|
|
@@ -5973,15 +5978,15 @@ async function da(e, t) {
|
|
|
5973
5978
|
|:-|:-|:-:|:-:|:-|-:|:-|
|
|
5974
5979
|
`;
|
|
5975
5980
|
for (const o of p) {
|
|
5976
|
-
const P = o.installedVersion === o.remoteVersion ? o.installedVersion : `${o.installedVersion} ⚠️`, I = o.latestRemoteModified ?
|
|
5981
|
+
const P = o.installedVersion === o.remoteVersion ? o.installedVersion : `${o.installedVersion} ⚠️`, I = o.latestRemoteModified ? ya(o.latestRemoteModified.split("T")[0]) : "n/a", B = o.dependencyCount != null && o.dependencyCount >= 0 ? o.dependencyCount : "n/a";
|
|
5977
5982
|
let ue;
|
|
5978
5983
|
o.licenseFileLink == null || o.licenseFileLink == "" ? ue = "⚠️ No license file" : ue = `[${o.licenseFileLink.slice(Math.max(0, o.licenseFileLink.lastIndexOf("/") + 1))}](${o.licenseFileLink})`, f += `|${o.name}|${o.licenseType}|${P}|${o.remoteVersion}|${I}|${B}|${ue}|
|
|
5979
5984
|
`;
|
|
5980
5985
|
}
|
|
5981
|
-
const v = await je("./README.md"), x =
|
|
5986
|
+
const v = await je("./README.md"), x = cs(v, f, fa, da);
|
|
5982
5987
|
await st("README.md", x), console.info("OWASP audit badge(s) inserted into 'README.md'"), await st("README.md", x);
|
|
5983
5988
|
}
|
|
5984
|
-
function
|
|
5989
|
+
function ya(e) {
|
|
5985
5990
|
if (e == null || e === "") return "n/a";
|
|
5986
5991
|
const t = e.split("T")[0];
|
|
5987
5992
|
if (t == null || t === "") return "n/a";
|
|
@@ -5989,33 +5994,33 @@ function ma(e) {
|
|
|
5989
5994
|
let n = (a.getFullYear() - s.getFullYear()) * 12 + (a.getMonth() - s.getMonth());
|
|
5990
5995
|
return a.getDate() < s.getDate() && (n -= 1), n === 0 ? `this month: ${t}` : n === 1 ? `1 month ago: ${t}` : n <= 6 ? `${n} months ago: ${t}` : n <= 12 ? `${n} months ago: ${t} ⚠️` : `${n} months ago: ${t}❗`;
|
|
5991
5996
|
}
|
|
5992
|
-
async function
|
|
5997
|
+
async function Na() {
|
|
5993
5998
|
try {
|
|
5994
5999
|
we("Format Code");
|
|
5995
|
-
const s = ["--write", "*.json", "*.md", "*.ts", ...["app", "src"].filter((a) =>
|
|
6000
|
+
const s = ["--write", "*.json", "*.md", "*.ts", ...["app", "src"].filter((a) => vs(a)).map((a) => `${a}/**`)];
|
|
5996
6001
|
await ge("1️⃣ Format", "prettier", s), Ne("Code formatted.");
|
|
5997
6002
|
} catch (e) {
|
|
5998
6003
|
console.error("❌ Error formatting code.", e), process.exit(1);
|
|
5999
6004
|
}
|
|
6000
6005
|
}
|
|
6001
|
-
async function
|
|
6006
|
+
async function La() {
|
|
6002
6007
|
try {
|
|
6003
6008
|
we("Lint Code"), await ge("1️⃣ Lint", "eslint", ["."]), Ne("Code linted.");
|
|
6004
6009
|
} catch (e) {
|
|
6005
6010
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
6006
6011
|
}
|
|
6007
6012
|
}
|
|
6008
|
-
const
|
|
6009
|
-
async function
|
|
6013
|
+
const xa = ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣"];
|
|
6014
|
+
async function Oa(e = []) {
|
|
6010
6015
|
try {
|
|
6011
6016
|
we("Update '@datapos/datapos' Dependencies");
|
|
6012
6017
|
for (const [t, s] of e.entries()) {
|
|
6013
|
-
const a =
|
|
6018
|
+
const a = xa.at(t) ?? "🔢";
|
|
6014
6019
|
if (s === "eslint")
|
|
6015
6020
|
await ge(`${a} Update '${s}'`, "npm", ["install", "@datapos/eslint-config-datapos@latest"]);
|
|
6016
6021
|
else if (await ge(`${a} Update '${s}'`, "npm", ["install", `@datapos/datapos-${s}@latest`]), s === "development") {
|
|
6017
|
-
const n = await Y("config.json"), p =
|
|
6018
|
-
await
|
|
6022
|
+
const n = await Y("config.json"), p = hs(n.id);
|
|
6023
|
+
await va(p);
|
|
6019
6024
|
}
|
|
6020
6025
|
}
|
|
6021
6026
|
Ne("'@datapos/datapos' dependencies updated.");
|
|
@@ -6023,8 +6028,8 @@ async function La(e = []) {
|
|
|
6023
6028
|
console.error("❌ Error updating '@datapos/datapos' dependencies.", t), process.exit(1);
|
|
6024
6029
|
}
|
|
6025
6030
|
}
|
|
6026
|
-
async function
|
|
6027
|
-
const t = Ze.dirname(
|
|
6031
|
+
async function va(e) {
|
|
6032
|
+
const t = Ze.dirname(Si(import.meta.url));
|
|
6028
6033
|
await be(t, "../", ".editorconfig"), await be(t, "../", ".gitattributes"), await (e.isPublish ? be(t, "../", ".gitignore_published", ".gitignore2") : be(t, "../", ".gitignore_unpublished", ".gitignore2")), await be(t, "../", ".markdownlint.json"), await be(t, "../", "LICENSE"), await be(t, "../", "tsconfig.json", "tsconfig2.json"), e.typeId === "eslint" || (await be(t, "../", "eslint.config.ts", "eslint.config2.ts"), await be(t, "../", "vite.config.ts", "vite.config2.ts"), await be(t, "../", "vitest.config.ts", "vitest.config2.ts"));
|
|
6029
6034
|
}
|
|
6030
6035
|
async function be(e, t, s, a) {
|
|
@@ -6041,7 +6046,7 @@ async function be(e, t, s, a) {
|
|
|
6041
6046
|
}
|
|
6042
6047
|
await st(v, p), console.info(`ℹ️ File '${a ?? s}' synchronised.`);
|
|
6043
6048
|
}
|
|
6044
|
-
async function
|
|
6049
|
+
async function Ra(e) {
|
|
6045
6050
|
try {
|
|
6046
6051
|
console.info(`🚀 Building public directory index for identifier '${e}'...`);
|
|
6047
6052
|
const t = {};
|
|
@@ -6057,7 +6062,7 @@ async function Oa(e) {
|
|
|
6057
6062
|
const I = await oe.readdir(o), B = { childCount: I.length, name: x, typeId: "folder" };
|
|
6058
6063
|
f.push(B), await s(o, I);
|
|
6059
6064
|
} else {
|
|
6060
|
-
const I = { id:
|
|
6065
|
+
const I = { id: Cs(), lastModifiedAt: P.mtimeMs, name: x, size: P.size, typeId: "object" };
|
|
6061
6066
|
f.push(I);
|
|
6062
6067
|
}
|
|
6063
6068
|
} catch (P) {
|
|
@@ -6076,16 +6081,16 @@ async function Oa(e) {
|
|
|
6076
6081
|
}
|
|
6077
6082
|
}
|
|
6078
6083
|
export {
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6084
|
+
Ea as auditDependencies,
|
|
6085
|
+
Ra as buildDirectoryIndex,
|
|
6086
|
+
Ca as buildProject,
|
|
6087
|
+
Ia as checkDependencies,
|
|
6088
|
+
_a as documentDependencies,
|
|
6089
|
+
Na as formatCode,
|
|
6090
|
+
La as lintCode,
|
|
6091
|
+
ka as releaseProject,
|
|
6092
|
+
wa as syncProjectWithGitHub,
|
|
6093
|
+
Aa as testProject,
|
|
6094
|
+
Oa as updateDataPosDependencies
|
|
6090
6095
|
};
|
|
6091
6096
|
//# sourceMappingURL=datapos-development.es.js.map
|