@shopify/cli 3.88.1 → 3.89.0

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.
Files changed (96) hide show
  1. package/dist/acorn-45LE5Z2A.js +3016 -0
  2. package/dist/angular-Z5FPQPLR.js +2791 -0
  3. package/dist/babel-TRRZ6QQY.js +7173 -0
  4. package/dist/{chunk-SXCTF3GA.js → chunk-2CNWYFWQ.js} +5 -5
  5. package/dist/{chunk-OOFJXO66.js → chunk-2OJBOBH2.js} +3 -3
  6. package/dist/{chunk-R35DWLU3.js → chunk-2QVJ6J2X.js} +7 -6
  7. package/dist/{chunk-4JKPZ3VQ.js → chunk-36WMFQ3S.js} +3 -3
  8. package/dist/{chunk-ZICCE4RM.js → chunk-5PAHFSKT.js} +3 -3
  9. package/dist/{chunk-S2JA5KN5.js → chunk-6KFJWCTP.js} +2 -2
  10. package/dist/{chunk-O66HZU2K.js → chunk-6YASM3HI.js} +5 -5
  11. package/dist/{chunk-G35J5BJH.js → chunk-B5Q2Q4B3.js} +3 -3
  12. package/dist/{chunk-4B34L27W.js → chunk-CUCT627W.js} +8 -8
  13. package/dist/{chunk-FM5O5ML5.js → chunk-EAEHP4CZ.js} +4 -4
  14. package/dist/{chunk-SKMKK4HY.js → chunk-EQO4QA4E.js} +34 -13
  15. package/dist/{chunk-KV7DPDLS.js → chunk-EYUOBXKH.js} +3 -3
  16. package/dist/{chunk-OIOM46UG.js → chunk-GFYDB5LD.js} +3 -3
  17. package/dist/{chunk-HJSZAWSQ.js → chunk-GSUL4KBP.js} +2086 -2215
  18. package/dist/{chunk-GTQOY34I.js → chunk-GT7PA6E6.js} +2 -2
  19. package/dist/{chunk-J7IE6I2Z.js → chunk-JYBBGVIM.js} +3 -3
  20. package/dist/{chunk-G7LVOLJB.js → chunk-LJHVLE3R.js} +2 -2
  21. package/dist/{chunk-YRMUH267.js → chunk-NJR5IH3H.js} +4 -4
  22. package/dist/{chunk-EXVAVPLH.js → chunk-P3SM4EEQ.js} +3 -3
  23. package/dist/{chunk-2CKTOMXL.js → chunk-PYPPUTUV.js} +2 -2
  24. package/dist/{chunk-DOGBHIKU.js → chunk-R7OKLQB6.js} +4 -4
  25. package/dist/{chunk-MBL5HIUY.js → chunk-TLGBKEEX.js} +6 -6
  26. package/dist/{chunk-PLB4SUD2.js → chunk-TPPRDIBF.js} +4 -4
  27. package/dist/{chunk-L6RKBI62.js → chunk-TRR5QJRW.js} +4 -4
  28. package/dist/{chunk-KY3DY3JB.js → chunk-TWYT4DFD.js} +2 -2
  29. package/dist/{chunk-47RUNUR4.js → chunk-V2ZY6OP3.js} +6 -6
  30. package/dist/{chunk-VLBE545G.js → chunk-WC5EDB4Z.js} +4 -4
  31. package/dist/{chunk-YHMVT4MX.js → chunk-WF5BWNFE.js} +6 -6
  32. package/dist/{chunk-ARNI43Y7.js → chunk-WSX6K4TT.js} +3 -3
  33. package/dist/{chunk-HFXVR5DX.js → chunk-XLMH6DBR.js} +3 -3
  34. package/dist/{chunk-EBGZZ7WC.js → chunk-Y2BHJWKT.js} +2 -2
  35. package/dist/{chunk-WEFPJFSC.js → chunk-Y3HY6QD7.js} +5 -5
  36. package/dist/{chunk-2IQA6YOH.js → chunk-YETFHMCK.js} +7 -7
  37. package/dist/{chunk-A2XFK3DK.js → chunk-ZM543XCR.js} +3 -3
  38. package/dist/cli/commands/auth/login.js +10 -10
  39. package/dist/cli/commands/auth/login.test.js +11 -11
  40. package/dist/cli/commands/auth/logout.js +10 -10
  41. package/dist/cli/commands/auth/logout.test.js +11 -11
  42. package/dist/cli/commands/cache/clear.js +10 -10
  43. package/dist/cli/commands/debug/command-flags.js +10 -10
  44. package/dist/cli/commands/docs/generate.js +10 -10
  45. package/dist/cli/commands/docs/generate.test.js +10 -10
  46. package/dist/cli/commands/help.js +10 -10
  47. package/dist/cli/commands/kitchen-sink/async.js +11 -11
  48. package/dist/cli/commands/kitchen-sink/async.test.js +11 -11
  49. package/dist/cli/commands/kitchen-sink/index.js +13 -13
  50. package/dist/cli/commands/kitchen-sink/index.test.js +13 -13
  51. package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
  52. package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -11
  53. package/dist/cli/commands/kitchen-sink/static.js +11 -11
  54. package/dist/cli/commands/kitchen-sink/static.test.js +11 -11
  55. package/dist/cli/commands/notifications/generate.js +11 -11
  56. package/dist/cli/commands/notifications/list.js +11 -11
  57. package/dist/cli/commands/search.js +11 -11
  58. package/dist/cli/commands/upgrade.js +11 -11
  59. package/dist/cli/commands/version.js +11 -11
  60. package/dist/cli/commands/version.test.js +11 -11
  61. package/dist/cli/services/commands/notifications.js +8 -8
  62. package/dist/cli/services/commands/search.js +4 -4
  63. package/dist/cli/services/commands/search.test.js +4 -4
  64. package/dist/cli/services/commands/version.js +5 -5
  65. package/dist/cli/services/commands/version.test.js +6 -6
  66. package/dist/cli/services/kitchen-sink/async.js +4 -4
  67. package/dist/cli/services/kitchen-sink/prompts.js +4 -4
  68. package/dist/cli/services/kitchen-sink/static.js +4 -4
  69. package/dist/cli/services/upgrade.js +5 -5
  70. package/dist/cli/services/upgrade.test.js +6 -6
  71. package/dist/{custom-oclif-loader-32S55IZR.js → custom-oclif-loader-TLTSWHLS.js} +4 -4
  72. package/dist/{devtools-EVCDECOU.js → devtools-2SG3BFWJ.js} +4 -4
  73. package/dist/{devtools-LDCSRUXB.js → devtools-D47L6HIC.js} +7 -7
  74. package/dist/{error-handler-5ISTZ76A.js → error-handler-JWFNITM6.js} +8 -8
  75. package/dist/estree-PY6WKTNG.js +4490 -0
  76. package/dist/flow-YN54TSCB.js +27513 -0
  77. package/dist/glimmer-RMPUUUDS.js +2781 -0
  78. package/dist/graphql-PPLVYWBL.js +1225 -0
  79. package/dist/hooks/postrun.js +7 -7
  80. package/dist/hooks/prerun.js +8 -8
  81. package/dist/html-3U6QZZZ4.js +2768 -0
  82. package/dist/index.js +9195 -4199
  83. package/dist/{lib-G7Q5M6VX.js → lib-XGN4IWQ3.js} +3 -3
  84. package/dist/{local-WDXJW24L.js → local-4NMXX5NP.js} +4 -4
  85. package/dist/markdown-RHRQTUMC.js +3269 -0
  86. package/dist/meriyah-7MIMHTWQ.js +2645 -0
  87. package/dist/{node-package-manager-2LA6ZOEW.js → node-package-manager-SHRILTY3.js} +5 -5
  88. package/dist/postcss-MSOPGY7M.js +4796 -0
  89. package/dist/prettier-2ITB6I34.js +13861 -0
  90. package/dist/tsconfig.tsbuildinfo +1 -1
  91. package/dist/typescript-ZSZVUJZX.js +13034 -0
  92. package/dist/{ui-ROMDLTEP.js → ui-MKDRI4FX.js} +4 -4
  93. package/dist/{workerd-J7UDCFYZ.js → workerd-BHG6KDEK.js} +11 -11
  94. package/dist/yaml-6GALFXQY.js +4077 -0
  95. package/oclif.manifest.json +404 -19
  96. package/package.json +6 -6
@@ -0,0 +1,3016 @@
1
+ import {
2
+ __esm,
3
+ init_cjs_shims
4
+ } from "./chunk-PKR7KJ6P.js";
5
+
6
+ // ../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/acorn.mjs
7
+ function je(e, t) {
8
+ for (var i = 65536, s = 0; s < t.length; s += 2) {
9
+ if (i += t[s], i > e) return !1;
10
+ if (i += t[s + 1], i >= e) return !0;
11
+ }
12
+ return !1;
13
+ }
14
+ function j(e, t) {
15
+ return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Ui.test(String.fromCharCode(e)) : t === !1 ? !1 : je(e, dt);
16
+ }
17
+ function X(e, t) {
18
+ 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 && Gi.test(String.fromCharCode(e)) : t === !1 ? !1 : je(e, dt) || je(e, Di);
19
+ }
20
+ function V(e, t) {
21
+ return new C(e, { beforeExpr: !0, binop: t });
22
+ }
23
+ function _(e, t) {
24
+ return t === void 0 && (t = {}), t.keyword = e, Je[e] = new C(e, t);
25
+ }
26
+ function Y(e) {
27
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
28
+ }
29
+ function xt(e, t, i) {
30
+ i === void 0 && (i = e.length);
31
+ for (var s = t; s < i; s++) {
32
+ var r = e.charCodeAt(s);
33
+ if (Y(r)) return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
34
+ }
35
+ return -1;
36
+ }
37
+ function H(e) {
38
+ return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
39
+ }
40
+ function q(e) {
41
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
42
+ }
43
+ function vt(e, t) {
44
+ for (var i = 1, s = 0; ; ) {
45
+ var r = xt(e, s, t);
46
+ if (r < 0) return new ne(i, t - s);
47
+ ++i, s = r;
48
+ }
49
+ }
50
+ function Xi(e) {
51
+ var t = {};
52
+ for (var i in Ue) t[i] = e && $(e, i) ? e[i] : Ue[i];
53
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ct && typeof console == "object" && console.warn && (ct = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
54
+ 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), ht(t.onToken)) {
55
+ var s = t.onToken;
56
+ t.onToken = function(r) {
57
+ return s.push(r);
58
+ };
59
+ }
60
+ return ht(t.onComment) && (t.onComment = Wi(t, t.onComment)), t;
61
+ }
62
+ function Wi(e, t) {
63
+ return function(i, s, r, o, u, p) {
64
+ var h = { type: i ? "Block" : "Line", value: s, start: r, end: o };
65
+ e.locations && (h.loc = new be(this, u, p)), e.ranges && (h.range = [r, o]), t.push(h);
66
+ };
67
+ }
68
+ function Xe(e, t) {
69
+ return Z | (e ? Ke : 0) | (t ? bt : 0);
70
+ }
71
+ function $i(e, t) {
72
+ var i = t.key.name, s = e[i], r = "true";
73
+ return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", !1) : s ? !0 : (e[i] = r, !1);
74
+ }
75
+ function ye(e, t) {
76
+ var i = e.computed, s = e.key;
77
+ return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
78
+ }
79
+ function kt(e) {
80
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && kt(e.expression);
81
+ }
82
+ function qe(e) {
83
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && qe(e.expression) || e.type === "ParenthesizedExpression" && qe(e.expression);
84
+ }
85
+ function wt(e, t, i, s) {
86
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
87
+ }
88
+ function us(e) {
89
+ var t = Ft[e] = { binary: H(ss[e] + " " + lt), binaryOfStrings: H(as[e]), nonBinary: { General_Category: H(lt), Script: H(os[e]) } };
90
+ 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;
91
+ }
92
+ function hs(e) {
93
+ for (var t in e) return !0;
94
+ return !1;
95
+ }
96
+ function ps(e) {
97
+ return e === 105 || e === 109 || e === 115;
98
+ }
99
+ function jt(e) {
100
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
101
+ }
102
+ function cs(e) {
103
+ return j(e, !0) || e === 36 || e === 95;
104
+ }
105
+ function ls(e) {
106
+ return X(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
107
+ }
108
+ function Ut(e) {
109
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
110
+ }
111
+ function fs(e) {
112
+ return e >= 0 && e <= 1114111;
113
+ }
114
+ function ds(e) {
115
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
116
+ }
117
+ function qt(e) {
118
+ return Ut(e) || e === 95;
119
+ }
120
+ function ms(e) {
121
+ return qt(e) || Ee(e);
122
+ }
123
+ function xs(e) {
124
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
125
+ }
126
+ function ys(e) {
127
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
128
+ }
129
+ function gs(e) {
130
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
131
+ }
132
+ function Ee(e) {
133
+ return e >= 48 && e <= 57;
134
+ }
135
+ function Jt(e) {
136
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
137
+ }
138
+ function Kt(e) {
139
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
140
+ }
141
+ function Ht(e) {
142
+ return e >= 48 && e <= 55;
143
+ }
144
+ function vs(e, t) {
145
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
146
+ }
147
+ function Xt(e) {
148
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
149
+ }
150
+ function As(e, t) {
151
+ let i = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
152
+ return Object.assign(i, t);
153
+ }
154
+ function ke(e) {
155
+ let t = [];
156
+ for (let i of e) try {
157
+ return i();
158
+ } catch (s) {
159
+ t.push(s);
160
+ }
161
+ throw Object.assign(new Error("All combinations failed"), { errors: t });
162
+ }
163
+ function Ps(e) {
164
+ return this[e < 0 ? this.length + e : e];
165
+ }
166
+ function M(e) {
167
+ let t = e.range?.[0] ?? e.start, i = (e.declaration?.decorators ?? e.decorators)?.[0];
168
+ return i ? Math.min(M(i), t) : t;
169
+ }
170
+ function R(e) {
171
+ return e.range?.[1] ?? e.end;
172
+ }
173
+ function Ns(e) {
174
+ let t = new Set(e);
175
+ return (i) => t.has(i?.type);
176
+ }
177
+ function Vs(e) {
178
+ return Ze.has(e) || Ze.set(e, re(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Ze.get(e);
179
+ }
180
+ function Os(e) {
181
+ if (!re(e)) return !1;
182
+ let t = `*${e.value}*`.split(`
183
+ `);
184
+ return t.length > 1 && t.every((i) => i.trimStart()[0] === "*");
185
+ }
186
+ function Bs(e) {
187
+ return et.has(e) || et.set(e, Os(e)), et.get(e);
188
+ }
189
+ function Ds(e) {
190
+ if (e.length < 2) return;
191
+ let t;
192
+ for (let i = e.length - 1; i >= 0; i--) {
193
+ let s = e[i];
194
+ if (t && R(s) === M(t) && tt(s) && tt(t) && (e.splice(i + 1, 1), s.value += "*//*" + t.value, s.range = [M(s), R(t)]), !ei(s) && !re(s)) throw new TypeError(`Unknown comment type: "${s.type}".`);
195
+ t = s;
196
+ }
197
+ }
198
+ function Ms(e) {
199
+ return e !== null && typeof e == "object";
200
+ }
201
+ function le(e) {
202
+ if (ce !== null && typeof ce.property) {
203
+ let t = ce;
204
+ return ce = le.prototype = null, t;
205
+ }
206
+ return ce = le.prototype = e ?? /* @__PURE__ */ Object.create(null), new le();
207
+ }
208
+ function it(e) {
209
+ return le(e);
210
+ }
211
+ function js(e, t = "type") {
212
+ it(e);
213
+ function i(s) {
214
+ let r = s[t], o = e[r];
215
+ if (!Array.isArray(o)) throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), { node: s });
216
+ return o;
217
+ }
218
+ return i;
219
+ }
220
+ function we(e, t) {
221
+ if (!si(e)) return e;
222
+ if (Array.isArray(e)) {
223
+ for (let s = 0; s < e.length; s++) e[s] = we(e[s], t);
224
+ return e;
225
+ }
226
+ if (t.onEnter) {
227
+ let s = t.onEnter(e) ?? e;
228
+ if (s !== e) return we(s, t);
229
+ e = s;
230
+ }
231
+ let i = ni(e);
232
+ for (let s = 0; s < i.length; s++) e[i[s]] = we(e[i[s]], t);
233
+ return t.onLeave && (e = t.onLeave(e) || e), e;
234
+ }
235
+ function Gs(e, t) {
236
+ let { parser: i, text: s } = t, { comments: r } = e, o = i === "oxc" && t.oxcAstType === "ts";
237
+ ii(r);
238
+ let u = e.type === "File" ? e.program : e;
239
+ u.interpreter && (r.unshift(u.interpreter), delete u.interpreter), o && e.hashbang && (r.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, s.length]);
240
+ let p;
241
+ return e = oi(e, { onEnter(h) {
242
+ switch (h.type) {
243
+ case "ParenthesizedExpression": {
244
+ let { expression: l } = h, m = M(h);
245
+ if (l.type === "TypeCastExpression") return l.range = [m, R(h)], l;
246
+ let S = !1;
247
+ if (!o) {
248
+ if (!p) {
249
+ p = [];
250
+ for (let c of r) ti(c) && p.push(R(c));
251
+ }
252
+ let E = Zt(0, p, (c) => c <= m);
253
+ S = E && s.slice(E, m).trim().length === 0;
254
+ }
255
+ return S ? void 0 : (l.extra = { ...l.extra, parenthesized: !0 }, l);
256
+ }
257
+ case "TemplateLiteral":
258
+ if (h.expressions.length !== h.quasis.length - 1) throw new Error("Malformed template literal.");
259
+ break;
260
+ case "TemplateElement":
261
+ if (i === "flow" || i === "hermes" || i === "espree" || i === "typescript" || o) {
262
+ let l = M(h) + 1, m = R(h) - (h.tail ? 1 : 2);
263
+ h.range = [l, m];
264
+ }
265
+ break;
266
+ case "VariableDeclaration": {
267
+ let l = ie(0, h.declarations, -1);
268
+ l?.init && s[R(l)] !== ";" && (h.range = [M(h), R(l)]);
269
+ break;
270
+ }
271
+ case "TSParenthesizedType":
272
+ return h.typeAnnotation;
273
+ case "TopicReference":
274
+ e.extra = { ...e.extra, __isUsingHackPipeline: !0 };
275
+ break;
276
+ case "TSUnionType":
277
+ case "TSIntersectionType":
278
+ if (h.types.length === 1) return h.types[0];
279
+ break;
280
+ case "ImportExpression":
281
+ i === "hermes" && h.attributes && !h.options && (h.options = h.attributes);
282
+ break;
283
+ }
284
+ }, onLeave(h) {
285
+ switch (h.type) {
286
+ case "LogicalExpression":
287
+ if (ui(h)) return st(h);
288
+ break;
289
+ case "TSImportType":
290
+ !h.source && h.argument.type === "TSLiteralType" && (h.source = h.argument.literal, delete h.argument);
291
+ break;
292
+ }
293
+ } }), e;
294
+ }
295
+ function ui(e) {
296
+ return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
297
+ }
298
+ function st(e) {
299
+ return ui(e) ? st({ type: "LogicalExpression", operator: e.operator, left: st({ type: "LogicalExpression", operator: e.operator, left: e.left, right: e.right.left, range: [M(e.left), R(e.right.left)] }), right: e.right.right, range: [M(e), R(e)] }) : e;
300
+ }
301
+ function ci(e) {
302
+ let t = e.match(Xs);
303
+ return t ? t[0].trimStart() : "";
304
+ }
305
+ function li(e) {
306
+ e = fe(0, e.replace(Hs, "").replace(Ks, ""), Qs, "$1");
307
+ let i = "";
308
+ for (; i !== e; ) i = e, e = fe(0, e, zs, `
309
+ $1 $2
310
+ `);
311
+ e = e.replace(hi, "").trimEnd();
312
+ let s = /* @__PURE__ */ Object.create(null), r = fe(0, e, pi, "").replace(hi, "").trimEnd(), o;
313
+ for (; o = pi.exec(e); ) {
314
+ let u = fe(0, o[2], Ws, "");
315
+ if (typeof s[o[1]] == "string" || Array.isArray(s[o[1]])) {
316
+ let p = s[o[1]];
317
+ s[o[1]] = [...Ys, ...Array.isArray(p) ? p : [p], u];
318
+ } else s[o[1]] = u;
319
+ }
320
+ return { comments: r, pragmas: s };
321
+ }
322
+ function $s(e) {
323
+ if (!e.startsWith("#!")) return "";
324
+ let t = e.indexOf(`
325
+ `);
326
+ return t === -1 ? e : e.slice(0, t);
327
+ }
328
+ function xi(e) {
329
+ let t = mi(e);
330
+ t && (e = e.slice(t.length + 1));
331
+ let i = ci(e), { pragmas: s, comments: r } = li(i);
332
+ return { shebang: t, text: e, pragmas: s, comments: r };
333
+ }
334
+ function yi(e) {
335
+ let { pragmas: t } = xi(e);
336
+ return di.some((i) => Object.prototype.hasOwnProperty.call(t, i));
337
+ }
338
+ function gi(e) {
339
+ let { pragmas: t } = xi(e);
340
+ return fi.some((i) => Object.prototype.hasOwnProperty.call(t, i));
341
+ }
342
+ function Zs(e) {
343
+ return e = typeof e == "function" ? { parse: e } : e, { astFormat: "estree", hasPragma: yi, hasIgnorePragma: gi, locStart: M, locEnd: R, ...e };
344
+ }
345
+ function Ve(e) {
346
+ if (typeof e == "string") {
347
+ if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e)) return Ne;
348
+ if (/\.(?:cjs|cts)$/iu.test(e)) return Le;
349
+ }
350
+ }
351
+ function tr(e) {
352
+ let { message: t, loc: i } = e;
353
+ if (!i) return e;
354
+ let { line: s, column: r } = i;
355
+ return Ae(t.replace(/ \(\d+:\d+\)$/u, ""), { loc: { start: { line: s, column: r + 1 } }, cause: e });
356
+ }
357
+ function sr(e, t) {
358
+ let i = ir(), s = [], r = i.parse(e, { ...er, sourceType: t === Le ? vi : t, allowImportExportEverywhere: t === Ne, onComment: s });
359
+ return r.comments = s, r;
360
+ }
361
+ function rr(e, t) {
362
+ let i = Ve(t?.filepath), s = (i ? [i] : Re).map((o) => () => sr(e, o)), r;
363
+ try {
364
+ r = ke(s);
365
+ } catch ({ errors: [o] }) {
366
+ throw tr(o);
367
+ }
368
+ return Pe(r, { text: e });
369
+ }
370
+ function ar(e, t) {
371
+ let i = e[0], s = ie(0, e, -1), r = { type: P.Template, value: t.slice(i.start, s.end) };
372
+ return i.loc && (r.loc = { start: i.loc.start, end: s.loc.end }), i.range && (r.start = i.range[0], r.end = s.range[1], r.range = [r.start, r.end]), r;
373
+ }
374
+ function rt(e, t) {
375
+ this._acornTokTypes = e, this._tokens = [], this._curlyBrace = null, this._code = t;
376
+ }
377
+ function nr() {
378
+ return ie(0, Ti, -1);
379
+ }
380
+ function or(e = 5) {
381
+ let t = e === "latest" ? nr() : e;
382
+ if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);
383
+ if (t >= 2015 && (t -= 2009), !Ti.includes(t)) throw new Error("Invalid ecmaVersion.");
384
+ return t;
385
+ }
386
+ function ur(e = "script") {
387
+ if (e === "script" || e === "module") return e;
388
+ if (e === "commonjs") return "script";
389
+ throw new Error("Invalid sourceType.");
390
+ }
391
+ function Ei(e) {
392
+ let t = or(e.ecmaVersion), i = ur(e.sourceType), s = e.range === !0, r = e.loc === !0;
393
+ if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
394
+ if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
395
+ let o = t === 3 ? e.allowReserved || "never" : !1, u = e.ecmaFeatures || {}, p = e.sourceType === "commonjs" || !!u.globalReturn;
396
+ if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
397
+ return Object.assign({}, e, { ecmaVersion: t, sourceType: i, ranges: s, locations: r, allowReserved: o, allowReturnOutsideFunction: p });
398
+ }
399
+ function hr(e, t, i, s, r, o, u) {
400
+ let p;
401
+ e ? p = "Block" : u.slice(i, i + 2) === "#!" ? p = "Hashbang" : p = "Line";
402
+ let h = { type: p, value: t };
403
+ return typeof i == "number" && (h.start = i, h.end = s, h.range = [i, s]), typeof r == "object" && (h.loc = { start: r, end: o }), h;
404
+ }
405
+ function ki(e, t) {
406
+ let i = pr.get(t);
407
+ return new i(t, e).parse();
408
+ }
409
+ function lr(e) {
410
+ let { message: t, lineNumber: i, column: s } = e;
411
+ return typeof i != "number" ? e : Ae(t, { loc: { start: { line: i, column: s } }, cause: e });
412
+ }
413
+ function fr(e, t) {
414
+ let i = Ve(t?.filepath), s = (i ? [i] : Re).map((o) => () => ki(e, { ...cr, sourceType: o })), r;
415
+ try {
416
+ r = ke(s);
417
+ } catch ({ errors: [o] }) {
418
+ throw lr(o);
419
+ }
420
+ return Pe(r, { parser: "espree", text: e });
421
+ }
422
+ var Ii, Be, Ni, Li, Ri, Vi, ot, Oi, Bi, ut, Qt, $e, Pi, Di, dt, Mi, mt, De, Me, Fi, ji, Ui, Gi, C, O, N, Je, a, L, qi, yt, k, gt, Ji, Ki, $, ht, pt, Hi, ne, be, Ue, ct, oe, Z, Ke, bt, He, St, Se, _t, z, ue, _e, xe, We, K, Ct, Tt, Et, A, U, w, zi, Ce, d, ze, Qi, Yi, ae, Ge, At, D, F, T, ee, g, Zi, ge, W, es, Te, he, ts, Pt, It, Nt, Lt, Rt, is, ss, rs, as, lt, Vt, Ot, Bt, Dt, Mt, ns, os, Ft, ft, me, Fe, f, ve, G, Gt, J, B, Qe, b, Wt, bs, Si, Ae, te, ks, ws, Zt, Is, ie, se, Ls, re, Rs, ei, Ze, ti, et, tt, ii, si, ce, Fs, ri, n, ai, Us, ni, oi, aa, Pe, qs, Js, fe, Ks, Hs, Xs, Ws, hi, zs, pi, Qs, Ys, fi, di, mi, Ie, Ne, vi, Le, Re, er, bi, ir, _i, Ai, P, Ci, Ti, Q, at, nt, pr, cr, wi, dr, init_acorn = __esm({
423
+ "../../node_modules/.pnpm/prettier@3.7.4/node_modules/prettier/plugins/acorn.mjs"() {
424
+ init_cjs_shims();
425
+ Ii = Object.create, Be = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, Li = Object.getOwnPropertyNames, Ri = Object.getPrototypeOf, Vi = Object.prototype.hasOwnProperty, ot = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Oi = (e, t) => {
426
+ for (var i in t) Be(e, i, { get: t[i], enumerable: !0 });
427
+ }, Bi = (e, t, i, s) => {
428
+ if (t && typeof t == "object" || typeof t == "function") for (let r of Li(t)) !Vi.call(e, r) && r !== i && Be(e, r, { get: () => t[r], enumerable: !(s = Ni(t, r)) || s.enumerable });
429
+ return e;
430
+ }, ut = (e, t, i) => (i = e != null ? Ii(Ri(e)) : {}, Bi(t || !e || !e.__esModule ? Be(i, "default", { value: e, enumerable: !0 }) : i, e)), Qt = ot((xr, zt) => {
431
+ zt.exports = {};
432
+ }), $e = ot((yr, Ye) => {
433
+ "use strict";
434
+ var _s = Qt(), Cs = /^[\da-fA-F]+$/, Ts = /^\d+$/, Yt = /* @__PURE__ */ new WeakMap();
435
+ function $t(e) {
436
+ e = e.Parser.acorn || e;
437
+ let t = Yt.get(e);
438
+ if (!t) {
439
+ let i = e.tokTypes, s = e.TokContext, r = e.TokenType, o = new s("<tag", !1), u = new s("</tag", !1), p = new s("<tag>...</tag>", !0, !0), h = { tc_oTag: o, tc_cTag: u, tc_expr: p }, l = { jsxName: new r("jsxName"), jsxText: new r("jsxText", { beforeExpr: !0 }), jsxTagStart: new r("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new r("jsxTagEnd") };
440
+ l.jsxTagStart.updateContext = function() {
441
+ this.context.push(p), this.context.push(o), this.exprAllowed = !1;
442
+ }, l.jsxTagEnd.updateContext = function(m) {
443
+ let S = this.context.pop();
444
+ S === o && m === i.slash || S === u ? (this.context.pop(), this.exprAllowed = this.curContext() === p) : this.exprAllowed = !0;
445
+ }, t = { tokContexts: h, tokTypes: l }, Yt.set(e, t);
446
+ }
447
+ return t;
448
+ }
449
+ function pe(e) {
450
+ if (!e) return e;
451
+ if (e.type === "JSXIdentifier") return e.name;
452
+ if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name;
453
+ if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property);
454
+ }
455
+ Ye.exports = function(e) {
456
+ return e = e || {}, function(t) {
457
+ return Es({ allowNamespaces: e.allowNamespaces !== !1, allowNamespacedObjects: !!e.allowNamespacedObjects }, t);
458
+ };
459
+ }, Object.defineProperty(Ye.exports, "tokTypes", { get: function() {
460
+ return $t(void 0).tokTypes;
461
+ }, configurable: !0, enumerable: !0 });
462
+ function Es(e, t) {
463
+ let i = t.acorn || void 0, s = $t(i), r = i.tokTypes, o = s.tokTypes, u = i.tokContexts, p = s.tokContexts.tc_oTag, h = s.tokContexts.tc_cTag, l = s.tokContexts.tc_expr, m = i.isNewLine, S = i.isIdentifierStart, E = i.isIdentifierChar;
464
+ return class extends t {
465
+ static get acornJsx() {
466
+ return s;
467
+ }
468
+ jsx_readToken() {
469
+ let c = "", x = this.pos;
470
+ for (; ; ) {
471
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
472
+ let y = this.input.charCodeAt(this.pos);
473
+ switch (y) {
474
+ case 60:
475
+ case 123:
476
+ return this.pos === this.start ? y === 60 && this.exprAllowed ? (++this.pos, this.finishToken(o.jsxTagStart)) : this.getTokenFromCode(y) : (c += this.input.slice(x, this.pos), this.finishToken(o.jsxText, c));
477
+ case 38:
478
+ c += this.input.slice(x, this.pos), c += this.jsx_readEntity(), x = this.pos;
479
+ break;
480
+ case 62:
481
+ case 125:
482
+ this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (y === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.input[this.pos] + '"}`?');
483
+ default:
484
+ m(y) ? (c += this.input.slice(x, this.pos), c += this.jsx_readNewLine(!0), x = this.pos) : ++this.pos;
485
+ }
486
+ }
487
+ }
488
+ jsx_readNewLine(c) {
489
+ let x = this.input.charCodeAt(this.pos), y;
490
+ return ++this.pos, x === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, y = c ? `
491
+ ` : `\r
492
+ `) : y = String.fromCharCode(x), this.options.locations && (++this.curLine, this.lineStart = this.pos), y;
493
+ }
494
+ jsx_readString(c) {
495
+ let x = "", y = ++this.pos;
496
+ for (; ; ) {
497
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
498
+ let v = this.input.charCodeAt(this.pos);
499
+ if (v === c) break;
500
+ v === 38 ? (x += this.input.slice(y, this.pos), x += this.jsx_readEntity(), y = this.pos) : m(v) ? (x += this.input.slice(y, this.pos), x += this.jsx_readNewLine(!1), y = this.pos) : ++this.pos;
501
+ }
502
+ return x += this.input.slice(y, this.pos++), this.finishToken(r.string, x);
503
+ }
504
+ jsx_readEntity() {
505
+ let c = "", x = 0, y, v = this.input[this.pos];
506
+ v !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
507
+ let I = ++this.pos;
508
+ for (; this.pos < this.input.length && x++ < 10; ) {
509
+ if (v = this.input[this.pos++], v === ";") {
510
+ c[0] === "#" ? c[1] === "x" ? (c = c.substr(2), Cs.test(c) && (y = String.fromCharCode(parseInt(c, 16)))) : (c = c.substr(1), Ts.test(c) && (y = String.fromCharCode(parseInt(c, 10)))) : y = _s[c];
511
+ break;
512
+ }
513
+ c += v;
514
+ }
515
+ return y || (this.pos = I, "&");
516
+ }
517
+ jsx_readWord() {
518
+ let c, x = this.pos;
519
+ do
520
+ c = this.input.charCodeAt(++this.pos);
521
+ while (E(c) || c === 45);
522
+ return this.finishToken(o.jsxName, this.input.slice(x, this.pos));
523
+ }
524
+ jsx_parseIdentifier() {
525
+ let c = this.startNode();
526
+ return this.type === o.jsxName ? c.name = this.value : this.type.keyword ? c.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(c, "JSXIdentifier");
527
+ }
528
+ jsx_parseNamespacedName() {
529
+ let c = this.start, x = this.startLoc, y = this.jsx_parseIdentifier();
530
+ if (!e.allowNamespaces || !this.eat(r.colon)) return y;
531
+ var v = this.startNodeAt(c, x);
532
+ return v.namespace = y, v.name = this.jsx_parseIdentifier(), this.finishNode(v, "JSXNamespacedName");
533
+ }
534
+ jsx_parseElementName() {
535
+ if (this.type === o.jsxTagEnd) return "";
536
+ let c = this.start, x = this.startLoc, y = this.jsx_parseNamespacedName();
537
+ for (this.type === r.dot && y.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(r.dot); ) {
538
+ let v = this.startNodeAt(c, x);
539
+ v.object = y, v.property = this.jsx_parseIdentifier(), y = this.finishNode(v, "JSXMemberExpression");
540
+ }
541
+ return y;
542
+ }
543
+ jsx_parseAttributeValue() {
544
+ switch (this.type) {
545
+ case r.braceL:
546
+ let c = this.jsx_parseExpressionContainer();
547
+ return c.expression.type === "JSXEmptyExpression" && this.raise(c.start, "JSX attributes must only be assigned a non-empty expression"), c;
548
+ case o.jsxTagStart:
549
+ case r.string:
550
+ return this.parseExprAtom();
551
+ default:
552
+ this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
553
+ }
554
+ }
555
+ jsx_parseEmptyExpression() {
556
+ let c = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
557
+ return this.finishNodeAt(c, "JSXEmptyExpression", this.start, this.startLoc);
558
+ }
559
+ jsx_parseExpressionContainer() {
560
+ let c = this.startNode();
561
+ return this.next(), c.expression = this.type === r.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(r.braceR), this.finishNode(c, "JSXExpressionContainer");
562
+ }
563
+ jsx_parseAttribute() {
564
+ let c = this.startNode();
565
+ return this.eat(r.braceL) ? (this.expect(r.ellipsis), c.argument = this.parseMaybeAssign(), this.expect(r.braceR), this.finishNode(c, "JSXSpreadAttribute")) : (c.name = this.jsx_parseNamespacedName(), c.value = this.eat(r.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(c, "JSXAttribute"));
566
+ }
567
+ jsx_parseOpeningElementAt(c, x) {
568
+ let y = this.startNodeAt(c, x);
569
+ y.attributes = [];
570
+ let v = this.jsx_parseElementName();
571
+ for (v && (y.name = v); this.type !== r.slash && this.type !== o.jsxTagEnd; ) y.attributes.push(this.jsx_parseAttribute());
572
+ return y.selfClosing = this.eat(r.slash), this.expect(o.jsxTagEnd), this.finishNode(y, v ? "JSXOpeningElement" : "JSXOpeningFragment");
573
+ }
574
+ jsx_parseClosingElementAt(c, x) {
575
+ let y = this.startNodeAt(c, x), v = this.jsx_parseElementName();
576
+ return v && (y.name = v), this.expect(o.jsxTagEnd), this.finishNode(y, v ? "JSXClosingElement" : "JSXClosingFragment");
577
+ }
578
+ jsx_parseElementAt(c, x) {
579
+ let y = this.startNodeAt(c, x), v = [], I = this.jsx_parseOpeningElementAt(c, x), de = null;
580
+ if (!I.selfClosing) {
581
+ e: for (; ; ) switch (this.type) {
582
+ case o.jsxTagStart:
583
+ if (c = this.start, x = this.startLoc, this.next(), this.eat(r.slash)) {
584
+ de = this.jsx_parseClosingElementAt(c, x);
585
+ break e;
586
+ }
587
+ v.push(this.jsx_parseElementAt(c, x));
588
+ break;
589
+ case o.jsxText:
590
+ v.push(this.parseExprAtom());
591
+ break;
592
+ case r.braceL:
593
+ v.push(this.jsx_parseExpressionContainer());
594
+ break;
595
+ default:
596
+ this.unexpected();
597
+ }
598
+ pe(de.name) !== pe(I.name) && this.raise(de.start, "Expected corresponding JSX closing tag for <" + pe(I.name) + ">");
599
+ }
600
+ let Oe = I.name ? "Element" : "Fragment";
601
+ return y["opening" + Oe] = I, y["closing" + Oe] = de, y.children = v, this.type === r.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(y, "JSX" + Oe);
602
+ }
603
+ jsx_parseText() {
604
+ let c = this.parseLiteral(this.value);
605
+ return c.type = "JSXText", c;
606
+ }
607
+ jsx_parseElement() {
608
+ let c = this.start, x = this.startLoc;
609
+ return this.next(), this.jsx_parseElementAt(c, x);
610
+ }
611
+ parseExprAtom(c) {
612
+ return this.type === o.jsxText ? this.jsx_parseText() : this.type === o.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(c);
613
+ }
614
+ readToken(c) {
615
+ let x = this.curContext();
616
+ if (x === l) return this.jsx_readToken();
617
+ if (x === p || x === h) {
618
+ if (S(c)) return this.jsx_readWord();
619
+ if (c == 62) return ++this.pos, this.finishToken(o.jsxTagEnd);
620
+ if ((c === 34 || c === 39) && x == p) return this.jsx_readString(c);
621
+ }
622
+ return c === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(o.jsxTagStart)) : super.readToken(c);
623
+ }
624
+ updateContext(c) {
625
+ if (this.type == r.braceL) {
626
+ var x = this.curContext();
627
+ x == p ? this.context.push(u.b_expr) : x == l ? this.context.push(u.b_tmpl) : super.updateContext(c), this.exprAllowed = !0;
628
+ } else if (this.type === r.slash && c === o.jsxTagStart) this.context.length -= 2, this.context.push(h), this.exprAllowed = !1;
629
+ else return super.updateContext(c);
630
+ }
631
+ };
632
+ }
633
+ }), Pi = {};
634
+ Oi(Pi, { parsers: () => dr });
635
+ Di = [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], dt = [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], Mi = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", mt = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", De = { 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", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, Me = "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", Fi = { 5: Me, "5module": Me + " export import", 6: Me + " const class extends export import super" }, ji = /^in(stanceof)?$/, Ui = new RegExp("[" + mt + "]"), Gi = new RegExp("[" + mt + Mi + "]");
636
+ C = function(t, i) {
637
+ i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
638
+ };
639
+ O = { beforeExpr: !0 }, N = { startsExpr: !0 }, Je = {};
640
+ a = { num: new C("num", N), regexp: new C("regexp", N), string: new C("string", N), name: new C("name", N), privateId: new C("privateId", N), eof: new C("eof"), bracketL: new C("[", { beforeExpr: !0, startsExpr: !0 }), bracketR: new C("]"), braceL: new C("{", { beforeExpr: !0, startsExpr: !0 }), braceR: new C("}"), parenL: new C("(", { beforeExpr: !0, startsExpr: !0 }), parenR: new C(")"), comma: new C(",", O), semi: new C(";", O), colon: new C(":", O), dot: new C("."), question: new C("?", O), questionDot: new C("?."), arrow: new C("=>", O), template: new C("template"), invalidTemplate: new C("invalidTemplate"), ellipsis: new C("...", O), backQuote: new C("`", N), dollarBraceL: new C("${", { beforeExpr: !0, startsExpr: !0 }), eq: new C("=", { beforeExpr: !0, isAssign: !0 }), assign: new C("_=", { beforeExpr: !0, isAssign: !0 }), incDec: new C("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new C("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), logicalOR: V("||", 1), logicalAND: V("&&", 2), bitwiseOR: V("|", 3), bitwiseXOR: V("^", 4), bitwiseAND: V("&", 5), equality: V("==/!=/===/!==", 6), relational: V("</>/<=/>=", 7), bitShift: V("<</>>/>>>", 8), plusMin: new C("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }), modulo: V("%", 10), star: V("*", 10), slash: V("/", 10), starstar: new C("**", { beforeExpr: !0 }), coalesce: V("??", 1), _break: _("break"), _case: _("case", O), _catch: _("catch"), _continue: _("continue"), _debugger: _("debugger"), _default: _("default", O), _do: _("do", { isLoop: !0, beforeExpr: !0 }), _else: _("else", O), _finally: _("finally"), _for: _("for", { isLoop: !0 }), _function: _("function", N), _if: _("if"), _return: _("return", O), _switch: _("switch"), _throw: _("throw", O), _try: _("try"), _var: _("var"), _const: _("const"), _while: _("while", { isLoop: !0 }), _with: _("with"), _new: _("new", { beforeExpr: !0, startsExpr: !0 }), _this: _("this", N), _super: _("super", N), _class: _("class", N), _extends: _("extends", O), _export: _("export"), _import: _("import", N), _null: _("null", N), _true: _("true", N), _false: _("false", N), _in: _("in", { beforeExpr: !0, binop: 7 }), _instanceof: _("instanceof", { beforeExpr: !0, binop: 7 }), _typeof: _("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _void: _("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _delete: _("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 }) }, L = /\r\n?|\n|\u2028|\u2029/, qi = new RegExp(L.source, "g");
641
+ yt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, k = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, gt = Object.prototype, Ji = gt.hasOwnProperty, Ki = gt.toString, $ = Object.hasOwn || (function(e, t) {
642
+ return Ji.call(e, t);
643
+ }), ht = Array.isArray || (function(e) {
644
+ return Ki.call(e) === "[object Array]";
645
+ }), pt = /* @__PURE__ */ Object.create(null);
646
+ Hi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, ne = function(t, i) {
647
+ this.line = t, this.column = i;
648
+ };
649
+ ne.prototype.offset = function(t) {
650
+ return new ne(this.line, this.column + t);
651
+ };
652
+ be = function(t, i, s) {
653
+ this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
654
+ };
655
+ Ue = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: !1, checkPrivateFields: !0, locations: !1, onToken: null, onComment: null, ranges: !1, program: null, sourceFile: null, directSourceFile: null, preserveParens: !1 }, ct = !1;
656
+ oe = 1, Z = 2, Ke = 4, bt = 8, He = 16, St = 32, Se = 64, _t = 128, z = 256, ue = 512, _e = oe | Z | z;
657
+ xe = 0, We = 1, K = 2, Ct = 3, Tt = 4, Et = 5, A = function(t, i, s) {
658
+ this.options = t = Xi(t), this.sourceFile = t.sourceFile, this.keywords = H(Fi[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
659
+ var r = "";
660
+ t.allowReserved !== !0 && (r = De[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H(r);
661
+ var o = (r ? r + " " : "") + De.strict;
662
+ this.reservedWordsStrict = H(o), this.reservedWordsStrictBind = H(o + " " + De.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
663
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a.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(oe), this.regexpState = null, this.privateNameStack = [];
664
+ }, U = { 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 } };
665
+ A.prototype.parse = function() {
666
+ var t = this.options.program || this.startNode();
667
+ return this.nextToken(), this.parseTopLevel(t);
668
+ };
669
+ U.inFunction.get = function() {
670
+ return (this.currentVarScope().flags & Z) > 0;
671
+ };
672
+ U.inGenerator.get = function() {
673
+ return (this.currentVarScope().flags & bt) > 0;
674
+ };
675
+ U.inAsync.get = function() {
676
+ return (this.currentVarScope().flags & Ke) > 0;
677
+ };
678
+ U.canAwait.get = function() {
679
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
680
+ var t = this.scopeStack[e], i = t.flags;
681
+ if (i & (z | ue)) return !1;
682
+ if (i & Z) return (i & Ke) > 0;
683
+ }
684
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
685
+ };
686
+ U.allowSuper.get = function() {
687
+ var e = this.currentThisScope(), t = e.flags;
688
+ return (t & Se) > 0 || this.options.allowSuperOutsideMethod;
689
+ };
690
+ U.allowDirectSuper.get = function() {
691
+ return (this.currentThisScope().flags & _t) > 0;
692
+ };
693
+ U.treatFunctionsAsVar.get = function() {
694
+ return this.treatFunctionsAsVarInScope(this.currentScope());
695
+ };
696
+ U.allowNewDotTarget.get = function() {
697
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
698
+ var t = this.scopeStack[e], i = t.flags;
699
+ if (i & (z | ue) || i & Z && !(i & He)) return !0;
700
+ }
701
+ return !1;
702
+ };
703
+ U.inClassStaticBlock.get = function() {
704
+ return (this.currentVarScope().flags & z) > 0;
705
+ };
706
+ A.extend = function() {
707
+ for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
708
+ for (var s = this, r = 0; r < t.length; r++) s = t[r](s);
709
+ return s;
710
+ };
711
+ A.parse = function(t, i) {
712
+ return new this(i, t).parse();
713
+ };
714
+ A.parseExpressionAt = function(t, i, s) {
715
+ var r = new this(s, t, i);
716
+ return r.nextToken(), r.parseExpression();
717
+ };
718
+ A.tokenizer = function(t, i) {
719
+ return new this(i, t);
720
+ };
721
+ Object.defineProperties(A.prototype, U);
722
+ w = A.prototype, zi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
723
+ w.strictDirective = function(e) {
724
+ if (this.options.ecmaVersion < 5) return !1;
725
+ for (; ; ) {
726
+ k.lastIndex = e, e += k.exec(this.input)[0].length;
727
+ var t = zi.exec(this.input.slice(e));
728
+ if (!t) return !1;
729
+ if ((t[1] || t[2]) === "use strict") {
730
+ k.lastIndex = e + t[0].length;
731
+ var i = k.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
732
+ return r === ";" || r === "}" || L.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
733
+ }
734
+ e += t[0].length, k.lastIndex = e, e += k.exec(this.input)[0].length, this.input[e] === ";" && e++;
735
+ }
736
+ };
737
+ w.eat = function(e) {
738
+ return this.type === e ? (this.next(), !0) : !1;
739
+ };
740
+ w.isContextual = function(e) {
741
+ return this.type === a.name && this.value === e && !this.containsEsc;
742
+ };
743
+ w.eatContextual = function(e) {
744
+ return this.isContextual(e) ? (this.next(), !0) : !1;
745
+ };
746
+ w.expectContextual = function(e) {
747
+ this.eatContextual(e) || this.unexpected();
748
+ };
749
+ w.canInsertSemicolon = function() {
750
+ return this.type === a.eof || this.type === a.braceR || L.test(this.input.slice(this.lastTokEnd, this.start));
751
+ };
752
+ w.insertSemicolon = function() {
753
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
754
+ };
755
+ w.semicolon = function() {
756
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
757
+ };
758
+ w.afterTrailingComma = function(e, t) {
759
+ if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
760
+ };
761
+ w.expect = function(e) {
762
+ this.eat(e) || this.unexpected();
763
+ };
764
+ w.unexpected = function(e) {
765
+ this.raise(e ?? this.start, "Unexpected token");
766
+ };
767
+ Ce = function() {
768
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
769
+ };
770
+ w.checkPatternErrors = function(e, t) {
771
+ if (e) {
772
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
773
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
774
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
775
+ }
776
+ };
777
+ w.checkExpressionErrors = function(e, t) {
778
+ if (!e) return !1;
779
+ var i = e.shorthandAssign, s = e.doubleProto;
780
+ if (!t) return i >= 0 || s >= 0;
781
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
782
+ };
783
+ w.checkYieldAwaitInDefaultParams = function() {
784
+ this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
785
+ };
786
+ w.isSimpleAssignTarget = function(e) {
787
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
788
+ };
789
+ d = A.prototype;
790
+ d.parseTopLevel = function(e) {
791
+ var t = /* @__PURE__ */ Object.create(null);
792
+ for (e.body || (e.body = []); this.type !== a.eof; ) {
793
+ var i = this.parseStatement(null, !0, t);
794
+ e.body.push(i);
795
+ }
796
+ if (this.inModule) for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
797
+ var o = r[s];
798
+ this.raiseRecoverable(this.undefinedExports[o].start, "Export '" + o + "' is not defined");
799
+ }
800
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
801
+ };
802
+ ze = { kind: "loop" }, Qi = { kind: "switch" };
803
+ d.isLet = function(e) {
804
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
805
+ k.lastIndex = this.pos;
806
+ var t = k.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
807
+ if (s === 91 || s === 92) return !0;
808
+ if (e) return !1;
809
+ if (s === 123 || s > 55295 && s < 56320) return !0;
810
+ if (j(s, !0)) {
811
+ for (var r = i + 1; X(s = this.input.charCodeAt(r), !0); ) ++r;
812
+ if (s === 92 || s > 55295 && s < 56320) return !0;
813
+ var o = this.input.slice(i, r);
814
+ if (!ji.test(o)) return !0;
815
+ }
816
+ return !1;
817
+ };
818
+ d.isAsyncFunction = function() {
819
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1;
820
+ k.lastIndex = this.pos;
821
+ var e = k.exec(this.input), t = this.pos + e[0].length, i;
822
+ return !L.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
823
+ };
824
+ d.isUsingKeyword = function(e, t) {
825
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return !1;
826
+ k.lastIndex = this.pos;
827
+ var i = k.exec(this.input), s = this.pos + i[0].length;
828
+ if (L.test(this.input.slice(this.pos, s))) return !1;
829
+ if (e) {
830
+ var r = s + 5, o;
831
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || X(o = this.input.charCodeAt(r)) || o > 55295 && o < 56320) return !1;
832
+ k.lastIndex = r;
833
+ var u = k.exec(this.input);
834
+ if (u && L.test(this.input.slice(r, r + u[0].length))) return !1;
835
+ }
836
+ if (t) {
837
+ var p = s + 2, h;
838
+ if (this.input.slice(s, p) === "of" && (p === this.input.length || !X(h = this.input.charCodeAt(p)) && !(h > 55295 && h < 56320))) return !1;
839
+ }
840
+ var l = this.input.charCodeAt(s);
841
+ return j(l, !0) || l === 92;
842
+ };
843
+ d.isAwaitUsing = function(e) {
844
+ return this.isUsingKeyword(!0, e);
845
+ };
846
+ d.isUsing = function(e) {
847
+ return this.isUsingKeyword(!1, e);
848
+ };
849
+ d.parseStatement = function(e, t, i) {
850
+ var s = this.type, r = this.startNode(), o;
851
+ switch (this.isLet(e) && (s = a._var, o = "let"), s) {
852
+ case a._break:
853
+ case a._continue:
854
+ return this.parseBreakContinueStatement(r, s.keyword);
855
+ case a._debugger:
856
+ return this.parseDebuggerStatement(r);
857
+ case a._do:
858
+ return this.parseDoStatement(r);
859
+ case a._for:
860
+ return this.parseForStatement(r);
861
+ case a._function:
862
+ return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(r, !1, !e);
863
+ case a._class:
864
+ return e && this.unexpected(), this.parseClass(r, !0);
865
+ case a._if:
866
+ return this.parseIfStatement(r);
867
+ case a._return:
868
+ return this.parseReturnStatement(r);
869
+ case a._switch:
870
+ return this.parseSwitchStatement(r);
871
+ case a._throw:
872
+ return this.parseThrowStatement(r);
873
+ case a._try:
874
+ return this.parseTryStatement(r);
875
+ case a._const:
876
+ case a._var:
877
+ return o = o || this.value, e && o !== "var" && this.unexpected(), this.parseVarStatement(r, o);
878
+ case a._while:
879
+ return this.parseWhileStatement(r);
880
+ case a._with:
881
+ return this.parseWithStatement(r);
882
+ case a.braceL:
883
+ return this.parseBlock(!0, r);
884
+ case a.semi:
885
+ return this.parseEmptyStatement(r);
886
+ case a._export:
887
+ case a._import:
888
+ if (this.options.ecmaVersion > 10 && s === a._import) {
889
+ k.lastIndex = this.pos;
890
+ var u = k.exec(this.input), p = this.pos + u[0].length, h = this.input.charCodeAt(p);
891
+ if (h === 40 || h === 46) return this.parseExpressionStatement(r, this.parseExpression());
892
+ }
893
+ return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), s === a._import ? this.parseImport(r) : this.parseExport(r, i);
894
+ default:
895
+ if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, !0, !e);
896
+ var l = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
897
+ if (l) return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, l), this.semicolon(), this.finishNode(r, "VariableDeclaration");
898
+ var m = this.value, S = this.parseExpression();
899
+ return s === a.name && S.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, m, S, e) : this.parseExpressionStatement(r, S);
900
+ }
901
+ };
902
+ d.parseBreakContinueStatement = function(e, t) {
903
+ var i = t === "break";
904
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
905
+ for (var s = 0; s < this.labels.length; ++s) {
906
+ var r = this.labels[s];
907
+ if ((e.label == null || r.name === e.label.name) && (r.kind != null && (i || r.kind === "loop") || e.label && i)) break;
908
+ }
909
+ return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
910
+ };
911
+ d.parseDebuggerStatement = function(e) {
912
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
913
+ };
914
+ d.parseDoStatement = function(e) {
915
+ return this.next(), this.labels.push(ze), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(a._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(a.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
916
+ };
917
+ d.parseForStatement = function(e) {
918
+ this.next();
919
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
920
+ if (this.labels.push(ze), this.enterScope(0), this.expect(a.parenL), this.type === a.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
921
+ var i = this.isLet();
922
+ if (this.type === a._var || this.type === a._const || i) {
923
+ var s = this.startNode(), r = i ? "let" : this.value;
924
+ return this.next(), this.parseVar(s, !0, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
925
+ }
926
+ var o = this.isContextual("let"), u = !1, p = this.isUsing(!0) ? "using" : this.isAwaitUsing(!0) ? "await using" : null;
927
+ if (p) {
928
+ var h = this.startNode();
929
+ return this.next(), p === "await using" && this.next(), this.parseVar(h, !0, p), this.finishNode(h, "VariableDeclaration"), this.parseForAfterInit(e, h, t);
930
+ }
931
+ var l = this.containsEsc, m = new Ce(), S = this.start, E = t > -1 ? this.parseExprSubscripts(m, "await") : this.parseExpression(!0, m);
932
+ return this.type === a._in || (u = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : u && this.options.ecmaVersion >= 8 && (E.start === S && !l && E.type === "Identifier" && E.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), o && u && this.raise(E.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(E, !1, m), this.checkLValPattern(E), this.parseForIn(e, E)) : (this.checkExpressionErrors(m, !0), t > -1 && this.unexpected(t), this.parseFor(e, E));
933
+ };
934
+ d.parseForAfterInit = function(e, t, i) {
935
+ return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === a._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
936
+ };
937
+ d.parseFunctionStatement = function(e, t, i) {
938
+ return this.next(), this.parseFunction(e, ae | (i ? 0 : Ge), !1, t);
939
+ };
940
+ d.parseIfStatement = function(e) {
941
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(a._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
942
+ };
943
+ d.parseReturnStatement = function(e) {
944
+ return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
945
+ };
946
+ d.parseSwitchStatement = function(e) {
947
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(Qi), this.enterScope(0);
948
+ for (var t, i = !1; this.type !== a.braceR; ) if (this.type === a._case || this.type === a._default) {
949
+ var s = this.type === a._case;
950
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), s ? t.test = this.parseExpression() : (i && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i = !0, t.test = null), this.expect(a.colon);
951
+ } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
952
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
953
+ };
954
+ d.parseThrowStatement = function(e) {
955
+ return this.next(), L.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");
956
+ };
957
+ Yi = [];
958
+ d.parseCatchClauseParam = function() {
959
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
960
+ return this.enterScope(t ? St : 0), this.checkLValPattern(e, t ? Tt : K), this.expect(a.parenR), e;
961
+ };
962
+ d.parseTryStatement = function(e) {
963
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
964
+ var t = this.startNode();
965
+ this.next(), this.eat(a.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
966
+ }
967
+ return e.finalizer = this.eat(a._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
968
+ };
969
+ d.parseVarStatement = function(e, t, i) {
970
+ return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
971
+ };
972
+ d.parseWhileStatement = function(e) {
973
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(ze), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
974
+ };
975
+ d.parseWithStatement = function(e) {
976
+ 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");
977
+ };
978
+ d.parseEmptyStatement = function(e) {
979
+ return this.next(), this.finishNode(e, "EmptyStatement");
980
+ };
981
+ d.parseLabeledStatement = function(e, t, i, s) {
982
+ for (var r = 0, o = this.labels; r < o.length; r += 1) {
983
+ var u = o[r];
984
+ u.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
985
+ }
986
+ for (var p = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, h = this.labels.length - 1; h >= 0; h--) {
987
+ var l = this.labels[h];
988
+ if (l.statementStart === e.start) l.statementStart = this.start, l.kind = p;
989
+ else break;
990
+ }
991
+ return this.labels.push({ name: t, kind: p, statementStart: this.start }), e.body = this.parseStatement(s ? s.indexOf("label") === -1 ? s + "label" : s : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
992
+ };
993
+ d.parseExpressionStatement = function(e, t) {
994
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
995
+ };
996
+ d.parseBlock = function(e, t, i) {
997
+ for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR; ) {
998
+ var s = this.parseStatement(null);
999
+ t.body.push(s);
1000
+ }
1001
+ return i && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
1002
+ };
1003
+ d.parseFor = function(e, t) {
1004
+ return e.init = t, this.expect(a.semi), e.test = this.type === a.semi ? null : this.parseExpression(), this.expect(a.semi), e.update = this.type === a.parenR ? null : this.parseExpression(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
1005
+ };
1006
+ d.parseForIn = function(e, t) {
1007
+ var i = this.type === a._in;
1008
+ return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, i ? "ForInStatement" : "ForOfStatement");
1009
+ };
1010
+ d.parseVar = function(e, t, i, s) {
1011
+ for (e.declarations = [], e.kind = i; ; ) {
1012
+ var r = this.startNode();
1013
+ if (this.parseVarId(r, i), this.eat(a.eq) ? r.init = this.parseMaybeAssign(t) : !s && i === "const" && !(this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !s && (i === "using" || i === "await using") && this.options.ecmaVersion >= 17 && this.type !== a._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + i + " declaration") : !s && r.id.type !== "Identifier" && !(t && (this.type === a._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, e.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(a.comma)) break;
1014
+ }
1015
+ return e;
1016
+ };
1017
+ d.parseVarId = function(e, t) {
1018
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? We : K, !1);
1019
+ };
1020
+ ae = 1, Ge = 2, At = 4;
1021
+ d.parseFunction = function(e, t, i, s, r) {
1022
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & Ge && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & ae && (e.id = t & At && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & Ge) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? We : K : Ct));
1023
+ var o = this.yieldPos, u = this.awaitPos, p = this.awaitIdentPos;
1024
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Xe(e.async, e.generator)), t & ae || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = o, this.awaitPos = u, this.awaitIdentPos = p, this.finishNode(e, t & ae ? "FunctionDeclaration" : "FunctionExpression");
1025
+ };
1026
+ d.parseFunctionParams = function(e) {
1027
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
1028
+ };
1029
+ d.parseClass = function(e, t) {
1030
+ this.next();
1031
+ var i = this.strict;
1032
+ this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
1033
+ var s = this.enterClassBody(), r = this.startNode(), o = !1;
1034
+ for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
1035
+ var u = this.parseClassElement(e.superClass !== null);
1036
+ u && (r.body.push(u), u.type === "MethodDefinition" && u.kind === "constructor" ? (o && this.raiseRecoverable(u.start, "Duplicate constructor in the same class"), o = !0) : u.key && u.key.type === "PrivateIdentifier" && $i(s, u) && this.raiseRecoverable(u.key.start, "Identifier '#" + u.key.name + "' has already been declared"));
1037
+ }
1038
+ return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
1039
+ };
1040
+ d.parseClassElement = function(e) {
1041
+ if (this.eat(a.semi)) return null;
1042
+ var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = !1, o = !1, u = "method", p = !1;
1043
+ if (this.eatContextual("static")) {
1044
+ if (t >= 13 && this.eat(a.braceL)) return this.parseClassStaticBlock(i), i;
1045
+ this.isClassElementNameStart() || this.type === a.star ? p = !0 : s = "static";
1046
+ }
1047
+ if (i.static = p, !s && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? o = !0 : s = "async"), !s && (t >= 9 || !o) && this.eat(a.star) && (r = !0), !s && !o && !r) {
1048
+ var h = this.value;
1049
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? u = h : s = h);
1050
+ }
1051
+ if (s ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || u !== "method" || r || o) {
1052
+ var l = !i.static && ye(i, "constructor"), m = l && e;
1053
+ l && u !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = l ? "constructor" : u, this.parseClassMethod(i, r, o, m);
1054
+ } else this.parseClassField(i);
1055
+ return i;
1056
+ };
1057
+ d.isClassElementNameStart = function() {
1058
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
1059
+ };
1060
+ d.parseClassElementName = function(e) {
1061
+ this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
1062
+ };
1063
+ d.parseClassMethod = function(e, t, i, s) {
1064
+ var r = e.key;
1065
+ e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && ye(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
1066
+ var o = e.value = this.parseMethod(t, i, s);
1067
+ return e.kind === "get" && o.params.length !== 0 && this.raiseRecoverable(o.start, "getter should have no params"), e.kind === "set" && o.params.length !== 1 && this.raiseRecoverable(o.start, "setter should have exactly one param"), e.kind === "set" && o.params[0].type === "RestElement" && this.raiseRecoverable(o.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
1068
+ };
1069
+ d.parseClassField = function(e) {
1070
+ return ye(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && ye(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(ue | Se), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
1071
+ };
1072
+ d.parseClassStaticBlock = function(e) {
1073
+ e.body = [];
1074
+ var t = this.labels;
1075
+ for (this.labels = [], this.enterScope(z | Se); this.type !== a.braceR; ) {
1076
+ var i = this.parseStatement(null);
1077
+ e.body.push(i);
1078
+ }
1079
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
1080
+ };
1081
+ d.parseClassId = function(e, t) {
1082
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, K, !1)) : (t === !0 && this.unexpected(), e.id = null);
1083
+ };
1084
+ d.parseClassSuper = function(e) {
1085
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, !1) : null;
1086
+ };
1087
+ d.enterClassBody = function() {
1088
+ var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
1089
+ return this.privateNameStack.push(e), e.declared;
1090
+ };
1091
+ d.exitClassBody = function() {
1092
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
1093
+ if (this.options.checkPrivateFields) for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], o = 0; o < i.length; ++o) {
1094
+ var u = i[o];
1095
+ $(t, u.name) || (r ? r.used.push(u) : this.raiseRecoverable(u.start, "Private field '#" + u.name + "' must be declared in an enclosing class"));
1096
+ }
1097
+ };
1098
+ d.parseExportAllDeclaration = function(e, t) {
1099
+ return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
1100
+ };
1101
+ d.parseExport = function(e, t) {
1102
+ if (this.next(), this.eat(a.star)) return this.parseExportAllDeclaration(e, t);
1103
+ if (this.eat(a._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
1104
+ if (this.shouldParseExportStatement()) e.declaration = this.parseExportDeclaration(e), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.declarations) : this.checkExport(t, e.declaration.id, e.declaration.id.start), e.specifiers = [], e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
1105
+ else {
1106
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
1107
+ else {
1108
+ for (var i = 0, s = e.specifiers; i < s.length; i += 1) {
1109
+ var r = s[i];
1110
+ this.checkUnreserved(r.local), this.checkLocalExport(r.local), r.local.type === "Literal" && this.raise(r.local.start, "A string literal cannot be used as an exported binding without `from`.");
1111
+ }
1112
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
1113
+ }
1114
+ this.semicolon();
1115
+ }
1116
+ return this.finishNode(e, "ExportNamedDeclaration");
1117
+ };
1118
+ d.parseExportDeclaration = function(e) {
1119
+ return this.parseStatement(null);
1120
+ };
1121
+ d.parseExportDefaultDeclaration = function() {
1122
+ var e;
1123
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
1124
+ var t = this.startNode();
1125
+ return this.next(), e && this.next(), this.parseFunction(t, ae | At, !1, e);
1126
+ } else if (this.type === a._class) {
1127
+ var i = this.startNode();
1128
+ return this.parseClass(i, "nullableID");
1129
+ } else {
1130
+ var s = this.parseMaybeAssign();
1131
+ return this.semicolon(), s;
1132
+ }
1133
+ };
1134
+ d.checkExport = function(e, t, i) {
1135
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), $(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = !0);
1136
+ };
1137
+ d.checkPatternExport = function(e, t) {
1138
+ var i = t.type;
1139
+ if (i === "Identifier") this.checkExport(e, t, t.start);
1140
+ else if (i === "ObjectPattern") for (var s = 0, r = t.properties; s < r.length; s += 1) {
1141
+ var o = r[s];
1142
+ this.checkPatternExport(e, o);
1143
+ }
1144
+ else if (i === "ArrayPattern") for (var u = 0, p = t.elements; u < p.length; u += 1) {
1145
+ var h = p[u];
1146
+ h && this.checkPatternExport(e, h);
1147
+ }
1148
+ else i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
1149
+ };
1150
+ d.checkVariableExport = function(e, t) {
1151
+ if (e) for (var i = 0, s = t; i < s.length; i += 1) {
1152
+ var r = s[i];
1153
+ this.checkPatternExport(e, r.id);
1154
+ }
1155
+ };
1156
+ d.shouldParseExportStatement = function() {
1157
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
1158
+ };
1159
+ d.parseExportSpecifier = function(e) {
1160
+ var t = this.startNode();
1161
+ return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(e, t.exported, t.exported.start), this.finishNode(t, "ExportSpecifier");
1162
+ };
1163
+ d.parseExportSpecifiers = function(e) {
1164
+ var t = [], i = !0;
1165
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
1166
+ if (i) i = !1;
1167
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1168
+ t.push(this.parseExportSpecifier(e));
1169
+ }
1170
+ return t;
1171
+ };
1172
+ d.parseImport = function(e) {
1173
+ return this.next(), this.type === a.string ? (e.specifiers = Yi, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
1174
+ };
1175
+ d.parseImportSpecifier = function() {
1176
+ var e = this.startNode();
1177
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportSpecifier");
1178
+ };
1179
+ d.parseImportDefaultSpecifier = function() {
1180
+ var e = this.startNode();
1181
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportDefaultSpecifier");
1182
+ };
1183
+ d.parseImportNamespaceSpecifier = function() {
1184
+ var e = this.startNode();
1185
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportNamespaceSpecifier");
1186
+ };
1187
+ d.parseImportSpecifiers = function() {
1188
+ var e = [], t = !0;
1189
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma))) return e;
1190
+ if (this.type === a.star) return e.push(this.parseImportNamespaceSpecifier()), e;
1191
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
1192
+ if (t) t = !1;
1193
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1194
+ e.push(this.parseImportSpecifier());
1195
+ }
1196
+ return e;
1197
+ };
1198
+ d.parseWithClause = function() {
1199
+ var e = [];
1200
+ if (!this.eat(a._with)) return e;
1201
+ this.expect(a.braceL);
1202
+ for (var t = {}, i = !0; !this.eat(a.braceR); ) {
1203
+ if (i) i = !1;
1204
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1205
+ var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
1206
+ $(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = !0, e.push(s);
1207
+ }
1208
+ return e;
1209
+ };
1210
+ d.parseImportAttribute = function() {
1211
+ var e = this.startNode();
1212
+ return e.key = this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(a.colon), this.type !== a.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
1213
+ };
1214
+ d.parseModuleExportName = function() {
1215
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
1216
+ var e = this.parseLiteral(this.value);
1217
+ return Hi.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1218
+ }
1219
+ return this.parseIdent(!0);
1220
+ };
1221
+ d.adaptDirectivePrologue = function(e) {
1222
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
1223
+ };
1224
+ d.isDirectiveCandidate = function(e) {
1225
+ return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === '"' || this.input[e.start] === "'");
1226
+ };
1227
+ D = A.prototype;
1228
+ D.toAssignable = function(e, t, i) {
1229
+ if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
1230
+ case "Identifier":
1231
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
1232
+ break;
1233
+ case "ObjectPattern":
1234
+ case "ArrayPattern":
1235
+ case "AssignmentPattern":
1236
+ case "RestElement":
1237
+ break;
1238
+ case "ObjectExpression":
1239
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, !0);
1240
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1241
+ var o = r[s];
1242
+ this.toAssignable(o, t), o.type === "RestElement" && (o.argument.type === "ArrayPattern" || o.argument.type === "ObjectPattern") && this.raise(o.argument.start, "Unexpected token");
1243
+ }
1244
+ break;
1245
+ case "Property":
1246
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
1247
+ break;
1248
+ case "ArrayExpression":
1249
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, !0), this.toAssignableList(e.elements, t);
1250
+ break;
1251
+ case "SpreadElement":
1252
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
1253
+ break;
1254
+ case "AssignmentExpression":
1255
+ e.operator !== "=" && this.raise(e.left.end, "Only '=' operator can be used for specifying default value."), e.type = "AssignmentPattern", delete e.operator, this.toAssignable(e.left, t);
1256
+ break;
1257
+ case "ParenthesizedExpression":
1258
+ this.toAssignable(e.expression, t, i);
1259
+ break;
1260
+ case "ChainExpression":
1261
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1262
+ break;
1263
+ case "MemberExpression":
1264
+ if (!t) break;
1265
+ default:
1266
+ this.raise(e.start, "Assigning to rvalue");
1267
+ }
1268
+ else i && this.checkPatternErrors(i, !0);
1269
+ return e;
1270
+ };
1271
+ D.toAssignableList = function(e, t) {
1272
+ for (var i = e.length, s = 0; s < i; s++) {
1273
+ var r = e[s];
1274
+ r && this.toAssignable(r, t);
1275
+ }
1276
+ if (i) {
1277
+ var o = e[i - 1];
1278
+ this.options.ecmaVersion === 6 && t && o && o.type === "RestElement" && o.argument.type !== "Identifier" && this.unexpected(o.argument.start);
1279
+ }
1280
+ return e;
1281
+ };
1282
+ D.parseSpread = function(e) {
1283
+ var t = this.startNode();
1284
+ return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
1285
+ };
1286
+ D.parseRestBinding = function() {
1287
+ var e = this.startNode();
1288
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1289
+ };
1290
+ D.parseBindingAtom = function() {
1291
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
1292
+ case a.bracketL:
1293
+ var e = this.startNode();
1294
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
1295
+ case a.braceL:
1296
+ return this.parseObj(!0);
1297
+ }
1298
+ return this.parseIdent();
1299
+ };
1300
+ D.parseBindingList = function(e, t, i, s) {
1301
+ for (var r = [], o = !0; !this.eat(e); ) if (o ? o = !1 : this.expect(a.comma), t && this.type === a.comma) r.push(null);
1302
+ else {
1303
+ if (i && this.afterTrailingComma(e)) break;
1304
+ if (this.type === a.ellipsis) {
1305
+ var u = this.parseRestBinding();
1306
+ this.parseBindingListItem(u), r.push(u), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1307
+ break;
1308
+ } else r.push(this.parseAssignableListItem(s));
1309
+ }
1310
+ return r;
1311
+ };
1312
+ D.parseAssignableListItem = function(e) {
1313
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
1314
+ return this.parseBindingListItem(t), t;
1315
+ };
1316
+ D.parseBindingListItem = function(e) {
1317
+ return e;
1318
+ };
1319
+ D.parseMaybeDefault = function(e, t, i) {
1320
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq)) return i;
1321
+ var s = this.startNodeAt(e, t);
1322
+ return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
1323
+ };
1324
+ D.checkLValSimple = function(e, t, i) {
1325
+ t === void 0 && (t = xe);
1326
+ var s = t !== xe;
1327
+ switch (e.type) {
1328
+ case "Identifier":
1329
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === K && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && ($(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== Et && this.declareName(e.name, t, e.start));
1330
+ break;
1331
+ case "ChainExpression":
1332
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1333
+ break;
1334
+ case "MemberExpression":
1335
+ s && this.raiseRecoverable(e.start, "Binding member expression");
1336
+ break;
1337
+ case "ParenthesizedExpression":
1338
+ return s && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
1339
+ default:
1340
+ this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
1341
+ }
1342
+ };
1343
+ D.checkLValPattern = function(e, t, i) {
1344
+ switch (t === void 0 && (t = xe), e.type) {
1345
+ case "ObjectPattern":
1346
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1347
+ var o = r[s];
1348
+ this.checkLValInnerPattern(o, t, i);
1349
+ }
1350
+ break;
1351
+ case "ArrayPattern":
1352
+ for (var u = 0, p = e.elements; u < p.length; u += 1) {
1353
+ var h = p[u];
1354
+ h && this.checkLValInnerPattern(h, t, i);
1355
+ }
1356
+ break;
1357
+ default:
1358
+ this.checkLValSimple(e, t, i);
1359
+ }
1360
+ };
1361
+ D.checkLValInnerPattern = function(e, t, i) {
1362
+ switch (t === void 0 && (t = xe), e.type) {
1363
+ case "Property":
1364
+ this.checkLValInnerPattern(e.value, t, i);
1365
+ break;
1366
+ case "AssignmentPattern":
1367
+ this.checkLValPattern(e.left, t, i);
1368
+ break;
1369
+ case "RestElement":
1370
+ this.checkLValPattern(e.argument, t, i);
1371
+ break;
1372
+ default:
1373
+ this.checkLValPattern(e, t, i);
1374
+ }
1375
+ };
1376
+ F = function(t, i, s, r, o) {
1377
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!o;
1378
+ }, T = { b_stat: new F("{", !1), b_expr: new F("{", !0), b_tmpl: new F("${", !1), p_stat: new F("(", !1), p_expr: new F("(", !0), q_tmpl: new F("`", !0, !0, function(e) {
1379
+ return e.tryReadTemplateToken();
1380
+ }), f_stat: new F("function", !1), f_expr: new F("function", !0), f_expr_gen: new F("function", !0, !1, null, !0), f_gen: new F("function", !1, !1, null, !0) }, ee = A.prototype;
1381
+ ee.initialContext = function() {
1382
+ return [T.b_stat];
1383
+ };
1384
+ ee.curContext = function() {
1385
+ return this.context[this.context.length - 1];
1386
+ };
1387
+ ee.braceIsBlock = function(e) {
1388
+ var t = this.curContext();
1389
+ return t === T.f_expr || t === T.f_stat ? !0 : e === a.colon && (t === T.b_stat || t === T.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? L.test(this.input.slice(this.lastTokEnd, this.start)) : e === a._else || e === a.semi || e === a.eof || e === a.parenR || e === a.arrow ? !0 : e === a.braceL ? t === T.b_stat : e === a._var || e === a._const || e === a.name ? !1 : !this.exprAllowed;
1390
+ };
1391
+ ee.inGeneratorContext = function() {
1392
+ for (var e = this.context.length - 1; e >= 1; e--) {
1393
+ var t = this.context[e];
1394
+ if (t.token === "function") return t.generator;
1395
+ }
1396
+ return !1;
1397
+ };
1398
+ ee.updateContext = function(e) {
1399
+ var t, i = this.type;
1400
+ i.keyword && e === a.dot ? this.exprAllowed = !1 : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
1401
+ };
1402
+ ee.overrideContext = function(e) {
1403
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
1404
+ };
1405
+ a.parenR.updateContext = a.braceR.updateContext = function() {
1406
+ if (this.context.length === 1) {
1407
+ this.exprAllowed = !0;
1408
+ return;
1409
+ }
1410
+ var e = this.context.pop();
1411
+ e === T.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1412
+ };
1413
+ a.braceL.updateContext = function(e) {
1414
+ this.context.push(this.braceIsBlock(e) ? T.b_stat : T.b_expr), this.exprAllowed = !0;
1415
+ };
1416
+ a.dollarBraceL.updateContext = function() {
1417
+ this.context.push(T.b_tmpl), this.exprAllowed = !0;
1418
+ };
1419
+ a.parenL.updateContext = function(e) {
1420
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
1421
+ this.context.push(t ? T.p_stat : T.p_expr), this.exprAllowed = !0;
1422
+ };
1423
+ a.incDec.updateContext = function() {
1424
+ };
1425
+ a._function.updateContext = a._class.updateContext = function(e) {
1426
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== T.p_stat) && !(e === a._return && L.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === T.b_stat) ? this.context.push(T.f_expr) : this.context.push(T.f_stat), this.exprAllowed = !1;
1427
+ };
1428
+ a.colon.updateContext = function() {
1429
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
1430
+ };
1431
+ a.backQuote.updateContext = function() {
1432
+ this.curContext() === T.q_tmpl ? this.context.pop() : this.context.push(T.q_tmpl), this.exprAllowed = !1;
1433
+ };
1434
+ a.star.updateContext = function(e) {
1435
+ if (e === a._function) {
1436
+ var t = this.context.length - 1;
1437
+ this.context[t] === T.f_expr ? this.context[t] = T.f_expr_gen : this.context[t] = T.f_gen;
1438
+ }
1439
+ this.exprAllowed = !0;
1440
+ };
1441
+ a.name.updateContext = function(e) {
1442
+ var t = !1;
1443
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
1444
+ };
1445
+ g = A.prototype;
1446
+ g.checkPropClash = function(e, t, i) {
1447
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1448
+ var s = e.key, r;
1449
+ switch (s.type) {
1450
+ case "Identifier":
1451
+ r = s.name;
1452
+ break;
1453
+ case "Literal":
1454
+ r = String(s.value);
1455
+ break;
1456
+ default:
1457
+ return;
1458
+ }
1459
+ var o = e.kind;
1460
+ if (this.options.ecmaVersion >= 6) {
1461
+ r === "__proto__" && o === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = s.start) : this.raiseRecoverable(s.start, "Redefinition of __proto__ property")), t.proto = !0);
1462
+ return;
1463
+ }
1464
+ r = "$" + r;
1465
+ var u = t[r];
1466
+ if (u) {
1467
+ var p;
1468
+ o === "init" ? p = this.strict && u.init || u.get || u.set : p = u.init || u[o], p && this.raiseRecoverable(s.start, "Redefinition of property");
1469
+ } else u = t[r] = { init: !1, get: !1, set: !1 };
1470
+ u[o] = !0;
1471
+ }
1472
+ };
1473
+ g.parseExpression = function(e, t) {
1474
+ var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
1475
+ if (this.type === a.comma) {
1476
+ var o = this.startNodeAt(i, s);
1477
+ for (o.expressions = [r]; this.eat(a.comma); ) o.expressions.push(this.parseMaybeAssign(e, t));
1478
+ return this.finishNode(o, "SequenceExpression");
1479
+ }
1480
+ return r;
1481
+ };
1482
+ g.parseMaybeAssign = function(e, t, i) {
1483
+ if (this.isContextual("yield")) {
1484
+ if (this.inGenerator) return this.parseYield(e);
1485
+ this.exprAllowed = !1;
1486
+ }
1487
+ var s = !1, r = -1, o = -1, u = -1;
1488
+ t ? (r = t.parenthesizedAssign, o = t.trailingComma, u = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Ce(), s = !0);
1489
+ var p = this.start, h = this.startLoc;
1490
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1491
+ var l = this.parseMaybeConditional(e, t);
1492
+ if (i && (l = i.call(this, l, p, h)), this.type.isAssign) {
1493
+ var m = this.startNodeAt(p, h);
1494
+ return m.operator = this.value, this.type === a.eq && (l = this.toAssignable(l, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), m.left = l, this.next(), m.right = this.parseMaybeAssign(e), u > -1 && (t.doubleProto = u), this.finishNode(m, "AssignmentExpression");
1495
+ } else s && this.checkExpressionErrors(t, !0);
1496
+ return r > -1 && (t.parenthesizedAssign = r), o > -1 && (t.trailingComma = o), l;
1497
+ };
1498
+ g.parseMaybeConditional = function(e, t) {
1499
+ var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
1500
+ if (this.checkExpressionErrors(t)) return r;
1501
+ if (this.eat(a.question)) {
1502
+ var o = this.startNodeAt(i, s);
1503
+ return o.test = r, o.consequent = this.parseMaybeAssign(), this.expect(a.colon), o.alternate = this.parseMaybeAssign(e), this.finishNode(o, "ConditionalExpression");
1504
+ }
1505
+ return r;
1506
+ };
1507
+ g.parseExprOps = function(e, t) {
1508
+ var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, !1, !1, e);
1509
+ return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
1510
+ };
1511
+ g.parseExprOp = function(e, t, i, s, r) {
1512
+ var o = this.type.binop;
1513
+ if (o != null && (!r || this.type !== a._in) && o > s) {
1514
+ var u = this.type === a.logicalOR || this.type === a.logicalAND, p = this.type === a.coalesce;
1515
+ p && (o = a.logicalAND.binop);
1516
+ var h = this.value;
1517
+ this.next();
1518
+ var l = this.start, m = this.startLoc, S = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), l, m, o, r), E = this.buildBinary(t, i, e, S, h, u || p);
1519
+ return (u && this.type === a.coalesce || p && (this.type === a.logicalOR || this.type === a.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(E, t, i, s, r);
1520
+ }
1521
+ return e;
1522
+ };
1523
+ g.buildBinary = function(e, t, i, s, r, o) {
1524
+ s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
1525
+ var u = this.startNodeAt(e, t);
1526
+ return u.left = i, u.operator = r, u.right = s, this.finishNode(u, o ? "LogicalExpression" : "BinaryExpression");
1527
+ };
1528
+ g.parseMaybeUnary = function(e, t, i, s) {
1529
+ var r = this.start, o = this.startLoc, u;
1530
+ if (this.isContextual("await") && this.canAwait) u = this.parseAwait(s), t = !0;
1531
+ else if (this.type.prefix) {
1532
+ var p = this.startNode(), h = this.type === a.incDec;
1533
+ p.operator = this.value, p.prefix = !0, this.next(), p.argument = this.parseMaybeUnary(null, !0, h, s), this.checkExpressionErrors(e, !0), h ? this.checkLValSimple(p.argument) : this.strict && p.operator === "delete" && kt(p.argument) ? this.raiseRecoverable(p.start, "Deleting local variable in strict mode") : p.operator === "delete" && qe(p.argument) ? this.raiseRecoverable(p.start, "Private fields can not be deleted") : t = !0, u = this.finishNode(p, h ? "UpdateExpression" : "UnaryExpression");
1534
+ } else if (!t && this.type === a.privateId) (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), u = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1535
+ else {
1536
+ if (u = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e)) return u;
1537
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1538
+ var l = this.startNodeAt(r, o);
1539
+ l.operator = this.value, l.prefix = !1, l.argument = u, this.checkLValSimple(u), this.next(), u = this.finishNode(l, "UpdateExpression");
1540
+ }
1541
+ }
1542
+ if (!i && this.eat(a.starstar)) if (t) this.unexpected(this.lastTokStart);
1543
+ else return this.buildBinary(r, o, u, this.parseMaybeUnary(null, !1, !1, s), "**", !1);
1544
+ else return u;
1545
+ };
1546
+ g.parseExprSubscripts = function(e, t) {
1547
+ var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
1548
+ if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return r;
1549
+ var o = this.parseSubscripts(r, i, s, !1, t);
1550
+ return e && o.type === "MemberExpression" && (e.parenthesizedAssign >= o.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= o.start && (e.parenthesizedBind = -1), e.trailingComma >= o.start && (e.trailingComma = -1)), o;
1551
+ };
1552
+ g.parseSubscripts = function(e, t, i, s, r) {
1553
+ for (var o = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, u = !1; ; ) {
1554
+ var p = this.parseSubscript(e, t, i, s, o, u, r);
1555
+ if (p.optional && (u = !0), p === e || p.type === "ArrowFunctionExpression") {
1556
+ if (u) {
1557
+ var h = this.startNodeAt(t, i);
1558
+ h.expression = p, p = this.finishNode(h, "ChainExpression");
1559
+ }
1560
+ return p;
1561
+ }
1562
+ e = p;
1563
+ }
1564
+ };
1565
+ g.shouldParseAsyncArrow = function() {
1566
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
1567
+ };
1568
+ g.parseSubscriptAsyncArrow = function(e, t, i, s) {
1569
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, !0, s);
1570
+ };
1571
+ g.parseSubscript = function(e, t, i, s, r, o, u) {
1572
+ var p = this.options.ecmaVersion >= 11, h = p && this.eat(a.questionDot);
1573
+ s && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1574
+ var l = this.eat(a.bracketL);
1575
+ if (l || h && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1576
+ var m = this.startNodeAt(t, i);
1577
+ m.object = e, l ? (m.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? m.property = this.parsePrivateIdent() : m.property = this.parseIdent(this.options.allowReserved !== "never"), m.computed = !!l, p && (m.optional = h), e = this.finishNode(m, "MemberExpression");
1578
+ } else if (!s && this.eat(a.parenL)) {
1579
+ var S = new Ce(), E = this.yieldPos, c = this.awaitPos, x = this.awaitIdentPos;
1580
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1581
+ var y = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, S);
1582
+ if (r && !h && this.shouldParseAsyncArrow()) return this.checkPatternErrors(S, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = E, this.awaitPos = c, this.awaitIdentPos = x, this.parseSubscriptAsyncArrow(t, i, y, u);
1583
+ this.checkExpressionErrors(S, !0), this.yieldPos = E || this.yieldPos, this.awaitPos = c || this.awaitPos, this.awaitIdentPos = x || this.awaitIdentPos;
1584
+ var v = this.startNodeAt(t, i);
1585
+ v.callee = e, v.arguments = y, p && (v.optional = h), e = this.finishNode(v, "CallExpression");
1586
+ } else if (this.type === a.backQuote) {
1587
+ (h || o) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1588
+ var I = this.startNodeAt(t, i);
1589
+ I.tag = e, I.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(I, "TaggedTemplateExpression");
1590
+ }
1591
+ return e;
1592
+ };
1593
+ g.parseExprAtom = function(e, t, i) {
1594
+ this.type === a.slash && this.readRegexp();
1595
+ var s, r = this.potentialArrowAt === this.start;
1596
+ switch (this.type) {
1597
+ case a._super:
1598
+ return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), s = this.startNode(), this.next(), this.type === a.parenL && !this.allowDirectSuper && this.raise(s.start, "super() call outside constructor of a subclass"), this.type !== a.dot && this.type !== a.bracketL && this.type !== a.parenL && this.unexpected(), this.finishNode(s, "Super");
1599
+ case a._this:
1600
+ return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
1601
+ case a.name:
1602
+ var o = this.start, u = this.startLoc, p = this.containsEsc, h = this.parseIdent(!1);
1603
+ if (this.options.ecmaVersion >= 8 && !p && h.name === "async" && !this.canInsertSemicolon() && this.eat(a._function)) return this.overrideContext(T.f_expr), this.parseFunction(this.startNodeAt(o, u), 0, !1, !0, t);
1604
+ if (r && !this.canInsertSemicolon()) {
1605
+ if (this.eat(a.arrow)) return this.parseArrowExpression(this.startNodeAt(o, u), [h], !1, t);
1606
+ if (this.options.ecmaVersion >= 8 && h.name === "async" && this.type === a.name && !p && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return h = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(o, u), [h], !0, t);
1607
+ }
1608
+ return h;
1609
+ case a.regexp:
1610
+ var l = this.value;
1611
+ return s = this.parseLiteral(l.value), s.regex = { pattern: l.pattern, flags: l.flags }, s;
1612
+ case a.num:
1613
+ case a.string:
1614
+ return this.parseLiteral(this.value);
1615
+ case a._null:
1616
+ case a._true:
1617
+ case a._false:
1618
+ return s = this.startNode(), s.value = this.type === a._null ? null : this.type === a._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
1619
+ case a.parenL:
1620
+ var m = this.start, S = this.parseParenAndDistinguishExpression(r, t);
1621
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(S) && (e.parenthesizedAssign = m), e.parenthesizedBind < 0 && (e.parenthesizedBind = m)), S;
1622
+ case a.bracketL:
1623
+ return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
1624
+ case a.braceL:
1625
+ return this.overrideContext(T.b_expr), this.parseObj(!1, e);
1626
+ case a._function:
1627
+ return s = this.startNode(), this.next(), this.parseFunction(s, 0);
1628
+ case a._class:
1629
+ return this.parseClass(this.startNode(), !1);
1630
+ case a._new:
1631
+ return this.parseNew();
1632
+ case a.backQuote:
1633
+ return this.parseTemplate();
1634
+ case a._import:
1635
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
1636
+ default:
1637
+ return this.parseExprAtomDefault();
1638
+ }
1639
+ };
1640
+ g.parseExprAtomDefault = function() {
1641
+ this.unexpected();
1642
+ };
1643
+ g.parseExprImport = function(e) {
1644
+ var t = this.startNode();
1645
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e) return this.parseDynamicImport(t);
1646
+ if (this.type === a.dot) {
1647
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
1648
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
1649
+ } else this.unexpected();
1650
+ };
1651
+ g.parseDynamicImport = function(e) {
1652
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(a.parenR) ? e.options = null : (this.expect(a.comma), this.afterTrailingComma(a.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(a.parenR) || (this.expect(a.comma), this.afterTrailingComma(a.parenR) || this.unexpected())));
1653
+ else if (!this.eat(a.parenR)) {
1654
+ var t = this.start;
1655
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
1656
+ }
1657
+ return this.finishNode(e, "ImportExpression");
1658
+ };
1659
+ g.parseImportMeta = function(e) {
1660
+ this.next();
1661
+ var t = this.containsEsc;
1662
+ return e.property = this.parseIdent(!0), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
1663
+ };
1664
+ g.parseLiteral = function(e) {
1665
+ var t = this.startNode();
1666
+ return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.value != null ? t.value.toString() : t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
1667
+ };
1668
+ g.parseParenExpression = function() {
1669
+ this.expect(a.parenL);
1670
+ var e = this.parseExpression();
1671
+ return this.expect(a.parenR), e;
1672
+ };
1673
+ g.shouldParseArrow = function(e) {
1674
+ return !this.canInsertSemicolon();
1675
+ };
1676
+ g.parseParenAndDistinguishExpression = function(e, t) {
1677
+ var i = this.start, s = this.startLoc, r, o = this.options.ecmaVersion >= 8;
1678
+ if (this.options.ecmaVersion >= 6) {
1679
+ this.next();
1680
+ var u = this.start, p = this.startLoc, h = [], l = !0, m = !1, S = new Ce(), E = this.yieldPos, c = this.awaitPos, x;
1681
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; ) if (l ? l = !1 : this.expect(a.comma), o && this.afterTrailingComma(a.parenR, !0)) {
1682
+ m = !0;
1683
+ break;
1684
+ } else if (this.type === a.ellipsis) {
1685
+ x = this.start, h.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1686
+ break;
1687
+ } else h.push(this.parseMaybeAssign(!1, S, this.parseParenItem));
1688
+ var y = this.lastTokEnd, v = this.lastTokEndLoc;
1689
+ if (this.expect(a.parenR), e && this.shouldParseArrow(h) && this.eat(a.arrow)) return this.checkPatternErrors(S, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = E, this.awaitPos = c, this.parseParenArrowList(i, s, h, t);
1690
+ (!h.length || m) && this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(S, !0), this.yieldPos = E || this.yieldPos, this.awaitPos = c || this.awaitPos, h.length > 1 ? (r = this.startNodeAt(u, p), r.expressions = h, this.finishNodeAt(r, "SequenceExpression", y, v)) : r = h[0];
1691
+ } else r = this.parseParenExpression();
1692
+ if (this.options.preserveParens) {
1693
+ var I = this.startNodeAt(i, s);
1694
+ return I.expression = r, this.finishNode(I, "ParenthesizedExpression");
1695
+ } else return r;
1696
+ };
1697
+ g.parseParenItem = function(e) {
1698
+ return e;
1699
+ };
1700
+ g.parseParenArrowList = function(e, t, i, s) {
1701
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
1702
+ };
1703
+ Zi = [];
1704
+ g.parseNew = function() {
1705
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1706
+ var e = this.startNode();
1707
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
1708
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
1709
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
1710
+ var i = this.containsEsc;
1711
+ 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'"), i && 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");
1712
+ }
1713
+ var s = this.start, r = this.startLoc;
1714
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Zi, this.finishNode(e, "NewExpression");
1715
+ };
1716
+ g.parseTemplateElement = function(e) {
1717
+ var t = e.isTagged, i = this.startNode();
1718
+ return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = { raw: this.value.replace(/\r\n?/g, `
1719
+ `), cooked: null }) : i.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1720
+ `), cooked: this.value }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1721
+ };
1722
+ g.parseTemplate = function(e) {
1723
+ e === void 0 && (e = {});
1724
+ var t = e.isTagged;
1725
+ t === void 0 && (t = !1);
1726
+ var i = this.startNode();
1727
+ this.next(), i.expressions = [];
1728
+ var s = this.parseTemplateElement({ isTagged: t });
1729
+ for (i.quasis = [s]; !s.tail; ) this.type === a.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(a.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(a.braceR), i.quasis.push(s = this.parseTemplateElement({ isTagged: t }));
1730
+ return this.next(), this.finishNode(i, "TemplateLiteral");
1731
+ };
1732
+ g.isAsyncProp = function(e) {
1733
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a.name || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a.star) && !L.test(this.input.slice(this.lastTokEnd, this.start));
1734
+ };
1735
+ g.parseObj = function(e, t) {
1736
+ var i = this.startNode(), s = !0, r = {};
1737
+ for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1738
+ if (s) s = !1;
1739
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR)) break;
1740
+ var o = this.parseProperty(e, t);
1741
+ e || this.checkPropClash(o, r, t), i.properties.push(o);
1742
+ }
1743
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1744
+ };
1745
+ g.parseProperty = function(e, t) {
1746
+ var i = this.startNode(), s, r, o, u;
1747
+ if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis)) return e ? (i.argument = this.parseIdent(!1), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(!1, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
1748
+ this.options.ecmaVersion >= 6 && (i.method = !1, i.shorthand = !1, (e || t) && (o = this.start, u = this.startLoc), e || (s = this.eat(a.star)));
1749
+ var p = this.containsEsc;
1750
+ return this.parsePropertyName(i), !e && !p && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = !0, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = !1, this.parsePropertyValue(i, e, s, r, o, u, t, p), this.finishNode(i, "Property");
1751
+ };
1752
+ g.parseGetterSetter = function(e) {
1753
+ var t = e.key.name;
1754
+ this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
1755
+ var i = e.kind === "get" ? 0 : 1;
1756
+ if (e.value.params.length !== i) {
1757
+ var s = e.value.start;
1758
+ e.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
1759
+ } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1760
+ };
1761
+ g.parsePropertyValue = function(e, t, i, s, r, o, u, p) {
1762
+ (i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, u), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(i, s), e.kind = "init") : !t && !p && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== a.comma && this.type !== a.braceR && this.type !== a.eq ? ((i || s) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || s) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), t ? e.value = this.parseMaybeDefault(r, o, this.copyNode(e.key)) : this.type === a.eq && u ? (u.shorthandAssign < 0 && (u.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, o, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
1763
+ };
1764
+ g.parsePropertyName = function(e) {
1765
+ if (this.options.ecmaVersion >= 6) {
1766
+ if (this.eat(a.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
1767
+ e.computed = !1;
1768
+ }
1769
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1770
+ };
1771
+ g.initFunction = function(e) {
1772
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
1773
+ };
1774
+ g.parseMethod = function(e, t, i) {
1775
+ var s = this.startNode(), r = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
1776
+ return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Xe(t, s.generator) | Se | (i ? _t : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = o, this.awaitIdentPos = u, this.finishNode(s, "FunctionExpression");
1777
+ };
1778
+ g.parseArrowExpression = function(e, t, i, s) {
1779
+ var r = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
1780
+ return this.enterScope(Xe(i, !1) | He), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, s), this.yieldPos = r, this.awaitPos = o, this.awaitIdentPos = u, this.finishNode(e, "ArrowFunctionExpression");
1781
+ };
1782
+ g.parseFunctionBody = function(e, t, i, s) {
1783
+ var r = t && this.type !== a.braceL, o = this.strict, u = !1;
1784
+ if (r) e.body = this.parseMaybeAssign(s), e.expression = !0, this.checkParams(e, !1);
1785
+ else {
1786
+ var p = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1787
+ (!o || p) && (u = this.strictDirective(this.end), u && p && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1788
+ var h = this.labels;
1789
+ this.labels = [], u && (this.strict = !0), this.checkParams(e, !o && !u && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Et), e.body = this.parseBlock(!1, void 0, u && !o), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = h;
1790
+ }
1791
+ this.exitScope();
1792
+ };
1793
+ g.isSimpleParamList = function(e) {
1794
+ for (var t = 0, i = e; t < i.length; t += 1) {
1795
+ var s = i[t];
1796
+ if (s.type !== "Identifier") return !1;
1797
+ }
1798
+ return !0;
1799
+ };
1800
+ g.checkParams = function(e, t) {
1801
+ for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1802
+ var o = r[s];
1803
+ this.checkLValInnerPattern(o, We, t ? null : i);
1804
+ }
1805
+ };
1806
+ g.parseExprList = function(e, t, i, s) {
1807
+ for (var r = [], o = !0; !this.eat(e); ) {
1808
+ if (o) o = !1;
1809
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e)) break;
1810
+ var u = void 0;
1811
+ i && this.type === a.comma ? u = null : this.type === a.ellipsis ? (u = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : u = this.parseMaybeAssign(!1, s), r.push(u);
1812
+ }
1813
+ return r;
1814
+ };
1815
+ g.checkUnreserved = function(e) {
1816
+ var t = e.start, i = e.end, s = e.name;
1817
+ if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & _e) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1818
+ var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1819
+ r.test(s) && (!this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + s + "' is reserved"));
1820
+ }
1821
+ };
1822
+ g.parseIdent = function(e) {
1823
+ var t = this.parseIdentNode();
1824
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1825
+ };
1826
+ g.parseIdentNode = function() {
1827
+ var e = this.startNode();
1828
+ return this.type === a.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = a.name) : this.unexpected(), e;
1829
+ };
1830
+ g.parsePrivateIdent = function() {
1831
+ var e = this.startNode();
1832
+ return this.type === a.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
1833
+ };
1834
+ g.parseYield = function(e) {
1835
+ this.yieldPos || (this.yieldPos = this.start);
1836
+ var t = this.startNode();
1837
+ return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
1838
+ };
1839
+ g.parseAwait = function(e) {
1840
+ this.awaitPos || (this.awaitPos = this.start);
1841
+ var t = this.startNode();
1842
+ return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
1843
+ };
1844
+ ge = A.prototype;
1845
+ ge.raise = function(e, t) {
1846
+ var i = vt(this.input, e);
1847
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1848
+ var s = new SyntaxError(t);
1849
+ throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1850
+ };
1851
+ ge.raiseRecoverable = ge.raise;
1852
+ ge.curPosition = function() {
1853
+ if (this.options.locations) return new ne(this.curLine, this.pos - this.lineStart);
1854
+ };
1855
+ W = A.prototype, es = function(t) {
1856
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1857
+ };
1858
+ W.enterScope = function(e) {
1859
+ this.scopeStack.push(new es(e));
1860
+ };
1861
+ W.exitScope = function() {
1862
+ this.scopeStack.pop();
1863
+ };
1864
+ W.treatFunctionsAsVarInScope = function(e) {
1865
+ return e.flags & Z || !this.inModule && e.flags & oe;
1866
+ };
1867
+ W.declareName = function(e, t, i) {
1868
+ var s = !1;
1869
+ if (t === K) {
1870
+ var r = this.currentScope();
1871
+ s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & oe && delete this.undefinedExports[e];
1872
+ } else if (t === Tt) {
1873
+ var o = this.currentScope();
1874
+ o.lexical.push(e);
1875
+ } else if (t === Ct) {
1876
+ var u = this.currentScope();
1877
+ this.treatFunctionsAsVar ? s = u.lexical.indexOf(e) > -1 : s = u.lexical.indexOf(e) > -1 || u.var.indexOf(e) > -1, u.functions.push(e);
1878
+ } else for (var p = this.scopeStack.length - 1; p >= 0; --p) {
1879
+ var h = this.scopeStack[p];
1880
+ if (h.lexical.indexOf(e) > -1 && !(h.flags & St && h.lexical[0] === e) || !this.treatFunctionsAsVarInScope(h) && h.functions.indexOf(e) > -1) {
1881
+ s = !0;
1882
+ break;
1883
+ }
1884
+ if (h.var.push(e), this.inModule && h.flags & oe && delete this.undefinedExports[e], h.flags & _e) break;
1885
+ }
1886
+ s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1887
+ };
1888
+ W.checkLocalExport = function(e) {
1889
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1890
+ };
1891
+ W.currentScope = function() {
1892
+ return this.scopeStack[this.scopeStack.length - 1];
1893
+ };
1894
+ W.currentVarScope = function() {
1895
+ for (var e = this.scopeStack.length - 1; ; e--) {
1896
+ var t = this.scopeStack[e];
1897
+ if (t.flags & (_e | ue | z)) return t;
1898
+ }
1899
+ };
1900
+ W.currentThisScope = function() {
1901
+ for (var e = this.scopeStack.length - 1; ; e--) {
1902
+ var t = this.scopeStack[e];
1903
+ if (t.flags & (_e | ue | z) && !(t.flags & He)) return t;
1904
+ }
1905
+ };
1906
+ Te = function(t, i, s) {
1907
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new be(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1908
+ }, he = A.prototype;
1909
+ he.startNode = function() {
1910
+ return new Te(this, this.start, this.startLoc);
1911
+ };
1912
+ he.startNodeAt = function(e, t) {
1913
+ return new Te(this, e, t);
1914
+ };
1915
+ he.finishNode = function(e, t) {
1916
+ return wt.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1917
+ };
1918
+ he.finishNodeAt = function(e, t, i, s) {
1919
+ return wt.call(this, e, t, i, s);
1920
+ };
1921
+ he.copyNode = function(e) {
1922
+ var t = new Te(this, e.start, this.startLoc);
1923
+ for (var i in e) t[i] = e[i];
1924
+ return t;
1925
+ };
1926
+ ts = "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", Pt = "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", It = Pt + " Extended_Pictographic", Nt = It, Lt = Nt + " EBase EComp EMod EPres ExtPict", Rt = Lt, is = Rt, ss = { 9: Pt, 10: It, 11: Nt, 12: Lt, 13: Rt, 14: is }, rs = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", as = { 9: "", 10: "", 11: "", 12: "", 13: "", 14: rs }, lt = "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", Vt = "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", Ot = Vt + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Bt = Ot + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Dt = Bt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Mt = Dt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", ns = Mt + " " + ts, os = { 9: Vt, 10: Ot, 11: Bt, 12: Dt, 13: Mt, 14: ns }, Ft = {};
1927
+ for (me = 0, Fe = [9, 10, 11, 12, 13, 14]; me < Fe.length; me += 1) ft = Fe[me], us(ft);
1928
+ f = A.prototype, ve = function(t, i) {
1929
+ this.parent = t, this.base = i || this;
1930
+ };
1931
+ ve.prototype.separatedFrom = function(t) {
1932
+ for (var i = this; i; i = i.parent) for (var s = t; s; s = s.parent) if (i.base === s.base && i !== s) return !0;
1933
+ return !1;
1934
+ };
1935
+ ve.prototype.sibling = function() {
1936
+ return new ve(this.parent, this.base);
1937
+ };
1938
+ G = function(t) {
1939
+ 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 = Ft[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;
1940
+ };
1941
+ G.prototype.reset = function(t, i, s) {
1942
+ var r = s.indexOf("v") !== -1, o = s.indexOf("u") !== -1;
1943
+ this.start = t | 0, this.source = i + "", this.flags = s, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = o && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = o && this.parser.options.ecmaVersion >= 9);
1944
+ };
1945
+ G.prototype.raise = function(t) {
1946
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
1947
+ };
1948
+ G.prototype.at = function(t, i) {
1949
+ i === void 0 && (i = !1);
1950
+ var s = this.source, r = s.length;
1951
+ if (t >= r) return -1;
1952
+ var o = s.charCodeAt(t);
1953
+ if (!(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= r) return o;
1954
+ var u = s.charCodeAt(t + 1);
1955
+ return u >= 56320 && u <= 57343 ? (o << 10) + u - 56613888 : o;
1956
+ };
1957
+ G.prototype.nextIndex = function(t, i) {
1958
+ i === void 0 && (i = !1);
1959
+ var s = this.source, r = s.length;
1960
+ if (t >= r) return r;
1961
+ var o = s.charCodeAt(t), u;
1962
+ return !(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= r || (u = s.charCodeAt(t + 1)) < 56320 || u > 57343 ? t + 1 : t + 2;
1963
+ };
1964
+ G.prototype.current = function(t) {
1965
+ return t === void 0 && (t = !1), this.at(this.pos, t);
1966
+ };
1967
+ G.prototype.lookahead = function(t) {
1968
+ return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
1969
+ };
1970
+ G.prototype.advance = function(t) {
1971
+ t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
1972
+ };
1973
+ G.prototype.eat = function(t, i) {
1974
+ return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
1975
+ };
1976
+ G.prototype.eatChars = function(t, i) {
1977
+ i === void 0 && (i = !1);
1978
+ for (var s = this.pos, r = 0, o = t; r < o.length; r += 1) {
1979
+ var u = o[r], p = this.at(s, i);
1980
+ if (p === -1 || p !== u) return !1;
1981
+ s = this.nextIndex(s, i);
1982
+ }
1983
+ return this.pos = s, !0;
1984
+ };
1985
+ f.validateRegExpFlags = function(e) {
1986
+ for (var t = e.validFlags, i = e.flags, s = !1, r = !1, o = 0; o < i.length; o++) {
1987
+ var u = i.charAt(o);
1988
+ t.indexOf(u) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(u, o + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), u === "u" && (s = !0), u === "v" && (r = !0);
1989
+ }
1990
+ this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1991
+ };
1992
+ f.validateRegExpPattern = function(e) {
1993
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && hs(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
1994
+ };
1995
+ f.regexp_pattern = function(e) {
1996
+ 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(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
1997
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
1998
+ var s = i[t];
1999
+ e.groupNames[s] || e.raise("Invalid named capture referenced");
2000
+ }
2001
+ };
2002
+ f.regexp_disjunction = function(e) {
2003
+ var t = this.options.ecmaVersion >= 16;
2004
+ for (t && (e.branchID = new ve(e.branchID, null)), this.regexp_alternative(e); e.eat(124); ) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
2005
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
2006
+ };
2007
+ f.regexp_alternative = function(e) {
2008
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e); ) ;
2009
+ };
2010
+ f.regexp_eatTerm = function(e) {
2011
+ return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), !0) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), !0) : !1;
2012
+ };
2013
+ f.regexp_eatAssertion = function(e) {
2014
+ var t = e.pos;
2015
+ if (e.lastAssertionIsQuantifiable = !1, e.eat(94) || e.eat(36)) return !0;
2016
+ if (e.eat(92)) {
2017
+ if (e.eat(66) || e.eat(98)) return !0;
2018
+ e.pos = t;
2019
+ }
2020
+ if (e.eat(40) && e.eat(63)) {
2021
+ var i = !1;
2022
+ if (this.options.ecmaVersion >= 9 && (i = e.eat(60)), e.eat(61) || e.eat(33)) return this.regexp_disjunction(e), e.eat(41) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !i, !0;
2023
+ }
2024
+ return e.pos = t, !1;
2025
+ };
2026
+ f.regexp_eatQuantifier = function(e, t) {
2027
+ return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1;
2028
+ };
2029
+ f.regexp_eatQuantifierPrefix = function(e, t) {
2030
+ return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
2031
+ };
2032
+ f.regexp_eatBracedQuantifier = function(e, t) {
2033
+ var i = e.pos;
2034
+ if (e.eat(123)) {
2035
+ var s = 0, r = -1;
2036
+ if (this.regexp_eatDecimalDigits(e) && (s = e.lastIntValue, e.eat(44) && this.regexp_eatDecimalDigits(e) && (r = e.lastIntValue), e.eat(125))) return r !== -1 && r < s && !t && e.raise("numbers out of order in {} quantifier"), !0;
2037
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
2038
+ }
2039
+ return !1;
2040
+ };
2041
+ f.regexp_eatAtom = function(e) {
2042
+ return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
2043
+ };
2044
+ f.regexp_eatReverseSolidusAtomEscape = function(e) {
2045
+ var t = e.pos;
2046
+ if (e.eat(92)) {
2047
+ if (this.regexp_eatAtomEscape(e)) return !0;
2048
+ e.pos = t;
2049
+ }
2050
+ return !1;
2051
+ };
2052
+ f.regexp_eatUncapturingGroup = function(e) {
2053
+ var t = e.pos;
2054
+ if (e.eat(40)) {
2055
+ if (e.eat(63)) {
2056
+ if (this.options.ecmaVersion >= 16) {
2057
+ var i = this.regexp_eatModifiers(e), s = e.eat(45);
2058
+ if (i || s) {
2059
+ for (var r = 0; r < i.length; r++) {
2060
+ var o = i.charAt(r);
2061
+ i.indexOf(o, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
2062
+ }
2063
+ if (s) {
2064
+ var u = this.regexp_eatModifiers(e);
2065
+ !i && !u && e.current() === 58 && e.raise("Invalid regular expression modifiers");
2066
+ for (var p = 0; p < u.length; p++) {
2067
+ var h = u.charAt(p);
2068
+ (u.indexOf(h, p + 1) > -1 || i.indexOf(h) > -1) && e.raise("Duplicate regular expression modifiers");
2069
+ }
2070
+ }
2071
+ }
2072
+ }
2073
+ if (e.eat(58)) {
2074
+ if (this.regexp_disjunction(e), e.eat(41)) return !0;
2075
+ e.raise("Unterminated group");
2076
+ }
2077
+ }
2078
+ e.pos = t;
2079
+ }
2080
+ return !1;
2081
+ };
2082
+ f.regexp_eatCapturingGroup = function(e) {
2083
+ if (e.eat(40)) {
2084
+ if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(41)) return e.numCapturingParens += 1, !0;
2085
+ e.raise("Unterminated group");
2086
+ }
2087
+ return !1;
2088
+ };
2089
+ f.regexp_eatModifiers = function(e) {
2090
+ for (var t = "", i = 0; (i = e.current()) !== -1 && ps(i); ) t += q(i), e.advance();
2091
+ return t;
2092
+ };
2093
+ f.regexp_eatExtendedAtom = function(e) {
2094
+ return e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
2095
+ };
2096
+ f.regexp_eatInvalidBracedQuantifier = function(e) {
2097
+ return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2098
+ };
2099
+ f.regexp_eatSyntaxCharacter = function(e) {
2100
+ var t = e.current();
2101
+ return jt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2102
+ };
2103
+ f.regexp_eatPatternCharacters = function(e) {
2104
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !jt(i); ) e.advance();
2105
+ return e.pos !== t;
2106
+ };
2107
+ f.regexp_eatExtendedPatternCharacter = function(e) {
2108
+ var t = e.current();
2109
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
2110
+ };
2111
+ f.regexp_groupSpecifier = function(e) {
2112
+ if (e.eat(63)) {
2113
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
2114
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
2115
+ if (i) if (t) for (var s = 0, r = i; s < r.length; s += 1) {
2116
+ var o = r[s];
2117
+ o.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
2118
+ }
2119
+ else e.raise("Duplicate capture group name");
2120
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
2121
+ }
2122
+ };
2123
+ f.regexp_eatGroupName = function(e) {
2124
+ if (e.lastStringValue = "", e.eat(60)) {
2125
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return !0;
2126
+ e.raise("Invalid capture group name");
2127
+ }
2128
+ return !1;
2129
+ };
2130
+ f.regexp_eatRegExpIdentifierName = function(e) {
2131
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
2132
+ for (e.lastStringValue += q(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); ) e.lastStringValue += q(e.lastIntValue);
2133
+ return !0;
2134
+ }
2135
+ return !1;
2136
+ };
2137
+ f.regexp_eatRegExpIdentifierStart = function(e) {
2138
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2139
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), cs(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2140
+ };
2141
+ f.regexp_eatRegExpIdentifierPart = function(e) {
2142
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2143
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ls(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2144
+ };
2145
+ f.regexp_eatAtomEscape = function(e) {
2146
+ return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
2147
+ };
2148
+ f.regexp_eatBackReference = function(e) {
2149
+ var t = e.pos;
2150
+ if (this.regexp_eatDecimalEscape(e)) {
2151
+ var i = e.lastIntValue;
2152
+ if (e.switchU) return i > e.maxBackReference && (e.maxBackReference = i), !0;
2153
+ if (i <= e.numCapturingParens) return !0;
2154
+ e.pos = t;
2155
+ }
2156
+ return !1;
2157
+ };
2158
+ f.regexp_eatKGroupName = function(e) {
2159
+ if (e.eat(107)) {
2160
+ if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), !0;
2161
+ e.raise("Invalid named reference");
2162
+ }
2163
+ return !1;
2164
+ };
2165
+ f.regexp_eatCharacterEscape = function(e) {
2166
+ return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
2167
+ };
2168
+ f.regexp_eatCControlLetter = function(e) {
2169
+ var t = e.pos;
2170
+ if (e.eat(99)) {
2171
+ if (this.regexp_eatControlLetter(e)) return !0;
2172
+ e.pos = t;
2173
+ }
2174
+ return !1;
2175
+ };
2176
+ f.regexp_eatZero = function(e) {
2177
+ return e.current() === 48 && !Ee(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
2178
+ };
2179
+ f.regexp_eatControlEscape = function(e) {
2180
+ var t = e.current();
2181
+ return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
2182
+ };
2183
+ f.regexp_eatControlLetter = function(e) {
2184
+ var t = e.current();
2185
+ return Ut(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2186
+ };
2187
+ f.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2188
+ t === void 0 && (t = !1);
2189
+ var i = e.pos, s = t || e.switchU;
2190
+ if (e.eat(117)) {
2191
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
2192
+ var r = e.lastIntValue;
2193
+ if (s && r >= 55296 && r <= 56319) {
2194
+ var o = e.pos;
2195
+ if (e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4)) {
2196
+ var u = e.lastIntValue;
2197
+ if (u >= 56320 && u <= 57343) return e.lastIntValue = (r - 55296) * 1024 + (u - 56320) + 65536, !0;
2198
+ }
2199
+ e.pos = o, e.lastIntValue = r;
2200
+ }
2201
+ return !0;
2202
+ }
2203
+ if (s && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && fs(e.lastIntValue)) return !0;
2204
+ s && e.raise("Invalid unicode escape"), e.pos = i;
2205
+ }
2206
+ return !1;
2207
+ };
2208
+ f.regexp_eatIdentityEscape = function(e) {
2209
+ if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
2210
+ var t = e.current();
2211
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2212
+ };
2213
+ f.regexp_eatDecimalEscape = function(e) {
2214
+ e.lastIntValue = 0;
2215
+ var t = e.current();
2216
+ if (t >= 49 && t <= 57) {
2217
+ do
2218
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
2219
+ while ((t = e.current()) >= 48 && t <= 57);
2220
+ return !0;
2221
+ }
2222
+ return !1;
2223
+ };
2224
+ Gt = 0, J = 1, B = 2;
2225
+ f.regexp_eatCharacterClassEscape = function(e) {
2226
+ var t = e.current();
2227
+ if (ds(t)) return e.lastIntValue = -1, e.advance(), J;
2228
+ var i = !1;
2229
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
2230
+ e.lastIntValue = -1, e.advance();
2231
+ var s;
2232
+ if (e.eat(123) && (s = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return i && s === B && e.raise("Invalid property name"), s;
2233
+ e.raise("Invalid property name");
2234
+ }
2235
+ return Gt;
2236
+ };
2237
+ f.regexp_eatUnicodePropertyValueExpression = function(e) {
2238
+ var t = e.pos;
2239
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
2240
+ var i = e.lastStringValue;
2241
+ if (this.regexp_eatUnicodePropertyValue(e)) {
2242
+ var s = e.lastStringValue;
2243
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), J;
2244
+ }
2245
+ }
2246
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2247
+ var r = e.lastStringValue;
2248
+ return this.regexp_validateUnicodePropertyNameOrValue(e, r);
2249
+ }
2250
+ return Gt;
2251
+ };
2252
+ f.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2253
+ $(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
2254
+ };
2255
+ f.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2256
+ if (e.unicodeProperties.binary.test(t)) return J;
2257
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return B;
2258
+ e.raise("Invalid property name");
2259
+ };
2260
+ f.regexp_eatUnicodePropertyName = function(e) {
2261
+ var t = 0;
2262
+ for (e.lastStringValue = ""; qt(t = e.current()); ) e.lastStringValue += q(t), e.advance();
2263
+ return e.lastStringValue !== "";
2264
+ };
2265
+ f.regexp_eatUnicodePropertyValue = function(e) {
2266
+ var t = 0;
2267
+ for (e.lastStringValue = ""; ms(t = e.current()); ) e.lastStringValue += q(t), e.advance();
2268
+ return e.lastStringValue !== "";
2269
+ };
2270
+ f.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2271
+ return this.regexp_eatUnicodePropertyValue(e);
2272
+ };
2273
+ f.regexp_eatCharacterClass = function(e) {
2274
+ if (e.eat(91)) {
2275
+ var t = e.eat(94), i = this.regexp_classContents(e);
2276
+ return e.eat(93) || e.raise("Unterminated character class"), t && i === B && e.raise("Negated character class may contain strings"), !0;
2277
+ }
2278
+ return !1;
2279
+ };
2280
+ f.regexp_classContents = function(e) {
2281
+ return e.current() === 93 ? J : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), J);
2282
+ };
2283
+ f.regexp_nonEmptyClassRanges = function(e) {
2284
+ for (; this.regexp_eatClassAtom(e); ) {
2285
+ var t = e.lastIntValue;
2286
+ if (e.eat(45) && this.regexp_eatClassAtom(e)) {
2287
+ var i = e.lastIntValue;
2288
+ e.switchU && (t === -1 || i === -1) && e.raise("Invalid character class"), t !== -1 && i !== -1 && t > i && e.raise("Range out of order in character class");
2289
+ }
2290
+ }
2291
+ };
2292
+ f.regexp_eatClassAtom = function(e) {
2293
+ var t = e.pos;
2294
+ if (e.eat(92)) {
2295
+ if (this.regexp_eatClassEscape(e)) return !0;
2296
+ if (e.switchU) {
2297
+ var i = e.current();
2298
+ (i === 99 || Ht(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2299
+ }
2300
+ e.pos = t;
2301
+ }
2302
+ var s = e.current();
2303
+ return s !== 93 ? (e.lastIntValue = s, e.advance(), !0) : !1;
2304
+ };
2305
+ f.regexp_eatClassEscape = function(e) {
2306
+ var t = e.pos;
2307
+ if (e.eat(98)) return e.lastIntValue = 8, !0;
2308
+ if (e.switchU && e.eat(45)) return e.lastIntValue = 45, !0;
2309
+ if (!e.switchU && e.eat(99)) {
2310
+ if (this.regexp_eatClassControlLetter(e)) return !0;
2311
+ e.pos = t;
2312
+ }
2313
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2314
+ };
2315
+ f.regexp_classSetExpression = function(e) {
2316
+ var t = J, i;
2317
+ if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
2318
+ i === B && (t = B);
2319
+ for (var s = e.pos; e.eatChars([38, 38]); ) {
2320
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2321
+ i !== B && (t = J);
2322
+ continue;
2323
+ }
2324
+ e.raise("Invalid character in character class");
2325
+ }
2326
+ if (s !== e.pos) return t;
2327
+ for (; e.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2328
+ if (s !== e.pos) return t;
2329
+ } else e.raise("Invalid character in character class");
2330
+ for (; ; ) if (!this.regexp_eatClassSetRange(e)) {
2331
+ if (i = this.regexp_eatClassSetOperand(e), !i) return t;
2332
+ i === B && (t = B);
2333
+ }
2334
+ };
2335
+ f.regexp_eatClassSetRange = function(e) {
2336
+ var t = e.pos;
2337
+ if (this.regexp_eatClassSetCharacter(e)) {
2338
+ var i = e.lastIntValue;
2339
+ if (e.eat(45) && this.regexp_eatClassSetCharacter(e)) {
2340
+ var s = e.lastIntValue;
2341
+ return i !== -1 && s !== -1 && i > s && e.raise("Range out of order in character class"), !0;
2342
+ }
2343
+ e.pos = t;
2344
+ }
2345
+ return !1;
2346
+ };
2347
+ f.regexp_eatClassSetOperand = function(e) {
2348
+ return this.regexp_eatClassSetCharacter(e) ? J : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2349
+ };
2350
+ f.regexp_eatNestedClass = function(e) {
2351
+ var t = e.pos;
2352
+ if (e.eat(91)) {
2353
+ var i = e.eat(94), s = this.regexp_classContents(e);
2354
+ if (e.eat(93)) return i && s === B && e.raise("Negated character class may contain strings"), s;
2355
+ e.pos = t;
2356
+ }
2357
+ if (e.eat(92)) {
2358
+ var r = this.regexp_eatCharacterClassEscape(e);
2359
+ if (r) return r;
2360
+ e.pos = t;
2361
+ }
2362
+ return null;
2363
+ };
2364
+ f.regexp_eatClassStringDisjunction = function(e) {
2365
+ var t = e.pos;
2366
+ if (e.eatChars([92, 113])) {
2367
+ if (e.eat(123)) {
2368
+ var i = this.regexp_classStringDisjunctionContents(e);
2369
+ if (e.eat(125)) return i;
2370
+ } else e.raise("Invalid escape");
2371
+ e.pos = t;
2372
+ }
2373
+ return null;
2374
+ };
2375
+ f.regexp_classStringDisjunctionContents = function(e) {
2376
+ for (var t = this.regexp_classString(e); e.eat(124); ) this.regexp_classString(e) === B && (t = B);
2377
+ return t;
2378
+ };
2379
+ f.regexp_classString = function(e) {
2380
+ for (var t = 0; this.regexp_eatClassSetCharacter(e); ) t++;
2381
+ return t === 1 ? J : B;
2382
+ };
2383
+ f.regexp_eatClassSetCharacter = function(e) {
2384
+ var t = e.pos;
2385
+ if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(98) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
2386
+ var i = e.current();
2387
+ return i < 0 || i === e.lookahead() && xs(i) || ys(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
2388
+ };
2389
+ f.regexp_eatClassSetReservedPunctuator = function(e) {
2390
+ var t = e.current();
2391
+ return gs(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2392
+ };
2393
+ f.regexp_eatClassControlLetter = function(e) {
2394
+ var t = e.current();
2395
+ return Ee(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
2396
+ };
2397
+ f.regexp_eatHexEscapeSequence = function(e) {
2398
+ var t = e.pos;
2399
+ if (e.eat(120)) {
2400
+ if (this.regexp_eatFixedHexDigits(e, 2)) return !0;
2401
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
2402
+ }
2403
+ return !1;
2404
+ };
2405
+ f.regexp_eatDecimalDigits = function(e) {
2406
+ var t = e.pos, i = 0;
2407
+ for (e.lastIntValue = 0; Ee(i = e.current()); ) e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2408
+ return e.pos !== t;
2409
+ };
2410
+ f.regexp_eatHexDigits = function(e) {
2411
+ var t = e.pos, i = 0;
2412
+ for (e.lastIntValue = 0; Jt(i = e.current()); ) e.lastIntValue = 16 * e.lastIntValue + Kt(i), e.advance();
2413
+ return e.pos !== t;
2414
+ };
2415
+ f.regexp_eatLegacyOctalEscapeSequence = function(e) {
2416
+ if (this.regexp_eatOctalDigit(e)) {
2417
+ var t = e.lastIntValue;
2418
+ if (this.regexp_eatOctalDigit(e)) {
2419
+ var i = e.lastIntValue;
2420
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
2421
+ } else e.lastIntValue = t;
2422
+ return !0;
2423
+ }
2424
+ return !1;
2425
+ };
2426
+ f.regexp_eatOctalDigit = function(e) {
2427
+ var t = e.current();
2428
+ return Ht(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
2429
+ };
2430
+ f.regexp_eatFixedHexDigits = function(e, t) {
2431
+ var i = e.pos;
2432
+ e.lastIntValue = 0;
2433
+ for (var s = 0; s < t; ++s) {
2434
+ var r = e.current();
2435
+ if (!Jt(r)) return e.pos = i, !1;
2436
+ e.lastIntValue = 16 * e.lastIntValue + Kt(r), e.advance();
2437
+ }
2438
+ return !0;
2439
+ };
2440
+ Qe = function(t) {
2441
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new be(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2442
+ }, b = A.prototype;
2443
+ b.next = function(e) {
2444
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Qe(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2445
+ };
2446
+ b.getToken = function() {
2447
+ return this.next(), new Qe(this);
2448
+ };
2449
+ typeof Symbol < "u" && (b[Symbol.iterator] = function() {
2450
+ var e = this;
2451
+ return { next: function() {
2452
+ var t = e.getToken();
2453
+ return { done: t.type === a.eof, value: t };
2454
+ } };
2455
+ });
2456
+ b.nextToken = function() {
2457
+ var e = this.curContext();
2458
+ if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(a.eof);
2459
+ if (e.override) return e.override(this);
2460
+ this.readToken(this.fullCharCodeAtPos());
2461
+ };
2462
+ b.readToken = function(e) {
2463
+ return j(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2464
+ };
2465
+ b.fullCharCodeAtPos = function() {
2466
+ var e = this.input.charCodeAt(this.pos);
2467
+ if (e <= 55295 || e >= 56320) return e;
2468
+ var t = this.input.charCodeAt(this.pos + 1);
2469
+ return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
2470
+ };
2471
+ b.skipBlockComment = function() {
2472
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2473
+ if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations) for (var s = void 0, r = t; (s = xt(this.input, r, this.pos)) > -1; ) ++this.curLine, r = this.lineStart = s;
2474
+ this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, i), t, this.pos, e, this.curPosition());
2475
+ };
2476
+ b.skipLineComment = function(e) {
2477
+ for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Y(s); ) s = this.input.charCodeAt(++this.pos);
2478
+ this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, i, this.curPosition());
2479
+ };
2480
+ b.skipSpace = function() {
2481
+ e: for (; this.pos < this.input.length; ) {
2482
+ var e = this.input.charCodeAt(this.pos);
2483
+ switch (e) {
2484
+ case 32:
2485
+ case 160:
2486
+ ++this.pos;
2487
+ break;
2488
+ case 13:
2489
+ this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
2490
+ case 10:
2491
+ case 8232:
2492
+ case 8233:
2493
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
2494
+ break;
2495
+ case 47:
2496
+ switch (this.input.charCodeAt(this.pos + 1)) {
2497
+ case 42:
2498
+ this.skipBlockComment();
2499
+ break;
2500
+ case 47:
2501
+ this.skipLineComment(2);
2502
+ break;
2503
+ default:
2504
+ break e;
2505
+ }
2506
+ break;
2507
+ default:
2508
+ if (e > 8 && e < 14 || e >= 5760 && yt.test(String.fromCharCode(e))) ++this.pos;
2509
+ else break e;
2510
+ }
2511
+ }
2512
+ };
2513
+ b.finishToken = function(e, t) {
2514
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2515
+ var i = this.type;
2516
+ this.type = e, this.value = t, this.updateContext(i);
2517
+ };
2518
+ b.readToken_dot = function() {
2519
+ var e = this.input.charCodeAt(this.pos + 1);
2520
+ if (e >= 48 && e <= 57) return this.readNumber(!0);
2521
+ var t = this.input.charCodeAt(this.pos + 2);
2522
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
2523
+ };
2524
+ b.readToken_slash = function() {
2525
+ var e = this.input.charCodeAt(this.pos + 1);
2526
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
2527
+ };
2528
+ b.readToken_mult_modulo_exp = function(e) {
2529
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
2530
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++i, s = a.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(s, i);
2531
+ };
2532
+ b.readToken_pipe_amp = function(e) {
2533
+ var t = this.input.charCodeAt(this.pos + 1);
2534
+ if (t === e) {
2535
+ if (this.options.ecmaVersion >= 12) {
2536
+ var i = this.input.charCodeAt(this.pos + 2);
2537
+ if (i === 61) return this.finishOp(a.assign, 3);
2538
+ }
2539
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
2540
+ }
2541
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
2542
+ };
2543
+ b.readToken_caret = function() {
2544
+ var e = this.input.charCodeAt(this.pos + 1);
2545
+ return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
2546
+ };
2547
+ b.readToken_plus_min = function(e) {
2548
+ var t = this.input.charCodeAt(this.pos + 1);
2549
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a.incDec, 2) : t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.plusMin, 1);
2550
+ };
2551
+ b.readToken_lt_gt = function(e) {
2552
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
2553
+ return t === e ? (i = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + i) === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(a.bitShift, i)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (i = 2), this.finishOp(a.relational, i));
2554
+ };
2555
+ b.readToken_eq_excl = function(e) {
2556
+ var t = this.input.charCodeAt(this.pos + 1);
2557
+ return t === 61 ? this.finishOp(a.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(a.arrow)) : this.finishOp(e === 61 ? a.eq : a.prefix, 1);
2558
+ };
2559
+ b.readToken_question = function() {
2560
+ var e = this.options.ecmaVersion;
2561
+ if (e >= 11) {
2562
+ var t = this.input.charCodeAt(this.pos + 1);
2563
+ if (t === 46) {
2564
+ var i = this.input.charCodeAt(this.pos + 2);
2565
+ if (i < 48 || i > 57) return this.finishOp(a.questionDot, 2);
2566
+ }
2567
+ if (t === 63) {
2568
+ if (e >= 12) {
2569
+ var s = this.input.charCodeAt(this.pos + 2);
2570
+ if (s === 61) return this.finishOp(a.assign, 3);
2571
+ }
2572
+ return this.finishOp(a.coalesce, 2);
2573
+ }
2574
+ }
2575
+ return this.finishOp(a.question, 1);
2576
+ };
2577
+ b.readToken_numberSign = function() {
2578
+ var e = this.options.ecmaVersion, t = 35;
2579
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), j(t, !0) || t === 92)) return this.finishToken(a.privateId, this.readWord1());
2580
+ this.raise(this.pos, "Unexpected character '" + q(t) + "'");
2581
+ };
2582
+ b.getTokenFromCode = function(e) {
2583
+ switch (e) {
2584
+ case 46:
2585
+ return this.readToken_dot();
2586
+ case 40:
2587
+ return ++this.pos, this.finishToken(a.parenL);
2588
+ case 41:
2589
+ return ++this.pos, this.finishToken(a.parenR);
2590
+ case 59:
2591
+ return ++this.pos, this.finishToken(a.semi);
2592
+ case 44:
2593
+ return ++this.pos, this.finishToken(a.comma);
2594
+ case 91:
2595
+ return ++this.pos, this.finishToken(a.bracketL);
2596
+ case 93:
2597
+ return ++this.pos, this.finishToken(a.bracketR);
2598
+ case 123:
2599
+ return ++this.pos, this.finishToken(a.braceL);
2600
+ case 125:
2601
+ return ++this.pos, this.finishToken(a.braceR);
2602
+ case 58:
2603
+ return ++this.pos, this.finishToken(a.colon);
2604
+ case 96:
2605
+ if (this.options.ecmaVersion < 6) break;
2606
+ return ++this.pos, this.finishToken(a.backQuote);
2607
+ case 48:
2608
+ var t = this.input.charCodeAt(this.pos + 1);
2609
+ if (t === 120 || t === 88) return this.readRadixNumber(16);
2610
+ if (this.options.ecmaVersion >= 6) {
2611
+ if (t === 111 || t === 79) return this.readRadixNumber(8);
2612
+ if (t === 98 || t === 66) return this.readRadixNumber(2);
2613
+ }
2614
+ case 49:
2615
+ case 50:
2616
+ case 51:
2617
+ case 52:
2618
+ case 53:
2619
+ case 54:
2620
+ case 55:
2621
+ case 56:
2622
+ case 57:
2623
+ return this.readNumber(!1);
2624
+ case 34:
2625
+ case 39:
2626
+ return this.readString(e);
2627
+ case 47:
2628
+ return this.readToken_slash();
2629
+ case 37:
2630
+ case 42:
2631
+ return this.readToken_mult_modulo_exp(e);
2632
+ case 124:
2633
+ case 38:
2634
+ return this.readToken_pipe_amp(e);
2635
+ case 94:
2636
+ return this.readToken_caret();
2637
+ case 43:
2638
+ case 45:
2639
+ return this.readToken_plus_min(e);
2640
+ case 60:
2641
+ case 62:
2642
+ return this.readToken_lt_gt(e);
2643
+ case 61:
2644
+ case 33:
2645
+ return this.readToken_eq_excl(e);
2646
+ case 63:
2647
+ return this.readToken_question();
2648
+ case 126:
2649
+ return this.finishOp(a.prefix, 1);
2650
+ case 35:
2651
+ return this.readToken_numberSign();
2652
+ }
2653
+ this.raise(this.pos, "Unexpected character '" + q(e) + "'");
2654
+ };
2655
+ b.finishOp = function(e, t) {
2656
+ var i = this.input.slice(this.pos, this.pos + t);
2657
+ return this.pos += t, this.finishToken(e, i);
2658
+ };
2659
+ b.readRegexp = function() {
2660
+ for (var e, t, i = this.pos; ; ) {
2661
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
2662
+ var s = this.input.charAt(this.pos);
2663
+ if (L.test(s) && this.raise(i, "Unterminated regular expression"), e) e = !1;
2664
+ else {
2665
+ if (s === "[") t = !0;
2666
+ else if (s === "]" && t) t = !1;
2667
+ else if (s === "/" && !t) break;
2668
+ e = s === "\\";
2669
+ }
2670
+ ++this.pos;
2671
+ }
2672
+ var r = this.input.slice(i, this.pos);
2673
+ ++this.pos;
2674
+ var o = this.pos, u = this.readWord1();
2675
+ this.containsEsc && this.unexpected(o);
2676
+ var p = this.regexpState || (this.regexpState = new G(this));
2677
+ p.reset(i, r, u), this.validateRegExpFlags(p), this.validateRegExpPattern(p);
2678
+ var h = null;
2679
+ try {
2680
+ h = new RegExp(r, u);
2681
+ } catch {
2682
+ }
2683
+ return this.finishToken(a.regexp, { pattern: r, flags: u, value: h });
2684
+ };
2685
+ b.readInt = function(e, t, i) {
2686
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, o = this.pos, u = 0, p = 0, h = 0, l = t ?? 1 / 0; h < l; ++h, ++this.pos) {
2687
+ var m = this.input.charCodeAt(this.pos), S = void 0;
2688
+ if (s && m === 95) {
2689
+ r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), p === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), h === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), p = m;
2690
+ continue;
2691
+ }
2692
+ if (m >= 97 ? S = m - 97 + 10 : m >= 65 ? S = m - 65 + 10 : m >= 48 && m <= 57 ? S = m - 48 : S = 1 / 0, S >= e) break;
2693
+ p = m, u = u * e + S;
2694
+ }
2695
+ return s && p === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === o || t != null && this.pos - o !== t ? null : u;
2696
+ };
2697
+ b.readRadixNumber = function(e) {
2698
+ var t = this.pos;
2699
+ this.pos += 2;
2700
+ var i = this.readInt(e);
2701
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Xt(this.input.slice(t, this.pos)), ++this.pos) : j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2702
+ };
2703
+ b.readNumber = function(e) {
2704
+ var t = this.pos;
2705
+ !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
2706
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
2707
+ i && this.strict && this.raise(t, "Invalid number");
2708
+ var s = this.input.charCodeAt(this.pos);
2709
+ if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
2710
+ var r = Xt(this.input.slice(t, this.pos));
2711
+ return ++this.pos, j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2712
+ }
2713
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2714
+ var o = vs(this.input.slice(t, this.pos), i);
2715
+ return this.finishToken(a.num, o);
2716
+ };
2717
+ b.readCodePoint = function() {
2718
+ var e = this.input.charCodeAt(this.pos), t;
2719
+ if (e === 123) {
2720
+ this.options.ecmaVersion < 6 && this.unexpected();
2721
+ var i = ++this.pos;
2722
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
2723
+ } else t = this.readHexChar(4);
2724
+ return t;
2725
+ };
2726
+ b.readString = function(e) {
2727
+ for (var t = "", i = ++this.pos; ; ) {
2728
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2729
+ var s = this.input.charCodeAt(this.pos);
2730
+ if (s === e) break;
2731
+ s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Y(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2732
+ }
2733
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
2734
+ };
2735
+ Wt = {};
2736
+ b.tryReadTemplateToken = function() {
2737
+ this.inTemplateElement = !0;
2738
+ try {
2739
+ this.readTmplToken();
2740
+ } catch (e) {
2741
+ if (e === Wt) this.readInvalidTemplateToken();
2742
+ else throw e;
2743
+ }
2744
+ this.inTemplateElement = !1;
2745
+ };
2746
+ b.invalidStringToken = function(e, t) {
2747
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Wt;
2748
+ this.raise(e, t);
2749
+ };
2750
+ b.readTmplToken = function() {
2751
+ for (var e = "", t = this.pos; ; ) {
2752
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2753
+ var i = this.input.charCodeAt(this.pos);
2754
+ if (i === 96 || i === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === a.template || this.type === a.invalidTemplate) ? i === 36 ? (this.pos += 2, this.finishToken(a.dollarBraceL)) : (++this.pos, this.finishToken(a.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(a.template, e));
2755
+ if (i === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
2756
+ else if (Y(i)) {
2757
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
2758
+ case 13:
2759
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2760
+ case 10:
2761
+ e += `
2762
+ `;
2763
+ break;
2764
+ default:
2765
+ e += String.fromCharCode(i);
2766
+ break;
2767
+ }
2768
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
2769
+ } else ++this.pos;
2770
+ }
2771
+ };
2772
+ b.readInvalidTemplateToken = function() {
2773
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2774
+ case "\\":
2775
+ ++this.pos;
2776
+ break;
2777
+ case "$":
2778
+ if (this.input[this.pos + 1] !== "{") break;
2779
+ case "`":
2780
+ return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
2781
+ case "\r":
2782
+ this.input[this.pos + 1] === `
2783
+ ` && ++this.pos;
2784
+ case `
2785
+ `:
2786
+ case "\u2028":
2787
+ case "\u2029":
2788
+ ++this.curLine, this.lineStart = this.pos + 1;
2789
+ break;
2790
+ }
2791
+ this.raise(this.start, "Unterminated template");
2792
+ };
2793
+ b.readEscapedChar = function(e) {
2794
+ var t = this.input.charCodeAt(++this.pos);
2795
+ switch (++this.pos, t) {
2796
+ case 110:
2797
+ return `
2798
+ `;
2799
+ case 114:
2800
+ return "\r";
2801
+ case 120:
2802
+ return String.fromCharCode(this.readHexChar(2));
2803
+ case 117:
2804
+ return q(this.readCodePoint());
2805
+ case 116:
2806
+ return " ";
2807
+ case 98:
2808
+ return "\b";
2809
+ case 118:
2810
+ return "\v";
2811
+ case 102:
2812
+ return "\f";
2813
+ case 13:
2814
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2815
+ case 10:
2816
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2817
+ case 56:
2818
+ case 57:
2819
+ if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e) {
2820
+ var i = this.pos - 1;
2821
+ this.invalidStringToken(i, "Invalid escape sequence in template string");
2822
+ }
2823
+ default:
2824
+ if (t >= 48 && t <= 55) {
2825
+ var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
2826
+ return r > 255 && (s = s.slice(0, -1), r = parseInt(s, 8)), this.pos += s.length - 1, t = this.input.charCodeAt(this.pos), (s !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(this.pos - 1 - s.length, e ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(r);
2827
+ }
2828
+ return Y(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
2829
+ }
2830
+ };
2831
+ b.readHexChar = function(e) {
2832
+ var t = this.pos, i = this.readInt(16, e);
2833
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
2834
+ };
2835
+ b.readWord1 = function() {
2836
+ this.containsEsc = !1;
2837
+ for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2838
+ var r = this.fullCharCodeAtPos();
2839
+ if (X(r, s)) this.pos += r <= 65535 ? 1 : 2;
2840
+ else if (r === 92) {
2841
+ this.containsEsc = !0, e += this.input.slice(i, this.pos);
2842
+ var o = this.pos;
2843
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2844
+ var u = this.readCodePoint();
2845
+ (t ? j : X)(u, s) || this.invalidStringToken(o, "Invalid Unicode escape"), e += q(u), i = this.pos;
2846
+ } else break;
2847
+ t = !1;
2848
+ }
2849
+ return e + this.input.slice(i, this.pos);
2850
+ };
2851
+ b.readWord = function() {
2852
+ var e = this.readWord1(), t = a.name;
2853
+ return this.keywords.test(e) && (t = Je[e]), this.finishToken(t, e);
2854
+ };
2855
+ bs = "8.15.0";
2856
+ A.acorn = { Parser: A, version: bs, defaultOptions: Ue, Position: ne, SourceLocation: be, getLineInfo: vt, Node: Te, TokenType: C, tokTypes: a, keywordTypes: Je, TokContext: F, tokContexts: T, isIdentifierChar: X, isIdentifierStart: j, Token: Qe, isNewLine: Y, lineBreak: L, lineBreakG: qi, nonASCIIwhitespace: yt };
2857
+ Si = ut($e(), 1);
2858
+ Ae = As;
2859
+ te = (e, t) => (i, s, ...r) => i | 1 && s == null ? void 0 : (t.call(s) ?? s[e]).apply(s, r), ks = Array.prototype.findLast ?? function(e) {
2860
+ for (let t = this.length - 1; t >= 0; t--) {
2861
+ let i = this[t];
2862
+ if (e(i, t, this)) return i;
2863
+ }
2864
+ }, ws = te("findLast", function() {
2865
+ if (Array.isArray(this)) return ks;
2866
+ }), Zt = ws;
2867
+ Is = te("at", function() {
2868
+ if (Array.isArray(this) || typeof this == "string") return Ps;
2869
+ }), ie = Is;
2870
+ se = Ns, Ls = se(["Block", "CommentBlock", "MultiLine"]), re = Ls, Rs = se(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]), ei = Rs, Ze = /* @__PURE__ */ new WeakMap();
2871
+ ti = Vs;
2872
+ et = /* @__PURE__ */ new WeakMap();
2873
+ tt = Bs;
2874
+ ii = Ds;
2875
+ si = Ms, ce = null;
2876
+ Fs = 10;
2877
+ for (let e = 0; e <= Fs; e++) le();
2878
+ ri = js, n = [["decorators", "key", "typeAnnotation", "value"], [], ["elementType"], ["expression"], ["expression", "typeAnnotation"], ["left", "right"], ["argument"], ["directives", "body"], ["label"], ["callee", "typeArguments", "arguments"], ["body"], ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ["id", "typeParameters"], ["decorators", "key", "typeParameters", "params", "returnType", "body"], ["decorators", "variance", "key", "typeAnnotation", "value"], ["name", "typeAnnotation"], ["test", "consequent", "alternate"], ["checkType", "extendsType", "trueType", "falseType"], ["value"], ["id", "body"], ["declaration", "specifiers", "source", "attributes"], ["id"], ["id", "typeParameters", "extends", "body"], ["typeAnnotation"], ["id", "typeParameters", "right"], ["body", "test"], ["members"], ["id", "init"], ["exported"], ["left", "right", "body"], ["id", "typeParameters", "params", "predicate", "returnType", "body"], ["id", "params", "body", "typeParameters", "returnType"], ["key", "value"], ["local"], ["objectType", "indexType"], ["typeParameter"], ["types"], ["node"], ["object", "property"], ["argument", "cases"], ["pattern", "body", "guard"], ["literal"], ["decorators", "key", "value"], ["expressions"], ["qualification", "id"], ["decorators", "key", "typeAnnotation"], ["typeParameters", "params", "returnType"], ["expression", "typeArguments"], ["params"], ["parameterName", "typeAnnotation"]], ai = { AccessorProperty: n[0], AnyTypeAnnotation: n[1], ArgumentPlaceholder: n[1], ArrayExpression: ["elements"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrayTypeAnnotation: n[2], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], AsConstExpression: n[3], AsExpression: n[4], AssignmentExpression: n[5], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], AwaitExpression: n[6], BigIntLiteral: n[1], BigIntLiteralTypeAnnotation: n[1], BigIntTypeAnnotation: n[1], BinaryExpression: n[5], BindExpression: ["object", "callee"], BlockStatement: n[7], BooleanLiteral: n[1], BooleanLiteralTypeAnnotation: n[1], BooleanTypeAnnotation: n[1], BreakStatement: n[8], CallExpression: n[9], CatchClause: ["param", "body"], ChainExpression: n[3], ClassAccessorProperty: n[0], ClassBody: n[10], ClassDeclaration: n[11], ClassExpression: n[11], ClassImplements: n[12], ClassMethod: n[13], ClassPrivateMethod: n[13], ClassPrivateProperty: n[14], ClassProperty: n[14], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: n[15], ConditionalExpression: n[16], ConditionalTypeAnnotation: n[17], ContinueStatement: n[8], DebuggerStatement: n[1], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclaredPredicate: n[18], DeclareEnum: n[19], DeclareExportAllDeclaration: ["source", "attributes"], DeclareExportDeclaration: n[20], DeclareFunction: ["id", "predicate"], DeclareHook: n[21], DeclareInterface: n[22], DeclareModule: n[19], DeclareModuleExports: n[23], DeclareNamespace: n[19], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareTypeAlias: n[24], DeclareVariable: n[21], Decorator: n[3], Directive: n[18], DirectiveLiteral: n[1], DoExpression: n[10], DoWhileStatement: n[25], EmptyStatement: n[1], EmptyTypeAnnotation: n[1], EnumBigIntBody: n[26], EnumBigIntMember: n[27], EnumBooleanBody: n[26], EnumBooleanMember: n[27], EnumDeclaration: n[19], EnumDefaultedMember: n[21], EnumNumberBody: n[26], EnumNumberMember: n[27], EnumStringBody: n[26], EnumStringMember: n[27], EnumSymbolBody: n[26], ExistsTypeAnnotation: n[1], ExperimentalRestProperty: n[6], ExperimentalSpreadProperty: n[6], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportDefaultSpecifier: n[28], ExportNamedDeclaration: n[20], ExportNamespaceSpecifier: n[28], ExportSpecifier: ["local", "exported"], ExpressionStatement: n[3], File: ["program"], ForInStatement: n[29], ForOfStatement: n[29], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: n[30], FunctionExpression: n[30], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: n[15], GenericTypeAnnotation: n[12], HookDeclaration: n[31], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: n[16], ImportAttribute: n[32], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: n[33], ImportExpression: ["source", "options"], ImportNamespaceSpecifier: n[33], ImportSpecifier: ["imported", "local"], IndexedAccessType: n[34], InferredPredicate: n[1], InferTypeAnnotation: n[35], InterfaceDeclaration: n[22], InterfaceExtends: n[12], InterfaceTypeAnnotation: ["extends", "body"], InterpreterDirective: n[1], IntersectionTypeAnnotation: n[36], JsExpressionRoot: n[37], JsonRoot: n[37], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXClosingFragment: n[1], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: n[1], JSXExpressionContainer: n[3], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXIdentifier: n[1], JSXMemberExpression: n[38], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXOpeningFragment: n[1], JSXSpreadAttribute: n[6], JSXSpreadChild: n[3], JSXText: n[1], KeyofTypeAnnotation: n[6], LabeledStatement: ["label", "body"], Literal: n[1], LogicalExpression: n[5], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: n[21], MatchExpression: n[39], MatchExpressionCase: n[40], MatchIdentifierPattern: n[21], MatchLiteralPattern: n[41], MatchMemberPattern: ["base", "property"], MatchObjectPattern: ["properties", "rest"], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: n[6], MatchStatement: n[39], MatchStatementCase: n[40], MatchUnaryPattern: n[6], MatchWildcardPattern: n[1], MemberExpression: n[38], MetaProperty: ["meta", "property"], MethodDefinition: n[42], MixedTypeAnnotation: n[1], ModuleExpression: n[10], NeverTypeAnnotation: n[1], NewExpression: n[9], NGChainedExpression: n[43], NGEmptyExpression: n[1], NGMicrosyntax: n[10], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: n[1], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: n[32], NGPipeExpression: ["left", "right", "arguments"], NGRoot: n[37], NullableTypeAnnotation: n[23], NullLiteral: n[1], NullLiteralTypeAnnotation: n[1], NumberLiteralTypeAnnotation: n[1], NumberTypeAnnotation: n[1], NumericLiteral: n[1], ObjectExpression: ["properties"], ObjectMethod: n[13], ObjectPattern: ["decorators", "properties", "typeAnnotation"], ObjectProperty: n[42], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeCallProperty: n[18], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: n[6], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], OptionalCallExpression: n[9], OptionalIndexedAccessType: n[34], OptionalMemberExpression: n[38], ParenthesizedExpression: n[3], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: n[1], PipelineTopicExpression: n[3], Placeholder: n[1], PrivateIdentifier: n[1], PrivateName: n[21], Program: n[7], Property: n[32], PropertyDefinition: n[14], QualifiedTypeIdentifier: n[44], QualifiedTypeofIdentifier: n[44], RegExpLiteral: n[1], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: n[6], SatisfiesExpression: n[4], SequenceExpression: n[43], SpreadElement: n[6], StaticBlock: n[10], StringLiteral: n[1], StringLiteralTypeAnnotation: n[1], StringTypeAnnotation: n[1], Super: n[1], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], SymbolTypeAnnotation: n[1], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: n[1], TemplateLiteral: ["quasis", "expressions"], ThisExpression: n[1], ThisTypeAnnotation: n[1], ThrowStatement: n[6], TopicReference: n[1], TryStatement: ["block", "handler", "finalizer"], TSAbstractAccessorProperty: n[45], TSAbstractKeyword: n[1], TSAbstractMethodDefinition: n[32], TSAbstractPropertyDefinition: n[45], TSAnyKeyword: n[1], TSArrayType: n[2], TSAsExpression: n[4], TSAsyncKeyword: n[1], TSBigIntKeyword: n[1], TSBooleanKeyword: n[1], TSCallSignatureDeclaration: n[46], TSClassImplements: n[47], TSConditionalType: n[17], TSConstructorType: n[46], TSConstructSignatureDeclaration: n[46], TSDeclareFunction: n[31], TSDeclareKeyword: n[1], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: n[26], TSEnumDeclaration: n[19], TSEnumMember: ["id", "initializer"], TSExportAssignment: n[3], TSExportKeyword: n[1], TSExternalModuleReference: n[3], TSFunctionType: n[46], TSImportEqualsDeclaration: ["id", "moduleReference"], TSImportType: ["options", "qualifier", "typeArguments", "source"], TSIndexedAccessType: n[34], TSIndexSignature: ["parameters", "typeAnnotation"], TSInferType: n[35], TSInstantiationExpression: n[47], TSInterfaceBody: n[10], TSInterfaceDeclaration: n[22], TSInterfaceHeritage: n[47], TSIntersectionType: n[36], TSIntrinsicKeyword: n[1], TSJSDocAllType: n[1], TSJSDocNonNullableType: n[23], TSJSDocNullableType: n[23], TSJSDocUnknownType: n[1], TSLiteralType: n[41], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "params", "returnType"], TSModuleBlock: n[10], TSModuleDeclaration: n[19], TSNamedTupleMember: ["label", "elementType"], TSNamespaceExportDeclaration: n[21], TSNeverKeyword: n[1], TSNonNullExpression: n[3], TSNullKeyword: n[1], TSNumberKeyword: n[1], TSObjectKeyword: n[1], TSOptionalType: n[23], TSParameterProperty: ["parameter", "decorators"], TSParenthesizedType: n[23], TSPrivateKeyword: n[1], TSPropertySignature: ["key", "typeAnnotation"], TSProtectedKeyword: n[1], TSPublicKeyword: n[1], TSQualifiedName: n[5], TSReadonlyKeyword: n[1], TSRestType: n[23], TSSatisfiesExpression: n[4], TSStaticKeyword: n[1], TSStringKeyword: n[1], TSSymbolKeyword: n[1], TSTemplateLiteralType: ["quasis", "types"], TSThisType: n[1], TSTupleType: ["elementTypes"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSTypeAnnotation: n[23], TSTypeAssertion: n[4], TSTypeLiteral: n[26], TSTypeOperator: n[23], TSTypeParameter: ["name", "constraint", "default"], TSTypeParameterDeclaration: n[48], TSTypeParameterInstantiation: n[48], TSTypePredicate: n[49], TSTypeQuery: ["exprName", "typeArguments"], TSTypeReference: ["typeName", "typeArguments"], TSUndefinedKeyword: n[1], TSUnionType: n[36], TSUnknownKeyword: n[1], TSVoidKeyword: n[1], TupleTypeAnnotation: ["types", "elementTypes"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeAlias: n[24], TypeAnnotation: n[23], TypeCastExpression: n[4], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeOperator: n[23], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: n[48], TypeParameterInstantiation: n[48], TypePredicate: n[49], UnaryExpression: n[6], UndefinedTypeAnnotation: n[1], UnionTypeAnnotation: n[36], UnknownTypeAnnotation: n[1], UpdateExpression: n[6], V8IntrinsicIdentifier: n[1], VariableDeclaration: ["declarations"], VariableDeclarator: n[27], Variance: n[1], VoidPattern: n[1], VoidTypeAnnotation: n[1], WhileStatement: n[25], WithStatement: ["object", "body"], YieldExpression: n[6] }, Us = ri(ai), ni = Us;
2879
+ oi = we, aa = se(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
2880
+ Pe = Gs, qs = String.prototype.replaceAll ?? function(e, t) {
2881
+ return e.global ? this.replace(e, t) : this.split(e).join(t);
2882
+ }, Js = te("replaceAll", function() {
2883
+ if (typeof this == "string") return qs;
2884
+ }), fe = Js, Ks = /\*\/$/, Hs = /^\/\*\*?/, Xs = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, Ws = /(^|\s+)\/\/([^\n\r]*)/g, hi = /^(\r?\n)+/, zs = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, pi = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, Qs = /(\r?\n|^) *\* ?/g, Ys = [];
2885
+ fi = ["noformat", "noprettier"], di = ["format", "prettier"];
2886
+ mi = $s;
2887
+ Ie = Zs, Ne = "module", vi = "script", Le = "commonjs", Re = [Ne, Le];
2888
+ er = { ecmaVersion: "latest", allowReserved: !0, allowReturnOutsideFunction: !0, allowSuperOutsideMethod: !0, checkPrivateFields: !1, locations: !1, ranges: !0, preserveParens: !0 };
2889
+ ir = () => (bi ?? (bi = A.extend((0, Si.default)())), bi);
2890
+ _i = Ie(rr), Ai = ut($e(), 1), P = { Boolean: "Boolean", EOF: "<end>", Identifier: "Identifier", PrivateIdentifier: "PrivateIdentifier", Keyword: "Keyword", Null: "Null", Numeric: "Numeric", Punctuator: "Punctuator", String: "String", RegularExpression: "RegularExpression", Template: "Template", JSXIdentifier: "JSXIdentifier", JSXText: "JSXText" };
2891
+ rt.prototype = { constructor: rt, translate(e, t) {
2892
+ let i = e.type, s = this._acornTokTypes;
2893
+ if (i === s.name) e.type = P.Identifier, e.value === "static" && (e.type = P.Keyword), t.ecmaVersion > 5 && (e.value === "yield" || e.value === "let") && (e.type = P.Keyword);
2894
+ else if (i === s.privateId) e.type = P.PrivateIdentifier;
2895
+ else if (i === s.semi || i === s.comma || i === s.parenL || i === s.parenR || i === s.braceL || i === s.braceR || i === s.dot || i === s.bracketL || i === s.colon || i === s.question || i === s.bracketR || i === s.ellipsis || i === s.arrow || i === s.jsxTagStart || i === s.incDec || i === s.starstar || i === s.jsxTagEnd || i === s.prefix || i === s.questionDot || i.binop && !i.keyword || i.isAssign) e.type = P.Punctuator, e.value = this._code.slice(e.start, e.end);
2896
+ else if (i === s.jsxName) e.type = P.JSXIdentifier;
2897
+ else if (i.label === "jsxText" || i === s.jsxAttrValueToken) e.type = P.JSXText;
2898
+ else if (i.keyword) i.keyword === "true" || i.keyword === "false" ? e.type = P.Boolean : i.keyword === "null" ? e.type = P.Null : e.type = P.Keyword;
2899
+ else if (i === s.num) e.type = P.Numeric, e.value = this._code.slice(e.start, e.end);
2900
+ else if (i === s.string) t.jsxAttrValueToken ? (t.jsxAttrValueToken = !1, e.type = P.JSXText) : e.type = P.String, e.value = this._code.slice(e.start, e.end);
2901
+ else if (i === s.regexp) {
2902
+ e.type = P.RegularExpression;
2903
+ let r = e.value;
2904
+ e.regex = { flags: r.flags, pattern: r.pattern }, e.value = `/${r.pattern}/${r.flags}`;
2905
+ }
2906
+ return e;
2907
+ }, onToken(e, t) {
2908
+ let i = this._acornTokTypes, s = t.tokens, r = this._tokens, o = () => {
2909
+ s.push(ar(this._tokens, this._code)), this._tokens = [];
2910
+ };
2911
+ if (e.type === i.eof) {
2912
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t));
2913
+ return;
2914
+ }
2915
+ if (e.type === i.backQuote) {
2916
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), r.push(e), r.length > 1 && o();
2917
+ return;
2918
+ }
2919
+ if (e.type === i.dollarBraceL) {
2920
+ r.push(e), o();
2921
+ return;
2922
+ }
2923
+ if (e.type === i.braceR) {
2924
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = e;
2925
+ return;
2926
+ }
2927
+ if (e.type === i.template || e.type === i.invalidTemplate) {
2928
+ this._curlyBrace && (r.push(this._curlyBrace), this._curlyBrace = null), r.push(e);
2929
+ return;
2930
+ }
2931
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), s.push(this.translate(e, t));
2932
+ } };
2933
+ Ci = rt, Ti = [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
2934
+ Q = Symbol("espree's internal state"), at = Symbol("espree's esprimaFinishNode");
2935
+ nt = () => (e) => {
2936
+ let t = Object.assign({}, e.acorn.tokTypes);
2937
+ return e.acornJsx && Object.assign(t, e.acornJsx.tokTypes), class extends e {
2938
+ constructor(s, r) {
2939
+ (typeof s != "object" || s === null) && (s = {}), typeof r != "string" && !(r instanceof String) && (r = String(r));
2940
+ let o = s.sourceType, u = Ei(s), p = u.ecmaFeatures || {}, h = u.tokens === !0 ? new Ci(t, r) : null, l = { originalSourceType: o || u.sourceType, tokens: h ? [] : null, comments: u.comment === !0 ? [] : null, impliedStrict: p.impliedStrict === !0 && u.ecmaVersion >= 5, ecmaVersion: u.ecmaVersion, jsxAttrValueToken: !1, lastToken: null, templateElements: [] };
2941
+ super({ ecmaVersion: u.ecmaVersion, sourceType: u.sourceType, ranges: u.ranges, locations: u.locations, allowReserved: u.allowReserved, allowReturnOutsideFunction: u.allowReturnOutsideFunction, onToken(m) {
2942
+ h && h.onToken(m, l), m.type !== t.eof && (l.lastToken = m);
2943
+ }, onComment(m, S, E, c, x, y) {
2944
+ if (l.comments) {
2945
+ let v = hr(m, S, E, c, x, y, r);
2946
+ l.comments.push(v);
2947
+ }
2948
+ } }, r), this[Q] = l;
2949
+ }
2950
+ tokenize() {
2951
+ do
2952
+ this.next();
2953
+ while (this.type !== t.eof);
2954
+ this.next();
2955
+ let s = this[Q], r = s.tokens;
2956
+ return s.comments && (r.comments = s.comments), r;
2957
+ }
2958
+ finishNode(...s) {
2959
+ let r = super.finishNode(...s);
2960
+ return this[at](r);
2961
+ }
2962
+ finishNodeAt(...s) {
2963
+ let r = super.finishNodeAt(...s);
2964
+ return this[at](r);
2965
+ }
2966
+ parse() {
2967
+ let s = this[Q], r = super.parse();
2968
+ return r.sourceType = s.originalSourceType, s.comments && (r.comments = s.comments), s.tokens && (r.tokens = s.tokens), this[Q].templateElements.forEach((o) => {
2969
+ let p = o.tail ? 1 : 2;
2970
+ o.start += -1, o.end += p, o.range && (o.range[0] += -1, o.range[1] += p), o.loc && (o.loc.start.column += -1, o.loc.end.column += p);
2971
+ }), r;
2972
+ }
2973
+ parseTopLevel(s) {
2974
+ return this[Q].impliedStrict && (this.strict = !0), super.parseTopLevel(s);
2975
+ }
2976
+ raise(s, r) {
2977
+ let o = e.acorn.getLineInfo(this.input, s), u = new SyntaxError(r);
2978
+ throw u.index = s, u.lineNumber = o.line, u.column = o.column + 1, u;
2979
+ }
2980
+ raiseRecoverable(s, r) {
2981
+ this.raise(s, r);
2982
+ }
2983
+ unexpected(s) {
2984
+ let r = "Unexpected token";
2985
+ if (s != null) {
2986
+ if (this.pos = s, this.options.locations) for (; this.pos < this.lineStart; ) this.lineStart = this.input.lastIndexOf(`
2987
+ `, this.lineStart - 2) + 1, --this.curLine;
2988
+ this.nextToken();
2989
+ }
2990
+ this.end > this.start && (r += ` ${this.input.slice(this.start, this.end)}`), this.raise(this.start, r);
2991
+ }
2992
+ jsx_readString(s) {
2993
+ let r = super.jsx_readString(s);
2994
+ return this.type === t.string && (this[Q].jsxAttrValueToken = !0), r;
2995
+ }
2996
+ [at](s) {
2997
+ return s.type === "TemplateElement" && this[Q].templateElements.push(s), s.type.includes("Function") && !s.generator && (s.generator = !1), s;
2998
+ }
2999
+ };
3000
+ }, pr = { _regular: null, _jsx: null, get regular() {
3001
+ return this._regular === null && (this._regular = A.extend(nt())), this._regular;
3002
+ }, get jsx() {
3003
+ return this._jsx === null && (this._jsx = A.extend((0, Ai.default)(), nt())), this._jsx;
3004
+ }, get(e) {
3005
+ return e && e.ecmaFeatures && e.ecmaFeatures.jsx ? this.jsx : this.regular;
3006
+ } };
3007
+ cr = { ecmaVersion: "latest", range: !0, loc: !1, comment: !0, tokens: !1, ecmaFeatures: { jsx: !0, impliedStrict: !1 } };
3008
+ wi = Ie(fr), dr = { acorn: _i, espree: wi };
3009
+ }
3010
+ });
3011
+ init_acorn();
3012
+ export {
3013
+ Pi as default,
3014
+ dr as parsers
3015
+ };
3016
+ //# sourceMappingURL=acorn-45LE5Z2A.js.map