@datapos/datapos-development 0.3.147 → 0.3.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,12 @@
1
1
  import { exec as _i } from "node:child_process";
2
- import { promises as D } from "node:fs";
2
+ import { promises as M } from "node:fs";
3
3
  import { nanoid as Li } from "nanoid";
4
4
  import { promisify as Oi } from "node:util";
5
5
  function Ri(t, e, s, a, o) {
6
- s || (s = T), (function l(d, v, g) {
7
- var h = g || d.type;
8
- s[h](d, v, l), e[h] && e[h](d, v);
6
+ var l = [];
7
+ s || (s = T), (function d(v, g, h) {
8
+ var C = h || v.type, _ = v !== l[l.length - 1];
9
+ _ && l.push(v), s[C](v, g, d), e[C] && e[C](v, g || l, l), _ && l.pop();
9
10
  })(t, a, o);
10
11
  }
11
12
  function ve(t, e, s) {
@@ -236,7 +237,7 @@ function ht(t, e) {
236
237
  return new R(t, { beforeExpr: !0, binop: e });
237
238
  }
238
239
  var ut = { beforeExpr: !0 }, rt = { startsExpr: !0 }, Et = {};
239
- function F(t, e) {
240
+ function V(t, e) {
240
241
  return e === void 0 && (e = {}), e.keyword = t, Et[t] = new R(t, e);
241
242
  }
242
243
  var u = {
@@ -297,42 +298,42 @@ var u = {
297
298
  starstar: new R("**", { beforeExpr: !0 }),
298
299
  coalesce: ht("??", 1),
299
300
  // Keyword token types.
300
- _break: F("break"),
301
- _case: F("case", ut),
302
- _catch: F("catch"),
303
- _continue: F("continue"),
304
- _debugger: F("debugger"),
305
- _default: F("default", ut),
306
- _do: F("do", { isLoop: !0, beforeExpr: !0 }),
307
- _else: F("else", ut),
308
- _finally: F("finally"),
309
- _for: F("for", { isLoop: !0 }),
310
- _function: F("function", rt),
311
- _if: F("if"),
312
- _return: F("return", ut),
313
- _switch: F("switch"),
314
- _throw: F("throw", ut),
315
- _try: F("try"),
316
- _var: F("var"),
317
- _const: F("const"),
318
- _while: F("while", { isLoop: !0 }),
319
- _with: F("with"),
320
- _new: F("new", { beforeExpr: !0, startsExpr: !0 }),
321
- _this: F("this", rt),
322
- _super: F("super", rt),
323
- _class: F("class", rt),
324
- _extends: F("extends", ut),
325
- _export: F("export"),
326
- _import: F("import", rt),
327
- _null: F("null", rt),
328
- _true: F("true", rt),
329
- _false: F("false", rt),
330
- _in: F("in", { beforeExpr: !0, binop: 7 }),
331
- _instanceof: F("instanceof", { beforeExpr: !0, binop: 7 }),
332
- _typeof: F("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
333
- _void: F("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
334
- _delete: F("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
335
- }, Z = /\r\n?|\n|\u2028|\u2029/, ze = new RegExp(Z.source, "g");
301
+ _break: V("break"),
302
+ _case: V("case", ut),
303
+ _catch: V("catch"),
304
+ _continue: V("continue"),
305
+ _debugger: V("debugger"),
306
+ _default: V("default", ut),
307
+ _do: V("do", { isLoop: !0, beforeExpr: !0 }),
308
+ _else: V("else", ut),
309
+ _finally: V("finally"),
310
+ _for: V("for", { isLoop: !0 }),
311
+ _function: V("function", rt),
312
+ _if: V("if"),
313
+ _return: V("return", ut),
314
+ _switch: V("switch"),
315
+ _throw: V("throw", ut),
316
+ _try: V("try"),
317
+ _var: V("var"),
318
+ _const: V("const"),
319
+ _while: V("while", { isLoop: !0 }),
320
+ _with: V("with"),
321
+ _new: V("new", { beforeExpr: !0, startsExpr: !0 }),
322
+ _this: V("this", rt),
323
+ _super: V("super", rt),
324
+ _class: V("class", rt),
325
+ _extends: V("extends", ut),
326
+ _export: V("export"),
327
+ _import: V("import", rt),
328
+ _null: V("null", rt),
329
+ _true: V("true", rt),
330
+ _false: V("false", rt),
331
+ _in: V("in", { beforeExpr: !0, binop: 7 }),
332
+ _instanceof: V("instanceof", { beforeExpr: !0, binop: 7 }),
333
+ _typeof: V("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
334
+ _void: V("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
335
+ _delete: V("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
336
+ }, tt = /\r\n?|\n|\u2028|\u2029/, ze = new RegExp(tt.source, "g");
336
337
  function Ct(t) {
337
338
  return t === 10 || t === 13 || t === 8232 || t === 8233;
338
339
  }
@@ -345,7 +346,7 @@ function Ke(t, e, s) {
345
346
  }
346
347
  return -1;
347
348
  }
348
- var ge = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, X = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Je = Object.prototype, Ui = Je.hasOwnProperty, qi = Je.toString, It = Object.hasOwn || (function(t, e) {
349
+ var ge = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Q = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Je = Object.prototype, Ui = Je.hasOwnProperty, qi = Je.toString, It = Object.hasOwn || (function(t, e) {
349
350
  return Ui.call(t, e);
350
351
  }), _e = Array.isArray || (function(t) {
351
352
  return qi.call(t) === "[object Array]";
@@ -498,15 +499,15 @@ var Bt = 1, Nt = 2, Se = 4, Ge = 8, Te = 16, $e = 32, te = 64, Xe = 128, kt = 25
498
499
  function Pe(t, e) {
499
500
  return Nt | (t ? Se : 0) | (e ? Ge : 0);
500
501
  }
501
- var $t = 0, Ce = 1, vt = 2, Qe = 3, Ye = 4, Ze = 5, K = function(e, s, a) {
502
+ var $t = 0, Ce = 1, vt = 2, Qe = 3, Ye = 4, Ze = 5, J = function(e, s, a) {
502
503
  this.options = e = Wi(e), this.sourceFile = e.sourceFile, this.keywords = St(Vi[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
503
504
  var o = "";
504
505
  e.allowReserved !== !0 && (o = ue[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (o += " await")), this.reservedWords = St(o);
505
506
  var l = (o ? o + " " : "") + ue.strict;
506
507
  this.reservedWordsStrict = St(l), this.reservedWordsStrictBind = St(l + " " + ue.strictBind), this.input = String(s), this.containsEsc = !1, a ? (this.pos = a, this.lineStart = this.input.lastIndexOf(`
507
- `, a - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(Z).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = u.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Bt), this.regexpState = null, this.privateNameStack = [];
508
+ `, a - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(tt).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = u.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Bt), this.regexpState = null, this.privateNameStack = [];
508
509
  }, ft = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
509
- K.prototype.parse = function() {
510
+ J.prototype.parse = function() {
510
511
  var e = this.options.program || this.startNode();
511
512
  return this.nextToken(), this.parseTopLevel(e);
512
513
  };
@@ -550,83 +551,83 @@ ft.allowNewDotTarget.get = function() {
550
551
  ft.inClassStaticBlock.get = function() {
551
552
  return (this.currentVarScope().flags & kt) > 0;
552
553
  };
553
- K.extend = function() {
554
+ J.extend = function() {
554
555
  for (var e = [], s = arguments.length; s--; ) e[s] = arguments[s];
555
556
  for (var a = this, o = 0; o < e.length; o++)
556
557
  a = e[o](a);
557
558
  return a;
558
559
  };
559
- K.parse = function(e, s) {
560
+ J.parse = function(e, s) {
560
561
  return new this(s, e).parse();
561
562
  };
562
- K.parseExpressionAt = function(e, s, a) {
563
+ J.parseExpressionAt = function(e, s, a) {
563
564
  var o = new this(a, e, s);
564
565
  return o.nextToken(), o.parseExpression();
565
566
  };
566
- K.tokenizer = function(e, s) {
567
+ J.tokenizer = function(e, s) {
567
568
  return new this(s, e);
568
569
  };
569
- Object.defineProperties(K.prototype, ft);
570
- var tt = K.prototype, Ki = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
571
- tt.strictDirective = function(t) {
570
+ Object.defineProperties(J.prototype, ft);
571
+ var et = J.prototype, Ki = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
572
+ et.strictDirective = function(t) {
572
573
  if (this.options.ecmaVersion < 5)
573
574
  return !1;
574
575
  for (; ; ) {
575
- X.lastIndex = t, t += X.exec(this.input)[0].length;
576
+ Q.lastIndex = t, t += Q.exec(this.input)[0].length;
576
577
  var e = Ki.exec(this.input.slice(t));
577
578
  if (!e)
578
579
  return !1;
579
580
  if ((e[1] || e[2]) === "use strict") {
580
- X.lastIndex = t + e[0].length;
581
- var s = X.exec(this.input), a = s.index + s[0].length, o = this.input.charAt(a);
582
- return o === ";" || o === "}" || Z.test(s[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(o) || o === "!" && this.input.charAt(a + 1) === "=");
581
+ Q.lastIndex = t + e[0].length;
582
+ var s = Q.exec(this.input), a = s.index + s[0].length, o = this.input.charAt(a);
583
+ return o === ";" || o === "}" || tt.test(s[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(o) || o === "!" && this.input.charAt(a + 1) === "=");
583
584
  }
584
- t += e[0].length, X.lastIndex = t, t += X.exec(this.input)[0].length, this.input[t] === ";" && t++;
585
+ t += e[0].length, Q.lastIndex = t, t += Q.exec(this.input)[0].length, this.input[t] === ";" && t++;
585
586
  }
586
587
  };
587
- tt.eat = function(t) {
588
+ et.eat = function(t) {
588
589
  return this.type === t ? (this.next(), !0) : !1;
589
590
  };
590
- tt.isContextual = function(t) {
591
+ et.isContextual = function(t) {
591
592
  return this.type === u.name && this.value === t && !this.containsEsc;
592
593
  };
593
- tt.eatContextual = function(t) {
594
+ et.eatContextual = function(t) {
594
595
  return this.isContextual(t) ? (this.next(), !0) : !1;
595
596
  };
596
- tt.expectContextual = function(t) {
597
+ et.expectContextual = function(t) {
597
598
  this.eatContextual(t) || this.unexpected();
598
599
  };
599
- tt.canInsertSemicolon = function() {
600
- return this.type === u.eof || this.type === u.braceR || Z.test(this.input.slice(this.lastTokEnd, this.start));
600
+ et.canInsertSemicolon = function() {
601
+ return this.type === u.eof || this.type === u.braceR || tt.test(this.input.slice(this.lastTokEnd, this.start));
601
602
  };
602
- tt.insertSemicolon = function() {
603
+ et.insertSemicolon = function() {
603
604
  if (this.canInsertSemicolon())
604
605
  return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
605
606
  };
606
- tt.semicolon = function() {
607
+ et.semicolon = function() {
607
608
  !this.eat(u.semi) && !this.insertSemicolon() && this.unexpected();
608
609
  };
609
- tt.afterTrailingComma = function(t, e) {
610
+ et.afterTrailingComma = function(t, e) {
610
611
  if (this.type === t)
611
612
  return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), e || this.next(), !0;
612
613
  };
613
- tt.expect = function(t) {
614
+ et.expect = function(t) {
614
615
  this.eat(t) || this.unexpected();
615
616
  };
616
- tt.unexpected = function(t) {
617
+ et.unexpected = function(t) {
617
618
  this.raise(t ?? this.start, "Unexpected token");
618
619
  };
619
620
  var ie = function() {
620
621
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
621
622
  };
622
- tt.checkPatternErrors = function(t, e) {
623
+ et.checkPatternErrors = function(t, e) {
623
624
  if (t) {
624
625
  t.trailingComma > -1 && this.raiseRecoverable(t.trailingComma, "Comma is not permitted after the rest element");
625
626
  var s = e ? t.parenthesizedAssign : t.parenthesizedBind;
626
627
  s > -1 && this.raiseRecoverable(s, e ? "Assigning to rvalue" : "Parenthesized pattern");
627
628
  }
628
629
  };
629
- tt.checkExpressionErrors = function(t, e) {
630
+ et.checkExpressionErrors = function(t, e) {
630
631
  if (!t)
631
632
  return !1;
632
633
  var s = t.shorthandAssign, a = t.doubleProto;
@@ -634,13 +635,13 @@ tt.checkExpressionErrors = function(t, e) {
634
635
  return s >= 0 || a >= 0;
635
636
  s >= 0 && this.raise(s, "Shorthand property assignments are valid only in destructuring patterns"), a >= 0 && this.raiseRecoverable(a, "Redefinition of __proto__ property");
636
637
  };
637
- tt.checkYieldAwaitInDefaultParams = function() {
638
+ et.checkYieldAwaitInDefaultParams = function() {
638
639
  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");
639
640
  };
640
- tt.isSimpleAssignTarget = function(t) {
641
+ et.isSimpleAssignTarget = function(t) {
641
642
  return t.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(t.expression) : t.type === "Identifier" || t.type === "MemberExpression";
642
643
  };
643
- var E = K.prototype;
644
+ var E = J.prototype;
644
645
  E.parseTopLevel = function(t) {
645
646
  var e = /* @__PURE__ */ Object.create(null);
646
647
  for (t.body || (t.body = []); this.type !== u.eof; ) {
@@ -658,8 +659,8 @@ var ke = { kind: "loop" }, Ji = { kind: "switch" };
658
659
  E.isLet = function(t) {
659
660
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
660
661
  return !1;
661
- X.lastIndex = this.pos;
662
- var e = X.exec(this.input), s = this.pos + e[0].length, a = this.input.charCodeAt(s);
662
+ Q.lastIndex = this.pos;
663
+ var e = Q.exec(this.input), s = this.pos + e[0].length, a = this.input.charCodeAt(s);
663
664
  if (a === 91 || a === 92)
664
665
  return !0;
665
666
  if (t)
@@ -680,24 +681,24 @@ E.isLet = function(t) {
680
681
  E.isAsyncFunction = function() {
681
682
  if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
682
683
  return !1;
683
- X.lastIndex = this.pos;
684
- var t = X.exec(this.input), e = this.pos + t[0].length, s;
685
- return !Z.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(mt(s = this.input.charCodeAt(e + 8)) || s > 55295 && s < 56320));
684
+ Q.lastIndex = this.pos;
685
+ var t = Q.exec(this.input), e = this.pos + t[0].length, s;
686
+ return !tt.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !(mt(s = this.input.charCodeAt(e + 8)) || s > 55295 && s < 56320));
686
687
  };
687
688
  E.isUsingKeyword = function(t, e) {
688
689
  if (this.options.ecmaVersion < 17 || !this.isContextual(t ? "await" : "using"))
689
690
  return !1;
690
- X.lastIndex = this.pos;
691
- var s = X.exec(this.input), a = this.pos + s[0].length;
692
- if (Z.test(this.input.slice(this.pos, a)))
691
+ Q.lastIndex = this.pos;
692
+ var s = Q.exec(this.input), a = this.pos + s[0].length;
693
+ if (tt.test(this.input.slice(this.pos, a)))
693
694
  return !1;
694
695
  if (t) {
695
696
  var o = a + 5, l;
696
697
  if (this.input.slice(a, o) !== "using" || o === this.input.length || mt(l = this.input.charCodeAt(o)) || l > 55295 && l < 56320)
697
698
  return !1;
698
- X.lastIndex = o;
699
- var d = X.exec(this.input);
700
- if (d && Z.test(this.input.slice(o, o + d[0].length)))
699
+ Q.lastIndex = o;
700
+ var d = Q.exec(this.input);
701
+ if (d && tt.test(this.input.slice(o, o + d[0].length)))
701
702
  return !1;
702
703
  }
703
704
  if (e) {
@@ -754,8 +755,8 @@ E.parseStatement = function(t, e, s) {
754
755
  case u._export:
755
756
  case u._import:
756
757
  if (this.options.ecmaVersion > 10 && a === u._import) {
757
- X.lastIndex = this.pos;
758
- var d = X.exec(this.input), v = this.pos + d[0].length, g = this.input.charCodeAt(v);
758
+ Q.lastIndex = this.pos;
759
+ var d = Q.exec(this.input), v = this.pos + d[0].length, g = this.input.charCodeAt(v);
759
760
  if (g === 40 || g === 46)
760
761
  return this.parseExpressionStatement(o, this.parseExpression());
761
762
  }
@@ -806,8 +807,8 @@ E.parseForStatement = function(t) {
806
807
  var g = this.startNode();
807
808
  return this.next(), v === "await using" && this.next(), this.parseVar(g, !0, v), this.finishNode(g, "VariableDeclaration"), this.parseForAfterInit(t, g, e);
808
809
  }
809
- var h = this.containsEsc, C = new ie(), _ = this.start, M = e > -1 ? this.parseExprSubscripts(C, "await") : this.parseExpression(!0, C);
810
- return this.type === u._in || (d = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (e > -1 ? (this.type === u._in && this.unexpected(e), t.await = !0) : d && this.options.ecmaVersion >= 8 && (M.start === _ && !h && M.type === "Identifier" && M.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (t.await = !1)), l && d && this.raise(M.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(M, !1, C), this.checkLValPattern(M), this.parseForIn(t, M)) : (this.checkExpressionErrors(C, !0), e > -1 && this.unexpected(e), this.parseFor(t, M));
810
+ var h = this.containsEsc, C = new ie(), _ = this.start, j = e > -1 ? this.parseExprSubscripts(C, "await") : this.parseExpression(!0, C);
811
+ return this.type === u._in || (d = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (e > -1 ? (this.type === u._in && this.unexpected(e), t.await = !0) : d && this.options.ecmaVersion >= 8 && (j.start === _ && !h && j.type === "Identifier" && j.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (t.await = !1)), l && d && this.raise(j.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(j, !1, C), this.checkLValPattern(j), this.parseForIn(t, j)) : (this.checkExpressionErrors(C, !0), e > -1 && this.unexpected(e), this.parseFor(t, j));
811
812
  };
812
813
  E.parseForAfterInit = function(t, e, s) {
813
814
  return (this.type === u._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && e.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === u._in ? s > -1 && this.unexpected(s) : t.await = s > -1), this.parseForIn(t, e)) : (s > -1 && this.unexpected(s), this.parseFor(t, e));
@@ -832,7 +833,7 @@ E.parseSwitchStatement = function(t) {
832
833
  return this.exitScope(), e && this.finishNode(e, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(t, "SwitchStatement");
833
834
  };
834
835
  E.parseThrowStatement = function(t) {
835
- return this.next(), Z.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
836
+ return this.next(), tt.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
836
837
  };
837
838
  var Gi = [];
838
839
  E.parseCatchClauseParam = function() {
@@ -1145,7 +1146,7 @@ E.isDirectiveCandidate = function(t) {
1145
1146
  return this.options.ecmaVersion >= 5 && t.type === "ExpressionStatement" && t.expression.type === "Literal" && typeof t.expression.value == "string" && // Reject parenthesized strings.
1146
1147
  (this.input[t.start] === '"' || this.input[t.start] === "'");
1147
1148
  };
1148
- var pt = K.prototype;
1149
+ var pt = J.prototype;
1149
1150
  pt.toAssignable = function(t, e, s) {
1150
1151
  if (this.options.ecmaVersion >= 6 && t)
1151
1152
  switch (t.type) {
@@ -1302,31 +1303,31 @@ pt.checkLValInnerPattern = function(t, e, s) {
1302
1303
  this.checkLValPattern(t, e, s);
1303
1304
  }
1304
1305
  };
1305
- var Y = function(e, s, a, o, l) {
1306
+ var Z = function(e, s, a, o, l) {
1306
1307
  this.token = e, this.isExpr = !!s, this.preserveSpace = !!a, this.override = o, this.generator = !!l;
1307
- }, U = {
1308
- b_stat: new Y("{", !1),
1309
- b_expr: new Y("{", !0),
1310
- b_tmpl: new Y("${", !1),
1311
- p_stat: new Y("(", !1),
1312
- p_expr: new Y("(", !0),
1313
- q_tmpl: new Y("`", !0, !0, function(t) {
1308
+ }, H = {
1309
+ b_stat: new Z("{", !1),
1310
+ b_expr: new Z("{", !0),
1311
+ b_tmpl: new Z("${", !1),
1312
+ p_stat: new Z("(", !1),
1313
+ p_expr: new Z("(", !0),
1314
+ q_tmpl: new Z("`", !0, !0, function(t) {
1314
1315
  return t.tryReadTemplateToken();
1315
1316
  }),
1316
- f_stat: new Y("function", !1),
1317
- f_expr: new Y("function", !0),
1318
- f_expr_gen: new Y("function", !0, !1, null, !0),
1319
- f_gen: new Y("function", !1, !1, null, !0)
1320
- }, _t = K.prototype;
1317
+ f_stat: new Z("function", !1),
1318
+ f_expr: new Z("function", !0),
1319
+ f_expr_gen: new Z("function", !0, !1, null, !0),
1320
+ f_gen: new Z("function", !1, !1, null, !0)
1321
+ }, _t = J.prototype;
1321
1322
  _t.initialContext = function() {
1322
- return [U.b_stat];
1323
+ return [H.b_stat];
1323
1324
  };
1324
1325
  _t.curContext = function() {
1325
1326
  return this.context[this.context.length - 1];
1326
1327
  };
1327
1328
  _t.braceIsBlock = function(t) {
1328
1329
  var e = this.curContext();
1329
- return e === U.f_expr || e === U.f_stat ? !0 : t === u.colon && (e === U.b_stat || e === U.b_expr) ? !e.isExpr : t === u._return || t === u.name && this.exprAllowed ? Z.test(this.input.slice(this.lastTokEnd, this.start)) : t === u._else || t === u.semi || t === u.eof || t === u.parenR || t === u.arrow ? !0 : t === u.braceL ? e === U.b_stat : t === u._var || t === u._const || t === u.name ? !1 : !this.exprAllowed;
1330
+ return e === H.f_expr || e === H.f_stat ? !0 : t === u.colon && (e === H.b_stat || e === H.b_expr) ? !e.isExpr : t === u._return || t === u.name && this.exprAllowed ? tt.test(this.input.slice(this.lastTokEnd, this.start)) : t === u._else || t === u.semi || t === u.eof || t === u.parenR || t === u.arrow ? !0 : t === u.braceL ? e === H.b_stat : t === u._var || t === u._const || t === u.name ? !1 : !this.exprAllowed;
1330
1331
  };
1331
1332
  _t.inGeneratorContext = function() {
1332
1333
  for (var t = this.context.length - 1; t >= 1; t--) {
@@ -1349,33 +1350,33 @@ u.parenR.updateContext = u.braceR.updateContext = function() {
1349
1350
  return;
1350
1351
  }
1351
1352
  var t = this.context.pop();
1352
- t === U.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
1353
+ t === H.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
1353
1354
  };
1354
1355
  u.braceL.updateContext = function(t) {
1355
- this.context.push(this.braceIsBlock(t) ? U.b_stat : U.b_expr), this.exprAllowed = !0;
1356
+ this.context.push(this.braceIsBlock(t) ? H.b_stat : H.b_expr), this.exprAllowed = !0;
1356
1357
  };
1357
1358
  u.dollarBraceL.updateContext = function() {
1358
- this.context.push(U.b_tmpl), this.exprAllowed = !0;
1359
+ this.context.push(H.b_tmpl), this.exprAllowed = !0;
1359
1360
  };
1360
1361
  u.parenL.updateContext = function(t) {
1361
1362
  var e = t === u._if || t === u._for || t === u._with || t === u._while;
1362
- this.context.push(e ? U.p_stat : U.p_expr), this.exprAllowed = !0;
1363
+ this.context.push(e ? H.p_stat : H.p_expr), this.exprAllowed = !0;
1363
1364
  };
1364
1365
  u.incDec.updateContext = function() {
1365
1366
  };
1366
1367
  u._function.updateContext = u._class.updateContext = function(t) {
1367
- t.beforeExpr && t !== u._else && !(t === u.semi && this.curContext() !== U.p_stat) && !(t === u._return && Z.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === u.colon || t === u.braceL) && this.curContext() === U.b_stat) ? this.context.push(U.f_expr) : this.context.push(U.f_stat), this.exprAllowed = !1;
1368
+ t.beforeExpr && t !== u._else && !(t === u.semi && this.curContext() !== H.p_stat) && !(t === u._return && tt.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === u.colon || t === u.braceL) && this.curContext() === H.b_stat) ? this.context.push(H.f_expr) : this.context.push(H.f_stat), this.exprAllowed = !1;
1368
1369
  };
1369
1370
  u.colon.updateContext = function() {
1370
1371
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
1371
1372
  };
1372
1373
  u.backQuote.updateContext = function() {
1373
- this.curContext() === U.q_tmpl ? this.context.pop() : this.context.push(U.q_tmpl), this.exprAllowed = !1;
1374
+ this.curContext() === H.q_tmpl ? this.context.pop() : this.context.push(H.q_tmpl), this.exprAllowed = !1;
1374
1375
  };
1375
1376
  u.star.updateContext = function(t) {
1376
1377
  if (t === u._function) {
1377
1378
  var e = this.context.length - 1;
1378
- this.context[e] === U.f_expr ? this.context[e] = U.f_expr_gen : this.context[e] = U.f_gen;
1379
+ this.context[e] === H.f_expr ? this.context[e] = H.f_expr_gen : this.context[e] = H.f_gen;
1379
1380
  }
1380
1381
  this.exprAllowed = !0;
1381
1382
  };
@@ -1383,7 +1384,7 @@ u.name.updateContext = function(t) {
1383
1384
  var e = !1;
1384
1385
  this.options.ecmaVersion >= 6 && t !== u.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (e = !0), this.exprAllowed = e;
1385
1386
  };
1386
- var L = K.prototype;
1387
+ var L = J.prototype;
1387
1388
  L.checkPropClash = function(t, e, s) {
1388
1389
  if (!(this.options.ecmaVersion >= 9 && t.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (t.computed || t.method || t.shorthand))) {
1389
1390
  var a = t.key, o;
@@ -1465,8 +1466,8 @@ L.parseExprOp = function(t, e, s, a, o) {
1465
1466
  v && (l = u.logicalAND.binop);
1466
1467
  var g = this.value;
1467
1468
  this.next();
1468
- var h = this.start, C = this.startLoc, _ = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, o), h, C, l, o), M = this.buildBinary(e, s, t, _, g, d || v);
1469
- return (d && this.type === u.coalesce || v && (this.type === u.logicalOR || this.type === u.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(M, e, s, a, o);
1469
+ var h = this.start, C = this.startLoc, _ = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, o), h, C, l, o), j = this.buildBinary(e, s, t, _, g, d || v);
1470
+ return (d && this.type === u.coalesce || v && (this.type === u.logicalOR || this.type === u.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(j, e, s, a, o);
1470
1471
  }
1471
1472
  return t;
1472
1473
  };
@@ -1540,14 +1541,14 @@ L.parseSubscript = function(t, e, s, a, o, l, d) {
1540
1541
  var C = this.startNodeAt(e, s);
1541
1542
  C.object = t, h ? (C.property = this.parseExpression(), this.expect(u.bracketR)) : this.type === u.privateId && t.type !== "Super" ? C.property = this.parsePrivateIdent() : C.property = this.parseIdent(this.options.allowReserved !== "never"), C.computed = !!h, v && (C.optional = g), t = this.finishNode(C, "MemberExpression");
1542
1543
  } else if (!a && this.eat(u.parenL)) {
1543
- var _ = new ie(), M = this.yieldPos, H = this.awaitPos, J = this.awaitIdentPos;
1544
+ var _ = new ie(), j = this.yieldPos, B = this.awaitPos, U = this.awaitIdentPos;
1544
1545
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1545
- var et = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, _);
1546
+ var G = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, _);
1546
1547
  if (o && !g && this.shouldParseAsyncArrow())
1547
- return this.checkPatternErrors(_, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = H, this.awaitIdentPos = J, this.parseSubscriptAsyncArrow(e, s, et, d);
1548
- this.checkExpressionErrors(_, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = H || this.awaitPos, this.awaitIdentPos = J || this.awaitIdentPos;
1549
- var N = this.startNodeAt(e, s);
1550
- N.callee = t, N.arguments = et, v && (N.optional = g), t = this.finishNode(N, "CallExpression");
1548
+ return this.checkPatternErrors(_, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = j, this.awaitPos = B, this.awaitIdentPos = U, this.parseSubscriptAsyncArrow(e, s, G, d);
1549
+ this.checkExpressionErrors(_, !0), this.yieldPos = j || this.yieldPos, this.awaitPos = B || this.awaitPos, this.awaitIdentPos = U || this.awaitIdentPos;
1550
+ var I = this.startNodeAt(e, s);
1551
+ I.callee = t, I.arguments = G, v && (I.optional = g), t = this.finishNode(I, "CallExpression");
1551
1552
  } else if (this.type === u.backQuote) {
1552
1553
  (g || l) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1553
1554
  var it = this.startNodeAt(e, s);
@@ -1566,7 +1567,7 @@ L.parseExprAtom = function(t, e, s) {
1566
1567
  case u.name:
1567
1568
  var l = this.start, d = this.startLoc, v = this.containsEsc, g = this.parseIdent(!1);
1568
1569
  if (this.options.ecmaVersion >= 8 && !v && g.name === "async" && !this.canInsertSemicolon() && this.eat(u._function))
1569
- return this.overrideContext(U.f_expr), this.parseFunction(this.startNodeAt(l, d), 0, !1, !0, e);
1570
+ return this.overrideContext(H.f_expr), this.parseFunction(this.startNodeAt(l, d), 0, !1, !0, e);
1570
1571
  if (o && !this.canInsertSemicolon()) {
1571
1572
  if (this.eat(u.arrow))
1572
1573
  return this.parseArrowExpression(this.startNodeAt(l, d), [g], !1, e);
@@ -1590,7 +1591,7 @@ L.parseExprAtom = function(t, e, s) {
1590
1591
  case u.bracketL:
1591
1592
  return a = this.startNode(), this.next(), a.elements = this.parseExprList(u.bracketR, !0, !0, t), this.finishNode(a, "ArrayExpression");
1592
1593
  case u.braceL:
1593
- return this.overrideContext(U.b_expr), this.parseObj(!1, t);
1594
+ return this.overrideContext(H.b_expr), this.parseObj(!1, t);
1594
1595
  case u._function:
1595
1596
  return a = this.startNode(), this.next(), this.parseFunction(a, 0);
1596
1597
  case u._class:
@@ -1648,23 +1649,23 @@ L.parseParenAndDistinguishExpression = function(t, e) {
1648
1649
  var s = this.start, a = this.startLoc, o, l = this.options.ecmaVersion >= 8;
1649
1650
  if (this.options.ecmaVersion >= 6) {
1650
1651
  this.next();
1651
- var d = this.start, v = this.startLoc, g = [], h = !0, C = !1, _ = new ie(), M = this.yieldPos, H = this.awaitPos, J;
1652
+ var d = this.start, v = this.startLoc, g = [], h = !0, C = !1, _ = new ie(), j = this.yieldPos, B = this.awaitPos, U;
1652
1653
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== u.parenR; )
1653
1654
  if (h ? h = !1 : this.expect(u.comma), l && this.afterTrailingComma(u.parenR, !0)) {
1654
1655
  C = !0;
1655
1656
  break;
1656
1657
  } else if (this.type === u.ellipsis) {
1657
- J = this.start, g.push(this.parseParenItem(this.parseRestBinding())), this.type === u.comma && this.raiseRecoverable(
1658
+ U = this.start, g.push(this.parseParenItem(this.parseRestBinding())), this.type === u.comma && this.raiseRecoverable(
1658
1659
  this.start,
1659
1660
  "Comma is not permitted after the rest element"
1660
1661
  );
1661
1662
  break;
1662
1663
  } else
1663
1664
  g.push(this.parseMaybeAssign(!1, _, this.parseParenItem));
1664
- var et = this.lastTokEnd, N = this.lastTokEndLoc;
1665
+ var G = this.lastTokEnd, I = this.lastTokEndLoc;
1665
1666
  if (this.expect(u.parenR), t && this.shouldParseArrow(g) && this.eat(u.arrow))
1666
- return this.checkPatternErrors(_, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = M, this.awaitPos = H, this.parseParenArrowList(s, a, g, e);
1667
- (!g.length || C) && this.unexpected(this.lastTokStart), J && this.unexpected(J), this.checkExpressionErrors(_, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = H || this.awaitPos, g.length > 1 ? (o = this.startNodeAt(d, v), o.expressions = g, this.finishNodeAt(o, "SequenceExpression", et, N)) : o = g[0];
1667
+ return this.checkPatternErrors(_, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = j, this.awaitPos = B, this.parseParenArrowList(s, a, g, e);
1668
+ (!g.length || C) && this.unexpected(this.lastTokStart), U && this.unexpected(U), this.checkExpressionErrors(_, !0), this.yieldPos = j || this.yieldPos, this.awaitPos = B || this.awaitPos, g.length > 1 ? (o = this.startNodeAt(d, v), o.expressions = g, this.finishNodeAt(o, "SequenceExpression", G, I)) : o = g[0];
1668
1669
  } else
1669
1670
  o = this.parseParenExpression();
1670
1671
  if (this.options.preserveParens) {
@@ -1716,7 +1717,7 @@ L.parseTemplate = function(t) {
1716
1717
  return this.next(), this.finishNode(s, "TemplateLiteral");
1717
1718
  };
1718
1719
  L.isAsyncProp = function(t) {
1719
- return !t.computed && t.key.type === "Identifier" && t.key.name === "async" && (this.type === u.name || this.type === u.num || this.type === u.string || this.type === u.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === u.star) && !Z.test(this.input.slice(this.lastTokEnd, this.start));
1720
+ return !t.computed && t.key.type === "Identifier" && t.key.name === "async" && (this.type === u.name || this.type === u.num || this.type === u.string || this.type === u.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === u.star) && !tt.test(this.input.slice(this.lastTokEnd, this.start));
1720
1721
  };
1721
1722
  L.parseObj = function(t, e) {
1722
1723
  var s = this.startNode(), a = !0, o = {};
@@ -1836,7 +1837,7 @@ L.parseAwait = function(t) {
1836
1837
  var e = this.startNode();
1837
1838
  return this.next(), e.argument = this.parseMaybeUnary(null, !0, !1, t), this.finishNode(e, "AwaitExpression");
1838
1839
  };
1839
- var Qt = K.prototype;
1840
+ var Qt = J.prototype;
1840
1841
  Qt.raise = function(t, e) {
1841
1842
  var s = be(this.input, t);
1842
1843
  e += " (" + s.line + ":" + s.column + ")", this.sourceFile && (e += " in " + this.sourceFile);
@@ -1848,7 +1849,7 @@ Qt.curPosition = function() {
1848
1849
  if (this.options.locations)
1849
1850
  return new wt(this.curLine, this.pos - this.lineStart);
1850
1851
  };
1851
- var Tt = K.prototype, Qi = function(e) {
1852
+ var Tt = J.prototype, Qi = function(e) {
1852
1853
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
1853
1854
  };
1854
1855
  Tt.enterScope = function(t) {
@@ -1905,7 +1906,7 @@ Tt.currentThisScope = function() {
1905
1906
  };
1906
1907
  var qt = function(e, s, a) {
1907
1908
  this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new jt(e, a)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [s, 0]);
1908
- }, Ht = K.prototype;
1909
+ }, Ht = J.prototype;
1909
1910
  Ht.startNode = function() {
1910
1911
  return new qt(this, this.start, this.startLoc);
1911
1912
  };
@@ -1964,7 +1965,7 @@ for (var pe = 0, Me = [9, 10, 11, 12, 13, 14]; pe < Me.length; pe += 1) {
1964
1965
  var ns = Me[pe];
1965
1966
  as(ns);
1966
1967
  }
1967
- var k = K.prototype, Yt = function(e, s) {
1968
+ var k = J.prototype, Yt = function(e, s) {
1968
1969
  this.parent = e, this.base = s || this;
1969
1970
  };
1970
1971
  Yt.prototype.separatedFrom = function(e) {
@@ -2796,14 +2797,14 @@ k.regexp_eatFixedHexDigits = function(t, e) {
2796
2797
  };
2797
2798
  var re = function(e) {
2798
2799
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new jt(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2799
- }, V = K.prototype;
2800
- V.next = function(t) {
2800
+ }, D = J.prototype;
2801
+ D.next = function(t) {
2801
2802
  !t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new re(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2802
2803
  };
2803
- V.getToken = function() {
2804
+ D.getToken = function() {
2804
2805
  return this.next(), new re(this);
2805
2806
  };
2806
- typeof Symbol < "u" && (V[Symbol.iterator] = function() {
2807
+ typeof Symbol < "u" && (D[Symbol.iterator] = function() {
2807
2808
  var t = this;
2808
2809
  return {
2809
2810
  next: function() {
@@ -2815,7 +2816,7 @@ typeof Symbol < "u" && (V[Symbol.iterator] = function() {
2815
2816
  }
2816
2817
  };
2817
2818
  });
2818
- V.nextToken = function() {
2819
+ D.nextToken = function() {
2819
2820
  var t = this.curContext();
2820
2821
  if ((!t || !t.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
2821
2822
  return this.finishToken(u.eof);
@@ -2823,17 +2824,17 @@ V.nextToken = function() {
2823
2824
  return t.override(this);
2824
2825
  this.readToken(this.fullCharCodeAtPos());
2825
2826
  };
2826
- V.readToken = function(t) {
2827
+ D.readToken = function(t) {
2827
2828
  return lt(t, this.options.ecmaVersion >= 6) || t === 92 ? this.readWord() : this.getTokenFromCode(t);
2828
2829
  };
2829
- V.fullCharCodeAtPos = function() {
2830
+ D.fullCharCodeAtPos = function() {
2830
2831
  var t = this.input.charCodeAt(this.pos);
2831
2832
  if (t <= 55295 || t >= 56320)
2832
2833
  return t;
2833
2834
  var e = this.input.charCodeAt(this.pos + 1);
2834
2835
  return e <= 56319 || e >= 57344 ? t : (t << 10) + e - 56613888;
2835
2836
  };
2836
- V.skipBlockComment = function() {
2837
+ D.skipBlockComment = function() {
2837
2838
  var t = this.options.onComment && this.curPosition(), e = this.pos, s = this.input.indexOf("*/", this.pos += 2);
2838
2839
  if (s === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = s + 2, this.options.locations)
2839
2840
  for (var a = void 0, o = e; (a = Ke(this.input, o, this.pos)) > -1; )
@@ -2847,7 +2848,7 @@ V.skipBlockComment = function() {
2847
2848
  this.curPosition()
2848
2849
  );
2849
2850
  };
2850
- V.skipLineComment = function(t) {
2851
+ D.skipLineComment = function(t) {
2851
2852
  for (var e = this.pos, s = this.options.onComment && this.curPosition(), a = this.input.charCodeAt(this.pos += t); this.pos < this.input.length && !Ct(a); )
2852
2853
  a = this.input.charCodeAt(++this.pos);
2853
2854
  this.options.onComment && this.options.onComment(
@@ -2859,7 +2860,7 @@ V.skipLineComment = function(t) {
2859
2860
  this.curPosition()
2860
2861
  );
2861
2862
  };
2862
- V.skipSpace = function() {
2863
+ D.skipSpace = function() {
2863
2864
  t: for (; this.pos < this.input.length; ) {
2864
2865
  var t = this.input.charCodeAt(this.pos);
2865
2866
  switch (t) {
@@ -2894,27 +2895,27 @@ V.skipSpace = function() {
2894
2895
  }
2895
2896
  }
2896
2897
  };
2897
- V.finishToken = function(t, e) {
2898
+ D.finishToken = function(t, e) {
2898
2899
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2899
2900
  var s = this.type;
2900
2901
  this.type = t, this.value = e, this.updateContext(s);
2901
2902
  };
2902
- V.readToken_dot = function() {
2903
+ D.readToken_dot = function() {
2903
2904
  var t = this.input.charCodeAt(this.pos + 1);
2904
2905
  if (t >= 48 && t <= 57)
2905
2906
  return this.readNumber(!0);
2906
2907
  var e = this.input.charCodeAt(this.pos + 2);
2907
2908
  return this.options.ecmaVersion >= 6 && t === 46 && e === 46 ? (this.pos += 3, this.finishToken(u.ellipsis)) : (++this.pos, this.finishToken(u.dot));
2908
2909
  };
2909
- V.readToken_slash = function() {
2910
+ D.readToken_slash = function() {
2910
2911
  var t = this.input.charCodeAt(this.pos + 1);
2911
2912
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : t === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.slash, 1);
2912
2913
  };
2913
- V.readToken_mult_modulo_exp = function(t) {
2914
+ D.readToken_mult_modulo_exp = function(t) {
2914
2915
  var e = this.input.charCodeAt(this.pos + 1), s = 1, a = t === 42 ? u.star : u.modulo;
2915
2916
  return this.options.ecmaVersion >= 7 && t === 42 && e === 42 && (++s, a = u.starstar, e = this.input.charCodeAt(this.pos + 2)), e === 61 ? this.finishOp(u.assign, s + 1) : this.finishOp(a, s);
2916
2917
  };
2917
- V.readToken_pipe_amp = function(t) {
2918
+ D.readToken_pipe_amp = function(t) {
2918
2919
  var e = this.input.charCodeAt(this.pos + 1);
2919
2920
  if (e === t) {
2920
2921
  if (this.options.ecmaVersion >= 12) {
@@ -2926,23 +2927,23 @@ V.readToken_pipe_amp = function(t) {
2926
2927
  }
2927
2928
  return e === 61 ? this.finishOp(u.assign, 2) : this.finishOp(t === 124 ? u.bitwiseOR : u.bitwiseAND, 1);
2928
2929
  };
2929
- V.readToken_caret = function() {
2930
+ D.readToken_caret = function() {
2930
2931
  var t = this.input.charCodeAt(this.pos + 1);
2931
2932
  return t === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.bitwiseXOR, 1);
2932
2933
  };
2933
- V.readToken_plus_min = function(t) {
2934
+ D.readToken_plus_min = function(t) {
2934
2935
  var e = this.input.charCodeAt(this.pos + 1);
2935
- return e === t ? e === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || Z.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(u.incDec, 2) : e === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.plusMin, 1);
2936
+ return e === t ? e === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || tt.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(u.incDec, 2) : e === 61 ? this.finishOp(u.assign, 2) : this.finishOp(u.plusMin, 1);
2936
2937
  };
2937
- V.readToken_lt_gt = function(t) {
2938
+ D.readToken_lt_gt = function(t) {
2938
2939
  var e = this.input.charCodeAt(this.pos + 1), s = 1;
2939
2940
  return e === t ? (s = t === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + s) === 61 ? this.finishOp(u.assign, s + 1) : this.finishOp(u.bitShift, s)) : e === 33 && t === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (e === 61 && (s = 2), this.finishOp(u.relational, s));
2940
2941
  };
2941
- V.readToken_eq_excl = function(t) {
2942
+ D.readToken_eq_excl = function(t) {
2942
2943
  var e = this.input.charCodeAt(this.pos + 1);
2943
2944
  return e === 61 ? this.finishOp(u.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : t === 61 && e === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(u.arrow)) : this.finishOp(t === 61 ? u.eq : u.prefix, 1);
2944
2945
  };
2945
- V.readToken_question = function() {
2946
+ D.readToken_question = function() {
2946
2947
  var t = this.options.ecmaVersion;
2947
2948
  if (t >= 11) {
2948
2949
  var e = this.input.charCodeAt(this.pos + 1);
@@ -2962,13 +2963,13 @@ V.readToken_question = function() {
2962
2963
  }
2963
2964
  return this.finishOp(u.question, 1);
2964
2965
  };
2965
- V.readToken_numberSign = function() {
2966
+ D.readToken_numberSign = function() {
2966
2967
  var t = this.options.ecmaVersion, e = 35;
2967
2968
  if (t >= 13 && (++this.pos, e = this.fullCharCodeAtPos(), lt(e, !0) || e === 92))
2968
2969
  return this.finishToken(u.privateId, this.readWord1());
2969
2970
  this.raise(this.pos, "Unexpected character '" + yt(e) + "'");
2970
2971
  };
2971
- V.getTokenFromCode = function(t) {
2972
+ D.getTokenFromCode = function(t) {
2972
2973
  switch (t) {
2973
2974
  // The interpretation of a dot depends on whether it is followed
2974
2975
  // by a digit or another two dots.
@@ -3055,15 +3056,15 @@ V.getTokenFromCode = function(t) {
3055
3056
  }
3056
3057
  this.raise(this.pos, "Unexpected character '" + yt(t) + "'");
3057
3058
  };
3058
- V.finishOp = function(t, e) {
3059
+ D.finishOp = function(t, e) {
3059
3060
  var s = this.input.slice(this.pos, this.pos + e);
3060
3061
  return this.pos += e, this.finishToken(t, s);
3061
3062
  };
3062
- V.readRegexp = function() {
3063
+ D.readRegexp = function() {
3063
3064
  for (var t, e, s = this.pos; ; ) {
3064
3065
  this.pos >= this.input.length && this.raise(s, "Unterminated regular expression");
3065
3066
  var a = this.input.charAt(this.pos);
3066
- if (Z.test(a) && this.raise(s, "Unterminated regular expression"), t)
3067
+ if (tt.test(a) && this.raise(s, "Unterminated regular expression"), t)
3067
3068
  t = !1;
3068
3069
  else {
3069
3070
  if (a === "[")
@@ -3089,7 +3090,7 @@ V.readRegexp = function() {
3089
3090
  }
3090
3091
  return this.finishToken(u.regexp, { pattern: o, flags: d, value: g });
3091
3092
  };
3092
- V.readInt = function(t, e, s) {
3093
+ D.readInt = function(t, e, s) {
3093
3094
  for (var a = this.options.ecmaVersion >= 12 && e === void 0, o = s && this.input.charCodeAt(this.pos) === 48, l = this.pos, d = 0, v = 0, g = 0, h = e ?? 1 / 0; g < h; ++g, ++this.pos) {
3094
3095
  var C = this.input.charCodeAt(this.pos), _ = void 0;
3095
3096
  if (a && C === 95) {
@@ -3108,13 +3109,13 @@ function xs(t, e) {
3108
3109
  function Si(t) {
3109
3110
  return typeof BigInt != "function" ? null : BigInt(t.replace(/_/g, ""));
3110
3111
  }
3111
- V.readRadixNumber = function(t) {
3112
+ D.readRadixNumber = function(t) {
3112
3113
  var e = this.pos;
3113
3114
  this.pos += 2;
3114
3115
  var s = this.readInt(t);
3115
3116
  return s == null && this.raise(this.start + 2, "Expected number in radix " + t), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (s = Si(this.input.slice(e, this.pos)), ++this.pos) : lt(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(u.num, s);
3116
3117
  };
3117
- V.readNumber = function(t) {
3118
+ D.readNumber = function(t) {
3118
3119
  var e = this.pos;
3119
3120
  !t && this.readInt(10, void 0, !0) === null && this.raise(e, "Invalid number");
3120
3121
  var s = this.pos - e >= 2 && this.input.charCodeAt(e) === 48;
@@ -3128,7 +3129,7 @@ V.readNumber = function(t) {
3128
3129
  var l = xs(this.input.slice(e, this.pos), s);
3129
3130
  return this.finishToken(u.num, l);
3130
3131
  };
3131
- V.readCodePoint = function() {
3132
+ D.readCodePoint = function() {
3132
3133
  var t = this.input.charCodeAt(this.pos), e;
3133
3134
  if (t === 123) {
3134
3135
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -3138,7 +3139,7 @@ V.readCodePoint = function() {
3138
3139
  e = this.readHexChar(4);
3139
3140
  return e;
3140
3141
  };
3141
- V.readString = function(t) {
3142
+ D.readString = function(t) {
3142
3143
  for (var e = "", s = ++this.pos; ; ) {
3143
3144
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3144
3145
  var a = this.input.charCodeAt(this.pos);
@@ -3149,7 +3150,7 @@ V.readString = function(t) {
3149
3150
  return e += this.input.slice(s, this.pos++), this.finishToken(u.string, e);
3150
3151
  };
3151
3152
  var Ti = {};
3152
- V.tryReadTemplateToken = function() {
3153
+ D.tryReadTemplateToken = function() {
3153
3154
  this.inTemplateElement = !0;
3154
3155
  try {
3155
3156
  this.readTmplToken();
@@ -3161,12 +3162,12 @@ V.tryReadTemplateToken = function() {
3161
3162
  }
3162
3163
  this.inTemplateElement = !1;
3163
3164
  };
3164
- V.invalidStringToken = function(t, e) {
3165
+ D.invalidStringToken = function(t, e) {
3165
3166
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
3166
3167
  throw Ti;
3167
3168
  this.raise(t, e);
3168
3169
  };
3169
- V.readTmplToken = function() {
3170
+ D.readTmplToken = function() {
3170
3171
  for (var t = "", e = this.pos; ; ) {
3171
3172
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3172
3173
  var s = this.input.charCodeAt(this.pos);
@@ -3191,7 +3192,7 @@ V.readTmplToken = function() {
3191
3192
  ++this.pos;
3192
3193
  }
3193
3194
  };
3194
- V.readInvalidTemplateToken = function() {
3195
+ D.readInvalidTemplateToken = function() {
3195
3196
  for (; this.pos < this.input.length; this.pos++)
3196
3197
  switch (this.input[this.pos]) {
3197
3198
  case "\\":
@@ -3216,7 +3217,7 @@ V.readInvalidTemplateToken = function() {
3216
3217
  }
3217
3218
  this.raise(this.start, "Unterminated template");
3218
3219
  };
3219
- V.readEscapedChar = function(t) {
3220
+ D.readEscapedChar = function(t) {
3220
3221
  var e = this.input.charCodeAt(++this.pos);
3221
3222
  switch (++this.pos, e) {
3222
3223
  case 110:
@@ -3272,11 +3273,11 @@ V.readEscapedChar = function(t) {
3272
3273
  return Ct(e) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(e);
3273
3274
  }
3274
3275
  };
3275
- V.readHexChar = function(t) {
3276
+ D.readHexChar = function(t) {
3276
3277
  var e = this.pos, s = this.readInt(16, t);
3277
3278
  return s === null && this.invalidStringToken(e, "Bad character escape sequence"), s;
3278
3279
  };
3279
- V.readWord1 = function() {
3280
+ D.readWord1 = function() {
3280
3281
  this.containsEsc = !1;
3281
3282
  for (var t = "", e = !0, s = this.pos, a = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
3282
3283
  var o = this.fullCharCodeAtPos();
@@ -3294,13 +3295,13 @@ V.readWord1 = function() {
3294
3295
  }
3295
3296
  return t + this.input.slice(s, this.pos);
3296
3297
  };
3297
- V.readWord = function() {
3298
+ D.readWord = function() {
3298
3299
  var t = this.readWord1(), e = u.name;
3299
3300
  return this.keywords.test(t) && (e = Et[t]), this.finishToken(e, t);
3300
3301
  };
3301
3302
  var Pi = "8.15.0";
3302
- K.acorn = {
3303
- Parser: K,
3303
+ J.acorn = {
3304
+ Parser: J,
3304
3305
  version: Pi,
3305
3306
  defaultOptions: Gt,
3306
3307
  Position: wt,
@@ -3310,32 +3311,32 @@ K.acorn = {
3310
3311
  TokenType: R,
3311
3312
  tokTypes: u,
3312
3313
  keywordTypes: Et,
3313
- TokContext: Y,
3314
- tokContexts: U,
3314
+ TokContext: Z,
3315
+ tokContexts: H,
3315
3316
  isIdentifierChar: mt,
3316
3317
  isIdentifierStart: lt,
3317
3318
  Token: re,
3318
3319
  isNewLine: Ct,
3319
- lineBreak: Z,
3320
+ lineBreak: tt,
3320
3321
  lineBreakG: ze,
3321
3322
  nonASCIIwhitespace: ge
3322
3323
  };
3323
3324
  function vs(t, e) {
3324
- return K.parse(t, e);
3325
+ return J.parse(t, e);
3325
3326
  }
3326
3327
  function gs(t, e, s) {
3327
- return K.parseExpressionAt(t, e, s);
3328
+ return J.parseExpressionAt(t, e, s);
3328
3329
  }
3329
3330
  function bs(t, e) {
3330
- return K.tokenizer(t, e);
3331
+ return J.tokenizer(t, e);
3331
3332
  }
3332
3333
  const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3333
3334
  __proto__: null,
3334
3335
  Node: qt,
3335
- Parser: K,
3336
+ Parser: J,
3336
3337
  Position: wt,
3337
3338
  SourceLocation: jt,
3338
- TokContext: Y,
3339
+ TokContext: Z,
3339
3340
  Token: re,
3340
3341
  TokenType: R,
3341
3342
  defaultOptions: Gt,
@@ -3344,12 +3345,12 @@ const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3344
3345
  isIdentifierStart: lt,
3345
3346
  isNewLine: Ct,
3346
3347
  keywordTypes: Et,
3347
- lineBreak: Z,
3348
+ lineBreak: tt,
3348
3349
  lineBreakG: ze,
3349
3350
  nonASCIIwhitespace: ge,
3350
3351
  parse: vs,
3351
3352
  parseExpressionAt: gs,
3352
- tokContexts: U,
3353
+ tokContexts: H,
3353
3354
  tokTypes: u,
3354
3355
  tokenizer: bs,
3355
3356
  version: Pi
@@ -3419,7 +3420,7 @@ var Ts = /* @__PURE__ */ new WeakMap();
3419
3420
  function Ps(t) {
3420
3421
  var e = Ts.get(t.Parser.acorn || t);
3421
3422
  if (!e) {
3422
- var s = { assert: ot(0, { startsExpr: nt }), asserts: ot(0, { startsExpr: nt }), global: ot(0, { startsExpr: nt }), keyof: ot(0, { startsExpr: nt }), readonly: ot(0, { startsExpr: nt }), unique: ot(0, { startsExpr: nt }), abstract: ot(0, { startsExpr: nt }), declare: ot(0, { startsExpr: nt }), enum: ot(0, { startsExpr: nt }), module: ot(0, { startsExpr: nt }), namespace: ot(0, { startsExpr: nt }), interface: ot(0, { startsExpr: nt }), type: ot(0, { startsExpr: nt }) }, a = { at: new R("@"), jsxName: new R("jsxName"), jsxText: new R("jsxText", { beforeExpr: !0 }), jsxTagStart: new R("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new R("jsxTagEnd") }, o = { tc_oTag: new Y("<tag", !1, !1), tc_cTag: new Y("</tag", !1, !1), tc_expr: new Y("<tag>...</tag>", !0, !0) }, l = new RegExp("^(?:" + Object.keys(s).join("|") + ")$");
3423
+ var s = { assert: ot(0, { startsExpr: nt }), asserts: ot(0, { startsExpr: nt }), global: ot(0, { startsExpr: nt }), keyof: ot(0, { startsExpr: nt }), readonly: ot(0, { startsExpr: nt }), unique: ot(0, { startsExpr: nt }), abstract: ot(0, { startsExpr: nt }), declare: ot(0, { startsExpr: nt }), enum: ot(0, { startsExpr: nt }), module: ot(0, { startsExpr: nt }), namespace: ot(0, { startsExpr: nt }), interface: ot(0, { startsExpr: nt }), type: ot(0, { startsExpr: nt }) }, a = { at: new R("@"), jsxName: new R("jsxName"), jsxText: new R("jsxText", { beforeExpr: !0 }), jsxTagStart: new R("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new R("jsxTagEnd") }, o = { tc_oTag: new Z("<tag", !1, !1), tc_cTag: new Z("</tag", !1, !1), tc_expr: new Z("<tag>...</tag>", !0, !0) }, l = new RegExp("^(?:" + Object.keys(s).join("|") + ")$");
3423
3424
  a.jsxTagStart.updateContext = function() {
3424
3425
  this.context.push(o.tc_expr), this.context.push(o.tc_oTag), this.exprAllowed = !1;
3425
3426
  }, a.jsxTagEnd.updateContext = function(d) {
@@ -3520,17 +3521,17 @@ function qe(t) {
3520
3521
  function Ls(t) {
3521
3522
  var e = {}, s = e.dts, a = s !== void 0 && s, o = e.allowSatisfies, l = o !== void 0 && o;
3522
3523
  return function(d) {
3523
- var v = d.acorn || Ss, g = Ps(v), h = v.tokTypes, C = v.keywordTypes, _ = v.isIdentifierStart, M = v.lineBreak, H = v.isNewLine, J = v.tokContexts, et = v.isIdentifierChar, N = g.tokTypes, it = g.tokContexts, ae = g.keywordsRegExp, ki = g.tokenIsLiteralPropertyName, Ai = g.tokenIsTemplate, Ei = g.tokenIsTSDeclarationStart, j = g.tokenIsIdentifier, Wt = g.tokenIsKeywordOrIdentifier, wi = g.tokenIsTSTypeOperator;
3524
- function Ii(P, st, Q) {
3525
- Q === void 0 && (Q = P.length);
3526
- for (var G = st; G < Q; G++) {
3527
- var B = P.charCodeAt(G);
3528
- if (H(B)) return G < Q - 1 && B === 13 && P.charCodeAt(G + 1) === 10 ? G + 2 : G + 1;
3524
+ var v = d.acorn || Ss, g = Ps(v), h = v.tokTypes, C = v.keywordTypes, _ = v.isIdentifierStart, j = v.lineBreak, B = v.isNewLine, U = v.tokContexts, G = v.isIdentifierChar, I = g.tokTypes, it = g.tokContexts, ae = g.keywordsRegExp, ki = g.tokenIsLiteralPropertyName, Ai = g.tokenIsTemplate, Ei = g.tokenIsTSDeclarationStart, q = g.tokenIsIdentifier, Wt = g.tokenIsKeywordOrIdentifier, wi = g.tokenIsTSTypeOperator;
3525
+ function Ii(P, st, Y) {
3526
+ Y === void 0 && (Y = P.length);
3527
+ for (var $ = st; $ < Y; $++) {
3528
+ var F = P.charCodeAt($);
3529
+ if (B(F)) return $ < Y - 1 && F === 13 && P.charCodeAt($ + 1) === 10 ? $ + 2 : $ + 1;
3529
3530
  }
3530
3531
  return -1;
3531
3532
  }
3532
- d = (function(P, st, Q) {
3533
- var G = Q.tokTypes, B = st.tokTypes;
3533
+ d = (function(P, st, Y) {
3534
+ var $ = Y.tokTypes, F = st.tokTypes;
3534
3535
  return (function(p) {
3535
3536
  function i() {
3536
3537
  return p.apply(this, arguments) || this;
@@ -3541,36 +3542,36 @@ function Ls(t) {
3541
3542
  var c = this.decoratorStack[this.decoratorStack.length - 1];
3542
3543
  c.length && (n.decorators = c, this.resetStartLocationFromNode(n, c[0]), this.decoratorStack[this.decoratorStack.length - 1] = []);
3543
3544
  }, r.parseDecorators = function(n) {
3544
- for (var c = this.decoratorStack[this.decoratorStack.length - 1]; this.match(B.at); ) {
3545
+ for (var c = this.decoratorStack[this.decoratorStack.length - 1]; this.match(F.at); ) {
3545
3546
  var f = this.parseDecorator();
3546
3547
  c.push(f);
3547
3548
  }
3548
- this.match(G._export) ? n || this.unexpected() : this.canHaveLeadingDecorator() || this.raise(this.start, "Leading decorators must be attached to a class declaration.");
3549
+ this.match($._export) ? n || this.unexpected() : this.canHaveLeadingDecorator() || this.raise(this.start, "Leading decorators must be attached to a class declaration.");
3549
3550
  }, r.parseDecorator = function() {
3550
3551
  var n = this.startNode();
3551
3552
  this.next(), this.decoratorStack.push([]);
3552
3553
  var c, f = this.start, m = this.startLoc;
3553
- if (this.match(G.parenL)) {
3554
+ if (this.match($.parenL)) {
3554
3555
  var y = this.start, x = this.startLoc;
3555
- if (this.next(), c = this.parseExpression(), this.expect(G.parenR), this.options.preserveParens) {
3556
+ if (this.next(), c = this.parseExpression(), this.expect($.parenR), this.options.preserveParens) {
3556
3557
  var b = this.startNodeAt(y, x);
3557
3558
  b.expression = c, c = this.finishNode(b, "ParenthesizedExpression");
3558
3559
  }
3559
- } else for (c = this.parseIdent(!1); this.eat(G.dot); ) {
3560
+ } else for (c = this.parseIdent(!1); this.eat($.dot); ) {
3560
3561
  var S = this.startNodeAt(f, m);
3561
3562
  S.object = c, S.property = this.parseIdent(!0), S.computed = !1, c = this.finishNode(S, "MemberExpression");
3562
3563
  }
3563
3564
  return n.expression = this.parseMaybeDecoratorArguments(c), this.decoratorStack.pop(), this.finishNode(n, "Decorator");
3564
3565
  }, r.parseMaybeDecoratorArguments = function(n) {
3565
- if (this.eat(G.parenL)) {
3566
+ if (this.eat($.parenL)) {
3566
3567
  var c = this.startNodeAtNode(n);
3567
- return c.callee = n, c.arguments = this.parseExprList(G.parenR, !1), this.finishNode(c, "CallExpression");
3568
+ return c.callee = n, c.arguments = this.parseExprList($.parenR, !1), this.finishNode(c, "CallExpression");
3568
3569
  }
3569
3570
  return n;
3570
3571
  }, i;
3571
3572
  })(P);
3572
- })(d, g, v), d = (function(P, st, Q, G) {
3573
- var B = P.tokTypes, p = st.tokTypes, i = P.isNewLine, r = P.isIdentifierChar, n = Object.assign({ allowNamespaces: !0, allowNamespacedObjects: !0 }, {});
3573
+ })(d, g, v), d = (function(P, st, Y, $) {
3574
+ var F = P.tokTypes, p = st.tokTypes, i = P.isNewLine, r = P.isIdentifierChar, n = Object.assign({ allowNamespaces: !0, allowNamespacedObjects: !0 }, {});
3574
3575
  return (function(c) {
3575
3576
  function f() {
3576
3577
  return c.apply(this, arguments) || this;
@@ -3607,18 +3608,18 @@ function Ls(t) {
3607
3608
  if (S === y) break;
3608
3609
  S === 38 ? (x += this.input.slice(b, this.pos), x += this.jsx_readEntity(), b = this.pos) : i(S) ? (x += this.input.slice(b, this.pos), x += this.jsx_readNewLine(!1), b = this.pos) : ++this.pos;
3609
3610
  }
3610
- return x += this.input.slice(b, this.pos++), this.finishToken(B.string, x);
3611
+ return x += this.input.slice(b, this.pos++), this.finishToken(F.string, x);
3611
3612
  }, m.jsx_readEntity = function() {
3612
3613
  var y, x = "", b = 0, S = this.input[this.pos];
3613
3614
  S !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
3614
- for (var I = ++this.pos; this.pos < this.input.length && b++ < 10; ) {
3615
+ for (var N = ++this.pos; this.pos < this.input.length && b++ < 10; ) {
3615
3616
  if ((S = this.input[this.pos++]) === ";") {
3616
3617
  x[0] === "#" ? x[1] === "x" ? (x = x.substr(2), Es.test(x) && (y = String.fromCharCode(parseInt(x, 16)))) : (x = x.substr(1), ws.test(x) && (y = String.fromCharCode(parseInt(x, 10)))) : y = As[x];
3617
3618
  break;
3618
3619
  }
3619
3620
  x += S;
3620
3621
  }
3621
- return y || (this.pos = I, "&");
3622
+ return y || (this.pos = N, "&");
3622
3623
  }, m.jsx_readWord = function() {
3623
3624
  var y, x = this.pos;
3624
3625
  do
@@ -3630,24 +3631,24 @@ function Ls(t) {
3630
3631
  return this.type === p.jsxName ? y.name = this.value : this.type.keyword ? y.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(y, "JSXIdentifier");
3631
3632
  }, m.jsx_parseNamespacedName = function() {
3632
3633
  var y = this.start, x = this.startLoc, b = this.jsx_parseIdentifier();
3633
- if (!n.allowNamespaces || !this.eat(B.colon)) return b;
3634
+ if (!n.allowNamespaces || !this.eat(F.colon)) return b;
3634
3635
  var S = this.startNodeAt(y, x);
3635
3636
  return S.namespace = b, S.name = this.jsx_parseIdentifier(), this.finishNode(S, "JSXNamespacedName");
3636
3637
  }, m.jsx_parseElementName = function() {
3637
3638
  if (this.type === p.jsxTagEnd) return "";
3638
3639
  var y = this.start, x = this.startLoc, b = this.jsx_parseNamespacedName();
3639
- for (this.type !== B.dot || b.type !== "JSXNamespacedName" || n.allowNamespacedObjects || this.unexpected(); this.eat(B.dot); ) {
3640
+ for (this.type !== F.dot || b.type !== "JSXNamespacedName" || n.allowNamespacedObjects || this.unexpected(); this.eat(F.dot); ) {
3640
3641
  var S = this.startNodeAt(y, x);
3641
3642
  S.object = b, S.property = this.jsx_parseIdentifier(), b = this.finishNode(S, "JSXMemberExpression");
3642
3643
  }
3643
3644
  return b;
3644
3645
  }, m.jsx_parseAttributeValue = function() {
3645
3646
  switch (this.type) {
3646
- case B.braceL:
3647
+ case F.braceL:
3647
3648
  var y = this.jsx_parseExpressionContainer();
3648
3649
  return y.expression.type === "JSXEmptyExpression" && this.raise(y.start, "JSX attributes must only be assigned a non-empty expression"), y;
3649
3650
  case p.jsxTagStart:
3650
- case B.string:
3651
+ case F.string:
3651
3652
  return this.parseExprAtom();
3652
3653
  default:
3653
3654
  this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
@@ -3657,25 +3658,25 @@ function Ls(t) {
3657
3658
  return this.finishNodeAt(y, "JSXEmptyExpression", this.start, this.startLoc);
3658
3659
  }, m.jsx_parseExpressionContainer = function() {
3659
3660
  var y = this.startNode();
3660
- return this.next(), y.expression = this.type === B.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(B.braceR), this.finishNode(y, "JSXExpressionContainer");
3661
+ return this.next(), y.expression = this.type === F.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(F.braceR), this.finishNode(y, "JSXExpressionContainer");
3661
3662
  }, m.jsx_parseAttribute = function() {
3662
3663
  var y = this.startNode();
3663
- return this.eat(B.braceL) ? (this.expect(B.ellipsis), y.argument = this.parseMaybeAssign(), this.expect(B.braceR), this.finishNode(y, "JSXSpreadAttribute")) : (y.name = this.jsx_parseNamespacedName(), y.value = this.eat(B.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(y, "JSXAttribute"));
3664
+ return this.eat(F.braceL) ? (this.expect(F.ellipsis), y.argument = this.parseMaybeAssign(), this.expect(F.braceR), this.finishNode(y, "JSXSpreadAttribute")) : (y.name = this.jsx_parseNamespacedName(), y.value = this.eat(F.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(y, "JSXAttribute"));
3664
3665
  }, m.jsx_parseOpeningElementAt = function(y, x) {
3665
3666
  var b = this.startNodeAt(y, x);
3666
3667
  b.attributes = [];
3667
3668
  var S = this.jsx_parseElementName();
3668
- for (S && (b.name = S); this.type !== B.slash && this.type !== p.jsxTagEnd; ) b.attributes.push(this.jsx_parseAttribute());
3669
- return b.selfClosing = this.eat(B.slash), this.expect(p.jsxTagEnd), this.finishNode(b, S ? "JSXOpeningElement" : "JSXOpeningFragment");
3669
+ for (S && (b.name = S); this.type !== F.slash && this.type !== p.jsxTagEnd; ) b.attributes.push(this.jsx_parseAttribute());
3670
+ return b.selfClosing = this.eat(F.slash), this.expect(p.jsxTagEnd), this.finishNode(b, S ? "JSXOpeningElement" : "JSXOpeningFragment");
3670
3671
  }, m.jsx_parseClosingElementAt = function(y, x) {
3671
3672
  var b = this.startNodeAt(y, x), S = this.jsx_parseElementName();
3672
3673
  return S && (b.name = S), this.expect(p.jsxTagEnd), this.finishNode(b, S ? "JSXClosingElement" : "JSXClosingFragment");
3673
3674
  }, m.jsx_parseElementAt = function(y, x) {
3674
- var b = this.startNodeAt(y, x), S = [], I = this.jsx_parseOpeningElementAt(y, x), O = null;
3675
- if (!I.selfClosing) {
3675
+ var b = this.startNodeAt(y, x), S = [], N = this.jsx_parseOpeningElementAt(y, x), O = null;
3676
+ if (!N.selfClosing) {
3676
3677
  t: for (; ; ) switch (this.type) {
3677
3678
  case p.jsxTagStart:
3678
- if (y = this.start, x = this.startLoc, this.next(), this.eat(B.slash)) {
3679
+ if (y = this.start, x = this.startLoc, this.next(), this.eat(F.slash)) {
3679
3680
  O = this.jsx_parseClosingElementAt(y, x);
3680
3681
  break t;
3681
3682
  }
@@ -3684,16 +3685,16 @@ function Ls(t) {
3684
3685
  case p.jsxText:
3685
3686
  S.push(this.parseExprAtom());
3686
3687
  break;
3687
- case B.braceL:
3688
+ case F.braceL:
3688
3689
  S.push(this.jsx_parseExpressionContainer());
3689
3690
  break;
3690
3691
  default:
3691
3692
  this.unexpected();
3692
3693
  }
3693
- Vt(O.name) !== Vt(I.name) && this.raise(O.start, "Expected corresponding JSX closing tag for <" + Vt(I.name) + ">");
3694
+ Vt(O.name) !== Vt(N.name) && this.raise(O.start, "Expected corresponding JSX closing tag for <" + Vt(N.name) + ">");
3694
3695
  }
3695
- var A = I.name ? "Element" : "Fragment";
3696
- return b["opening" + A] = I, b["closing" + A] = O, b.children = S, this.type === B.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(b, "JSX" + A);
3696
+ var A = N.name ? "Element" : "Fragment";
3697
+ return b["opening" + A] = N, b["closing" + A] = O, b.children = S, this.type === F.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(b, "JSX" + A);
3697
3698
  }, m.jsx_parseText = function() {
3698
3699
  var y = this.parseLiteral(this.value);
3699
3700
  return y.type = "JSXText", y;
@@ -3701,9 +3702,9 @@ function Ls(t) {
3701
3702
  var y = this.start, x = this.startLoc;
3702
3703
  return this.next(), this.jsx_parseElementAt(y, x);
3703
3704
  }, f;
3704
- })(Q);
3705
- })(v, g, d), d = (function(P, st, Q) {
3706
- var G = st.tokTypes, B = Q.tokTypes;
3705
+ })(Y);
3706
+ })(v, g, d), d = (function(P, st, Y) {
3707
+ var $ = st.tokTypes, F = Y.tokTypes;
3707
3708
  return (function(p) {
3708
3709
  function i() {
3709
3710
  return p.apply(this, arguments) || this;
@@ -3711,22 +3712,22 @@ function Ls(t) {
3711
3712
  Jt(i, p);
3712
3713
  var r = i.prototype;
3713
3714
  return r.parseMaybeImportAttributes = function(n) {
3714
- if (this.type === B._with || this.type === G.assert) {
3715
+ if (this.type === F._with || this.type === $.assert) {
3715
3716
  this.next();
3716
3717
  var c = this.parseImportAttributes();
3717
3718
  c && (n.attributes = c);
3718
3719
  }
3719
3720
  }, r.parseImportAttributes = function() {
3720
- this.expect(B.braceL);
3721
+ this.expect(F.braceL);
3721
3722
  var n = this.parseWithEntries();
3722
- return this.expect(B.braceR), n;
3723
+ return this.expect(F.braceR), n;
3723
3724
  }, r.parseWithEntries = function() {
3724
3725
  var n = [], c = /* @__PURE__ */ new Set();
3725
3726
  do {
3726
- if (this.type === B.braceR) break;
3727
+ if (this.type === F.braceR) break;
3727
3728
  var f, m = this.startNode();
3728
- f = this.type === B.string ? this.parseLiteral(this.value) : this.parseIdent(!0), this.next(), m.key = f, c.has(m.key.name) && this.raise(this.pos, "Duplicated key in attributes"), c.add(m.key.name), this.type !== B.string && this.raise(this.pos, "Only string is supported as an attribute value"), m.value = this.parseLiteral(this.value), n.push(this.finishNode(m, "ImportAttribute"));
3729
- } while (this.eat(B.comma));
3729
+ f = this.type === F.string ? this.parseLiteral(this.value) : this.parseIdent(!0), this.next(), m.key = f, c.has(m.key.name) && this.raise(this.pos, "Duplicated key in attributes"), c.add(m.key.name), this.type !== F.string && this.raise(this.pos, "Only string is supported as an attribute value"), m.value = this.parseLiteral(this.value), n.push(this.finishNode(m, "ImportAttribute"));
3730
+ } while (this.eat(F.comma));
3730
3731
  return n;
3731
3732
  }, i;
3732
3733
  })(P);
@@ -3740,7 +3741,7 @@ function Ls(t) {
3740
3741
  })(c), { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: w.InvalidModifierOnTypeParameterPositions }), c;
3741
3742
  }
3742
3743
  Jt(st, P);
3743
- var Q, G, B, p = st.prototype;
3744
+ var Y, $, F, p = st.prototype;
3744
3745
  return p.getTokenFromCodeInType = function(i) {
3745
3746
  return i === 62 || i === 60 ? this.finishOp(h.relational, 1) : P.prototype.getTokenFromCode.call(this, i);
3746
3747
  }, p.readToken = function(i) {
@@ -3749,16 +3750,16 @@ function Ls(t) {
3749
3750
  if (r === it.tc_expr) return this.jsx_readToken();
3750
3751
  if (r === it.tc_oTag || r === it.tc_cTag) {
3751
3752
  if (_(i)) return this.jsx_readWord();
3752
- if (i == 62) return ++this.pos, this.finishToken(N.jsxTagEnd);
3753
+ if (i == 62) return ++this.pos, this.finishToken(I.jsxTagEnd);
3753
3754
  if ((i === 34 || i === 39) && r == it.tc_oTag) return this.jsx_readString(i);
3754
3755
  }
3755
- if (i === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33) return ++this.pos, this.finishToken(N.jsxTagStart);
3756
+ if (i === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33) return ++this.pos, this.finishToken(I.jsxTagStart);
3756
3757
  }
3757
3758
  return P.prototype.readToken.call(this, i);
3758
3759
  }, p.getTokenFromCode = function(i) {
3759
- return this.inType ? this.getTokenFromCodeInType(i) : i === 64 ? (++this.pos, this.finishToken(N.at)) : P.prototype.getTokenFromCode.call(this, i);
3760
+ return this.inType ? this.getTokenFromCodeInType(i) : i === 64 ? (++this.pos, this.finishToken(I.at)) : P.prototype.getTokenFromCode.call(this, i);
3760
3761
  }, p.isAbstractClass = function() {
3761
- return this.ts_isContextual(N.abstract) && this.lookahead().type === h._class;
3762
+ return this.ts_isContextual(I.abstract) && this.lookahead().type === h._class;
3762
3763
  }, p.finishNode = function(i, r) {
3763
3764
  return i.type !== "" && i.end !== 0 ? i : P.prototype.finishNode.call(this, i, r);
3764
3765
  }, p.tryParse = function(i, r) {
@@ -3802,7 +3803,7 @@ function Ls(t) {
3802
3803
  }, p.atPossibleAsyncArrow = function(i) {
3803
3804
  return i.type === "Identifier" && i.name === "async" && this.lastTokEndLoc.column === i.end && !this.canInsertSemicolon() && i.end - i.start == 5 && i.start === this.potentialArrowAt;
3804
3805
  }, p.tsIsIdentifier = function() {
3805
- return j(this.type);
3806
+ return q(this.type);
3806
3807
  }, p.tsTryParseTypeOrTypePredicateAnnotation = function() {
3807
3808
  return this.match(h.colon) ? this.tsParseTypeOrTypePredicateAnnotation(h.colon) : void 0;
3808
3809
  }, p.tsTryParseGenericAsyncArrowFunction = function(i, r, n) {
@@ -3832,11 +3833,11 @@ function Ls(t) {
3832
3833
  var n = i + r.length;
3833
3834
  if (this.input.slice(i, n) === r) {
3834
3835
  var c = this.input.charCodeAt(n);
3835
- return !(et(c) || (64512 & c) == 55296);
3836
+ return !(G(c) || (64512 & c) == 55296);
3836
3837
  }
3837
3838
  return !1;
3838
3839
  }, p.isAbstractConstructorSignature = function() {
3839
- return this.ts_isContextual(N.abstract) && this.lookahead().type === h._new;
3840
+ return this.ts_isContextual(I.abstract) && this.lookahead().type === h._new;
3840
3841
  }, p.nextTokenStartSince = function(i) {
3841
3842
  return le.lastIndex = i, le.test(this.input) ? le.lastIndex : i;
3842
3843
  }, p.lookaheadCharCode = function() {
@@ -3867,7 +3868,7 @@ function Ls(t) {
3867
3868
  return this.setLookaheadState(r), c;
3868
3869
  }, p.readWord = function() {
3869
3870
  var i = this.readWord1(), r = h.name;
3870
- return this.keywords.test(i) ? r = C[i] : new RegExp(ae).test(i) && (r = N[i]), this.finishToken(r, i);
3871
+ return this.keywords.test(i) ? r = C[i] : new RegExp(ae).test(i) && (r = I[i]), this.finishToken(r, i);
3871
3872
  }, p.skipBlockComment = function() {
3872
3873
  var i;
3873
3874
  this.isLookahead || (i = this.options.onComment && this.curPosition());
@@ -3877,7 +3878,7 @@ function Ls(t) {
3877
3878
  }, p.skipLineComment = function(i) {
3878
3879
  var r, n = this.pos;
3879
3880
  this.isLookahead || (r = this.options.onComment && this.curPosition());
3880
- for (var c = this.input.charCodeAt(this.pos += i); this.pos < this.input.length && !H(c); ) c = this.input.charCodeAt(++this.pos);
3881
+ for (var c = this.input.charCodeAt(this.pos += i); this.pos < this.input.length && !B(c); ) c = this.input.charCodeAt(++this.pos);
3881
3882
  this.isLookahead || this.options.onComment && this.options.onComment(!1, this.input.slice(n + i, this.pos), n, this.pos, r, this.curPosition());
3882
3883
  }, p.finishToken = function(i, r) {
3883
3884
  this.preValue = this.value, this.preToken = this.type, this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
@@ -3897,7 +3898,7 @@ function Ls(t) {
3897
3898
  }, p.isLiteralPropertyName = function() {
3898
3899
  return ki(this.type);
3899
3900
  }, p.hasPrecedingLineBreak = function() {
3900
- return M.test(this.input.slice(this.lastTokEndLoc.index, this.start));
3901
+ return j.test(this.input.slice(this.lastTokEndLoc.index, this.start));
3901
3902
  }, p.createIdentifier = function(i, r) {
3902
3903
  return i.name = r, this.finishNode(i, "Identifier");
3903
3904
  }, p.resetStartLocationFromNode = function(i, r) {
@@ -3916,7 +3917,7 @@ function Ls(t) {
3916
3917
  }, p.isContextualWithState = function(i, r) {
3917
3918
  return r.type === h.name && r.value === i && !r.containsEsc;
3918
3919
  }, p.tsIsStartOfMappedType = function() {
3919
- return this.next(), this.eat(h.plusMin) ? this.ts_isContextual(N.readonly) : (this.ts_isContextual(N.readonly) && this.next(), !!this.match(h.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(h._in))));
3920
+ return this.next(), this.eat(h.plusMin) ? this.ts_isContextual(I.readonly) : (this.ts_isContextual(I.readonly) && this.next(), !!this.match(h.bracketL) && (this.next(), !!this.tsIsIdentifier() && (this.next(), this.match(h._in))));
3920
3921
  }, p.tsInDisallowConditionalTypesContext = function(i) {
3921
3922
  var r = this.inDisallowConditionalTypesContext;
3922
3923
  this.inDisallowConditionalTypesContext = !0;
@@ -3939,7 +3940,7 @@ function Ls(t) {
3939
3940
  return !1;
3940
3941
  }, p.ts_eatContextualWithState = function(i, r, n) {
3941
3942
  if (ae.test(i)) {
3942
- if (this.ts_isContextualWithState(n, N[i])) {
3943
+ if (this.ts_isContextualWithState(n, I[i])) {
3943
3944
  for (var c = 0; c < r; c++) this.next();
3944
3945
  return !0;
3945
3946
  }
@@ -3951,7 +3952,7 @@ function Ls(t) {
3951
3952
  }, p.canHaveLeadingDecorator = function() {
3952
3953
  return this.match(h._class);
3953
3954
  }, p.eatContextual = function(i) {
3954
- return ae.test(i) ? !!this.ts_isContextual(N[i]) && (this.next(), !0) : P.prototype.eatContextual.call(this, i);
3955
+ return ae.test(i) ? !!this.ts_isContextual(I[i]) && (this.next(), !0) : P.prototype.eatContextual.call(this, i);
3955
3956
  }, p.tsIsExternalModuleReference = function() {
3956
3957
  return this.isContextual("require") && this.lookaheadCharCode() === 40;
3957
3958
  }, p.tsParseExternalModuleReference = function() {
@@ -3977,7 +3978,7 @@ function Ls(t) {
3977
3978
  }
3978
3979
  return this.next(), P.prototype.exitScope.call(this), this.finishNode(i, "TSModuleBlock");
3979
3980
  }, p.tsParseAmbientExternalModuleDeclaration = function(i) {
3980
- return this.ts_isContextual(N.global) ? (i.global = !0, i.id = this.parseIdent()) : this.match(h.string) ? i.id = this.parseLiteral(this.value) : this.unexpected(), this.match(h.braceL) ? (P.prototype.enterScope.call(this, Rt), i.body = this.tsParseModuleBlock(), P.prototype.exitScope.call(this)) : P.prototype.semicolon.call(this), this.finishNode(i, "TSModuleDeclaration");
3981
+ return this.ts_isContextual(I.global) ? (i.global = !0, i.id = this.parseIdent()) : this.match(h.string) ? i.id = this.parseLiteral(this.value) : this.unexpected(), this.match(h.braceL) ? (P.prototype.enterScope.call(this, Rt), i.body = this.tsParseModuleBlock(), P.prototype.exitScope.call(this)) : P.prototype.semicolon.call(this), this.finishNode(i, "TSModuleDeclaration");
3981
3982
  }, p.tsTryParseDeclare = function(i) {
3982
3983
  var r = this;
3983
3984
  if (!this.isLineTerminator()) {
@@ -3985,14 +3986,14 @@ function Ls(t) {
3985
3986
  return this.isContextual("let") && (c = h._var, n = "let"), this.tsInAmbientContext(function() {
3986
3987
  if (c === h._function) return i.declare = !0, r.parseFunctionStatement(i, !1, !0);
3987
3988
  if (c === h._class) return i.declare = !0, r.parseClass(i, !0);
3988
- if (c === N.enum) return r.tsParseEnumDeclaration(i, { declare: !0 });
3989
- if (c === N.global) return r.tsParseAmbientExternalModuleDeclaration(i);
3989
+ if (c === I.enum) return r.tsParseEnumDeclaration(i, { declare: !0 });
3990
+ if (c === I.global) return r.tsParseAmbientExternalModuleDeclaration(i);
3990
3991
  if (c === h._const || c === h._var) return r.match(h._const) && r.isLookaheadContextual("enum") ? (r.expect(h._const), r.tsParseEnumDeclaration(i, { const: !0, declare: !0 })) : (i.declare = !0, r.parseVarStatement(i, n || r.value, !0));
3991
- if (c === N.interface) {
3992
+ if (c === I.interface) {
3992
3993
  var f = r.tsParseInterfaceDeclaration(i, { declare: !0 });
3993
3994
  if (f) return f;
3994
3995
  }
3995
- return j(c) ? r.tsParseDeclaration(i, r.value, !0) : void 0;
3996
+ return q(c) ? r.tsParseDeclaration(i, r.value, !0) : void 0;
3996
3997
  });
3997
3998
  }
3998
3999
  }, p.tsIsListTerminator = function(i) {
@@ -4048,7 +4049,7 @@ function Ls(t) {
4048
4049
  return i(), r.tsParseType();
4049
4050
  });
4050
4051
  }, p.tsSkipParameterStart = function() {
4051
- if (j(this.type) || this.match(h._this)) return this.next(), !0;
4052
+ if (q(this.type) || this.match(h._this)) return this.next(), !0;
4052
4053
  if (this.match(h.braceL)) try {
4053
4054
  return this.parseObj(!0), !0;
4054
4055
  } catch {
@@ -4081,9 +4082,9 @@ function Ls(t) {
4081
4082
  return r.type !== "Identifier" && r.type !== "RestElement" && r.type !== "ObjectPattern" && r.type !== "ArrayPattern" && i.raise(r.start, w.UnsupportedSignatureParameterKind(r.type)), r;
4082
4083
  });
4083
4084
  }, p.tsParseTypePredicateAsserts = function() {
4084
- if (this.type !== N.asserts) return !1;
4085
+ if (this.type !== I.asserts) return !1;
4085
4086
  var i = this.containsEsc;
4086
- return this.next(), !(!j(this.type) && !this.match(h._this) || (i && this.raise(this.lastTokStart, "Escape sequence in keyword asserts"), 0));
4087
+ return this.next(), !(!q(this.type) && !this.match(h._this) || (i && this.raise(this.lastTokStart, "Escape sequence in keyword asserts"), 0));
4087
4088
  }, p.tsParseThisTypeNode = function() {
4088
4089
  var i = this.startNode();
4089
4090
  return this.next(), this.finishNode(i, "TSThisType");
@@ -4259,7 +4260,7 @@ function Ls(t) {
4259
4260
  return this.tsParseTemplateLiteralType();
4260
4261
  default:
4261
4262
  var r = this.type;
4262
- if (j(r) || r === h._void || r === h._null) {
4263
+ if (q(r) || r === h._void || r === h._null) {
4263
4264
  var n = r === h._void ? "TSVoidKeyword" : r === h._null ? "TSNullKeyword" : (function(f) {
4264
4265
  switch (f) {
4265
4266
  case "any":
@@ -4328,7 +4329,7 @@ function Ls(t) {
4328
4329
  return i.tsParseType();
4329
4330
  }), this.finishNode(n, "TSConditionalType");
4330
4331
  }, p.tsIsUnambiguouslyIndexSignature = function() {
4331
- return this.next(), !!j(this.type) && (this.next(), this.match(h.colon));
4332
+ return this.next(), !!q(this.type) && (this.next(), this.match(h.colon));
4332
4333
  }, p.tsInType = function(i) {
4333
4334
  var r = this.inType;
4334
4335
  this.inType = !0;
@@ -4366,7 +4367,7 @@ function Ls(t) {
4366
4367
  }, p.tsNextTokenCanFollowModifier = function() {
4367
4368
  return this.next(!0), this.tsTokenCanFollowModifier();
4368
4369
  }, p.tsParseModifier = function(i, r) {
4369
- if (j(this.type) || this.type === h._in) {
4370
+ if (q(this.type) || this.type === h._in) {
4370
4371
  var n = this.value;
4371
4372
  if (i.indexOf(n) !== -1 && !this.containsEsc) {
4372
4373
  if (r && this.tsIsStartOfStaticBlocks()) return;
@@ -4379,14 +4380,14 @@ function Ls(t) {
4379
4380
  r[m] = n[m];
4380
4381
  }
4381
4382
  }, p.tsParseModifiers = function(i) {
4382
- for (var r = this, n = i.modified, c = i.allowedModifiers, f = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, x = y === void 0 ? w.InvalidModifierOnTypeMember : y, b = {}, S = function(W, q, z, $) {
4383
- q === z && n[$] && r.raise(W.column, w.InvalidModifiersOrder({ orderedModifiers: [z, $] }));
4384
- }, I = function(W, q, z, $) {
4385
- (n[z] && q === $ || n[$] && q === z) && r.raise(W.column, w.IncompatibleModifiers({ modifiers: [z, $] }));
4383
+ for (var r = this, n = i.modified, c = i.allowedModifiers, f = i.disallowedModifiers, m = i.stopOnStartOfClassStaticBlock, y = i.errorTemplate, x = y === void 0 ? w.InvalidModifierOnTypeMember : y, b = {}, S = function(z, W, K, X) {
4384
+ W === K && n[X] && r.raise(z.column, w.InvalidModifiersOrder({ orderedModifiers: [K, X] }));
4385
+ }, N = function(z, W, K, X) {
4386
+ (n[K] && W === X || n[X] && W === K) && r.raise(z.column, w.IncompatibleModifiers({ modifiers: [K, X] }));
4386
4387
  }; ; ) {
4387
4388
  var O = this.startLoc, A = this.tsParseModifier(c.concat(f ?? []), m);
4388
4389
  if (!A) break;
4389
- qe(A) ? n.accessibility ? this.raise(this.start, w.DuplicateAccessibilityModifier()) : (S(O, A, A, "override"), S(O, A, A, "static"), S(O, A, A, "readonly"), S(O, A, A, "accessor"), b.accessibility = A, n.accessibility = A) : Ns(A) ? n[A] ? this.raise(this.start, w.DuplicateModifier({ modifier: A })) : (S(O, A, "in", "out"), b[A] = A, n[A] = !0) : Is(A) ? n[A] ? this.raise(this.start, w.DuplicateModifier({ modifier: A })) : (I(O, A, "accessor", "readonly"), I(O, A, "accessor", "static"), I(O, A, "accessor", "override"), b[A] = A, n[A] = !0) : Object.hasOwnProperty.call(n, A) ? this.raise(this.start, w.DuplicateModifier({ modifier: A })) : (S(O, A, "static", "readonly"), S(O, A, "static", "override"), S(O, A, "override", "readonly"), S(O, A, "abstract", "override"), I(O, A, "declare", "override"), I(O, A, "static", "abstract"), b[A] = A, n[A] = !0), f != null && f.includes(A) && this.raise(this.start, x);
4390
+ qe(A) ? n.accessibility ? this.raise(this.start, w.DuplicateAccessibilityModifier()) : (S(O, A, A, "override"), S(O, A, A, "static"), S(O, A, A, "readonly"), S(O, A, A, "accessor"), b.accessibility = A, n.accessibility = A) : Ns(A) ? n[A] ? this.raise(this.start, w.DuplicateModifier({ modifier: A })) : (S(O, A, "in", "out"), b[A] = A, n[A] = !0) : Is(A) ? n[A] ? this.raise(this.start, w.DuplicateModifier({ modifier: A })) : (N(O, A, "accessor", "readonly"), N(O, A, "accessor", "static"), N(O, A, "accessor", "override"), b[A] = A, n[A] = !0) : Object.hasOwnProperty.call(n, A) ? this.raise(this.start, w.DuplicateModifier({ modifier: A })) : (S(O, A, "static", "readonly"), S(O, A, "static", "override"), S(O, A, "override", "readonly"), S(O, A, "abstract", "override"), N(O, A, "declare", "override"), N(O, A, "static", "abstract"), b[A] = A, n[A] = !0), f != null && f.includes(A) && this.raise(this.start, x);
4390
4391
  }
4391
4392
  return b;
4392
4393
  }, p.tsParseInOutModifiers = function(i) {
@@ -4453,12 +4454,12 @@ function Ls(t) {
4453
4454
  return this.expect(h.braceR), i;
4454
4455
  }, p.tsParseInterfaceDeclaration = function(i, r) {
4455
4456
  if (r === void 0 && (r = {}), this.hasFollowingLineBreak()) return null;
4456
- this.expectContextual("interface"), r.declare && (i.declare = !0), j(this.type) ? (i.id = this.parseIdent(), this.checkLValSimple(i.id, 7)) : (i.id = null, this.raise(this.start, w.MissingInterfaceName)), i.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(h._extends) && (i.extends = this.tsParseHeritageClause("extends"));
4457
+ this.expectContextual("interface"), r.declare && (i.declare = !0), q(this.type) ? (i.id = this.parseIdent(), this.checkLValSimple(i.id, 7)) : (i.id = null, this.raise(this.start, w.MissingInterfaceName)), i.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(h._extends) && (i.extends = this.tsParseHeritageClause("extends"));
4457
4458
  var n = this.startNode();
4458
4459
  return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), i.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode(i, "TSInterfaceDeclaration");
4459
4460
  }, p.tsParseAbstractDeclaration = function(i) {
4460
4461
  if (this.match(h._class)) return i.abstract = !0, this.parseClass(i, !0);
4461
- if (this.ts_isContextual(N.interface)) {
4462
+ if (this.ts_isContextual(I.interface)) {
4462
4463
  if (!this.hasFollowingLineBreak()) return i.abstract = !0, this.tsParseInterfaceDeclaration(i);
4463
4464
  } else this.unexpected(i.start);
4464
4465
  }, p.tsIsDeclarationStart = function() {
@@ -4483,15 +4484,15 @@ function Ls(t) {
4483
4484
  return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(!1);
4484
4485
  }, p.tsIsExportDefaultSpecifier = function() {
4485
4486
  var i = this.type, r = this.isAsyncFunction(), n = this.isLet();
4486
- if (j(i)) {
4487
+ if (q(i)) {
4487
4488
  if (r && !this.containsEsc || n) return !1;
4488
- if ((i === N.type || i === N.interface) && !this.containsEsc) {
4489
+ if ((i === I.type || i === I.interface) && !this.containsEsc) {
4489
4490
  var c = this.lookahead();
4490
- if (j(c.type) && !this.isContextualWithState("from", c) || c.type === h.braceL) return !1;
4491
+ if (q(c.type) && !this.isContextualWithState("from", c) || c.type === h.braceL) return !1;
4491
4492
  }
4492
4493
  } else if (!this.match(h._default)) return !1;
4493
4494
  var f = this.nextTokenStart(), m = this.isUnparsedContextual(f, "from");
4494
- if (this.input.charCodeAt(f) === 44 || j(this.type) && m) return !0;
4495
+ if (this.input.charCodeAt(f) === 44 || q(this.type) && m) return !0;
4495
4496
  if (this.match(h._default) && m) {
4496
4497
  var y = this.input.charCodeAt(this.nextTokenStartSince(f + 4));
4497
4498
  return y === 34 || y === 39;
@@ -4518,7 +4519,7 @@ function Ls(t) {
4518
4519
  }, p.tsParseTypeAliasDeclaration = function(i) {
4519
4520
  var r = this;
4520
4521
  return i.id = this.parseIdent(), this.checkLValSimple(i.id, 6), i.typeAnnotation = this.tsInType(function() {
4521
- if (i.typeParameters = r.tsTryParseTypeParameters(r.tsParseInOutModifiers.bind(r)), r.expect(h.eq), r.ts_isContextual(N.interface) && r.lookahead().type !== h.dot) {
4522
+ if (i.typeParameters = r.tsTryParseTypeParameters(r.tsParseInOutModifiers.bind(r)), r.expect(h.eq), r.ts_isContextual(I.interface) && r.lookahead().type !== h.dot) {
4522
4523
  var n = r.startNode();
4523
4524
  return r.next(), r.finishNode(n, "TSIntrinsicKeyword");
4524
4525
  }
@@ -4527,19 +4528,19 @@ function Ls(t) {
4527
4528
  }, p.tsParseDeclaration = function(i, r, n) {
4528
4529
  switch (r) {
4529
4530
  case "abstract":
4530
- if (this.tsCheckLineTerminator(n) && (this.match(h._class) || j(this.type))) return this.tsParseAbstractDeclaration(i);
4531
+ if (this.tsCheckLineTerminator(n) && (this.match(h._class) || q(this.type))) return this.tsParseAbstractDeclaration(i);
4531
4532
  break;
4532
4533
  case "module":
4533
4534
  if (this.tsCheckLineTerminator(n)) {
4534
4535
  if (this.match(h.string)) return this.tsParseAmbientExternalModuleDeclaration(i);
4535
- if (j(this.type)) return this.tsParseModuleOrNamespaceDeclaration(i);
4536
+ if (q(this.type)) return this.tsParseModuleOrNamespaceDeclaration(i);
4536
4537
  }
4537
4538
  break;
4538
4539
  case "namespace":
4539
- if (this.tsCheckLineTerminator(n) && j(this.type)) return this.tsParseModuleOrNamespaceDeclaration(i);
4540
+ if (this.tsCheckLineTerminator(n) && q(this.type)) return this.tsParseModuleOrNamespaceDeclaration(i);
4540
4541
  break;
4541
4542
  case "type":
4542
- if (this.tsCheckLineTerminator(n) && j(this.type)) return this.tsParseTypeAliasDeclaration(i);
4543
+ if (this.tsCheckLineTerminator(n) && q(this.type)) return this.tsParseTypeAliasDeclaration(i);
4543
4544
  }
4544
4545
  }, p.tsTryParseExportDeclaration = function() {
4545
4546
  return this.tsParseDeclaration(this.startNode(), this.value, !0);
@@ -4550,15 +4551,15 @@ function Ls(t) {
4550
4551
  }, p.isExportDefaultSpecifier = function() {
4551
4552
  if (this.tsIsDeclarationStart()) return !1;
4552
4553
  var i = this.type;
4553
- if (j(i)) {
4554
+ if (q(i)) {
4554
4555
  if (this.isContextual("async") || this.isContextual("let")) return !1;
4555
- if ((i === N.type || i === N.interface) && !this.containsEsc) {
4556
+ if ((i === I.type || i === I.interface) && !this.containsEsc) {
4556
4557
  var r = this.lookahead();
4557
- if (j(r.type) && !this.isContextualWithState("from", r) || r.type === h.braceL) return !1;
4558
+ if (q(r.type) && !this.isContextualWithState("from", r) || r.type === h.braceL) return !1;
4558
4559
  }
4559
4560
  } else if (!this.match(h._default)) return !1;
4560
4561
  var n = this.nextTokenStart(), c = this.isUnparsedContextual(n, "from");
4561
- if (this.input.charCodeAt(n) === 44 || j(this.type) && c) return !0;
4562
+ if (this.input.charCodeAt(n) === 44 || q(this.type) && c) return !0;
4562
4563
  if (this.match(h._default) && c) {
4563
4564
  var f = this.input.charCodeAt(this.nextTokenStartSince(n + 4));
4564
4565
  return f === 34 || f === 39;
@@ -4614,9 +4615,9 @@ function Ls(t) {
4614
4615
  return i;
4615
4616
  }, p.parseImport = function(i) {
4616
4617
  var r = this.lookahead();
4617
- if (i.importKind = "value", this.importOrExportOuterKind = "value", j(r.type) || this.match(h.star) || this.match(h.braceL)) {
4618
+ if (i.importKind = "value", this.importOrExportOuterKind = "value", q(r.type) || this.match(h.star) || this.match(h.braceL)) {
4618
4619
  var n = this.lookahead(2);
4619
- if (n.type !== h.comma && !this.isContextualWithState("from", n) && n.type !== h.eq && this.ts_eatContextualWithState("type", 1, r) && (this.importOrExportOuterKind = "type", i.importKind = "type", r = this.lookahead(), n = this.lookahead(2)), j(r.type) && n.type === h.eq) {
4620
+ if (n.type !== h.comma && !this.isContextualWithState("from", n) && n.type !== h.eq && this.ts_eatContextualWithState("type", 1, r) && (this.importOrExportOuterKind = "type", i.importKind = "type", r = this.lookahead(), n = this.lookahead(2)), q(r.type) && n.type === h.eq) {
4620
4621
  this.next();
4621
4622
  var c = this.tsParseImportEqualsDeclaration(i);
4622
4623
  return this.importOrExportOuterKind = "value", c;
@@ -4628,7 +4629,7 @@ function Ls(t) {
4628
4629
  var i = this.startNode();
4629
4630
  return this.next(), i.abstract = !0, this.parseClass(i, !0);
4630
4631
  }
4631
- if (this.match(N.interface)) {
4632
+ if (this.match(I.interface)) {
4632
4633
  var r = this.tsParseInterfaceDeclaration(this.startNode());
4633
4634
  if (r) return r;
4634
4635
  }
@@ -4648,7 +4649,7 @@ function Ls(t) {
4648
4649
  }, p.parseExport = function(i, r) {
4649
4650
  var n = this.lookahead();
4650
4651
  if (this.ts_eatWithState(h._import, 2, n)) {
4651
- this.ts_isContextual(N.type) && this.lookaheadCharCode() !== 61 ? (i.importKind = "type", this.importOrExportOuterKind = "type", this.next()) : (i.importKind = "value", this.importOrExportOuterKind = "value");
4652
+ this.ts_isContextual(I.type) && this.lookaheadCharCode() !== 61 ? (i.importKind = "type", this.importOrExportOuterKind = "type", this.next()) : (i.importKind = "value", this.importOrExportOuterKind = "value");
4652
4653
  var c = this.tsParseImportEqualsDeclaration(i, !0);
4653
4654
  return this.importOrExportOuterKind = void 0, c;
4654
4655
  }
@@ -4660,7 +4661,7 @@ function Ls(t) {
4660
4661
  var m = i;
4661
4662
  return this.expectContextual("namespace"), m.id = this.parseIdent(), this.semicolon(), this.importOrExportOuterKind = void 0, this.finishNode(m, "TSNamespaceExportDeclaration");
4662
4663
  }
4663
- if (this.ts_isContextualWithState(n, N.type) && this.lookahead(2).type === h.braceL ? (this.next(), this.importOrExportOuterKind = "type", i.exportKind = "type") : (this.importOrExportOuterKind = "value", i.exportKind = "value"), this.next(), this.eat(h.star)) return this.parseExportAllDeclaration(i, r);
4664
+ if (this.ts_isContextualWithState(n, I.type) && this.lookahead(2).type === h.braceL ? (this.next(), this.importOrExportOuterKind = "type", i.exportKind = "type") : (this.importOrExportOuterKind = "value", i.exportKind = "value"), this.next(), this.eat(h.star)) return this.parseExportAllDeclaration(i, r);
4664
4665
  if (this.eat(h._default)) return this.checkExport(r, "default", this.lastTokStart), i.declaration = this.parseExportDefaultDeclaration(), this.finishNode(i, "ExportDefaultDeclaration");
4665
4666
  if (this.shouldParseExportStatement()) i.declaration = this.parseExportDeclaration(i), i.declaration.type === "VariableDeclaration" ? this.checkVariableExport(r, i.declaration.declarations) : this.checkExport(r, i.declaration.id, i.declaration.id.start), i.specifiers = [], i.source = null;
4666
4667
  else {
@@ -4690,12 +4691,12 @@ function Ls(t) {
4690
4691
  return P.prototype.toAssignableList.call(this, i, r);
4691
4692
  }, p.reportReservedArrowTypeParam = function(i) {
4692
4693
  }, p.parseExprAtom = function(i, r, n) {
4693
- if (this.type === N.jsxText) return this.jsx_parseText();
4694
- if (this.type === N.jsxTagStart) return this.jsx_parseElement();
4695
- if (this.type === N.at) return this.parseDecorators(), this.parseExprAtom();
4696
- if (j(this.type)) {
4694
+ if (this.type === I.jsxText) return this.jsx_parseText();
4695
+ if (this.type === I.jsxTagStart) return this.jsx_parseElement();
4696
+ if (this.type === I.at) return this.parseDecorators(), this.parseExprAtom();
4697
+ if (q(this.type)) {
4697
4698
  var c = this.potentialArrowAt === this.start, f = this.start, m = this.startLoc, y = this.containsEsc, x = this.parseIdent(!1);
4698
- if (this.options.ecmaVersion >= 8 && !y && x.name === "async" && !this.canInsertSemicolon() && this.eat(h._function)) return this.overrideContext(J.f_expr), this.parseFunction(this.startNodeAt(f, m), 0, !1, !0, r);
4699
+ if (this.options.ecmaVersion >= 8 && !y && x.name === "async" && !this.canInsertSemicolon() && this.eat(h._function)) return this.overrideContext(U.f_expr), this.parseFunction(this.startNodeAt(f, m), 0, !1, !0, r);
4699
4700
  if (c && !this.canInsertSemicolon()) {
4700
4701
  if (this.eat(h.arrow)) return this.parseArrowExpression(this.startNodeAt(f, m), [x], !1, r);
4701
4702
  if (this.options.ecmaVersion >= 8 && x.name === "async" && this.type === h.name && !y && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return x = this.parseIdent(!1), !this.canInsertSemicolon() && this.eat(h.arrow) || this.unexpected(), this.parseArrowExpression(this.startNodeAt(f, m), [x], !0, r);
@@ -4704,12 +4705,12 @@ function Ls(t) {
4704
4705
  }
4705
4706
  return P.prototype.parseExprAtom.call(this, i, r, n);
4706
4707
  }, p.parseExprAtomDefault = function() {
4707
- if (j(this.type)) {
4708
+ if (q(this.type)) {
4708
4709
  var i = this.potentialArrowAt === this.start, r = this.containsEsc, n = this.parseIdent();
4709
4710
  if (!r && n.name === "async" && !this.canInsertSemicolon()) {
4710
4711
  var c = this.type;
4711
4712
  if (c === h._function) return this.next(), this.parseFunction(this.startNodeAtNode(n), void 0, !0, !0);
4712
- if (j(c)) {
4713
+ if (q(c)) {
4713
4714
  if (this.lookaheadCharCode() === 61) {
4714
4715
  var f = this.parseIdent(!1);
4715
4716
  return !this.canInsertSemicolon() && this.eat(h.arrow) || this.unexpected(), this.parseArrowExpression(this.startNodeAtNode(n), [f], !0);
@@ -4735,12 +4736,12 @@ function Ls(t) {
4735
4736
  }
4736
4737
  return f;
4737
4738
  }, p.parseStatement = function(i, r, n) {
4738
- if (this.match(N.at) && this.parseDecorators(!0), this.match(h._const) && this.isLookaheadContextual("enum")) {
4739
+ if (this.match(I.at) && this.parseDecorators(!0), this.match(h._const) && this.isLookaheadContextual("enum")) {
4739
4740
  var c = this.startNode();
4740
4741
  return this.expect(h._const), this.tsParseEnumDeclaration(c, { const: !0 });
4741
4742
  }
4742
- if (this.ts_isContextual(N.enum)) return this.tsParseEnumDeclaration(this.startNode());
4743
- if (this.ts_isContextual(N.interface)) {
4743
+ if (this.ts_isContextual(I.enum)) return this.tsParseEnumDeclaration(this.startNode());
4744
+ if (this.ts_isContextual(I.interface)) {
4744
4745
  var f = this.tsParseInterfaceDeclaration(this.startNode());
4745
4746
  if (f) return f;
4746
4747
  }
@@ -4752,7 +4753,7 @@ function Ls(t) {
4752
4753
  }, p.parseExpressionStatement = function(i, r) {
4753
4754
  return (r.type === "Identifier" ? this.tsParseExpressionStatement(i, r) : void 0) || P.prototype.parseExpressionStatement.call(this, i, r);
4754
4755
  }, p.shouldParseExportStatement = function() {
4755
- return !!this.tsIsDeclarationStart() || !!this.match(N.at) || P.prototype.shouldParseExportStatement.call(this);
4756
+ return !!this.tsIsDeclarationStart() || !!this.match(I.at) || P.prototype.shouldParseExportStatement.call(this);
4756
4757
  }, p.parseConditional = function(i, r, n, c, f) {
4757
4758
  if (this.eat(h.question)) {
4758
4759
  var m = this.startNodeAt(r, n);
@@ -4776,12 +4777,12 @@ function Ls(t) {
4776
4777
  return i;
4777
4778
  }, p.parseExportDeclaration = function(i) {
4778
4779
  var r = this;
4779
- if (!this.isAmbientContext && this.ts_isContextual(N.declare)) return this.tsInAmbientContext(function() {
4780
+ if (!this.isAmbientContext && this.ts_isContextual(I.declare)) return this.tsInAmbientContext(function() {
4780
4781
  return r.parseExportDeclaration(i);
4781
4782
  });
4782
4783
  var n = this.start, c = this.startLoc, f = this.eatContextual("declare");
4783
- !f || !this.ts_isContextual(N.declare) && this.shouldParseExportStatement() || this.raise(this.start, w.ExpectedAmbientAfterExportDeclare);
4784
- var m = j(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
4784
+ !f || !this.ts_isContextual(I.declare) && this.shouldParseExportStatement() || this.raise(this.start, w.ExpectedAmbientAfterExportDeclare);
4785
+ var m = q(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
4785
4786
  return m ? ((m.type === "TSInterfaceDeclaration" || m.type === "TSTypeAliasDeclaration" || f) && (i.exportKind = "type"), f && (this.resetStartLocation(m, n, c), m.declare = !0), m) : null;
4786
4787
  }, p.parseClassId = function(i, r) {
4787
4788
  if (r || !this.isContextual("implements")) {
@@ -4807,26 +4808,26 @@ function Ls(t) {
4807
4808
  !(x !== void 0 && x) || b !== "get" && b !== "set" || this.raise(i.start, w.DeclareAccessor({ kind: b })), y && (i.typeParameters = y);
4808
4809
  var S = i.key;
4809
4810
  i.kind === "constructor" ? (r && this.raise(S.start, "Constructor can't be a generator"), n && this.raise(S.start, "Constructor can't be an async method")) : i.static && je(i, "prototype") && this.raise(S.start, "Classes may not have a static property named prototype");
4810
- var I = i.value = this.parseMethod(r, n, c, !0, i);
4811
- return i.kind === "get" && I.params.length !== 0 && this.raiseRecoverable(I.start, "getter should have no params"), i.kind === "set" && I.params.length !== 1 && this.raiseRecoverable(I.start, "setter should have exactly one param"), i.kind === "set" && I.params[0].type === "RestElement" && this.raiseRecoverable(I.params[0].start, "Setter cannot use rest params"), this.finishNode(i, "MethodDefinition");
4811
+ var N = i.value = this.parseMethod(r, n, c, !0, i);
4812
+ return i.kind === "get" && N.params.length !== 0 && this.raiseRecoverable(N.start, "getter should have no params"), i.kind === "set" && N.params.length !== 1 && this.raiseRecoverable(N.start, "setter should have exactly one param"), i.kind === "set" && N.params[0].type === "RestElement" && this.raiseRecoverable(N.params[0].start, "Setter cannot use rest params"), this.finishNode(i, "MethodDefinition");
4812
4813
  }, p.isClassMethod = function() {
4813
4814
  return this.match(h.relational);
4814
4815
  }, p.parseClassElement = function(i) {
4815
4816
  var r = this;
4816
4817
  if (this.eat(h.semi)) return null;
4817
- var n, c = this.options.ecmaVersion, f = this.startNode(), m = "", y = !1, x = !1, b = "method", S = ["declare", "private", "public", "protected", "accessor", "override", "abstract", "readonly", "static"], I = this.tsParseModifiers({ modified: f, allowedModifiers: S, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: w.InvalidModifierOnTypeParameterPositions });
4818
- n = !!I.static;
4818
+ var n, c = this.options.ecmaVersion, f = this.startNode(), m = "", y = !1, x = !1, b = "method", S = ["declare", "private", "public", "protected", "accessor", "override", "abstract", "readonly", "static"], N = this.tsParseModifiers({ modified: f, allowedModifiers: S, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: w.InvalidModifierOnTypeParameterPositions });
4819
+ n = !!N.static;
4819
4820
  var O = function() {
4820
4821
  if (!r.tsIsStartOfStaticBlocks()) {
4821
4822
  var A = r.tsTryParseIndexSignature(f);
4822
4823
  if (A) return f.abstract && r.raise(f.start, w.IndexSignatureHasAbstract), f.accessibility && r.raise(f.start, w.IndexSignatureHasAccessibility({ modifier: f.accessibility })), f.declare && r.raise(f.start, w.IndexSignatureHasDeclare), f.override && r.raise(f.start, w.IndexSignatureHasOverride), A;
4823
4824
  if (!r.inAbstractClass && f.abstract && r.raise(f.start, w.NonAbstractClassHasAbstractMethod), f.override && i && r.raise(f.start, w.OverrideNotInSubClass), f.static = n, n && (r.isClassElementNameStart() || r.type === h.star || (m = "static")), !m && c >= 8 && r.eatContextual("async") && (!r.isClassElementNameStart() && r.type !== h.star || r.canInsertSemicolon() ? m = "async" : x = !0), !m && (c >= 9 || !x) && r.eat(h.star) && (y = !0), !m && !x && !y) {
4824
- var W = r.value;
4825
- (r.eatContextual("get") || r.eatContextual("set")) && (r.isClassElementNameStart() ? b = W : m = W);
4825
+ var z = r.value;
4826
+ (r.eatContextual("get") || r.eatContextual("set")) && (r.isClassElementNameStart() ? b = z : m = z);
4826
4827
  }
4827
4828
  if (m ? (f.computed = !1, f.key = r.startNodeAt(r.lastTokStart, r.lastTokStartLoc), f.key.name = m, r.finishNode(f.key, "Identifier")) : r.parseClassElementName(f), r.parsePostMemberNameModifiers(f), r.isClassMethod() || c < 13 || r.type === h.parenL || b !== "method" || y || x) {
4828
- var q = !f.static && je(f, "constructor"), z = q && i;
4829
- q && b !== "method" && r.raise(f.key.start, "Constructor can't have get/set modifier"), f.kind = q ? "constructor" : b, r.parseClassMethod(f, y, x, z);
4829
+ var W = !f.static && je(f, "constructor"), K = W && i;
4830
+ W && b !== "method" && r.raise(f.key.start, "Constructor can't have get/set modifier"), f.kind = W ? "constructor" : b, r.parseClassMethod(f, y, x, K);
4830
4831
  } else r.parseClassField(f);
4831
4832
  return f;
4832
4833
  }
@@ -4858,40 +4859,40 @@ function Ls(t) {
4858
4859
  var c = !1, f = -1, m = -1, y = -1;
4859
4860
  r ? (f = r.parenthesizedAssign, m = r.trailingComma, y = r.doubleProto, r.parenthesizedAssign = r.trailingComma = -1) : (r = new Mt(), c = !0);
4860
4861
  var x = this.start, b = this.startLoc;
4861
- (this.type === h.parenL || j(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = i === "await");
4862
+ (this.type === h.parenL || q(this.type)) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = i === "await");
4862
4863
  var S = this.parseMaybeConditional(i, r);
4863
4864
  if (n && (S = n.call(this, S, x, b)), this.type.isAssign) {
4864
- var I = this.startNodeAt(x, b);
4865
- return I.operator = this.value, this.type === h.eq && (S = this.toAssignable(S, !0, r)), c || (r.parenthesizedAssign = r.trailingComma = r.doubleProto = -1), r.shorthandAssign >= S.start && (r.shorthandAssign = -1), this.type === h.eq ? this.checkLValPattern(S) : this.checkLValSimple(S), I.left = S, this.next(), I.right = this.parseMaybeAssign(i), y > -1 && (r.doubleProto = y), this.finishNode(I, "AssignmentExpression");
4865
+ var N = this.startNodeAt(x, b);
4866
+ return N.operator = this.value, this.type === h.eq && (S = this.toAssignable(S, !0, r)), c || (r.parenthesizedAssign = r.trailingComma = r.doubleProto = -1), r.shorthandAssign >= S.start && (r.shorthandAssign = -1), this.type === h.eq ? this.checkLValPattern(S) : this.checkLValSimple(S), N.left = S, this.next(), N.right = this.parseMaybeAssign(i), y > -1 && (r.doubleProto = y), this.finishNode(N, "AssignmentExpression");
4866
4867
  }
4867
4868
  return c && this.checkExpressionErrors(r, !0), f > -1 && (r.parenthesizedAssign = f), m > -1 && (r.trailingComma = m), S;
4868
4869
  }, p.parseMaybeAssign = function(i, r, n) {
4869
- var c, f, m, y, x, b, S, I, O, A, W, q = this;
4870
+ var c, f, m, y, x, b, S, N, O, A, z, W = this;
4870
4871
  if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
4871
- if (I = this.cloneCurLookaheadState(), !(O = this.tryParse(function() {
4872
- return q.parseMaybeAssignOrigin(i, r, n);
4873
- }, I)).error) return O.node;
4874
- var z = this.context, $ = z[z.length - 1];
4875
- $ === g.tokContexts.tc_oTag && z[z.length - 2] === g.tokContexts.tc_expr ? (z.pop(), z.pop()) : $ !== g.tokContexts.tc_oTag && $ !== g.tokContexts.tc_expr || z.pop();
4872
+ if (N = this.cloneCurLookaheadState(), !(O = this.tryParse(function() {
4873
+ return W.parseMaybeAssignOrigin(i, r, n);
4874
+ }, N)).error) return O.node;
4875
+ var K = this.context, X = K[K.length - 1];
4876
+ X === g.tokContexts.tc_oTag && K[K.length - 2] === g.tokContexts.tc_expr ? (K.pop(), K.pop()) : X !== g.tokContexts.tc_oTag && X !== g.tokContexts.tc_expr || K.pop();
4876
4877
  }
4877
4878
  if (!((c = O) != null && c.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(i, r, n);
4878
- I && !this.compareLookaheadState(I, this.getCurLookaheadState()) || (I = this.cloneCurLookaheadState());
4879
+ N && !this.compareLookaheadState(N, this.getCurLookaheadState()) || (N = this.cloneCurLookaheadState());
4879
4880
  var at = this.tryParse(function(gt) {
4880
4881
  var Lt, Ot;
4881
- W = q.tsParseTypeParameters();
4882
- var bt = q.parseMaybeAssignOrigin(i, r, n);
4883
- return (bt.type !== "ArrowFunctionExpression" || (Lt = bt.extra) != null && Lt.parenthesized) && gt(), ((Ot = W) == null ? void 0 : Ot.params.length) !== 0 && q.resetStartLocationFromNode(bt, W), bt.typeParameters = W, bt;
4884
- }, I);
4885
- if (!at.error && !at.aborted) return W && this.reportReservedArrowTypeParam(W), at.node;
4882
+ z = W.tsParseTypeParameters();
4883
+ var bt = W.parseMaybeAssignOrigin(i, r, n);
4884
+ return (bt.type !== "ArrowFunctionExpression" || (Lt = bt.extra) != null && Lt.parenthesized) && gt(), ((Ot = z) == null ? void 0 : Ot.params.length) !== 0 && W.resetStartLocationFromNode(bt, z), bt.typeParameters = z, bt;
4885
+ }, N);
4886
+ if (!at.error && !at.aborted) return z && this.reportReservedArrowTypeParam(z), at.node;
4886
4887
  if (!O && (Ue(!0), !(A = this.tryParse(function() {
4887
- return q.parseMaybeAssignOrigin(i, r, n);
4888
- }, I)).error)) return A.node;
4888
+ return W.parseMaybeAssignOrigin(i, r, n);
4889
+ }, N)).error)) return A.node;
4889
4890
  if ((f = O) != null && f.node) return this.setLookaheadState(O.failState), O.node;
4890
- if (at.node) return this.setLookaheadState(at.failState), W && this.reportReservedArrowTypeParam(W), at.node;
4891
+ if (at.node) return this.setLookaheadState(at.failState), z && this.reportReservedArrowTypeParam(z), at.node;
4891
4892
  if ((m = A) != null && m.node) return this.setLookaheadState(A.failState), A.node;
4892
4893
  throw (y = O) != null && y.thrown ? O.error : at.thrown ? at.error : (x = A) != null && x.thrown ? A.error : ((b = O) == null ? void 0 : b.error) || at.error || ((S = A) == null ? void 0 : S.error);
4893
4894
  }, p.parseAssignableListItem = function(i) {
4894
- for (var r = []; this.match(N.at); ) r.push(this.parseDecorator());
4895
+ for (var r = []; this.match(I.at); ) r.push(this.parseDecorator());
4895
4896
  var n, c = this.start, f = this.startLoc, m = !1, y = !1;
4896
4897
  if (i !== void 0) {
4897
4898
  var x = {};
@@ -4901,8 +4902,8 @@ function Ls(t) {
4901
4902
  this.parseBindingListItem(b);
4902
4903
  var S = this.parseMaybeDefault(b.start, b.loc, b);
4903
4904
  if (r.length && (S.decorators = r), n || m || y) {
4904
- var I = this.startNodeAt(c, f);
4905
- return n && (I.accessibility = n), m && (I.readonly = m), y && (I.override = y), S.type !== "Identifier" && S.type !== "AssignmentPattern" && this.raise(I.start, w.UnsupportedParameterPropertyKind), I.parameter = S, this.finishNode(I, "TSParameterProperty");
4905
+ var N = this.startNodeAt(c, f);
4906
+ return n && (N.accessibility = n), m && (N.readonly = m), y && (N.override = y), S.type !== "Identifier" && S.type !== "AssignmentPattern" && this.raise(N.start, w.UnsupportedParameterPropertyKind), N.parameter = S, this.finishNode(N, "TSParameterProperty");
4906
4907
  }
4907
4908
  return S;
4908
4909
  }, p.checkLValInnerPattern = function(i, r, n) {
@@ -5013,21 +5014,21 @@ function Ls(t) {
5013
5014
  if (this.options.ecmaVersion >= 6) {
5014
5015
  var y = this.maybeInArrowParameters;
5015
5016
  this.maybeInArrowParameters = !0, this.next();
5016
- var x, b = this.start, S = this.startLoc, I = [], O = !0, A = !1, W = new Mt(), q = this.yieldPos, z = this.awaitPos;
5017
+ var x, b = this.start, S = this.startLoc, N = [], O = !0, A = !1, z = new Mt(), W = this.yieldPos, K = this.awaitPos;
5017
5018
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== h.parenR; ) {
5018
5019
  if (O ? O = !1 : this.expect(h.comma), m && this.afterTrailingComma(h.parenR, !0)) {
5019
5020
  A = !0;
5020
5021
  break;
5021
5022
  }
5022
5023
  if (this.type === h.ellipsis) {
5023
- x = this.start, I.push(this.parseParenItem(this.parseRestBinding())), this.type === h.comma && this.raise(this.start, "Comma is not permitted after the rest element");
5024
+ x = this.start, N.push(this.parseParenItem(this.parseRestBinding())), this.type === h.comma && this.raise(this.start, "Comma is not permitted after the rest element");
5024
5025
  break;
5025
5026
  }
5026
- I.push(this.parseMaybeAssign(r, W, this.parseParenItem));
5027
+ N.push(this.parseMaybeAssign(r, z, this.parseParenItem));
5027
5028
  }
5028
- var $ = this.lastTokEnd, at = this.lastTokEndLoc;
5029
- if (this.expect(h.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(I) && this.eat(h.arrow)) return this.checkPatternErrors(W, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = q, this.awaitPos = z, this.parseParenArrowList(c, f, I, r);
5030
- I.length && !A || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(W, !0), this.yieldPos = q || this.yieldPos, this.awaitPos = z || this.awaitPos, I.length > 1 ? ((n = this.startNodeAt(b, S)).expressions = I, this.finishNodeAt(n, "SequenceExpression", $, at)) : n = I[0];
5029
+ var X = this.lastTokEnd, at = this.lastTokEndLoc;
5030
+ if (this.expect(h.parenR), this.maybeInArrowParameters = y, i && this.shouldParseArrow(N) && this.eat(h.arrow)) return this.checkPatternErrors(z, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = W, this.awaitPos = K, this.parseParenArrowList(c, f, N, r);
5031
+ N.length && !A || this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(z, !0), this.yieldPos = W || this.yieldPos, this.awaitPos = K || this.awaitPos, N.length > 1 ? ((n = this.startNodeAt(b, S)).expressions = N, this.finishNodeAt(n, "SequenceExpression", X, at)) : n = N[0];
5031
5032
  } else n = this.parseParenExpression();
5032
5033
  if (this.options.preserveParens) {
5033
5034
  var gt = this.startNodeAt(c, f);
@@ -5063,10 +5064,10 @@ function Ls(t) {
5063
5064
  var S = this.startNodeAt(r, n);
5064
5065
  return S.expression = i, i = this.finishNode(S, "TSNonNullExpression");
5065
5066
  }
5066
- var I = !1;
5067
+ var N = !1;
5067
5068
  if (this.match(h.questionDot) && this.lookaheadCharCode() === 60) {
5068
5069
  if (c) return i;
5069
- i.optional = !0, b = I = !0, this.next();
5070
+ i.optional = !0, b = N = !0, this.next();
5070
5071
  }
5071
5072
  if (this.tsMatchLeftRelational() || this.match(h.bitShift)) {
5072
5073
  var O, A = this.tsTryParseAndCatch(function() {
@@ -5076,14 +5077,14 @@ function Ls(t) {
5076
5077
  }
5077
5078
  var Kt = x.tsParseTypeArgumentsInExpression();
5078
5079
  if (!Kt) return i;
5079
- if (I && !x.match(h.parenL)) return O = x.curPosition(), i;
5080
+ if (N && !x.match(h.parenL)) return O = x.curPosition(), i;
5080
5081
  if (Ai(x.type) || x.type === h.backQuote) {
5081
5082
  var we = x.parseTaggedTemplateExpression(i, r, n, b);
5082
5083
  return we.typeParameters = Kt, we;
5083
5084
  }
5084
5085
  if (!c && x.eat(h.parenL)) {
5085
5086
  var Ie = new Mt(), At = x.startNodeAt(r, n);
5086
- return At.callee = i, At.arguments = x.parseExprList(h.parenR, x.options.ecmaVersion >= 8, !1, Ie), x.tsCheckForInvalidTypeCasts(At.arguments), At.typeParameters = Kt, b && (At.optional = I), x.checkExpressionErrors(Ie, !0), i = x.finishNode(At, "CallExpression");
5087
+ return At.callee = i, At.arguments = x.parseExprList(h.parenR, x.options.ecmaVersion >= 8, !1, Ie), x.tsCheckForInvalidTypeCasts(At.arguments), At.typeParameters = Kt, b && (At.optional = N), x.checkExpressionErrors(Ie, !0), i = x.finishNode(At, "CallExpression");
5087
5088
  }
5088
5089
  var oe = x.type;
5089
5090
  if (!(x.tsMatchRightRelational() || oe === h.bitShift || oe !== h.parenL && (Ne = oe, !!Ne.startsExpr) && !x.hasPrecedingLineBreak())) {
@@ -5093,27 +5094,27 @@ function Ls(t) {
5093
5094
  });
5094
5095
  if (O && this.unexpected(O), A) return A.type === "TSInstantiationExpression" && (this.match(h.dot) || this.match(h.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, w.InvalidPropertyAccessAfterInstantiationExpression), i = A;
5095
5096
  }
5096
- var W = this.options.ecmaVersion >= 11, q = W && this.eat(h.questionDot);
5097
- c && q && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
5098
- var z = this.eat(h.bracketL);
5099
- if (z || q && this.type !== h.parenL && this.type !== h.backQuote || this.eat(h.dot)) {
5100
- var $ = this.startNodeAt(r, n);
5101
- $.object = i, z ? ($.property = this.parseExpression(), this.expect(h.bracketR)) : $.property = this.type === h.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), $.computed = !!z, W && ($.optional = q), i = this.finishNode($, "MemberExpression");
5097
+ var z = this.options.ecmaVersion >= 11, W = z && this.eat(h.questionDot);
5098
+ c && W && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
5099
+ var K = this.eat(h.bracketL);
5100
+ if (K || W && this.type !== h.parenL && this.type !== h.backQuote || this.eat(h.dot)) {
5101
+ var X = this.startNodeAt(r, n);
5102
+ X.object = i, K ? (X.property = this.parseExpression(), this.expect(h.bracketR)) : X.property = this.type === h.privateId && i.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), X.computed = !!K, z && (X.optional = W), i = this.finishNode(X, "MemberExpression");
5102
5103
  } else if (!c && this.eat(h.parenL)) {
5103
5104
  var at = this.maybeInArrowParameters;
5104
5105
  this.maybeInArrowParameters = !0;
5105
5106
  var gt = new Mt(), Lt = this.yieldPos, Ot = this.awaitPos, bt = this.awaitIdentPos;
5106
5107
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
5107
5108
  var Ae = this.parseExprList(h.parenR, this.options.ecmaVersion >= 8, !1, gt);
5108
- if (f && !q && this.shouldParseAsyncArrow()) this.checkPatternErrors(gt, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Lt, this.awaitPos = Ot, this.awaitIdentPos = bt, i = this.parseSubscriptAsyncArrow(r, n, Ae, y);
5109
+ if (f && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(gt, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = Lt, this.awaitPos = Ot, this.awaitIdentPos = bt, i = this.parseSubscriptAsyncArrow(r, n, Ae, y);
5109
5110
  else {
5110
5111
  this.checkExpressionErrors(gt, !0), this.yieldPos = Lt || this.yieldPos, this.awaitPos = Ot || this.awaitPos, this.awaitIdentPos = bt || this.awaitIdentPos;
5111
5112
  var zt = this.startNodeAt(r, n);
5112
- zt.callee = i, zt.arguments = Ae, W && (zt.optional = q), i = this.finishNode(zt, "CallExpression");
5113
+ zt.callee = i, zt.arguments = Ae, z && (zt.optional = W), i = this.finishNode(zt, "CallExpression");
5113
5114
  }
5114
5115
  this.maybeInArrowParameters = at;
5115
5116
  } else if (this.type === h.backQuote) {
5116
- (q || b) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
5117
+ (W || b) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
5117
5118
  var ne = this.startNodeAt(r, n);
5118
5119
  ne.tag = i, ne.quasi = this.parseTemplate({ isTagged: !0 }), i = this.finishNode(ne, "TaggedTemplateExpression");
5119
5120
  }
@@ -5125,7 +5126,7 @@ function Ls(t) {
5125
5126
  }, p.parseProperty = function(i, r) {
5126
5127
  if (!i) {
5127
5128
  var n = [];
5128
- if (this.match(N.at)) for (; this.match(N.at); ) n.push(this.parseDecorator());
5129
+ if (this.match(I.at)) for (; this.match(I.at); ) n.push(this.parseDecorator());
5129
5130
  var c = P.prototype.parseProperty.call(this, i, r);
5130
5131
  return c.type === "SpreadElement" && n.length && this.raise(c.start, "Decorators can't be used with SpreadElement"), n.length && (c.decorators = n, n = []), c;
5131
5132
  }
@@ -5145,7 +5146,7 @@ function Ls(t) {
5145
5146
  var f = this.enterClassBody(), m = this.startNode(), y = !1;
5146
5147
  m.body = [];
5147
5148
  var x = [];
5148
- for (this.expect(h.braceL); this.type !== h.braceR; ) if (this.match(N.at)) x.push(this.parseDecorator());
5149
+ for (this.expect(h.braceL); this.type !== h.braceR; ) if (this.match(I.at)) x.push(this.parseDecorator());
5149
5150
  else {
5150
5151
  var b = this.parseClassElement(i.superClass !== null);
5151
5152
  x.length && (b.decorators = x, this.resetStartLocationFromNode(b, x[0]), x = []), b && (m.body.push(b), b.type === "MethodDefinition" && b.kind === "constructor" && b.value.type === "FunctionExpression" ? (y && this.raiseRecoverable(b.start, "Duplicate constructor in the same class"), y = !0, b.decorators && b.decorators.length > 0 && this.raise(b.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")) : b.key && b.key.type === "PrivateIdentifier" && ks(f, b) && this.raiseRecoverable(b.key.start, "Identifier '#" + b.key.name + "' has already been declared"));
@@ -5175,14 +5176,14 @@ function Ls(t) {
5175
5176
  var c = new this(n, i, r);
5176
5177
  return a && (c.isAmbientContext = !0), c.nextToken(), c.parseExpression();
5177
5178
  }, p.parseImportSpecifier = function() {
5178
- if (this.ts_isContextual(N.type)) {
5179
+ if (this.ts_isContextual(I.type)) {
5179
5180
  var i = this.startNode();
5180
5181
  return i.imported = this.parseModuleExportName(), this.parseTypeOnlyImportExportSpecifier(i, !0, this.importOrExportOuterKind === "type"), this.finishNode(i, "ImportSpecifier");
5181
5182
  }
5182
5183
  var r = P.prototype.parseImportSpecifier.call(this);
5183
5184
  return r.importKind = "value", r;
5184
5185
  }, p.parseExportSpecifier = function(i) {
5185
- var r = this.ts_isContextual(N.type);
5186
+ var r = this.ts_isContextual(I.type);
5186
5187
  if (!this.match(h.string) && r) {
5187
5188
  var n = this.startNode();
5188
5189
  return n.local = this.parseModuleExportName(), this.parseTypeOnlyImportExportSpecifier(n, !1, this.importOrExportOuterKind === "type"), this.finishNode(n, "ExportSpecifier"), this.checkExport(i, n.exported, n.exported.start), n;
@@ -5192,11 +5193,11 @@ function Ls(t) {
5192
5193
  }, p.parseTypeOnlyImportExportSpecifier = function(i, r, n) {
5193
5194
  var c, f = r ? "imported" : "local", m = r ? "local" : "exported", y = i[f], x = !1, b = !0, S = y.start;
5194
5195
  if (this.isContextual("as")) {
5195
- var I = this.parseIdent();
5196
+ var N = this.parseIdent();
5196
5197
  if (this.isContextual("as")) {
5197
5198
  var O = this.parseIdent();
5198
- Wt(this.type) ? (x = !0, y = I, c = r ? this.parseIdent() : this.parseModuleExportName(), b = !1) : (c = O, b = !1);
5199
- } else Wt(this.type) ? (b = !1, c = r ? this.parseIdent() : this.parseModuleExportName()) : (x = !0, y = I);
5199
+ Wt(this.type) ? (x = !0, y = N, c = r ? this.parseIdent() : this.parseModuleExportName(), b = !1) : (c = O, b = !1);
5200
+ } else Wt(this.type) ? (b = !1, c = r ? this.parseIdent() : this.parseModuleExportName()) : (x = !0, y = N);
5200
5201
  } else Wt(this.type) && (x = !0, r ? (y = P.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(y)) : y = this.parseModuleExportName());
5201
5202
  x && n && this.raise(S, r ? w.TypeModifierIsUsedInTypeImports : w.TypeModifierIsUsedInTypeExports), i[f] = y, i[m] = c, i[r ? "importKind" : "exportKind"] = x ? "type" : "value", b && this.eatContextual("as") && (i[m] = r ? this.parseIdent() : this.parseModuleExportName()), i[m] || (i[m] = this.copyNode(i[f])), r && this.checkLValSimple(i[m], 2);
5202
5203
  }, p.raiseCommonCheck = function(i, r, n) {
@@ -5209,9 +5210,9 @@ function Ls(t) {
5209
5210
  var r = this.type;
5210
5211
  if (r == h.braceL) {
5211
5212
  var n = this.curContext();
5212
- n == it.tc_oTag ? this.context.push(J.b_expr) : n == it.tc_expr ? this.context.push(J.b_tmpl) : P.prototype.updateContext.call(this, i), this.exprAllowed = !0;
5213
+ n == it.tc_oTag ? this.context.push(U.b_expr) : n == it.tc_expr ? this.context.push(U.b_tmpl) : P.prototype.updateContext.call(this, i), this.exprAllowed = !0;
5213
5214
  } else {
5214
- if (r !== h.slash || i !== N.jsxTagStart) return P.prototype.updateContext.call(this, i);
5215
+ if (r !== h.slash || i !== I.jsxTagStart) return P.prototype.updateContext.call(this, i);
5215
5216
  this.context.length -= 2, this.context.push(it.tc_cTag), this.exprAllowed = !1;
5216
5217
  }
5217
5218
  }, p.jsx_parseOpeningElementAt = function(i, r) {
@@ -5222,8 +5223,8 @@ function Ls(t) {
5222
5223
  });
5223
5224
  m && (c.typeParameters = m);
5224
5225
  }
5225
- for (c.attributes = []; this.type !== h.slash && this.type !== N.jsxTagEnd; ) c.attributes.push(this.jsx_parseAttribute());
5226
- return c.selfClosing = this.eat(h.slash), this.expect(N.jsxTagEnd), this.finishNode(c, f ? "JSXOpeningElement" : "JSXOpeningFragment");
5226
+ for (c.attributes = []; this.type !== h.slash && this.type !== I.jsxTagEnd; ) c.attributes.push(this.jsx_parseAttribute());
5227
+ return c.selfClosing = this.eat(h.slash), this.expect(I.jsxTagEnd), this.finishNode(c, f ? "JSXOpeningElement" : "JSXOpeningFragment");
5227
5228
  }, p.enterScope = function(i) {
5228
5229
  i === Rt && this.importsStack.push([]), P.prototype.enterScope.call(this, i);
5229
5230
  var r = P.prototype.currentScope.call(this);
@@ -5257,11 +5258,11 @@ function Ls(t) {
5257
5258
  }
5258
5259
  P.prototype.checkLocalExport.call(this, i);
5259
5260
  }
5260
- }, Q = st, B = [{ key: "acornTypeScript", get: function() {
5261
+ }, Y = st, F = [{ key: "acornTypeScript", get: function() {
5261
5262
  return g;
5262
- } }], (G = [{ key: "acornTypeScript", get: function() {
5263
+ } }], ($ = [{ key: "acornTypeScript", get: function() {
5263
5264
  return g;
5264
- } }]) && De(Q.prototype, G), B && De(Q, B), Object.defineProperty(Q, "prototype", { writable: !1 }), st;
5265
+ } }]) && De(Y.prototype, $), F && De(Y, F), Object.defineProperty(Y, "prototype", { writable: !1 }), st;
5265
5266
  })(d);
5266
5267
  return Ni;
5267
5268
  };
@@ -5270,8 +5271,8 @@ const Os = ["createObject", "dropObject", "removeRecords", "upsertRecords"], Rs
5270
5271
  async function Bs() {
5271
5272
  try {
5272
5273
  console.info("🚀 Building configuration...");
5273
- const t = JSON.parse(await D.readFile("package.json", "utf8")), e = JSON.parse(await D.readFile("config.json", "utf8"));
5274
- t.name != null && (e.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (e.version = t.version), await D.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Configuration built.");
5274
+ const t = JSON.parse(await M.readFile("package.json", "utf8")), e = JSON.parse(await M.readFile("config.json", "utf8"));
5275
+ t.name != null && (e.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (e.version = t.version), await M.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Configuration built.");
5275
5276
  } catch (t) {
5276
5277
  console.error("❌ Error building configuration.", t);
5277
5278
  }
@@ -5287,10 +5288,10 @@ async function js(t) {
5287
5288
  for (const g of l) {
5288
5289
  const h = `${o}/${g}`;
5289
5290
  try {
5290
- const C = await D.stat(h);
5291
+ const C = await M.stat(h);
5291
5292
  if (C.isDirectory()) {
5292
- const _ = await D.readdir(h), M = { childCount: _.length, name: g, typeId: "folder" };
5293
- d.push(M), await s(h, _);
5293
+ const _ = await M.readdir(h), j = { childCount: _.length, name: g, typeId: "folder" };
5294
+ d.push(j), await s(h, _);
5294
5295
  } else {
5295
5296
  const _ = { id: Li(), lastModifiedAt: C.mtimeMs, name: g, size: C.size, typeId: "object" };
5296
5297
  d.push(_);
@@ -5304,8 +5305,8 @@ async function js(t) {
5304
5305
  return C === 0 ? g.name.localeCompare(h.name) : C;
5305
5306
  });
5306
5307
  }
5307
- const a = await D.readdir(`public/${t}`);
5308
- await s(`public/${t}`, a), await D.writeFile(`./public/${t}Index.json`, JSON.stringify(e), "utf8"), console.info("✅ Public directory index built.");
5308
+ const a = await M.readdir(`public/${t}`);
5309
+ await s(`public/${t}`, a), await M.writeFile(`./public/${t}Index.json`, JSON.stringify(e), "utf8"), console.info("✅ Public directory index built.");
5309
5310
  } catch (e) {
5310
5311
  console.error("❌ Error building public directory index.", e);
5311
5312
  }
@@ -5313,28 +5314,29 @@ async function js(t) {
5313
5314
  async function Us() {
5314
5315
  try {
5315
5316
  console.info("🚀 Building connector configuration...");
5316
- const t = JSON.parse(await D.readFile("package.json", "utf8")), e = JSON.parse(await D.readFile("config.json", "utf8")), s = await D.readFile("src/index.ts", "utf8");
5317
+ const t = JSON.parse(await M.readFile("package.json", "utf8")), e = JSON.parse(await M.readFile("config.json", "utf8")), s = await M.readFile("src/index.ts", "utf8");
5317
5318
  try {
5318
- const C = K.extend(Ls()).parse(s, {
5319
- ecmaVersion: "latest",
5320
- sourceType: "module",
5321
- locations: !1
5322
- }), _ = [];
5319
+ const C = Parser.extend(Ls()).parse(s, { ecmaVersion: "latest", sourceType: "module", locations: !0 }), _ = /* @__PURE__ */ new Set();
5323
5320
  Ri(C, {
5324
- FunctionDeclaration(M) {
5325
- M.id?.name && _.push(M.id.name);
5321
+ FunctionDeclaration(B) {
5322
+ B.id?.name && _.add(B.id.name);
5326
5323
  },
5327
- MethodDefinition(M) {
5328
- const H = M.key?.name, J = M.key?.type === "PrivateIdentifier";
5329
- H && !J && !(H === "constructor") && _.push(H);
5324
+ MethodDefinition(B) {
5325
+ const U = B.key?.name, G = B.key?.type === "PrivateIdentifier" || B.accessibility === "private";
5326
+ U && !G && !(U === "constructor") && _.add(U);
5330
5327
  },
5331
- ArrowFunctionExpression(M) {
5332
- if (M.parent?.type === "VariableDeclarator" && M.parent?.id?.name) {
5333
- const H = M.parent.id.name;
5334
- _.includes(H) || _.push(H);
5335
- }
5328
+ VariableDeclarator(B, U) {
5329
+ const G = B.id?.name, I = B.init;
5330
+ G && I && (I.type === "ArrowFunctionExpression" || I.type === "FunctionExpression") && _.add(G);
5331
+ },
5332
+ // Handle class properties with arrow functions (TS/modern JS)
5333
+ PropertyDefinition(B) {
5334
+ const U = B.key?.name, G = B.key?.type === "PrivateIdentifier" || B.accessibility === "private", I = B.value?.type === "ArrowFunctionExpression" || B.value?.type === "FunctionExpression";
5335
+ U && !G && I && _.add(U);
5336
5336
  }
5337
- }), _.length > 0 && console.info(`ℹ️ Extracted ${_.length} functions from TypeScript AST`);
5337
+ });
5338
+ const j = Array.from(_);
5339
+ j.length > 0 && console.info(`ℹ️ Extracted ${j.length} functions from TypeScript AST`);
5338
5340
  } catch (h) {
5339
5341
  console.warn("⚠️ Failed to parse with acorn-typescript, falling back to regex method", h);
5340
5342
  }
@@ -5346,7 +5348,7 @@ async function Us() {
5346
5348
  }
5347
5349
  v.length > 0 ? console.info(`ℹ️ Implements ${v.length} operations.`) : console.warn("⚠️ Implements no operations.");
5348
5350
  let g;
5349
- o && a ? g = "bidirectional" : o ? g = "source" : a ? g = "destination" : g = "unknown", g === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports ${g} usage.`), t.name != null && (e.id = t.name), e.operations = v, e.usageId = g, t.version != null && (e.version = t.version), await D.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Connector configuration built.");
5351
+ o && a ? g = "bidirectional" : o ? g = "source" : a ? g = "destination" : g = "unknown", g === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports ${g} usage.`), t.name != null && (e.id = t.name), e.operations = v, e.usageId = g, t.version != null && (e.version = t.version), await M.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Connector configuration built.");
5350
5352
  } catch (t) {
5351
5353
  console.error("❌ Error building connector configuration.", t);
5352
5354
  }
@@ -5354,8 +5356,8 @@ async function Us() {
5354
5356
  async function qs() {
5355
5357
  try {
5356
5358
  console.info("🚀 Building context configuration...");
5357
- const t = JSON.parse(await D.readFile("package.json", "utf8")), e = JSON.parse(await D.readFile("config.json", "utf8")), s = await D.readFile("src/index.ts", "utf8"), a = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, o = [...s.matchAll(a)].filter((l) => l[1] == null && l[2] !== "constructor").map((l) => l[2]);
5358
- t.name != null && (e.id = t.name), e.operations = o, t.version != null && (e.version = t.version), await D.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Context configuration built.");
5359
+ const t = JSON.parse(await M.readFile("package.json", "utf8")), e = JSON.parse(await M.readFile("config.json", "utf8")), s = await M.readFile("src/index.ts", "utf8"), a = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, o = [...s.matchAll(a)].filter((l) => l[1] == null && l[2] !== "constructor").map((l) => l[2]);
5360
+ t.name != null && (e.id = t.name), e.operations = o, t.version != null && (e.version = t.version), await M.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Context configuration built.");
5359
5361
  } catch (t) {
5360
5362
  console.error("❌ Error building context configuration.", t);
5361
5363
  }
@@ -5363,8 +5365,8 @@ async function qs() {
5363
5365
  async function Hs() {
5364
5366
  try {
5365
5367
  console.info("🚀 Building presenter configuration...");
5366
- const t = JSON.parse(await D.readFile("package.json", "utf8")), e = JSON.parse(await D.readFile("config.json", "utf8")), s = await D.readFile("src/index.ts", "utf8"), a = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, o = [...s.matchAll(a)].filter((l) => l[1] == null && l[2] !== "constructor").map((l) => l[2]);
5367
- t.name != null && (e.id = t.name), e.operations = o, t.version != null && (e.version = t.version), await D.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Presenter configuration built.");
5368
+ const t = JSON.parse(await M.readFile("package.json", "utf8")), e = JSON.parse(await M.readFile("config.json", "utf8")), s = await M.readFile("src/index.ts", "utf8"), a = /^\s{4}(?:async\s+)?(private\s+)?(?:public\s+|protected\s+)?([A-Za-z_]\w*)\s*\(/gm, o = [...s.matchAll(a)].filter((l) => l[1] == null && l[2] !== "constructor").map((l) => l[2]);
5369
+ t.name != null && (e.id = t.name), e.operations = o, t.version != null && (e.version = t.version), await M.writeFile("config.json", JSON.stringify(e, void 0, 4), "utf8"), console.info("✅ Presenter configuration built.");
5368
5370
  } catch (t) {
5369
5371
  console.error("❌ Error building context configuration.", t);
5370
5372
  }
@@ -5372,12 +5374,12 @@ async function Hs() {
5372
5374
  async function Ws(t = "./") {
5373
5375
  try {
5374
5376
  console.info("🚀 Bumping version...");
5375
- const e = JSON.parse(await D.readFile(`${t}package.json`, "utf8"));
5377
+ const e = JSON.parse(await M.readFile(`${t}package.json`, "utf8"));
5376
5378
  if (e.version == null)
5377
- e.version = "0.0.001", await D.writeFile(`${t}package.json`, JSON.stringify(e, void 0, 4), "utf8"), console.warn(`⚠️ Version initialised to ${e.version}.`);
5379
+ e.version = "0.0.001", await M.writeFile(`${t}package.json`, JSON.stringify(e, void 0, 4), "utf8"), console.warn(`⚠️ Version initialised to ${e.version}.`);
5378
5380
  else {
5379
5381
  const s = e.version, a = e.version.split(".");
5380
- e.version = `${a[0]}.${a[1]}.${Number(a[2]) + 1}`, await D.writeFile(`${t}package.json`, JSON.stringify(e, void 0, 4), "utf8"), console.info(`✅ Version bumped from ${s} to ${e.version}.`);
5382
+ e.version = `${a[0]}.${a[1]}.${Number(a[2]) + 1}`, await M.writeFile(`${t}package.json`, JSON.stringify(e, void 0, 4), "utf8"), console.info(`✅ Version bumped from ${s} to ${e.version}.`);
5381
5383
  }
5382
5384
  } catch (e) {
5383
5385
  console.error("❌ Error bumping package version.", e);
@@ -5389,12 +5391,12 @@ function zs(t) {
5389
5391
  async function Ks() {
5390
5392
  const t = "<!-- DEPENDENCY_LICENSES_START -->", e = "<!-- DEPENDENCY_LICENSES_END -->";
5391
5393
  try {
5392
- const s = (await D.readFile("./licenses.md", "utf8")).trim(), a = await D.readFile("./README.md", "utf8"), o = a.indexOf(t), l = a.indexOf(e);
5394
+ const s = (await M.readFile("./licenses.md", "utf8")).trim(), a = await M.readFile("./README.md", "utf8"), o = a.indexOf(t), l = a.indexOf(e);
5393
5395
  (o === -1 || l === -1) && (console.error("❌ Dependency license markers not found in readme file."), process.exit(1));
5394
5396
  const d = a.substring(0, o + t.length) + `
5395
5397
  ` + s + `
5396
5398
  ` + a.substring(l);
5397
- await D.writeFile("README.md", d, "utf8"), console.log("✅ Readme file updated with license information");
5399
+ await M.writeFile("README.md", d, "utf8"), console.log("✅ Readme file updated with license information");
5398
5400
  } catch (s) {
5399
5401
  console.error("❌ Error updating readme file.", s), process.exit(1);
5400
5402
  }
@@ -5402,12 +5404,12 @@ async function Ks() {
5402
5404
  async function Js() {
5403
5405
  const t = "<!-- OWASP_BADGE_START -->", e = "<!-- OWASP_BADGE_END -->";
5404
5406
  try {
5405
- const s = JSON.parse(await D.readFile("./dependency-check-reports/dependency-check-report.json", "utf-8")), a = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
5406
- for (const H of s.dependencies)
5407
- if (H.vulnerabilities != null)
5408
- for (const J of H.vulnerabilities) {
5409
- const et = J.severity?.toLowerCase() ?? "unknown";
5410
- et in a ? a[et]++ : a.unknown++;
5407
+ const s = JSON.parse(await M.readFile("./dependency-check-reports/dependency-check-report.json", "utf-8")), a = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
5408
+ for (const B of s.dependencies)
5409
+ if (B.vulnerabilities != null)
5410
+ for (const U of B.vulnerabilities) {
5411
+ const G = U.severity?.toLowerCase() ?? "unknown";
5412
+ G in a ? a[G]++ : a.unknown++;
5411
5413
  }
5412
5414
  const o = {
5413
5415
  critical: { color: "D32F2F", label: "critical" },
@@ -5415,20 +5417,20 @@ async function Js() {
5415
5417
  moderate: { color: "FBC02D", label: "moderate" },
5416
5418
  low: { color: "6D8C31", label: "low" },
5417
5419
  unknown: { color: "616161", label: "unknown" }
5418
- }, l = JSON.parse(await D.readFile("config.json", "utf8")), d = [];
5419
- if (Object.values(a).reduce((H, J) => H + J, 0) === 0)
5420
+ }, l = JSON.parse(await M.readFile("config.json", "utf8")), d = [];
5421
+ if (Object.values(a).reduce((B, U) => B + U, 0) === 0)
5420
5422
  console.info("✅ No vulnerabilities found."), d.push(`[![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://data-positioning.github.io/${l.id}/dependency-check-reports/dependency-check-report.html)`);
5421
5423
  else
5422
- for (const [H, J] of Object.entries(a)) {
5423
- const et = o[H];
5424
- if (console.warn(`⚠️ ${J} ${et.label} vulnerability(ies) found.`), J === 0) continue;
5425
- const N = `https://img.shields.io/badge/OWASP-${J}%20${et.label}-${et.color}`;
5426
- d.push(`[![OWASP](${N})](https://data-positioning.github.io/${l.id}/dependency-check-reports/dependency-check-report.html)`);
5424
+ for (const [B, U] of Object.entries(a)) {
5425
+ const G = o[B];
5426
+ if (console.warn(`⚠️ ${U} ${G.label} vulnerability(ies) found.`), U === 0) continue;
5427
+ const I = `https://img.shields.io/badge/OWASP-${U}%20${G.label}-${G.color}`;
5428
+ d.push(`[![OWASP](${I})](https://data-positioning.github.io/${l.id}/dependency-check-reports/dependency-check-report.html)`);
5427
5429
  }
5428
- const g = await D.readFile("./README.md", "utf8"), h = g.indexOf(t), C = g.indexOf(e);
5430
+ const g = await M.readFile("./README.md", "utf8"), h = g.indexOf(t), C = g.indexOf(e);
5429
5431
  (h === -1 || C === -1) && (console.error("❌ OWASP badge markers not found in README.md."), process.exit(1));
5430
- const _ = d.join(" "), M = g.substring(0, h + t.length) + _ + g.substring(C);
5431
- await D.writeFile("README.md", M, "utf8"), console.info("✅ OWASP dependency check badge(s) inserted into README.md");
5432
+ const _ = d.join(" "), j = g.substring(0, h + t.length) + _ + g.substring(C);
5433
+ await M.writeFile("README.md", j, "utf8"), console.info("✅ OWASP dependency check badge(s) inserted into README.md");
5432
5434
  } catch (s) {
5433
5435
  console.error("❌ Error updating README with OWASP badges:", s), process.exit(1);
5434
5436
  }
@@ -5436,7 +5438,7 @@ async function Js() {
5436
5438
  async function Gs() {
5437
5439
  try {
5438
5440
  console.info("🚀 Sending deployment notice...");
5439
- const t = JSON.parse(await D.readFile("config.json", "utf8")), e = {
5441
+ const t = JSON.parse(await M.readFile("config.json", "utf8")), e = {
5440
5442
  body: JSON.stringify(t),
5441
5443
  headers: { "Content-Type": "application/json" },
5442
5444
  method: "PUT"
@@ -5450,7 +5452,7 @@ async function Gs() {
5450
5452
  async function $s() {
5451
5453
  try {
5452
5454
  console.info("🚀 Synchronising with GitHub....");
5453
- const t = JSON.parse(await D.readFile("package.json", "utf8"));
5455
+ const t = JSON.parse(await M.readFile("package.json", "utf8"));
5454
5456
  await Ft("git add ."), await Ft(`git commit -m "v${t.version}"`), await Ft("git push origin main:main"), console.info(`✅ Synchronised version ${t.version} with GitHub.`);
5455
5457
  } catch (t) {
5456
5458
  console.error("❌ Error synchronising with GitHub.", t);
@@ -5462,17 +5464,17 @@ async function Xs(t, e) {
5462
5464
  async function s(o, l, d) {
5463
5465
  for (const v of d) {
5464
5466
  const g = `${o}/${v}`, h = `${l}/${v}`;
5465
- if ((await D.stat(g)).isDirectory()) {
5466
- const _ = await D.readdir(g);
5467
+ if ((await M.stat(g)).isDirectory()) {
5468
+ const _ = await M.readdir(g);
5467
5469
  await s(g, h, _);
5468
5470
  } else {
5469
5471
  console.info(`⚙️ Uploading '${o}/${v}'...`);
5470
- const _ = `wrangler r2 object put "datapos-sample-data-eu/${l}/${v}" --file="${o}/${v}" --jurisdiction=eu --remote`, M = await Ft(_);
5471
- if (M.stderr) throw new Error(M.stderr);
5472
+ const _ = `wrangler r2 object put "datapos-sample-data-eu/${l}/${v}" --file="${o}/${v}" --jurisdiction=eu --remote`, j = await Ft(_);
5473
+ if (j.stderr) throw new Error(j.stderr);
5472
5474
  }
5473
5475
  }
5474
5476
  }
5475
- const a = await D.readdir(`${t}/${e}/`);
5477
+ const a = await M.readdir(`${t}/${e}/`);
5476
5478
  await s(`${t}/${e}`, e, a), console.info("✅ Directory uploaded to R2.");
5477
5479
  } catch (s) {
5478
5480
  console.error("❌ Error uploading directory to R2.", s);
@@ -5481,7 +5483,7 @@ async function Xs(t, e) {
5481
5483
  async function Qs() {
5482
5484
  try {
5483
5485
  console.info("🚀 Uploading module configuration....");
5484
- const t = JSON.parse(await D.readFile("config.json", "utf8")), e = t.id, s = {
5486
+ const t = JSON.parse(await M.readFile("config.json", "utf8")), e = t.id, s = {
5485
5487
  body: JSON.stringify(t),
5486
5488
  headers: { "Content-Type": "application/json" },
5487
5489
  method: "PUT"
@@ -5495,16 +5497,16 @@ async function Qs() {
5495
5497
  async function Ys(t) {
5496
5498
  try {
5497
5499
  console.info("🚀 Uploading module to R2...");
5498
- const s = `v${JSON.parse(await D.readFile("package.json", "utf8")).version}`;
5500
+ const s = `v${JSON.parse(await M.readFile("package.json", "utf8")).version}`;
5499
5501
  async function a(o, l = "") {
5500
- const d = await D.readdir(o, { withFileTypes: !0 });
5502
+ const d = await M.readdir(o, { withFileTypes: !0 });
5501
5503
  for (const v of d) {
5502
5504
  const g = `${o}/${v.name}`, h = l ? `${l}/${v.name}` : v.name;
5503
5505
  if (!v.isDirectory()) {
5504
5506
  const C = `${t}_${s}/${h}`.replace(/\\/g, "/"), _ = v.name.endsWith(".js") ? "application/javascript" : v.name.endsWith(".css") ? "text/css" : "application/octet-stream";
5505
5507
  console.info(`⚙️ Uploading '${h}' → '${C}'...`);
5506
- const { stderr: M } = await Ft(`wrangler r2 object put "${C}" --file="${g}" --content-type ${_} --jurisdiction=eu --remote`);
5507
- if (M) throw new Error(M);
5508
+ const { stderr: j } = await Ft(`wrangler r2 object put "${C}" --file="${g}" --content-type ${_} --jurisdiction=eu --remote`);
5509
+ if (j) throw new Error(j);
5508
5510
  }
5509
5511
  }
5510
5512
  }