@lingo.dev/_compiler 0.7.17 → 0.8.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 (39) hide show
  1. package/build/acorn-GCP5ZV2A.mjs +3152 -0
  2. package/build/acorn-QFXI4BEA.cjs +3152 -0
  3. package/build/angular-JQSQXFBY.mjs +2937 -0
  4. package/build/angular-OXTGJOFJ.cjs +2937 -0
  5. package/build/babel-EJ7OIZP4.cjs +7246 -0
  6. package/build/babel-R5G642DR.mjs +7246 -0
  7. package/build/chunk-6BWS3CLP.mjs +16 -0
  8. package/build/chunk-AKFJBAG4.cjs +21 -0
  9. package/build/chunk-K3VLB5BY.mjs +22598 -0
  10. package/build/chunk-NMKWLVJK.cjs +22599 -0
  11. package/build/estree-NGS2AYBH.cjs +4388 -0
  12. package/build/estree-XLH46TSP.mjs +4388 -0
  13. package/build/flow-DHPXOK5S.mjs +27251 -0
  14. package/build/flow-RDDDCZAV.cjs +27251 -0
  15. package/build/glimmer-CAMUE4OK.cjs +2823 -0
  16. package/build/glimmer-E3TJQSQ4.mjs +2823 -0
  17. package/build/graphql-22VX22UI.mjs +1257 -0
  18. package/build/graphql-YJNPH5D2.cjs +1257 -0
  19. package/build/html-TYMOOA3H.cjs +2792 -0
  20. package/build/html-ZAWF5C3B.mjs +2792 -0
  21. package/build/index.cjs +67 -60
  22. package/build/index.d.cts +1 -1
  23. package/build/index.mjs +47 -38
  24. package/build/lingo-turbopack-loader.cjs +4 -5
  25. package/build/lingo-turbopack-loader.d.cts +1 -1
  26. package/build/lingo-turbopack-loader.mjs +2 -1
  27. package/build/markdown-EW4GGIPV.cjs +3536 -0
  28. package/build/markdown-WJTZKU3V.mjs +3536 -0
  29. package/build/meriyah-FBYDJ6EA.mjs +2631 -0
  30. package/build/meriyah-OWUHWYCU.cjs +2631 -0
  31. package/build/postcss-3TJJTQXP.mjs +5083 -0
  32. package/build/postcss-MQS25GNZ.cjs +5083 -0
  33. package/build/typescript-FJLY3MEC.mjs +13205 -0
  34. package/build/typescript-Z5DYTVQY.cjs +13205 -0
  35. package/build/yaml-FHNA2CVI.cjs +4222 -0
  36. package/build/yaml-MMD4LQP5.mjs +4222 -0
  37. package/package.json +41 -34
  38. package/build/chunk-COKHINWO.mjs +0 -2743
  39. package/build/chunk-TMPC4O5V.cjs +0 -2743
@@ -0,0 +1,3152 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('./chunk-AKFJBAG4.cjs');
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/acorn.mjs
4
+ var wi = Object.create;
5
+ var Le = Object.defineProperty;
6
+ var Pi = Object.getOwnPropertyDescriptor;
7
+ var Ii = Object.getOwnPropertyNames;
8
+ var Ni = Object.getPrototypeOf;
9
+ var Li = Object.prototype.hasOwnProperty;
10
+ var nt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
11
+ var Vi = (e, t) => {
12
+ for (var i in t) Le(e, i, { get: t[i], enumerable: true });
13
+ };
14
+ var Ri = (e, t, i, s) => {
15
+ if (t && typeof t == "object" || typeof t == "function") for (let r of Ii(t)) !Li.call(e, r) && r !== i && Le(e, r, { get: () => t[r], enumerable: !(s = Pi(t, r)) || s.enumerable });
16
+ return e;
17
+ };
18
+ var ot = (e, t, i) => (i = e != null ? wi(Ni(e)) : {}, Ri(t || !e || !e.__esModule ? Le(i, "default", { value: e, enumerable: true }) : i, e));
19
+ var zt = nt((fr, Xt) => {
20
+ Xt.exports = {};
21
+ });
22
+ var Xe = nt((dr, We) => {
23
+ "use strict";
24
+ var bs = zt(), Ss = /^[\da-fA-F]+$/, _s = /^\d+$/, Qt = /* @__PURE__ */ new WeakMap();
25
+ function Yt(e) {
26
+ e = e.Parser.acorn || e;
27
+ let t = Qt.get(e);
28
+ if (!t) {
29
+ let i = e.tokTypes, s = e.TokContext, r = e.TokenType, n = new s("<tag", false), o = new s("</tag", false), p = new s("<tag>...</tag>", true, true), u = { tc_oTag: n, tc_cTag: o, tc_expr: p }, c = { jsxName: new r("jsxName"), jsxText: new r("jsxText", { beforeExpr: true }), jsxTagStart: new r("jsxTagStart", { startsExpr: true }), jsxTagEnd: new r("jsxTagEnd") };
30
+ c.jsxTagStart.updateContext = function() {
31
+ this.context.push(p), this.context.push(n), this.exprAllowed = false;
32
+ }, c.jsxTagEnd.updateContext = function(f) {
33
+ let v = this.context.pop();
34
+ v === n && f === i.slash || v === o ? (this.context.pop(), this.exprAllowed = this.curContext() === p) : this.exprAllowed = true;
35
+ }, t = { tokContexts: u, tokTypes: c }, Qt.set(e, t);
36
+ }
37
+ return t;
38
+ }
39
+ function pe(e) {
40
+ if (!e) return e;
41
+ if (e.type === "JSXIdentifier") return e.name;
42
+ if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name;
43
+ if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property);
44
+ }
45
+ We.exports = function(e) {
46
+ return e = e || {}, function(t) {
47
+ return Ts({ allowNamespaces: e.allowNamespaces !== false, allowNamespacedObjects: !!e.allowNamespacedObjects }, t);
48
+ };
49
+ };
50
+ Object.defineProperty(We.exports, "tokTypes", { get: function() {
51
+ return Yt(void 0).tokTypes;
52
+ }, configurable: true, enumerable: true });
53
+ function Ts(e, t) {
54
+ let i = t.acorn || void 0, s = Yt(i), r = i.tokTypes, n = s.tokTypes, o = i.tokContexts, p = s.tokContexts.tc_oTag, u = s.tokContexts.tc_cTag, c = s.tokContexts.tc_expr, f = i.isNewLine, v = i.isIdentifierStart, T = i.isIdentifierChar;
55
+ return class extends t {
56
+ static get acornJsx() {
57
+ return s;
58
+ }
59
+ jsx_readToken() {
60
+ let h = "", m = this.pos;
61
+ for (; ; ) {
62
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
63
+ let x = this.input.charCodeAt(this.pos);
64
+ switch (x) {
65
+ case 60:
66
+ case 123:
67
+ return this.pos === this.start ? x === 60 && this.exprAllowed ? (++this.pos, this.finishToken(n.jsxTagStart)) : this.getTokenFromCode(x) : (h += this.input.slice(m, this.pos), this.finishToken(n.jsxText, h));
68
+ case 38:
69
+ h += this.input.slice(m, this.pos), h += this.jsx_readEntity(), m = this.pos;
70
+ break;
71
+ case 62:
72
+ case 125:
73
+ this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (x === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.input[this.pos] + '"}`?');
74
+ default:
75
+ f(x) ? (h += this.input.slice(m, this.pos), h += this.jsx_readNewLine(true), m = this.pos) : ++this.pos;
76
+ }
77
+ }
78
+ }
79
+ jsx_readNewLine(h) {
80
+ let m = this.input.charCodeAt(this.pos), x;
81
+ return ++this.pos, m === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, x = h ? `
82
+ ` : `\r
83
+ `) : x = String.fromCharCode(m), this.options.locations && (++this.curLine, this.lineStart = this.pos), x;
84
+ }
85
+ jsx_readString(h) {
86
+ let m = "", x = ++this.pos;
87
+ for (; ; ) {
88
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
89
+ let g = this.input.charCodeAt(this.pos);
90
+ if (g === h) break;
91
+ g === 38 ? (m += this.input.slice(x, this.pos), m += this.jsx_readEntity(), x = this.pos) : f(g) ? (m += this.input.slice(x, this.pos), m += this.jsx_readNewLine(false), x = this.pos) : ++this.pos;
92
+ }
93
+ return m += this.input.slice(x, this.pos++), this.finishToken(r.string, m);
94
+ }
95
+ jsx_readEntity() {
96
+ let h = "", m = 0, x, g = this.input[this.pos];
97
+ g !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
98
+ let N = ++this.pos;
99
+ for (; this.pos < this.input.length && m++ < 10; ) {
100
+ if (g = this.input[this.pos++], g === ";") {
101
+ h[0] === "#" ? h[1] === "x" ? (h = h.substr(2), Ss.test(h) && (x = String.fromCharCode(parseInt(h, 16)))) : (h = h.substr(1), _s.test(h) && (x = String.fromCharCode(parseInt(h, 10)))) : x = bs[h];
102
+ break;
103
+ }
104
+ h += g;
105
+ }
106
+ return x || (this.pos = N, "&");
107
+ }
108
+ jsx_readWord() {
109
+ let h, m = this.pos;
110
+ do
111
+ h = this.input.charCodeAt(++this.pos);
112
+ while (T(h) || h === 45);
113
+ return this.finishToken(n.jsxName, this.input.slice(m, this.pos));
114
+ }
115
+ jsx_parseIdentifier() {
116
+ let h = this.startNode();
117
+ return this.type === n.jsxName ? h.name = this.value : this.type.keyword ? h.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(h, "JSXIdentifier");
118
+ }
119
+ jsx_parseNamespacedName() {
120
+ let h = this.start, m = this.startLoc, x = this.jsx_parseIdentifier();
121
+ if (!e.allowNamespaces || !this.eat(r.colon)) return x;
122
+ var g = this.startNodeAt(h, m);
123
+ return g.namespace = x, g.name = this.jsx_parseIdentifier(), this.finishNode(g, "JSXNamespacedName");
124
+ }
125
+ jsx_parseElementName() {
126
+ if (this.type === n.jsxTagEnd) return "";
127
+ let h = this.start, m = this.startLoc, x = this.jsx_parseNamespacedName();
128
+ for (this.type === r.dot && x.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(r.dot); ) {
129
+ let g = this.startNodeAt(h, m);
130
+ g.object = x, g.property = this.jsx_parseIdentifier(), x = this.finishNode(g, "JSXMemberExpression");
131
+ }
132
+ return x;
133
+ }
134
+ jsx_parseAttributeValue() {
135
+ switch (this.type) {
136
+ case r.braceL:
137
+ let h = this.jsx_parseExpressionContainer();
138
+ return h.expression.type === "JSXEmptyExpression" && this.raise(h.start, "JSX attributes must only be assigned a non-empty expression"), h;
139
+ case n.jsxTagStart:
140
+ case r.string:
141
+ return this.parseExprAtom();
142
+ default:
143
+ this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
144
+ }
145
+ }
146
+ jsx_parseEmptyExpression() {
147
+ let h = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
148
+ return this.finishNodeAt(h, "JSXEmptyExpression", this.start, this.startLoc);
149
+ }
150
+ jsx_parseExpressionContainer() {
151
+ let h = this.startNode();
152
+ return this.next(), h.expression = this.type === r.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(r.braceR), this.finishNode(h, "JSXExpressionContainer");
153
+ }
154
+ jsx_parseAttribute() {
155
+ let h = this.startNode();
156
+ return this.eat(r.braceL) ? (this.expect(r.ellipsis), h.argument = this.parseMaybeAssign(), this.expect(r.braceR), this.finishNode(h, "JSXSpreadAttribute")) : (h.name = this.jsx_parseNamespacedName(), h.value = this.eat(r.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(h, "JSXAttribute"));
157
+ }
158
+ jsx_parseOpeningElementAt(h, m) {
159
+ let x = this.startNodeAt(h, m);
160
+ x.attributes = [];
161
+ let g = this.jsx_parseElementName();
162
+ for (g && (x.name = g); this.type !== r.slash && this.type !== n.jsxTagEnd; ) x.attributes.push(this.jsx_parseAttribute());
163
+ return x.selfClosing = this.eat(r.slash), this.expect(n.jsxTagEnd), this.finishNode(x, g ? "JSXOpeningElement" : "JSXOpeningFragment");
164
+ }
165
+ jsx_parseClosingElementAt(h, m) {
166
+ let x = this.startNodeAt(h, m), g = this.jsx_parseElementName();
167
+ return g && (x.name = g), this.expect(n.jsxTagEnd), this.finishNode(x, g ? "JSXClosingElement" : "JSXClosingFragment");
168
+ }
169
+ jsx_parseElementAt(h, m) {
170
+ let x = this.startNodeAt(h, m), g = [], N = this.jsx_parseOpeningElementAt(h, m), le = null;
171
+ if (!N.selfClosing) {
172
+ e: for (; ; ) switch (this.type) {
173
+ case n.jsxTagStart:
174
+ if (h = this.start, m = this.startLoc, this.next(), this.eat(r.slash)) {
175
+ le = this.jsx_parseClosingElementAt(h, m);
176
+ break e;
177
+ }
178
+ g.push(this.jsx_parseElementAt(h, m));
179
+ break;
180
+ case n.jsxText:
181
+ g.push(this.parseExprAtom());
182
+ break;
183
+ case r.braceL:
184
+ g.push(this.jsx_parseExpressionContainer());
185
+ break;
186
+ default:
187
+ this.unexpected();
188
+ }
189
+ pe(le.name) !== pe(N.name) && this.raise(le.start, "Expected corresponding JSX closing tag for <" + pe(N.name) + ">");
190
+ }
191
+ let Ne = N.name ? "Element" : "Fragment";
192
+ return x["opening" + Ne] = N, x["closing" + Ne] = le, x.children = g, this.type === r.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(x, "JSX" + Ne);
193
+ }
194
+ jsx_parseText() {
195
+ let h = this.parseLiteral(this.value);
196
+ return h.type = "JSXText", h;
197
+ }
198
+ jsx_parseElement() {
199
+ let h = this.start, m = this.startLoc;
200
+ return this.next(), this.jsx_parseElementAt(h, m);
201
+ }
202
+ parseExprAtom(h) {
203
+ return this.type === n.jsxText ? this.jsx_parseText() : this.type === n.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(h);
204
+ }
205
+ readToken(h) {
206
+ let m = this.curContext();
207
+ if (m === c) return this.jsx_readToken();
208
+ if (m === p || m === u) {
209
+ if (v(h)) return this.jsx_readWord();
210
+ if (h == 62) return ++this.pos, this.finishToken(n.jsxTagEnd);
211
+ if ((h === 34 || h === 39) && m == p) return this.jsx_readString(h);
212
+ }
213
+ return h === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(n.jsxTagStart)) : super.readToken(h);
214
+ }
215
+ updateContext(h) {
216
+ if (this.type == r.braceL) {
217
+ var m = this.curContext();
218
+ m == p ? this.context.push(o.b_expr) : m == c ? this.context.push(o.b_tmpl) : super.updateContext(h), this.exprAllowed = true;
219
+ } else if (this.type === r.slash && h === n.jsxTagStart) this.context.length -= 2, this.context.push(u), this.exprAllowed = false;
220
+ else return super.updateContext(h);
221
+ }
222
+ };
223
+ }
224
+ });
225
+ var at = {};
226
+ Vi(at, { parsers: () => cr });
227
+ var Oi = [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];
228
+ var ft = [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];
229
+ var Bi = "\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";
230
+ var dt = "\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";
231
+ var Ve = { 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" };
232
+ var Re = "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";
233
+ var Di = { 5: Re, "5module": Re + " export import", 6: Re + " const class extends export import super" };
234
+ var Fi = /^in(stanceof)?$/;
235
+ var Mi = new RegExp("[" + dt + "]");
236
+ var ji = new RegExp("[" + dt + Bi + "]");
237
+ function Be(e, t) {
238
+ for (var i = 65536, s = 0; s < t.length; s += 2) {
239
+ if (i += t[s], i > e) return false;
240
+ if (i += t[s + 1], i >= e) return true;
241
+ }
242
+ return false;
243
+ }
244
+ function M(e, t) {
245
+ return e < 65 ? e === 36 : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && Mi.test(String.fromCharCode(e)) : t === false ? false : Be(e, ft);
246
+ }
247
+ function K(e, t) {
248
+ return e < 48 ? e === 36 : e < 58 ? true : e < 65 ? false : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && ji.test(String.fromCharCode(e)) : t === false ? false : Be(e, ft) || Be(e, Oi);
249
+ }
250
+ var _ = function(t, i) {
251
+ 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;
252
+ };
253
+ function R(e, t) {
254
+ return new _(e, { beforeExpr: true, binop: t });
255
+ }
256
+ var O = { beforeExpr: true };
257
+ var L = { startsExpr: true };
258
+ var je = {};
259
+ function S(e, t) {
260
+ return t === void 0 && (t = {}), t.keyword = e, je[e] = new _(e, t);
261
+ }
262
+ var a = { num: new _("num", L), regexp: new _("regexp", L), string: new _("string", L), name: new _("name", L), privateId: new _("privateId", L), eof: new _("eof"), bracketL: new _("[", { beforeExpr: true, startsExpr: true }), bracketR: new _("]"), braceL: new _("{", { beforeExpr: true, startsExpr: true }), braceR: new _("}"), parenL: new _("(", { beforeExpr: true, startsExpr: true }), parenR: new _(")"), comma: new _(",", O), semi: new _(";", O), colon: new _(":", O), dot: new _("."), question: new _("?", O), questionDot: new _("?."), arrow: new _("=>", O), template: new _("template"), invalidTemplate: new _("invalidTemplate"), ellipsis: new _("...", O), backQuote: new _("`", L), dollarBraceL: new _("${", { beforeExpr: true, startsExpr: true }), eq: new _("=", { beforeExpr: true, isAssign: true }), assign: new _("_=", { beforeExpr: true, isAssign: true }), incDec: new _("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new _("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: R("||", 1), logicalAND: R("&&", 2), bitwiseOR: R("|", 3), bitwiseXOR: R("^", 4), bitwiseAND: R("&", 5), equality: R("==/!=/===/!==", 6), relational: R("</>/<=/>=", 7), bitShift: R("<</>>/>>>", 8), plusMin: new _("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: R("%", 10), star: R("*", 10), slash: R("/", 10), starstar: new _("**", { beforeExpr: true }), coalesce: R("??", 1), _break: S("break"), _case: S("case", O), _catch: S("catch"), _continue: S("continue"), _debugger: S("debugger"), _default: S("default", O), _do: S("do", { isLoop: true, beforeExpr: true }), _else: S("else", O), _finally: S("finally"), _for: S("for", { isLoop: true }), _function: S("function", L), _if: S("if"), _return: S("return", O), _switch: S("switch"), _throw: S("throw", O), _try: S("try"), _var: S("var"), _const: S("const"), _while: S("while", { isLoop: true }), _with: S("with"), _new: S("new", { beforeExpr: true, startsExpr: true }), _this: S("this", L), _super: S("super", L), _class: S("class", L), _extends: S("extends", O), _export: S("export"), _import: S("import", L), _null: S("null", L), _true: S("true", L), _false: S("false", L), _in: S("in", { beforeExpr: true, binop: 7 }), _instanceof: S("instanceof", { beforeExpr: true, binop: 7 }), _typeof: S("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: S("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: S("delete", { beforeExpr: true, prefix: true, startsExpr: true }) };
263
+ var V = /\r\n?|\n|\u2028|\u2029/;
264
+ var Ui = new RegExp(V.source, "g");
265
+ function Y(e) {
266
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
267
+ }
268
+ function mt(e, t, i) {
269
+ i === void 0 && (i = e.length);
270
+ for (var s = t; s < i; s++) {
271
+ var r = e.charCodeAt(s);
272
+ if (Y(r)) return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
273
+ }
274
+ return -1;
275
+ }
276
+ var xt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
277
+ var A = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
278
+ var yt = Object.prototype;
279
+ var Gi = yt.hasOwnProperty;
280
+ var qi = yt.toString;
281
+ var $ = Object.hasOwn || function(e, t) {
282
+ return Gi.call(e, t);
283
+ };
284
+ var ut = Array.isArray || function(e) {
285
+ return qi.call(e) === "[object Array]";
286
+ };
287
+ var pt = /* @__PURE__ */ Object.create(null);
288
+ function H(e) {
289
+ return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
290
+ }
291
+ function G(e) {
292
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
293
+ }
294
+ var Ji = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
295
+ var ae = function(t, i) {
296
+ this.line = t, this.column = i;
297
+ };
298
+ ae.prototype.offset = function(t) {
299
+ return new ae(this.line, this.column + t);
300
+ };
301
+ var ge = function(t, i, s) {
302
+ this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
303
+ };
304
+ function gt(e, t) {
305
+ for (var i = 1, s = 0; ; ) {
306
+ var r = mt(e, s, t);
307
+ if (r < 0) return new ae(i, t - s);
308
+ ++i, s = r;
309
+ }
310
+ }
311
+ var De = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: false, allowImportExportEverywhere: false, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: false, checkPrivateFields: true, locations: false, onToken: null, onComment: null, ranges: false, program: null, sourceFile: null, directSourceFile: null, preserveParens: false };
312
+ var ht = false;
313
+ function Hi(e) {
314
+ var t = {};
315
+ for (var i in De) t[i] = e && $(e, i) ? e[i] : De[i];
316
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ht && typeof console == "object" && console.warn && (ht = true, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
317
+ 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), ut(t.onToken)) {
318
+ var s = t.onToken;
319
+ t.onToken = function(r) {
320
+ return s.push(r);
321
+ };
322
+ }
323
+ return ut(t.onComment) && (t.onComment = Ki(t, t.onComment)), t;
324
+ }
325
+ function Ki(e, t) {
326
+ return function(i, s, r, n, o, p) {
327
+ var u = { type: i ? "Block" : "Line", value: s, start: r, end: n };
328
+ e.locations && (u.loc = new ge(this, o, p)), e.ranges && (u.range = [r, n]), t.push(u);
329
+ };
330
+ }
331
+ var ne = 1;
332
+ var Z = 2;
333
+ var Ue = 4;
334
+ var vt = 8;
335
+ var Ge = 16;
336
+ var bt = 32;
337
+ var ve = 64;
338
+ var St = 128;
339
+ var X = 256;
340
+ var oe = 512;
341
+ var be = ne | Z | X;
342
+ function qe(e, t) {
343
+ return Z | (e ? Ue : 0) | (t ? vt : 0);
344
+ }
345
+ var de = 0;
346
+ var Je = 1;
347
+ var J = 2;
348
+ var _t = 3;
349
+ var Tt = 4;
350
+ var Ct = 5;
351
+ var E = function(t, i, s) {
352
+ this.options = t = Hi(t), this.sourceFile = t.sourceFile, this.keywords = H(Di[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
353
+ var r = "";
354
+ t.allowReserved !== true && (r = Ve[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H(r);
355
+ var n = (r ? r + " " : "") + Ve.strict;
356
+ this.reservedWordsStrict = H(n), this.reservedWordsStrictBind = H(n + " " + Ve.strictBind), this.input = String(i), this.containsEsc = false, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
357
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(V).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 = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, 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(ne), this.regexpState = null, this.privateNameStack = [];
358
+ };
359
+ var j = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
360
+ E.prototype.parse = function() {
361
+ var t = this.options.program || this.startNode();
362
+ return this.nextToken(), this.parseTopLevel(t);
363
+ };
364
+ j.inFunction.get = function() {
365
+ return (this.currentVarScope().flags & Z) > 0;
366
+ };
367
+ j.inGenerator.get = function() {
368
+ return (this.currentVarScope().flags & vt) > 0;
369
+ };
370
+ j.inAsync.get = function() {
371
+ return (this.currentVarScope().flags & Ue) > 0;
372
+ };
373
+ j.canAwait.get = function() {
374
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
375
+ var t = this.scopeStack[e], i = t.flags;
376
+ if (i & (X | oe)) return false;
377
+ if (i & Z) return (i & Ue) > 0;
378
+ }
379
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
380
+ };
381
+ j.allowSuper.get = function() {
382
+ var e = this.currentThisScope(), t = e.flags;
383
+ return (t & ve) > 0 || this.options.allowSuperOutsideMethod;
384
+ };
385
+ j.allowDirectSuper.get = function() {
386
+ return (this.currentThisScope().flags & St) > 0;
387
+ };
388
+ j.treatFunctionsAsVar.get = function() {
389
+ return this.treatFunctionsAsVarInScope(this.currentScope());
390
+ };
391
+ j.allowNewDotTarget.get = function() {
392
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
393
+ var t = this.scopeStack[e], i = t.flags;
394
+ if (i & (X | oe) || i & Z && !(i & Ge)) return true;
395
+ }
396
+ return false;
397
+ };
398
+ j.inClassStaticBlock.get = function() {
399
+ return (this.currentVarScope().flags & X) > 0;
400
+ };
401
+ E.extend = function() {
402
+ for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
403
+ for (var s = this, r = 0; r < t.length; r++) s = t[r](s);
404
+ return s;
405
+ };
406
+ E.parse = function(t, i) {
407
+ return new this(i, t).parse();
408
+ };
409
+ E.parseExpressionAt = function(t, i, s) {
410
+ var r = new this(s, t, i);
411
+ return r.nextToken(), r.parseExpression();
412
+ };
413
+ E.tokenizer = function(t, i) {
414
+ return new this(i, t);
415
+ };
416
+ Object.defineProperties(E.prototype, j);
417
+ var P = E.prototype;
418
+ var Wi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
419
+ P.strictDirective = function(e) {
420
+ if (this.options.ecmaVersion < 5) return false;
421
+ for (; ; ) {
422
+ A.lastIndex = e, e += A.exec(this.input)[0].length;
423
+ var t = Wi.exec(this.input.slice(e));
424
+ if (!t) return false;
425
+ if ((t[1] || t[2]) === "use strict") {
426
+ A.lastIndex = e + t[0].length;
427
+ var i = A.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
428
+ return r === ";" || r === "}" || V.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
429
+ }
430
+ e += t[0].length, A.lastIndex = e, e += A.exec(this.input)[0].length, this.input[e] === ";" && e++;
431
+ }
432
+ };
433
+ P.eat = function(e) {
434
+ return this.type === e ? (this.next(), true) : false;
435
+ };
436
+ P.isContextual = function(e) {
437
+ return this.type === a.name && this.value === e && !this.containsEsc;
438
+ };
439
+ P.eatContextual = function(e) {
440
+ return this.isContextual(e) ? (this.next(), true) : false;
441
+ };
442
+ P.expectContextual = function(e) {
443
+ this.eatContextual(e) || this.unexpected();
444
+ };
445
+ P.canInsertSemicolon = function() {
446
+ return this.type === a.eof || this.type === a.braceR || V.test(this.input.slice(this.lastTokEnd, this.start));
447
+ };
448
+ P.insertSemicolon = function() {
449
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
450
+ };
451
+ P.semicolon = function() {
452
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
453
+ };
454
+ P.afterTrailingComma = function(e, t) {
455
+ if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), true;
456
+ };
457
+ P.expect = function(e) {
458
+ this.eat(e) || this.unexpected();
459
+ };
460
+ P.unexpected = function(e) {
461
+ this.raise(_nullishCoalesce(e, () => ( this.start)), "Unexpected token");
462
+ };
463
+ var Se = function() {
464
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
465
+ };
466
+ P.checkPatternErrors = function(e, t) {
467
+ if (e) {
468
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
469
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
470
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
471
+ }
472
+ };
473
+ P.checkExpressionErrors = function(e, t) {
474
+ if (!e) return false;
475
+ var i = e.shorthandAssign, s = e.doubleProto;
476
+ if (!t) return i >= 0 || s >= 0;
477
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
478
+ };
479
+ P.checkYieldAwaitInDefaultParams = function() {
480
+ 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");
481
+ };
482
+ P.isSimpleAssignTarget = function(e) {
483
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
484
+ };
485
+ var d = E.prototype;
486
+ d.parseTopLevel = function(e) {
487
+ var t = /* @__PURE__ */ Object.create(null);
488
+ for (e.body || (e.body = []); this.type !== a.eof; ) {
489
+ var i = this.parseStatement(null, true, t);
490
+ e.body.push(i);
491
+ }
492
+ if (this.inModule) for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
493
+ var n = r[s];
494
+ this.raiseRecoverable(this.undefinedExports[n].start, "Export '" + n + "' is not defined");
495
+ }
496
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
497
+ };
498
+ var He = { kind: "loop" };
499
+ var Xi = { kind: "switch" };
500
+ d.isLet = function(e) {
501
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
502
+ A.lastIndex = this.pos;
503
+ var t = A.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
504
+ if (s === 91 || s === 92) return true;
505
+ if (e) return false;
506
+ if (s === 123 || s > 55295 && s < 56320) return true;
507
+ if (M(s, true)) {
508
+ for (var r = i + 1; K(s = this.input.charCodeAt(r), true); ) ++r;
509
+ if (s === 92 || s > 55295 && s < 56320) return true;
510
+ var n = this.input.slice(i, r);
511
+ if (!Fi.test(n)) return true;
512
+ }
513
+ return false;
514
+ };
515
+ d.isAsyncFunction = function() {
516
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
517
+ A.lastIndex = this.pos;
518
+ var e = A.exec(this.input), t = this.pos + e[0].length, i;
519
+ return !V.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(K(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
520
+ };
521
+ d.isUsingKeyword = function(e, t) {
522
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return false;
523
+ A.lastIndex = this.pos;
524
+ var i = A.exec(this.input), s = this.pos + i[0].length;
525
+ if (V.test(this.input.slice(this.pos, s))) return false;
526
+ if (e) {
527
+ var r = s + 5, n;
528
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || K(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320) return false;
529
+ A.lastIndex = r;
530
+ var o = A.exec(this.input);
531
+ if (o && V.test(this.input.slice(r, r + o[0].length))) return false;
532
+ }
533
+ if (t) {
534
+ var p = s + 2, u;
535
+ if (this.input.slice(s, p) === "of" && (p === this.input.length || !K(u = this.input.charCodeAt(p)) && !(u > 55295 && u < 56320))) return false;
536
+ }
537
+ var c = this.input.charCodeAt(s);
538
+ return M(c, true) || c === 92;
539
+ };
540
+ d.isAwaitUsing = function(e) {
541
+ return this.isUsingKeyword(true, e);
542
+ };
543
+ d.isUsing = function(e) {
544
+ return this.isUsingKeyword(false, e);
545
+ };
546
+ d.parseStatement = function(e, t, i) {
547
+ var s = this.type, r = this.startNode(), n;
548
+ switch (this.isLet(e) && (s = a._var, n = "let"), s) {
549
+ case a._break:
550
+ case a._continue:
551
+ return this.parseBreakContinueStatement(r, s.keyword);
552
+ case a._debugger:
553
+ return this.parseDebuggerStatement(r);
554
+ case a._do:
555
+ return this.parseDoStatement(r);
556
+ case a._for:
557
+ return this.parseForStatement(r);
558
+ case a._function:
559
+ return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(r, false, !e);
560
+ case a._class:
561
+ return e && this.unexpected(), this.parseClass(r, true);
562
+ case a._if:
563
+ return this.parseIfStatement(r);
564
+ case a._return:
565
+ return this.parseReturnStatement(r);
566
+ case a._switch:
567
+ return this.parseSwitchStatement(r);
568
+ case a._throw:
569
+ return this.parseThrowStatement(r);
570
+ case a._try:
571
+ return this.parseTryStatement(r);
572
+ case a._const:
573
+ case a._var:
574
+ return n = n || this.value, e && n !== "var" && this.unexpected(), this.parseVarStatement(r, n);
575
+ case a._while:
576
+ return this.parseWhileStatement(r);
577
+ case a._with:
578
+ return this.parseWithStatement(r);
579
+ case a.braceL:
580
+ return this.parseBlock(true, r);
581
+ case a.semi:
582
+ return this.parseEmptyStatement(r);
583
+ case a._export:
584
+ case a._import:
585
+ if (this.options.ecmaVersion > 10 && s === a._import) {
586
+ A.lastIndex = this.pos;
587
+ var o = A.exec(this.input), p = this.pos + o[0].length, u = this.input.charCodeAt(p);
588
+ if (u === 40 || u === 46) return this.parseExpressionStatement(r, this.parseExpression());
589
+ }
590
+ 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);
591
+ default:
592
+ if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, true, !e);
593
+ var c = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
594
+ if (c) return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, false, c), this.semicolon(), this.finishNode(r, "VariableDeclaration");
595
+ var f = this.value, v = this.parseExpression();
596
+ return s === a.name && v.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, f, v, e) : this.parseExpressionStatement(r, v);
597
+ }
598
+ };
599
+ d.parseBreakContinueStatement = function(e, t) {
600
+ var i = t === "break";
601
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
602
+ for (var s = 0; s < this.labels.length; ++s) {
603
+ var r = this.labels[s];
604
+ if ((e.label == null || r.name === e.label.name) && (r.kind != null && (i || r.kind === "loop") || e.label && i)) break;
605
+ }
606
+ return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
607
+ };
608
+ d.parseDebuggerStatement = function(e) {
609
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
610
+ };
611
+ d.parseDoStatement = function(e) {
612
+ return this.next(), this.labels.push(He), 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");
613
+ };
614
+ d.parseForStatement = function(e) {
615
+ this.next();
616
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
617
+ if (this.labels.push(He), this.enterScope(0), this.expect(a.parenL), this.type === a.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
618
+ var i = this.isLet();
619
+ if (this.type === a._var || this.type === a._const || i) {
620
+ var s = this.startNode(), r = i ? "let" : this.value;
621
+ return this.next(), this.parseVar(s, true, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
622
+ }
623
+ var n = this.isContextual("let"), o = false, p = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
624
+ if (p) {
625
+ var u = this.startNode();
626
+ return this.next(), p === "await using" && this.next(), this.parseVar(u, true, p), this.finishNode(u, "VariableDeclaration"), this.parseForAfterInit(e, u, t);
627
+ }
628
+ var c = this.containsEsc, f = new Se(), v = this.start, T = t > -1 ? this.parseExprSubscripts(f, "await") : this.parseExpression(true, f);
629
+ return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = true) : o && this.options.ecmaVersion >= 8 && (T.start === v && !c && T.type === "Identifier" && T.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = false)), n && o && this.raise(T.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(T, false, f), this.checkLValPattern(T), this.parseForIn(e, T)) : (this.checkExpressionErrors(f, true), t > -1 && this.unexpected(t), this.parseFor(e, T));
630
+ };
631
+ d.parseForAfterInit = function(e, t, i) {
632
+ 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));
633
+ };
634
+ d.parseFunctionStatement = function(e, t, i) {
635
+ return this.next(), this.parseFunction(e, re | (i ? 0 : Fe), false, t);
636
+ };
637
+ d.parseIfStatement = function(e) {
638
+ 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");
639
+ };
640
+ d.parseReturnStatement = function(e) {
641
+ 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");
642
+ };
643
+ d.parseSwitchStatement = function(e) {
644
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(Xi), this.enterScope(0);
645
+ for (var t, i = false; this.type !== a.braceR; ) if (this.type === a._case || this.type === a._default) {
646
+ var s = this.type === a._case;
647
+ 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 = true, t.test = null), this.expect(a.colon);
648
+ } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
649
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
650
+ };
651
+ d.parseThrowStatement = function(e) {
652
+ return this.next(), V.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");
653
+ };
654
+ var zi = [];
655
+ d.parseCatchClauseParam = function() {
656
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
657
+ return this.enterScope(t ? bt : 0), this.checkLValPattern(e, t ? Tt : J), this.expect(a.parenR), e;
658
+ };
659
+ d.parseTryStatement = function(e) {
660
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
661
+ var t = this.startNode();
662
+ 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(false), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
663
+ }
664
+ 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");
665
+ };
666
+ d.parseVarStatement = function(e, t, i) {
667
+ return this.next(), this.parseVar(e, false, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
668
+ };
669
+ d.parseWhileStatement = function(e) {
670
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(He), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
671
+ };
672
+ d.parseWithStatement = function(e) {
673
+ 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");
674
+ };
675
+ d.parseEmptyStatement = function(e) {
676
+ return this.next(), this.finishNode(e, "EmptyStatement");
677
+ };
678
+ d.parseLabeledStatement = function(e, t, i, s) {
679
+ for (var r = 0, n = this.labels; r < n.length; r += 1) {
680
+ var o = n[r];
681
+ o.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
682
+ }
683
+ for (var p = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, u = this.labels.length - 1; u >= 0; u--) {
684
+ var c = this.labels[u];
685
+ if (c.statementStart === e.start) c.statementStart = this.start, c.kind = p;
686
+ else break;
687
+ }
688
+ 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");
689
+ };
690
+ d.parseExpressionStatement = function(e, t) {
691
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
692
+ };
693
+ d.parseBlock = function(e, t, i) {
694
+ for (e === void 0 && (e = true), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR; ) {
695
+ var s = this.parseStatement(null);
696
+ t.body.push(s);
697
+ }
698
+ return i && (this.strict = false), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
699
+ };
700
+ d.parseFor = function(e, t) {
701
+ 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");
702
+ };
703
+ d.parseForIn = function(e, t) {
704
+ var i = this.type === a._in;
705
+ 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");
706
+ };
707
+ d.parseVar = function(e, t, i, s) {
708
+ for (e.declarations = [], e.kind = i; ; ) {
709
+ var r = this.startNode();
710
+ 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;
711
+ }
712
+ return e;
713
+ };
714
+ d.parseVarId = function(e, t) {
715
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Je : J, false);
716
+ };
717
+ var re = 1;
718
+ var Fe = 2;
719
+ var Et = 4;
720
+ d.parseFunction = function(e, t, i, s, r) {
721
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & Fe && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & re && (e.id = t & Et && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & Fe) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Je : J : _t));
722
+ var n = this.yieldPos, o = this.awaitPos, p = this.awaitIdentPos;
723
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(qe(e.async, e.generator)), t & re || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, false, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = p, this.finishNode(e, t & re ? "FunctionDeclaration" : "FunctionExpression");
724
+ };
725
+ d.parseFunctionParams = function(e) {
726
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
727
+ };
728
+ d.parseClass = function(e, t) {
729
+ this.next();
730
+ var i = this.strict;
731
+ this.strict = true, this.parseClassId(e, t), this.parseClassSuper(e);
732
+ var s = this.enterClassBody(), r = this.startNode(), n = false;
733
+ for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
734
+ var o = this.parseClassElement(e.superClass !== null);
735
+ o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = true) : o.key && o.key.type === "PrivateIdentifier" && Qi(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
736
+ }
737
+ return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
738
+ };
739
+ d.parseClassElement = function(e) {
740
+ if (this.eat(a.semi)) return null;
741
+ var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = false, n = false, o = "method", p = false;
742
+ if (this.eatContextual("static")) {
743
+ if (t >= 13 && this.eat(a.braceL)) return this.parseClassStaticBlock(i), i;
744
+ this.isClassElementNameStart() || this.type === a.star ? p = true : s = "static";
745
+ }
746
+ if (i.static = p, !s && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? n = true : s = "async"), !s && (t >= 9 || !n) && this.eat(a.star) && (r = true), !s && !n && !r) {
747
+ var u = this.value;
748
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = u : s = u);
749
+ }
750
+ if (s ? (i.computed = false, 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 || o !== "method" || r || n) {
751
+ var c = !i.static && me(i, "constructor"), f = c && e;
752
+ c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, f);
753
+ } else this.parseClassField(i);
754
+ return i;
755
+ };
756
+ d.isClassElementNameStart = function() {
757
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
758
+ };
759
+ d.parseClassElementName = function(e) {
760
+ this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = false, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
761
+ };
762
+ d.parseClassMethod = function(e, t, i, s) {
763
+ var r = e.key;
764
+ 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 && me(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
765
+ var n = e.value = this.parseMethod(t, i, s);
766
+ return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
767
+ };
768
+ d.parseClassField = function(e) {
769
+ return me(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && me(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(oe | ve), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
770
+ };
771
+ d.parseClassStaticBlock = function(e) {
772
+ e.body = [];
773
+ var t = this.labels;
774
+ for (this.labels = [], this.enterScope(X | ve); this.type !== a.braceR; ) {
775
+ var i = this.parseStatement(null);
776
+ e.body.push(i);
777
+ }
778
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
779
+ };
780
+ d.parseClassId = function(e, t) {
781
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, J, false)) : (t === true && this.unexpected(), e.id = null);
782
+ };
783
+ d.parseClassSuper = function(e) {
784
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, false) : null;
785
+ };
786
+ d.enterClassBody = function() {
787
+ var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
788
+ return this.privateNameStack.push(e), e.declared;
789
+ };
790
+ d.exitClassBody = function() {
791
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
792
+ if (this.options.checkPrivateFields) for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], n = 0; n < i.length; ++n) {
793
+ var o = i[n];
794
+ $(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
795
+ }
796
+ };
797
+ function Qi(e, t) {
798
+ var i = t.key.name, s = e[i], r = "true";
799
+ 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", false) : s ? true : (e[i] = r, false);
800
+ }
801
+ function me(e, t) {
802
+ var i = e.computed, s = e.key;
803
+ return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
804
+ }
805
+ d.parseExportAllDeclaration = function(e, t) {
806
+ 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");
807
+ };
808
+ d.parseExport = function(e, t) {
809
+ if (this.next(), this.eat(a.star)) return this.parseExportAllDeclaration(e, t);
810
+ if (this.eat(a._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
811
+ 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 = []);
812
+ else {
813
+ 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());
814
+ else {
815
+ for (var i = 0, s = e.specifiers; i < s.length; i += 1) {
816
+ var r = s[i];
817
+ 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`.");
818
+ }
819
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
820
+ }
821
+ this.semicolon();
822
+ }
823
+ return this.finishNode(e, "ExportNamedDeclaration");
824
+ };
825
+ d.parseExportDeclaration = function(e) {
826
+ return this.parseStatement(null);
827
+ };
828
+ d.parseExportDefaultDeclaration = function() {
829
+ var e;
830
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
831
+ var t = this.startNode();
832
+ return this.next(), e && this.next(), this.parseFunction(t, re | Et, false, e);
833
+ } else if (this.type === a._class) {
834
+ var i = this.startNode();
835
+ return this.parseClass(i, "nullableID");
836
+ } else {
837
+ var s = this.parseMaybeAssign();
838
+ return this.semicolon(), s;
839
+ }
840
+ };
841
+ d.checkExport = function(e, t, i) {
842
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), $(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = true);
843
+ };
844
+ d.checkPatternExport = function(e, t) {
845
+ var i = t.type;
846
+ if (i === "Identifier") this.checkExport(e, t, t.start);
847
+ else if (i === "ObjectPattern") for (var s = 0, r = t.properties; s < r.length; s += 1) {
848
+ var n = r[s];
849
+ this.checkPatternExport(e, n);
850
+ }
851
+ else if (i === "ArrayPattern") for (var o = 0, p = t.elements; o < p.length; o += 1) {
852
+ var u = p[o];
853
+ u && this.checkPatternExport(e, u);
854
+ }
855
+ else i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
856
+ };
857
+ d.checkVariableExport = function(e, t) {
858
+ if (e) for (var i = 0, s = t; i < s.length; i += 1) {
859
+ var r = s[i];
860
+ this.checkPatternExport(e, r.id);
861
+ }
862
+ };
863
+ d.shouldParseExportStatement = function() {
864
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
865
+ };
866
+ d.parseExportSpecifier = function(e) {
867
+ var t = this.startNode();
868
+ 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");
869
+ };
870
+ d.parseExportSpecifiers = function(e) {
871
+ var t = [], i = true;
872
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
873
+ if (i) i = false;
874
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
875
+ t.push(this.parseExportSpecifier(e));
876
+ }
877
+ return t;
878
+ };
879
+ d.parseImport = function(e) {
880
+ return this.next(), this.type === a.string ? (e.specifiers = zi, 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");
881
+ };
882
+ d.parseImportSpecifier = function() {
883
+ var e = this.startNode();
884
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportSpecifier");
885
+ };
886
+ d.parseImportDefaultSpecifier = function() {
887
+ var e = this.startNode();
888
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportDefaultSpecifier");
889
+ };
890
+ d.parseImportNamespaceSpecifier = function() {
891
+ var e = this.startNode();
892
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportNamespaceSpecifier");
893
+ };
894
+ d.parseImportSpecifiers = function() {
895
+ var e = [], t = true;
896
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma))) return e;
897
+ if (this.type === a.star) return e.push(this.parseImportNamespaceSpecifier()), e;
898
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
899
+ if (t) t = false;
900
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
901
+ e.push(this.parseImportSpecifier());
902
+ }
903
+ return e;
904
+ };
905
+ d.parseWithClause = function() {
906
+ var e = [];
907
+ if (!this.eat(a._with)) return e;
908
+ this.expect(a.braceL);
909
+ for (var t = {}, i = true; !this.eat(a.braceR); ) {
910
+ if (i) i = false;
911
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
912
+ var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
913
+ $(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = true, e.push(s);
914
+ }
915
+ return e;
916
+ };
917
+ d.parseImportAttribute = function() {
918
+ var e = this.startNode();
919
+ 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");
920
+ };
921
+ d.parseModuleExportName = function() {
922
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
923
+ var e = this.parseLiteral(this.value);
924
+ return Ji.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
925
+ }
926
+ return this.parseIdent(true);
927
+ };
928
+ d.adaptDirectivePrologue = function(e) {
929
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
930
+ };
931
+ d.isDirectiveCandidate = function(e) {
932
+ 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] === "'");
933
+ };
934
+ var D = E.prototype;
935
+ D.toAssignable = function(e, t, i) {
936
+ if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
937
+ case "Identifier":
938
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
939
+ break;
940
+ case "ObjectPattern":
941
+ case "ArrayPattern":
942
+ case "AssignmentPattern":
943
+ case "RestElement":
944
+ break;
945
+ case "ObjectExpression":
946
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, true);
947
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
948
+ var n = r[s];
949
+ this.toAssignable(n, t), n.type === "RestElement" && (n.argument.type === "ArrayPattern" || n.argument.type === "ObjectPattern") && this.raise(n.argument.start, "Unexpected token");
950
+ }
951
+ break;
952
+ case "Property":
953
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
954
+ break;
955
+ case "ArrayExpression":
956
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, true), this.toAssignableList(e.elements, t);
957
+ break;
958
+ case "SpreadElement":
959
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
960
+ break;
961
+ case "AssignmentExpression":
962
+ 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);
963
+ break;
964
+ case "ParenthesizedExpression":
965
+ this.toAssignable(e.expression, t, i);
966
+ break;
967
+ case "ChainExpression":
968
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
969
+ break;
970
+ case "MemberExpression":
971
+ if (!t) break;
972
+ default:
973
+ this.raise(e.start, "Assigning to rvalue");
974
+ }
975
+ else i && this.checkPatternErrors(i, true);
976
+ return e;
977
+ };
978
+ D.toAssignableList = function(e, t) {
979
+ for (var i = e.length, s = 0; s < i; s++) {
980
+ var r = e[s];
981
+ r && this.toAssignable(r, t);
982
+ }
983
+ if (i) {
984
+ var n = e[i - 1];
985
+ this.options.ecmaVersion === 6 && t && n && n.type === "RestElement" && n.argument.type !== "Identifier" && this.unexpected(n.argument.start);
986
+ }
987
+ return e;
988
+ };
989
+ D.parseSpread = function(e) {
990
+ var t = this.startNode();
991
+ return this.next(), t.argument = this.parseMaybeAssign(false, e), this.finishNode(t, "SpreadElement");
992
+ };
993
+ D.parseRestBinding = function() {
994
+ var e = this.startNode();
995
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
996
+ };
997
+ D.parseBindingAtom = function() {
998
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
999
+ case a.bracketL:
1000
+ var e = this.startNode();
1001
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, true, true), this.finishNode(e, "ArrayPattern");
1002
+ case a.braceL:
1003
+ return this.parseObj(true);
1004
+ }
1005
+ return this.parseIdent();
1006
+ };
1007
+ D.parseBindingList = function(e, t, i, s) {
1008
+ for (var r = [], n = true; !this.eat(e); ) if (n ? n = false : this.expect(a.comma), t && this.type === a.comma) r.push(null);
1009
+ else {
1010
+ if (i && this.afterTrailingComma(e)) break;
1011
+ if (this.type === a.ellipsis) {
1012
+ var o = this.parseRestBinding();
1013
+ this.parseBindingListItem(o), r.push(o), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1014
+ break;
1015
+ } else r.push(this.parseAssignableListItem(s));
1016
+ }
1017
+ return r;
1018
+ };
1019
+ D.parseAssignableListItem = function(e) {
1020
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
1021
+ return this.parseBindingListItem(t), t;
1022
+ };
1023
+ D.parseBindingListItem = function(e) {
1024
+ return e;
1025
+ };
1026
+ D.parseMaybeDefault = function(e, t, i) {
1027
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq)) return i;
1028
+ var s = this.startNodeAt(e, t);
1029
+ return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
1030
+ };
1031
+ D.checkLValSimple = function(e, t, i) {
1032
+ t === void 0 && (t = de);
1033
+ var s = t !== de;
1034
+ switch (e.type) {
1035
+ case "Identifier":
1036
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === J && 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] = true), t !== Ct && this.declareName(e.name, t, e.start));
1037
+ break;
1038
+ case "ChainExpression":
1039
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1040
+ break;
1041
+ case "MemberExpression":
1042
+ s && this.raiseRecoverable(e.start, "Binding member expression");
1043
+ break;
1044
+ case "ParenthesizedExpression":
1045
+ return s && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
1046
+ default:
1047
+ this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
1048
+ }
1049
+ };
1050
+ D.checkLValPattern = function(e, t, i) {
1051
+ switch (t === void 0 && (t = de), e.type) {
1052
+ case "ObjectPattern":
1053
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1054
+ var n = r[s];
1055
+ this.checkLValInnerPattern(n, t, i);
1056
+ }
1057
+ break;
1058
+ case "ArrayPattern":
1059
+ for (var o = 0, p = e.elements; o < p.length; o += 1) {
1060
+ var u = p[o];
1061
+ u && this.checkLValInnerPattern(u, t, i);
1062
+ }
1063
+ break;
1064
+ default:
1065
+ this.checkLValSimple(e, t, i);
1066
+ }
1067
+ };
1068
+ D.checkLValInnerPattern = function(e, t, i) {
1069
+ switch (t === void 0 && (t = de), e.type) {
1070
+ case "Property":
1071
+ this.checkLValInnerPattern(e.value, t, i);
1072
+ break;
1073
+ case "AssignmentPattern":
1074
+ this.checkLValPattern(e.left, t, i);
1075
+ break;
1076
+ case "RestElement":
1077
+ this.checkLValPattern(e.argument, t, i);
1078
+ break;
1079
+ default:
1080
+ this.checkLValPattern(e, t, i);
1081
+ }
1082
+ };
1083
+ var F = function(t, i, s, r, n) {
1084
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1085
+ };
1086
+ var C = { b_stat: new F("{", false), b_expr: new F("{", true), b_tmpl: new F("${", false), p_stat: new F("(", false), p_expr: new F("(", true), q_tmpl: new F("`", true, true, function(e) {
1087
+ return e.tryReadTemplateToken();
1088
+ }), f_stat: new F("function", false), f_expr: new F("function", true), f_expr_gen: new F("function", true, false, null, true), f_gen: new F("function", false, false, null, true) };
1089
+ var ee = E.prototype;
1090
+ ee.initialContext = function() {
1091
+ return [C.b_stat];
1092
+ };
1093
+ ee.curContext = function() {
1094
+ return this.context[this.context.length - 1];
1095
+ };
1096
+ ee.braceIsBlock = function(e) {
1097
+ var t = this.curContext();
1098
+ return t === C.f_expr || t === C.f_stat ? true : e === a.colon && (t === C.b_stat || t === C.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? V.test(this.input.slice(this.lastTokEnd, this.start)) : e === a._else || e === a.semi || e === a.eof || e === a.parenR || e === a.arrow ? true : e === a.braceL ? t === C.b_stat : e === a._var || e === a._const || e === a.name ? false : !this.exprAllowed;
1099
+ };
1100
+ ee.inGeneratorContext = function() {
1101
+ for (var e = this.context.length - 1; e >= 1; e--) {
1102
+ var t = this.context[e];
1103
+ if (t.token === "function") return t.generator;
1104
+ }
1105
+ return false;
1106
+ };
1107
+ ee.updateContext = function(e) {
1108
+ var t, i = this.type;
1109
+ i.keyword && e === a.dot ? this.exprAllowed = false : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
1110
+ };
1111
+ ee.overrideContext = function(e) {
1112
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
1113
+ };
1114
+ a.parenR.updateContext = a.braceR.updateContext = function() {
1115
+ if (this.context.length === 1) {
1116
+ this.exprAllowed = true;
1117
+ return;
1118
+ }
1119
+ var e = this.context.pop();
1120
+ e === C.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1121
+ };
1122
+ a.braceL.updateContext = function(e) {
1123
+ this.context.push(this.braceIsBlock(e) ? C.b_stat : C.b_expr), this.exprAllowed = true;
1124
+ };
1125
+ a.dollarBraceL.updateContext = function() {
1126
+ this.context.push(C.b_tmpl), this.exprAllowed = true;
1127
+ };
1128
+ a.parenL.updateContext = function(e) {
1129
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
1130
+ this.context.push(t ? C.p_stat : C.p_expr), this.exprAllowed = true;
1131
+ };
1132
+ a.incDec.updateContext = function() {
1133
+ };
1134
+ a._function.updateContext = a._class.updateContext = function(e) {
1135
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== C.p_stat) && !(e === a._return && V.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === C.b_stat) ? this.context.push(C.f_expr) : this.context.push(C.f_stat), this.exprAllowed = false;
1136
+ };
1137
+ a.colon.updateContext = function() {
1138
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
1139
+ };
1140
+ a.backQuote.updateContext = function() {
1141
+ this.curContext() === C.q_tmpl ? this.context.pop() : this.context.push(C.q_tmpl), this.exprAllowed = false;
1142
+ };
1143
+ a.star.updateContext = function(e) {
1144
+ if (e === a._function) {
1145
+ var t = this.context.length - 1;
1146
+ this.context[t] === C.f_expr ? this.context[t] = C.f_expr_gen : this.context[t] = C.f_gen;
1147
+ }
1148
+ this.exprAllowed = true;
1149
+ };
1150
+ a.name.updateContext = function(e) {
1151
+ var t = false;
1152
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = true), this.exprAllowed = t;
1153
+ };
1154
+ var y = E.prototype;
1155
+ y.checkPropClash = function(e, t, i) {
1156
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1157
+ var s = e.key, r;
1158
+ switch (s.type) {
1159
+ case "Identifier":
1160
+ r = s.name;
1161
+ break;
1162
+ case "Literal":
1163
+ r = String(s.value);
1164
+ break;
1165
+ default:
1166
+ return;
1167
+ }
1168
+ var n = e.kind;
1169
+ if (this.options.ecmaVersion >= 6) {
1170
+ r === "__proto__" && n === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = s.start) : this.raiseRecoverable(s.start, "Redefinition of __proto__ property")), t.proto = true);
1171
+ return;
1172
+ }
1173
+ r = "$" + r;
1174
+ var o = t[r];
1175
+ if (o) {
1176
+ var p;
1177
+ n === "init" ? p = this.strict && o.init || o.get || o.set : p = o.init || o[n], p && this.raiseRecoverable(s.start, "Redefinition of property");
1178
+ } else o = t[r] = { init: false, get: false, set: false };
1179
+ o[n] = true;
1180
+ }
1181
+ };
1182
+ y.parseExpression = function(e, t) {
1183
+ var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
1184
+ if (this.type === a.comma) {
1185
+ var n = this.startNodeAt(i, s);
1186
+ for (n.expressions = [r]; this.eat(a.comma); ) n.expressions.push(this.parseMaybeAssign(e, t));
1187
+ return this.finishNode(n, "SequenceExpression");
1188
+ }
1189
+ return r;
1190
+ };
1191
+ y.parseMaybeAssign = function(e, t, i) {
1192
+ if (this.isContextual("yield")) {
1193
+ if (this.inGenerator) return this.parseYield(e);
1194
+ this.exprAllowed = false;
1195
+ }
1196
+ var s = false, r = -1, n = -1, o = -1;
1197
+ t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Se(), s = true);
1198
+ var p = this.start, u = this.startLoc;
1199
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1200
+ var c = this.parseMaybeConditional(e, t);
1201
+ if (i && (c = i.call(this, c, p, u)), this.type.isAssign) {
1202
+ var f = this.startNodeAt(p, u);
1203
+ return f.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, false, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), f.left = c, this.next(), f.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(f, "AssignmentExpression");
1204
+ } else s && this.checkExpressionErrors(t, true);
1205
+ return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
1206
+ };
1207
+ y.parseMaybeConditional = function(e, t) {
1208
+ var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
1209
+ if (this.checkExpressionErrors(t)) return r;
1210
+ if (this.eat(a.question)) {
1211
+ var n = this.startNodeAt(i, s);
1212
+ return n.test = r, n.consequent = this.parseMaybeAssign(), this.expect(a.colon), n.alternate = this.parseMaybeAssign(e), this.finishNode(n, "ConditionalExpression");
1213
+ }
1214
+ return r;
1215
+ };
1216
+ y.parseExprOps = function(e, t) {
1217
+ var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, false, false, e);
1218
+ return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
1219
+ };
1220
+ y.parseExprOp = function(e, t, i, s, r) {
1221
+ var n = this.type.binop;
1222
+ if (n != null && (!r || this.type !== a._in) && n > s) {
1223
+ var o = this.type === a.logicalOR || this.type === a.logicalAND, p = this.type === a.coalesce;
1224
+ p && (n = a.logicalAND.binop);
1225
+ var u = this.value;
1226
+ this.next();
1227
+ var c = this.start, f = this.startLoc, v = this.parseExprOp(this.parseMaybeUnary(null, false, false, r), c, f, n, r), T = this.buildBinary(t, i, e, v, u, o || p);
1228
+ return (o && 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(T, t, i, s, r);
1229
+ }
1230
+ return e;
1231
+ };
1232
+ y.buildBinary = function(e, t, i, s, r, n) {
1233
+ s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
1234
+ var o = this.startNodeAt(e, t);
1235
+ return o.left = i, o.operator = r, o.right = s, this.finishNode(o, n ? "LogicalExpression" : "BinaryExpression");
1236
+ };
1237
+ y.parseMaybeUnary = function(e, t, i, s) {
1238
+ var r = this.start, n = this.startLoc, o;
1239
+ if (this.isContextual("await") && this.canAwait) o = this.parseAwait(s), t = true;
1240
+ else if (this.type.prefix) {
1241
+ var p = this.startNode(), u = this.type === a.incDec;
1242
+ p.operator = this.value, p.prefix = true, this.next(), p.argument = this.parseMaybeUnary(null, true, u, s), this.checkExpressionErrors(e, true), u ? 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" && Me(p.argument) ? this.raiseRecoverable(p.start, "Private fields can not be deleted") : t = true, o = this.finishNode(p, u ? "UpdateExpression" : "UnaryExpression");
1243
+ } else if (!t && this.type === a.privateId) (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1244
+ else {
1245
+ if (o = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e)) return o;
1246
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1247
+ var c = this.startNodeAt(r, n);
1248
+ c.operator = this.value, c.prefix = false, c.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(c, "UpdateExpression");
1249
+ }
1250
+ }
1251
+ if (!i && this.eat(a.starstar)) if (t) this.unexpected(this.lastTokStart);
1252
+ else return this.buildBinary(r, n, o, this.parseMaybeUnary(null, false, false, s), "**", false);
1253
+ else return o;
1254
+ };
1255
+ function kt(e) {
1256
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && kt(e.expression);
1257
+ }
1258
+ function Me(e) {
1259
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Me(e.expression) || e.type === "ParenthesizedExpression" && Me(e.expression);
1260
+ }
1261
+ y.parseExprSubscripts = function(e, t) {
1262
+ var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
1263
+ if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return r;
1264
+ var n = this.parseSubscripts(r, i, s, false, t);
1265
+ return e && n.type === "MemberExpression" && (e.parenthesizedAssign >= n.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= n.start && (e.parenthesizedBind = -1), e.trailingComma >= n.start && (e.trailingComma = -1)), n;
1266
+ };
1267
+ y.parseSubscripts = function(e, t, i, s, r) {
1268
+ for (var n = 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, o = false; ; ) {
1269
+ var p = this.parseSubscript(e, t, i, s, n, o, r);
1270
+ if (p.optional && (o = true), p === e || p.type === "ArrowFunctionExpression") {
1271
+ if (o) {
1272
+ var u = this.startNodeAt(t, i);
1273
+ u.expression = p, p = this.finishNode(u, "ChainExpression");
1274
+ }
1275
+ return p;
1276
+ }
1277
+ e = p;
1278
+ }
1279
+ };
1280
+ y.shouldParseAsyncArrow = function() {
1281
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
1282
+ };
1283
+ y.parseSubscriptAsyncArrow = function(e, t, i, s) {
1284
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, true, s);
1285
+ };
1286
+ y.parseSubscript = function(e, t, i, s, r, n, o) {
1287
+ var p = this.options.ecmaVersion >= 11, u = p && this.eat(a.questionDot);
1288
+ s && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1289
+ var c = this.eat(a.bracketL);
1290
+ if (c || u && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1291
+ var f = this.startNodeAt(t, i);
1292
+ f.object = e, c ? (f.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!c, p && (f.optional = u), e = this.finishNode(f, "MemberExpression");
1293
+ } else if (!s && this.eat(a.parenL)) {
1294
+ var v = new Se(), T = this.yieldPos, h = this.awaitPos, m = this.awaitIdentPos;
1295
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1296
+ var x = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false, v);
1297
+ if (r && !u && this.shouldParseAsyncArrow()) return this.checkPatternErrors(v, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = T, this.awaitPos = h, this.awaitIdentPos = m, this.parseSubscriptAsyncArrow(t, i, x, o);
1298
+ this.checkExpressionErrors(v, true), this.yieldPos = T || this.yieldPos, this.awaitPos = h || this.awaitPos, this.awaitIdentPos = m || this.awaitIdentPos;
1299
+ var g = this.startNodeAt(t, i);
1300
+ g.callee = e, g.arguments = x, p && (g.optional = u), e = this.finishNode(g, "CallExpression");
1301
+ } else if (this.type === a.backQuote) {
1302
+ (u || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1303
+ var N = this.startNodeAt(t, i);
1304
+ N.tag = e, N.quasi = this.parseTemplate({ isTagged: true }), e = this.finishNode(N, "TaggedTemplateExpression");
1305
+ }
1306
+ return e;
1307
+ };
1308
+ y.parseExprAtom = function(e, t, i) {
1309
+ this.type === a.slash && this.readRegexp();
1310
+ var s, r = this.potentialArrowAt === this.start;
1311
+ switch (this.type) {
1312
+ case a._super:
1313
+ 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");
1314
+ case a._this:
1315
+ return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
1316
+ case a.name:
1317
+ var n = this.start, o = this.startLoc, p = this.containsEsc, u = this.parseIdent(false);
1318
+ if (this.options.ecmaVersion >= 8 && !p && u.name === "async" && !this.canInsertSemicolon() && this.eat(a._function)) return this.overrideContext(C.f_expr), this.parseFunction(this.startNodeAt(n, o), 0, false, true, t);
1319
+ if (r && !this.canInsertSemicolon()) {
1320
+ if (this.eat(a.arrow)) return this.parseArrowExpression(this.startNodeAt(n, o), [u], false, t);
1321
+ if (this.options.ecmaVersion >= 8 && u.name === "async" && this.type === a.name && !p && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return u = this.parseIdent(false), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, o), [u], true, t);
1322
+ }
1323
+ return u;
1324
+ case a.regexp:
1325
+ var c = this.value;
1326
+ return s = this.parseLiteral(c.value), s.regex = { pattern: c.pattern, flags: c.flags }, s;
1327
+ case a.num:
1328
+ case a.string:
1329
+ return this.parseLiteral(this.value);
1330
+ case a._null:
1331
+ case a._true:
1332
+ case a._false:
1333
+ 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");
1334
+ case a.parenL:
1335
+ var f = this.start, v = this.parseParenAndDistinguishExpression(r, t);
1336
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(v) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), v;
1337
+ case a.bracketL:
1338
+ return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, true, true, e), this.finishNode(s, "ArrayExpression");
1339
+ case a.braceL:
1340
+ return this.overrideContext(C.b_expr), this.parseObj(false, e);
1341
+ case a._function:
1342
+ return s = this.startNode(), this.next(), this.parseFunction(s, 0);
1343
+ case a._class:
1344
+ return this.parseClass(this.startNode(), false);
1345
+ case a._new:
1346
+ return this.parseNew();
1347
+ case a.backQuote:
1348
+ return this.parseTemplate();
1349
+ case a._import:
1350
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
1351
+ default:
1352
+ return this.parseExprAtomDefault();
1353
+ }
1354
+ };
1355
+ y.parseExprAtomDefault = function() {
1356
+ this.unexpected();
1357
+ };
1358
+ y.parseExprImport = function(e) {
1359
+ var t = this.startNode();
1360
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e) return this.parseDynamicImport(t);
1361
+ if (this.type === a.dot) {
1362
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
1363
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
1364
+ } else this.unexpected();
1365
+ };
1366
+ y.parseDynamicImport = function(e) {
1367
+ 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())));
1368
+ else if (!this.eat(a.parenR)) {
1369
+ var t = this.start;
1370
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
1371
+ }
1372
+ return this.finishNode(e, "ImportExpression");
1373
+ };
1374
+ y.parseImportMeta = function(e) {
1375
+ this.next();
1376
+ var t = this.containsEsc;
1377
+ return e.property = this.parseIdent(true), 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");
1378
+ };
1379
+ y.parseLiteral = function(e) {
1380
+ var t = this.startNode();
1381
+ 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");
1382
+ };
1383
+ y.parseParenExpression = function() {
1384
+ this.expect(a.parenL);
1385
+ var e = this.parseExpression();
1386
+ return this.expect(a.parenR), e;
1387
+ };
1388
+ y.shouldParseArrow = function(e) {
1389
+ return !this.canInsertSemicolon();
1390
+ };
1391
+ y.parseParenAndDistinguishExpression = function(e, t) {
1392
+ var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1393
+ if (this.options.ecmaVersion >= 6) {
1394
+ this.next();
1395
+ var o = this.start, p = this.startLoc, u = [], c = true, f = false, v = new Se(), T = this.yieldPos, h = this.awaitPos, m;
1396
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; ) if (c ? c = false : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, true)) {
1397
+ f = true;
1398
+ break;
1399
+ } else if (this.type === a.ellipsis) {
1400
+ m = this.start, u.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1401
+ break;
1402
+ } else u.push(this.parseMaybeAssign(false, v, this.parseParenItem));
1403
+ var x = this.lastTokEnd, g = this.lastTokEndLoc;
1404
+ if (this.expect(a.parenR), e && this.shouldParseArrow(u) && this.eat(a.arrow)) return this.checkPatternErrors(v, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = T, this.awaitPos = h, this.parseParenArrowList(i, s, u, t);
1405
+ (!u.length || f) && this.unexpected(this.lastTokStart), m && this.unexpected(m), this.checkExpressionErrors(v, true), this.yieldPos = T || this.yieldPos, this.awaitPos = h || this.awaitPos, u.length > 1 ? (r = this.startNodeAt(o, p), r.expressions = u, this.finishNodeAt(r, "SequenceExpression", x, g)) : r = u[0];
1406
+ } else r = this.parseParenExpression();
1407
+ if (this.options.preserveParens) {
1408
+ var N = this.startNodeAt(i, s);
1409
+ return N.expression = r, this.finishNode(N, "ParenthesizedExpression");
1410
+ } else return r;
1411
+ };
1412
+ y.parseParenItem = function(e) {
1413
+ return e;
1414
+ };
1415
+ y.parseParenArrowList = function(e, t, i, s) {
1416
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, false, s);
1417
+ };
1418
+ var Yi = [];
1419
+ y.parseNew = function() {
1420
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1421
+ var e = this.startNode();
1422
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
1423
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
1424
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
1425
+ var i = this.containsEsc;
1426
+ return e.property = this.parseIdent(true), 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");
1427
+ }
1428
+ var s = this.start, r = this.startLoc;
1429
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), s, r, true, false), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false) : e.arguments = Yi, this.finishNode(e, "NewExpression");
1430
+ };
1431
+ y.parseTemplateElement = function(e) {
1432
+ var t = e.isTagged, i = this.startNode();
1433
+ 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, `
1434
+ `), cooked: null }) : i.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1435
+ `), cooked: this.value }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1436
+ };
1437
+ y.parseTemplate = function(e) {
1438
+ e === void 0 && (e = {});
1439
+ var t = e.isTagged;
1440
+ t === void 0 && (t = false);
1441
+ var i = this.startNode();
1442
+ this.next(), i.expressions = [];
1443
+ var s = this.parseTemplateElement({ isTagged: t });
1444
+ 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 }));
1445
+ return this.next(), this.finishNode(i, "TemplateLiteral");
1446
+ };
1447
+ y.isAsyncProp = function(e) {
1448
+ 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) && !V.test(this.input.slice(this.lastTokEnd, this.start));
1449
+ };
1450
+ y.parseObj = function(e, t) {
1451
+ var i = this.startNode(), s = true, r = {};
1452
+ for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1453
+ if (s) s = false;
1454
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR)) break;
1455
+ var n = this.parseProperty(e, t);
1456
+ e || this.checkPropClash(n, r, t), i.properties.push(n);
1457
+ }
1458
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1459
+ };
1460
+ y.parseProperty = function(e, t) {
1461
+ var i = this.startNode(), s, r, n, o;
1462
+ if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis)) return e ? (i.argument = this.parseIdent(false), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(false, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
1463
+ this.options.ecmaVersion >= 6 && (i.method = false, i.shorthand = false, (e || t) && (n = this.start, o = this.startLoc), e || (s = this.eat(a.star)));
1464
+ var p = this.containsEsc;
1465
+ return this.parsePropertyName(i), !e && !p && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = true, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = false, this.parsePropertyValue(i, e, s, r, n, o, t, p), this.finishNode(i, "Property");
1466
+ };
1467
+ y.parseGetterSetter = function(e) {
1468
+ var t = e.key.name;
1469
+ this.parsePropertyName(e), e.value = this.parseMethod(false), e.kind = t;
1470
+ var i = e.kind === "get" ? 0 : 1;
1471
+ if (e.value.params.length !== i) {
1472
+ var s = e.value.start;
1473
+ e.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
1474
+ } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1475
+ };
1476
+ y.parsePropertyValue = function(e, t, i, s, r, n, o, p) {
1477
+ (i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = true, 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, n, this.copyNode(e.key)) : this.type === a.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = true) : this.unexpected();
1478
+ };
1479
+ y.parsePropertyName = function(e) {
1480
+ if (this.options.ecmaVersion >= 6) {
1481
+ if (this.eat(a.bracketL)) return e.computed = true, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
1482
+ e.computed = false;
1483
+ }
1484
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1485
+ };
1486
+ y.initFunction = function(e) {
1487
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = false), this.options.ecmaVersion >= 8 && (e.async = false);
1488
+ };
1489
+ y.parseMethod = function(e, t, i) {
1490
+ var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1491
+ 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(qe(t, s.generator) | ve | (i ? St : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, false, true, false), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1492
+ };
1493
+ y.parseArrowExpression = function(e, t, i, s) {
1494
+ var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1495
+ return this.enterScope(qe(i, false) | Ge), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, true), this.parseFunctionBody(e, true, false, s), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1496
+ };
1497
+ y.parseFunctionBody = function(e, t, i, s) {
1498
+ var r = t && this.type !== a.braceL, n = this.strict, o = false;
1499
+ if (r) e.body = this.parseMaybeAssign(s), e.expression = true, this.checkParams(e, false);
1500
+ else {
1501
+ var p = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1502
+ (!n || p) && (o = this.strictDirective(this.end), o && p && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1503
+ var u = this.labels;
1504
+ this.labels = [], o && (this.strict = true), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Ct), e.body = this.parseBlock(false, void 0, o && !n), e.expression = false, this.adaptDirectivePrologue(e.body.body), this.labels = u;
1505
+ }
1506
+ this.exitScope();
1507
+ };
1508
+ y.isSimpleParamList = function(e) {
1509
+ for (var t = 0, i = e; t < i.length; t += 1) {
1510
+ var s = i[t];
1511
+ if (s.type !== "Identifier") return false;
1512
+ }
1513
+ return true;
1514
+ };
1515
+ y.checkParams = function(e, t) {
1516
+ for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1517
+ var n = r[s];
1518
+ this.checkLValInnerPattern(n, Je, t ? null : i);
1519
+ }
1520
+ };
1521
+ y.parseExprList = function(e, t, i, s) {
1522
+ for (var r = [], n = true; !this.eat(e); ) {
1523
+ if (n) n = false;
1524
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e)) break;
1525
+ var o = void 0;
1526
+ i && this.type === a.comma ? o = null : this.type === a.ellipsis ? (o = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : o = this.parseMaybeAssign(false, s), r.push(o);
1527
+ }
1528
+ return r;
1529
+ };
1530
+ y.checkUnreserved = function(e) {
1531
+ var t = e.start, i = e.end, s = e.name;
1532
+ 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 & be) && 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)) {
1533
+ var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1534
+ 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"));
1535
+ }
1536
+ };
1537
+ y.parseIdent = function(e) {
1538
+ var t = this.parseIdentNode();
1539
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1540
+ };
1541
+ y.parseIdentNode = function() {
1542
+ var e = this.startNode();
1543
+ 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;
1544
+ };
1545
+ y.parsePrivateIdent = function() {
1546
+ var e = this.startNode();
1547
+ 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;
1548
+ };
1549
+ y.parseYield = function(e) {
1550
+ this.yieldPos || (this.yieldPos = this.start);
1551
+ var t = this.startNode();
1552
+ return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = false, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
1553
+ };
1554
+ y.parseAwait = function(e) {
1555
+ this.awaitPos || (this.awaitPos = this.start);
1556
+ var t = this.startNode();
1557
+ return this.next(), t.argument = this.parseMaybeUnary(null, true, false, e), this.finishNode(t, "AwaitExpression");
1558
+ };
1559
+ var xe = E.prototype;
1560
+ xe.raise = function(e, t) {
1561
+ var i = gt(this.input, e);
1562
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1563
+ var s = new SyntaxError(t);
1564
+ throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1565
+ };
1566
+ xe.raiseRecoverable = xe.raise;
1567
+ xe.curPosition = function() {
1568
+ if (this.options.locations) return new ae(this.curLine, this.pos - this.lineStart);
1569
+ };
1570
+ var W = E.prototype;
1571
+ var $i = function(t) {
1572
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1573
+ };
1574
+ W.enterScope = function(e) {
1575
+ this.scopeStack.push(new $i(e));
1576
+ };
1577
+ W.exitScope = function() {
1578
+ this.scopeStack.pop();
1579
+ };
1580
+ W.treatFunctionsAsVarInScope = function(e) {
1581
+ return e.flags & Z || !this.inModule && e.flags & ne;
1582
+ };
1583
+ W.declareName = function(e, t, i) {
1584
+ var s = false;
1585
+ if (t === J) {
1586
+ var r = this.currentScope();
1587
+ s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & ne && delete this.undefinedExports[e];
1588
+ } else if (t === Tt) {
1589
+ var n = this.currentScope();
1590
+ n.lexical.push(e);
1591
+ } else if (t === _t) {
1592
+ var o = this.currentScope();
1593
+ this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1594
+ } else for (var p = this.scopeStack.length - 1; p >= 0; --p) {
1595
+ var u = this.scopeStack[p];
1596
+ if (u.lexical.indexOf(e) > -1 && !(u.flags & bt && u.lexical[0] === e) || !this.treatFunctionsAsVarInScope(u) && u.functions.indexOf(e) > -1) {
1597
+ s = true;
1598
+ break;
1599
+ }
1600
+ if (u.var.push(e), this.inModule && u.flags & ne && delete this.undefinedExports[e], u.flags & be) break;
1601
+ }
1602
+ s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1603
+ };
1604
+ W.checkLocalExport = function(e) {
1605
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1606
+ };
1607
+ W.currentScope = function() {
1608
+ return this.scopeStack[this.scopeStack.length - 1];
1609
+ };
1610
+ W.currentVarScope = function() {
1611
+ for (var e = this.scopeStack.length - 1; ; e--) {
1612
+ var t = this.scopeStack[e];
1613
+ if (t.flags & (be | oe | X)) return t;
1614
+ }
1615
+ };
1616
+ W.currentThisScope = function() {
1617
+ for (var e = this.scopeStack.length - 1; ; e--) {
1618
+ var t = this.scopeStack[e];
1619
+ if (t.flags & (be | oe | X) && !(t.flags & Ge)) return t;
1620
+ }
1621
+ };
1622
+ var _e = function(t, i, s) {
1623
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new ge(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1624
+ };
1625
+ var ue = E.prototype;
1626
+ ue.startNode = function() {
1627
+ return new _e(this, this.start, this.startLoc);
1628
+ };
1629
+ ue.startNodeAt = function(e, t) {
1630
+ return new _e(this, e, t);
1631
+ };
1632
+ function At(e, t, i, s) {
1633
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1634
+ }
1635
+ ue.finishNode = function(e, t) {
1636
+ return At.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1637
+ };
1638
+ ue.finishNodeAt = function(e, t, i, s) {
1639
+ return At.call(this, e, t, i, s);
1640
+ };
1641
+ ue.copyNode = function(e) {
1642
+ var t = new _e(this, e.start, this.startLoc);
1643
+ for (var i in e) t[i] = e[i];
1644
+ return t;
1645
+ };
1646
+ var Zi = "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";
1647
+ var wt = "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";
1648
+ var Pt = wt + " Extended_Pictographic";
1649
+ var It = Pt;
1650
+ var Nt = It + " EBase EComp EMod EPres ExtPict";
1651
+ var Lt = Nt;
1652
+ var es = Lt;
1653
+ var ts = { 9: wt, 10: Pt, 11: It, 12: Nt, 13: Lt, 14: es };
1654
+ var is = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
1655
+ var ss = { 9: "", 10: "", 11: "", 12: "", 13: "", 14: is };
1656
+ var ct = "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";
1657
+ var 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";
1658
+ var Rt = Vt + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";
1659
+ var Ot = Rt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
1660
+ var Bt = Ot + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
1661
+ var Dt = Bt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
1662
+ var rs = Dt + " " + Zi;
1663
+ var as = { 9: Vt, 10: Rt, 11: Ot, 12: Bt, 13: Dt, 14: rs };
1664
+ var Ft = {};
1665
+ function ns(e) {
1666
+ var t = Ft[e] = { binary: H(ts[e] + " " + ct), binaryOfStrings: H(ss[e]), nonBinary: { General_Category: H(ct), Script: H(as[e]) } };
1667
+ 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;
1668
+ }
1669
+ for (fe = 0, Oe = [9, 10, 11, 12, 13, 14]; fe < Oe.length; fe += 1) lt = Oe[fe], ns(lt);
1670
+ var lt;
1671
+ var fe;
1672
+ var Oe;
1673
+ var l = E.prototype;
1674
+ var ye = function(t, i) {
1675
+ this.parent = t, this.base = i || this;
1676
+ };
1677
+ ye.prototype.separatedFrom = function(t) {
1678
+ for (var i = this; i; i = i.parent) for (var s = t; s; s = s.parent) if (i.base === s.base && i !== s) return true;
1679
+ return false;
1680
+ };
1681
+ ye.prototype.sibling = function() {
1682
+ return new ye(this.parent, this.base);
1683
+ };
1684
+ var U = function(t) {
1685
+ 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 = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1686
+ };
1687
+ U.prototype.reset = function(t, i, s) {
1688
+ var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
1689
+ this.start = t | 0, this.source = i + "", this.flags = s, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = true, this.switchV = true, this.switchN = true) : (this.switchU = n && this.parser.options.ecmaVersion >= 6, this.switchV = false, this.switchN = n && this.parser.options.ecmaVersion >= 9);
1690
+ };
1691
+ U.prototype.raise = function(t) {
1692
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
1693
+ };
1694
+ U.prototype.at = function(t, i) {
1695
+ i === void 0 && (i = false);
1696
+ var s = this.source, r = s.length;
1697
+ if (t >= r) return -1;
1698
+ var n = s.charCodeAt(t);
1699
+ if (!(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r) return n;
1700
+ var o = s.charCodeAt(t + 1);
1701
+ return o >= 56320 && o <= 57343 ? (n << 10) + o - 56613888 : n;
1702
+ };
1703
+ U.prototype.nextIndex = function(t, i) {
1704
+ i === void 0 && (i = false);
1705
+ var s = this.source, r = s.length;
1706
+ if (t >= r) return r;
1707
+ var n = s.charCodeAt(t), o;
1708
+ return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r || (o = s.charCodeAt(t + 1)) < 56320 || o > 57343 ? t + 1 : t + 2;
1709
+ };
1710
+ U.prototype.current = function(t) {
1711
+ return t === void 0 && (t = false), this.at(this.pos, t);
1712
+ };
1713
+ U.prototype.lookahead = function(t) {
1714
+ return t === void 0 && (t = false), this.at(this.nextIndex(this.pos, t), t);
1715
+ };
1716
+ U.prototype.advance = function(t) {
1717
+ t === void 0 && (t = false), this.pos = this.nextIndex(this.pos, t);
1718
+ };
1719
+ U.prototype.eat = function(t, i) {
1720
+ return i === void 0 && (i = false), this.current(i) === t ? (this.advance(i), true) : false;
1721
+ };
1722
+ U.prototype.eatChars = function(t, i) {
1723
+ i === void 0 && (i = false);
1724
+ for (var s = this.pos, r = 0, n = t; r < n.length; r += 1) {
1725
+ var o = n[r], p = this.at(s, i);
1726
+ if (p === -1 || p !== o) return false;
1727
+ s = this.nextIndex(s, i);
1728
+ }
1729
+ return this.pos = s, true;
1730
+ };
1731
+ l.validateRegExpFlags = function(e) {
1732
+ for (var t = e.validFlags, i = e.flags, s = false, r = false, n = 0; n < i.length; n++) {
1733
+ var o = i.charAt(n);
1734
+ t.indexOf(o) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(o, n + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), o === "u" && (s = true), o === "v" && (r = true);
1735
+ }
1736
+ this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1737
+ };
1738
+ function os(e) {
1739
+ for (var t in e) return true;
1740
+ return false;
1741
+ }
1742
+ l.validateRegExpPattern = function(e) {
1743
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && os(e.groupNames) && (e.switchN = true, this.regexp_pattern(e));
1744
+ };
1745
+ l.regexp_pattern = function(e) {
1746
+ e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = false, 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");
1747
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
1748
+ var s = i[t];
1749
+ e.groupNames[s] || e.raise("Invalid named capture referenced");
1750
+ }
1751
+ };
1752
+ l.regexp_disjunction = function(e) {
1753
+ var t = this.options.ecmaVersion >= 16;
1754
+ for (t && (e.branchID = new ye(e.branchID, null)), this.regexp_alternative(e); e.eat(124); ) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
1755
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, true) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
1756
+ };
1757
+ l.regexp_alternative = function(e) {
1758
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e); ) ;
1759
+ };
1760
+ l.regexp_eatTerm = function(e) {
1761
+ return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), true) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), true) : false;
1762
+ };
1763
+ l.regexp_eatAssertion = function(e) {
1764
+ var t = e.pos;
1765
+ if (e.lastAssertionIsQuantifiable = false, e.eat(94) || e.eat(36)) return true;
1766
+ if (e.eat(92)) {
1767
+ if (e.eat(66) || e.eat(98)) return true;
1768
+ e.pos = t;
1769
+ }
1770
+ if (e.eat(40) && e.eat(63)) {
1771
+ var i = false;
1772
+ 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, true;
1773
+ }
1774
+ return e.pos = t, false;
1775
+ };
1776
+ l.regexp_eatQuantifier = function(e, t) {
1777
+ return t === void 0 && (t = false), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), true) : false;
1778
+ };
1779
+ l.regexp_eatQuantifierPrefix = function(e, t) {
1780
+ return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
1781
+ };
1782
+ l.regexp_eatBracedQuantifier = function(e, t) {
1783
+ var i = e.pos;
1784
+ if (e.eat(123)) {
1785
+ var s = 0, r = -1;
1786
+ 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"), true;
1787
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
1788
+ }
1789
+ return false;
1790
+ };
1791
+ l.regexp_eatAtom = function(e) {
1792
+ return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
1793
+ };
1794
+ l.regexp_eatReverseSolidusAtomEscape = function(e) {
1795
+ var t = e.pos;
1796
+ if (e.eat(92)) {
1797
+ if (this.regexp_eatAtomEscape(e)) return true;
1798
+ e.pos = t;
1799
+ }
1800
+ return false;
1801
+ };
1802
+ l.regexp_eatUncapturingGroup = function(e) {
1803
+ var t = e.pos;
1804
+ if (e.eat(40)) {
1805
+ if (e.eat(63)) {
1806
+ if (this.options.ecmaVersion >= 16) {
1807
+ var i = this.regexp_eatModifiers(e), s = e.eat(45);
1808
+ if (i || s) {
1809
+ for (var r = 0; r < i.length; r++) {
1810
+ var n = i.charAt(r);
1811
+ i.indexOf(n, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
1812
+ }
1813
+ if (s) {
1814
+ var o = this.regexp_eatModifiers(e);
1815
+ !i && !o && e.current() === 58 && e.raise("Invalid regular expression modifiers");
1816
+ for (var p = 0; p < o.length; p++) {
1817
+ var u = o.charAt(p);
1818
+ (o.indexOf(u, p + 1) > -1 || i.indexOf(u) > -1) && e.raise("Duplicate regular expression modifiers");
1819
+ }
1820
+ }
1821
+ }
1822
+ }
1823
+ if (e.eat(58)) {
1824
+ if (this.regexp_disjunction(e), e.eat(41)) return true;
1825
+ e.raise("Unterminated group");
1826
+ }
1827
+ }
1828
+ e.pos = t;
1829
+ }
1830
+ return false;
1831
+ };
1832
+ l.regexp_eatCapturingGroup = function(e) {
1833
+ if (e.eat(40)) {
1834
+ 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, true;
1835
+ e.raise("Unterminated group");
1836
+ }
1837
+ return false;
1838
+ };
1839
+ l.regexp_eatModifiers = function(e) {
1840
+ for (var t = "", i = 0; (i = e.current()) !== -1 && us(i); ) t += G(i), e.advance();
1841
+ return t;
1842
+ };
1843
+ function us(e) {
1844
+ return e === 105 || e === 109 || e === 115;
1845
+ }
1846
+ l.regexp_eatExtendedAtom = function(e) {
1847
+ 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);
1848
+ };
1849
+ l.regexp_eatInvalidBracedQuantifier = function(e) {
1850
+ return this.regexp_eatBracedQuantifier(e, true) && e.raise("Nothing to repeat"), false;
1851
+ };
1852
+ l.regexp_eatSyntaxCharacter = function(e) {
1853
+ var t = e.current();
1854
+ return Mt(t) ? (e.lastIntValue = t, e.advance(), true) : false;
1855
+ };
1856
+ function Mt(e) {
1857
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
1858
+ }
1859
+ l.regexp_eatPatternCharacters = function(e) {
1860
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !Mt(i); ) e.advance();
1861
+ return e.pos !== t;
1862
+ };
1863
+ l.regexp_eatExtendedPatternCharacter = function(e) {
1864
+ var t = e.current();
1865
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), true) : false;
1866
+ };
1867
+ l.regexp_groupSpecifier = function(e) {
1868
+ if (e.eat(63)) {
1869
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
1870
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
1871
+ if (i) if (t) for (var s = 0, r = i; s < r.length; s += 1) {
1872
+ var n = r[s];
1873
+ n.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
1874
+ }
1875
+ else e.raise("Duplicate capture group name");
1876
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = true;
1877
+ }
1878
+ };
1879
+ l.regexp_eatGroupName = function(e) {
1880
+ if (e.lastStringValue = "", e.eat(60)) {
1881
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return true;
1882
+ e.raise("Invalid capture group name");
1883
+ }
1884
+ return false;
1885
+ };
1886
+ l.regexp_eatRegExpIdentifierName = function(e) {
1887
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
1888
+ for (e.lastStringValue += G(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); ) e.lastStringValue += G(e.lastIntValue);
1889
+ return true;
1890
+ }
1891
+ return false;
1892
+ };
1893
+ l.regexp_eatRegExpIdentifierStart = function(e) {
1894
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
1895
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ps(s) ? (e.lastIntValue = s, true) : (e.pos = t, false);
1896
+ };
1897
+ function ps(e) {
1898
+ return M(e, true) || e === 36 || e === 95;
1899
+ }
1900
+ l.regexp_eatRegExpIdentifierPart = function(e) {
1901
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
1902
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), hs(s) ? (e.lastIntValue = s, true) : (e.pos = t, false);
1903
+ };
1904
+ function hs(e) {
1905
+ return K(e, true) || e === 36 || e === 95 || e === 8204 || e === 8205;
1906
+ }
1907
+ l.regexp_eatAtomEscape = function(e) {
1908
+ return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? true : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), false);
1909
+ };
1910
+ l.regexp_eatBackReference = function(e) {
1911
+ var t = e.pos;
1912
+ if (this.regexp_eatDecimalEscape(e)) {
1913
+ var i = e.lastIntValue;
1914
+ if (e.switchU) return i > e.maxBackReference && (e.maxBackReference = i), true;
1915
+ if (i <= e.numCapturingParens) return true;
1916
+ e.pos = t;
1917
+ }
1918
+ return false;
1919
+ };
1920
+ l.regexp_eatKGroupName = function(e) {
1921
+ if (e.eat(107)) {
1922
+ if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), true;
1923
+ e.raise("Invalid named reference");
1924
+ }
1925
+ return false;
1926
+ };
1927
+ l.regexp_eatCharacterEscape = function(e) {
1928
+ return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, false) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
1929
+ };
1930
+ l.regexp_eatCControlLetter = function(e) {
1931
+ var t = e.pos;
1932
+ if (e.eat(99)) {
1933
+ if (this.regexp_eatControlLetter(e)) return true;
1934
+ e.pos = t;
1935
+ }
1936
+ return false;
1937
+ };
1938
+ l.regexp_eatZero = function(e) {
1939
+ return e.current() === 48 && !Te(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), true) : false;
1940
+ };
1941
+ l.regexp_eatControlEscape = function(e) {
1942
+ var t = e.current();
1943
+ return t === 116 ? (e.lastIntValue = 9, e.advance(), true) : t === 110 ? (e.lastIntValue = 10, e.advance(), true) : t === 118 ? (e.lastIntValue = 11, e.advance(), true) : t === 102 ? (e.lastIntValue = 12, e.advance(), true) : t === 114 ? (e.lastIntValue = 13, e.advance(), true) : false;
1944
+ };
1945
+ l.regexp_eatControlLetter = function(e) {
1946
+ var t = e.current();
1947
+ return jt(t) ? (e.lastIntValue = t % 32, e.advance(), true) : false;
1948
+ };
1949
+ function jt(e) {
1950
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
1951
+ }
1952
+ l.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
1953
+ t === void 0 && (t = false);
1954
+ var i = e.pos, s = t || e.switchU;
1955
+ if (e.eat(117)) {
1956
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
1957
+ var r = e.lastIntValue;
1958
+ if (s && r >= 55296 && r <= 56319) {
1959
+ var n = e.pos;
1960
+ if (e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4)) {
1961
+ var o = e.lastIntValue;
1962
+ if (o >= 56320 && o <= 57343) return e.lastIntValue = (r - 55296) * 1024 + (o - 56320) + 65536, true;
1963
+ }
1964
+ e.pos = n, e.lastIntValue = r;
1965
+ }
1966
+ return true;
1967
+ }
1968
+ if (s && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && cs(e.lastIntValue)) return true;
1969
+ s && e.raise("Invalid unicode escape"), e.pos = i;
1970
+ }
1971
+ return false;
1972
+ };
1973
+ function cs(e) {
1974
+ return e >= 0 && e <= 1114111;
1975
+ }
1976
+ l.regexp_eatIdentityEscape = function(e) {
1977
+ if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? true : e.eat(47) ? (e.lastIntValue = 47, true) : false;
1978
+ var t = e.current();
1979
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), true) : false;
1980
+ };
1981
+ l.regexp_eatDecimalEscape = function(e) {
1982
+ e.lastIntValue = 0;
1983
+ var t = e.current();
1984
+ if (t >= 49 && t <= 57) {
1985
+ do
1986
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
1987
+ while ((t = e.current()) >= 48 && t <= 57);
1988
+ return true;
1989
+ }
1990
+ return false;
1991
+ };
1992
+ var Ut = 0;
1993
+ var q = 1;
1994
+ var B = 2;
1995
+ l.regexp_eatCharacterClassEscape = function(e) {
1996
+ var t = e.current();
1997
+ if (ls(t)) return e.lastIntValue = -1, e.advance(), q;
1998
+ var i = false;
1999
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
2000
+ e.lastIntValue = -1, e.advance();
2001
+ var s;
2002
+ if (e.eat(123) && (s = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return i && s === B && e.raise("Invalid property name"), s;
2003
+ e.raise("Invalid property name");
2004
+ }
2005
+ return Ut;
2006
+ };
2007
+ function ls(e) {
2008
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2009
+ }
2010
+ l.regexp_eatUnicodePropertyValueExpression = function(e) {
2011
+ var t = e.pos;
2012
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
2013
+ var i = e.lastStringValue;
2014
+ if (this.regexp_eatUnicodePropertyValue(e)) {
2015
+ var s = e.lastStringValue;
2016
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), q;
2017
+ }
2018
+ }
2019
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2020
+ var r = e.lastStringValue;
2021
+ return this.regexp_validateUnicodePropertyNameOrValue(e, r);
2022
+ }
2023
+ return Ut;
2024
+ };
2025
+ l.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2026
+ $(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
2027
+ };
2028
+ l.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2029
+ if (e.unicodeProperties.binary.test(t)) return q;
2030
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return B;
2031
+ e.raise("Invalid property name");
2032
+ };
2033
+ l.regexp_eatUnicodePropertyName = function(e) {
2034
+ var t = 0;
2035
+ for (e.lastStringValue = ""; Gt(t = e.current()); ) e.lastStringValue += G(t), e.advance();
2036
+ return e.lastStringValue !== "";
2037
+ };
2038
+ function Gt(e) {
2039
+ return jt(e) || e === 95;
2040
+ }
2041
+ l.regexp_eatUnicodePropertyValue = function(e) {
2042
+ var t = 0;
2043
+ for (e.lastStringValue = ""; fs(t = e.current()); ) e.lastStringValue += G(t), e.advance();
2044
+ return e.lastStringValue !== "";
2045
+ };
2046
+ function fs(e) {
2047
+ return Gt(e) || Te(e);
2048
+ }
2049
+ l.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2050
+ return this.regexp_eatUnicodePropertyValue(e);
2051
+ };
2052
+ l.regexp_eatCharacterClass = function(e) {
2053
+ if (e.eat(91)) {
2054
+ var t = e.eat(94), i = this.regexp_classContents(e);
2055
+ return e.eat(93) || e.raise("Unterminated character class"), t && i === B && e.raise("Negated character class may contain strings"), true;
2056
+ }
2057
+ return false;
2058
+ };
2059
+ l.regexp_classContents = function(e) {
2060
+ return e.current() === 93 ? q : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), q);
2061
+ };
2062
+ l.regexp_nonEmptyClassRanges = function(e) {
2063
+ for (; this.regexp_eatClassAtom(e); ) {
2064
+ var t = e.lastIntValue;
2065
+ if (e.eat(45) && this.regexp_eatClassAtom(e)) {
2066
+ var i = e.lastIntValue;
2067
+ 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");
2068
+ }
2069
+ }
2070
+ };
2071
+ l.regexp_eatClassAtom = function(e) {
2072
+ var t = e.pos;
2073
+ if (e.eat(92)) {
2074
+ if (this.regexp_eatClassEscape(e)) return true;
2075
+ if (e.switchU) {
2076
+ var i = e.current();
2077
+ (i === 99 || Ht(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2078
+ }
2079
+ e.pos = t;
2080
+ }
2081
+ var s = e.current();
2082
+ return s !== 93 ? (e.lastIntValue = s, e.advance(), true) : false;
2083
+ };
2084
+ l.regexp_eatClassEscape = function(e) {
2085
+ var t = e.pos;
2086
+ if (e.eat(98)) return e.lastIntValue = 8, true;
2087
+ if (e.switchU && e.eat(45)) return e.lastIntValue = 45, true;
2088
+ if (!e.switchU && e.eat(99)) {
2089
+ if (this.regexp_eatClassControlLetter(e)) return true;
2090
+ e.pos = t;
2091
+ }
2092
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2093
+ };
2094
+ l.regexp_classSetExpression = function(e) {
2095
+ var t = q, i;
2096
+ if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
2097
+ i === B && (t = B);
2098
+ for (var s = e.pos; e.eatChars([38, 38]); ) {
2099
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2100
+ i !== B && (t = q);
2101
+ continue;
2102
+ }
2103
+ e.raise("Invalid character in character class");
2104
+ }
2105
+ if (s !== e.pos) return t;
2106
+ for (; e.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2107
+ if (s !== e.pos) return t;
2108
+ } else e.raise("Invalid character in character class");
2109
+ for (; ; ) if (!this.regexp_eatClassSetRange(e)) {
2110
+ if (i = this.regexp_eatClassSetOperand(e), !i) return t;
2111
+ i === B && (t = B);
2112
+ }
2113
+ };
2114
+ l.regexp_eatClassSetRange = function(e) {
2115
+ var t = e.pos;
2116
+ if (this.regexp_eatClassSetCharacter(e)) {
2117
+ var i = e.lastIntValue;
2118
+ if (e.eat(45) && this.regexp_eatClassSetCharacter(e)) {
2119
+ var s = e.lastIntValue;
2120
+ return i !== -1 && s !== -1 && i > s && e.raise("Range out of order in character class"), true;
2121
+ }
2122
+ e.pos = t;
2123
+ }
2124
+ return false;
2125
+ };
2126
+ l.regexp_eatClassSetOperand = function(e) {
2127
+ return this.regexp_eatClassSetCharacter(e) ? q : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2128
+ };
2129
+ l.regexp_eatNestedClass = function(e) {
2130
+ var t = e.pos;
2131
+ if (e.eat(91)) {
2132
+ var i = e.eat(94), s = this.regexp_classContents(e);
2133
+ if (e.eat(93)) return i && s === B && e.raise("Negated character class may contain strings"), s;
2134
+ e.pos = t;
2135
+ }
2136
+ if (e.eat(92)) {
2137
+ var r = this.regexp_eatCharacterClassEscape(e);
2138
+ if (r) return r;
2139
+ e.pos = t;
2140
+ }
2141
+ return null;
2142
+ };
2143
+ l.regexp_eatClassStringDisjunction = function(e) {
2144
+ var t = e.pos;
2145
+ if (e.eatChars([92, 113])) {
2146
+ if (e.eat(123)) {
2147
+ var i = this.regexp_classStringDisjunctionContents(e);
2148
+ if (e.eat(125)) return i;
2149
+ } else e.raise("Invalid escape");
2150
+ e.pos = t;
2151
+ }
2152
+ return null;
2153
+ };
2154
+ l.regexp_classStringDisjunctionContents = function(e) {
2155
+ for (var t = this.regexp_classString(e); e.eat(124); ) this.regexp_classString(e) === B && (t = B);
2156
+ return t;
2157
+ };
2158
+ l.regexp_classString = function(e) {
2159
+ for (var t = 0; this.regexp_eatClassSetCharacter(e); ) t++;
2160
+ return t === 1 ? q : B;
2161
+ };
2162
+ l.regexp_eatClassSetCharacter = function(e) {
2163
+ var t = e.pos;
2164
+ if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? true : e.eat(98) ? (e.lastIntValue = 8, true) : (e.pos = t, false);
2165
+ var i = e.current();
2166
+ return i < 0 || i === e.lookahead() && ds(i) || ms(i) ? false : (e.advance(), e.lastIntValue = i, true);
2167
+ };
2168
+ function ds(e) {
2169
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2170
+ }
2171
+ function ms(e) {
2172
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2173
+ }
2174
+ l.regexp_eatClassSetReservedPunctuator = function(e) {
2175
+ var t = e.current();
2176
+ return xs(t) ? (e.lastIntValue = t, e.advance(), true) : false;
2177
+ };
2178
+ function xs(e) {
2179
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2180
+ }
2181
+ l.regexp_eatClassControlLetter = function(e) {
2182
+ var t = e.current();
2183
+ return Te(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), true) : false;
2184
+ };
2185
+ l.regexp_eatHexEscapeSequence = function(e) {
2186
+ var t = e.pos;
2187
+ if (e.eat(120)) {
2188
+ if (this.regexp_eatFixedHexDigits(e, 2)) return true;
2189
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
2190
+ }
2191
+ return false;
2192
+ };
2193
+ l.regexp_eatDecimalDigits = function(e) {
2194
+ var t = e.pos, i = 0;
2195
+ for (e.lastIntValue = 0; Te(i = e.current()); ) e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2196
+ return e.pos !== t;
2197
+ };
2198
+ function Te(e) {
2199
+ return e >= 48 && e <= 57;
2200
+ }
2201
+ l.regexp_eatHexDigits = function(e) {
2202
+ var t = e.pos, i = 0;
2203
+ for (e.lastIntValue = 0; qt(i = e.current()); ) e.lastIntValue = 16 * e.lastIntValue + Jt(i), e.advance();
2204
+ return e.pos !== t;
2205
+ };
2206
+ function qt(e) {
2207
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2208
+ }
2209
+ function Jt(e) {
2210
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2211
+ }
2212
+ l.regexp_eatLegacyOctalEscapeSequence = function(e) {
2213
+ if (this.regexp_eatOctalDigit(e)) {
2214
+ var t = e.lastIntValue;
2215
+ if (this.regexp_eatOctalDigit(e)) {
2216
+ var i = e.lastIntValue;
2217
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
2218
+ } else e.lastIntValue = t;
2219
+ return true;
2220
+ }
2221
+ return false;
2222
+ };
2223
+ l.regexp_eatOctalDigit = function(e) {
2224
+ var t = e.current();
2225
+ return Ht(t) ? (e.lastIntValue = t - 48, e.advance(), true) : (e.lastIntValue = 0, false);
2226
+ };
2227
+ function Ht(e) {
2228
+ return e >= 48 && e <= 55;
2229
+ }
2230
+ l.regexp_eatFixedHexDigits = function(e, t) {
2231
+ var i = e.pos;
2232
+ e.lastIntValue = 0;
2233
+ for (var s = 0; s < t; ++s) {
2234
+ var r = e.current();
2235
+ if (!qt(r)) return e.pos = i, false;
2236
+ e.lastIntValue = 16 * e.lastIntValue + Jt(r), e.advance();
2237
+ }
2238
+ return true;
2239
+ };
2240
+ var Ke = function(t) {
2241
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new ge(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2242
+ };
2243
+ var b = E.prototype;
2244
+ b.next = function(e) {
2245
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ke(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2246
+ };
2247
+ b.getToken = function() {
2248
+ return this.next(), new Ke(this);
2249
+ };
2250
+ typeof Symbol < "u" && (b[Symbol.iterator] = function() {
2251
+ var e = this;
2252
+ return { next: function() {
2253
+ var t = e.getToken();
2254
+ return { done: t.type === a.eof, value: t };
2255
+ } };
2256
+ });
2257
+ b.nextToken = function() {
2258
+ var e = this.curContext();
2259
+ 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);
2260
+ if (e.override) return e.override(this);
2261
+ this.readToken(this.fullCharCodeAtPos());
2262
+ };
2263
+ b.readToken = function(e) {
2264
+ return M(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2265
+ };
2266
+ b.fullCharCodeAtPos = function() {
2267
+ var e = this.input.charCodeAt(this.pos);
2268
+ if (e <= 55295 || e >= 56320) return e;
2269
+ var t = this.input.charCodeAt(this.pos + 1);
2270
+ return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
2271
+ };
2272
+ b.skipBlockComment = function() {
2273
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2274
+ 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 = mt(this.input, r, this.pos)) > -1; ) ++this.curLine, r = this.lineStart = s;
2275
+ this.options.onComment && this.options.onComment(true, this.input.slice(t + 2, i), t, this.pos, e, this.curPosition());
2276
+ };
2277
+ b.skipLineComment = function(e) {
2278
+ 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);
2279
+ this.options.onComment && this.options.onComment(false, this.input.slice(t + e, this.pos), t, this.pos, i, this.curPosition());
2280
+ };
2281
+ b.skipSpace = function() {
2282
+ e: for (; this.pos < this.input.length; ) {
2283
+ var e = this.input.charCodeAt(this.pos);
2284
+ switch (e) {
2285
+ case 32:
2286
+ case 160:
2287
+ ++this.pos;
2288
+ break;
2289
+ case 13:
2290
+ this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
2291
+ case 10:
2292
+ case 8232:
2293
+ case 8233:
2294
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
2295
+ break;
2296
+ case 47:
2297
+ switch (this.input.charCodeAt(this.pos + 1)) {
2298
+ case 42:
2299
+ this.skipBlockComment();
2300
+ break;
2301
+ case 47:
2302
+ this.skipLineComment(2);
2303
+ break;
2304
+ default:
2305
+ break e;
2306
+ }
2307
+ break;
2308
+ default:
2309
+ if (e > 8 && e < 14 || e >= 5760 && xt.test(String.fromCharCode(e))) ++this.pos;
2310
+ else break e;
2311
+ }
2312
+ }
2313
+ };
2314
+ b.finishToken = function(e, t) {
2315
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2316
+ var i = this.type;
2317
+ this.type = e, this.value = t, this.updateContext(i);
2318
+ };
2319
+ b.readToken_dot = function() {
2320
+ var e = this.input.charCodeAt(this.pos + 1);
2321
+ if (e >= 48 && e <= 57) return this.readNumber(true);
2322
+ var t = this.input.charCodeAt(this.pos + 2);
2323
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
2324
+ };
2325
+ b.readToken_slash = function() {
2326
+ var e = this.input.charCodeAt(this.pos + 1);
2327
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
2328
+ };
2329
+ b.readToken_mult_modulo_exp = function(e) {
2330
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
2331
+ 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);
2332
+ };
2333
+ b.readToken_pipe_amp = function(e) {
2334
+ var t = this.input.charCodeAt(this.pos + 1);
2335
+ if (t === e) {
2336
+ if (this.options.ecmaVersion >= 12) {
2337
+ var i = this.input.charCodeAt(this.pos + 2);
2338
+ if (i === 61) return this.finishOp(a.assign, 3);
2339
+ }
2340
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
2341
+ }
2342
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
2343
+ };
2344
+ b.readToken_caret = function() {
2345
+ var e = this.input.charCodeAt(this.pos + 1);
2346
+ return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
2347
+ };
2348
+ b.readToken_plus_min = function(e) {
2349
+ var t = this.input.charCodeAt(this.pos + 1);
2350
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || V.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);
2351
+ };
2352
+ b.readToken_lt_gt = function(e) {
2353
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
2354
+ 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));
2355
+ };
2356
+ b.readToken_eq_excl = function(e) {
2357
+ var t = this.input.charCodeAt(this.pos + 1);
2358
+ 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);
2359
+ };
2360
+ b.readToken_question = function() {
2361
+ var e = this.options.ecmaVersion;
2362
+ if (e >= 11) {
2363
+ var t = this.input.charCodeAt(this.pos + 1);
2364
+ if (t === 46) {
2365
+ var i = this.input.charCodeAt(this.pos + 2);
2366
+ if (i < 48 || i > 57) return this.finishOp(a.questionDot, 2);
2367
+ }
2368
+ if (t === 63) {
2369
+ if (e >= 12) {
2370
+ var s = this.input.charCodeAt(this.pos + 2);
2371
+ if (s === 61) return this.finishOp(a.assign, 3);
2372
+ }
2373
+ return this.finishOp(a.coalesce, 2);
2374
+ }
2375
+ }
2376
+ return this.finishOp(a.question, 1);
2377
+ };
2378
+ b.readToken_numberSign = function() {
2379
+ var e = this.options.ecmaVersion, t = 35;
2380
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), M(t, true) || t === 92)) return this.finishToken(a.privateId, this.readWord1());
2381
+ this.raise(this.pos, "Unexpected character '" + G(t) + "'");
2382
+ };
2383
+ b.getTokenFromCode = function(e) {
2384
+ switch (e) {
2385
+ case 46:
2386
+ return this.readToken_dot();
2387
+ case 40:
2388
+ return ++this.pos, this.finishToken(a.parenL);
2389
+ case 41:
2390
+ return ++this.pos, this.finishToken(a.parenR);
2391
+ case 59:
2392
+ return ++this.pos, this.finishToken(a.semi);
2393
+ case 44:
2394
+ return ++this.pos, this.finishToken(a.comma);
2395
+ case 91:
2396
+ return ++this.pos, this.finishToken(a.bracketL);
2397
+ case 93:
2398
+ return ++this.pos, this.finishToken(a.bracketR);
2399
+ case 123:
2400
+ return ++this.pos, this.finishToken(a.braceL);
2401
+ case 125:
2402
+ return ++this.pos, this.finishToken(a.braceR);
2403
+ case 58:
2404
+ return ++this.pos, this.finishToken(a.colon);
2405
+ case 96:
2406
+ if (this.options.ecmaVersion < 6) break;
2407
+ return ++this.pos, this.finishToken(a.backQuote);
2408
+ case 48:
2409
+ var t = this.input.charCodeAt(this.pos + 1);
2410
+ if (t === 120 || t === 88) return this.readRadixNumber(16);
2411
+ if (this.options.ecmaVersion >= 6) {
2412
+ if (t === 111 || t === 79) return this.readRadixNumber(8);
2413
+ if (t === 98 || t === 66) return this.readRadixNumber(2);
2414
+ }
2415
+ case 49:
2416
+ case 50:
2417
+ case 51:
2418
+ case 52:
2419
+ case 53:
2420
+ case 54:
2421
+ case 55:
2422
+ case 56:
2423
+ case 57:
2424
+ return this.readNumber(false);
2425
+ case 34:
2426
+ case 39:
2427
+ return this.readString(e);
2428
+ case 47:
2429
+ return this.readToken_slash();
2430
+ case 37:
2431
+ case 42:
2432
+ return this.readToken_mult_modulo_exp(e);
2433
+ case 124:
2434
+ case 38:
2435
+ return this.readToken_pipe_amp(e);
2436
+ case 94:
2437
+ return this.readToken_caret();
2438
+ case 43:
2439
+ case 45:
2440
+ return this.readToken_plus_min(e);
2441
+ case 60:
2442
+ case 62:
2443
+ return this.readToken_lt_gt(e);
2444
+ case 61:
2445
+ case 33:
2446
+ return this.readToken_eq_excl(e);
2447
+ case 63:
2448
+ return this.readToken_question();
2449
+ case 126:
2450
+ return this.finishOp(a.prefix, 1);
2451
+ case 35:
2452
+ return this.readToken_numberSign();
2453
+ }
2454
+ this.raise(this.pos, "Unexpected character '" + G(e) + "'");
2455
+ };
2456
+ b.finishOp = function(e, t) {
2457
+ var i = this.input.slice(this.pos, this.pos + t);
2458
+ return this.pos += t, this.finishToken(e, i);
2459
+ };
2460
+ b.readRegexp = function() {
2461
+ for (var e, t, i = this.pos; ; ) {
2462
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
2463
+ var s = this.input.charAt(this.pos);
2464
+ if (V.test(s) && this.raise(i, "Unterminated regular expression"), e) e = false;
2465
+ else {
2466
+ if (s === "[") t = true;
2467
+ else if (s === "]" && t) t = false;
2468
+ else if (s === "/" && !t) break;
2469
+ e = s === "\\";
2470
+ }
2471
+ ++this.pos;
2472
+ }
2473
+ var r = this.input.slice(i, this.pos);
2474
+ ++this.pos;
2475
+ var n = this.pos, o = this.readWord1();
2476
+ this.containsEsc && this.unexpected(n);
2477
+ var p = this.regexpState || (this.regexpState = new U(this));
2478
+ p.reset(i, r, o), this.validateRegExpFlags(p), this.validateRegExpPattern(p);
2479
+ var u = null;
2480
+ try {
2481
+ u = new RegExp(r, o);
2482
+ } catch (e2) {
2483
+ }
2484
+ return this.finishToken(a.regexp, { pattern: r, flags: o, value: u });
2485
+ };
2486
+ b.readInt = function(e, t, i) {
2487
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, p = 0, u = 0, c = _nullishCoalesce(t, () => ( 1 / 0)); u < c; ++u, ++this.pos) {
2488
+ var f = this.input.charCodeAt(this.pos), v = void 0;
2489
+ if (s && f === 95) {
2490
+ 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"), u === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), p = f;
2491
+ continue;
2492
+ }
2493
+ if (f >= 97 ? v = f - 97 + 10 : f >= 65 ? v = f - 65 + 10 : f >= 48 && f <= 57 ? v = f - 48 : v = 1 / 0, v >= e) break;
2494
+ p = f, o = o * e + v;
2495
+ }
2496
+ return s && p === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : o;
2497
+ };
2498
+ function ys(e, t) {
2499
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2500
+ }
2501
+ function Kt(e) {
2502
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
2503
+ }
2504
+ b.readRadixNumber = function(e) {
2505
+ var t = this.pos;
2506
+ this.pos += 2;
2507
+ var i = this.readInt(e);
2508
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Kt(this.input.slice(t, this.pos)), ++this.pos) : M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2509
+ };
2510
+ b.readNumber = function(e) {
2511
+ var t = this.pos;
2512
+ !e && this.readInt(10, void 0, true) === null && this.raise(t, "Invalid number");
2513
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
2514
+ i && this.strict && this.raise(t, "Invalid number");
2515
+ var s = this.input.charCodeAt(this.pos);
2516
+ if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
2517
+ var r = Kt(this.input.slice(t, this.pos));
2518
+ return ++this.pos, M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2519
+ }
2520
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = false), 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")), M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2521
+ var n = ys(this.input.slice(t, this.pos), i);
2522
+ return this.finishToken(a.num, n);
2523
+ };
2524
+ b.readCodePoint = function() {
2525
+ var e = this.input.charCodeAt(this.pos), t;
2526
+ if (e === 123) {
2527
+ this.options.ecmaVersion < 6 && this.unexpected();
2528
+ var i = ++this.pos;
2529
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
2530
+ } else t = this.readHexChar(4);
2531
+ return t;
2532
+ };
2533
+ b.readString = function(e) {
2534
+ for (var t = "", i = ++this.pos; ; ) {
2535
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2536
+ var s = this.input.charCodeAt(this.pos);
2537
+ if (s === e) break;
2538
+ s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(false), 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);
2539
+ }
2540
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
2541
+ };
2542
+ var Wt = {};
2543
+ b.tryReadTemplateToken = function() {
2544
+ this.inTemplateElement = true;
2545
+ try {
2546
+ this.readTmplToken();
2547
+ } catch (e) {
2548
+ if (e === Wt) this.readInvalidTemplateToken();
2549
+ else throw e;
2550
+ }
2551
+ this.inTemplateElement = false;
2552
+ };
2553
+ b.invalidStringToken = function(e, t) {
2554
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Wt;
2555
+ this.raise(e, t);
2556
+ };
2557
+ b.readTmplToken = function() {
2558
+ for (var e = "", t = this.pos; ; ) {
2559
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2560
+ var i = this.input.charCodeAt(this.pos);
2561
+ 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));
2562
+ if (i === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(true), t = this.pos;
2563
+ else if (Y(i)) {
2564
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
2565
+ case 13:
2566
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2567
+ case 10:
2568
+ e += `
2569
+ `;
2570
+ break;
2571
+ default:
2572
+ e += String.fromCharCode(i);
2573
+ break;
2574
+ }
2575
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
2576
+ } else ++this.pos;
2577
+ }
2578
+ };
2579
+ b.readInvalidTemplateToken = function() {
2580
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2581
+ case "\\":
2582
+ ++this.pos;
2583
+ break;
2584
+ case "$":
2585
+ if (this.input[this.pos + 1] !== "{") break;
2586
+ case "`":
2587
+ return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
2588
+ case "\r":
2589
+ this.input[this.pos + 1] === `
2590
+ ` && ++this.pos;
2591
+ case `
2592
+ `:
2593
+ case "\u2028":
2594
+ case "\u2029":
2595
+ ++this.curLine, this.lineStart = this.pos + 1;
2596
+ break;
2597
+ }
2598
+ this.raise(this.start, "Unterminated template");
2599
+ };
2600
+ b.readEscapedChar = function(e) {
2601
+ var t = this.input.charCodeAt(++this.pos);
2602
+ switch (++this.pos, t) {
2603
+ case 110:
2604
+ return `
2605
+ `;
2606
+ case 114:
2607
+ return "\r";
2608
+ case 120:
2609
+ return String.fromCharCode(this.readHexChar(2));
2610
+ case 117:
2611
+ return G(this.readCodePoint());
2612
+ case 116:
2613
+ return " ";
2614
+ case 98:
2615
+ return "\b";
2616
+ case 118:
2617
+ return "\v";
2618
+ case 102:
2619
+ return "\f";
2620
+ case 13:
2621
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2622
+ case 10:
2623
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2624
+ case 56:
2625
+ case 57:
2626
+ if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e) {
2627
+ var i = this.pos - 1;
2628
+ this.invalidStringToken(i, "Invalid escape sequence in template string");
2629
+ }
2630
+ default:
2631
+ if (t >= 48 && t <= 55) {
2632
+ var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
2633
+ 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);
2634
+ }
2635
+ return Y(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
2636
+ }
2637
+ };
2638
+ b.readHexChar = function(e) {
2639
+ var t = this.pos, i = this.readInt(16, e);
2640
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
2641
+ };
2642
+ b.readWord1 = function() {
2643
+ this.containsEsc = false;
2644
+ for (var e = "", t = true, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2645
+ var r = this.fullCharCodeAtPos();
2646
+ if (K(r, s)) this.pos += r <= 65535 ? 1 : 2;
2647
+ else if (r === 92) {
2648
+ this.containsEsc = true, e += this.input.slice(i, this.pos);
2649
+ var n = this.pos;
2650
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2651
+ var o = this.readCodePoint();
2652
+ (t ? M : K)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += G(o), i = this.pos;
2653
+ } else break;
2654
+ t = false;
2655
+ }
2656
+ return e + this.input.slice(i, this.pos);
2657
+ };
2658
+ b.readWord = function() {
2659
+ var e = this.readWord1(), t = a.name;
2660
+ return this.keywords.test(e) && (t = je[e]), this.finishToken(t, e);
2661
+ };
2662
+ var gs = "8.15.0";
2663
+ E.acorn = { Parser: E, version: gs, defaultOptions: De, Position: ae, SourceLocation: ge, getLineInfo: gt, Node: _e, TokenType: _, tokTypes: a, keywordTypes: je, TokContext: F, tokContexts: C, isIdentifierChar: K, isIdentifierStart: M, Token: Ke, isNewLine: Y, lineBreak: V, lineBreakG: Ui, nonASCIIwhitespace: xt };
2664
+ var bi = ot(Xe(), 1);
2665
+ function Cs(e, t) {
2666
+ let i = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
2667
+ return Object.assign(i, t);
2668
+ }
2669
+ var Ce = Cs;
2670
+ function Es(e) {
2671
+ let t = [];
2672
+ for (let i of e) try {
2673
+ return i();
2674
+ } catch (s) {
2675
+ t.push(s);
2676
+ }
2677
+ throw Object.assign(new Error("All combinations failed"), { errors: t });
2678
+ }
2679
+ var Ee = Es;
2680
+ var ks = (e, t, i) => {
2681
+ if (!(e && t == null)) {
2682
+ if (t.findLast) return t.findLast(i);
2683
+ for (let s = t.length - 1; s >= 0; s--) {
2684
+ let r = t[s];
2685
+ if (i(r, s, t)) return r;
2686
+ }
2687
+ }
2688
+ };
2689
+ var $t = ks;
2690
+ var As = (e, t, i) => {
2691
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[i < 0 ? t.length + i : i] : t.at(i);
2692
+ };
2693
+ var te = As;
2694
+ var ws = new Proxy(() => {
2695
+ }, { get: () => ws });
2696
+ function w(e) {
2697
+ var s, r, n;
2698
+ let t = _nullishCoalesce(((s = e.range) == null ? void 0 : s[0]), () => ( e.start)), i = (n = _nullishCoalesce(((r = e.declaration) == null ? void 0 : r.decorators), () => ( e.decorators))) == null ? void 0 : n[0];
2699
+ return i ? Math.min(w(i), t) : t;
2700
+ }
2701
+ function k(e) {
2702
+ var i;
2703
+ return _nullishCoalesce(((i = e.range) == null ? void 0 : i[1]), () => ( e.end));
2704
+ }
2705
+ function Ps(e) {
2706
+ let t = new Set(e);
2707
+ return (i) => t.has(i == null ? void 0 : i.type);
2708
+ }
2709
+ var ie = Ps;
2710
+ function Is(e, t, i) {
2711
+ let s = e.originalText.slice(t, i);
2712
+ for (let r of e[Symbol.for("comments")]) {
2713
+ let n = w(r);
2714
+ if (n > i) break;
2715
+ let o = k(r);
2716
+ if (o < t) continue;
2717
+ let p = o - n;
2718
+ s = s.slice(0, n - t) + " ".repeat(p) + s.slice(o - t);
2719
+ }
2720
+ return s;
2721
+ }
2722
+ var Zt = Is;
2723
+ var Ns = ie(["Block", "CommentBlock", "MultiLine"]);
2724
+ var z = Ns;
2725
+ var Ls = ie(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
2726
+ var ze = Ls;
2727
+ var Qe = /* @__PURE__ */ new WeakMap();
2728
+ function Vs(e) {
2729
+ return Qe.has(e) || Qe.set(e, z(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Qe.get(e);
2730
+ }
2731
+ var ei = Vs;
2732
+ function Rs(e) {
2733
+ if (!z(e)) return false;
2734
+ let t = `*${e.value}*`.split(`
2735
+ `);
2736
+ return t.length > 1 && t.every((i) => i.trimStart()[0] === "*");
2737
+ }
2738
+ var Ye = /* @__PURE__ */ new WeakMap();
2739
+ function Os(e) {
2740
+ return Ye.has(e) || Ye.set(e, Rs(e)), Ye.get(e);
2741
+ }
2742
+ var $e = Os;
2743
+ function Bs(e) {
2744
+ if (e.length < 2) return;
2745
+ let t;
2746
+ for (let i = e.length - 1; i >= 0; i--) {
2747
+ let s = e[i];
2748
+ if (t && k(s) === w(t) && $e(s) && $e(t) && (e.splice(i + 1, 1), s.value += "*//*" + t.value, s.range = [w(s), k(t)]), !ze(s) && !z(s)) throw new TypeError(`Unknown comment type: "${s.type}".`);
2749
+ t = s;
2750
+ }
2751
+ }
2752
+ var ti = Bs;
2753
+ var he = null;
2754
+ function ce(e) {
2755
+ if (he !== null && typeof he.property) {
2756
+ let t = he;
2757
+ return he = ce.prototype = null, t;
2758
+ }
2759
+ return he = ce.prototype = _nullishCoalesce(e, () => ( /* @__PURE__ */ Object.create(null))), new ce();
2760
+ }
2761
+ var Ds = 10;
2762
+ for (let e = 0; e <= Ds; e++) ce();
2763
+ function Ze(e) {
2764
+ return ce(e);
2765
+ }
2766
+ function Fs(e, t = "type") {
2767
+ Ze(e);
2768
+ function i(s) {
2769
+ let r = s[t], n = e[r];
2770
+ if (!Array.isArray(n)) throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), { node: s });
2771
+ return n;
2772
+ }
2773
+ return i;
2774
+ }
2775
+ var ii = Fs;
2776
+ var si = { ArrayExpression: ["elements"], AssignmentExpression: ["left", "right"], BinaryExpression: ["left", "right"], InterpreterDirective: [], Directive: ["value"], DirectiveLiteral: [], BlockStatement: ["directives", "body"], BreakStatement: ["label"], CallExpression: ["callee", "typeParameters", "typeArguments", "arguments"], CatchClause: ["param", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DoWhileStatement: ["body", "test"], EmptyStatement: [], ExpressionStatement: ["expression"], File: ["program"], ForInStatement: ["left", "right", "body"], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: ["id", "typeParameters", "params", "predicate", "returnType", "body"], FunctionExpression: ["id", "typeParameters", "params", "returnType", "body"], Identifier: ["typeAnnotation", "decorators"], IfStatement: ["test", "consequent", "alternate"], LabeledStatement: ["label", "body"], StringLiteral: [], NumericLiteral: [], NullLiteral: [], BooleanLiteral: [], RegExpLiteral: [], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], NewExpression: ["callee", "typeParameters", "typeArguments", "arguments"], Program: ["directives", "body"], ObjectExpression: ["properties"], ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectProperty: ["decorators", "key", "value"], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], ParenthesizedExpression: ["expression"], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], ClassBody: ["body"], ClassExpression: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ClassDeclaration: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"], ExportSpecifier: ["local", "exported"], ForOfStatement: ["left", "right", "body"], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], ImportExpression: ["source", "options"], MetaProperty: ["meta", "property"], ClassMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectPattern: ["decorators", "properties", "typeAnnotation"], SpreadElement: ["argument"], Super: [], TaggedTemplateExpression: ["tag", "typeParameters", "quasi", "typeArguments"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: ["argument"], AwaitExpression: ["argument"], BigIntLiteral: [], ExportNamespaceSpecifier: ["exported"], OptionalMemberExpression: ["object", "property"], OptionalCallExpression: ["callee", "typeParameters", "typeArguments", "arguments"], ClassProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassAccessorProperty: ["decorators", "key", "typeAnnotation", "value"], ClassPrivateProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassPrivateMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], PrivateName: ["id"], StaticBlock: ["body"], ImportAttribute: ["key", "value"], AnyTypeAnnotation: [], ArrayTypeAnnotation: ["elementType"], BooleanTypeAnnotation: [], BooleanLiteralTypeAnnotation: [], NullLiteralTypeAnnotation: [], ClassImplements: ["id", "typeParameters"], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareFunction: ["id", "predicate"], DeclareInterface: ["id", "typeParameters", "extends", "body"], DeclareModule: ["id", "body"], DeclareModuleExports: ["typeAnnotation"], DeclareTypeAlias: ["id", "typeParameters", "right"], DeclareOpaqueType: ["id", "typeParameters", "supertype"], DeclareVariable: ["id"], DeclareExportDeclaration: ["declaration", "specifiers", "source", "attributes"], DeclareExportAllDeclaration: ["source", "attributes"], DeclaredPredicate: ["value"], ExistsTypeAnnotation: [], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: ["name", "typeAnnotation"], GenericTypeAnnotation: ["id", "typeParameters"], InferredPredicate: [], InterfaceExtends: ["id", "typeParameters"], InterfaceDeclaration: ["id", "typeParameters", "extends", "body"], InterfaceTypeAnnotation: ["extends", "body"], IntersectionTypeAnnotation: ["types"], MixedTypeAnnotation: [], EmptyTypeAnnotation: [], NullableTypeAnnotation: ["typeAnnotation"], NumberLiteralTypeAnnotation: [], NumberTypeAnnotation: [], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeCallProperty: ["value"], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: ["argument"], OpaqueType: ["id", "typeParameters", "supertype", "impltype"], QualifiedTypeIdentifier: ["qualification", "id"], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], SymbolTypeAnnotation: [], ThisTypeAnnotation: [], TupleTypeAnnotation: ["types", "elementTypes"], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeAlias: ["id", "typeParameters", "right"], TypeAnnotation: ["typeAnnotation"], TypeCastExpression: ["expression", "typeAnnotation"], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: ["params"], TypeParameterInstantiation: ["params"], UnionTypeAnnotation: ["types"], Variance: [], VoidTypeAnnotation: [], EnumDeclaration: ["id", "body"], EnumBooleanBody: ["members"], EnumNumberBody: ["members"], EnumStringBody: ["members"], EnumSymbolBody: ["members"], EnumBooleanMember: ["id", "init"], EnumNumberMember: ["id", "init"], EnumStringMember: ["id", "init"], EnumDefaultedMember: ["id"], IndexedAccessType: ["objectType", "indexType"], OptionalIndexedAccessType: ["objectType", "indexType"], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: ["expression"], JSXSpreadChild: ["expression"], JSXIdentifier: [], JSXMemberExpression: ["object", "property"], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeParameters", "typeArguments", "attributes"], JSXSpreadAttribute: ["argument"], JSXText: [], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXOpeningFragment: [], JSXClosingFragment: [], Noop: [], Placeholder: [], V8IntrinsicIdentifier: [], ArgumentPlaceholder: [], BindExpression: ["object", "callee"], Decorator: ["expression"], DoExpression: ["body"], ExportDefaultSpecifier: ["exported"], ModuleExpression: ["body"], TopicReference: [], PipelineTopicExpression: ["expression"], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: [], TSParameterProperty: ["parameter", "decorators"], TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSQualifiedName: ["left", "right"], TSCallSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSPropertySignature: ["key", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSIndexSignature: ["parameters", "typeAnnotation"], TSAnyKeyword: [], TSBooleanKeyword: [], TSBigIntKeyword: [], TSIntrinsicKeyword: [], TSNeverKeyword: [], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSUndefinedKeyword: [], TSUnknownKeyword: [], TSVoidKeyword: [], TSThisType: [], TSFunctionType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructorType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSTypeReference: ["typeName", "typeParameters", "typeArguments"], TSTypePredicate: ["parameterName", "typeAnnotation"], TSTypeQuery: ["exprName", "typeParameters", "typeArguments"], TSTypeLiteral: ["members"], TSArrayType: ["elementType"], TSTupleType: ["elementTypes"], TSOptionalType: ["typeAnnotation"], TSRestType: ["typeAnnotation"], TSNamedTupleMember: ["label", "elementType"], TSUnionType: ["types"], TSIntersectionType: ["types"], TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"], TSInferType: ["typeParameter"], TSParenthesizedType: ["typeAnnotation"], TSTypeOperator: ["typeAnnotation"], TSIndexedAccessType: ["objectType", "indexType"], TSMappedType: ["nameType", "typeAnnotation", "key", "constraint"], TSTemplateLiteralType: ["quasis", "types"], TSLiteralType: ["literal"], TSExpressionWithTypeArguments: ["expression", "typeParameters"], TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"], TSInterfaceBody: ["body"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSInstantiationExpression: ["expression", "typeParameters", "typeArguments"], TSAsExpression: ["expression", "typeAnnotation"], TSSatisfiesExpression: ["expression", "typeAnnotation"], TSTypeAssertion: ["typeAnnotation", "expression"], TSEnumBody: ["members"], TSEnumDeclaration: ["id", "body"], TSEnumMember: ["id", "initializer"], TSModuleDeclaration: ["id", "body"], TSModuleBlock: ["body"], TSImportType: ["argument", "options", "qualifier", "typeParameters", "typeArguments"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSExternalModuleReference: ["expression"], TSNonNullExpression: ["expression"], TSExportAssignment: ["expression"], TSNamespaceExportDeclaration: ["id"], TSTypeAnnotation: ["typeAnnotation"], TSTypeParameterInstantiation: ["params"], TSTypeParameterDeclaration: ["params"], TSTypeParameter: ["constraint", "default", "name"], ChainExpression: ["expression"], ExperimentalRestProperty: ["argument"], ExperimentalSpreadProperty: ["argument"], Literal: [], MethodDefinition: ["decorators", "key", "value"], PrivateIdentifier: [], Property: ["key", "value"], PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"], AccessorProperty: ["decorators", "key", "typeAnnotation", "value"], TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"], TSAbstractKeyword: [], TSAbstractMethodDefinition: ["key", "value"], TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"], TSAsyncKeyword: [], TSClassImplements: ["expression", "typeArguments", "typeParameters"], TSDeclareKeyword: [], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSExportKeyword: [], TSInterfaceHeritage: ["expression", "typeArguments", "typeParameters"], TSPrivateKeyword: [], TSProtectedKeyword: [], TSPublicKeyword: [], TSReadonlyKeyword: [], TSStaticKeyword: [], AsConstExpression: ["expression"], AsExpression: ["expression", "typeAnnotation"], BigIntLiteralTypeAnnotation: [], BigIntTypeAnnotation: [], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: ["name", "typeAnnotation"], ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclareEnum: ["id", "body"], DeclareHook: ["id"], DeclareNamespace: ["id", "body"], EnumBigIntBody: ["members"], EnumBigIntMember: ["id", "init"], HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], InferTypeAnnotation: ["typeParameter"], KeyofTypeAnnotation: ["argument"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], QualifiedTypeofIdentifier: ["qualification", "id"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeOperator: ["typeAnnotation"], TypePredicate: ["parameterName", "typeAnnotation", "asserts"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGPipeExpression: ["left", "right", "arguments"], NGMicrosyntax: ["body"], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: [], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGRoot: ["node"], JsExpressionRoot: ["node"], JsonRoot: ["node"], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: ["typeAnnotation"], TSJSDocNonNullableType: ["typeAnnotation"], NeverTypeAnnotation: [], SatisfiesExpression: ["expression", "typeAnnotation"], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [] };
2777
+ var Ms = ii(si);
2778
+ var ri = Ms;
2779
+ function et(e, t) {
2780
+ if (!(e !== null && typeof e == "object")) return e;
2781
+ if (Array.isArray(e)) {
2782
+ for (let s = 0; s < e.length; s++) e[s] = et(e[s], t);
2783
+ return e;
2784
+ }
2785
+ let i = ri(e);
2786
+ for (let s = 0; s < i.length; s++) e[i[s]] = et(e[i[s]], t);
2787
+ return t(e) || e;
2788
+ }
2789
+ var ai = et;
2790
+ var ha = ie(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
2791
+ function js(e, t) {
2792
+ let { parser: i, text: s } = t, { comments: r } = e, n = i === "oxc" && t.oxcAstType === "ts";
2793
+ ti(r);
2794
+ let o;
2795
+ e = ai(e, (u) => {
2796
+ switch (u.type) {
2797
+ case "ParenthesizedExpression": {
2798
+ let { expression: c } = u, f = w(u);
2799
+ if (c.type === "TypeCastExpression") return c.range = [f, k(u)], c;
2800
+ let v = false;
2801
+ if (!n) {
2802
+ if (!o) {
2803
+ o = [];
2804
+ for (let h of r) ei(h) && o.push(k(h));
2805
+ }
2806
+ let T = $t(false, o, (h) => h <= f);
2807
+ v = T && s.slice(T, f).trim().length === 0;
2808
+ }
2809
+ if (!v) return c.extra = { ...c.extra, parenthesized: true }, c;
2810
+ break;
2811
+ }
2812
+ case "LogicalExpression":
2813
+ if (oi(u)) return tt(u);
2814
+ break;
2815
+ case "TemplateLiteral":
2816
+ if (u.expressions.length !== u.quasis.length - 1) throw new Error("Malformed template literal.");
2817
+ break;
2818
+ case "TemplateElement":
2819
+ if (i === "flow" || i === "hermes" || i === "espree" || i === "typescript" || n) {
2820
+ let c = w(u) + 1, f = k(u) - (u.tail ? 1 : 2);
2821
+ u.range = [c, f];
2822
+ }
2823
+ break;
2824
+ case "VariableDeclaration": {
2825
+ let c = te(false, u.declarations, -1);
2826
+ c != null && c.init && s[k(c)] !== ";" && (u.range = [w(u), k(c)]);
2827
+ break;
2828
+ }
2829
+ case "TSParenthesizedType":
2830
+ return u.typeAnnotation;
2831
+ case "TSTypeParameter":
2832
+ ni(u);
2833
+ break;
2834
+ case "TopicReference":
2835
+ e.extra = { ...e.extra, __isUsingHackPipeline: true };
2836
+ break;
2837
+ case "TSUnionType":
2838
+ case "TSIntersectionType":
2839
+ if (u.types.length === 1) return u.types[0];
2840
+ break;
2841
+ case "TSMappedType":
2842
+ if (!u.constraint && !u.key) {
2843
+ let { name: c, constraint: f } = ni(u.typeParameter);
2844
+ u.constraint = f, u.key = c, delete u.typeParameter;
2845
+ }
2846
+ break;
2847
+ case "TSEnumDeclaration":
2848
+ if (!u.body) {
2849
+ let c = k(u.id), { members: f } = u, v = Zt({ originalText: s, [Symbol.for("comments")]: r }, c, f[0] ? w(f[0]) : k(u)), T = c + v.indexOf("{");
2850
+ u.body = { type: "TSEnumBody", members: f, range: [T, k(u)] }, delete u.members;
2851
+ }
2852
+ break;
2853
+ case "ImportExpression":
2854
+ i === "hermes" && u.attributes && !u.options && (u.options = u.attributes);
2855
+ break;
2856
+ }
2857
+ });
2858
+ let p = e.type === "File" ? e.program : e;
2859
+ return p.interpreter && (r.unshift(p.interpreter), delete p.interpreter), n && e.hashbang && (r.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, s.length]), e;
2860
+ }
2861
+ function ni(e) {
2862
+ if (e.type === "TSTypeParameter" && typeof e.name == "string") {
2863
+ let t = w(e);
2864
+ e.name = { type: "Identifier", name: e.name, range: [t, t + e.name.length] };
2865
+ }
2866
+ return e;
2867
+ }
2868
+ function oi(e) {
2869
+ return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
2870
+ }
2871
+ function tt(e) {
2872
+ return oi(e) ? tt({ type: "LogicalExpression", operator: e.operator, left: tt({ type: "LogicalExpression", operator: e.operator, left: e.left, right: e.right.left, range: [w(e.left), k(e.right.left)] }), right: e.right.right, range: [w(e), k(e)] }) : e;
2873
+ }
2874
+ var ke = js;
2875
+ var Us = (e, t, i, s) => {
2876
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(i, s) : i.global ? t.replace(i, s) : t.split(i).join(s);
2877
+ };
2878
+ var se = Us;
2879
+ var Gs = /\*\/$/;
2880
+ var qs = /^\/\*\*?/;
2881
+ var Js = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
2882
+ var Hs = /(^|\s+)\/\/([^\n\r]*)/g;
2883
+ var ui = /^(\r?\n)+/;
2884
+ var Ks = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
2885
+ var pi = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
2886
+ var Ws = /(\r?\n|^) *\* ?/g;
2887
+ var Xs = [];
2888
+ function hi(e) {
2889
+ let t = e.match(Js);
2890
+ return t ? t[0].trimStart() : "";
2891
+ }
2892
+ function ci(e) {
2893
+ let t = `
2894
+ `;
2895
+ e = se(false, e.replace(qs, "").replace(Gs, ""), Ws, "$1");
2896
+ let i = "";
2897
+ for (; i !== e; ) i = e, e = se(false, e, Ks, `${t}$1 $2${t}`);
2898
+ e = e.replace(ui, "").trimEnd();
2899
+ let s = /* @__PURE__ */ Object.create(null), r = se(false, e, pi, "").replace(ui, "").trimEnd(), n;
2900
+ for (; n = pi.exec(e); ) {
2901
+ let o = se(false, n[2], Hs, "");
2902
+ if (typeof s[n[1]] == "string" || Array.isArray(s[n[1]])) {
2903
+ let p = s[n[1]];
2904
+ s[n[1]] = [...Xs, ...Array.isArray(p) ? p : [p], o];
2905
+ } else s[n[1]] = o;
2906
+ }
2907
+ return { comments: r, pragmas: s };
2908
+ }
2909
+ var li = ["noformat", "noprettier"];
2910
+ var fi = ["format", "prettier"];
2911
+ function zs(e) {
2912
+ if (!e.startsWith("#!")) return "";
2913
+ let t = e.indexOf(`
2914
+ `);
2915
+ return t === -1 ? e : e.slice(0, t);
2916
+ }
2917
+ var di = zs;
2918
+ function mi(e) {
2919
+ let t = di(e);
2920
+ t && (e = e.slice(t.length + 1));
2921
+ let i = hi(e), { pragmas: s, comments: r } = ci(i);
2922
+ return { shebang: t, text: e, pragmas: s, comments: r };
2923
+ }
2924
+ function xi(e) {
2925
+ let { pragmas: t } = mi(e);
2926
+ return fi.some((i) => Object.prototype.hasOwnProperty.call(t, i));
2927
+ }
2928
+ function yi(e) {
2929
+ let { pragmas: t } = mi(e);
2930
+ return li.some((i) => Object.prototype.hasOwnProperty.call(t, i));
2931
+ }
2932
+ function Qs(e) {
2933
+ return e = typeof e == "function" ? { parse: e } : e, { astFormat: "estree", hasPragma: xi, hasIgnorePragma: yi, locStart: w, locEnd: k, ...e };
2934
+ }
2935
+ var Ae = Qs;
2936
+ var we = "module";
2937
+ var gi = "script";
2938
+ var Pe = [we, gi];
2939
+ function Ie(e) {
2940
+ if (typeof e == "string") {
2941
+ if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e)) return we;
2942
+ if (/\.(?:cjs|cts)$/iu.test(e)) return gi;
2943
+ }
2944
+ }
2945
+ var Ys = { ecmaVersion: "latest", allowReserved: true, allowReturnOutsideFunction: true, allowSuperOutsideMethod: true, checkPrivateFields: false, locations: false, ranges: true, preserveParens: true };
2946
+ function $s(e) {
2947
+ let { message: t, loc: i } = e;
2948
+ if (!i) return e;
2949
+ let { line: s, column: r } = i;
2950
+ return Ce(t.replace(/ \(\d+:\d+\)$/u, ""), { loc: { start: { line: s, column: r + 1 } }, cause: e });
2951
+ }
2952
+ var vi;
2953
+ var Zs = () => (_nullishCoalesce(vi, () => ( (vi = E.extend((0, bi.default)())))), vi);
2954
+ function er(e, t) {
2955
+ let i = Zs(), s = [], r = i.parse(e, { ...Ys, sourceType: t, allowImportExportEverywhere: t === we, onComment: s });
2956
+ return r.comments = s, r;
2957
+ }
2958
+ function tr(e, t) {
2959
+ let i = Ie(t == null ? void 0 : t.filepath), s = (i ? [i] : Pe).map((n) => () => er(e, n)), r;
2960
+ try {
2961
+ r = Ee(s);
2962
+ } catch ({ errors: [n] }) {
2963
+ throw $s(n);
2964
+ }
2965
+ return ke(r, { text: e });
2966
+ }
2967
+ var Si = Ae(tr);
2968
+ var Ei = ot(Xe(), 1);
2969
+ var I = { 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" };
2970
+ function ir(e, t) {
2971
+ let i = e[0], s = te(false, e, -1), r = { type: I.Template, value: t.slice(i.start, s.end) };
2972
+ 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;
2973
+ }
2974
+ function it(e, t) {
2975
+ this._acornTokTypes = e, this._tokens = [], this._curlyBrace = null, this._code = t;
2976
+ }
2977
+ it.prototype = { constructor: it, translate(e, t) {
2978
+ let i = e.type, s = this._acornTokTypes;
2979
+ if (i === s.name) e.type = I.Identifier, e.value === "static" && (e.type = I.Keyword), t.ecmaVersion > 5 && (e.value === "yield" || e.value === "let") && (e.type = I.Keyword);
2980
+ else if (i === s.privateId) e.type = I.PrivateIdentifier;
2981
+ 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 = I.Punctuator, e.value = this._code.slice(e.start, e.end);
2982
+ else if (i === s.jsxName) e.type = I.JSXIdentifier;
2983
+ else if (i.label === "jsxText" || i === s.jsxAttrValueToken) e.type = I.JSXText;
2984
+ else if (i.keyword) i.keyword === "true" || i.keyword === "false" ? e.type = I.Boolean : i.keyword === "null" ? e.type = I.Null : e.type = I.Keyword;
2985
+ else if (i === s.num) e.type = I.Numeric, e.value = this._code.slice(e.start, e.end);
2986
+ else if (i === s.string) t.jsxAttrValueToken ? (t.jsxAttrValueToken = false, e.type = I.JSXText) : e.type = I.String, e.value = this._code.slice(e.start, e.end);
2987
+ else if (i === s.regexp) {
2988
+ e.type = I.RegularExpression;
2989
+ let r = e.value;
2990
+ e.regex = { flags: r.flags, pattern: r.pattern }, e.value = `/${r.pattern}/${r.flags}`;
2991
+ }
2992
+ return e;
2993
+ }, onToken(e, t) {
2994
+ let i = this._acornTokTypes, s = t.tokens, r = this._tokens, n = () => {
2995
+ s.push(ir(this._tokens, this._code)), this._tokens = [];
2996
+ };
2997
+ if (e.type === i.eof) {
2998
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t));
2999
+ return;
3000
+ }
3001
+ if (e.type === i.backQuote) {
3002
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), r.push(e), r.length > 1 && n();
3003
+ return;
3004
+ }
3005
+ if (e.type === i.dollarBraceL) {
3006
+ r.push(e), n();
3007
+ return;
3008
+ }
3009
+ if (e.type === i.braceR) {
3010
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = e;
3011
+ return;
3012
+ }
3013
+ if (e.type === i.template || e.type === i.invalidTemplate) {
3014
+ this._curlyBrace && (r.push(this._curlyBrace), this._curlyBrace = null), r.push(e);
3015
+ return;
3016
+ }
3017
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), s.push(this.translate(e, t));
3018
+ } };
3019
+ var _i = it;
3020
+ var Ti = [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
3021
+ function sr() {
3022
+ return te(false, Ti, -1);
3023
+ }
3024
+ function rr(e = 5) {
3025
+ let t = e === "latest" ? sr() : e;
3026
+ if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);
3027
+ if (t >= 2015 && (t -= 2009), !Ti.includes(t)) throw new Error("Invalid ecmaVersion.");
3028
+ return t;
3029
+ }
3030
+ function ar(e = "script") {
3031
+ if (e === "script" || e === "module") return e;
3032
+ if (e === "commonjs") return "script";
3033
+ throw new Error("Invalid sourceType.");
3034
+ }
3035
+ function Ci(e) {
3036
+ let t = rr(e.ecmaVersion), i = ar(e.sourceType), s = e.range === true, r = e.loc === true;
3037
+ if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
3038
+ if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
3039
+ let n = t === 3 ? e.allowReserved || "never" : false, o = e.ecmaFeatures || {}, p = e.sourceType === "commonjs" || !!o.globalReturn;
3040
+ if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
3041
+ return Object.assign({}, e, { ecmaVersion: t, sourceType: i, ranges: s, locations: r, allowReserved: n, allowReturnOutsideFunction: p });
3042
+ }
3043
+ var Q = Symbol("espree's internal state");
3044
+ var st = Symbol("espree's esprimaFinishNode");
3045
+ function nr(e, t, i, s, r, n, o) {
3046
+ let p;
3047
+ e ? p = "Block" : o.slice(i, i + 2) === "#!" ? p = "Hashbang" : p = "Line";
3048
+ let u = { type: p, value: t };
3049
+ return typeof i == "number" && (u.start = i, u.end = s, u.range = [i, s]), typeof r == "object" && (u.loc = { start: r, end: n }), u;
3050
+ }
3051
+ var rt = () => (e) => {
3052
+ let t = Object.assign({}, e.acorn.tokTypes);
3053
+ return e.acornJsx && Object.assign(t, e.acornJsx.tokTypes), class extends e {
3054
+ constructor(s, r) {
3055
+ (typeof s != "object" || s === null) && (s = {}), typeof r != "string" && !(r instanceof String) && (r = String(r));
3056
+ let n = s.sourceType, o = Ci(s), p = o.ecmaFeatures || {}, u = o.tokens === true ? new _i(t, r) : null, c = { originalSourceType: n || o.sourceType, tokens: u ? [] : null, comments: o.comment === true ? [] : null, impliedStrict: p.impliedStrict === true && o.ecmaVersion >= 5, ecmaVersion: o.ecmaVersion, jsxAttrValueToken: false, lastToken: null, templateElements: [] };
3057
+ super({ ecmaVersion: o.ecmaVersion, sourceType: o.sourceType, ranges: o.ranges, locations: o.locations, allowReserved: o.allowReserved, allowReturnOutsideFunction: o.allowReturnOutsideFunction, onToken(f) {
3058
+ u && u.onToken(f, c), f.type !== t.eof && (c.lastToken = f);
3059
+ }, onComment(f, v, T, h, m, x) {
3060
+ if (c.comments) {
3061
+ let g = nr(f, v, T, h, m, x, r);
3062
+ c.comments.push(g);
3063
+ }
3064
+ } }, r), this[Q] = c;
3065
+ }
3066
+ tokenize() {
3067
+ do
3068
+ this.next();
3069
+ while (this.type !== t.eof);
3070
+ this.next();
3071
+ let s = this[Q], r = s.tokens;
3072
+ return s.comments && (r.comments = s.comments), r;
3073
+ }
3074
+ finishNode(...s) {
3075
+ let r = super.finishNode(...s);
3076
+ return this[st](r);
3077
+ }
3078
+ finishNodeAt(...s) {
3079
+ let r = super.finishNodeAt(...s);
3080
+ return this[st](r);
3081
+ }
3082
+ parse() {
3083
+ let s = this[Q], r = super.parse();
3084
+ if (r.sourceType = s.originalSourceType, s.comments && (r.comments = s.comments), s.tokens && (r.tokens = s.tokens), r.body.length) {
3085
+ let [n] = r.body;
3086
+ r.range && (r.range[0] = n.range[0]), r.loc && (r.loc.start = n.loc.start), r.start = n.start;
3087
+ }
3088
+ return s.lastToken && (r.range && (r.range[1] = s.lastToken.range[1]), r.loc && (r.loc.end = s.lastToken.loc.end), r.end = s.lastToken.end), this[Q].templateElements.forEach((n) => {
3089
+ let p = n.tail ? 1 : 2;
3090
+ n.start += -1, n.end += p, n.range && (n.range[0] += -1, n.range[1] += p), n.loc && (n.loc.start.column += -1, n.loc.end.column += p);
3091
+ }), r;
3092
+ }
3093
+ parseTopLevel(s) {
3094
+ return this[Q].impliedStrict && (this.strict = true), super.parseTopLevel(s);
3095
+ }
3096
+ raise(s, r) {
3097
+ let n = e.acorn.getLineInfo(this.input, s), o = new SyntaxError(r);
3098
+ throw o.index = s, o.lineNumber = n.line, o.column = n.column + 1, o;
3099
+ }
3100
+ raiseRecoverable(s, r) {
3101
+ this.raise(s, r);
3102
+ }
3103
+ unexpected(s) {
3104
+ let r = "Unexpected token";
3105
+ if (s != null) {
3106
+ if (this.pos = s, this.options.locations) for (; this.pos < this.lineStart; ) this.lineStart = this.input.lastIndexOf(`
3107
+ `, this.lineStart - 2) + 1, --this.curLine;
3108
+ this.nextToken();
3109
+ }
3110
+ this.end > this.start && (r += ` ${this.input.slice(this.start, this.end)}`), this.raise(this.start, r);
3111
+ }
3112
+ jsx_readString(s) {
3113
+ let r = super.jsx_readString(s);
3114
+ return this.type === t.string && (this[Q].jsxAttrValueToken = true), r;
3115
+ }
3116
+ [st](s) {
3117
+ return s.type === "TemplateElement" && this[Q].templateElements.push(s), s.type.includes("Function") && !s.generator && (s.generator = false), s;
3118
+ }
3119
+ };
3120
+ };
3121
+ var or = { _regular: null, _jsx: null, get regular() {
3122
+ return this._regular === null && (this._regular = E.extend(rt())), this._regular;
3123
+ }, get jsx() {
3124
+ return this._jsx === null && (this._jsx = E.extend((0, Ei.default)(), rt())), this._jsx;
3125
+ }, get(e) {
3126
+ return !!(e && e.ecmaFeatures && e.ecmaFeatures.jsx) ? this.jsx : this.regular;
3127
+ } };
3128
+ function ki(e, t) {
3129
+ let i = or.get(t);
3130
+ return new i(t, e).parse();
3131
+ }
3132
+ var ur = { ecmaVersion: "latest", range: true, loc: false, comment: true, tokens: false, ecmaFeatures: { jsx: true, globalReturn: true, impliedStrict: false } };
3133
+ function pr(e) {
3134
+ let { message: t, lineNumber: i, column: s } = e;
3135
+ return typeof i != "number" ? e : Ce(t, { loc: { start: { line: i, column: s } }, cause: e });
3136
+ }
3137
+ function hr(e, t) {
3138
+ let i = Ie(t == null ? void 0 : t.filepath), s = (i ? [i] : Pe).map((n) => () => ki(e, { ...ur, sourceType: n })), r;
3139
+ try {
3140
+ r = Ee(s);
3141
+ } catch ({ errors: [n] }) {
3142
+ throw pr(n);
3143
+ }
3144
+ return ke(r, { parser: "espree", text: e });
3145
+ }
3146
+ var Ai = Ae(hr);
3147
+ var cr = { acorn: Si, espree: Ai };
3148
+ var cn = at;
3149
+
3150
+
3151
+
3152
+ exports.default = cn; exports.parsers = cr;