@dpuse/dpuse-development 0.3.506 → 0.3.508

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.
@@ -37,7 +37,7 @@ function p(e, t, n) {
37
37
  };
38
38
  }
39
39
  //#endregion
40
- //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-CkdR7msf.js
40
+ //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-DTtYL9IP.js
41
41
  var m, h = {
42
42
  lang: void 0,
43
43
  message: void 0,
@@ -284,11 +284,11 @@ function S(e, t) {
284
284
  };
285
285
  }
286
286
  /* @__NO_SIDE_EFFECTS__ */
287
- function me(e, t) {
287
+ function C(e, t) {
288
288
  return {
289
289
  kind: "schema",
290
290
  type: "optional",
291
- reference: me,
291
+ reference: C,
292
292
  expects: `(${e.expects} | undefined)`,
293
293
  async: !1,
294
294
  wrapped: e,
@@ -302,11 +302,11 @@ function me(e, t) {
302
302
  };
303
303
  }
304
304
  /* @__NO_SIDE_EFFECTS__ */
305
- function he(e, t, n) {
305
+ function me(e, t, n) {
306
306
  return {
307
307
  kind: "schema",
308
308
  type: "record",
309
- reference: he,
309
+ reference: me,
310
310
  expects: "Object",
311
311
  async: !1,
312
312
  key: e,
@@ -358,11 +358,11 @@ function he(e, t, n) {
358
358
  };
359
359
  }
360
360
  /* @__NO_SIDE_EFFECTS__ */
361
- function C(e) {
361
+ function w(e) {
362
362
  return {
363
363
  kind: "schema",
364
364
  type: "string",
365
- reference: C,
365
+ reference: w,
366
366
  expects: "string",
367
367
  async: !1,
368
368
  message: e,
@@ -375,18 +375,18 @@ function C(e) {
375
375
  };
376
376
  }
377
377
  /* @__NO_SIDE_EFFECTS__ */
378
- function ge(e) {
378
+ function he(e) {
379
379
  let t;
380
380
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
381
381
  else t = n.issues;
382
382
  return t;
383
383
  }
384
384
  /* @__NO_SIDE_EFFECTS__ */
385
- function _e(e, t) {
385
+ function ge(e, t) {
386
386
  return {
387
387
  kind: "schema",
388
388
  type: "union",
389
- reference: _e,
389
+ reference: ge,
390
390
  expects: /* @__PURE__ */ se(e.map((e) => e.expects), "|"),
391
391
  async: !1,
392
392
  options: e,
@@ -408,21 +408,24 @@ function _e(e, t) {
408
408
  if (n) return n;
409
409
  if (r) {
410
410
  if (r.length === 1) return r[0];
411
- y(this, "type", e, t, { issues: /* @__PURE__ */ ge(r) }), e.typed = !0;
411
+ y(this, "type", e, t, { issues: /* @__PURE__ */ he(r) }), e.typed = !0;
412
412
  } else if (i?.length === 1) return i[0];
413
- else y(this, "type", e, t, { issues: /* @__PURE__ */ ge(i) });
413
+ else y(this, "type", e, t, { issues: /* @__PURE__ */ he(i) });
414
414
  return e;
415
415
  }
416
416
  };
417
417
  }
418
- var w = (e) => /* @__PURE__ */ _e(e.map((e) => /* @__PURE__ */ fe(e))), ve = /* @__PURE__ */ S({
419
- en: /* @__PURE__ */ C(),
420
- es: /* @__PURE__ */ C()
418
+ var T = (e) => /* @__PURE__ */ ge(e.map((e) => /* @__PURE__ */ fe(e))), _e = /* @__PURE__ */ S({
419
+ en: /* @__PURE__ */ w(),
420
+ es: /* @__PURE__ */ w()
421
+ }), ve = /* @__PURE__ */ S({
422
+ en: /* @__PURE__ */ C(/* @__PURE__ */ w()),
423
+ es: /* @__PURE__ */ C(/* @__PURE__ */ w())
421
424
  }), ye = /* @__PURE__ */ S({
422
- en: /* @__PURE__ */ me(/* @__PURE__ */ C()),
423
- es: /* @__PURE__ */ me(/* @__PURE__ */ C())
425
+ en: /* @__PURE__ */ C(/* @__PURE__ */ ue(/* @__PURE__ */ w())),
426
+ es: /* @__PURE__ */ C(/* @__PURE__ */ ue(/* @__PURE__ */ w()))
424
427
  });
425
- w([
428
+ T([
426
429
  "app",
427
430
  "connector",
428
431
  "connectorConnection",
@@ -447,12 +450,12 @@ w([
447
450
  "presenterPresentation",
448
451
  "tool"
449
452
  ]);
450
- var be = w([
453
+ var be = T([
451
454
  "amber",
452
455
  "green",
453
456
  "red",
454
457
  "other"
455
- ]), xe = w([
458
+ ]), xe = T([
456
459
  "alpha",
457
460
  "beta",
458
461
  "generalAvailability",
@@ -464,29 +467,29 @@ var be = w([
464
467
  "underReview"
465
468
  ]), Se = /* @__PURE__ */ S({
466
469
  color: be,
467
- label: /* @__PURE__ */ C()
470
+ label: /* @__PURE__ */ w()
468
471
  }), Ce = /* @__PURE__ */ S({
469
- id: /* @__PURE__ */ C(),
470
- label: ye,
472
+ id: /* @__PURE__ */ w(),
473
+ label: ve,
471
474
  description: ye,
472
- icon: /* @__PURE__ */ x(/* @__PURE__ */ C()),
473
- iconDark: /* @__PURE__ */ x(/* @__PURE__ */ C()),
474
- iconNeutral: /* @__PURE__ */ x(/* @__PURE__ */ C()),
475
+ icon: /* @__PURE__ */ x(/* @__PURE__ */ w()),
476
+ iconDark: /* @__PURE__ */ x(/* @__PURE__ */ w()),
477
+ iconNeutral: /* @__PURE__ */ x(/* @__PURE__ */ w()),
475
478
  order: /* @__PURE__ */ pe(),
476
- path: /* @__PURE__ */ C()
479
+ path: /* @__PURE__ */ w()
477
480
  }), we = {
478
- id: /* @__PURE__ */ C(),
479
- label: ye,
481
+ id: /* @__PURE__ */ w(),
482
+ label: ve,
480
483
  description: ye,
481
484
  firstCreatedAt: /* @__PURE__ */ x(/* @__PURE__ */ pe()),
482
- icon: /* @__PURE__ */ x(/* @__PURE__ */ C()),
483
- iconDark: /* @__PURE__ */ x(/* @__PURE__ */ C()),
484
- iconNeutral: /* @__PURE__ */ x(/* @__PURE__ */ C()),
485
+ icon: /* @__PURE__ */ x(/* @__PURE__ */ w()),
486
+ iconDark: /* @__PURE__ */ x(/* @__PURE__ */ w()),
487
+ iconNeutral: /* @__PURE__ */ x(/* @__PURE__ */ w()),
485
488
  lastUpdatedAt: /* @__PURE__ */ x(/* @__PURE__ */ pe()),
486
489
  status: /* @__PURE__ */ x(Se),
487
490
  statusId: /* @__PURE__ */ x(xe)
488
491
  };
489
- ({ ...we }), w([
492
+ ({ ...we }), T([
490
493
  "app",
491
494
  "engine",
492
495
  "connector",
@@ -495,33 +498,33 @@ var be = w([
495
498
  "tool"
496
499
  ]);
497
500
  //#endregion
498
- //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CE_hg8Nj.js
501
+ //#region node_modules/@dpuse/dpuse-shared/dist/moduleConfig.schema-CMPetJQa.js
499
502
  var Te = {
500
503
  ...we,
501
- version: /* @__PURE__ */ C()
504
+ version: /* @__PURE__ */ w()
502
505
  };
503
506
  ({ ...Te });
504
507
  //#endregion
505
508
  //#region node_modules/@dpuse/dpuse-shared/dist/dpuse-shared-componentModuleConnector.es.js
506
- var Ee = w([
509
+ var Ee = T([
507
510
  "application",
508
511
  "curatedDataset",
509
512
  "database",
510
513
  "fileStore"
511
- ]), De = /* @__PURE__ */ S({ label: ve }), Oe = /* @__PURE__ */ S({
512
- authMethodId: w([
514
+ ]), De = /* @__PURE__ */ S({ label: _e }), Oe = /* @__PURE__ */ S({
515
+ authMethodId: T([
513
516
  "apiKey",
514
517
  "disabled",
515
518
  "oAuth2",
516
519
  "none"
517
520
  ]),
518
- activeConnectionCount: /* @__PURE__ */ me(/* @__PURE__ */ pe()),
519
- canDescribe: /* @__PURE__ */ me(/* @__PURE__ */ de()),
520
- id: /* @__PURE__ */ me(/* @__PURE__ */ C()),
521
- label: /* @__PURE__ */ me(ve),
521
+ activeConnectionCount: /* @__PURE__ */ C(/* @__PURE__ */ pe()),
522
+ canDescribe: /* @__PURE__ */ C(/* @__PURE__ */ de()),
523
+ id: /* @__PURE__ */ C(/* @__PURE__ */ w()),
524
+ label: /* @__PURE__ */ C(_e),
522
525
  maxConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ pe()),
523
- params: /* @__PURE__ */ me(/* @__PURE__ */ ue(/* @__PURE__ */ he(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
524
- }), ke = w([
526
+ params: /* @__PURE__ */ C(/* @__PURE__ */ ue(/* @__PURE__ */ me(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
527
+ }), ke = T([
525
528
  "abortOperation",
526
529
  "auditObjectContent",
527
530
  "createObject",
@@ -536,7 +539,7 @@ var Ee = w([
536
539
  "retrieveChunks",
537
540
  "retrieveRecords",
538
541
  "upsertRecords"
539
- ]), Ae = w([
542
+ ]), Ae = T([
540
543
  "bidirectional",
541
544
  "destination",
542
545
  "source",
@@ -546,23 +549,23 @@ var Ee = w([
546
549
  typeId: /* @__PURE__ */ fe("connector"),
547
550
  category: /* @__PURE__ */ x(De),
548
551
  categoryId: Ee,
549
- implementations: /* @__PURE__ */ he(/* @__PURE__ */ C(), Oe),
552
+ implementations: /* @__PURE__ */ me(/* @__PURE__ */ w(), Oe),
550
553
  operations: /* @__PURE__ */ ue(ke),
551
554
  usageId: Ae,
552
- vendorAccountURL: /* @__PURE__ */ x(/* @__PURE__ */ C()),
553
- vendorDocumentationURL: /* @__PURE__ */ x(/* @__PURE__ */ C()),
554
- vendorHomeURL: /* @__PURE__ */ x(/* @__PURE__ */ C())
555
+ vendorAccountURL: /* @__PURE__ */ x(/* @__PURE__ */ w()),
556
+ vendorDocumentationURL: /* @__PURE__ */ x(/* @__PURE__ */ w()),
557
+ vendorHomeURL: /* @__PURE__ */ x(/* @__PURE__ */ w())
555
558
  }), Me = /* @__PURE__ */ S({
556
559
  ...we,
557
560
  typeId: /* @__PURE__ */ fe("contextModelGroup"),
558
561
  modelRefs: /* @__PURE__ */ ue(Ce),
559
562
  order: /* @__PURE__ */ pe()
560
- }), Ne = w(["listContextFocuses"]), Pe = /* @__PURE__ */ S({
563
+ }), Ne = T(["listContextFocuses"]), Pe = /* @__PURE__ */ S({
561
564
  ...Te,
562
565
  typeId: /* @__PURE__ */ fe("context"),
563
566
  models: /* @__PURE__ */ ue(Me),
564
567
  operations: /* @__PURE__ */ ue(Ne)
565
- }), Fe = w([
568
+ }), Fe = T([
566
569
  "list",
567
570
  "render",
568
571
  "setColorMode"
@@ -573,25 +576,25 @@ var Ee = w([
573
576
  operations: /* @__PURE__ */ ue(Fe)
574
577
  }), Le = /* @__PURE__ */ l({
575
578
  Node: () => $t,
576
- Parser: () => P,
579
+ Parser: () => F,
577
580
  Position: () => ut,
578
581
  SourceLocation: () => dt,
579
- TokContext: () => z,
582
+ TokContext: () => B,
580
583
  Token: () => Un,
581
- TokenType: () => E,
584
+ TokenType: () => D,
582
585
  defaultOptions: () => pt,
583
586
  getLineInfo: () => ft,
584
587
  isIdentifierChar: () => Ye,
585
- isIdentifierStart: () => T,
588
+ isIdentifierStart: () => E,
586
589
  isNewLine: () => Qe,
587
590
  keywordTypes: () => Xe,
588
- lineBreak: () => M,
591
+ lineBreak: () => N,
589
592
  lineBreakG: () => Ze,
590
593
  nonASCIIwhitespace: () => et,
591
594
  parse: () => Jn,
592
595
  parseExpressionAt: () => Yn,
593
- tokContexts: () => B,
594
- tokTypes: () => j,
596
+ tokContexts: () => V,
597
+ tokTypes: () => M,
595
598
  tokenizer: () => Xn,
596
599
  version: () => qn
597
600
  }), Re = [
@@ -1562,159 +1565,159 @@ function Je(e, t) {
1562
1565
  }
1563
1566
  return !1;
1564
1567
  }
1565
- function T(e, t) {
1568
+ function E(e, t) {
1566
1569
  return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Ke.test(String.fromCharCode(e)) : t === !1 ? !1 : Je(e, ze);
1567
1570
  }
1568
1571
  function Ye(e, t) {
1569
1572
  return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && qe.test(String.fromCharCode(e)) : t === !1 ? !1 : Je(e, ze) || Je(e, Re);
1570
1573
  }
1571
- var E = function(e, t) {
1574
+ var D = function(e, t) {
1572
1575
  t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
1573
1576
  };
1574
- function D(e, t) {
1575
- return new E(e, {
1577
+ function O(e, t) {
1578
+ return new D(e, {
1576
1579
  beforeExpr: !0,
1577
1580
  binop: t
1578
1581
  });
1579
1582
  }
1580
- var O = { beforeExpr: !0 }, k = { startsExpr: !0 }, Xe = {};
1581
- function A(e, t) {
1582
- return t === void 0 && (t = {}), t.keyword = e, Xe[e] = new E(e, t);
1583
- }
1584
- var j = {
1585
- num: new E("num", k),
1586
- regexp: new E("regexp", k),
1587
- string: new E("string", k),
1588
- name: new E("name", k),
1589
- privateId: new E("privateId", k),
1590
- eof: new E("eof"),
1591
- bracketL: new E("[", {
1583
+ var k = { beforeExpr: !0 }, A = { startsExpr: !0 }, Xe = {};
1584
+ function j(e, t) {
1585
+ return t === void 0 && (t = {}), t.keyword = e, Xe[e] = new D(e, t);
1586
+ }
1587
+ var M = {
1588
+ num: new D("num", A),
1589
+ regexp: new D("regexp", A),
1590
+ string: new D("string", A),
1591
+ name: new D("name", A),
1592
+ privateId: new D("privateId", A),
1593
+ eof: new D("eof"),
1594
+ bracketL: new D("[", {
1592
1595
  beforeExpr: !0,
1593
1596
  startsExpr: !0
1594
1597
  }),
1595
- bracketR: new E("]"),
1596
- braceL: new E("{", {
1598
+ bracketR: new D("]"),
1599
+ braceL: new D("{", {
1597
1600
  beforeExpr: !0,
1598
1601
  startsExpr: !0
1599
1602
  }),
1600
- braceR: new E("}"),
1601
- parenL: new E("(", {
1603
+ braceR: new D("}"),
1604
+ parenL: new D("(", {
1602
1605
  beforeExpr: !0,
1603
1606
  startsExpr: !0
1604
1607
  }),
1605
- parenR: new E(")"),
1606
- comma: new E(",", O),
1607
- semi: new E(";", O),
1608
- colon: new E(":", O),
1609
- dot: new E("."),
1610
- question: new E("?", O),
1611
- questionDot: new E("?."),
1612
- arrow: new E("=>", O),
1613
- template: new E("template"),
1614
- invalidTemplate: new E("invalidTemplate"),
1615
- ellipsis: new E("...", O),
1616
- backQuote: new E("`", k),
1617
- dollarBraceL: new E("${", {
1608
+ parenR: new D(")"),
1609
+ comma: new D(",", k),
1610
+ semi: new D(";", k),
1611
+ colon: new D(":", k),
1612
+ dot: new D("."),
1613
+ question: new D("?", k),
1614
+ questionDot: new D("?."),
1615
+ arrow: new D("=>", k),
1616
+ template: new D("template"),
1617
+ invalidTemplate: new D("invalidTemplate"),
1618
+ ellipsis: new D("...", k),
1619
+ backQuote: new D("`", A),
1620
+ dollarBraceL: new D("${", {
1618
1621
  beforeExpr: !0,
1619
1622
  startsExpr: !0
1620
1623
  }),
1621
- eq: new E("=", {
1624
+ eq: new D("=", {
1622
1625
  beforeExpr: !0,
1623
1626
  isAssign: !0
1624
1627
  }),
1625
- assign: new E("_=", {
1628
+ assign: new D("_=", {
1626
1629
  beforeExpr: !0,
1627
1630
  isAssign: !0
1628
1631
  }),
1629
- incDec: new E("++/--", {
1632
+ incDec: new D("++/--", {
1630
1633
  prefix: !0,
1631
1634
  postfix: !0,
1632
1635
  startsExpr: !0
1633
1636
  }),
1634
- prefix: new E("!/~", {
1637
+ prefix: new D("!/~", {
1635
1638
  beforeExpr: !0,
1636
1639
  prefix: !0,
1637
1640
  startsExpr: !0
1638
1641
  }),
1639
- logicalOR: D("||", 1),
1640
- logicalAND: D("&&", 2),
1641
- bitwiseOR: D("|", 3),
1642
- bitwiseXOR: D("^", 4),
1643
- bitwiseAND: D("&", 5),
1644
- equality: D("==/!=/===/!==", 6),
1645
- relational: D("</>/<=/>=", 7),
1646
- bitShift: D("<</>>/>>>", 8),
1647
- plusMin: new E("+/-", {
1642
+ logicalOR: O("||", 1),
1643
+ logicalAND: O("&&", 2),
1644
+ bitwiseOR: O("|", 3),
1645
+ bitwiseXOR: O("^", 4),
1646
+ bitwiseAND: O("&", 5),
1647
+ equality: O("==/!=/===/!==", 6),
1648
+ relational: O("</>/<=/>=", 7),
1649
+ bitShift: O("<</>>/>>>", 8),
1650
+ plusMin: new D("+/-", {
1648
1651
  beforeExpr: !0,
1649
1652
  binop: 9,
1650
1653
  prefix: !0,
1651
1654
  startsExpr: !0
1652
1655
  }),
1653
- modulo: D("%", 10),
1654
- star: D("*", 10),
1655
- slash: D("/", 10),
1656
- starstar: new E("**", { beforeExpr: !0 }),
1657
- coalesce: D("??", 1),
1658
- _break: A("break"),
1659
- _case: A("case", O),
1660
- _catch: A("catch"),
1661
- _continue: A("continue"),
1662
- _debugger: A("debugger"),
1663
- _default: A("default", O),
1664
- _do: A("do", {
1656
+ modulo: O("%", 10),
1657
+ star: O("*", 10),
1658
+ slash: O("/", 10),
1659
+ starstar: new D("**", { beforeExpr: !0 }),
1660
+ coalesce: O("??", 1),
1661
+ _break: j("break"),
1662
+ _case: j("case", k),
1663
+ _catch: j("catch"),
1664
+ _continue: j("continue"),
1665
+ _debugger: j("debugger"),
1666
+ _default: j("default", k),
1667
+ _do: j("do", {
1665
1668
  isLoop: !0,
1666
1669
  beforeExpr: !0
1667
1670
  }),
1668
- _else: A("else", O),
1669
- _finally: A("finally"),
1670
- _for: A("for", { isLoop: !0 }),
1671
- _function: A("function", k),
1672
- _if: A("if"),
1673
- _return: A("return", O),
1674
- _switch: A("switch"),
1675
- _throw: A("throw", O),
1676
- _try: A("try"),
1677
- _var: A("var"),
1678
- _const: A("const"),
1679
- _while: A("while", { isLoop: !0 }),
1680
- _with: A("with"),
1681
- _new: A("new", {
1671
+ _else: j("else", k),
1672
+ _finally: j("finally"),
1673
+ _for: j("for", { isLoop: !0 }),
1674
+ _function: j("function", A),
1675
+ _if: j("if"),
1676
+ _return: j("return", k),
1677
+ _switch: j("switch"),
1678
+ _throw: j("throw", k),
1679
+ _try: j("try"),
1680
+ _var: j("var"),
1681
+ _const: j("const"),
1682
+ _while: j("while", { isLoop: !0 }),
1683
+ _with: j("with"),
1684
+ _new: j("new", {
1682
1685
  beforeExpr: !0,
1683
1686
  startsExpr: !0
1684
1687
  }),
1685
- _this: A("this", k),
1686
- _super: A("super", k),
1687
- _class: A("class", k),
1688
- _extends: A("extends", O),
1689
- _export: A("export"),
1690
- _import: A("import", k),
1691
- _null: A("null", k),
1692
- _true: A("true", k),
1693
- _false: A("false", k),
1694
- _in: A("in", {
1688
+ _this: j("this", A),
1689
+ _super: j("super", A),
1690
+ _class: j("class", A),
1691
+ _extends: j("extends", k),
1692
+ _export: j("export"),
1693
+ _import: j("import", A),
1694
+ _null: j("null", A),
1695
+ _true: j("true", A),
1696
+ _false: j("false", A),
1697
+ _in: j("in", {
1695
1698
  beforeExpr: !0,
1696
1699
  binop: 7
1697
1700
  }),
1698
- _instanceof: A("instanceof", {
1701
+ _instanceof: j("instanceof", {
1699
1702
  beforeExpr: !0,
1700
1703
  binop: 7
1701
1704
  }),
1702
- _typeof: A("typeof", {
1705
+ _typeof: j("typeof", {
1703
1706
  beforeExpr: !0,
1704
1707
  prefix: !0,
1705
1708
  startsExpr: !0
1706
1709
  }),
1707
- _void: A("void", {
1710
+ _void: j("void", {
1708
1711
  beforeExpr: !0,
1709
1712
  prefix: !0,
1710
1713
  startsExpr: !0
1711
1714
  }),
1712
- _delete: A("delete", {
1715
+ _delete: j("delete", {
1713
1716
  beforeExpr: !0,
1714
1717
  prefix: !0,
1715
1718
  startsExpr: !0
1716
1719
  })
1717
- }, M = /\r\n?|\n|\u2028|\u2029/, Ze = new RegExp(M.source, "g");
1720
+ }, N = /\r\n?|\n|\u2028|\u2029/, Ze = new RegExp(N.source, "g");
1718
1721
  function Qe(e) {
1719
1722
  return e === 10 || e === 13 || e === 8232 || e === 8233;
1720
1723
  }
@@ -1726,7 +1729,7 @@ function $e(e, t, n) {
1726
1729
  }
1727
1730
  return -1;
1728
1731
  }
1729
- var et = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, N = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, tt = Object.prototype, nt = tt.hasOwnProperty, rt = tt.toString, it = Object.hasOwn || (function(e, t) {
1732
+ var et = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, P = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, tt = Object.prototype, nt = tt.hasOwnProperty, rt = tt.toString, it = Object.hasOwn || (function(e, t) {
1730
1733
  return nt.call(e, t);
1731
1734
  }), at = Array.isArray || (function(e) {
1732
1735
  return rt.call(e) === "[object Array]";
@@ -1802,13 +1805,13 @@ var _t = 1, vt = 2, yt = 4, bt = 8, xt = 16, St = 32, Ct = 64, wt = 128, Tt = 25
1802
1805
  function kt(e, t) {
1803
1806
  return vt | (e ? yt : 0) | (t ? bt : 0);
1804
1807
  }
1805
- var At = 0, jt = 1, Mt = 2, Nt = 3, Pt = 4, Ft = 5, P = function(e, t, n) {
1808
+ var At = 0, jt = 1, Mt = 2, Nt = 3, Pt = 4, Ft = 5, F = function(e, t, n) {
1806
1809
  this.options = e = ht(e), this.sourceFile = e.sourceFile, this.keywords = st(We[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
1807
1810
  var r = "";
1808
1811
  e.allowReserved !== !0 && (r = He[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (r += " await")), this.reservedWords = st(r);
1809
1812
  var i = (r ? r + " " : "") + He.strict;
1810
- this.reservedWordsStrict = st(i), this.reservedWordsStrictBind = st(i + " " + He.strictBind), this.input = String(t), this.containsEsc = !1, n ? (this.pos = n, this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(M).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = j.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 || e.strict === !0 || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? vt : _t), this.regexpState = null, this.privateNameStack = [];
1811
- }, F = {
1813
+ this.reservedWordsStrict = st(i), this.reservedWordsStrictBind = st(i + " " + He.strictBind), this.input = String(t), this.containsEsc = !1, n ? (this.pos = n, this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(N).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = M.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 || e.strict === !0 || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? vt : _t), this.regexpState = null, this.privateNameStack = [];
1814
+ }, I = {
1812
1815
  inFunction: { configurable: !0 },
1813
1816
  inGenerator: { configurable: !0 },
1814
1817
  inAsync: { configurable: !0 },
@@ -1821,120 +1824,120 @@ var At = 0, jt = 1, Mt = 2, Nt = 3, Pt = 4, Ft = 5, P = function(e, t, n) {
1821
1824
  allowUsing: { configurable: !0 },
1822
1825
  inClassStaticBlock: { configurable: !0 }
1823
1826
  };
1824
- P.prototype.parse = function() {
1827
+ F.prototype.parse = function() {
1825
1828
  var e = this, t = this.options.program || this.startNode();
1826
1829
  return this.nextToken(), this.catchStackOverflow(function() {
1827
1830
  return e.parseTopLevel(t);
1828
1831
  });
1829
- }, F.inFunction.get = function() {
1832
+ }, I.inFunction.get = function() {
1830
1833
  return (this.currentVarScope().flags & vt) > 0;
1831
- }, F.inGenerator.get = function() {
1834
+ }, I.inGenerator.get = function() {
1832
1835
  return (this.currentVarScope().flags & bt) > 0;
1833
- }, F.inAsync.get = function() {
1836
+ }, I.inAsync.get = function() {
1834
1837
  return (this.currentVarScope().flags & yt) > 0;
1835
- }, F.canAwait.get = function() {
1838
+ }, I.canAwait.get = function() {
1836
1839
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
1837
1840
  var t = this.scopeStack[e].flags;
1838
1841
  if (t & (Tt | Et)) return !1;
1839
1842
  if (t & vt) return (t & yt) > 0;
1840
1843
  }
1841
1844
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
1842
- }, F.allowReturn.get = function() {
1845
+ }, I.allowReturn.get = function() {
1843
1846
  return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & _t);
1844
- }, F.allowSuper.get = function() {
1847
+ }, I.allowSuper.get = function() {
1845
1848
  return (this.currentThisScope().flags & Ct) > 0 || this.options.allowSuperOutsideMethod;
1846
- }, F.allowDirectSuper.get = function() {
1849
+ }, I.allowDirectSuper.get = function() {
1847
1850
  return (this.currentThisScope().flags & wt) > 0;
1848
- }, F.treatFunctionsAsVar.get = function() {
1851
+ }, I.treatFunctionsAsVar.get = function() {
1849
1852
  return this.treatFunctionsAsVarInScope(this.currentScope());
1850
- }, F.allowNewDotTarget.get = function() {
1853
+ }, I.allowNewDotTarget.get = function() {
1851
1854
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
1852
1855
  var t = this.scopeStack[e].flags;
1853
1856
  if (t & (Tt | Et) || t & vt && !(t & xt)) return !0;
1854
1857
  }
1855
1858
  return !1;
1856
- }, F.allowUsing.get = function() {
1859
+ }, I.allowUsing.get = function() {
1857
1860
  var e = this.currentScope().flags;
1858
1861
  return !(e & Dt || !this.inModule && e & _t);
1859
- }, F.inClassStaticBlock.get = function() {
1862
+ }, I.inClassStaticBlock.get = function() {
1860
1863
  return (this.currentVarScope().flags & Tt) > 0;
1861
- }, P.extend = function() {
1864
+ }, F.extend = function() {
1862
1865
  for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
1863
1866
  for (var n = this, r = 0; r < e.length; r++) n = e[r](n);
1864
1867
  return n;
1865
- }, P.parse = function(e, t) {
1868
+ }, F.parse = function(e, t) {
1866
1869
  return new this(t, e).parse();
1867
- }, P.parseExpressionAt = function(e, t, n) {
1870
+ }, F.parseExpressionAt = function(e, t, n) {
1868
1871
  var r = new this(n, e, t);
1869
1872
  return r.nextToken(), r.parseExpression();
1870
- }, P.tokenizer = function(e, t) {
1873
+ }, F.tokenizer = function(e, t) {
1871
1874
  return new this(t, e);
1872
- }, Object.defineProperties(P.prototype, F);
1873
- var I = P.prototype, It = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1874
- I.strictDirective = function(e) {
1875
+ }, Object.defineProperties(F.prototype, I);
1876
+ var L = F.prototype, It = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1877
+ L.strictDirective = function(e) {
1875
1878
  if (this.options.ecmaVersion < 5) return !1;
1876
1879
  for (;;) {
1877
- N.lastIndex = e, e += N.exec(this.input)[0].length;
1880
+ P.lastIndex = e, e += P.exec(this.input)[0].length;
1878
1881
  var t = It.exec(this.input.slice(e));
1879
1882
  if (!t) return !1;
1880
1883
  if ((t[1] || t[2]) === "use strict") {
1881
- N.lastIndex = e + t[0].length;
1882
- var n = N.exec(this.input), r = n.index + n[0].length, i = this.input.charAt(r);
1883
- return i === ";" || i === "}" || M.test(n[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(i) || i === "!" && this.input.charAt(r + 1) === "=");
1884
+ P.lastIndex = e + t[0].length;
1885
+ var n = P.exec(this.input), r = n.index + n[0].length, i = this.input.charAt(r);
1886
+ return i === ";" || i === "}" || N.test(n[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(i) || i === "!" && this.input.charAt(r + 1) === "=");
1884
1887
  }
1885
- e += t[0].length, N.lastIndex = e, e += N.exec(this.input)[0].length, this.input[e] === ";" && e++;
1888
+ e += t[0].length, P.lastIndex = e, e += P.exec(this.input)[0].length, this.input[e] === ";" && e++;
1886
1889
  }
1887
- }, I.eat = function(e) {
1890
+ }, L.eat = function(e) {
1888
1891
  return this.type === e ? (this.next(), !0) : !1;
1889
- }, I.isContextual = function(e) {
1890
- return this.type === j.name && this.value === e && !this.containsEsc;
1891
- }, I.eatContextual = function(e) {
1892
+ }, L.isContextual = function(e) {
1893
+ return this.type === M.name && this.value === e && !this.containsEsc;
1894
+ }, L.eatContextual = function(e) {
1892
1895
  return this.isContextual(e) ? (this.next(), !0) : !1;
1893
- }, I.catchStackOverflow = function(e) {
1896
+ }, L.catchStackOverflow = function(e) {
1894
1897
  try {
1895
1898
  return e();
1896
1899
  } catch (e) {
1897
1900
  if (e instanceof Error && (/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message) || /\btoo much recursion\b/i.test(e.message))) this.raise(this.start, "Not enough stack space to parse input");
1898
1901
  else throw e;
1899
1902
  }
1900
- }, I.expectContextual = function(e) {
1903
+ }, L.expectContextual = function(e) {
1901
1904
  this.eatContextual(e) || this.unexpected();
1902
- }, I.canInsertSemicolon = function() {
1903
- return this.type === j.eof || this.type === j.braceR || M.test(this.input.slice(this.lastTokEnd, this.start));
1904
- }, I.insertSemicolon = function() {
1905
+ }, L.canInsertSemicolon = function() {
1906
+ return this.type === M.eof || this.type === M.braceR || N.test(this.input.slice(this.lastTokEnd, this.start));
1907
+ }, L.insertSemicolon = function() {
1905
1908
  if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
1906
- }, I.semicolon = function() {
1907
- !this.eat(j.semi) && !this.insertSemicolon() && this.unexpected();
1908
- }, I.afterTrailingComma = function(e, t) {
1909
+ }, L.semicolon = function() {
1910
+ !this.eat(M.semi) && !this.insertSemicolon() && this.unexpected();
1911
+ }, L.afterTrailingComma = function(e, t) {
1909
1912
  if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
1910
- }, I.expect = function(e) {
1913
+ }, L.expect = function(e) {
1911
1914
  this.eat(e) || this.unexpected();
1912
- }, I.unexpected = function(e) {
1915
+ }, L.unexpected = function(e) {
1913
1916
  this.raise(e ?? this.start, "Unexpected token");
1914
1917
  };
1915
1918
  var Lt = function() {
1916
1919
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
1917
1920
  };
1918
- I.checkPatternErrors = function(e, t) {
1921
+ L.checkPatternErrors = function(e, t) {
1919
1922
  if (e) {
1920
1923
  e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
1921
1924
  var n = t ? e.parenthesizedAssign : e.parenthesizedBind;
1922
1925
  n > -1 && this.raiseRecoverable(n, t ? "Assigning to rvalue" : "Parenthesized pattern");
1923
1926
  }
1924
- }, I.checkExpressionErrors = function(e, t) {
1927
+ }, L.checkExpressionErrors = function(e, t) {
1925
1928
  if (!e) return !1;
1926
1929
  var n = e.shorthandAssign, r = e.doubleProto;
1927
1930
  if (!t) return n >= 0 || r >= 0;
1928
1931
  n >= 0 && this.raise(n, "Shorthand property assignments are valid only in destructuring patterns"), r >= 0 && this.raiseRecoverable(r, "Redefinition of __proto__ property");
1929
- }, I.checkYieldAwaitInDefaultParams = function() {
1932
+ }, L.checkYieldAwaitInDefaultParams = function() {
1930
1933
  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");
1931
- }, I.isSimpleAssignTarget = function(e) {
1934
+ }, L.isSimpleAssignTarget = function(e) {
1932
1935
  return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
1933
1936
  };
1934
- var L = P.prototype;
1935
- L.parseTopLevel = function(e) {
1937
+ var R = F.prototype;
1938
+ R.parseTopLevel = function(e) {
1936
1939
  var t = Object.create(null);
1937
- for (e.body ||= []; this.type !== j.eof;) {
1940
+ for (e.body ||= []; this.type !== M.eof;) {
1938
1941
  var n = this.parseStatement(null, !0, t);
1939
1942
  e.body.push(n);
1940
1943
  }
@@ -1945,14 +1948,14 @@ L.parseTopLevel = function(e) {
1945
1948
  return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(e, "Program");
1946
1949
  };
1947
1950
  var Rt = { kind: "loop" }, zt = { kind: "switch" };
1948
- L.isLet = function(e) {
1951
+ R.isLet = function(e) {
1949
1952
  if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
1950
- N.lastIndex = this.pos;
1951
- var t = N.exec(this.input), n = this.pos + t[0].length, r = this.fullCharCodeAt(n);
1953
+ P.lastIndex = this.pos;
1954
+ var t = P.exec(this.input), n = this.pos + t[0].length, r = this.fullCharCodeAt(n);
1952
1955
  if (r === 91 || r === 92) return !0;
1953
1956
  if (e) return !1;
1954
1957
  if (r === 123) return !0;
1955
- if (T(r)) {
1958
+ if (E(r)) {
1956
1959
  var i = n;
1957
1960
  do
1958
1961
  n += r <= 65535 ? 1 : 2;
@@ -1962,25 +1965,25 @@ L.isLet = function(e) {
1962
1965
  if (!Ge.test(a)) return !0;
1963
1966
  }
1964
1967
  return !1;
1965
- }, L.isAsyncFunction = function() {
1968
+ }, R.isAsyncFunction = function() {
1966
1969
  if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1;
1967
- N.lastIndex = this.pos;
1968
- var e = N.exec(this.input), t = this.pos + e[0].length, n;
1969
- return !M.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Ye(n = this.fullCharCodeAt(t + 8)) || n === 92));
1970
- }, L.isUsingKeyword = function(e, t) {
1970
+ P.lastIndex = this.pos;
1971
+ var e = P.exec(this.input), t = this.pos + e[0].length, n;
1972
+ return !N.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Ye(n = this.fullCharCodeAt(t + 8)) || n === 92));
1973
+ }, R.isUsingKeyword = function(e, t) {
1971
1974
  if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return !1;
1972
- N.lastIndex = this.pos;
1973
- var n = N.exec(this.input), r = this.pos + n[0].length;
1974
- if (M.test(this.input.slice(this.pos, r))) return !1;
1975
+ P.lastIndex = this.pos;
1976
+ var n = P.exec(this.input), r = this.pos + n[0].length;
1977
+ if (N.test(this.input.slice(this.pos, r))) return !1;
1975
1978
  if (e) {
1976
1979
  var i = r + 5, a;
1977
1980
  if (this.input.slice(r, i) !== "using" || i === this.input.length || Ye(a = this.fullCharCodeAt(i)) || a === 92) return !1;
1978
- N.lastIndex = i;
1979
- var o = N.exec(this.input);
1980
- if (r = i + o[0].length, o && M.test(this.input.slice(i, r))) return !1;
1981
+ P.lastIndex = i;
1982
+ var o = P.exec(this.input);
1983
+ if (r = i + o[0].length, o && N.test(this.input.slice(i, r))) return !1;
1981
1984
  }
1982
1985
  var s = this.fullCharCodeAt(r);
1983
- if (!T(s) && s !== 92) return !1;
1986
+ if (!E(s) && s !== 92) return !1;
1984
1987
  var c = r;
1985
1988
  do
1986
1989
  r += s <= 65535 ? 1 : 2;
@@ -1989,69 +1992,69 @@ L.isLet = function(e) {
1989
1992
  var l = this.input.slice(c, r);
1990
1993
  if (Ge.test(l)) return !1;
1991
1994
  if (t && !e && l === "of") {
1992
- N.lastIndex = r;
1993
- var u = N.exec(this.input);
1995
+ P.lastIndex = r;
1996
+ var u = P.exec(this.input);
1994
1997
  if (r += u[0].length, this.input.charCodeAt(r) !== 61 || (s = this.input.charCodeAt(r + 1)) === 61 || s === 62) return !1;
1995
1998
  }
1996
1999
  return !0;
1997
- }, L.isAwaitUsing = function(e) {
2000
+ }, R.isAwaitUsing = function(e) {
1998
2001
  return this.isUsingKeyword(!0, e);
1999
- }, L.isUsing = function(e) {
2002
+ }, R.isUsing = function(e) {
2000
2003
  return this.isUsingKeyword(!1, e);
2001
- }, L.parseStatement = function(e, t, n) {
2004
+ }, R.parseStatement = function(e, t, n) {
2002
2005
  var r = this.type, i = this.startNode(), a;
2003
- switch (this.isLet(e) && (r = j._var, a = "let"), r) {
2004
- case j._break:
2005
- case j._continue: return this.parseBreakContinueStatement(i, r.keyword);
2006
- case j._debugger: return this.parseDebuggerStatement(i);
2007
- case j._do: return this.parseDoStatement(i);
2008
- case j._for: return this.parseForStatement(i);
2009
- case j._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(i, !1, !e);
2010
- case j._class: return e && this.unexpected(), this.parseClass(i, !0);
2011
- case j._if: return this.parseIfStatement(i);
2012
- case j._return: return this.parseReturnStatement(i);
2013
- case j._switch: return this.parseSwitchStatement(i);
2014
- case j._throw: return this.parseThrowStatement(i);
2015
- case j._try: return this.parseTryStatement(i);
2016
- case j._const:
2017
- case j._var: return a ||= this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(i, a);
2018
- case j._while: return this.parseWhileStatement(i);
2019
- case j._with: return this.parseWithStatement(i);
2020
- case j.braceL: return this.parseBlock(!0, i);
2021
- case j.semi: return this.parseEmptyStatement(i);
2022
- case j._export:
2023
- case j._import:
2024
- if (this.options.ecmaVersion > 10 && r === j._import) {
2025
- N.lastIndex = this.pos;
2026
- var o = N.exec(this.input), s = this.pos + o[0].length, c = this.input.charCodeAt(s);
2006
+ switch (this.isLet(e) && (r = M._var, a = "let"), r) {
2007
+ case M._break:
2008
+ case M._continue: return this.parseBreakContinueStatement(i, r.keyword);
2009
+ case M._debugger: return this.parseDebuggerStatement(i);
2010
+ case M._do: return this.parseDoStatement(i);
2011
+ case M._for: return this.parseForStatement(i);
2012
+ case M._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(i, !1, !e);
2013
+ case M._class: return e && this.unexpected(), this.parseClass(i, !0);
2014
+ case M._if: return this.parseIfStatement(i);
2015
+ case M._return: return this.parseReturnStatement(i);
2016
+ case M._switch: return this.parseSwitchStatement(i);
2017
+ case M._throw: return this.parseThrowStatement(i);
2018
+ case M._try: return this.parseTryStatement(i);
2019
+ case M._const:
2020
+ case M._var: return a ||= this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(i, a);
2021
+ case M._while: return this.parseWhileStatement(i);
2022
+ case M._with: return this.parseWithStatement(i);
2023
+ case M.braceL: return this.parseBlock(!0, i);
2024
+ case M.semi: return this.parseEmptyStatement(i);
2025
+ case M._export:
2026
+ case M._import:
2027
+ if (this.options.ecmaVersion > 10 && r === M._import) {
2028
+ P.lastIndex = this.pos;
2029
+ var o = P.exec(this.input), s = this.pos + o[0].length, c = this.input.charCodeAt(s);
2027
2030
  if (c === 40 || c === 46) return this.parseExpressionStatement(i, this.parseExpression());
2028
2031
  }
2029
- return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), r === j._import ? this.parseImport(i) : this.parseExport(i, n);
2032
+ return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), r === M._import ? this.parseImport(i) : this.parseExport(i, n);
2030
2033
  default:
2031
2034
  if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(i, !0, !e);
2032
2035
  var l = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
2033
2036
  if (l) return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), e && this.raise(this.start, "Using declaration is not allowed in single-statement positions"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(i, !1, l), this.semicolon(), this.finishNode(i, "VariableDeclaration");
2034
2037
  var u = this.value, d = this.parseExpression();
2035
- return r === j.name && d.type === "Identifier" && this.eat(j.colon) ? this.parseLabeledStatement(i, u, d, e) : this.parseExpressionStatement(i, d);
2038
+ return r === M.name && d.type === "Identifier" && this.eat(M.colon) ? this.parseLabeledStatement(i, u, d, e) : this.parseExpressionStatement(i, d);
2036
2039
  }
2037
- }, L.parseBreakContinueStatement = function(e, t) {
2040
+ }, R.parseBreakContinueStatement = function(e, t) {
2038
2041
  var n = t === "break";
2039
- this.next(), this.eat(j.semi) || this.insertSemicolon() ? e.label = null : this.type === j.name ? (e.label = this.parseIdent(), this.semicolon()) : this.unexpected();
2042
+ this.next(), this.eat(M.semi) || this.insertSemicolon() ? e.label = null : this.type === M.name ? (e.label = this.parseIdent(), this.semicolon()) : this.unexpected();
2040
2043
  for (var r = 0; r < this.labels.length; ++r) {
2041
2044
  var i = this.labels[r];
2042
2045
  if ((e.label == null || i.name === e.label.name) && (i.kind != null && (n || i.kind === "loop") || e.label && n)) break;
2043
2046
  }
2044
2047
  return r === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, n ? "BreakStatement" : "ContinueStatement");
2045
- }, L.parseDebuggerStatement = function(e) {
2048
+ }, R.parseDebuggerStatement = function(e) {
2046
2049
  return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
2047
- }, L.parseDoStatement = function(e) {
2048
- return this.next(), this.labels.push(Rt), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(j._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(j.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
2049
- }, L.parseForStatement = function(e) {
2050
+ }, R.parseDoStatement = function(e) {
2051
+ return this.next(), this.labels.push(Rt), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(M._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(M.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
2052
+ }, R.parseForStatement = function(e) {
2050
2053
  this.next();
2051
2054
  var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
2052
- if (this.labels.push(Rt), this.enterScope(0), this.expect(j.parenL), this.type === j.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
2055
+ if (this.labels.push(Rt), this.enterScope(0), this.expect(M.parenL), this.type === M.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
2053
2056
  var n = this.isLet();
2054
- if (this.type === j._var || this.type === j._const || n) {
2057
+ if (this.type === M._var || this.type === M._const || n) {
2055
2058
  var r = this.startNode(), i = n ? "let" : this.value;
2056
2059
  return this.next(), this.parseVar(r, !0, i), this.finishNode(r, "VariableDeclaration"), this.parseForAfterInit(e, r, t);
2057
2060
  }
@@ -2061,46 +2064,46 @@ L.isLet = function(e) {
2061
2064
  return this.next(), s === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.parseVar(c, !0, s), this.finishNode(c, "VariableDeclaration"), this.parseForAfterInit(e, c, t);
2062
2065
  }
2063
2066
  var l = this.containsEsc, u = new Lt(), d = this.start, f = t > -1 ? this.parseExprSubscripts(u, "await") : this.parseExpression(!0, u);
2064
- return this.type === j._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === j._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (f.start === d && !l && f.type === "Identifier" && f.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), a && o && this.raise(f.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(f, !1, u), this.checkLValPattern(f), this.parseForIn(e, f)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, f));
2065
- }, L.parseForAfterInit = function(e, t, n) {
2066
- return (this.type === j._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === j._in ? ((t.kind === "using" || t.kind === "await using") && !t.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && n > -1 && this.unexpected(n)) : this.options.ecmaVersion >= 9 && (e.await = n > -1), this.parseForIn(e, t)) : (n > -1 && this.unexpected(n), this.parseFor(e, t));
2067
- }, L.parseFunctionStatement = function(e, t, n) {
2067
+ return this.type === M._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === M._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (f.start === d && !l && f.type === "Identifier" && f.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), a && o && this.raise(f.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(f, !1, u), this.checkLValPattern(f), this.parseForIn(e, f)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, f));
2068
+ }, R.parseForAfterInit = function(e, t, n) {
2069
+ return (this.type === M._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === M._in ? ((t.kind === "using" || t.kind === "await using") && !t.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && n > -1 && this.unexpected(n)) : this.options.ecmaVersion >= 9 && (e.await = n > -1), this.parseForIn(e, t)) : (n > -1 && this.unexpected(n), this.parseFor(e, t));
2070
+ }, R.parseFunctionStatement = function(e, t, n) {
2068
2071
  return this.next(), this.parseFunction(e, Vt | (n ? 0 : Ht), !1, t);
2069
- }, L.parseIfStatement = function(e) {
2070
- return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(j._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
2071
- }, L.parseReturnStatement = function(e) {
2072
- return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(j.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
2073
- }, L.parseSwitchStatement = function(e) {
2074
- this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(j.braceL), this.labels.push(zt), this.enterScope(Dt);
2075
- for (var t, n = !1; this.type !== j.braceR;) if (this.type === j._case || this.type === j._default) {
2076
- var r = this.type === j._case;
2077
- t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), r ? t.test = this.parseExpression() : (n && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), n = !0, t.test = null), this.expect(j.colon);
2072
+ }, R.parseIfStatement = function(e) {
2073
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(M._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
2074
+ }, R.parseReturnStatement = function(e) {
2075
+ return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(M.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
2076
+ }, R.parseSwitchStatement = function(e) {
2077
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(M.braceL), this.labels.push(zt), this.enterScope(Dt);
2078
+ for (var t, n = !1; this.type !== M.braceR;) if (this.type === M._case || this.type === M._default) {
2079
+ var r = this.type === M._case;
2080
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), r ? t.test = this.parseExpression() : (n && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), n = !0, t.test = null), this.expect(M.colon);
2078
2081
  } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
2079
2082
  return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
2080
- }, L.parseThrowStatement = function(e) {
2081
- return this.next(), M.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
2083
+ }, R.parseThrowStatement = function(e) {
2084
+ return this.next(), N.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
2082
2085
  };
2083
2086
  var Bt = [];
2084
- L.parseCatchClauseParam = function() {
2087
+ R.parseCatchClauseParam = function() {
2085
2088
  var e = this.parseBindingAtom(), t = e.type === "Identifier";
2086
- return this.enterScope(t ? St : 0), this.checkLValPattern(e, t ? Pt : Mt), this.expect(j.parenR), e;
2087
- }, L.parseTryStatement = function(e) {
2088
- if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === j._catch) {
2089
+ return this.enterScope(t ? St : 0), this.checkLValPattern(e, t ? Pt : Mt), this.expect(M.parenR), e;
2090
+ }, R.parseTryStatement = function(e) {
2091
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === M._catch) {
2089
2092
  var t = this.startNode();
2090
- this.next(), this.eat(j.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
2093
+ this.next(), this.eat(M.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
2091
2094
  }
2092
- return e.finalizer = this.eat(j._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
2093
- }, L.parseVarStatement = function(e, t, n) {
2095
+ return e.finalizer = this.eat(M._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
2096
+ }, R.parseVarStatement = function(e, t, n) {
2094
2097
  return this.next(), this.parseVar(e, !1, t, n), this.semicolon(), this.finishNode(e, "VariableDeclaration");
2095
- }, L.parseWhileStatement = function(e) {
2098
+ }, R.parseWhileStatement = function(e) {
2096
2099
  return this.next(), e.test = this.parseParenExpression(), this.labels.push(Rt), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
2097
- }, L.parseWithStatement = function(e) {
2100
+ }, R.parseWithStatement = function(e) {
2098
2101
  return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
2099
- }, L.parseEmptyStatement = function(e) {
2102
+ }, R.parseEmptyStatement = function(e) {
2100
2103
  return this.next(), this.finishNode(e, "EmptyStatement");
2101
- }, L.parseLabeledStatement = function(e, t, n, r) {
2104
+ }, R.parseLabeledStatement = function(e, t, n, r) {
2102
2105
  for (var i = 0, a = this.labels; i < a.length; i += 1) a[i].name === t && this.raise(n.start, "Label '" + t + "' is already declared");
2103
- for (var o = this.type.isLoop ? "loop" : this.type === j._switch ? "switch" : null, s = this.labels.length - 1; s >= 0; s--) {
2106
+ for (var o = this.type.isLoop ? "loop" : this.type === M._switch ? "switch" : null, s = this.labels.length - 1; s >= 0; s--) {
2104
2107
  var c = this.labels[s];
2105
2108
  if (c.statementStart === e.start) c.statementStart = this.start, c.kind = o;
2106
2109
  else break;
@@ -2110,91 +2113,91 @@ L.parseCatchClauseParam = function() {
2110
2113
  kind: o,
2111
2114
  statementStart: this.start
2112
2115
  }), e.body = this.parseStatement(r ? r.indexOf("label") === -1 ? r + "label" : r : "label"), this.labels.pop(), e.label = n, this.finishNode(e, "LabeledStatement");
2113
- }, L.parseExpressionStatement = function(e, t) {
2116
+ }, R.parseExpressionStatement = function(e, t) {
2114
2117
  return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
2115
- }, L.parseBlock = function(e, t, n) {
2116
- for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(j.braceL), e && this.enterScope(0); this.type !== j.braceR;) {
2118
+ }, R.parseBlock = function(e, t, n) {
2119
+ for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(M.braceL), e && this.enterScope(0); this.type !== M.braceR;) {
2117
2120
  var r = this.parseStatement(null);
2118
2121
  t.body.push(r);
2119
2122
  }
2120
2123
  return n && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
2121
- }, L.parseFor = function(e, t) {
2122
- return e.init = t, this.expect(j.semi), e.test = this.type === j.semi ? null : this.parseExpression(), this.expect(j.semi), e.update = this.type === j.parenR ? null : this.parseExpression(), this.expect(j.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
2123
- }, L.parseForIn = function(e, t) {
2124
- var n = this.type === j._in;
2125
- return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!n || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (n ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = n ? this.parseExpression() : this.parseMaybeAssign(), this.expect(j.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, n ? "ForInStatement" : "ForOfStatement");
2126
- }, L.parseVar = function(e, t, n, r) {
2124
+ }, R.parseFor = function(e, t) {
2125
+ return e.init = t, this.expect(M.semi), e.test = this.type === M.semi ? null : this.parseExpression(), this.expect(M.semi), e.update = this.type === M.parenR ? null : this.parseExpression(), this.expect(M.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
2126
+ }, R.parseForIn = function(e, t) {
2127
+ var n = this.type === M._in;
2128
+ return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!n || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (n ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = n ? this.parseExpression() : this.parseMaybeAssign(), this.expect(M.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, n ? "ForInStatement" : "ForOfStatement");
2129
+ }, R.parseVar = function(e, t, n, r) {
2127
2130
  for (e.declarations = [], e.kind = n;;) {
2128
2131
  var i = this.startNode();
2129
- if (this.parseVarId(i, n), this.eat(j.eq) ? i.init = this.parseMaybeAssign(t) : !r && n === "const" && !(this.type === j._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (n === "using" || n === "await using") && this.options.ecmaVersion >= 17 && this.type !== j._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + n + " declaration") : !r && i.id.type !== "Identifier" && !(t && (this.type === j._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : i.init = null, e.declarations.push(this.finishNode(i, "VariableDeclarator")), !this.eat(j.comma)) break;
2132
+ if (this.parseVarId(i, n), this.eat(M.eq) ? i.init = this.parseMaybeAssign(t) : !r && n === "const" && !(this.type === M._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (n === "using" || n === "await using") && this.options.ecmaVersion >= 17 && this.type !== M._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + n + " declaration") : !r && i.id.type !== "Identifier" && !(t && (this.type === M._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : i.init = null, e.declarations.push(this.finishNode(i, "VariableDeclarator")), !this.eat(M.comma)) break;
2130
2133
  }
2131
2134
  return e;
2132
- }, L.parseVarId = function(e, t) {
2135
+ }, R.parseVarId = function(e, t) {
2133
2136
  e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? jt : Mt, !1);
2134
2137
  };
2135
2138
  var Vt = 1, Ht = 2, Ut = 4;
2136
- L.parseFunction = function(e, t, n, r, i) {
2137
- this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === j.star && t & Ht && this.unexpected(), e.generator = this.eat(j.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Vt && (e.id = t & Ut && this.type !== j.name ? null : this.parseIdent(), e.id && !(t & Ht) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? jt : Mt : Nt));
2139
+ R.parseFunction = function(e, t, n, r, i) {
2140
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === M.star && t & Ht && this.unexpected(), e.generator = this.eat(M.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Vt && (e.id = t & Ut && this.type !== M.name ? null : this.parseIdent(), e.id && !(t & Ht) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? jt : Mt : Nt));
2138
2141
  var a = this.yieldPos, o = this.awaitPos, s = this.awaitIdentPos;
2139
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(kt(e.async, e.generator)), t & Vt || (e.id = this.type === j.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, n, !1, i), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = s, this.finishNode(e, t & Vt ? "FunctionDeclaration" : "FunctionExpression");
2140
- }, L.parseFunctionParams = function(e) {
2141
- this.expect(j.parenL), e.params = this.parseBindingList(j.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
2142
- }, L.parseClass = function(e, t) {
2142
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(kt(e.async, e.generator)), t & Vt || (e.id = this.type === M.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, n, !1, i), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = s, this.finishNode(e, t & Vt ? "FunctionDeclaration" : "FunctionExpression");
2143
+ }, R.parseFunctionParams = function(e) {
2144
+ this.expect(M.parenL), e.params = this.parseBindingList(M.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
2145
+ }, R.parseClass = function(e, t) {
2143
2146
  this.next();
2144
2147
  var n = this.strict;
2145
2148
  this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
2146
2149
  var r = this.enterClassBody(), i = this.startNode(), a = !1;
2147
- for (i.body = [], this.expect(j.braceL); this.type !== j.braceR;) {
2150
+ for (i.body = [], this.expect(M.braceL); this.type !== M.braceR;) {
2148
2151
  var o = this.parseClassElement(e.superClass !== null);
2149
2152
  o && (i.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (a && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), a = !0) : o.key && o.key.type === "PrivateIdentifier" && Wt(r, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
2150
2153
  }
2151
2154
  return this.strict = n, this.next(), e.body = this.finishNode(i, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
2152
- }, L.parseClassElement = function(e) {
2153
- if (this.eat(j.semi)) return null;
2155
+ }, R.parseClassElement = function(e) {
2156
+ if (this.eat(M.semi)) return null;
2154
2157
  var t = this.options.ecmaVersion, n = this.startNode(), r = "", i = !1, a = !1, o = "method", s = !1;
2155
2158
  if (this.eatContextual("static")) {
2156
- if (t >= 13 && this.eat(j.braceL)) return this.parseClassStaticBlock(n), n;
2157
- this.isClassElementNameStart() || this.type === j.star ? s = !0 : r = "static";
2159
+ if (t >= 13 && this.eat(M.braceL)) return this.parseClassStaticBlock(n), n;
2160
+ this.isClassElementNameStart() || this.type === M.star ? s = !0 : r = "static";
2158
2161
  }
2159
- if (n.static = s, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === j.star) && !this.canInsertSemicolon() ? a = !0 : r = "async"), !r && (t >= 9 || !a) && this.eat(j.star) && (i = !0), !r && !a && !i) {
2162
+ if (n.static = s, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === M.star) && !this.canInsertSemicolon() ? a = !0 : r = "async"), !r && (t >= 9 || !a) && this.eat(M.star) && (i = !0), !r && !a && !i) {
2160
2163
  var c = this.value;
2161
2164
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = c : r = c);
2162
2165
  }
2163
- if (r ? (n.computed = !1, n.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), n.key.name = r, this.finishNode(n.key, "Identifier")) : this.parseClassElementName(n), t < 13 || this.type === j.parenL || o !== "method" || i || a) {
2166
+ if (r ? (n.computed = !1, n.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), n.key.name = r, this.finishNode(n.key, "Identifier")) : this.parseClassElementName(n), t < 13 || this.type === M.parenL || o !== "method" || i || a) {
2164
2167
  var l = !n.static && Gt(n, "constructor"), u = l && e;
2165
2168
  l && o !== "method" && this.raise(n.key.start, "Constructor can't have get/set modifier"), n.kind = l ? "constructor" : o, this.parseClassMethod(n, i, a, u);
2166
2169
  } else this.parseClassField(n);
2167
2170
  return n;
2168
- }, L.isClassElementNameStart = function() {
2169
- return this.type === j.name || this.type === j.privateId || this.type === j.num || this.type === j.string || this.type === j.bracketL || this.type.keyword;
2170
- }, L.parseClassElementName = function(e) {
2171
- this.type === j.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
2172
- }, L.parseClassMethod = function(e, t, n, r) {
2171
+ }, R.isClassElementNameStart = function() {
2172
+ return this.type === M.name || this.type === M.privateId || this.type === M.num || this.type === M.string || this.type === M.bracketL || this.type.keyword;
2173
+ }, R.parseClassElementName = function(e) {
2174
+ this.type === M.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
2175
+ }, R.parseClassMethod = function(e, t, n, r) {
2173
2176
  var i = e.key;
2174
2177
  e.kind === "constructor" ? (t && this.raise(i.start, "Constructor can't be a generator"), n && this.raise(i.start, "Constructor can't be an async method")) : e.static && Gt(e, "prototype") && this.raise(i.start, "Classes may not have a static property named prototype");
2175
2178
  var a = e.value = this.parseMethod(t, n, r);
2176
2179
  return e.kind === "get" && a.params.length !== 0 && this.raiseRecoverable(a.start, "getter should have no params"), e.kind === "set" && a.params.length !== 1 && this.raiseRecoverable(a.start, "setter should have exactly one param"), e.kind === "set" && a.params[0].type === "RestElement" && this.raiseRecoverable(a.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
2177
- }, L.parseClassField = function(e) {
2178
- return Gt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Gt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(j.eq) ? (this.enterScope(Et | Ct), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
2179
- }, L.parseClassStaticBlock = function(e) {
2180
+ }, R.parseClassField = function(e) {
2181
+ return Gt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Gt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(M.eq) ? (this.enterScope(Et | Ct), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
2182
+ }, R.parseClassStaticBlock = function(e) {
2180
2183
  e.body = [];
2181
2184
  var t = this.labels;
2182
- for (this.labels = [], this.enterScope(Tt | Ct); this.type !== j.braceR;) {
2185
+ for (this.labels = [], this.enterScope(Tt | Ct); this.type !== M.braceR;) {
2183
2186
  var n = this.parseStatement(null);
2184
2187
  e.body.push(n);
2185
2188
  }
2186
2189
  return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
2187
- }, L.parseClassId = function(e, t) {
2188
- this.type === j.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, Mt, !1)) : (t === !0 && this.unexpected(), e.id = null);
2189
- }, L.parseClassSuper = function(e) {
2190
- e.superClass = this.eat(j._extends) ? this.parseExprSubscripts(null, !1) : null;
2191
- }, L.enterClassBody = function() {
2190
+ }, R.parseClassId = function(e, t) {
2191
+ this.type === M.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, Mt, !1)) : (t === !0 && this.unexpected(), e.id = null);
2192
+ }, R.parseClassSuper = function(e) {
2193
+ e.superClass = this.eat(M._extends) ? this.parseExprSubscripts(null, !1) : null;
2194
+ }, R.enterClassBody = function() {
2192
2195
  var e = {
2193
2196
  declared: Object.create(null),
2194
2197
  used: []
2195
2198
  };
2196
2199
  return this.privateNameStack.push(e), e.declared;
2197
- }, L.exitClassBody = function() {
2200
+ }, R.exitClassBody = function() {
2198
2201
  var e = this.privateNameStack.pop(), t = e.declared, n = e.used;
2199
2202
  if (this.options.checkPrivateFields) for (var r = this.privateNameStack.length, i = r === 0 ? null : this.privateNameStack[r - 1], a = 0; a < n.length; ++a) {
2200
2203
  var o = n[a];
@@ -2209,14 +2212,14 @@ function Gt(e, t) {
2209
2212
  var n = e.computed, r = e.key;
2210
2213
  return !n && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
2211
2214
  }
2212
- L.parseExportAllDeclaration = function(e, t) {
2213
- return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== j.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
2214
- }, L.parseExport = function(e, t) {
2215
- if (this.next(), this.eat(j.star)) return this.parseExportAllDeclaration(e, t);
2216
- if (this.eat(j._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
2215
+ R.parseExportAllDeclaration = function(e, t) {
2216
+ return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== M.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
2217
+ }, R.parseExport = function(e, t) {
2218
+ if (this.next(), this.eat(M.star)) return this.parseExportAllDeclaration(e, t);
2219
+ if (this.eat(M._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
2217
2220
  if (this.shouldParseExportStatement()) e.declaration = this.parseExportDeclaration(e), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.declarations) : this.checkExport(t, e.declaration.id, e.declaration.id.start), e.specifiers = [], e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
2218
2221
  else {
2219
- if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== j.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
2222
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== M.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
2220
2223
  else {
2221
2224
  for (var n = 0, r = e.specifiers; n < r.length; n += 1) {
2222
2225
  var i = r[n];
@@ -2227,23 +2230,23 @@ L.parseExportAllDeclaration = function(e, t) {
2227
2230
  this.semicolon();
2228
2231
  }
2229
2232
  return this.finishNode(e, "ExportNamedDeclaration");
2230
- }, L.parseExportDeclaration = function(e) {
2233
+ }, R.parseExportDeclaration = function(e) {
2231
2234
  return this.parseStatement(null);
2232
- }, L.parseExportDefaultDeclaration = function() {
2235
+ }, R.parseExportDefaultDeclaration = function() {
2233
2236
  var e;
2234
- if (this.type === j._function || (e = this.isAsyncFunction())) {
2237
+ if (this.type === M._function || (e = this.isAsyncFunction())) {
2235
2238
  var t = this.startNode();
2236
2239
  return this.next(), e && this.next(), this.parseFunction(t, Vt | Ut, !1, e);
2237
- } else if (this.type === j._class) {
2240
+ } else if (this.type === M._class) {
2238
2241
  var n = this.startNode();
2239
2242
  return this.parseClass(n, "nullableID");
2240
2243
  } else {
2241
2244
  var r = this.parseMaybeAssign();
2242
2245
  return this.semicolon(), r;
2243
2246
  }
2244
- }, L.checkExport = function(e, t, n) {
2247
+ }, R.checkExport = function(e, t, n) {
2245
2248
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), it(e, t) && this.raiseRecoverable(n, "Duplicate export '" + t + "'"), e[t] = !0);
2246
- }, L.checkPatternExport = function(e, t) {
2249
+ }, R.checkPatternExport = function(e, t) {
2247
2250
  var n = t.type;
2248
2251
  if (n === "Identifier") this.checkExport(e, t, t.start);
2249
2252
  else if (n === "ObjectPattern") for (var r = 0, i = t.properties; r < i.length; r += 1) {
@@ -2255,72 +2258,72 @@ L.parseExportAllDeclaration = function(e, t) {
2255
2258
  c && this.checkPatternExport(e, c);
2256
2259
  }
2257
2260
  else n === "Property" ? this.checkPatternExport(e, t.value) : n === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : n === "RestElement" && this.checkPatternExport(e, t.argument);
2258
- }, L.checkVariableExport = function(e, t) {
2261
+ }, R.checkVariableExport = function(e, t) {
2259
2262
  if (e) for (var n = 0, r = t; n < r.length; n += 1) {
2260
2263
  var i = r[n];
2261
2264
  this.checkPatternExport(e, i.id);
2262
2265
  }
2263
- }, L.shouldParseExportStatement = function() {
2266
+ }, R.shouldParseExportStatement = function() {
2264
2267
  return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
2265
- }, L.parseExportSpecifier = function(e) {
2268
+ }, R.parseExportSpecifier = function(e) {
2266
2269
  var t = this.startNode();
2267
2270
  return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(e, t.exported, t.exported.start), this.finishNode(t, "ExportSpecifier");
2268
- }, L.parseExportSpecifiers = function(e) {
2271
+ }, R.parseExportSpecifiers = function(e) {
2269
2272
  var t = [], n = !0;
2270
- for (this.expect(j.braceL); !this.eat(j.braceR);) {
2273
+ for (this.expect(M.braceL); !this.eat(M.braceR);) {
2271
2274
  if (n) n = !1;
2272
- else if (this.expect(j.comma), this.afterTrailingComma(j.braceR)) break;
2275
+ else if (this.expect(M.comma), this.afterTrailingComma(M.braceR)) break;
2273
2276
  t.push(this.parseExportSpecifier(e));
2274
2277
  }
2275
2278
  return t;
2276
- }, L.parseImport = function(e) {
2277
- return this.next(), this.type === j.string ? (e.specifiers = Bt, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === j.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
2278
- }, L.parseImportSpecifier = function() {
2279
+ }, R.parseImport = function(e) {
2280
+ return this.next(), this.type === M.string ? (e.specifiers = Bt, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === M.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
2281
+ }, R.parseImportSpecifier = function() {
2279
2282
  var e = this.startNode();
2280
2283
  return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, Mt), this.finishNode(e, "ImportSpecifier");
2281
- }, L.parseImportDefaultSpecifier = function() {
2284
+ }, R.parseImportDefaultSpecifier = function() {
2282
2285
  var e = this.startNode();
2283
2286
  return e.local = this.parseIdent(), this.checkLValSimple(e.local, Mt), this.finishNode(e, "ImportDefaultSpecifier");
2284
- }, L.parseImportNamespaceSpecifier = function() {
2287
+ }, R.parseImportNamespaceSpecifier = function() {
2285
2288
  var e = this.startNode();
2286
2289
  return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, Mt), this.finishNode(e, "ImportNamespaceSpecifier");
2287
- }, L.parseImportSpecifiers = function() {
2290
+ }, R.parseImportSpecifiers = function() {
2288
2291
  var e = [], t = !0;
2289
- if (this.type === j.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(j.comma))) return e;
2290
- if (this.type === j.star) return e.push(this.parseImportNamespaceSpecifier()), e;
2291
- for (this.expect(j.braceL); !this.eat(j.braceR);) {
2292
+ if (this.type === M.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(M.comma))) return e;
2293
+ if (this.type === M.star) return e.push(this.parseImportNamespaceSpecifier()), e;
2294
+ for (this.expect(M.braceL); !this.eat(M.braceR);) {
2292
2295
  if (t) t = !1;
2293
- else if (this.expect(j.comma), this.afterTrailingComma(j.braceR)) break;
2296
+ else if (this.expect(M.comma), this.afterTrailingComma(M.braceR)) break;
2294
2297
  e.push(this.parseImportSpecifier());
2295
2298
  }
2296
2299
  return e;
2297
- }, L.parseWithClause = function() {
2300
+ }, R.parseWithClause = function() {
2298
2301
  var e = [];
2299
- if (!this.eat(j._with)) return e;
2300
- this.expect(j.braceL);
2301
- for (var t = {}, n = !0; !this.eat(j.braceR);) {
2302
+ if (!this.eat(M._with)) return e;
2303
+ this.expect(M.braceL);
2304
+ for (var t = {}, n = !0; !this.eat(M.braceR);) {
2302
2305
  if (n) n = !1;
2303
- else if (this.expect(j.comma), this.afterTrailingComma(j.braceR)) break;
2306
+ else if (this.expect(M.comma), this.afterTrailingComma(M.braceR)) break;
2304
2307
  var r = this.parseImportAttribute(), i = r.key.type === "Identifier" ? r.key.name : r.key.value;
2305
2308
  it(t, i) && this.raiseRecoverable(r.key.start, "Duplicate attribute key '" + i + "'"), t[i] = !0, e.push(r);
2306
2309
  }
2307
2310
  return e;
2308
- }, L.parseImportAttribute = function() {
2311
+ }, R.parseImportAttribute = function() {
2309
2312
  var e = this.startNode();
2310
- return e.key = this.type === j.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(j.colon), this.type !== j.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
2311
- }, L.parseModuleExportName = function() {
2312
- if (this.options.ecmaVersion >= 13 && this.type === j.string) {
2313
+ return e.key = this.type === M.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(M.colon), this.type !== M.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
2314
+ }, R.parseModuleExportName = function() {
2315
+ if (this.options.ecmaVersion >= 13 && this.type === M.string) {
2313
2316
  var e = this.parseLiteral(this.value);
2314
2317
  return lt.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
2315
2318
  }
2316
2319
  return this.parseIdent(!0);
2317
- }, L.adaptDirectivePrologue = function(e) {
2320
+ }, R.adaptDirectivePrologue = function(e) {
2318
2321
  for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
2319
- }, L.isDirectiveCandidate = function(e) {
2322
+ }, R.isDirectiveCandidate = function(e) {
2320
2323
  return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === "\"" || this.input[e.start] === "'");
2321
2324
  };
2322
- var R = P.prototype;
2323
- R.toAssignable = function(e, t, n) {
2325
+ var z = F.prototype;
2326
+ z.toAssignable = function(e, t, n) {
2324
2327
  if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
2325
2328
  case "Identifier":
2326
2329
  this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
@@ -2359,7 +2362,7 @@ R.toAssignable = function(e, t, n) {
2359
2362
  }
2360
2363
  else n && this.checkPatternErrors(n, !0);
2361
2364
  return e;
2362
- }, R.toAssignableList = function(e, t) {
2365
+ }, z.toAssignableList = function(e, t) {
2363
2366
  for (var n = e.length, r = 0; r < n; r++) {
2364
2367
  var i = e[r];
2365
2368
  i && this.toAssignable(i, t);
@@ -2369,39 +2372,39 @@ R.toAssignable = function(e, t, n) {
2369
2372
  this.options.ecmaVersion === 6 && t && a && a.type === "RestElement" && a.argument.type !== "Identifier" && this.unexpected(a.argument.start);
2370
2373
  }
2371
2374
  return e;
2372
- }, R.parseSpread = function(e) {
2375
+ }, z.parseSpread = function(e) {
2373
2376
  var t = this.startNode();
2374
2377
  return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
2375
- }, R.parseRestBinding = function() {
2378
+ }, z.parseRestBinding = function() {
2376
2379
  var e = this.startNode();
2377
- return this.next(), this.options.ecmaVersion === 6 && this.type !== j.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
2378
- }, R.parseBindingAtom = function() {
2380
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== M.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
2381
+ }, z.parseBindingAtom = function() {
2379
2382
  if (this.options.ecmaVersion >= 6) switch (this.type) {
2380
- case j.bracketL:
2383
+ case M.bracketL:
2381
2384
  var e = this.startNode();
2382
- return this.next(), e.elements = this.parseBindingList(j.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
2383
- case j.braceL: return this.parseObj(!0);
2385
+ return this.next(), e.elements = this.parseBindingList(M.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
2386
+ case M.braceL: return this.parseObj(!0);
2384
2387
  }
2385
2388
  return this.parseIdent();
2386
- }, R.parseBindingList = function(e, t, n, r) {
2387
- for (var i = [], a = !0; !this.eat(e);) if (a ? a = !1 : this.expect(j.comma), t && this.type === j.comma) i.push(null);
2389
+ }, z.parseBindingList = function(e, t, n, r) {
2390
+ for (var i = [], a = !0; !this.eat(e);) if (a ? a = !1 : this.expect(M.comma), t && this.type === M.comma) i.push(null);
2388
2391
  else if (n && this.afterTrailingComma(e)) break;
2389
- else if (this.type === j.ellipsis) {
2392
+ else if (this.type === M.ellipsis) {
2390
2393
  var o = this.parseRestBinding();
2391
- this.parseBindingListItem(o), i.push(o), this.type === j.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
2394
+ this.parseBindingListItem(o), i.push(o), this.type === M.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
2392
2395
  break;
2393
2396
  } else i.push(this.parseAssignableListItem(r));
2394
2397
  return i;
2395
- }, R.parseAssignableListItem = function(e) {
2398
+ }, z.parseAssignableListItem = function(e) {
2396
2399
  var t = this.parseMaybeDefault(this.start, this.startLoc);
2397
2400
  return this.parseBindingListItem(t), t;
2398
- }, R.parseBindingListItem = function(e) {
2401
+ }, z.parseBindingListItem = function(e) {
2399
2402
  return e;
2400
- }, R.parseMaybeDefault = function(e, t, n) {
2401
- if (n ||= this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(j.eq)) return n;
2403
+ }, z.parseMaybeDefault = function(e, t, n) {
2404
+ if (n ||= this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(M.eq)) return n;
2402
2405
  var r = this.startNodeAt(e, t);
2403
2406
  return r.left = n, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
2404
- }, R.checkLValSimple = function(e, t, n) {
2407
+ }, z.checkLValSimple = function(e, t, n) {
2405
2408
  t === void 0 && (t = At);
2406
2409
  var r = t !== At;
2407
2410
  switch (e.type) {
@@ -2417,7 +2420,7 @@ R.toAssignable = function(e, t, n) {
2417
2420
  case "ParenthesizedExpression": return r && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, n);
2418
2421
  default: this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
2419
2422
  }
2420
- }, R.checkLValPattern = function(e, t, n) {
2423
+ }, z.checkLValPattern = function(e, t, n) {
2421
2424
  switch (t === void 0 && (t = At), e.type) {
2422
2425
  case "ObjectPattern":
2423
2426
  for (var r = 0, i = e.properties; r < i.length; r += 1) {
@@ -2433,7 +2436,7 @@ R.toAssignable = function(e, t, n) {
2433
2436
  break;
2434
2437
  default: this.checkLValSimple(e, t, n);
2435
2438
  }
2436
- }, R.checkLValInnerPattern = function(e, t, n) {
2439
+ }, z.checkLValInnerPattern = function(e, t, n) {
2437
2440
  switch (t === void 0 && (t = At), e.type) {
2438
2441
  case "Property":
2439
2442
  this.checkLValInnerPattern(e.value, t, n);
@@ -2447,29 +2450,29 @@ R.toAssignable = function(e, t, n) {
2447
2450
  default: this.checkLValPattern(e, t, n);
2448
2451
  }
2449
2452
  };
2450
- var z = function(e, t, n, r, i) {
2453
+ var B = function(e, t, n, r, i) {
2451
2454
  this.token = e, this.isExpr = !!t, this.preserveSpace = !!n, this.override = r, this.generator = !!i;
2452
- }, B = {
2453
- b_stat: new z("{", !1),
2454
- b_expr: new z("{", !0),
2455
- b_tmpl: new z("${", !1),
2456
- p_stat: new z("(", !1),
2457
- p_expr: new z("(", !0),
2458
- q_tmpl: new z("`", !0, !0, function(e) {
2455
+ }, V = {
2456
+ b_stat: new B("{", !1),
2457
+ b_expr: new B("{", !0),
2458
+ b_tmpl: new B("${", !1),
2459
+ p_stat: new B("(", !1),
2460
+ p_expr: new B("(", !0),
2461
+ q_tmpl: new B("`", !0, !0, function(e) {
2459
2462
  return e.tryReadTemplateToken();
2460
2463
  }),
2461
- f_stat: new z("function", !1),
2462
- f_expr: new z("function", !0),
2463
- f_expr_gen: new z("function", !0, !1, null, !0),
2464
- f_gen: new z("function", !1, !1, null, !0)
2465
- }, Kt = P.prototype;
2464
+ f_stat: new B("function", !1),
2465
+ f_expr: new B("function", !0),
2466
+ f_expr_gen: new B("function", !0, !1, null, !0),
2467
+ f_gen: new B("function", !1, !1, null, !0)
2468
+ }, Kt = F.prototype;
2466
2469
  Kt.initialContext = function() {
2467
- return [B.b_stat];
2470
+ return [V.b_stat];
2468
2471
  }, Kt.curContext = function() {
2469
2472
  return this.context[this.context.length - 1];
2470
2473
  }, Kt.braceIsBlock = function(e) {
2471
2474
  var t = this.curContext();
2472
- return t === B.f_expr || t === B.f_stat ? !0 : e === j.colon && (t === B.b_stat || t === B.b_expr) ? !t.isExpr : e === j._return || e === j.name && this.exprAllowed ? M.test(this.input.slice(this.lastTokEnd, this.start)) : e === j._else || e === j.semi || e === j.eof || e === j.parenR || e === j.arrow ? !0 : e === j.braceL ? t === B.b_stat : e === j._var || e === j._const || e === j.name ? !1 : !this.exprAllowed;
2475
+ return t === V.f_expr || t === V.f_stat ? !0 : e === M.colon && (t === V.b_stat || t === V.b_expr) ? !t.isExpr : e === M._return || e === M.name && this.exprAllowed ? N.test(this.input.slice(this.lastTokEnd, this.start)) : e === M._else || e === M.semi || e === M.eof || e === M.parenR || e === M.arrow ? !0 : e === M.braceL ? t === V.b_stat : e === M._var || e === M._const || e === M.name ? !1 : !this.exprAllowed;
2473
2476
  }, Kt.inGeneratorContext = function() {
2474
2477
  for (var e = this.context.length - 1; e >= 1; e--) {
2475
2478
  var t = this.context[e];
@@ -2478,41 +2481,41 @@ Kt.initialContext = function() {
2478
2481
  return !1;
2479
2482
  }, Kt.updateContext = function(e) {
2480
2483
  var t, n = this.type;
2481
- n.keyword && e === j.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
2484
+ n.keyword && e === M.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
2482
2485
  }, Kt.overrideContext = function(e) {
2483
2486
  this.curContext() !== e && (this.context[this.context.length - 1] = e);
2484
- }, j.parenR.updateContext = j.braceR.updateContext = function() {
2487
+ }, M.parenR.updateContext = M.braceR.updateContext = function() {
2485
2488
  if (this.context.length === 1) {
2486
2489
  this.exprAllowed = !0;
2487
2490
  return;
2488
2491
  }
2489
2492
  var e = this.context.pop();
2490
- e === B.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
2491
- }, j.braceL.updateContext = function(e) {
2492
- this.context.push(this.braceIsBlock(e) ? B.b_stat : B.b_expr), this.exprAllowed = !0;
2493
- }, j.dollarBraceL.updateContext = function() {
2494
- this.context.push(B.b_tmpl), this.exprAllowed = !0;
2495
- }, j.parenL.updateContext = function(e) {
2496
- var t = e === j._if || e === j._for || e === j._with || e === j._while;
2497
- this.context.push(t ? B.p_stat : B.p_expr), this.exprAllowed = !0;
2498
- }, j.incDec.updateContext = function() {}, j._function.updateContext = j._class.updateContext = function(e) {
2499
- e.beforeExpr && e !== j._else && !(e === j.semi && this.curContext() !== B.p_stat) && !(e === j._return && M.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === j.colon || e === j.braceL) && this.curContext() === B.b_stat) ? this.context.push(B.f_expr) : this.context.push(B.f_stat), this.exprAllowed = !1;
2500
- }, j.colon.updateContext = function() {
2493
+ e === V.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
2494
+ }, M.braceL.updateContext = function(e) {
2495
+ this.context.push(this.braceIsBlock(e) ? V.b_stat : V.b_expr), this.exprAllowed = !0;
2496
+ }, M.dollarBraceL.updateContext = function() {
2497
+ this.context.push(V.b_tmpl), this.exprAllowed = !0;
2498
+ }, M.parenL.updateContext = function(e) {
2499
+ var t = e === M._if || e === M._for || e === M._with || e === M._while;
2500
+ this.context.push(t ? V.p_stat : V.p_expr), this.exprAllowed = !0;
2501
+ }, M.incDec.updateContext = function() {}, M._function.updateContext = M._class.updateContext = function(e) {
2502
+ e.beforeExpr && e !== M._else && !(e === M.semi && this.curContext() !== V.p_stat) && !(e === M._return && N.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === M.colon || e === M.braceL) && this.curContext() === V.b_stat) ? this.context.push(V.f_expr) : this.context.push(V.f_stat), this.exprAllowed = !1;
2503
+ }, M.colon.updateContext = function() {
2501
2504
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
2502
- }, j.backQuote.updateContext = function() {
2503
- this.curContext() === B.q_tmpl ? this.context.pop() : this.context.push(B.q_tmpl), this.exprAllowed = !1;
2504
- }, j.star.updateContext = function(e) {
2505
- if (e === j._function) {
2505
+ }, M.backQuote.updateContext = function() {
2506
+ this.curContext() === V.q_tmpl ? this.context.pop() : this.context.push(V.q_tmpl), this.exprAllowed = !1;
2507
+ }, M.star.updateContext = function(e) {
2508
+ if (e === M._function) {
2506
2509
  var t = this.context.length - 1;
2507
- this.context[t] === B.f_expr ? this.context[t] = B.f_expr_gen : this.context[t] = B.f_gen;
2510
+ this.context[t] === V.f_expr ? this.context[t] = V.f_expr_gen : this.context[t] = V.f_gen;
2508
2511
  }
2509
2512
  this.exprAllowed = !0;
2510
- }, j.name.updateContext = function(e) {
2513
+ }, M.name.updateContext = function(e) {
2511
2514
  var t = !1;
2512
- this.options.ecmaVersion >= 6 && e !== j.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
2515
+ this.options.ecmaVersion >= 6 && e !== M.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
2513
2516
  };
2514
- var V = P.prototype;
2515
- V.checkPropClash = function(e, t, n) {
2517
+ var H = F.prototype;
2518
+ H.checkPropClash = function(e, t, n) {
2516
2519
  if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
2517
2520
  var r = e.key, i;
2518
2521
  switch (r.type) {
@@ -2537,18 +2540,18 @@ V.checkPropClash = function(e, t, n) {
2537
2540
  set: !1
2538
2541
  }, o[a] = !0;
2539
2542
  }
2540
- }, V.parseExpression = function(e, t) {
2543
+ }, H.parseExpression = function(e, t) {
2541
2544
  var n = this;
2542
2545
  return this.catchStackOverflow(function() {
2543
2546
  var r = n.start, i = n.startLoc, a = n.parseMaybeAssign(e, t);
2544
- if (n.type === j.comma) {
2547
+ if (n.type === M.comma) {
2545
2548
  var o = n.startNodeAt(r, i);
2546
- for (o.expressions = [a]; n.eat(j.comma);) o.expressions.push(n.parseMaybeAssign(e, t));
2549
+ for (o.expressions = [a]; n.eat(M.comma);) o.expressions.push(n.parseMaybeAssign(e, t));
2547
2550
  return n.finishNode(o, "SequenceExpression");
2548
2551
  }
2549
2552
  return a;
2550
2553
  });
2551
- }, V.parseMaybeAssign = function(e, t, n) {
2554
+ }, H.parseMaybeAssign = function(e, t, n) {
2552
2555
  if (this.isContextual("yield")) {
2553
2556
  if (this.inGenerator) return this.parseYield(e);
2554
2557
  this.exprAllowed = !1;
@@ -2556,46 +2559,46 @@ V.checkPropClash = function(e, t, n) {
2556
2559
  var r = !1, i = -1, a = -1, o = -1;
2557
2560
  t ? (i = t.parenthesizedAssign, a = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Lt(), r = !0);
2558
2561
  var s = this.start, c = this.startLoc;
2559
- (this.type === j.parenL || this.type === j.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
2562
+ (this.type === M.parenL || this.type === M.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
2560
2563
  var l = this.parseMaybeConditional(e, t);
2561
2564
  if (n && (l = n.call(this, l, s, c)), this.type.isAssign) {
2562
2565
  var u = this.startNodeAt(s, c);
2563
- return u.operator = this.value, this.type === j.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === j.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), u.left = l, this.next(), u.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(u, "AssignmentExpression");
2566
+ return u.operator = this.value, this.type === M.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === M.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), u.left = l, this.next(), u.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(u, "AssignmentExpression");
2564
2567
  } else r && this.checkExpressionErrors(t, !0);
2565
2568
  return i > -1 && (t.parenthesizedAssign = i), a > -1 && (t.trailingComma = a), l;
2566
- }, V.parseMaybeConditional = function(e, t) {
2569
+ }, H.parseMaybeConditional = function(e, t) {
2567
2570
  var n = this.start, r = this.startLoc, i = this.parseExprOps(e, t);
2568
2571
  if (this.checkExpressionErrors(t)) return i;
2569
- if (!(i.type === "ArrowFunctionExpression" && i.start === n) && this.eat(j.question)) {
2572
+ if (!(i.type === "ArrowFunctionExpression" && i.start === n) && this.eat(M.question)) {
2570
2573
  var a = this.startNodeAt(n, r);
2571
- return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(j.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
2574
+ return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(M.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
2572
2575
  }
2573
2576
  return i;
2574
- }, V.parseExprOps = function(e, t) {
2577
+ }, H.parseExprOps = function(e, t) {
2575
2578
  var n = this.start, r = this.startLoc, i = this.parseMaybeUnary(t, !1, !1, e);
2576
2579
  return this.checkExpressionErrors(t) || i.start === n && i.type === "ArrowFunctionExpression" ? i : this.parseExprOp(i, n, r, -1, e);
2577
- }, V.parseExprOp = function(e, t, n, r, i) {
2580
+ }, H.parseExprOp = function(e, t, n, r, i) {
2578
2581
  var a = this.type.binop;
2579
- if (a != null && (!i || this.type !== j._in) && a > r) {
2580
- var o = this.type === j.logicalOR || this.type === j.logicalAND, s = this.type === j.coalesce;
2581
- s && (a = j.logicalAND.binop);
2582
+ if (a != null && (!i || this.type !== M._in) && a > r) {
2583
+ var o = this.type === M.logicalOR || this.type === M.logicalAND, s = this.type === M.coalesce;
2584
+ s && (a = M.logicalAND.binop);
2582
2585
  var c = this.value;
2583
2586
  this.next();
2584
2587
  var l = this.start, u = this.startLoc, d = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, i), l, u, a, i), f = this.buildBinary(t, n, e, d, c, o || s);
2585
- return (o && this.type === j.coalesce || s && (this.type === j.logicalOR || this.type === j.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, t, n, r, i);
2588
+ return (o && this.type === M.coalesce || s && (this.type === M.logicalOR || this.type === M.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, t, n, r, i);
2586
2589
  }
2587
2590
  return e;
2588
- }, V.buildBinary = function(e, t, n, r, i, a) {
2591
+ }, H.buildBinary = function(e, t, n, r, i, a) {
2589
2592
  r.type === "PrivateIdentifier" && this.raise(r.start, "Private identifier can only be left side of binary expression");
2590
2593
  var o = this.startNodeAt(e, t);
2591
2594
  return o.left = n, o.operator = i, o.right = r, this.finishNode(o, a ? "LogicalExpression" : "BinaryExpression");
2592
- }, V.parseMaybeUnary = function(e, t, n, r) {
2595
+ }, H.parseMaybeUnary = function(e, t, n, r) {
2593
2596
  var i = this.start, a = this.startLoc, o;
2594
2597
  if (this.isContextual("await") && this.canAwait) o = this.parseAwait(r), t = !0;
2595
2598
  else if (this.type.prefix) {
2596
- var s = this.startNode(), c = this.type === j.incDec;
2599
+ var s = this.startNode(), c = this.type === M.incDec;
2597
2600
  s.operator = this.value, s.prefix = !0, this.next(), s.argument = this.parseMaybeUnary(null, !0, c, r), this.checkExpressionErrors(e, !0), c ? this.checkLValSimple(s.argument) : this.strict && s.operator === "delete" && qt(s.argument) ? this.raiseRecoverable(s.start, "Deleting local variable in strict mode") : s.operator === "delete" && Jt(s.argument) ? this.raiseRecoverable(s.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(s, c ? "UpdateExpression" : "UnaryExpression");
2598
- } else if (!t && this.type === j.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== j._in && this.unexpected();
2601
+ } else if (!t && this.type === M.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== M._in && this.unexpected();
2599
2602
  else {
2600
2603
  if (o = this.parseExprSubscripts(e, r), this.checkExpressionErrors(e)) return o;
2601
2604
  for (; this.type.postfix && !this.canInsertSemicolon();) {
@@ -2603,7 +2606,7 @@ V.checkPropClash = function(e, t, n) {
2603
2606
  l.operator = this.value, l.prefix = !1, l.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(l, "UpdateExpression");
2604
2607
  }
2605
2608
  }
2606
- if (!n && this.eat(j.starstar)) if (t) this.unexpected(this.lastTokStart);
2609
+ if (!n && this.eat(M.starstar)) if (t) this.unexpected(this.lastTokStart);
2607
2610
  else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
2608
2611
  else return o;
2609
2612
  };
@@ -2613,12 +2616,12 @@ function qt(e) {
2613
2616
  function Jt(e) {
2614
2617
  return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Jt(e.expression) || e.type === "ParenthesizedExpression" && Jt(e.expression);
2615
2618
  }
2616
- V.parseExprSubscripts = function(e, t) {
2619
+ H.parseExprSubscripts = function(e, t) {
2617
2620
  var n = this.start, r = this.startLoc, i = this.parseExprAtom(e, t);
2618
2621
  if (i.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return i;
2619
2622
  var a = this.parseSubscripts(i, n, r, !1, t);
2620
2623
  return e && a.type === "MemberExpression" && (e.parenthesizedAssign >= a.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= a.start && (e.parenthesizedBind = -1), e.trailingComma >= a.start && (e.trailingComma = -1)), a;
2621
- }, V.parseSubscripts = function(e, t, n, r, i) {
2624
+ }, H.parseSubscripts = function(e, t, n, r, i) {
2622
2625
  for (var a = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = !1;;) {
2623
2626
  var s = this.parseSubscript(e, t, n, r, a, o, i);
2624
2627
  if (s.optional && (o = !0), s === e || s.type === "ArrowFunctionExpression") {
@@ -2630,170 +2633,170 @@ V.parseExprSubscripts = function(e, t) {
2630
2633
  }
2631
2634
  e = s;
2632
2635
  }
2633
- }, V.shouldParseAsyncArrow = function() {
2634
- return !this.canInsertSemicolon() && this.eat(j.arrow);
2635
- }, V.parseSubscriptAsyncArrow = function(e, t, n, r) {
2636
+ }, H.shouldParseAsyncArrow = function() {
2637
+ return !this.canInsertSemicolon() && this.eat(M.arrow);
2638
+ }, H.parseSubscriptAsyncArrow = function(e, t, n, r) {
2636
2639
  return this.parseArrowExpression(this.startNodeAt(e, t), n, !0, r);
2637
- }, V.parseSubscript = function(e, t, n, r, i, a, o) {
2638
- var s = this.options.ecmaVersion >= 11, c = s && this.eat(j.questionDot);
2640
+ }, H.parseSubscript = function(e, t, n, r, i, a, o) {
2641
+ var s = this.options.ecmaVersion >= 11, c = s && this.eat(M.questionDot);
2639
2642
  r && c && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
2640
- var l = this.eat(j.bracketL);
2641
- if (l || c && this.type !== j.parenL && this.type !== j.backQuote || this.eat(j.dot)) {
2643
+ var l = this.eat(M.bracketL);
2644
+ if (l || c && this.type !== M.parenL && this.type !== M.backQuote || this.eat(M.dot)) {
2642
2645
  var u = this.startNodeAt(t, n);
2643
- u.object = e, l ? (u.property = this.parseExpression(), this.expect(j.bracketR)) : this.type === j.privateId && e.type !== "Super" ? u.property = this.parsePrivateIdent() : u.property = this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
2644
- } else if (!r && this.eat(j.parenL)) {
2646
+ u.object = e, l ? (u.property = this.parseExpression(), this.expect(M.bracketR)) : this.type === M.privateId && e.type !== "Super" ? u.property = this.parsePrivateIdent() : u.property = this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
2647
+ } else if (!r && this.eat(M.parenL)) {
2645
2648
  var d = new Lt(), f = this.yieldPos, p = this.awaitPos, m = this.awaitIdentPos;
2646
2649
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
2647
- var h = this.parseExprList(j.parenR, this.options.ecmaVersion >= 8, !1, d);
2650
+ var h = this.parseExprList(M.parenR, this.options.ecmaVersion >= 8, !1, d);
2648
2651
  if (i && !c && this.shouldParseAsyncArrow()) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = f, this.awaitPos = p, this.awaitIdentPos = m, this.parseSubscriptAsyncArrow(t, n, h, o);
2649
2652
  this.checkExpressionErrors(d, !0), this.yieldPos = f || this.yieldPos, this.awaitPos = p || this.awaitPos, this.awaitIdentPos = m || this.awaitIdentPos;
2650
2653
  var g = this.startNodeAt(t, n);
2651
2654
  g.callee = e, g.arguments = h, s && (g.optional = c), e = this.finishNode(g, "CallExpression");
2652
- } else if (this.type === j.backQuote) {
2655
+ } else if (this.type === M.backQuote) {
2653
2656
  (c || a) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
2654
2657
  var ee = this.startNodeAt(t, n);
2655
2658
  ee.tag = e, ee.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(ee, "TaggedTemplateExpression");
2656
2659
  }
2657
2660
  return e;
2658
- }, V.parseExprAtom = function(e, t, n) {
2659
- this.type === j.slash && this.readRegexp();
2661
+ }, H.parseExprAtom = function(e, t, n) {
2662
+ this.type === M.slash && this.readRegexp();
2660
2663
  var r, i = this.potentialArrowAt === this.start;
2661
2664
  switch (this.type) {
2662
- case j._super: return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === j.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== j.dot && this.type !== j.bracketL && this.type !== j.parenL && this.unexpected(), this.finishNode(r, "Super");
2663
- case j._this: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
2664
- case j.name:
2665
+ case M._super: return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === M.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== M.dot && this.type !== M.bracketL && this.type !== M.parenL && this.unexpected(), this.finishNode(r, "Super");
2666
+ case M._this: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
2667
+ case M.name:
2665
2668
  var a = this.start, o = this.startLoc, s = this.containsEsc, c = this.parseIdent(!1);
2666
- if (this.options.ecmaVersion >= 8 && !s && c.name === "async" && !this.canInsertSemicolon() && this.eat(j._function)) return this.overrideContext(B.f_expr), this.parseFunction(this.startNodeAt(a, o), 0, !1, !0, t);
2669
+ if (this.options.ecmaVersion >= 8 && !s && c.name === "async" && !this.canInsertSemicolon() && this.eat(M._function)) return this.overrideContext(V.f_expr), this.parseFunction(this.startNodeAt(a, o), 0, !1, !0, t);
2667
2670
  if (i && !this.canInsertSemicolon()) {
2668
- if (this.eat(j.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o), [c], !1, t);
2669
- if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === j.name && !s && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(j.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o), [c], !0, t);
2671
+ if (this.eat(M.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o), [c], !1, t);
2672
+ if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === M.name && !s && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(M.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o), [c], !0, t);
2670
2673
  }
2671
2674
  return c;
2672
- case j.regexp:
2675
+ case M.regexp:
2673
2676
  var l = this.value;
2674
2677
  return r = this.parseLiteral(l.value), r.regex = {
2675
2678
  pattern: l.pattern,
2676
2679
  flags: l.flags
2677
2680
  }, r;
2678
- case j.num:
2679
- case j.string: return this.parseLiteral(this.value);
2680
- case j._null:
2681
- case j._true:
2682
- case j._false: return r = this.startNode(), r.value = this.type === j._null ? null : this.type === j._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
2683
- case j.parenL:
2681
+ case M.num:
2682
+ case M.string: return this.parseLiteral(this.value);
2683
+ case M._null:
2684
+ case M._true:
2685
+ case M._false: return r = this.startNode(), r.value = this.type === M._null ? null : this.type === M._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
2686
+ case M.parenL:
2684
2687
  var u = this.start, d = this.parseParenAndDistinguishExpression(i, t);
2685
2688
  return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(d) && (e.parenthesizedAssign = u), e.parenthesizedBind < 0 && (e.parenthesizedBind = u)), d;
2686
- case j.bracketL: return r = this.startNode(), this.next(), r.elements = this.parseExprList(j.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
2687
- case j.braceL: return this.overrideContext(B.b_expr), this.parseObj(!1, e);
2688
- case j._function: return r = this.startNode(), this.next(), this.parseFunction(r, 0);
2689
- case j._class: return this.parseClass(this.startNode(), !1);
2690
- case j._new: return this.parseNew();
2691
- case j.backQuote: return this.parseTemplate();
2692
- case j._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(n) : this.unexpected();
2689
+ case M.bracketL: return r = this.startNode(), this.next(), r.elements = this.parseExprList(M.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
2690
+ case M.braceL: return this.overrideContext(V.b_expr), this.parseObj(!1, e);
2691
+ case M._function: return r = this.startNode(), this.next(), this.parseFunction(r, 0);
2692
+ case M._class: return this.parseClass(this.startNode(), !1);
2693
+ case M._new: return this.parseNew();
2694
+ case M.backQuote: return this.parseTemplate();
2695
+ case M._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(n) : this.unexpected();
2693
2696
  default: return this.parseExprAtomDefault();
2694
2697
  }
2695
- }, V.parseExprAtomDefault = function() {
2698
+ }, H.parseExprAtomDefault = function() {
2696
2699
  this.unexpected();
2697
- }, V.parseExprImport = function(e) {
2700
+ }, H.parseExprImport = function(e) {
2698
2701
  var t = this.startNode();
2699
- if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === j.parenL && !e) return this.parseDynamicImport(t);
2700
- if (this.type === j.dot) {
2702
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === M.parenL && !e) return this.parseDynamicImport(t);
2703
+ if (this.type === M.dot) {
2701
2704
  var n = this.startNodeAt(t.start, t.loc && t.loc.start);
2702
2705
  return n.name = "import", t.meta = this.finishNode(n, "Identifier"), this.parseImportMeta(t);
2703
2706
  } else this.unexpected();
2704
- }, V.parseDynamicImport = function(e) {
2705
- if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(j.parenR) ? e.options = null : (this.expect(j.comma), this.afterTrailingComma(j.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(j.parenR) || (this.expect(j.comma), this.afterTrailingComma(j.parenR) || this.unexpected())));
2706
- else if (!this.eat(j.parenR)) {
2707
+ }, H.parseDynamicImport = function(e) {
2708
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(M.parenR) ? e.options = null : (this.expect(M.comma), this.afterTrailingComma(M.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(M.parenR) || (this.expect(M.comma), this.afterTrailingComma(M.parenR) || this.unexpected())));
2709
+ else if (!this.eat(M.parenR)) {
2707
2710
  var t = this.start;
2708
- this.eat(j.comma) && this.eat(j.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
2711
+ this.eat(M.comma) && this.eat(M.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
2709
2712
  }
2710
2713
  return this.finishNode(e, "ImportExpression");
2711
- }, V.parseImportMeta = function(e) {
2714
+ }, H.parseImportMeta = function(e) {
2712
2715
  this.next();
2713
2716
  var t = this.containsEsc;
2714
2717
  return e.property = this.parseIdent(!0), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
2715
- }, V.parseLiteral = function(e) {
2718
+ }, H.parseLiteral = function(e) {
2716
2719
  var t = this.startNode();
2717
2720
  return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.value == null ? t.raw.slice(0, -1).replace(/_/g, "") : t.value.toString()), this.next(), this.finishNode(t, "Literal");
2718
- }, V.parseParenExpression = function() {
2719
- this.expect(j.parenL);
2721
+ }, H.parseParenExpression = function() {
2722
+ this.expect(M.parenL);
2720
2723
  var e = this.parseExpression();
2721
- return this.expect(j.parenR), e;
2722
- }, V.shouldParseArrow = function(e) {
2724
+ return this.expect(M.parenR), e;
2725
+ }, H.shouldParseArrow = function(e) {
2723
2726
  return !this.canInsertSemicolon();
2724
- }, V.parseParenAndDistinguishExpression = function(e, t) {
2727
+ }, H.parseParenAndDistinguishExpression = function(e, t) {
2725
2728
  var n = this.start, r = this.startLoc, i, a = this.options.ecmaVersion >= 8;
2726
2729
  if (this.options.ecmaVersion >= 6) {
2727
2730
  this.next();
2728
2731
  var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new Lt(), f = this.yieldPos, p = this.awaitPos, m;
2729
- for (this.yieldPos = 0, this.awaitPos = 0; this.type !== j.parenR;) if (l ? l = !1 : this.expect(j.comma), a && this.afterTrailingComma(j.parenR, !0)) {
2732
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== M.parenR;) if (l ? l = !1 : this.expect(M.comma), a && this.afterTrailingComma(M.parenR, !0)) {
2730
2733
  u = !0;
2731
2734
  break;
2732
- } else if (this.type === j.ellipsis) {
2733
- m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === j.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2735
+ } else if (this.type === M.ellipsis) {
2736
+ m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === M.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2734
2737
  break;
2735
2738
  } else c.push(this.parseMaybeAssign(!1, d, this.parseParenItem));
2736
2739
  var h = this.lastTokEnd, g = this.lastTokEndLoc;
2737
- if (this.expect(j.parenR), e && this.shouldParseArrow(c) && this.eat(j.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
2740
+ if (this.expect(M.parenR), e && this.shouldParseArrow(c) && this.eat(M.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
2738
2741
  (!c.length || u) && this.unexpected(this.lastTokStart), m && this.unexpected(m), this.checkExpressionErrors(d, !0), this.yieldPos = f || this.yieldPos, this.awaitPos = p || this.awaitPos, c.length > 1 ? (i = this.startNodeAt(o, s), i.expressions = c, this.finishNodeAt(i, "SequenceExpression", h, g)) : i = c[0];
2739
2742
  } else i = this.parseParenExpression();
2740
2743
  if (this.options.preserveParens) {
2741
2744
  var ee = this.startNodeAt(n, r);
2742
2745
  return ee.expression = i, this.finishNode(ee, "ParenthesizedExpression");
2743
2746
  } else return i;
2744
- }, V.parseParenItem = function(e) {
2747
+ }, H.parseParenItem = function(e) {
2745
2748
  return e;
2746
- }, V.parseParenArrowList = function(e, t, n, r) {
2749
+ }, H.parseParenArrowList = function(e, t, n, r) {
2747
2750
  return this.parseArrowExpression(this.startNodeAt(e, t), n, !1, r);
2748
2751
  };
2749
2752
  var Yt = [];
2750
- V.parseNew = function() {
2753
+ H.parseNew = function() {
2751
2754
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
2752
2755
  var e = this.startNode();
2753
- if (this.next(), this.options.ecmaVersion >= 6 && this.type === j.dot) {
2756
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === M.dot) {
2754
2757
  var t = this.startNodeAt(e.start, e.loc && e.loc.start);
2755
2758
  t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
2756
2759
  var n = this.containsEsc;
2757
2760
  return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), n && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
2758
2761
  }
2759
2762
  var r = this.start, i = this.startLoc;
2760
- return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), this.eat(j.parenL) ? e.arguments = this.parseExprList(j.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Yt, this.finishNode(e, "NewExpression");
2761
- }, V.parseTemplateElement = function(e) {
2763
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), this.eat(M.parenL) ? e.arguments = this.parseExprList(M.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Yt, this.finishNode(e, "NewExpression");
2764
+ }, H.parseTemplateElement = function(e) {
2762
2765
  var t = e.isTagged, n = this.startNode();
2763
- return this.type === j.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
2766
+ return this.type === M.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
2764
2767
  raw: this.value.replace(/\r\n?/g, "\n"),
2765
2768
  cooked: null
2766
2769
  }) : n.value = {
2767
2770
  raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"),
2768
2771
  cooked: this.value
2769
- }, this.next(), n.tail = this.type === j.backQuote, this.finishNode(n, "TemplateElement");
2770
- }, V.parseTemplate = function(e) {
2772
+ }, this.next(), n.tail = this.type === M.backQuote, this.finishNode(n, "TemplateElement");
2773
+ }, H.parseTemplate = function(e) {
2771
2774
  e === void 0 && (e = {});
2772
2775
  var t = e.isTagged;
2773
2776
  t === void 0 && (t = !1);
2774
2777
  var n = this.startNode();
2775
2778
  this.next(), n.expressions = [];
2776
2779
  var r = this.parseTemplateElement({ isTagged: t });
2777
- for (n.quasis = [r]; !r.tail;) this.type === j.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(j.dollarBraceL), n.expressions.push(this.parseExpression()), this.expect(j.braceR), n.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
2780
+ for (n.quasis = [r]; !r.tail;) this.type === M.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(M.dollarBraceL), n.expressions.push(this.parseExpression()), this.expect(M.braceR), n.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
2778
2781
  return this.next(), this.finishNode(n, "TemplateLiteral");
2779
- }, V.isAsyncProp = function(e) {
2780
- return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === j.name || this.type === j.num || this.type === j.string || this.type === j.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === j.star) && !M.test(this.input.slice(this.lastTokEnd, this.start));
2781
- }, V.parseObj = function(e, t) {
2782
+ }, H.isAsyncProp = function(e) {
2783
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === M.name || this.type === M.num || this.type === M.string || this.type === M.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === M.star) && !N.test(this.input.slice(this.lastTokEnd, this.start));
2784
+ }, H.parseObj = function(e, t) {
2782
2785
  var n = this.startNode(), r = !0, i = {};
2783
- for (n.properties = [], this.next(); !this.eat(j.braceR);) {
2786
+ for (n.properties = [], this.next(); !this.eat(M.braceR);) {
2784
2787
  if (r) r = !1;
2785
- else if (this.expect(j.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(j.braceR)) break;
2788
+ else if (this.expect(M.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(M.braceR)) break;
2786
2789
  var a = this.parseProperty(e, t);
2787
2790
  e || this.checkPropClash(a, i, t), n.properties.push(a);
2788
2791
  }
2789
2792
  return this.finishNode(n, e ? "ObjectPattern" : "ObjectExpression");
2790
- }, V.parseProperty = function(e, t) {
2793
+ }, H.parseProperty = function(e, t) {
2791
2794
  var n = this.startNode(), r, i, a, o;
2792
- if (this.options.ecmaVersion >= 9 && this.eat(j.ellipsis)) return e ? (n.argument = this.parseIdent(!1), this.type === j.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(n, "RestElement")) : (n.argument = this.parseMaybeAssign(!1, t), this.type === j.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(n, "SpreadElement"));
2793
- this.options.ecmaVersion >= 6 && (n.method = !1, n.shorthand = !1, (e || t) && (a = this.start, o = this.startLoc), e || (r = this.eat(j.star)));
2795
+ if (this.options.ecmaVersion >= 9 && this.eat(M.ellipsis)) return e ? (n.argument = this.parseIdent(!1), this.type === M.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(n, "RestElement")) : (n.argument = this.parseMaybeAssign(!1, t), this.type === M.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(n, "SpreadElement"));
2796
+ this.options.ecmaVersion >= 6 && (n.method = !1, n.shorthand = !1, (e || t) && (a = this.start, o = this.startLoc), e || (r = this.eat(M.star)));
2794
2797
  var s = this.containsEsc;
2795
- return this.parsePropertyName(n), !e && !s && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(n) ? (i = !0, r = this.options.ecmaVersion >= 9 && this.eat(j.star), this.parsePropertyName(n)) : i = !1, this.parsePropertyValue(n, e, r, i, a, o, t, s), this.finishNode(n, "Property");
2796
- }, V.parseGetterSetter = function(e) {
2798
+ return this.parsePropertyName(n), !e && !s && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(n) ? (i = !0, r = this.options.ecmaVersion >= 9 && this.eat(M.star), this.parsePropertyName(n)) : i = !1, this.parsePropertyValue(n, e, r, i, a, o, t, s), this.finishNode(n, "Property");
2799
+ }, H.parseGetterSetter = function(e) {
2797
2800
  var t = e.key.name;
2798
2801
  this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
2799
2802
  var n = e.kind === "get" ? 0 : 1;
@@ -2801,24 +2804,24 @@ V.parseNew = function() {
2801
2804
  var r = e.value.start;
2802
2805
  e.kind === "get" ? this.raiseRecoverable(r, "getter should have no params") : this.raiseRecoverable(r, "setter should have exactly one param");
2803
2806
  } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
2804
- }, V.parsePropertyValue = function(e, t, n, r, i, a, o, s) {
2805
- (n || r) && this.type === j.colon && this.unexpected(), this.eat(j.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === j.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(n, r), e.kind = "init") : !t && !s && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== j.comma && this.type !== j.braceR && this.type !== j.eq ? ((n || r) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((n || r) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = i), t ? e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key)) : this.type === j.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
2806
- }, V.parsePropertyName = function(e) {
2807
+ }, H.parsePropertyValue = function(e, t, n, r, i, a, o, s) {
2808
+ (n || r) && this.type === M.colon && this.unexpected(), this.eat(M.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === M.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(n, r), e.kind = "init") : !t && !s && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== M.comma && this.type !== M.braceR && this.type !== M.eq ? ((n || r) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((n || r) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = i), t ? e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key)) : this.type === M.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
2809
+ }, H.parsePropertyName = function(e) {
2807
2810
  if (this.options.ecmaVersion >= 6) {
2808
- if (this.eat(j.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(j.bracketR), e.key;
2811
+ if (this.eat(M.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(M.bracketR), e.key;
2809
2812
  e.computed = !1;
2810
2813
  }
2811
- return e.key = this.type === j.num || this.type === j.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
2812
- }, V.initFunction = function(e) {
2814
+ return e.key = this.type === M.num || this.type === M.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
2815
+ }, H.initFunction = function(e) {
2813
2816
  e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
2814
- }, V.parseMethod = function(e, t, n) {
2817
+ }, H.parseMethod = function(e, t, n) {
2815
2818
  var r = this.startNode(), i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
2816
- return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(kt(t, r.generator) | Ct | (n ? wt : 0)), this.expect(j.parenL), r.params = this.parseBindingList(j.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(r, "FunctionExpression");
2817
- }, V.parseArrowExpression = function(e, t, n, r) {
2819
+ return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(kt(t, r.generator) | Ct | (n ? wt : 0)), this.expect(M.parenL), r.params = this.parseBindingList(M.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(r, "FunctionExpression");
2820
+ }, H.parseArrowExpression = function(e, t, n, r) {
2818
2821
  var i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
2819
2822
  return this.enterScope(kt(n, !1) | xt), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
2820
- }, V.parseFunctionBody = function(e, t, n, r) {
2821
- var i = t && this.type !== j.braceL, a = this.strict, o = !1;
2823
+ }, H.parseFunctionBody = function(e, t, n, r) {
2824
+ var i = t && this.type !== M.braceL, a = this.strict, o = !1;
2822
2825
  if (i) e.body = this.parseMaybeAssign(r), e.expression = !0, this.checkParams(e, !1);
2823
2826
  else {
2824
2827
  var s = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
@@ -2827,44 +2830,44 @@ V.parseNew = function() {
2827
2830
  this.labels = [], o && (this.strict = !0), this.checkParams(e, !a && !o && !t && !n && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Ft), e.body = this.parseBlock(!1, void 0, o && !a), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = c;
2828
2831
  }
2829
2832
  this.exitScope();
2830
- }, V.isSimpleParamList = function(e) {
2833
+ }, H.isSimpleParamList = function(e) {
2831
2834
  for (var t = 0, n = e; t < n.length; t += 1) if (n[t].type !== "Identifier") return !1;
2832
2835
  return !0;
2833
- }, V.checkParams = function(e, t) {
2836
+ }, H.checkParams = function(e, t) {
2834
2837
  for (var n = Object.create(null), r = 0, i = e.params; r < i.length; r += 1) {
2835
2838
  var a = i[r];
2836
2839
  this.checkLValInnerPattern(a, jt, t ? null : n);
2837
2840
  }
2838
- }, V.parseExprList = function(e, t, n, r) {
2841
+ }, H.parseExprList = function(e, t, n, r) {
2839
2842
  for (var i = [], a = !0; !this.eat(e);) {
2840
2843
  if (a) a = !1;
2841
- else if (this.expect(j.comma), t && this.afterTrailingComma(e)) break;
2844
+ else if (this.expect(M.comma), t && this.afterTrailingComma(e)) break;
2842
2845
  var o = void 0;
2843
- n && this.type === j.comma ? o = null : this.type === j.ellipsis ? (o = this.parseSpread(r), r && this.type === j.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, r), i.push(o);
2846
+ n && this.type === M.comma ? o = null : this.type === M.ellipsis ? (o = this.parseSpread(r), r && this.type === M.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, r), i.push(o);
2844
2847
  }
2845
2848
  return i;
2846
- }, V.checkUnreserved = function(e) {
2849
+ }, H.checkUnreserved = function(e) {
2847
2850
  var t = e.start, n = e.end, r = e.name;
2848
2851
  this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Ot) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, n).indexOf("\\") !== -1) && (this.strict ? this.reservedWordsStrict : this.reservedWords).test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
2849
- }, V.parseIdent = function(e) {
2852
+ }, H.parseIdent = function(e) {
2850
2853
  var t = this.parseIdentNode();
2851
2854
  return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
2852
- }, V.parseIdentNode = function() {
2855
+ }, H.parseIdentNode = function() {
2853
2856
  var e = this.startNode();
2854
- return this.type === j.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = j.name) : this.unexpected(), e;
2855
- }, V.parsePrivateIdent = function() {
2857
+ return this.type === M.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = M.name) : this.unexpected(), e;
2858
+ }, H.parsePrivateIdent = function() {
2856
2859
  var e = this.startNode();
2857
- return this.type === j.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
2858
- }, V.parseYield = function(e) {
2860
+ return this.type === M.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
2861
+ }, H.parseYield = function(e) {
2859
2862
  this.yieldPos ||= this.start;
2860
2863
  var t = this.startNode();
2861
- return this.next(), this.type === j.semi || this.canInsertSemicolon() || this.type !== j.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(j.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
2862
- }, V.parseAwait = function(e) {
2864
+ return this.next(), this.type === M.semi || this.canInsertSemicolon() || this.type !== M.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(M.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
2865
+ }, H.parseAwait = function(e) {
2863
2866
  this.awaitPos ||= this.start;
2864
2867
  var t = this.startNode();
2865
2868
  return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
2866
2869
  };
2867
- var Xt = P.prototype;
2870
+ var Xt = F.prototype;
2868
2871
  Xt.raise = function(e, t) {
2869
2872
  var n = ft(this.input, e);
2870
2873
  t += " (" + n.line + ":" + n.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
@@ -2873,7 +2876,7 @@ Xt.raise = function(e, t) {
2873
2876
  }, Xt.raiseRecoverable = Xt.raise, Xt.curPosition = function() {
2874
2877
  if (this.options.locations) return new ut(this.curLine, this.pos - this.lineStart);
2875
2878
  };
2876
- var Zt = P.prototype, Qt = function(e) {
2879
+ var Zt = F.prototype, Qt = function(e) {
2877
2880
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
2878
2881
  };
2879
2882
  Zt.enterScope = function(e) {
@@ -2917,7 +2920,7 @@ Zt.enterScope = function(e) {
2917
2920
  };
2918
2921
  var $t = function(e, t, n) {
2919
2922
  this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new dt(e, n)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0]);
2920
- }, en = P.prototype;
2923
+ }, en = F.prototype;
2921
2924
  en.startNode = function() {
2922
2925
  return new $t(this, this.start, this.startLoc);
2923
2926
  }, en.startNodeAt = function(e, t) {
@@ -2979,7 +2982,7 @@ for (var bn = 0, xn = [
2979
2982
  var Sn = xn[bn];
2980
2983
  yn(Sn);
2981
2984
  }
2982
- var H = P.prototype, Cn = function(e, t) {
2985
+ var U = F.prototype, Cn = function(e, t) {
2983
2986
  this.parent = e, this.base = t || this;
2984
2987
  };
2985
2988
  Cn.prototype.separatedFrom = function(e) {
@@ -2988,15 +2991,15 @@ Cn.prototype.separatedFrom = function(e) {
2988
2991
  }, Cn.prototype.sibling = function() {
2989
2992
  return new Cn(this.parent, this.base);
2990
2993
  };
2991
- var U = function(e) {
2994
+ var W = function(e) {
2992
2995
  this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = vn[e.options.ecmaVersion >= 14 ? 14 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = Object.create(null), this.backReferenceNames = [], this.branchID = null;
2993
2996
  };
2994
- U.prototype.reset = function(e, t, n) {
2997
+ W.prototype.reset = function(e, t, n) {
2995
2998
  var r = n.indexOf("v") !== -1, i = n.indexOf("u") !== -1;
2996
2999
  this.start = e | 0, this.source = t + "", this.flags = n, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = i && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = i && this.parser.options.ecmaVersion >= 9);
2997
- }, U.prototype.raise = function(e) {
3000
+ }, W.prototype.raise = function(e) {
2998
3001
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e);
2999
- }, U.prototype.at = function(e, t) {
3002
+ }, W.prototype.at = function(e, t) {
3000
3003
  t === void 0 && (t = !1);
3001
3004
  var n = this.source, r = n.length;
3002
3005
  if (e >= r) return -1;
@@ -3004,21 +3007,21 @@ U.prototype.reset = function(e, t, n) {
3004
3007
  if (!(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r) return i;
3005
3008
  var a = n.charCodeAt(e + 1);
3006
3009
  return a >= 56320 && a <= 57343 ? (i << 10) + a - 56613888 : i;
3007
- }, U.prototype.nextIndex = function(e, t) {
3010
+ }, W.prototype.nextIndex = function(e, t) {
3008
3011
  t === void 0 && (t = !1);
3009
3012
  var n = this.source, r = n.length;
3010
3013
  if (e >= r) return r;
3011
3014
  var i = n.charCodeAt(e), a;
3012
3015
  return !(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r || (a = n.charCodeAt(e + 1)) < 56320 || a > 57343 ? e + 1 : e + 2;
3013
- }, U.prototype.current = function(e) {
3016
+ }, W.prototype.current = function(e) {
3014
3017
  return e === void 0 && (e = !1), this.at(this.pos, e);
3015
- }, U.prototype.lookahead = function(e) {
3018
+ }, W.prototype.lookahead = function(e) {
3016
3019
  return e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e);
3017
- }, U.prototype.advance = function(e) {
3020
+ }, W.prototype.advance = function(e) {
3018
3021
  e === void 0 && (e = !1), this.pos = this.nextIndex(this.pos, e);
3019
- }, U.prototype.eat = function(e, t) {
3022
+ }, W.prototype.eat = function(e, t) {
3020
3023
  return t === void 0 && (t = !1), this.current(t) === e ? (this.advance(t), !0) : !1;
3021
- }, U.prototype.eatChars = function(e, t) {
3024
+ }, W.prototype.eatChars = function(e, t) {
3022
3025
  t === void 0 && (t = !1);
3023
3026
  for (var n = this.pos, r = 0, i = e; r < i.length; r += 1) {
3024
3027
  var a = i[r], o = this.at(n, t);
@@ -3026,7 +3029,7 @@ U.prototype.reset = function(e, t, n) {
3026
3029
  n = this.nextIndex(n, t);
3027
3030
  }
3028
3031
  return this.pos = n, !0;
3029
- }, H.validateRegExpFlags = function(e) {
3032
+ }, U.validateRegExpFlags = function(e) {
3030
3033
  for (var t = e.validFlags, n = e.flags, r = !1, i = !1, a = 0; a < n.length; a++) {
3031
3034
  var o = n.charAt(a);
3032
3035
  t.indexOf(o) === -1 && this.raise(e.start, "Invalid regular expression flag"), n.indexOf(o, a + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), o === "u" && (r = !0), o === "v" && (i = !0);
@@ -3037,23 +3040,23 @@ function wn(e) {
3037
3040
  for (var t in e) return !0;
3038
3041
  return !1;
3039
3042
  }
3040
- H.validateRegExpPattern = function(e) {
3043
+ U.validateRegExpPattern = function(e) {
3041
3044
  this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && wn(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
3042
- }, H.regexp_pattern = function(e) {
3045
+ }, U.regexp_pattern = function(e) {
3043
3046
  e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
3044
3047
  for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
3045
3048
  var r = n[t];
3046
3049
  e.groupNames[r] || e.raise("Invalid named capture referenced");
3047
3050
  }
3048
- }, H.regexp_disjunction = function(e) {
3051
+ }, U.regexp_disjunction = function(e) {
3049
3052
  var t = this.options.ecmaVersion >= 16;
3050
3053
  for (t && (e.branchID = new Cn(e.branchID, null)), this.regexp_alternative(e); e.eat(124);) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
3051
3054
  t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
3052
- }, H.regexp_alternative = function(e) {
3055
+ }, U.regexp_alternative = function(e) {
3053
3056
  for (; e.pos < e.source.length && this.regexp_eatTerm(e););
3054
- }, H.regexp_eatTerm = function(e) {
3057
+ }, U.regexp_eatTerm = function(e) {
3055
3058
  return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), !0) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), !0) : !1;
3056
- }, H.regexp_eatAssertion = function(e) {
3059
+ }, U.regexp_eatAssertion = function(e) {
3057
3060
  var t = e.pos;
3058
3061
  if (e.lastAssertionIsQuantifiable = !1, e.eat(94) || e.eat(36)) return !0;
3059
3062
  if (e.eat(92)) {
@@ -3065,11 +3068,11 @@ H.validateRegExpPattern = function(e) {
3065
3068
  if (this.options.ecmaVersion >= 9 && (n = e.eat(60)), e.eat(61) || e.eat(33)) return this.regexp_disjunction(e), e.eat(41) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !n, !0;
3066
3069
  }
3067
3070
  return e.pos = t, !1;
3068
- }, H.regexp_eatQuantifier = function(e, t) {
3071
+ }, U.regexp_eatQuantifier = function(e, t) {
3069
3072
  return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1;
3070
- }, H.regexp_eatQuantifierPrefix = function(e, t) {
3073
+ }, U.regexp_eatQuantifierPrefix = function(e, t) {
3071
3074
  return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
3072
- }, H.regexp_eatBracedQuantifier = function(e, t) {
3075
+ }, U.regexp_eatBracedQuantifier = function(e, t) {
3073
3076
  var n = e.pos;
3074
3077
  if (e.eat(123)) {
3075
3078
  var r = 0, i = -1;
@@ -3077,16 +3080,16 @@ H.validateRegExpPattern = function(e) {
3077
3080
  e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = n;
3078
3081
  }
3079
3082
  return !1;
3080
- }, H.regexp_eatAtom = function(e) {
3083
+ }, U.regexp_eatAtom = function(e) {
3081
3084
  return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
3082
- }, H.regexp_eatReverseSolidusAtomEscape = function(e) {
3085
+ }, U.regexp_eatReverseSolidusAtomEscape = function(e) {
3083
3086
  var t = e.pos;
3084
3087
  if (e.eat(92)) {
3085
3088
  if (this.regexp_eatAtomEscape(e)) return !0;
3086
3089
  e.pos = t;
3087
3090
  }
3088
3091
  return !1;
3089
- }, H.regexp_eatUncapturingGroup = function(e) {
3092
+ }, U.regexp_eatUncapturingGroup = function(e) {
3090
3093
  var t = e.pos;
3091
3094
  if (e.eat(40)) {
3092
3095
  if (e.eat(63)) {
@@ -3115,37 +3118,37 @@ H.validateRegExpPattern = function(e) {
3115
3118
  e.pos = t;
3116
3119
  }
3117
3120
  return !1;
3118
- }, H.regexp_eatCapturingGroup = function(e) {
3121
+ }, U.regexp_eatCapturingGroup = function(e) {
3119
3122
  if (e.eat(40)) {
3120
3123
  if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(41)) return e.numCapturingParens += 1, !0;
3121
3124
  e.raise("Unterminated group");
3122
3125
  }
3123
3126
  return !1;
3124
- }, H.regexp_eatModifiers = function(e) {
3127
+ }, U.regexp_eatModifiers = function(e) {
3125
3128
  for (var t = "", n = 0; (n = e.current()) !== -1 && Tn(n);) t += ct(n), e.advance();
3126
3129
  return t;
3127
3130
  };
3128
3131
  function Tn(e) {
3129
3132
  return e === 105 || e === 109 || e === 115;
3130
3133
  }
3131
- H.regexp_eatExtendedAtom = function(e) {
3134
+ U.regexp_eatExtendedAtom = function(e) {
3132
3135
  return e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
3133
- }, H.regexp_eatInvalidBracedQuantifier = function(e) {
3136
+ }, U.regexp_eatInvalidBracedQuantifier = function(e) {
3134
3137
  return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
3135
- }, H.regexp_eatSyntaxCharacter = function(e) {
3138
+ }, U.regexp_eatSyntaxCharacter = function(e) {
3136
3139
  var t = e.current();
3137
3140
  return En(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
3138
3141
  };
3139
3142
  function En(e) {
3140
3143
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
3141
3144
  }
3142
- H.regexp_eatPatternCharacters = function(e) {
3145
+ U.regexp_eatPatternCharacters = function(e) {
3143
3146
  for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !En(n);) e.advance();
3144
3147
  return e.pos !== t;
3145
- }, H.regexp_eatExtendedPatternCharacter = function(e) {
3148
+ }, U.regexp_eatExtendedPatternCharacter = function(e) {
3146
3149
  var t = e.current();
3147
3150
  return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
3148
- }, H.regexp_groupSpecifier = function(e) {
3151
+ }, U.regexp_groupSpecifier = function(e) {
3149
3152
  if (e.eat(63)) {
3150
3153
  this.regexp_eatGroupName(e) || e.raise("Invalid group");
3151
3154
  var t = this.options.ecmaVersion >= 16, n = e.groupNames[e.lastStringValue];
@@ -3153,35 +3156,35 @@ H.regexp_eatPatternCharacters = function(e) {
3153
3156
  else e.raise("Duplicate capture group name");
3154
3157
  t ? (n || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
3155
3158
  }
3156
- }, H.regexp_eatGroupName = function(e) {
3159
+ }, U.regexp_eatGroupName = function(e) {
3157
3160
  if (e.lastStringValue = "", e.eat(60)) {
3158
3161
  if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return !0;
3159
3162
  e.raise("Invalid capture group name");
3160
3163
  }
3161
3164
  return !1;
3162
- }, H.regexp_eatRegExpIdentifierName = function(e) {
3165
+ }, U.regexp_eatRegExpIdentifierName = function(e) {
3163
3166
  if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
3164
3167
  for (e.lastStringValue += ct(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e);) e.lastStringValue += ct(e.lastIntValue);
3165
3168
  return !0;
3166
3169
  }
3167
3170
  return !1;
3168
- }, H.regexp_eatRegExpIdentifierStart = function(e) {
3171
+ }, U.regexp_eatRegExpIdentifierStart = function(e) {
3169
3172
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
3170
3173
  return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), Dn(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
3171
3174
  };
3172
3175
  function Dn(e) {
3173
- return T(e, !0) || e === 36 || e === 95;
3176
+ return E(e, !0) || e === 36 || e === 95;
3174
3177
  }
3175
- H.regexp_eatRegExpIdentifierPart = function(e) {
3178
+ U.regexp_eatRegExpIdentifierPart = function(e) {
3176
3179
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
3177
3180
  return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), On(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
3178
3181
  };
3179
3182
  function On(e) {
3180
3183
  return Ye(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
3181
3184
  }
3182
- H.regexp_eatAtomEscape = function(e) {
3185
+ U.regexp_eatAtomEscape = function(e) {
3183
3186
  return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
3184
- }, H.regexp_eatBackReference = function(e) {
3187
+ }, U.regexp_eatBackReference = function(e) {
3185
3188
  var t = e.pos;
3186
3189
  if (this.regexp_eatDecimalEscape(e)) {
3187
3190
  var n = e.lastIntValue;
@@ -3190,34 +3193,34 @@ H.regexp_eatAtomEscape = function(e) {
3190
3193
  e.pos = t;
3191
3194
  }
3192
3195
  return !1;
3193
- }, H.regexp_eatKGroupName = function(e) {
3196
+ }, U.regexp_eatKGroupName = function(e) {
3194
3197
  if (e.eat(107)) {
3195
3198
  if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), !0;
3196
3199
  e.raise("Invalid named reference");
3197
3200
  }
3198
3201
  return !1;
3199
- }, H.regexp_eatCharacterEscape = function(e) {
3202
+ }, U.regexp_eatCharacterEscape = function(e) {
3200
3203
  return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
3201
- }, H.regexp_eatCControlLetter = function(e) {
3204
+ }, U.regexp_eatCControlLetter = function(e) {
3202
3205
  var t = e.pos;
3203
3206
  if (e.eat(99)) {
3204
3207
  if (this.regexp_eatControlLetter(e)) return !0;
3205
3208
  e.pos = t;
3206
3209
  }
3207
3210
  return !1;
3208
- }, H.regexp_eatZero = function(e) {
3211
+ }, U.regexp_eatZero = function(e) {
3209
3212
  return e.current() === 48 && !zn(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
3210
- }, H.regexp_eatControlEscape = function(e) {
3213
+ }, U.regexp_eatControlEscape = function(e) {
3211
3214
  var t = e.current();
3212
3215
  return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
3213
- }, H.regexp_eatControlLetter = function(e) {
3216
+ }, U.regexp_eatControlLetter = function(e) {
3214
3217
  var t = e.current();
3215
3218
  return kn(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
3216
3219
  };
3217
3220
  function kn(e) {
3218
3221
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
3219
3222
  }
3220
- H.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
3223
+ U.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
3221
3224
  t === void 0 && (t = !1);
3222
3225
  var n = e.pos, r = t || e.switchU;
3223
3226
  if (e.eat(117)) {
@@ -3241,11 +3244,11 @@ H.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
3241
3244
  function An(e) {
3242
3245
  return e >= 0 && e <= 1114111;
3243
3246
  }
3244
- H.regexp_eatIdentityEscape = function(e) {
3247
+ U.regexp_eatIdentityEscape = function(e) {
3245
3248
  if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
3246
3249
  var t = e.current();
3247
3250
  return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
3248
- }, H.regexp_eatDecimalEscape = function(e) {
3251
+ }, U.regexp_eatDecimalEscape = function(e) {
3249
3252
  e.lastIntValue = 0;
3250
3253
  var t = e.current();
3251
3254
  if (t >= 49 && t <= 57) {
@@ -3256,15 +3259,15 @@ H.regexp_eatIdentityEscape = function(e) {
3256
3259
  }
3257
3260
  return !1;
3258
3261
  };
3259
- var jn = 0, Mn = 1, W = 2;
3260
- H.regexp_eatCharacterClassEscape = function(e) {
3262
+ var jn = 0, Mn = 1, G = 2;
3263
+ U.regexp_eatCharacterClassEscape = function(e) {
3261
3264
  var t = e.current();
3262
3265
  if (Nn(t)) return e.lastIntValue = -1, e.advance(), Mn;
3263
3266
  var n = !1;
3264
3267
  if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
3265
3268
  e.lastIntValue = -1, e.advance();
3266
3269
  var r;
3267
- if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === W && e.raise("Invalid property name"), r;
3270
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === G && e.raise("Invalid property name"), r;
3268
3271
  e.raise("Invalid property name");
3269
3272
  }
3270
3273
  return jn;
@@ -3272,7 +3275,7 @@ H.regexp_eatCharacterClassEscape = function(e) {
3272
3275
  function Nn(e) {
3273
3276
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
3274
3277
  }
3275
- H.regexp_eatUnicodePropertyValueExpression = function(e) {
3278
+ U.regexp_eatUnicodePropertyValueExpression = function(e) {
3276
3279
  var t = e.pos;
3277
3280
  if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
3278
3281
  var n = e.lastStringValue;
@@ -3286,13 +3289,13 @@ H.regexp_eatUnicodePropertyValueExpression = function(e) {
3286
3289
  return this.regexp_validateUnicodePropertyNameOrValue(e, i);
3287
3290
  }
3288
3291
  return jn;
3289
- }, H.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
3292
+ }, U.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
3290
3293
  it(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
3291
- }, H.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
3294
+ }, U.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
3292
3295
  if (e.unicodeProperties.binary.test(t)) return Mn;
3293
- if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return W;
3296
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return G;
3294
3297
  e.raise("Invalid property name");
3295
- }, H.regexp_eatUnicodePropertyName = function(e) {
3298
+ }, U.regexp_eatUnicodePropertyName = function(e) {
3296
3299
  var t = 0;
3297
3300
  for (e.lastStringValue = ""; Pn(t = e.current());) e.lastStringValue += ct(t), e.advance();
3298
3301
  return e.lastStringValue !== "";
@@ -3300,7 +3303,7 @@ H.regexp_eatUnicodePropertyValueExpression = function(e) {
3300
3303
  function Pn(e) {
3301
3304
  return kn(e) || e === 95;
3302
3305
  }
3303
- H.regexp_eatUnicodePropertyValue = function(e) {
3306
+ U.regexp_eatUnicodePropertyValue = function(e) {
3304
3307
  var t = 0;
3305
3308
  for (e.lastStringValue = ""; Fn(t = e.current());) e.lastStringValue += ct(t), e.advance();
3306
3309
  return e.lastStringValue !== "";
@@ -3308,17 +3311,17 @@ H.regexp_eatUnicodePropertyValue = function(e) {
3308
3311
  function Fn(e) {
3309
3312
  return Pn(e) || zn(e);
3310
3313
  }
3311
- H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3314
+ U.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3312
3315
  return this.regexp_eatUnicodePropertyValue(e);
3313
- }, H.regexp_eatCharacterClass = function(e) {
3316
+ }, U.regexp_eatCharacterClass = function(e) {
3314
3317
  if (e.eat(91)) {
3315
3318
  var t = e.eat(94), n = this.regexp_classContents(e);
3316
- return e.eat(93) || e.raise("Unterminated character class"), t && n === W && e.raise("Negated character class may contain strings"), !0;
3319
+ return e.eat(93) || e.raise("Unterminated character class"), t && n === G && e.raise("Negated character class may contain strings"), !0;
3317
3320
  }
3318
3321
  return !1;
3319
- }, H.regexp_classContents = function(e) {
3322
+ }, U.regexp_classContents = function(e) {
3320
3323
  return e.current() === 93 ? Mn : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), Mn);
3321
- }, H.regexp_nonEmptyClassRanges = function(e) {
3324
+ }, U.regexp_nonEmptyClassRanges = function(e) {
3322
3325
  for (; this.regexp_eatClassAtom(e);) {
3323
3326
  var t = e.lastIntValue;
3324
3327
  if (e.eat(45) && this.regexp_eatClassAtom(e)) {
@@ -3326,7 +3329,7 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3326
3329
  e.switchU && (t === -1 || n === -1) && e.raise("Invalid character class"), t !== -1 && n !== -1 && t > n && e.raise("Range out of order in character class");
3327
3330
  }
3328
3331
  }
3329
- }, H.regexp_eatClassAtom = function(e) {
3332
+ }, U.regexp_eatClassAtom = function(e) {
3330
3333
  var t = e.pos;
3331
3334
  if (e.eat(92)) {
3332
3335
  if (this.regexp_eatClassEscape(e)) return !0;
@@ -3338,7 +3341,7 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3338
3341
  }
3339
3342
  var r = e.current();
3340
3343
  return r === 93 ? !1 : (e.lastIntValue = r, e.advance(), !0);
3341
- }, H.regexp_eatClassEscape = function(e) {
3344
+ }, U.regexp_eatClassEscape = function(e) {
3342
3345
  var t = e.pos;
3343
3346
  if (e.eat(98)) return e.lastIntValue = 8, !0;
3344
3347
  if (e.switchU && e.eat(45)) return e.lastIntValue = 45, !0;
@@ -3347,13 +3350,13 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3347
3350
  e.pos = t;
3348
3351
  }
3349
3352
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
3350
- }, H.regexp_classSetExpression = function(e) {
3353
+ }, U.regexp_classSetExpression = function(e) {
3351
3354
  var t = Mn, n;
3352
3355
  if (!this.regexp_eatClassSetRange(e)) if (n = this.regexp_eatClassSetOperand(e)) {
3353
- n === W && (t = W);
3356
+ n === G && (t = G);
3354
3357
  for (var r = e.pos; e.eatChars([38, 38]);) {
3355
3358
  if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
3356
- n !== W && (t = Mn);
3359
+ n !== G && (t = Mn);
3357
3360
  continue;
3358
3361
  }
3359
3362
  e.raise("Invalid character in character class");
@@ -3364,9 +3367,9 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3364
3367
  } else e.raise("Invalid character in character class");
3365
3368
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
3366
3369
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
3367
- n === W && (t = W);
3370
+ n === G && (t = G);
3368
3371
  }
3369
- }, H.regexp_eatClassSetRange = function(e) {
3372
+ }, U.regexp_eatClassSetRange = function(e) {
3370
3373
  var t = e.pos;
3371
3374
  if (this.regexp_eatClassSetCharacter(e)) {
3372
3375
  var n = e.lastIntValue;
@@ -3377,13 +3380,13 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3377
3380
  e.pos = t;
3378
3381
  }
3379
3382
  return !1;
3380
- }, H.regexp_eatClassSetOperand = function(e) {
3383
+ }, U.regexp_eatClassSetOperand = function(e) {
3381
3384
  return this.regexp_eatClassSetCharacter(e) ? Mn : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
3382
- }, H.regexp_eatNestedClass = function(e) {
3385
+ }, U.regexp_eatNestedClass = function(e) {
3383
3386
  var t = e.pos;
3384
3387
  if (e.eat(91)) {
3385
3388
  var n = e.eat(94), r = this.regexp_classContents(e);
3386
- if (e.eat(93)) return n && r === W && e.raise("Negated character class may contain strings"), r;
3389
+ if (e.eat(93)) return n && r === G && e.raise("Negated character class may contain strings"), r;
3387
3390
  e.pos = t;
3388
3391
  }
3389
3392
  if (e.eat(92)) {
@@ -3392,7 +3395,7 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3392
3395
  e.pos = t;
3393
3396
  }
3394
3397
  return null;
3395
- }, H.regexp_eatClassStringDisjunction = function(e) {
3398
+ }, U.regexp_eatClassStringDisjunction = function(e) {
3396
3399
  var t = e.pos;
3397
3400
  if (e.eatChars([92, 113])) {
3398
3401
  if (e.eat(123)) {
@@ -3402,13 +3405,13 @@ H.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3402
3405
  e.pos = t;
3403
3406
  }
3404
3407
  return null;
3405
- }, H.regexp_classStringDisjunctionContents = function(e) {
3406
- for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === W && (t = W);
3408
+ }, U.regexp_classStringDisjunctionContents = function(e) {
3409
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === G && (t = G);
3407
3410
  return t;
3408
- }, H.regexp_classString = function(e) {
3411
+ }, U.regexp_classString = function(e) {
3409
3412
  for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
3410
- return t === 1 ? Mn : W;
3411
- }, H.regexp_eatClassSetCharacter = function(e) {
3413
+ return t === 1 ? Mn : G;
3414
+ }, U.regexp_eatClassSetCharacter = function(e) {
3412
3415
  var t = e.pos;
3413
3416
  if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(98) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
3414
3417
  var n = e.current();
@@ -3420,24 +3423,24 @@ function In(e) {
3420
3423
  function Ln(e) {
3421
3424
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
3422
3425
  }
3423
- H.regexp_eatClassSetReservedPunctuator = function(e) {
3426
+ U.regexp_eatClassSetReservedPunctuator = function(e) {
3424
3427
  var t = e.current();
3425
3428
  return Rn(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
3426
3429
  };
3427
3430
  function Rn(e) {
3428
3431
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
3429
3432
  }
3430
- H.regexp_eatClassControlLetter = function(e) {
3433
+ U.regexp_eatClassControlLetter = function(e) {
3431
3434
  var t = e.current();
3432
3435
  return zn(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
3433
- }, H.regexp_eatHexEscapeSequence = function(e) {
3436
+ }, U.regexp_eatHexEscapeSequence = function(e) {
3434
3437
  var t = e.pos;
3435
3438
  if (e.eat(120)) {
3436
3439
  if (this.regexp_eatFixedHexDigits(e, 2)) return !0;
3437
3440
  e.switchU && e.raise("Invalid escape"), e.pos = t;
3438
3441
  }
3439
3442
  return !1;
3440
- }, H.regexp_eatDecimalDigits = function(e) {
3443
+ }, U.regexp_eatDecimalDigits = function(e) {
3441
3444
  var t = e.pos, n = 0;
3442
3445
  for (e.lastIntValue = 0; zn(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
3443
3446
  return e.pos !== t;
@@ -3445,7 +3448,7 @@ H.regexp_eatClassControlLetter = function(e) {
3445
3448
  function zn(e) {
3446
3449
  return e >= 48 && e <= 57;
3447
3450
  }
3448
- H.regexp_eatHexDigits = function(e) {
3451
+ U.regexp_eatHexDigits = function(e) {
3449
3452
  var t = e.pos, n = 0;
3450
3453
  for (e.lastIntValue = 0; Bn(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + Vn(n), e.advance();
3451
3454
  return e.pos !== t;
@@ -3456,7 +3459,7 @@ function Bn(e) {
3456
3459
  function Vn(e) {
3457
3460
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
3458
3461
  }
3459
- H.regexp_eatLegacyOctalEscapeSequence = function(e) {
3462
+ U.regexp_eatLegacyOctalEscapeSequence = function(e) {
3460
3463
  if (this.regexp_eatOctalDigit(e)) {
3461
3464
  var t = e.lastIntValue;
3462
3465
  if (this.regexp_eatOctalDigit(e)) {
@@ -3466,14 +3469,14 @@ H.regexp_eatLegacyOctalEscapeSequence = function(e) {
3466
3469
  return !0;
3467
3470
  }
3468
3471
  return !1;
3469
- }, H.regexp_eatOctalDigit = function(e) {
3472
+ }, U.regexp_eatOctalDigit = function(e) {
3470
3473
  var t = e.current();
3471
3474
  return Hn(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
3472
3475
  };
3473
3476
  function Hn(e) {
3474
3477
  return e >= 48 && e <= 55;
3475
3478
  }
3476
- H.regexp_eatFixedHexDigits = function(e, t) {
3479
+ U.regexp_eatFixedHexDigits = function(e, t) {
3477
3480
  var n = e.pos;
3478
3481
  e.lastIntValue = 0;
3479
3482
  for (var r = 0; r < t; ++r) {
@@ -3485,42 +3488,42 @@ H.regexp_eatFixedHexDigits = function(e, t) {
3485
3488
  };
3486
3489
  var Un = function(e) {
3487
3490
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new dt(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
3488
- }, G = P.prototype;
3489
- G.next = function(e) {
3491
+ }, K = F.prototype;
3492
+ K.next = function(e) {
3490
3493
  !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Un(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
3491
- }, G.getToken = function() {
3494
+ }, K.getToken = function() {
3492
3495
  return this.next(), new Un(this);
3493
- }, typeof Symbol < "u" && (G[Symbol.iterator] = function() {
3496
+ }, typeof Symbol < "u" && (K[Symbol.iterator] = function() {
3494
3497
  var e = this;
3495
3498
  return { next: function() {
3496
3499
  var t = e.getToken();
3497
3500
  return {
3498
- done: t.type === j.eof,
3501
+ done: t.type === M.eof,
3499
3502
  value: t
3500
3503
  };
3501
3504
  } };
3502
- }), G.nextToken = function() {
3505
+ }), K.nextToken = function() {
3503
3506
  var e = this.curContext();
3504
- if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(j.eof);
3507
+ if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(M.eof);
3505
3508
  if (e.override) return e.override(this);
3506
3509
  this.readToken(this.fullCharCodeAtPos());
3507
- }, G.readToken = function(e) {
3508
- return T(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
3509
- }, G.fullCharCodeAt = function(e) {
3510
+ }, K.readToken = function(e) {
3511
+ return E(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
3512
+ }, K.fullCharCodeAt = function(e) {
3510
3513
  var t = this.input.charCodeAt(e);
3511
3514
  if (t <= 55295 || t >= 56320) return t;
3512
3515
  var n = this.input.charCodeAt(e + 1);
3513
3516
  return n <= 56319 || n >= 57344 ? t : (t << 10) + n - 56613888;
3514
- }, G.fullCharCodeAtPos = function() {
3517
+ }, K.fullCharCodeAtPos = function() {
3515
3518
  return this.fullCharCodeAt(this.pos);
3516
- }, G.skipBlockComment = function() {
3519
+ }, K.skipBlockComment = function() {
3517
3520
  var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
3518
3521
  if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r = $e(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
3519
3522
  this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
3520
- }, G.skipLineComment = function(e) {
3523
+ }, K.skipLineComment = function(e) {
3521
3524
  for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Qe(r);) r = this.input.charCodeAt(++this.pos);
3522
3525
  this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
3523
- }, G.skipSpace = function() {
3526
+ }, K.skipSpace = function() {
3524
3527
  loop: for (; this.pos < this.input.length;) {
3525
3528
  var e = this.input.charCodeAt(this.pos);
3526
3529
  switch (e) {
@@ -3549,65 +3552,65 @@ G.next = function(e) {
3549
3552
  else break loop;
3550
3553
  }
3551
3554
  }
3552
- }, G.finishToken = function(e, t) {
3555
+ }, K.finishToken = function(e, t) {
3553
3556
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
3554
3557
  var n = this.type;
3555
3558
  this.type = e, this.value = t, this.updateContext(n);
3556
- }, G.readToken_dot = function() {
3559
+ }, K.readToken_dot = function() {
3557
3560
  var e = this.input.charCodeAt(this.pos + 1);
3558
3561
  if (e >= 48 && e <= 57) return this.readNumber(!0);
3559
3562
  var t = this.input.charCodeAt(this.pos + 2);
3560
- return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(j.ellipsis)) : (++this.pos, this.finishToken(j.dot));
3561
- }, G.readToken_slash = function() {
3563
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(M.ellipsis)) : (++this.pos, this.finishToken(M.dot));
3564
+ }, K.readToken_slash = function() {
3562
3565
  var e = this.input.charCodeAt(this.pos + 1);
3563
- return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(j.assign, 2) : this.finishOp(j.slash, 1);
3564
- }, G.readToken_mult_modulo_exp = function(e) {
3565
- var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? j.star : j.modulo;
3566
- return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = j.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(j.assign, n + 1) : this.finishOp(r, n);
3567
- }, G.readToken_pipe_amp = function(e) {
3566
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(M.assign, 2) : this.finishOp(M.slash, 1);
3567
+ }, K.readToken_mult_modulo_exp = function(e) {
3568
+ var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? M.star : M.modulo;
3569
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = M.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(M.assign, n + 1) : this.finishOp(r, n);
3570
+ }, K.readToken_pipe_amp = function(e) {
3568
3571
  var t = this.input.charCodeAt(this.pos + 1);
3569
- return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(j.assign, 3) : this.finishOp(e === 124 ? j.logicalOR : j.logicalAND, 2) : t === 61 ? this.finishOp(j.assign, 2) : this.finishOp(e === 124 ? j.bitwiseOR : j.bitwiseAND, 1);
3570
- }, G.readToken_caret = function() {
3571
- return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(j.assign, 2) : this.finishOp(j.bitwiseXOR, 1);
3572
- }, G.readToken_plus_min = function(e) {
3572
+ return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(M.assign, 3) : this.finishOp(e === 124 ? M.logicalOR : M.logicalAND, 2) : t === 61 ? this.finishOp(M.assign, 2) : this.finishOp(e === 124 ? M.bitwiseOR : M.bitwiseAND, 1);
3573
+ }, K.readToken_caret = function() {
3574
+ return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(M.assign, 2) : this.finishOp(M.bitwiseXOR, 1);
3575
+ }, K.readToken_plus_min = function(e) {
3573
3576
  var t = this.input.charCodeAt(this.pos + 1);
3574
- return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || M.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(j.incDec, 2) : t === 61 ? this.finishOp(j.assign, 2) : this.finishOp(j.plusMin, 1);
3575
- }, G.readToken_lt_gt = function(e) {
3577
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || N.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(M.incDec, 2) : t === 61 ? this.finishOp(M.assign, 2) : this.finishOp(M.plusMin, 1);
3578
+ }, K.readToken_lt_gt = function(e) {
3576
3579
  var t = this.input.charCodeAt(this.pos + 1), n = 1;
3577
- return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(j.assign, n + 1) : this.finishOp(j.bitShift, n)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (n = 2), this.finishOp(j.relational, n));
3578
- }, G.readToken_eq_excl = function(e) {
3580
+ return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(M.assign, n + 1) : this.finishOp(M.bitShift, n)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (n = 2), this.finishOp(M.relational, n));
3581
+ }, K.readToken_eq_excl = function(e) {
3579
3582
  var t = this.input.charCodeAt(this.pos + 1);
3580
- return t === 61 ? this.finishOp(j.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(j.arrow)) : this.finishOp(e === 61 ? j.eq : j.prefix, 1);
3581
- }, G.readToken_question = function() {
3583
+ return t === 61 ? this.finishOp(M.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(M.arrow)) : this.finishOp(e === 61 ? M.eq : M.prefix, 1);
3584
+ }, K.readToken_question = function() {
3582
3585
  var e = this.options.ecmaVersion;
3583
3586
  if (e >= 11) {
3584
3587
  var t = this.input.charCodeAt(this.pos + 1);
3585
3588
  if (t === 46) {
3586
3589
  var n = this.input.charCodeAt(this.pos + 2);
3587
- if (n < 48 || n > 57) return this.finishOp(j.questionDot, 2);
3590
+ if (n < 48 || n > 57) return this.finishOp(M.questionDot, 2);
3588
3591
  }
3589
- if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(j.assign, 3) : this.finishOp(j.coalesce, 2);
3592
+ if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(M.assign, 3) : this.finishOp(M.coalesce, 2);
3590
3593
  }
3591
- return this.finishOp(j.question, 1);
3592
- }, G.readToken_numberSign = function() {
3594
+ return this.finishOp(M.question, 1);
3595
+ }, K.readToken_numberSign = function() {
3593
3596
  var e = this.options.ecmaVersion, t = 35;
3594
- if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), T(t, !0) || t === 92)) return this.finishToken(j.privateId, this.readWord1());
3597
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), E(t, !0) || t === 92)) return this.finishToken(M.privateId, this.readWord1());
3595
3598
  this.raise(this.pos, "Unexpected character '" + ct(t) + "'");
3596
- }, G.getTokenFromCode = function(e) {
3599
+ }, K.getTokenFromCode = function(e) {
3597
3600
  switch (e) {
3598
3601
  case 46: return this.readToken_dot();
3599
- case 40: return ++this.pos, this.finishToken(j.parenL);
3600
- case 41: return ++this.pos, this.finishToken(j.parenR);
3601
- case 59: return ++this.pos, this.finishToken(j.semi);
3602
- case 44: return ++this.pos, this.finishToken(j.comma);
3603
- case 91: return ++this.pos, this.finishToken(j.bracketL);
3604
- case 93: return ++this.pos, this.finishToken(j.bracketR);
3605
- case 123: return ++this.pos, this.finishToken(j.braceL);
3606
- case 125: return ++this.pos, this.finishToken(j.braceR);
3607
- case 58: return ++this.pos, this.finishToken(j.colon);
3602
+ case 40: return ++this.pos, this.finishToken(M.parenL);
3603
+ case 41: return ++this.pos, this.finishToken(M.parenR);
3604
+ case 59: return ++this.pos, this.finishToken(M.semi);
3605
+ case 44: return ++this.pos, this.finishToken(M.comma);
3606
+ case 91: return ++this.pos, this.finishToken(M.bracketL);
3607
+ case 93: return ++this.pos, this.finishToken(M.bracketR);
3608
+ case 123: return ++this.pos, this.finishToken(M.braceL);
3609
+ case 125: return ++this.pos, this.finishToken(M.braceR);
3610
+ case 58: return ++this.pos, this.finishToken(M.colon);
3608
3611
  case 96:
3609
3612
  if (this.options.ecmaVersion < 6) break;
3610
- return ++this.pos, this.finishToken(j.backQuote);
3613
+ return ++this.pos, this.finishToken(M.backQuote);
3611
3614
  case 48:
3612
3615
  var t = this.input.charCodeAt(this.pos + 1);
3613
3616
  if (t === 120 || t === 88) return this.readRadixNumber(16);
@@ -3639,18 +3642,18 @@ G.next = function(e) {
3639
3642
  case 61:
3640
3643
  case 33: return this.readToken_eq_excl(e);
3641
3644
  case 63: return this.readToken_question();
3642
- case 126: return this.finishOp(j.prefix, 1);
3645
+ case 126: return this.finishOp(M.prefix, 1);
3643
3646
  case 35: return this.readToken_numberSign();
3644
3647
  }
3645
3648
  this.raise(this.pos, "Unexpected character '" + ct(e) + "'");
3646
- }, G.finishOp = function(e, t) {
3649
+ }, K.finishOp = function(e, t) {
3647
3650
  var n = this.input.slice(this.pos, this.pos + t);
3648
3651
  return this.pos += t, this.finishToken(e, n);
3649
- }, G.readRegexp = function() {
3652
+ }, K.readRegexp = function() {
3650
3653
  for (var e, t, n = this.pos;;) {
3651
3654
  this.pos >= this.input.length && this.raise(n, "Unterminated regular expression");
3652
3655
  var r = this.input.charAt(this.pos);
3653
- if (M.test(r) && this.raise(n, "Unterminated regular expression"), e) e = !1;
3656
+ if (N.test(r) && this.raise(n, "Unterminated regular expression"), e) e = !1;
3654
3657
  else {
3655
3658
  if (r === "[") t = !0;
3656
3659
  else if (r === "]" && t) t = !1;
@@ -3663,18 +3666,18 @@ G.next = function(e) {
3663
3666
  ++this.pos;
3664
3667
  var a = this.pos, o = this.readWord1();
3665
3668
  this.containsEsc && this.unexpected(a);
3666
- var s = this.regexpState ||= new U(this);
3669
+ var s = this.regexpState ||= new W(this);
3667
3670
  s.reset(n, i, o), this.validateRegExpFlags(s), this.validateRegExpPattern(s);
3668
3671
  var c = null;
3669
3672
  try {
3670
3673
  c = new RegExp(i, o);
3671
3674
  } catch {}
3672
- return this.finishToken(j.regexp, {
3675
+ return this.finishToken(M.regexp, {
3673
3676
  pattern: i,
3674
3677
  flags: o,
3675
3678
  value: c
3676
3679
  });
3677
- }, G.readInt = function(e, t, n) {
3680
+ }, K.readInt = function(e, t, n) {
3678
3681
  for (var r = this.options.ecmaVersion >= 12 && t === void 0, i = n && this.input.charCodeAt(this.pos) === 48, a = this.pos, o = 0, s = 0, c = 0, l = t ?? Infinity; c < l; ++c, ++this.pos) {
3679
3682
  var u = this.input.charCodeAt(this.pos), d = void 0;
3680
3683
  if (r && u === 95) {
@@ -3692,12 +3695,12 @@ function Wn(e, t) {
3692
3695
  function Gn(e) {
3693
3696
  return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
3694
3697
  }
3695
- G.readRadixNumber = function(e) {
3698
+ K.readRadixNumber = function(e) {
3696
3699
  var t = this.pos;
3697
3700
  this.pos += 2;
3698
3701
  var n = this.readInt(e);
3699
- return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Gn(this.input.slice(t, this.pos)), ++this.pos) : T(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(j.num, n);
3700
- }, G.readNumber = function(e) {
3702
+ return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = Gn(this.input.slice(t, this.pos)), ++this.pos) : E(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(M.num, n);
3703
+ }, K.readNumber = function(e) {
3701
3704
  var t = this.pos;
3702
3705
  !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3703
3706
  var n = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
@@ -3705,12 +3708,12 @@ G.readRadixNumber = function(e) {
3705
3708
  var r = this.input.charCodeAt(this.pos);
3706
3709
  if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
3707
3710
  var i = Gn(this.input.slice(t, this.pos));
3708
- return ++this.pos, T(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(j.num, i);
3711
+ return ++this.pos, E(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(M.num, i);
3709
3712
  }
3710
- n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), T(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3713
+ n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), E(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3711
3714
  var a = Wn(this.input.slice(t, this.pos), n);
3712
- return this.finishToken(j.num, a);
3713
- }, G.readCodePoint = function() {
3715
+ return this.finishToken(M.num, a);
3716
+ }, K.readCodePoint = function() {
3714
3717
  var e = this.input.charCodeAt(this.pos), t;
3715
3718
  if (e === 123) {
3716
3719
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -3718,17 +3721,17 @@ G.readRadixNumber = function(e) {
3718
3721
  t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(n, "Code point out of bounds");
3719
3722
  } else t = this.readHexChar(4);
3720
3723
  return t;
3721
- }, G.readString = function(e) {
3724
+ }, K.readString = function(e) {
3722
3725
  for (var t = "", n = ++this.pos;;) {
3723
3726
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3724
3727
  var r = this.input.charCodeAt(this.pos);
3725
3728
  if (r === e) break;
3726
3729
  r === 92 ? (t += this.input.slice(n, this.pos), t += this.readEscapedChar(!1), n = this.pos) : r === 8232 || r === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Qe(r) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
3727
3730
  }
3728
- return t += this.input.slice(n, this.pos++), this.finishToken(j.string, t);
3731
+ return t += this.input.slice(n, this.pos++), this.finishToken(M.string, t);
3729
3732
  };
3730
3733
  var Kn = {};
3731
- G.tryReadTemplateToken = function() {
3734
+ K.tryReadTemplateToken = function() {
3732
3735
  this.inTemplateElement = !0;
3733
3736
  try {
3734
3737
  this.readTmplToken();
@@ -3737,14 +3740,14 @@ G.tryReadTemplateToken = function() {
3737
3740
  else throw e;
3738
3741
  }
3739
3742
  this.inTemplateElement = !1;
3740
- }, G.invalidStringToken = function(e, t) {
3743
+ }, K.invalidStringToken = function(e, t) {
3741
3744
  if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Kn;
3742
3745
  this.raise(e, t);
3743
- }, G.readTmplToken = function() {
3746
+ }, K.readTmplToken = function() {
3744
3747
  for (var e = "", t = this.pos;;) {
3745
3748
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3746
3749
  var n = this.input.charCodeAt(this.pos);
3747
- if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === j.template || this.type === j.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(j.dollarBraceL)) : (++this.pos, this.finishToken(j.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(j.template, e));
3750
+ if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === M.template || this.type === M.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(M.dollarBraceL)) : (++this.pos, this.finishToken(M.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(M.template, e));
3748
3751
  if (n === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
3749
3752
  else if (Qe(n)) {
3750
3753
  switch (e += this.input.slice(t, this.pos), ++this.pos, n) {
@@ -3759,13 +3762,13 @@ G.tryReadTemplateToken = function() {
3759
3762
  this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3760
3763
  } else ++this.pos;
3761
3764
  }
3762
- }, G.readInvalidTemplateToken = function() {
3765
+ }, K.readInvalidTemplateToken = function() {
3763
3766
  for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
3764
3767
  case "\\":
3765
3768
  ++this.pos;
3766
3769
  break;
3767
3770
  case "$": if (this.input[this.pos + 1] !== "{") break;
3768
- case "`": return this.finishToken(j.invalidTemplate, this.input.slice(this.start, this.pos));
3771
+ case "`": return this.finishToken(M.invalidTemplate, this.input.slice(this.start, this.pos));
3769
3772
  case "\r": this.input[this.pos + 1] === "\n" && ++this.pos;
3770
3773
  case "\n":
3771
3774
  case "\u2028":
@@ -3774,7 +3777,7 @@ G.tryReadTemplateToken = function() {
3774
3777
  break;
3775
3778
  }
3776
3779
  this.raise(this.start, "Unterminated template");
3777
- }, G.readEscapedChar = function(e) {
3780
+ }, K.readEscapedChar = function(e) {
3778
3781
  var t = this.input.charCodeAt(++this.pos);
3779
3782
  switch (++this.pos, t) {
3780
3783
  case 110: return "\n";
@@ -3799,10 +3802,10 @@ G.tryReadTemplateToken = function() {
3799
3802
  }
3800
3803
  return Qe(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3801
3804
  }
3802
- }, G.readHexChar = function(e) {
3805
+ }, K.readHexChar = function(e) {
3803
3806
  var t = this.pos, n = this.readInt(16, e);
3804
3807
  return n === null && this.invalidStringToken(t, "Bad character escape sequence"), n;
3805
- }, G.readWord1 = function() {
3808
+ }, K.readWord1 = function() {
3806
3809
  this.containsEsc = !1;
3807
3810
  for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
3808
3811
  var i = this.fullCharCodeAtPos();
@@ -3812,45 +3815,45 @@ G.tryReadTemplateToken = function() {
3812
3815
  var a = this.pos;
3813
3816
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3814
3817
  var o = this.readCodePoint();
3815
- (t ? T : Ye)(o, r) || this.invalidStringToken(a, "Invalid Unicode escape"), e += ct(o), n = this.pos;
3818
+ (t ? E : Ye)(o, r) || this.invalidStringToken(a, "Invalid Unicode escape"), e += ct(o), n = this.pos;
3816
3819
  } else break;
3817
3820
  t = !1;
3818
3821
  }
3819
3822
  return e + this.input.slice(n, this.pos);
3820
- }, G.readWord = function() {
3821
- var e = this.readWord1(), t = j.name;
3823
+ }, K.readWord = function() {
3824
+ var e = this.readWord1(), t = M.name;
3822
3825
  return this.keywords.test(e) && (t = Xe[e]), this.finishToken(t, e);
3823
3826
  };
3824
3827
  var qn = "8.17.0";
3825
- P.acorn = {
3826
- Parser: P,
3828
+ F.acorn = {
3829
+ Parser: F,
3827
3830
  version: qn,
3828
3831
  defaultOptions: pt,
3829
3832
  Position: ut,
3830
3833
  SourceLocation: dt,
3831
3834
  getLineInfo: ft,
3832
3835
  Node: $t,
3833
- TokenType: E,
3834
- tokTypes: j,
3836
+ TokenType: D,
3837
+ tokTypes: M,
3835
3838
  keywordTypes: Xe,
3836
- TokContext: z,
3837
- tokContexts: B,
3839
+ TokContext: B,
3840
+ tokContexts: V,
3838
3841
  isIdentifierChar: Ye,
3839
- isIdentifierStart: T,
3842
+ isIdentifierStart: E,
3840
3843
  Token: Un,
3841
3844
  isNewLine: Qe,
3842
- lineBreak: M,
3845
+ lineBreak: N,
3843
3846
  lineBreakG: Ze,
3844
3847
  nonASCIIwhitespace: et
3845
3848
  };
3846
3849
  function Jn(e, t) {
3847
- return P.parse(e, t);
3850
+ return F.parse(e, t);
3848
3851
  }
3849
3852
  function Yn(e, t, n) {
3850
- return P.parseExpressionAt(e, t, n);
3853
+ return F.parseExpressionAt(e, t, n);
3851
3854
  }
3852
3855
  function Xn(e, t) {
3853
- return P.tokenizer(e, t);
3856
+ return F.tokenizer(e, t);
3854
3857
  }
3855
3858
  //#endregion
3856
3859
  //#region node_modules/acorn-typescript/lib/index.mjs
@@ -3913,60 +3916,60 @@ function nr(e, t) {
3913
3916
  }
3914
3917
  throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3915
3918
  }
3916
- var K = !0;
3917
- function q(e, t) {
3918
- return t === void 0 && (t = {}), new E("name", t);
3919
+ var q = !0;
3920
+ function J(e, t) {
3921
+ return t === void 0 && (t = {}), new D("name", t);
3919
3922
  }
3920
3923
  var rr = /* @__PURE__ */ new WeakMap();
3921
3924
  function ir(e) {
3922
3925
  var t = rr.get(e.Parser.acorn || e);
3923
3926
  if (!t) {
3924
3927
  var n = {
3925
- assert: q(0, { startsExpr: K }),
3926
- asserts: q(0, { startsExpr: K }),
3927
- global: q(0, { startsExpr: K }),
3928
- keyof: q(0, { startsExpr: K }),
3929
- readonly: q(0, { startsExpr: K }),
3930
- unique: q(0, { startsExpr: K }),
3931
- abstract: q(0, { startsExpr: K }),
3932
- declare: q(0, { startsExpr: K }),
3933
- enum: q(0, { startsExpr: K }),
3934
- module: q(0, { startsExpr: K }),
3935
- namespace: q(0, { startsExpr: K }),
3936
- interface: q(0, { startsExpr: K }),
3937
- type: q(0, { startsExpr: K })
3928
+ assert: J(0, { startsExpr: q }),
3929
+ asserts: J(0, { startsExpr: q }),
3930
+ global: J(0, { startsExpr: q }),
3931
+ keyof: J(0, { startsExpr: q }),
3932
+ readonly: J(0, { startsExpr: q }),
3933
+ unique: J(0, { startsExpr: q }),
3934
+ abstract: J(0, { startsExpr: q }),
3935
+ declare: J(0, { startsExpr: q }),
3936
+ enum: J(0, { startsExpr: q }),
3937
+ module: J(0, { startsExpr: q }),
3938
+ namespace: J(0, { startsExpr: q }),
3939
+ interface: J(0, { startsExpr: q }),
3940
+ type: J(0, { startsExpr: q })
3938
3941
  }, r = {
3939
- at: new E("@"),
3940
- jsxName: new E("jsxName"),
3941
- jsxText: new E("jsxText", { beforeExpr: !0 }),
3942
- jsxTagStart: new E("jsxTagStart", { startsExpr: !0 }),
3943
- jsxTagEnd: new E("jsxTagEnd")
3942
+ at: new D("@"),
3943
+ jsxName: new D("jsxName"),
3944
+ jsxText: new D("jsxText", { beforeExpr: !0 }),
3945
+ jsxTagStart: new D("jsxTagStart", { startsExpr: !0 }),
3946
+ jsxTagEnd: new D("jsxTagEnd")
3944
3947
  }, i = {
3945
- tc_oTag: new z("<tag", !1, !1),
3946
- tc_cTag: new z("</tag", !1, !1),
3947
- tc_expr: new z("<tag>...</tag>", !0, !0)
3948
+ tc_oTag: new B("<tag", !1, !1),
3949
+ tc_cTag: new B("</tag", !1, !1),
3950
+ tc_expr: new B("<tag>...</tag>", !0, !0)
3948
3951
  }, a = RegExp("^(?:" + Object.keys(n).join("|") + ")$");
3949
3952
  r.jsxTagStart.updateContext = function() {
3950
3953
  this.context.push(i.tc_expr), this.context.push(i.tc_oTag), this.exprAllowed = !1;
3951
3954
  }, r.jsxTagEnd.updateContext = function(e) {
3952
3955
  var t = this.context.pop();
3953
- t === i.tc_oTag && e === j.slash || t === i.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === i.tc_expr) : this.exprAllowed = !0;
3956
+ t === i.tc_oTag && e === M.slash || t === i.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === i.tc_expr) : this.exprAllowed = !0;
3954
3957
  }, t = {
3955
3958
  tokTypes: Qn({}, n, r),
3956
3959
  tokContexts: Qn({}, i),
3957
3960
  keywordsRegExp: a,
3958
3961
  tokenIsLiteralPropertyName: function(e) {
3959
3962
  return [
3960
- j.name,
3961
- j.string,
3962
- j.num
3963
+ M.name,
3964
+ M.string,
3965
+ M.num
3963
3966
  ].concat(Object.values(Xe), Object.values(n)).includes(e);
3964
3967
  },
3965
3968
  tokenIsKeywordOrIdentifier: function(e) {
3966
- return [j.name].concat(Object.values(Xe), Object.values(n)).includes(e);
3969
+ return [M.name].concat(Object.values(Xe), Object.values(n)).includes(e);
3967
3970
  },
3968
3971
  tokenIsIdentifier: function(e) {
3969
- return [].concat(Object.values(n), [j.name]).includes(e);
3972
+ return [].concat(Object.values(n), [M.name]).includes(e);
3970
3973
  },
3971
3974
  tokenIsTSDeclarationStart: function(e) {
3972
3975
  return [
@@ -3987,7 +3990,7 @@ function ir(e) {
3987
3990
  ].includes(e);
3988
3991
  },
3989
3992
  tokenIsTemplate: function(e) {
3990
- return e === j.invalidTemplate;
3993
+ return e === M.invalidTemplate;
3991
3994
  }
3992
3995
  };
3993
3996
  }
@@ -4004,7 +4007,7 @@ function lr(e, t) {
4004
4007
  var n = e.key;
4005
4008
  return !e.computed && (n.type === "Identifier" && n.name === t || n.type === "Literal" && n.value === t);
4006
4009
  }
4007
- var J = {
4010
+ var Y = {
4008
4011
  AbstractMethodHasImplementation: function(e) {
4009
4012
  return "Method '" + e.methodName + "' cannot have an implementation because it is marked abstract.";
4010
4013
  },
@@ -4604,7 +4607,7 @@ function Sr(e) {
4604
4607
  }(i), {
4605
4608
  allowedModifiers: ["const"],
4606
4609
  disallowedModifiers: ["in", "out"],
4607
- errorTemplate: J.InvalidModifierOnTypeParameterPositions
4610
+ errorTemplate: Y.InvalidModifierOnTypeParameterPositions
4608
4611
  }), i;
4609
4612
  }
4610
4613
  $n(t, e);
@@ -4682,7 +4685,7 @@ function Sr(e) {
4682
4685
  }, b.tsCheckForInvalidTypeCasts = function(e) {
4683
4686
  var t = this;
4684
4687
  e.forEach(function(e) {
4685
- e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, J.UnexpectedTypeAnnotation);
4688
+ e?.type === "TSTypeCastExpression" && t.raise(e.typeAnnotation.start, Y.UnexpectedTypeAnnotation);
4686
4689
  });
4687
4690
  }, b.atPossibleAsyncArrow = function(e) {
4688
4691
  return e.type === "Identifier" && e.name === "async" && this.lastTokEndLoc.column === e.end && !this.canInsertSemicolon() && e.end - e.start == 5 && e.start === this.potentialArrowAt;
@@ -5000,7 +5003,7 @@ function Sr(e) {
5000
5003
  }, b.tsParseBindingListForSignature = function() {
5001
5004
  var t = this;
5002
5005
  return e.prototype.parseBindingList.call(this, o.parenR, !0, !0).map(function(e) {
5003
- return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, J.UnsupportedSignatureParameterKind(e.type)), e;
5006
+ return e.type !== "Identifier" && e.type !== "RestElement" && e.type !== "ObjectPattern" && e.type !== "ArrayPattern" && t.raise(e.start, Y.UnsupportedSignatureParameterKind(e.type)), e;
5004
5007
  });
5005
5008
  }, b.tsParseTypePredicateAsserts = function() {
5006
5009
  if (this.type !== p.asserts) return !1;
@@ -5046,7 +5049,7 @@ function Sr(e) {
5046
5049
  if (this.lookahead().type !== o._const) return null;
5047
5050
  this.next();
5048
5051
  var e = this.tsParseTypeReference();
5049
- return e.typeParameters && this.raise(e.typeName.start, J.CannotFindName({ name: "const" })), e;
5052
+ return e.typeParameters && this.raise(e.typeName.start, Y.CannotFindName({ name: "const" })), e;
5050
5053
  }, b.tsParseFunctionOrConstructorType = function(e, t) {
5051
5054
  var n = this, r = this.startNode();
5052
5055
  return e === "TSConstructorType" && (r.abstract = !!t, t && this.next(), this.next()), this.tsInAllowConditionalTypesContext(function() {
@@ -5062,7 +5065,7 @@ function Sr(e) {
5062
5065
  switch (e.typeAnnotation.type) {
5063
5066
  case "TSTupleType":
5064
5067
  case "TSArrayType": return;
5065
- default: this.raise(e.start, J.UnexpectedReadonly);
5068
+ default: this.raise(e.start, Y.UnexpectedReadonly);
5066
5069
  }
5067
5070
  }, b.tsParseTypeOperator = function() {
5068
5071
  var e = this.startNode(), t = this.value;
@@ -5095,7 +5098,7 @@ function Sr(e) {
5095
5098
  }(), this.finishNode(t, "TSLiteralType");
5096
5099
  }, b.tsParseImportType = function() {
5097
5100
  var e = this.startNode();
5098
- return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, J.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
5101
+ return this.expect(o._import), this.expect(o.parenL), this.match(o.string) || this.raise(this.start, Y.UnsupportedImportTypeArgument), e.argument = this.parseExprAtom(), this.expect(o.parenR), this.eat(o.dot) && (e.qualifier = this.tsParseEntityName()), this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
5099
5102
  }, b.tsParseTypeQuery = function() {
5100
5103
  var e = this.startNode();
5101
5104
  return this.expect(o._typeof), e.exprName = this.match(o._import) ? this.tsParseImportType() : this.tsParseEntityName(), !this.hasPrecedingLineBreak() && this.tsMatchLeftRelational() && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
@@ -5112,7 +5115,7 @@ function Sr(e) {
5112
5115
  var e = this.startLoc, t = this.start, n = this.eat(o.ellipsis), r = this.tsParseType(), i = this.eat(o.question);
5113
5116
  if (this.eat(o.colon)) {
5114
5117
  var a = this.startNodeAtNode(r);
5115
- a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, J.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
5118
+ a.optional = i, r.type !== "TSTypeReference" || r.typeParameters || r.typeName.type !== "Identifier" ? (this.raise(r.start, Y.InvalidTupleMemberLabel), a.label = r) : a.label = r.typeName, a.elementType = this.tsParseType(), r = this.finishNode(a, "TSNamedTupleMember");
5116
5119
  } else if (i) {
5117
5120
  var s = this.startNodeAtNode(r);
5118
5121
  s.typeAnnotation = r, r = this.finishNode(s, "TSOptionalType");
@@ -5128,11 +5131,11 @@ function Sr(e) {
5128
5131
  var n = !1, r = null;
5129
5132
  return t.elementTypes.forEach(function(t) {
5130
5133
  var i = t.type;
5131
- !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, J.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
5134
+ !n || i === "TSRestType" || i === "TSOptionalType" || i === "TSNamedTupleMember" && t.optional || e.raise(t.start, Y.OptionalTypeBeforeRequired), n ||= i === "TSNamedTupleMember" && t.optional || i === "TSOptionalType";
5132
5135
  var a = i;
5133
5136
  i === "TSRestType" && (a = (t = t.typeAnnotation).type);
5134
5137
  var o = a === "TSNamedTupleMember";
5135
- r ??= o, r !== o && e.raise(t.start, J.MixedLabeledAndUnlabeledElements);
5138
+ r ??= o, r !== o && e.raise(t.start, Y.MixedLabeledAndUnlabeledElements);
5136
5139
  }), this.finishNode(t, "TSTupleType");
5137
5140
  }, b.tsParseTemplateLiteralType = function() {
5138
5141
  var e = this.startNode();
@@ -5249,7 +5252,7 @@ function Sr(e) {
5249
5252
  modified: e,
5250
5253
  allowedModifiers: [],
5251
5254
  disallowedModifiers: ["in", "out"],
5252
- errorTemplate: J.InvalidModifierOnTypeParameterPositions
5255
+ errorTemplate: Y.InvalidModifierOnTypeParameterPositions
5253
5256
  });
5254
5257
  }, b.tsParseTypeParameter = function(e) {
5255
5258
  e === void 0 && (e = this.tsParseNoneModifiers.bind(this));
@@ -5259,7 +5262,7 @@ function Sr(e) {
5259
5262
  var t = this.startNode();
5260
5263
  this.tsMatchLeftRelational() || this.matchJsx("jsxTagStart") ? this.next() : this.unexpected();
5261
5264
  var n = { value: -1 };
5262
- return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, J.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
5265
+ return t.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, e), !1, !0, n), t.params.length === 0 && this.raise(this.start, Y.EmptyTypeParameters), n.value !== -1 && this.addExtra(t, "trailingComma", n.value), this.finishNode(t, "TSTypeParameterDeclaration");
5263
5266
  }, b.tsTryParseTypeParameters = function(e) {
5264
5267
  if (this.tsMatchLeftRelational()) return this.tsParseTypeParameters(e);
5265
5268
  }, b.tsTryParse = function(e) {
@@ -5283,14 +5286,14 @@ function Sr(e) {
5283
5286
  t[a] = n[a];
5284
5287
  }
5285
5288
  }, b.tsParseModifiers = function(e) {
5286
- for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? J.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
5287
- r === i && n[a] && t.raise(e.column, J.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
5289
+ for (var t = this, n = e.modified, r = e.allowedModifiers, i = e.disallowedModifiers, a = e.stopOnStartOfClassStaticBlock, o = e.errorTemplate, s = o === void 0 ? Y.InvalidModifierOnTypeMember : o, c = {}, l = function(e, r, i, a) {
5290
+ r === i && n[a] && t.raise(e.column, Y.InvalidModifiersOrder({ orderedModifiers: [i, a] }));
5288
5291
  }, u = function(e, r, i, a) {
5289
- (n[i] && r === a || n[a] && r === i) && t.raise(e.column, J.IncompatibleModifiers({ modifiers: [i, a] }));
5292
+ (n[i] && r === a || n[a] && r === i) && t.raise(e.column, Y.IncompatibleModifiers({ modifiers: [i, a] }));
5290
5293
  };;) {
5291
5294
  var d = this.startLoc, f = this.tsParseModifier(r.concat(i ?? []), a);
5292
5295
  if (!f) break;
5293
- xr(f) ? n.accessibility ? this.raise(this.start, J.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : _r(f) ? n[f] ? this.raise(this.start, J.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : gr(f) ? n[f] ? this.raise(this.start, J.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, J.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
5296
+ xr(f) ? n.accessibility ? this.raise(this.start, Y.DuplicateAccessibilityModifier()) : (l(d, f, f, "override"), l(d, f, f, "static"), l(d, f, f, "readonly"), l(d, f, f, "accessor"), c.accessibility = f, n.accessibility = f) : _r(f) ? n[f] ? this.raise(this.start, Y.DuplicateModifier({ modifier: f })) : (l(d, f, "in", "out"), c[f] = f, n[f] = !0) : gr(f) ? n[f] ? this.raise(this.start, Y.DuplicateModifier({ modifier: f })) : (u(d, f, "accessor", "readonly"), u(d, f, "accessor", "static"), u(d, f, "accessor", "override"), c[f] = f, n[f] = !0) : Object.hasOwnProperty.call(n, f) ? this.raise(this.start, Y.DuplicateModifier({ modifier: f })) : (l(d, f, "static", "readonly"), l(d, f, "static", "override"), l(d, f, "override", "readonly"), l(d, f, "abstract", "override"), u(d, f, "declare", "override"), u(d, f, "static", "abstract"), c[f] = f, n[f] = !0), i != null && i.includes(f) && this.raise(this.start, s);
5294
5297
  }
5295
5298
  return c;
5296
5299
  }, b.tsParseInOutModifiers = function(e) {
@@ -5306,7 +5309,7 @@ function Sr(e) {
5306
5309
  "abstract",
5307
5310
  "override"
5308
5311
  ],
5309
- errorTemplate: J.InvalidModifierOnTypeParameter
5312
+ errorTemplate: Y.InvalidModifierOnTypeParameter
5310
5313
  });
5311
5314
  }, b.tsParseTypeArguments = function() {
5312
5315
  var e = this, t = this.startNode();
@@ -5314,13 +5317,13 @@ function Sr(e) {
5314
5317
  return e.tsInNoContext(function() {
5315
5318
  return e.expect(o.relational), e.tsParseDelimitedList("TypeParametersOrArguments", e.tsParseType.bind(e));
5316
5319
  });
5317
- }), t.params.length === 0 && this.raise(this.start, J.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
5320
+ }), t.params.length === 0 && this.raise(this.start, Y.EmptyTypeArguments), this.exprAllowed = !1, this.expect(o.relational), this.finishNode(t, "TSTypeParameterInstantiation");
5318
5321
  }, b.tsParseHeritageClause = function(e) {
5319
5322
  var t = this, n = this.start, r = this.tsParseDelimitedList("HeritageClauseElement", function() {
5320
5323
  var e = t.startNode();
5321
5324
  return e.expression = t.tsParseEntityName(), t.tsMatchLeftRelational() && (e.typeParameters = t.tsParseTypeArguments()), t.finishNode(e, "TSExpressionWithTypeArguments");
5322
5325
  });
5323
- return r.length || this.raise(n, J.EmptyHeritageClauseType({ token: e })), r;
5326
+ return r.length || this.raise(n, Y.EmptyHeritageClauseType({ token: e })), r;
5324
5327
  }, b.tsParseTypeMemberSemicolon = function() {
5325
5328
  this.eat(o.comma) || this.isLineTerminator() || this.expect(o.semi);
5326
5329
  }, b.tsTryParseAndCatch = function(e) {
@@ -5334,18 +5337,18 @@ function Sr(e) {
5334
5337
  this.eat(o.question) && (e.optional = !0);
5335
5338
  var n = e;
5336
5339
  if (this.match(o.parenL) || this.tsMatchLeftRelational()) {
5337
- t && this.raise(e.start, J.ReadonlyForMethodSignature);
5340
+ t && this.raise(e.start, Y.ReadonlyForMethodSignature);
5338
5341
  var r = n;
5339
- r.kind && this.tsMatchLeftRelational() && this.raise(this.start, J.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
5342
+ r.kind && this.tsMatchLeftRelational() && this.raise(this.start, Y.AccesorCannotHaveTypeParameters), this.tsFillSignature(o.colon, r), this.tsParseTypeMemberSemicolon();
5340
5343
  var i = "parameters", a = "typeAnnotation";
5341
- if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, J.AccesorCannotDeclareThisParameter));
5344
+ if (r.kind === "get") r[i].length > 0 && (this.raise(this.start, "A 'get' accesor must not have any formal parameters."), this.isThisParam(r[i][0]) && this.raise(this.start, Y.AccesorCannotDeclareThisParameter));
5342
5345
  else if (r.kind === "set") {
5343
5346
  if (r[i].length !== 1) this.raise(this.start, "A 'get' accesor must not have any formal parameters.");
5344
5347
  else {
5345
5348
  var s = r[i][0];
5346
- this.isThisParam(s) && this.raise(this.start, J.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, J.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, J.SetAccesorCannotHaveRestParameter);
5349
+ this.isThisParam(s) && this.raise(this.start, Y.AccesorCannotDeclareThisParameter), s.type === "Identifier" && s.optional && this.raise(this.start, Y.SetAccesorCannotHaveOptionalParameter), s.type === "RestElement" && this.raise(this.start, Y.SetAccesorCannotHaveRestParameter);
5347
5350
  }
5348
- r[a] && this.raise(r[a].start, J.SetAccesorCannotHaveReturnType);
5351
+ r[a] && this.raise(r[a].start, Y.SetAccesorCannotHaveReturnType);
5349
5352
  } else r.kind = "method";
5350
5353
  return this.finishNode(r, "TSMethodSignature");
5351
5354
  }
@@ -5382,7 +5385,7 @@ function Sr(e) {
5382
5385
  return this.expect(o.braceR), e;
5383
5386
  }, b.tsParseInterfaceDeclaration = function(e, t) {
5384
5387
  if (t === void 0 && (t = {}), this.hasFollowingLineBreak()) return null;
5385
- this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, J.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
5388
+ this.expectContextual("interface"), t.declare && (e.declare = !0), v(this.type) ? (e.id = this.parseIdent(), this.checkLValSimple(e.id, 7)) : (e.id = null, this.raise(this.start, Y.MissingInterfaceName)), e.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)), this.eat(o._extends) && (e.extends = this.tsParseHeritageClause("extends"));
5386
5389
  var n = this.startNode();
5387
5390
  return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), e.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode(e, "TSInterfaceDeclaration");
5388
5391
  }, b.tsParseAbstractDeclaration = function(e) {
@@ -5473,7 +5476,7 @@ function Sr(e) {
5473
5476
  }, b.tsParseImportEqualsDeclaration = function(t, n) {
5474
5477
  t.isExport = n || !1, t.id = this.parseIdent(), this.checkLValSimple(t.id, 2), e.prototype.expect.call(this, o.eq);
5475
5478
  var r = this.tsParseModuleReference();
5476
- return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, J.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
5479
+ return t.importKind === "type" && r.type !== "TSExternalModuleReference" && this.raise(r.start, Y.ImportAliasHasImportType), t.moduleReference = r, e.prototype.semicolon.call(this), this.finishNode(t, "TSImportEqualsDeclaration");
5477
5480
  }, b.isExportDefaultSpecifier = function() {
5478
5481
  if (this.tsIsDeclarationStart()) return !1;
5479
5482
  var e = this.type;
@@ -5506,7 +5509,7 @@ function Sr(e) {
5506
5509
  }, b.parseFunctionBody = function(t, n, r, i, a) {
5507
5510
  n === void 0 && (n = !1), r === void 0 && (r = !1), i === void 0 && (i = !1), this.match(o.colon) && (t.returnType = this.tsParseTypeOrTypePredicateAnnotation(o.colon));
5508
5511
  var s = a != null && a.isFunctionDeclaration ? "TSDeclareFunction" : a != null && a.isClassMethod ? "TSDeclareMethod" : void 0;
5509
- return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, J.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
5512
+ return s && !this.match(o.braceL) && this.isLineTerminator() ? this.finishNode(t, s) : s === "TSDeclareFunction" && this.isAmbientContext && (this.raise(t.start, Y.DeclareFunctionHasImplementation), t.declare) ? (e.prototype.parseFunctionBody.call(this, t, n, r, !1), this.finishNode(t, s)) : (e.prototype.parseFunctionBody.call(this, t, n, r, i), t);
5510
5513
  }, b.parseNew = function() {
5511
5514
  var e;
5512
5515
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
@@ -5547,7 +5550,7 @@ function Sr(e) {
5547
5550
  return this.importOrExportOuterKind = "value", r;
5548
5551
  }
5549
5552
  }
5550
- return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, J.TypeImportCannotSpecifyDefaultAndNamed), e;
5553
+ return this.next(), this.type === o.string ? (e.specifiers = [], e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.parseMaybeImportAttributes(e), this.semicolon(), this.finishNode(e, "ImportDeclaration"), this.importOrExportOuterKind = "value", e.importKind === "type" && e.specifiers.length > 1 && e.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(e.start, Y.TypeImportCannotSpecifyDefaultAndNamed), e;
5551
5554
  }, b.parseExportDefaultDeclaration = function() {
5552
5555
  if (this.isAbstractClass()) {
5553
5556
  var t = this.startNode();
@@ -5600,7 +5603,7 @@ function Sr(e) {
5600
5603
  e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), e[t] = !0);
5601
5604
  }, b.parseMaybeDefault = function(t, n, r) {
5602
5605
  var i = e.prototype.parseMaybeDefault.call(this, t, n, r);
5603
- return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, J.TypeAnnotationAfterAssign), i;
5606
+ return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(i.typeAnnotation.start, Y.TypeAnnotationAfterAssign), i;
5604
5607
  }, b.typeCastToParameter = function(e) {
5605
5608
  return e.expression.typeAnnotation = e.typeAnnotation, this.resetEndLocation(e.expression, e.typeAnnotation.end), e.expression;
5606
5609
  }, b.toAssignableList = function(t, n) {
@@ -5651,7 +5654,7 @@ function Sr(e) {
5651
5654
  if (!i) return a;
5652
5655
  for (var o, s = nr(a.declarations); !(o = s()).done;) {
5653
5656
  var c = o.value, l = c.init;
5654
- l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, J.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !yr(l) && this.raise(l.start, J.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5657
+ l && (n !== "const" || c.id.typeAnnotation ? this.raise(l.start, Y.InitializerNotAllowedInAmbientContext) : l.type !== "StringLiteral" && l.type !== "BooleanLiteral" && l.type !== "NumericLiteral" && l.type !== "BigIntLiteral" && (l.type !== "TemplateLiteral" || l.expressions.length > 0) && !yr(l) && this.raise(l.start, Y.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
5655
5658
  }
5656
5659
  return a;
5657
5660
  }, b.parseStatement = function(t, n, r) {
@@ -5672,7 +5675,7 @@ function Sr(e) {
5672
5675
  "private"
5673
5676
  ]);
5674
5677
  }, b.parsePostMemberNameModifiers = function(e) {
5675
- this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, J.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, J.ClassMethodHasDeclare);
5678
+ this.eat(o.question) && (e.optional = !0), e.readonly && this.match(o.parenL) && this.raise(e.start, Y.ClassMethodHasReadonly), e.declare && this.match(o.parenL) && this.raise(e.start, Y.ClassMethodHasDeclare);
5676
5679
  }, b.parseExpressionStatement = function(t, n) {
5677
5680
  return (n.type === "Identifier" ? this.tsParseExpressionStatement(t, n) : void 0) || e.prototype.parseExpressionStatement.call(this, t, n);
5678
5681
  }, b.shouldParseExportStatement = function() {
@@ -5704,7 +5707,7 @@ function Sr(e) {
5704
5707
  return t.parseExportDeclaration(e);
5705
5708
  });
5706
5709
  var n = this.start, r = this.startLoc, i = this.eatContextual("declare");
5707
- !i || !this.ts_isContextual(p.declare) && this.shouldParseExportStatement() || this.raise(this.start, J.ExpectedAmbientAfterExportDeclare);
5710
+ !i || !this.ts_isContextual(p.declare) && this.shouldParseExportStatement() || this.raise(this.start, Y.ExpectedAmbientAfterExportDeclare);
5708
5711
  var a = v(this.type) && this.tsTryParseExportDeclaration() || this.parseStatement(null);
5709
5712
  return a ? ((a.type === "TSInterfaceDeclaration" || a.type === "TSTypeAliasDeclaration" || i) && (e.exportKind = "type"), i && (this.resetStartLocation(a, n, r), a.declare = !0), a) : null;
5710
5713
  }, b.parseClassId = function(t, n) {
@@ -5718,17 +5721,17 @@ function Sr(e) {
5718
5721
  var t = this.tsTryParseTypeAnnotation();
5719
5722
  t && (e.typeAnnotation = t);
5720
5723
  }, b.parseClassField = function(t) {
5721
- if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, J.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, J.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5722
- else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, J.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5724
+ if (t.key.type === "PrivateIdentifier") t.abstract && this.raise(t.start, Y.PrivateElementHasAbstract), t.accessibility && this.raise(t.start, Y.PrivateElementHasAccessibility({ modifier: t.accessibility })), this.parseClassPropertyAnnotation(t);
5725
+ else if (this.parseClassPropertyAnnotation(t), this.isAmbientContext && (!t.readonly || t.typeAnnotation) && this.match(o.eq) && this.raise(this.start, Y.DeclareClassFieldHasInitializer), t.abstract && this.match(o.eq)) {
5723
5726
  var n = t.key;
5724
- this.raise(this.start, J.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5727
+ this.raise(this.start, Y.AbstractPropertyHasInitializer({ propertyName: n.type !== "Identifier" || t.computed ? "[" + this.input.slice(n.start, n.end) + "]" : n.name }));
5725
5728
  }
5726
5729
  return e.prototype.parseClassField.call(this, t);
5727
5730
  }, b.parseClassMethod = function(e, t, n, r) {
5728
5731
  var i = e.kind === "constructor", a = e.key.type === "PrivateIdentifier", o = this.tsTryParseTypeParameters();
5729
- a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, J.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, J.ConstructorHasTypeParameters);
5732
+ a ? (o && (e.typeParameters = o), e.accessibility && this.raise(e.start, Y.PrivateMethodsHasAccessibility({ modifier: e.accessibility }))) : o && i && this.raise(o.start, Y.ConstructorHasTypeParameters);
5730
5733
  var s = e.declare, c = e.kind;
5731
- !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, J.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5734
+ !(s !== void 0 && s) || c !== "get" && c !== "set" || this.raise(e.start, Y.DeclareAccessor({ kind: c })), o && (e.typeParameters = o);
5732
5735
  var l = e.key;
5733
5736
  e.kind === "constructor" ? (t && this.raise(l.start, "Constructor can't be a generator"), n && this.raise(l.start, "Constructor can't be an async method")) : e.static && lr(e, "prototype") && this.raise(l.start, "Classes may not have a static property named prototype");
5734
5737
  var u = e.value = this.parseMethod(t, n, r, !0, e);
@@ -5754,13 +5757,13 @@ function Sr(e) {
5754
5757
  allowedModifiers: d,
5755
5758
  disallowedModifiers: ["in", "out"],
5756
5759
  stopOnStartOfClassStaticBlock: !0,
5757
- errorTemplate: J.InvalidModifierOnTypeParameterPositions
5760
+ errorTemplate: Y.InvalidModifierOnTypeParameterPositions
5758
5761
  }).static;
5759
5762
  var f = function() {
5760
5763
  if (!n.tsIsStartOfStaticBlocks()) {
5761
5764
  var f = n.tsTryParseIndexSignature(a);
5762
- if (f) return a.abstract && n.raise(a.start, J.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, J.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, J.IndexSignatureHasDeclare), a.override && n.raise(a.start, J.IndexSignatureHasOverride), f;
5763
- if (!n.inAbstractClass && a.abstract && n.raise(a.start, J.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, J.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5765
+ if (f) return a.abstract && n.raise(a.start, Y.IndexSignatureHasAbstract), a.accessibility && n.raise(a.start, Y.IndexSignatureHasAccessibility({ modifier: a.accessibility })), a.declare && n.raise(a.start, Y.IndexSignatureHasDeclare), a.override && n.raise(a.start, Y.IndexSignatureHasOverride), f;
5766
+ if (!n.inAbstractClass && a.abstract && n.raise(a.start, Y.NonAbstractClassHasAbstractMethod), a.override && t && n.raise(a.start, Y.OverrideNotInSubClass), a.static = r, r && (n.isClassElementNameStart() || n.type === o.star || (s = "static")), !s && i >= 8 && n.eatContextual("async") && (!n.isClassElementNameStart() && n.type !== o.star || n.canInsertSemicolon() ? s = "async" : l = !0), !s && (i >= 9 || !l) && n.eat(o.star) && (c = !0), !s && !l && !c) {
5764
5767
  var p = n.value;
5765
5768
  (n.eatContextual("get") || n.eatContextual("set")) && (n.isClassElementNameStart() ? u = p : s = p);
5766
5769
  }
@@ -5770,7 +5773,7 @@ function Sr(e) {
5770
5773
  } else n.parseClassField(a);
5771
5774
  return a;
5772
5775
  }
5773
- if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, J.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5776
+ if (n.next(), n.next(), n.tsHasSomeModifiers(a, d) && n.raise(n.start, Y.StaticBlockCannotHaveModifier), i >= 13) return e.prototype.parseClassStaticBlock.call(n, a), a;
5774
5777
  };
5775
5778
  return a.declare ? this.tsInAmbientContext(f) : f(), a;
5776
5779
  }, b.isClassElementNameStart = function() {
@@ -5844,20 +5847,20 @@ function Sr(e) {
5844
5847
  "override",
5845
5848
  "readonly"
5846
5849
  ]
5847
- }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, J.UnexpectedParameterModifier);
5850
+ }), n = s.accessibility, o = s.override, a = s.readonly, !1 === e && (n || a || o) && this.raise(i.start, Y.UnexpectedParameterModifier);
5848
5851
  }
5849
5852
  var c = this.parseMaybeDefault(r, i);
5850
5853
  this.parseBindingListItem(c);
5851
5854
  var l = this.parseMaybeDefault(c.start, c.loc, c);
5852
5855
  if (t.length && (l.decorators = t), n || a || o) {
5853
5856
  var u = this.startNodeAt(r, i);
5854
- return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, J.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5857
+ return n && (u.accessibility = n), a && (u.readonly = a), o && (u.override = o), l.type !== "Identifier" && l.type !== "AssignmentPattern" && this.raise(u.start, Y.UnsupportedParameterPropertyKind), u.parameter = l, this.finishNode(u, "TSParameterProperty");
5855
5858
  }
5856
5859
  return l;
5857
5860
  }, b.checkLValInnerPattern = function(t, n, r) {
5858
5861
  n === void 0 && (n = 0), t.type === "TSParameterProperty" ? this.checkLValInnerPattern(t.parameter, n, r) : e.prototype.checkLValInnerPattern.call(this, t, n, r);
5859
5862
  }, b.parseBindingListItem = function(e) {
5860
- this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, J.PatternIsOptional), e.optional = !0);
5863
+ this.eat(o.question) && (e.type === "Identifier" || this.isAmbientContext || this.inType || this.raise(e.start, Y.PatternIsOptional), e.optional = !0);
5861
5864
  var t = this.tsTryParseTypeAnnotation();
5862
5865
  return t && (e.typeAnnotation = t), this.resetEndLocation(e), e;
5863
5866
  }, b.isAssignable = function(e, t) {
@@ -5893,7 +5896,7 @@ function Sr(e) {
5893
5896
  case "TSAsExpression":
5894
5897
  case "TSSatisfiesExpression":
5895
5898
  case "TSNonNullExpression":
5896
- case "TSTypeAssertion": return n || this.raise(t.start, J.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5899
+ case "TSTypeAssertion": return n || this.raise(t.start, Y.UnexpectedTypeCastInParameter), this.toAssignable(t.expression, n, r);
5897
5900
  case "MemberExpression": break;
5898
5901
  case "AssignmentExpression": return n || t.left.type !== "TSTypeCastExpression" || (t.left = this.typeCastToParameter(t.left)), e.prototype.toAssignable.call(this, t, n, r);
5899
5902
  case "TSTypeCastExpression": return this.typeCastToParameter(t);
@@ -6023,7 +6026,7 @@ function Sr(e) {
6023
6026
  return _.expression = e, _.typeParameters = a, c.finishNode(_, "TSInstantiationExpression");
6024
6027
  }
6025
6028
  });
6026
- if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, J.InvalidPropertyAccessAfterInstantiationExpression), e = p;
6029
+ if (f && this.unexpected(f), p) return p.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, Y.InvalidPropertyAccessAfterInstantiationExpression), e = p;
6027
6030
  }
6028
6031
  var m = this.options.ecmaVersion >= 11, h = m && this.eat(o.questionDot);
6029
6032
  r && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
@@ -6093,7 +6096,7 @@ function Sr(e) {
6093
6096
  var a = this.startNode(), s = this.yieldPos, c = this.awaitPos, l = this.awaitIdentPos;
6094
6097
  if (this.initFunction(a), this.options.ecmaVersion >= 6 && (a.generator = e), this.options.ecmaVersion >= 8 && (a.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | vr(t, a.generator) | (n ? 128 : 0)), this.expect(o.parenL), a.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(a, !1, !0, !1, { isClassMethod: r }), this.yieldPos = s, this.awaitPos = c, this.awaitIdentPos = l, i && i.abstract && a.body) {
6095
6098
  var u = i.key;
6096
- this.raise(i.start, J.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
6099
+ this.raise(i.start, Y.AbstractMethodHasImplementation({ methodName: u.type !== "Identifier" || i.computed ? "[" + this.input.slice(u.start, u.end) + "]" : u.name }));
6097
6100
  }
6098
6101
  return this.finishNode(a, "FunctionExpression");
6099
6102
  }, t.parse = function(e, t) {
@@ -6130,7 +6133,7 @@ function Sr(e) {
6130
6133
  te(this.type) ? (c = !0, s = d, i = n ? this.parseIdent() : this.parseModuleExportName(), l = !1) : (i = f, l = !1);
6131
6134
  } else te(this.type) ? (l = !1, i = n ? this.parseIdent() : this.parseModuleExportName()) : (c = !0, s = d);
6132
6135
  } else te(this.type) && (c = !0, n ? (s = e.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(s)) : s = this.parseModuleExportName());
6133
- c && r && this.raise(u, n ? J.TypeModifierIsUsedInTypeImports : J.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
6136
+ c && r && this.raise(u, n ? Y.TypeModifierIsUsedInTypeImports : Y.TypeModifierIsUsedInTypeExports), t[a] = s, t[o] = i, t[n ? "importKind" : "exportKind"] = c ? "type" : "value", l && this.eatContextual("as") && (t[o] = n ? this.parseIdent() : this.parseModuleExportName()), t[o] || (t[o] = this.copyNode(t[a])), n && this.checkLValSimple(t[o], 2);
6134
6137
  }, b.raiseCommonCheck = function(t, n, r) {
6135
6138
  return n === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(o.comma) && this.lookaheadCharCode() === 41 ? void this.next() : e.prototype.raise.call(this, t, n) : r ? e.prototype.raiseRecoverable.call(this, t, n) : e.prototype.raise.call(this, t, n);
6136
6139
  }, b.raiseRecoverable = function(e, t) {
@@ -6242,6 +6245,12 @@ var Cr = [
6242
6245
  isPublished: !1,
6243
6246
  uploadGroupName: "engine"
6244
6247
  },
6248
+ {
6249
+ idPrefix: "dpuse-kb",
6250
+ typeId: "kb",
6251
+ isPublished: !1,
6252
+ uploadGroupName: void 0
6253
+ },
6245
6254
  {
6246
6255
  idPrefix: "dpuse-presenter",
6247
6256
  typeId: "presenter",
@@ -6296,13 +6305,13 @@ async function Tr(e) {
6296
6305
  async function Er(e, n) {
6297
6306
  return t.readdir(e, n);
6298
6307
  }
6299
- async function Y(e, n, r = [], i) {
6308
+ async function X(e, n, r = [], i) {
6300
6309
  let a = `${n} ${r.join(" ")}`;
6301
6310
  e !== void 0 && $(`${e} - exec(${a})`);
6302
6311
  let { stdout: o, stderr: s } = await wr(a);
6303
6312
  i === void 0 ? o.trim() && console.log(o.trim()) : await t.writeFile(i, o.trim(), "utf8"), s.trim() && console.error(s.trim());
6304
6313
  }
6305
- async function X(e, t, n = [], r = !1, i = !1) {
6314
+ async function Z(e, t, n = [], r = !1, i = !1) {
6306
6315
  return $(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
6307
6316
  a(t, n, {
6308
6317
  shell: i,
@@ -6312,7 +6321,7 @@ async function X(e, t, n = [], r = !1, i = !1) {
6312
6321
  });
6313
6322
  });
6314
6323
  }
6315
- async function Z(e) {
6324
+ async function Q(e) {
6316
6325
  return JSON.parse(await t.readFile(e, "utf8"));
6317
6326
  }
6318
6327
  async function Dr(e) {
@@ -6331,31 +6340,31 @@ async function kr(e, n) {
6331
6340
  async function Ar(e, n) {
6332
6341
  await t.writeFile(e, n, "utf8");
6333
6342
  }
6334
- function Q(e) {
6343
+ function jr(e) {
6335
6344
  let t = "─".repeat(Math.max(e.length + 60, 60));
6336
6345
  console.info(`\n${t}`), console.info(`▶️ ${e}`), console.info(`${t}`);
6337
6346
  }
6338
- function jr(e) {
6347
+ function Mr(e) {
6339
6348
  console.info(`\n✅ ${e}\n`);
6340
6349
  }
6341
6350
  function $(e) {
6342
6351
  console.info(`\n${e}\n`);
6343
6352
  }
6344
- function Mr(e) {
6353
+ function Nr(e) {
6345
6354
  let t = Cr.find((t) => e.startsWith(t.idPrefix));
6346
6355
  if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
6347
6356
  return t;
6348
6357
  }
6349
- async function Nr(e) {
6358
+ async function Pr(e) {
6350
6359
  return await t.stat(e);
6351
6360
  }
6352
- function Pr(e) {
6353
- let t = P.extend(Sr()).parse(e, {
6361
+ function Fr(e) {
6362
+ let t = F.extend(Sr()).parse(e, {
6354
6363
  ecmaVersion: "latest",
6355
6364
  sourceType: "module",
6356
6365
  locations: !0
6357
6366
  }), n = [];
6358
- return Fr(t, (e) => {
6367
+ return Ir(t, (e) => {
6359
6368
  if (e.type !== "MethodDefinition") return;
6360
6369
  let t = e, r = t.key;
6361
6370
  if (r.type !== "Identifier") return;
@@ -6363,7 +6372,7 @@ function Pr(e) {
6363
6372
  i && i !== "constructor" && t.accessibility !== "private" && n.push(i);
6364
6373
  }), n;
6365
6374
  }
6366
- function Fr(e, t) {
6375
+ function Ir(e, t) {
6367
6376
  t(e);
6368
6377
  for (let [n, r] of Object.entries(e)) {
6369
6378
  if ([
@@ -6376,37 +6385,37 @@ function Fr(e, t) {
6376
6385
  let e = r;
6377
6386
  if (Array.isArray(e)) for (let n of e) {
6378
6387
  let e = n;
6379
- e && typeof e.type == "string" && Fr(e, t);
6388
+ e && typeof e.type == "string" && Ir(e, t);
6380
6389
  }
6381
- else e && typeof e == "object" && typeof e.type == "string" && Fr(e, t);
6390
+ else e && typeof e == "object" && typeof e.type == "string" && Ir(e, t);
6382
6391
  }
6383
6392
  }
6384
- function Ir(e, t, n, r) {
6393
+ function Lr(e, t, n, r) {
6385
6394
  let i = e.indexOf(n), a = e.indexOf(r);
6386
6395
  if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
6387
6396
  return `${e.slice(0, Math.max(0, i + n.length))}\n${t}\n${e.slice(Math.max(0, a))}`;
6388
6397
  }
6389
6398
  //#endregion
6390
6399
  //#region src/utilities/cloudflare.ts
6391
- async function Lr() {
6392
- let e = await Z("config.json"), t = {
6400
+ async function Rr() {
6401
+ let e = await Q("config.json"), t = {
6393
6402
  body: JSON.stringify(e),
6394
6403
  headers: { "Content-Type": "application/json" },
6395
6404
  method: "PUT"
6396
6405
  }, n = await fetch(`https://api.dpuse.app/configs/${e.id}`, t);
6397
6406
  if (!n.ok) throw Error(await n.text());
6398
6407
  }
6399
- async function Rr(e, t) {
6408
+ async function zr(e, t) {
6400
6409
  async function n(e, t, r) {
6401
6410
  for (let i of r) {
6402
6411
  let r = `${e}/${i}`, a = `${t}/${i}`;
6403
- (await Nr(r)).isDirectory() ? await n(r, a, await Er(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await Y(void 0, `wrangler r2 object put "dpuse-sample-data-eu/${t}/${i}" --file="${e}/${i}" --jurisdiction=eu --remote`));
6412
+ (await Pr(r)).isDirectory() ? await n(r, a, await Er(r)) : (console.info(`⚙️ Uploading '${e}/${i}'...`), await X(void 0, `wrangler r2 object put "dpuse-sample-data-eu/${t}/${i}" --file="${e}/${i}" --jurisdiction=eu --remote`));
6404
6413
  }
6405
6414
  }
6406
6415
  let r = await Er(`${e}/${t}/`);
6407
6416
  await n(`${e}/${t}`, t, r);
6408
6417
  }
6409
- async function zr(e) {
6418
+ async function Br(e) {
6410
6419
  let t = e.id, n = {
6411
6420
  body: JSON.stringify(e),
6412
6421
  headers: { "Content-Type": "application/json" },
@@ -6414,26 +6423,26 @@ async function zr(e) {
6414
6423
  }, r = await fetch(`https://api.dpuse.app/configs/${t}`, n);
6415
6424
  if (!r.ok) throw Error(await r.text());
6416
6425
  }
6417
- async function Br(e, t) {
6426
+ async function Vr(e, t) {
6418
6427
  let n = `v${e.version ?? "unknown"}`;
6419
6428
  async function r(e, r = "") {
6420
6429
  let i = await Er(e, { withFileTypes: !0 });
6421
6430
  for (let a of i) {
6422
6431
  if (a.isDirectory()) continue;
6423
6432
  let i = `${e}/${a.name}`, o = r ? `${r}/${a.name}` : a.name, s = `${t}_${n}/${o}`.replaceAll("\\", "/"), c = a.name.endsWith(".css") ? "text/css" : "application/octet-stream", l = a.name.endsWith(".js") ? "application/javascript" : c;
6424
- console.info(`⚙️ Uploading '${o}' → '${s}'...`), await Y(void 0, `wrangler r2 object put "${s}" --file="${i}" --content-type ${l} --jurisdiction=eu --remote`);
6433
+ console.info(`⚙️ Uploading '${o}' → '${s}'...`), await X(void 0, `wrangler r2 object put "${s}" --file="${i}" --content-type ${l} --jurisdiction=eu --remote`);
6425
6434
  }
6426
6435
  }
6427
6436
  await r("dist");
6428
6437
  }
6429
6438
  //#endregion
6430
6439
  //#region src/operations/manageProject.ts
6431
- var Vr = new Set([
6440
+ var Hr = new Set([
6432
6441
  "createObject",
6433
6442
  "dropObject",
6434
6443
  "removeRecords",
6435
6444
  "upsertRecords"
6436
- ]), Hr = new Set([
6445
+ ]), Ur = new Set([
6437
6446
  "auditObjectContent",
6438
6447
  "findObjectFolderPath",
6439
6448
  "getReadableStream",
@@ -6443,51 +6452,51 @@ var Vr = new Set([
6443
6452
  "retrieveChunks",
6444
6453
  "retrieveRecords"
6445
6454
  ]);
6446
- async function Ur() {
6455
+ async function Wr() {
6447
6456
  try {
6448
- Q("Build Project"), await X("1️⃣ Bundle project", "vite", ["build"]), jr("Project built.");
6457
+ jr("Build Project"), await Z("1️⃣ Bundle project", "vite", ["build"]), Mr("Project built.");
6449
6458
  } catch (e) {
6450
6459
  console.error("❌ Error building project.", e), process.exit(1);
6451
6460
  }
6452
6461
  }
6453
- async function Wr() {
6462
+ async function Gr() {
6454
6463
  try {
6455
- Q("Release Project");
6456
- let e = await Z("package.json"), t = await Z("config.json");
6457
- await $r("1️⃣", e);
6458
- let n = Mr(t.id);
6464
+ jr("Release Project");
6465
+ let e = await Q("package.json"), t = await Q("config.json");
6466
+ await ei("1️⃣", e);
6467
+ let n = Nr(t.id);
6459
6468
  switch (n.typeId) {
6460
6469
  case "connector":
6461
- t = await Kr("2️⃣", e);
6470
+ t = await qr("2️⃣", e);
6462
6471
  break;
6463
6472
  case "context":
6464
- t = await qr("2️⃣", e);
6473
+ t = await Jr("2️⃣", e);
6465
6474
  break;
6466
6475
  case "presenter":
6467
- t = await Jr("2️⃣", e);
6476
+ t = await Yr("2️⃣", e);
6468
6477
  break;
6469
- default: t = await Gr("2️⃣", e);
6478
+ default: t = await Kr("2️⃣", e);
6470
6479
  }
6471
- if (await X("3️⃣ Bundle project", "vite", ["build"]), await Y("4️⃣ Stage changes", "git", ["add", "."]), await Y("5️⃣ Commit changes", "git", [
6480
+ if (await Z("3️⃣ Bundle project", "vite", ["build"]), await X("4️⃣ Stage changes", "git", ["add", "."]), await X("5️⃣ Commit changes", "git", [
6472
6481
  "commit",
6473
6482
  "-m",
6474
6483
  `"v${e.version ?? "unknown"}"`
6475
- ]), await Y("6️⃣ Push changes", "git", [
6484
+ ]), await X("6️⃣ Push changes", "git", [
6476
6485
  "push",
6477
6486
  "origin",
6478
6487
  "main:main"
6479
- ]), n.typeId === "app") $("7️⃣ Register module"), await Lr();
6480
- else if (n.typeId === "engine") $("7️⃣ Register module"), await Br(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await zr(t);
6488
+ ]), n.typeId === "app") $("7️⃣ Register module"), await Rr();
6489
+ else if (n.typeId === "engine") $("7️⃣ Register module"), await Vr(e, `dpuse-engine-eu/${n.uploadGroupName ?? "unknown"}`), await Br(t);
6481
6490
  else if (n.uploadGroupName === void 0) $("7️⃣ Registration NOT required.");
6482
6491
  else {
6483
6492
  $("7️⃣ Register module");
6484
6493
  let r = t.id.split("-").slice(2).join("-");
6485
- await Br(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await zr(t);
6494
+ await Vr(e, `dpuse-engine-eu/${n.uploadGroupName}/${r}`), await Br(t);
6486
6495
  }
6487
6496
  if (n.isPublished) {
6488
6497
  let e = ".npmrc";
6489
6498
  try {
6490
- await Ar(e, `registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await X("8️⃣ Publish to npm", "npm", [
6499
+ await Ar(e, `registry=https://registry.npmjs.org/\n//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await Z("8️⃣ Publish to npm", "npm", [
6491
6500
  "publish",
6492
6501
  "--access",
6493
6502
  "public"
@@ -6496,80 +6505,80 @@ async function Wr() {
6496
6505
  await Or(e);
6497
6506
  }
6498
6507
  } else $(`8️⃣ Publishing NOT required for package with type identifier of '${n.typeId}'.`);
6499
- jr(`Project version '${e.version ?? "unknown"}' released.`);
6508
+ Mr(`Project version '${e.version ?? "unknown"}' released.`);
6500
6509
  } catch (e) {
6501
6510
  console.error("❌ Error releasing project.", e), process.exit(1);
6502
6511
  }
6503
6512
  }
6504
- async function Gr(e, t) {
6513
+ async function Kr(e, t) {
6505
6514
  $(`${e} Build project configuration`);
6506
- let n = await Z("config.json");
6515
+ let n = await Q("config.json");
6507
6516
  return t.name != null && (n.id = t.name.replace("@dpuse/", "").replace("@dpuse/", "")), t.version != null && (n.version = t.version), await kr("config.json", n), n;
6508
6517
  }
6509
- async function Kr(e, t) {
6518
+ async function qr(e, t) {
6510
6519
  $(`${e} Build connector project configuration`);
6511
- let [n, r] = await Promise.all([Z("config.json"), Dr("src/index.ts")]), i = /* @__PURE__ */ p(je, n);
6520
+ let [n, r] = await Promise.all([Q("config.json"), Dr("src/index.ts")]), i = /* @__PURE__ */ p(je, n);
6512
6521
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
6513
- let a = Pr(r);
6514
- return await Xr(t, n, a, Yr(a));
6522
+ let a = Fr(r);
6523
+ return await Zr(t, n, a, Xr(a));
6515
6524
  }
6516
- async function qr(e, t) {
6525
+ async function Jr(e, t) {
6517
6526
  $(`${e} Build context project configuration`);
6518
- let [n, r] = await Promise.all([Z("config.json"), Dr("src/index.ts")]), i = /* @__PURE__ */ p(Pe, n);
6527
+ let [n, r] = await Promise.all([Q("config.json"), Dr("src/index.ts")]), i = /* @__PURE__ */ p(Pe, n);
6519
6528
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
6520
- return await Xr(t, n, Pr(r));
6529
+ return await Zr(t, n, Fr(r));
6521
6530
  }
6522
- async function Jr(e, t) {
6531
+ async function Yr(e, t) {
6523
6532
  $(`${e} Build presenter project configuration`);
6524
- let [n, r] = await Promise.all([Z("config.json"), Dr("src/index.ts")]), i = /* @__PURE__ */ p(Ie, n);
6533
+ let [n, r] = await Promise.all([Q("config.json"), Dr("src/index.ts")]), i = /* @__PURE__ */ p(Ie, n);
6525
6534
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid.");
6526
- return await Xr(t, n, Pr(r));
6535
+ return await Zr(t, n, Fr(r));
6527
6536
  }
6528
- function Yr(e) {
6537
+ function Xr(e) {
6529
6538
  let t = !1, n = !1;
6530
- for (let r of e) Hr.has(r) && (t = !0), Vr.has(r) && (n = !0);
6539
+ for (let r of e) Ur.has(r) && (t = !0), Hr.has(r) && (n = !0);
6531
6540
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
6532
6541
  }
6533
- async function Xr(e, t, n, r) {
6542
+ async function Zr(e, t, n, r) {
6534
6543
  return n.length > 0 ? (console.info(`ℹ️ Implements ${String(n.length)} operations:`), console.table(n)) : console.warn("⚠️ Implements no operations."), r === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${r ?? "unknown"}' usage.`), e.name != null && (t.id = e.name.replace("@dpuse/", "").replace("@dpuse/", "")), e.version != null && (t.version = e.version), t.operations = n, t.usageId = r ?? "unknown", await kr("config.json", t), t;
6535
6544
  }
6536
- async function Zr() {
6545
+ async function Qr() {
6537
6546
  try {
6538
- Q("Synchronise Project with GitHub");
6539
- let e = await Z("package.json"), t = await Z("config.json");
6540
- switch (await $r("1️⃣", e), Mr(t.id).typeId) {
6547
+ jr("Synchronise Project with GitHub");
6548
+ let e = await Q("package.json"), t = await Q("config.json");
6549
+ switch (await ei("1️⃣", e), Nr(t.id).typeId) {
6541
6550
  case "connector":
6542
- await Kr("2️⃣", e);
6551
+ await qr("2️⃣", e);
6543
6552
  break;
6544
6553
  case "context":
6545
- await qr("2️⃣", e);
6554
+ await Jr("2️⃣", e);
6546
6555
  break;
6547
6556
  case "presenter":
6548
- await Jr("2️⃣", e);
6557
+ await Yr("2️⃣", e);
6549
6558
  break;
6550
- default: await Gr("2️⃣", e);
6559
+ default: await Kr("2️⃣", e);
6551
6560
  }
6552
- await Y("3️⃣ Stage changes", "git", ["add", "."]), await Y("4️⃣ Commit changes", "git", [
6561
+ await X("3️⃣ Stage changes", "git", ["add", "."]), await X("4️⃣ Commit changes", "git", [
6553
6562
  "commit",
6554
6563
  "-m",
6555
6564
  `"v${e.version ?? "unknown"}"`
6556
- ]), await Y("5️⃣ Push changes", "git", [
6565
+ ]), await X("5️⃣ Push changes", "git", [
6557
6566
  "push",
6558
6567
  "origin",
6559
6568
  "main:main"
6560
- ]), jr(`Project version '${e.version ?? "unknown"}' synchronised with GitHub.`);
6569
+ ]), Mr(`Project version '${e.version ?? "unknown"}' synchronised with GitHub.`);
6561
6570
  } catch (e) {
6562
6571
  console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
6563
6572
  }
6564
6573
  }
6565
- function Qr() {
6574
+ function $r() {
6566
6575
  try {
6567
- Q("Test Project"), console.error("\n❌ No tests implemented.\n");
6576
+ jr("Test Project"), console.error("\n❌ No tests implemented.\n");
6568
6577
  } catch (e) {
6569
6578
  console.error("❌ Error testing project.", e), process.exit(1);
6570
6579
  }
6571
6580
  }
6572
- async function $r(e, t, n = "./") {
6581
+ async function ei(e, t, n = "./") {
6573
6582
  if ($(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`), await kr(`${n}package.json`, t);
6574
6583
  else {
6575
6584
  let e = t.version, r = t.version.split(".");
@@ -6578,7 +6587,7 @@ async function $r(e, t, n = "./") {
6578
6587
  }
6579
6588
  //#endregion
6580
6589
  //#region src/operations/auditDependencies.ts
6581
- var ei = {
6590
+ var ti = {
6582
6591
  critical: {
6583
6592
  color: "D32F2F",
6584
6593
  label: "critical"
@@ -6599,16 +6608,16 @@ var ei = {
6599
6608
  color: "616161",
6600
6609
  label: "unknown"
6601
6610
  }
6602
- }, ti = "<!-- OWASP_BADGES_START -->", ni = "<!-- OWASP_BADGES_END -->";
6603
- async function ri() {
6611
+ }, ni = "<!-- OWASP_BADGES_START -->", ri = "<!-- OWASP_BADGES_END -->";
6612
+ async function ii() {
6604
6613
  try {
6605
- Q("Audit Dependencies");
6606
- let e = await Z("package.json"), t = [];
6614
+ jr("Audit Dependencies");
6615
+ let e = await Q("package.json"), t = [];
6607
6616
  try {
6608
6617
  let e = (await Er("dependency-check-bin")).toSorted((e, t) => e.localeCompare(t)).at(-1);
6609
6618
  e != null && e !== "" && t.push("--owasp-bin", `dependency-check-bin/${e}/dependency-check/bin/dependency-check.sh`);
6610
6619
  } catch {}
6611
- await X("1️⃣", "owasp-dependency-check", [
6620
+ await Z("1️⃣", "owasp-dependency-check", [
6612
6621
  ...t,
6613
6622
  "--out",
6614
6623
  "dependency-check-reports",
@@ -6622,14 +6631,14 @@ async function ri() {
6622
6631
  process.env.SONATYPE_USER_EMAIL ?? "",
6623
6632
  "--ossIndexPassword",
6624
6633
  process.env.SONATYPE_USER_TOKEN ?? ""
6625
- ]), await ii("2️⃣"), await X("3️⃣ Check using 'npm audit'", "npm", ["audit"]), jr("Dependencies audited.");
6634
+ ]), await ai("2️⃣"), await Z("3️⃣ Check using 'npm audit'", "npm", ["audit"]), Mr("Dependencies audited.");
6626
6635
  } catch (e) {
6627
6636
  console.error("❌ Error auditing dependencies.", e), process.exit(1);
6628
6637
  }
6629
6638
  }
6630
- async function ii(e) {
6639
+ async function ai(e) {
6631
6640
  $(`${e} Insert OWASP Badge(s) into 'README.md'`);
6632
- let t = await Z("dependency-check-reports/dependency-check-report.json"), n = {
6641
+ let t = await Q("dependency-check-reports/dependency-check-report.json"), n = {
6633
6642
  critical: 0,
6634
6643
  high: 0,
6635
6644
  moderate: 0,
@@ -6640,14 +6649,14 @@ async function ii(e) {
6640
6649
  let e = t.severity?.toLowerCase() ?? "unknown";
6641
6650
  Object.hasOwn(n, e) ? n[e]++ : n.unknown++;
6642
6651
  }
6643
- let r = await ai(n);
6644
- await Ar("README.md", Ir(await Dr("./README.md"), r.join(" "), ti, ni)), console.info("OWASP audit badge(s) inserted into 'README.md'");
6652
+ let r = await oi(n);
6653
+ await Ar("README.md", Lr(await Dr("./README.md"), r.join(" "), ni, ri)), console.info("OWASP audit badge(s) inserted into 'README.md'");
6645
6654
  }
6646
- async function ai(e) {
6647
- let t = await Z("config.json"), n = [];
6655
+ async function oi(e) {
6656
+ let t = await Q("config.json"), n = [];
6648
6657
  if (Object.values(e).reduce((e, t) => e + t, 0) === 0) console.info("No vulnerabilities found."), n.push(`[![OWASP](https://img.shields.io/badge/OWASP-passed-4CAF50)](https://dpuse.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
6649
6658
  else for (let [r, i] of Object.entries(e)) {
6650
- let e = ei[r];
6659
+ let e = ti[r];
6651
6660
  if (console.warn(`⚠️ ${String(i)} ${e.label} vulnerability(ies) found.`), i === 0) continue;
6652
6661
  let a = `https://img.shields.io/badge/OWASP-${String(i)}%20${e.label}-${e.color}`;
6653
6662
  n.push(`[![OWASP](${a})](https://dpuse.github.io/${t.id}/dependency-check-reports/dependency-check-report.html)`);
@@ -6656,35 +6665,35 @@ async function ai(e) {
6656
6665
  }
6657
6666
  //#endregion
6658
6667
  //#region src/operations/checkDependencies.ts
6659
- async function oi() {
6668
+ async function si() {
6660
6669
  try {
6661
- Q("Check Dependencies"), await X("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), await X("2️⃣ Check using 'npm-check-updates'", "npm-check-updates", [
6670
+ jr("Check Dependencies"), await Z("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), await Z("2️⃣ Check using 'npm-check-updates'", "npm-check-updates", [
6662
6671
  "-i",
6663
6672
  "--dep",
6664
6673
  "dev,prod,peer,optional"
6665
- ]), jr("Dependencies checked.");
6674
+ ]), Mr("Dependencies checked.");
6666
6675
  } catch (e) {
6667
6676
  console.error("❌ Error checking dependencies.", e), process.exit(1);
6668
6677
  }
6669
6678
  }
6670
6679
  //#endregion
6671
6680
  //#region src/operations/documentDependencies.ts
6672
- var si = "<!-- DEPENDENCY_LICENSES_START -->", ci = "<!-- DEPENDENCY_LICENSES_END -->";
6673
- async function li(e = [], t = !0) {
6681
+ var ci = "<!-- DEPENDENCY_LICENSES_START -->", li = "<!-- DEPENDENCY_LICENSES_END -->";
6682
+ async function ui(e = [], t = !0) {
6674
6683
  try {
6675
- Q("Document Dependencies");
6684
+ jr("Document Dependencies");
6676
6685
  let n = e.flatMap((e) => ["--allowed", `'${e}'`]);
6677
- await Y("1️⃣ Generate 'licenses.json' file", "license-report", [
6686
+ await X("1️⃣ Generate 'licenses.json' file", "license-report", [
6678
6687
  "--config",
6679
6688
  `'${s(new o(import.meta.resolve("@dpuse/dpuse-development/license-report-config")))}'`,
6680
6689
  "--only=prod,peer",
6681
6690
  "--output=json"
6682
- ], "licenses/licenses.json"), await Y("2️⃣ Check 'licenses.json' file", "license-report-check", [
6691
+ ], "licenses/licenses.json"), await X("2️⃣ Check 'licenses.json' file", "license-report-check", [
6683
6692
  "--source",
6684
6693
  "licenses/licenses.json",
6685
6694
  "--output=table",
6686
6695
  ...n
6687
- ]), t ? (await Y("3️⃣ Generate 'licenseTree.json' file", "license-report-recursive", [
6696
+ ]), t ? (await X("3️⃣ Generate 'licenseTree.json' file", "license-report-recursive", [
6688
6697
  "--only=prod,peer",
6689
6698
  "--output=tree",
6690
6699
  "--recurse",
@@ -6692,7 +6701,7 @@ async function li(e = [], t = !0) {
6692
6701
  "--licensePeriod.value=n/a",
6693
6702
  "--material.value=n/a",
6694
6703
  "--relatedTo.value=n/a"
6695
- ], "licenses/licenseTree.json"), await Y("4️⃣ Check 'licenseTree.json' file", "license-report-check", [
6704
+ ], "licenses/licenseTree.json"), await X("4️⃣ Check 'licenseTree.json' file", "license-report-check", [
6696
6705
  "--source",
6697
6706
  "licenses/licenseTree.json",
6698
6707
  "--output=table",
@@ -6700,7 +6709,7 @@ async function li(e = [], t = !0) {
6700
6709
  ])) : ($("3️⃣ Skip 'licenses/licenseTree.json' file generate"), $("4️⃣ Skip 'licenses/licenseTree.json' file check"));
6701
6710
  let r = process.env.GITHUB_TOKEN;
6702
6711
  if (r == null || r === "" || r.startsWith("op://")) throw Error("GITHUB_TOKEN is not resolved. Run the script via \"npm run document\" to use 1Password resolution.");
6703
- await Tr("licenses/downloads"), await Y("5️⃣ Download license files", "license-downloader", [
6712
+ await Tr("licenses/downloads"), await X("5️⃣ Download license files", "license-downloader", [
6704
6713
  "--source",
6705
6714
  "licenses/licenses.json",
6706
6715
  "--licDir",
@@ -6708,14 +6717,14 @@ async function li(e = [], t = !0) {
6708
6717
  "--githubToken.tokenEnvVar",
6709
6718
  "GITHUB_TOKEN",
6710
6719
  "--download"
6711
- ]), await ui("6️⃣", t), jr("Dependencies documented.");
6720
+ ]), await di("6️⃣", t), Mr("Dependencies documented.");
6712
6721
  } catch (e) {
6713
6722
  console.error("❌ Error documenting dependencies.", e), process.exit(1);
6714
6723
  }
6715
6724
  }
6716
- async function ui(e, t) {
6725
+ async function di(e, t) {
6717
6726
  $(`${e} Insert licenses into 'README.md'`);
6718
- let n = await Z("licenses/licenses.json"), r = await Z("licenses/downloads/licenses.ext.json"), i = t ? await Z("licenses/licenseTree.json") : [], a = [...(() => {
6727
+ let n = await Q("licenses/licenses.json"), r = await Q("licenses/downloads/licenses.ext.json"), i = t ? await Q("licenses/licenseTree.json") : [], a = [...(() => {
6719
6728
  let e = /* @__PURE__ */ new Map();
6720
6729
  for (let t of n) e.set(t.name, { ...t });
6721
6730
  for (let t of r) {
@@ -6735,13 +6744,13 @@ async function ui(e, t) {
6735
6744
  return e.values();
6736
6745
  })()], o = "|Name|Type|Installed|Latest|Latest Released|Deps|Document|\n|:-|:-|:-:|:-:|:-|-:|:-|\n";
6737
6746
  for (let e of a) {
6738
- let t = e.installedVersion === e.remoteVersion ? e.installedVersion : `${e.installedVersion} ⚠️`, n = e.latestRemoteModified ? di(e.latestRemoteModified.split("T", 1)[0]) : "n/a", r = e.dependencyCount != null && e.dependencyCount >= 0 ? e.dependencyCount : "n/a", i;
6747
+ let t = e.installedVersion === e.remoteVersion ? e.installedVersion : `${e.installedVersion} ⚠️`, n = e.latestRemoteModified ? fi(e.latestRemoteModified.split("T", 1)[0]) : "n/a", r = e.dependencyCount != null && e.dependencyCount >= 0 ? e.dependencyCount : "n/a", i;
6739
6748
  i = e.licenseFileLink == null || e.licenseFileLink == "" ? "⚠️ No license file" : `[${e.licenseFileLink.slice(Math.max(0, e.licenseFileLink.lastIndexOf("/") + 1))}](${e.licenseFileLink})`, o += `|${e.name}|${e.licenseType}|${t}|${e.remoteVersion}|${n}|${String(r)}|${i}|\n`;
6740
6749
  }
6741
- let s = Ir(await Dr("./README.md"), o, si, ci);
6750
+ let s = Lr(await Dr("./README.md"), o, ci, li);
6742
6751
  await Ar("README.md", s), console.info("OWASP audit badge(s) inserted into 'README.md'"), await Ar("README.md", s);
6743
6752
  }
6744
- function di(e) {
6753
+ function fi(e) {
6745
6754
  if (e == null || e === "") return "n/a";
6746
6755
  let t = e.split("T", 1)[0];
6747
6756
  if (t == null || t === "") return "n/a";
@@ -6750,31 +6759,31 @@ function di(e) {
6750
6759
  }
6751
6760
  //#endregion
6752
6761
  //#region src/operations/formatCode.ts
6753
- async function fi() {
6762
+ async function pi() {
6754
6763
  try {
6755
- Q("Format Code"), await X("1️⃣ Format", "prettier", [
6764
+ jr("Format Code"), await Z("1️⃣ Format", "prettier", [
6756
6765
  "--write",
6757
6766
  "*.json",
6758
6767
  "*.md",
6759
6768
  "*.ts",
6760
6769
  ...["app", "src"].filter((t) => e(t)).map((e) => `${e}/**`)
6761
- ]), jr("Code formatted.");
6770
+ ]), Mr("Code formatted.");
6762
6771
  } catch (e) {
6763
6772
  console.error("❌ Error formatting code.", e), process.exit(1);
6764
6773
  }
6765
6774
  }
6766
6775
  //#endregion
6767
6776
  //#region src/operations/lintCode.ts
6768
- async function pi() {
6777
+ async function mi() {
6769
6778
  try {
6770
- Q("Lint Code"), await X("1️⃣ Lint", "eslint", ["."]), jr("Code linted.");
6779
+ jr("Lint Code"), await Z("1️⃣ Lint", "eslint", ["."]), Mr("Code linted.");
6771
6780
  } catch (e) {
6772
6781
  console.error("❌ Error linting code.", e), process.exit(1);
6773
6782
  }
6774
6783
  }
6775
6784
  //#endregion
6776
6785
  //#region src/operations/updateDPUseDependencies.ts
6777
- var mi = [
6786
+ var hi = [
6778
6787
  "1️⃣",
6779
6788
  "2️⃣",
6780
6789
  "3️⃣",
@@ -6785,23 +6794,23 @@ var mi = [
6785
6794
  "8️⃣",
6786
6795
  "9️⃣"
6787
6796
  ];
6788
- async function hi(e = []) {
6797
+ async function gi(e = []) {
6789
6798
  try {
6790
- Q("Update '@dpuse/dpuse' Dependencies");
6799
+ jr("Update '@dpuse/dpuse' Dependencies");
6791
6800
  for (let [t, n] of e.entries()) {
6792
- let e = mi.at(t) ?? "🔢";
6793
- n === "eslint" ? await X(`${e} Update '${n}'`, "npm", ["install", "@dpuse/eslint-config-dpuse@latest"]) : (await X(`${e} Update '${n}'`, "npm", ["install", `@dpuse/dpuse-${n}@latest`]), n === "development" && await gi(Mr((await Z("config.json")).id)));
6801
+ let e = hi.at(t) ?? "🔢";
6802
+ n === "eslint" ? await Z(`${e} Update '${n}'`, "npm", ["install", "@dpuse/eslint-config-dpuse@latest"]) : (await Z(`${e} Update '${n}'`, "npm", ["install", `@dpuse/dpuse-${n}@latest`]), n === "development" && await _i(Nr((await Q("config.json")).id)));
6794
6803
  }
6795
- jr("'@dpuse/dpuse' dependencies updated.");
6804
+ Mr("'@dpuse/dpuse' dependencies updated.");
6796
6805
  } catch (e) {
6797
6806
  console.error("❌ Error updating '@dpuse/dpuse' dependencies.", e), process.exit(1);
6798
6807
  }
6799
6808
  }
6800
- async function gi(e) {
6809
+ async function _i(e) {
6801
6810
  let t = n.dirname(s(import.meta.url));
6802
- await _i(t, "../", ".editorconfig"), await _i(t, "../", ".gitattributes"), await _i(t, "../", e.isPublished ? ".gitignore_published" : ".gitignore_unpublished", ".gitignore2"), await _i(t, "../", ".markdownlint.json"), await _i(t, "../", "LICENSE"), await _i(t, "../", "tsconfig.json", "tsconfig2.json"), e.typeId === "eslint" || (await _i(t, "../", "eslint.config.ts", "eslint.config2.ts"), await _i(t, "../", "vite.config.ts", "vite.config2.ts"), await _i(t, "../", "vitest.config.ts", "vitest.config2.ts"));
6811
+ await vi(t, "../", ".editorconfig"), await vi(t, "../", ".gitattributes"), await vi(t, "../", e.isPublished ? ".gitignore_published" : ".gitignore_unpublished", ".gitignore2"), await vi(t, "../", ".markdownlint.json"), await vi(t, "../", "LICENSE"), await vi(t, "../", "tsconfig.json", "tsconfig2.json"), e.typeId === "eslint" || (await vi(t, "../", "eslint.config.ts", "eslint.config2.ts"), await vi(t, "../", "vite.config.ts", "vite.config2.ts"), await vi(t, "../", "vitest.config.ts", "vitest.config2.ts"));
6803
6812
  }
6804
- async function _i(e, t, r, i) {
6813
+ async function vi(e, t, r, i) {
6805
6814
  let a = await Dr(n.resolve(e, `${t}${r}`)), o = n.resolve(process.cwd(), r.split("_", 1)[0] ?? r), s = n.resolve(process.cwd(), i ?? r), c;
6806
6815
  try {
6807
6816
  c = await Dr(o);
@@ -6815,6 +6824,6 @@ async function _i(e, t, r, i) {
6815
6824
  await Ar(s, a), console.info(`ℹ️ File '${i ?? r}' synchronised.`);
6816
6825
  }
6817
6826
  //#endregion
6818
- export { ri as auditDependencies, Ur as buildProject, oi as checkDependencies, li as documentDependencies, fi as formatCode, pi as lintCode, Wr as releaseProject, Zr as syncProjectWithGitHub, Qr as testProject, hi as updateDPUseDependencies, Rr as uploadDirectoryToR2 };
6827
+ export { ii as auditDependencies, Wr as buildProject, si as checkDependencies, ui as documentDependencies, pi as formatCode, mi as lintCode, Gr as releaseProject, Qr as syncProjectWithGitHub, $r as testProject, gi as updateDPUseDependencies, zr as uploadDirectoryToR2 };
6819
6828
 
6820
6829
  //# sourceMappingURL=dpuse-development.es.js.map