@kubb/core 3.0.0-alpha.14 → 3.0.0-alpha.16

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